]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
[gdb/testsuite] Expect conformation question in gdb.server/solib-list.exp
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
fbf42f4e
AB
12020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * tdesc.cc (struct tdesc_compatible_info): New struct.
4 (tdesc_compatible_info_list): New function.
5 (tdesc_compatible_info_arch_name): New function.
6
013e3554
TBA
72020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8
9 Use std::list to stop pending signal instead of manually-created
10 linked list.
11 * linux-low.h: Include <list>.
12 (struct pending_signal): Move here from linux-low.cc.
13 (struct lwp_info) <pending_signals>
14 <pending_signals_to_report>: Update the type.
15 * linux-low.cc (struct pending_signals): Remove.
16 (linux_process_target::delete_lwp)
17 (linux_process_target::add_lwp)
18 (enqueue_one_deferred_signal)
19 (dequeue_one_deferred_signal)
20 (enqueue_pending_signal)
21 (linux_process_target::resume_one_lwp_throw)
22 (linux_process_target::thread_needs_step_over)
23 (linux_process_target::resume_one_thread)
24 (linux_process_target::proceed_one_lwp): Update the use of pending
25 signal list.
26
7d458ea5
SM
272020-06-17 Simon Marchi <simon.marchi@efficios.com>
28
29 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
30 Remove.
31
84b300de
SM
322020-06-12 Simon Marchi <simon.marchi@efficios.com>
33
34 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
35 * configure.srv: Remove mingw32ce cases.
36 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
37 * win32-low.h (to_back_slashes): Remove.
38 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
39
96c16e2b
SM
402020-06-12 Simon Marchi <simon.marchi@efficios.com>
41
42 * Makefile.in (SFILES): linux-tile-low.cc.
43 * configure.srv: Remove tilegx case.
44 * linux-tile-low.cc: Remove.
45
bd1467ae
SM
462020-06-12 Simon Marchi <simon.marchi@efficios.com>
47
48 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
49 * configure.srv: Remove m32r case.
50 * linux-m32r-low.cc: Remove.
51
7b46bf6f
SM
522020-06-12 Simon Marchi <simon.marchi@efficios.com>
53
54 * Makefile.in (SFILES): Remove linux-cris-low.c.
55 * configure.srv: Remove cris cases.
56 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
57
1fa29f56
SM
582020-06-12 Simon Marchi <simon.marchi@efficios.com>
59
60 * Makefile.in (SFILES): Remove linux-bfin-low.c.
61 * configure.srv: Remove bfin case.
62 * linux-bfin-low.cc: Remove.
63 * linux-low.cc: Remove BFIN-conditional code.
64
613f149a
SM
652020-06-12 Simon Marchi <simon.marchi@efficios.com>
66
67 * configure: Re-generate.
68 * configure.ac: Remove srv_qnx test.
69 * configure.srv: Remove nto case.
70 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
71 * remote-utils.c: Remove __QNX__-guarded code.
72
fdb95bf5
SM
732020-06-12 Simon Marchi <simon.marchi@efficios.com>
74
75 * configure: Re-generate.
76 * configure.ac: Remove srv_lynxos test.
77 * configure.srv: Remove lynxos cases.
78 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
79 Remove.
80
c00094dc
SM
812020-06-12 Simon Marchi <simon.marchi@efficios.com>
82
83 * README: Fix a few outdated or incoherent things.
84
6479bf85
HD
852020-05-27 Hannes Domani <ssbssa@yahoo.de>
86
87 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
88 (win32_clear_inferiors): Use open_process_used.
89 (get_child_debug_event): Likewise.
90
bea571eb
MW
912020-05-25 Michael Weghorn <m.weghorn@posteo.de>
92
93 PR gdbserver/25893
94 * linux-low.cc (linux_process_target::create_inferior),
95 lynx-low.cc (lynx_process_target::create_inferior),
96 win32-low.cc (win32_process_target::create_inferior): Use
97 construct_inferior_arguments instead of stringify_argv
98 to get string representation which properly escapes
99 special characters.
100 * server.cc (handle_v_run): Just pass empty program arg
101 as such, since any further processing is now handled via
102 construct_inferior_arguments.
103
ace6b919
MW
1042020-05-25 Michael Weghorn <m.weghorn@posteo.de>
105
106 * nto-low.cc (nto_process_target::create_inferior): Pass
107 argv to spawnp function as char **.
108
b69ca137
MW
1092020-05-25 Michael Weghorn <m.weghorn@posteo.de>
110
111 * server.cc (captured_main), (handle_v_run): No longer
112 insert extra NULL element to args vector.
113
51e2cfa2
PA
1142020-05-23 Pedro Alves <palves@redhat.com>
115
116 * gdb-safe-ctype.h: New.
117
8bbf0394
TBA
1182020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
119
120 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
121 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
122 (ia64_target::low_breakpoint_at): Ditto.
123
01370779
HD
1242020-05-15 Hannes Domani <ssbssa@yahoo.de>
125
126 * win32-i386-low.cc (i386_supports_z_point_type): Handle
127 Z_PACKET_HW_BP z_type.
128 (i386_insert_point): Handle raw_bkpt_type type.
129 (i386_remove_point): Likewise.
130
7d186bc0
HD
1312020-04-30 Hannes Domani <ssbssa@yahoo.de>
132
133 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
134 Add arch/i386.o.
135 * win32-arm-low.cc (arm_num_regs): New function.
136 (struct win32_target_ops): Use arm_num_regs.
137 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
138 processes.
139 (i386_get_thread_context): Likewise.
140 (i386_prepare_to_resume): Likewise.
141 (i386_thread_added): Likewise.
142 (i386_single_step): Likewise.
143 (i386_fetch_inferior_register): Likewise.
144 (i386_store_inferior_register): Likewise.
145 (i386_arch_setup): Likewise.
146 (i386_win32_num_regs): New function.
147 (struct win32_target_ops): Use i386_win32_num_regs.
148 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
149 processes.
150 (win32_require_context): Likewise.
151 (child_add_thread): Likewise.
152 (do_initial_child_stuff): Likewise.
153 (continue_one_thread): Likewise.
154 (win32_process_target::resume): Likewise.
155 (load_psapi): Likewise.
156 (win32_add_all_dlls): Likewise.
157 (maybe_adjust_pc): Likewise.
158 (win32_process_target::qxfer_siginfo): Likewise.
159 (initialize_low): Likewise.
160 * win32-low.h (struct win32_target_ops): Change num_regs to
161 callback function.
162
1eb39914
SM
1632020-04-27 Simon Marchi <simon.marchi@efficios.com>
164
165 * configure.ac: Remove check for fs_base/gs_base in
166 user_regs_struct.
167 * configure: Re-generate.
168 * config.in: Re-generate.
169 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
170 x86_store_gregset): Adjust.
171
51ac8e22
HD
1722020-04-22 Hannes Domani <ssbssa@yahoo.de>
173
174 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
175 comparison.
176
a010605f
TT
1772020-04-16 Tom Tromey <tromey@adacore.com>
178
179 * win32-low.cc (windows_nat::handle_access_violation): New
180 function.
181
e2275c6e
SM
1822020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
183
184 * win32-low.cc (get_child_debug_event): Fix format string warning.
185
73944e9f
TT
1862020-04-13 Tom Tromey <tom@tromey.com>
187
188 * server.h (gdb_fildes_t): Remove typedef.
189 * remote-utils.c (remote_desc, list_desc): Now int.
190 (INVALID_DESCRIPTOR): Remove.
191 (gdb_connected, remote_close)
192 (check_remote_input_interrupt_request): Update.
193 * utils.h (pfildes): Don't declare.
194 * utils.c (pfildes): Remove.
195
55d7aec8
TT
1962020-04-13 Tom Tromey <tom@tromey.com>
197
198 * server.h (handle_serial_event, handle_target_event): Update.
199 * server.c: Don't call initialize_event_loop.
200 (keep_processing_events): New global.
201 (handle_serial_event): Return void. Set keep_processing_events.
202 (handle_target_event): Return void.
203 (start_event_loop): Move from event-loop.c. Rewrite.
204 * remote-utils.c (handle_accept_event): Return void.
205 (reset_readchar): Use delete_timer.
206 (process_remaining): Return void.
207 (reschedule): Use create_timer.
208 * event-loop.h: Remove.
209 * event-loop.cc: Remove.
210 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
211
e487f994
TT
2122020-04-13 Tom Tromey <tom@tromey.com>
213
214 * server.c (invoke_async_signal_handlers)
215 (check_async_event_handlers, flush_streams, gdb_select): New
216 functions.
217
8ae8e197
TT
2182020-04-13 Tom Tromey <tom@tromey.com>
219
220 * configure: Rebuild.
221 * config.in: Rebuild.
222
360ad8b3
TT
2232020-04-08 Tom Tromey <tromey@adacore.com>
224
225 PR gdb/22992
226 * win32-low.c (child_continue): Call matching_pending_stop.
227 (get_child_debug_event): Call fetch_pending_stop. Push pending
228 stop when needed.
229
523d4f80
TT
2302020-04-08 Tom Tromey <tromey@adacore.com>
231
232 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
233 (win32_process_target::supports_stopped_by_sw_breakpoint):
234 Declare.
235 * win32-low.c (win32_supports_z_point_type): Always handle
236 Z_PACKET_SW_BP.
237 (win32_insert_point): Call insert_memory_breakpoint when needed.
238 (win32_remove_point): Call remove_memory_breakpoint when needed.
239 (win32_process_target::stopped_by_sw_breakpoint)
240 (win32_process_target::supports_stopped_by_sw_breakpoint): New
241 methods.
242 (win32_target_ops): Update.
243 (maybe_adjust_pc): New function.
244 (win32_wait): Call maybe_adjust_pc.
245
e54e5929
TT
2462020-04-08 Tom Tromey <tromey@adacore.com>
247
248 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
249 field.
250 * win32-i386-low.c (the_low_target): Update.
251 * win32-arm-low.c (the_low_target): Update.
252
d6225aff
TT
2532020-04-08 Tom Tromey <tromey@adacore.com>
254
255 * win32-low.h (win32_process_target::read_pc)
256 (win32_process_target::write_pc): Declare.
257 * win32-low.c (win32_process_target::read_pc)
258 (win32_process_target::write_pc): New methods.
259 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
260 functions.
261 (the_low_target): Update.
262 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
263 functions.
264 (the_low_target): Update.
265
2c1d95e8
TT
2662020-04-08 Tom Tromey <tromey@adacore.com>
267
268 * win32-low.c (win32_kill, get_child_debug_event): Use
269 wait_for_debug_event.
270
e758e19c
TT
2712020-04-08 Tom Tromey <tromey@adacore.com>
272
273 * win32-low.c (child_continue): Call continue_last_debug_event.
274
8d30e395
TT
2752020-04-08 Tom Tromey <tromey@adacore.com>
276
277 * win32-low.c (handle_exception): Remove.
278 (windows_nat::handle_ms_vc_exception): New function.
279 (get_child_debug_event): Add "continue_status" parameter.
280 Update.
281 (win32_wait): Update.
282
a816ba18
TT
2832020-04-08 Tom Tromey <tromey@adacore.com>
284
285 * win32-low.c (windows_nat::handle_load_dll): Rename from
286 handle_load_dll. No longer static.
287 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
288 No longer static.
289
d41b524f
TT
2902020-04-08 Tom Tromey <tromey@adacore.com>
291
292 * win32-low.c (handle_output_debug_string): Add parameter. Change
293 return type.
294 (win32_kill, get_child_debug_event): Update.
295
3c76026d
TT
2962020-04-08 Tom Tromey <tromey@adacore.com>
297
298 * win32-low.c (current_process_handle, current_process_id)
299 (main_thread_id, last_sig, current_event, siginfo_er): Move to
300 nat/windows-nat.c.
301
9d8679cc
TT
3022020-04-08 Tom Tromey <tromey@adacore.com>
303
304 * win32-low.c (get_image_name): Remove.
305 (handle_load_dll): Update.
306
28688adf
TT
3072020-04-08 Tom Tromey <tromey@adacore.com>
308
309 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
310 No longer static. Change parameters.
311 (child_add_thread, child_fetch_inferior_registers)
312 (child_store_inferior_registers, win32_resume)
313 (win32_get_tib_address): Update.
314
4834dad0
TT
3152020-04-08 Tom Tromey <tromey@adacore.com>
316
317 * win32-low.h (struct win32_target_ops): Use qualified names where
318 needed.
319 * win32-i386-low.c: Add "using namespace".
320 * win32-low.c: Add "using namespace".
321 * win32-arm-low.c: Add "using namespace".
322
65bafd5b
TT
3232020-04-08 Tom Tromey <tromey@adacore.com>
324
325 * win32-low.c (delete_thread_info): Don't call CloseHandle.
326
98a03287
TT
3272020-04-08 Tom Tromey <tromey@adacore.com>
328
329 * win32-low.c (win32_require_context, suspend_one_thread): Use
330 windows_thread_info::suspend.
331 (continue_one_thread): Use windows_thread_info::resume.
332 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
333
62fe396b
TT
3342020-04-08 Tom Tromey <tromey@adacore.com>
335
336 * win32-i386-low.c (update_debug_registers)
337 (i386_prepare_to_resume, i386_thread_added): Update.
338
e9534bd2
TT
3392020-04-08 Tom Tromey <tromey@adacore.com>
340
341 * win32-low.c (child_add_thread): Use new.
342 (delete_thread_info): Use delete.
343
ae1f8880
TT
3442020-04-08 Tom Tromey <tromey@adacore.com>
345
346 * win32-low.h (struct windows_thread_info): Remove.
347
e56f8ccb
TT
3482020-04-08 Tom Tromey <tromey@adacore.com>
349
350 * win32-low.h (struct windows_thread_info): Rename from
351 win32_thread_info. Remove typedef.
352 (struct win32_target_ops, win32_require_context): Update.
353 * win32-low.c (win32_get_thread_context)
354 (win32_set_thread_context, win32_prepare_to_resume)
355 (win32_require_context, thread_rec, child_add_thread)
356 (delete_thread_info, continue_one_thread)
357 (child_fetch_inferior_registers, child_store_inferior_registers)
358 (win32_resume, suspend_one_thread, win32_get_tib_address):
359 Update.
360 * win32-i386-low.c (update_debug_registers)
361 (win32_get_current_dr, i386_get_thread_context)
362 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
363 (i386_fetch_inferior_register, i386_store_inferior_register):
364 Update.
365 * win32-arm-low.c (arm_get_thread_context)
366 (arm_fetch_inferior_register, arm_store_inferior_register):
367 Update.
368
0dd7b52e
TBA
3692020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
370
371 * linux-low.h (struct linux_target_ops): Remove.
372 (the_low_target): Remove.
373 * linux-x86-low.cc (the_low_target): Remove.
374 * linux-aarch64-low.cc (the_low_target): Ditto.
375 * linux-arm-low.cc (the_low_target): Ditto.
376 * linux-bfin-low.cc (the_low_target): Ditto.
377 * linux-cris-low.cc (the_low_target): Ditto.
378 * linux-crisv32-low.cc (the_low_target): Ditto.
379 * linux-ia64-low.cc (the_low_target): Ditto.
380 * linux-m32r-low.cc (the_low_target): Ditto.
381 * linux-m68k-low.cc (the_low_target): Ditto.
382 * linux-mips-low.cc (the_low_target): Ditto.
383 * linux-nios2-low.cc (the_low_target): Ditto.
384 * linux-ppc-low.cc (the_low_target): Ditto.
385 * linux-riscv-low.cc (the_low_target): Ditto.
386 * linux-s390-low.cc (the_low_target): Ditto.
387 * linux-sh-low.cc (the_low_target): Ditto.
388 * linux-sparc-low.cc (the_low_target): Ditto.
389 * linux-tic6x-low.cc (the_low_target): Ditto.
390 * linux-tile-low.cc (the_low_target): Ditto.
391 * linux-xtensa-low.cc (the_low_target): Ditto.
392
fc5ecdb6
TBA
3932020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
394
395 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
396 linux target define the op by overriding the declaration in
397 process_stratum_target.
398
399 * linux-low.h (struct linux_target_ops): Remove the op.
400 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
401 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
402 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
403 (x86_get_ipa_tdesc_idx): Turn into...
404 (x86_target::get_ipa_tdesc_idx): ...this.
405 (the_low_target): Remove the op field.
406 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
407 (ppc_get_ipa_tdesc_idx): Turn into...
408 (ppc_target::get_ipa_tdesc_idx): ...this.
409 (the_low_target): Remove the op field.
410 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
411 (s390_get_ipa_tdesc_idx): Turn into...
412 (s390_target::get_ipa_tdesc_idx): ...this.
413 (the_low_target): Remove the op field.
414
9eedd27d
TBA
4152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
416
417 Turn the 'get_syscall_trapinfo' linux target op into a method
418 of process_stratum_target.
419
420 * linux-low.h (struct linux_target_ops): Remove the op.
421 (class linux_process_target) <get_syscall_trapinfo>
422 <gdb_catch_this_syscall>
423 <low_supports_catch_syscall>
424 <low_get_syscall_trapinfo>: Declare.
425 * linux-low.cc (get_syscall_trapinfo): Turn into...
426 (linux_process_target::get_syscall_trapinfo): ...this.
427 (linux_process_target::low_get_syscall_trapinfo): Define.
428 (gdb_catch_this_syscall_p): Turn into...
429 (linux_process_target::gdb_catch_this_syscall): ...this.
430 (linux_process_target::low_supports_catch_syscall): Define.
431
432 Update the callers below.
433
434 (linux_process_target::wait_1)
435 (linux_process_target::supports_catch_syscall)
436
437 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
438 <low_get_syscall_trapinfo>: Declare.
439 (x86_target::low_supports_catch_syscall): Define.
440 (x86_get_syscall_trapinfo): Turn into...
441 (x86_target::low_get_syscall_trapinfo): ...this.
442 (the_low_target): Remove the op field.
443 * linux-aarch64-low.cc (class aarch64_target)
444 <low_supports_catch_syscall>
445 <low_get_syscall_trapinfo>: Declare.
446 (aarch64_target::low_supports_catch_syscall): Define.
447 (aarch64_get_syscall_trapinfo): Turn into...
448 (aarch64_target::low_get_syscall_trapinfo): ...this.
449 (the_low_target): Remove the op field.
450 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
451 <low_get_syscall_trapinfo>: Declare.
452 (arm_target::low_supports_catch_syscall): Define.
453 (arm_get_syscall_trapinfo): Turn into...
454 (arm_target::low_get_syscall_trapinfo): ...this.
455 (the_low_target): Remove the op field.
456 * linux-ppc-low.cc (the_low_target): Remove the op field.
457 * linux-s390-low.cc (the_low_target): Remove the op field.
458
b31cdfa6
TBA
4592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
460
461 Remove the 'supports_hardware_single_step' linux target op and
462 override the process_stratum_target's op definition in
463 linux_process_target to return true.
464
465 * linux-low.h (struct linux_target_ops): Remove the op.
466 (class linux_process_target) <finish_step_over>
467 <maybe_hw_step>: Declare.
468 * linux-low.cc (can_hardware_single_step): Remove.
469 (maybe_hw_step): Turn into...
470 (linux_process_target::maybe_hw_step): ...this.
471 (finish_step_over): Turn into...
472 (linux_process_target::finish_step_over): ...this.
473 (linux_process_target::supports_hardware_single_step): Update
474 to return true.
475
476 Update the callers below.
477
478 (linux_process_target::single_step)
479 (linux_process_target::resume_one_lwp_throw)
480
481 * linux-arm-low.cc (class arm_target)
482 <supports_hardware_single_step>: Declare.
483 (arm_supports_hardware_single_step): Turn into...
484 (arm_target::supports_hardware_single_step): ...this.
485 (the_low_target): Remove the op field.
486 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
487 (the_low_target): Remove the op field.
488 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
489 Remove.
490 (the_low_target): Remove the op field.
491 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
492 (the_low_target): Remove the op field.
493 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
494 (the_low_target): Remove the op field.
495 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
496 (the_low_target): Remove the op field.
497 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
498 (the_low_target): Remove the op field.
499 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
500 (the_low_target): Remove the op field.
501 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
502 (the_low_target): Remove the op field.
503 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
504 (the_low_target): Remove the op field.
505 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
506 (the_low_target): Remove the op field.
507 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
508 (the_low_target): Remove the op field.
509 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
510 Remove.
511 (the_low_target): Remove the op field.
512
9cfd8715
TBA
5132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
514
515 Turn the 'supports_range_stepping' linux target op into a method
516 of linux_process_target.
517
518 * linux-low.h (struct linux_target_ops): Remove the op.
519 (class linux_process_target) <low_supports_range_stepping>: Declare.
520 * linux-low.cc (linux_process_target::low_supports_range_stepping):
521 Define.
522 (linux_process_target::supports_range_stepping): Update the call
523 site.
524 * linux-x86-low.cc (class x86_target)
525 <low_supports_range_stepping>: Declare.
526 (x86_supports_range_stepping): Turn into...
527 (x86_target::low_supports_range_stepping): ...this.
528 (the_low_target): Remove the op field.
529 * linux-aarch64-low.cc (class aarch64_target)
530 <low_supports_range_stepping>: Declare.
531 (aarch64_supports_range_stepping): Turn into...
532 (aarch64_target::low_supports_range_stepping): ...this.
533 (the_low_target): Remove the op field.
534 * linux-arm-low.cc (the_low_target): Remove the op field.
535 * linux-bfin-low.cc (the_low_target): Ditto.
536 * linux-crisv32-low.cc (the_low_target): Ditto.
537 * linux-m32r-low.cc (the_low_target): Ditto.
538 * linux-m68k-low.cc (the_low_target): Ditto.
539 * linux-ppc-low.cc (the_low_target): Ditto.
540 * linux-s390-low.cc (the_low_target): Ditto.
541 * linux-sh-low.cc (the_low_target): Ditto.
542 * linux-tic6x-low.cc (the_low_target): Ditto.
543 * linux-tile-low.cc (the_low_target): Ditto.
544 * linux-xtensa-low.cc (the_low_target): Ditto.
545
ab64c999
TBA
5462020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
547
548 Remove the 'emit_ops' linux target ops and let the concrete
549 linux target define the op by overriding the declaration of
550 process_stratum_target.
551
552 * linux-low.h (struct linux_target_ops): Remove the op.
553 (class linux_process_target) <emit_ops>: Remove.
554 * linux-low.cc (linux_process_target::emit_ops): Remove.
555 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
556 (x86_emit_ops): Turn into...
557 (x86_target::emit_ops): ...this.
558 (the_low_target): Remove the op field.
559 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
560 (aarch64_emit_ops): Turn into...
561 (aarch64_target::emit_ops): ...this.
562 (the_low_target): Remove the op field.
563 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
564 (ppc_emit_ops): Turn into...
565 (ppc_target::emit_ops): ...this.
566 (the_low_target): Remove the op field.
567 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
568 (s390_emit_ops): Turn into...
569 (s390_target::emit_ops): ...this.
570 (the_low_target): Remove the op field.
571 * linux-arm-low.cc (the_low_target): Remove the op field.
572 * linux-bfin-low.cc (the_low_target): Ditto.
573 * linux-crisv32-low.cc (the_low_target): Ditto.
574 * linux-m32r-low.cc (the_low_target): Ditto.
575 * linux-m68k-low.cc (the_low_target): Ditto.
576 * linux-sh-low.cc (the_low_target): Ditto.
577 * linux-tic6x-low.cc (the_low_target): Ditto.
578 * linux-tile-low.cc (the_low_target): Ditto.
579 * linux-xtensa-low.cc (the_low_target): Ditto.
580
809a0c35
TBA
5812020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
582
583 Remove the 'install_fast_tracepoint_jump_pad' and
584 'get_min_fast_tracepoint_insn_len' linux target ops to let the
585 concrete linux target define the ops by overriding the declarations
586 of process_stratum_target.
587
588 * linux-low.h (struct linux_target_ops): Remove the ops.
589 (class linux_process_target) <supports_fast_tracepoints>
590 <install_fast_tracepoint_jump_pad>
591 <get_min_fast_tracepoint_insn_len>: Remove.
592 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
593 (linux_process_target::install_fast_tracepoint_jump_pad)
594 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
595 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
596 <install_fast_tracepoint_jump_pad>
597 <get_min_fast_tracepoint_insn_len>: Declare.
598 (x86_target::supports_fast_tracepoints): Define.
599 (x86_install_fast_tracepoint_jump_pad): Turn into...
600 (x86_target::install_fast_tracepoint_jump_pad): ...this.
601 (x86_get_min_fast_tracepoint_insn_len): Turn into...
602 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
603 (the_low_target): Remove the op fields.
604 * linux-aarch64-low.cc (class aarch64_target)
605 <supports_fast_tracepoints>
606 <install_fast_tracepoint_jump_pad>
607 <get_min_fast_tracepoint_insn_len>: Declare.
608 (aarch64_target::supports_fast_tracepoints): Define.
609 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
610 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
611 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
612 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
613 (the_low_target): Remove the op fields.
614 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
615 <install_fast_tracepoint_jump_pad>
616 <get_min_fast_tracepoint_insn_len>: Declare.
617 (ppc_target::supports_fast_tracepoints): Define.
618 (ppc_install_fast_tracepoint_jump_pad): Turn into...
619 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
620 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
621 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
622 (the_low_target): Remove the op fields.
623 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
624 <install_fast_tracepoint_jump_pad>
625 <get_min_fast_tracepoint_insn_len>: Declare.
626 (s390_target::supports_fast_tracepoints): Define.
627 (s390_install_fast_tracepoint_jump_pad): Turn into...
628 (s390_target::install_fast_tracepoint_jump_pad): ...this.
629 (s390_get_min_fast_tracepoint_insn_len): Turn into...
630 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
631 (the_low_target): Remove the op fields.
632 * linux-arm-low.cc (the_low_target): Remove the op fields.
633 * linux-bfin-low.cc (the_low_target): Ditto.
634 * linux-crisv32-low.cc (the_low_target): Ditto.
635 * linux-m32r-low.cc (the_low_target): Ditto.
636 * linux-m68k-low.cc (the_low_target): Ditto.
637 * linux-sh-low.cc (the_low_target): Ditto.
638 * linux-tic6x-low.cc (the_low_target): Ditto.
639 * linux-tile-low.cc (the_low_target): Ditto.
640 * linux-xtensa-low.cc (the_low_target): Ditto.
641
13e567af
TBA
6422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
643
644 Turn the 'get_thread_area' linux target op into a method of
645 process_stratum_target.
646
647 * linux-low.h (struct linux_target_ops): Remove the op.
648 (class linux_process_target) <stuck_in_jump_pad>
649 <linux_fast_tracepoint_collecting>
650 <low_get_thread_area>: Declare.
651 * linux-low.cc (supports_fast_tracepoints): Remove.
652 (linux_fast_tracepoint_collecting): Turn into...
653 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
654 (linux_process_target::low_get_thread_area): Define.
655 (stuck_in_jump_pad_callback): Turn into...
656 (linux_process_target::stuck_in_jump_pad): ...this.
657
658 Update the caller below.
659
660 (linux_process_target::stabilize_threads)
661
662 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
663 Declare.
664 (x86_get_thread_area): Turn into...
665 (x86_target::low_get_thread_area): ...this.
666 (the_low_target): Remove the op field.
667 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
668 Declare.
669 (aarch64_get_thread_area): Turn into...
670 (aarch64_target::low_get_thread_area): ...this.
671 (the_low_target): Remove the op field.
672 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
673 Declare.
674 (ppc_get_thread_area): Turn into...
675 (ppc_target::low_get_thread_area): ...this.
676 (the_low_target): Remove the op field.
677 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
678 Declare.
679 (s390_get_thread_area): Turn into...
680 (s390_target::low_get_thread_area): ...this.
681 (the_low_target): Remove the op field.
682 * linux-arm-low.cc (the_low_target): Remove the op field.
683 * linux-bfin-low.cc (the_low_target): Ditto.
684 * linux-crisv32-low.cc (the_low_target): Ditto.
685 * linux-m32r-low.cc (the_low_target): Ditto.
686 * linux-m68k-low.cc (the_low_target): Ditto.
687 * linux-sh-low.cc (the_low_target): Ditto.
688 * linux-tic6x-low.cc (the_low_target): Ditto.
689 * linux-tile-low.cc (the_low_target): Ditto.
690 * linux-xtensa-low.cc (the_low_target): Ditto.
691
47f70aa7
TBA
6922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
693
694 Remote the 'supports_tracepoints' linux target op and let the
695 concrete linux target define it by overriding the op declared in
696 process_stratum_target.
697
698 * linux-low.h (struct linux_target_ops): Remove the op.
699 (class linux_process_target) <supports_tracepoints>: Remove.
700 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
701 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
702 Declare.
703 (x86_supports_tracepoints): Turn into...
704 (x86_target::supports_tracepoints): ...this.
705 (the_low_target): Remove the op field.
706 * linux-aarch64-low.cc (class aarch64_target)
707 <supports_tracepoints>: Declare.
708 (aarch64_supports_tracepoints): Turn into...
709 (aarch64_target::supports_tracepoints): ...this.
710 (the_low_target): Remove the op field.
711 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
712 Declare.
713 (ppc_supports_tracepoints): Turn into...
714 (ppc_target::supports_tracepoints): ...this.
715 (the_low_target): Remove the op field.
716 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
717 Declare.
718 (s390_supports_tracepoints): Turn into...
719 (s390_target::supports_tracepoints): ...this.
720 (the_low_target): Remove the op field.
721 * linux-arm-low.cc (the_low_target): Remove the op field.
722 * linux-bfin-low.cc (the_low_target): Ditto.
723 * linux-crisv32-low.cc (the_low_target): Ditto.
724 * linux-m32r-low.cc (the_low_target): Ditto.
725 * linux-m68k-low.cc (the_low_target): Ditto.
726 * linux-sh-low.cc (the_low_target): Ditto.
727 * linux-tic6x-low.cc (the_low_target): Ditto.
728 * linux-tile-low.cc (the_low_target): Ditto.
729 * linux-xtensa-low.cc (the_low_target): Ditto.
730
a5b5da92
TBA
7312020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
732
733 Remove the 'process_qsupported' linux target op and let a concrete
734 linux target define the op by overriding the op declaration in
735 process_stratum_target.
736
737 * linux-low.h (struct linux_target_ops): Remove the op.
738 (class linux_process_target) <process_qsupported>: Remove.
739 * linux-low.cc (linux_process_target::process_qsupported): Remove.
740 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
741 (x86_linux_process_qsupported): Turn into...
742 (x86_target::process_qsupported): ...this.
743 (the_low_target): Remove the op field.
744 * linux-aarch64-low.cc (the_low_target): Remove the op
745 field.
746 * linux-arm-low.cc (the_low_target): Ditto.
747 * linux-bfin-low.cc (the_low_target): Ditto.
748 * linux-crisv32-low.cc (the_low_target): Ditto.
749 * linux-m32r-low.cc (the_low_target): Ditto.
750 * linux-m68k-low.cc (the_low_target): Ditto.
751 * linux-ppc-low.cc (the_low_target): Ditto.
752 * linux-s390-low.cc (the_low_target): Ditto.
753 * linux-sh-low.cc (the_low_target): Ditto.
754 * linux-tic6x-low.cc (the_low_target): Ditto.
755 * linux-tile-low.cc (the_low_target): Ditto.
756 * linux-xtensa-low.cc (the_low_target): Ditto.
757
d7599cc0
TBA
7582020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
759
760 Turn the 'prepare_to_resume' linux target op into a method of
761 linux_process_target.
762
763 * linux-low.h (struct linux_target_ops): Remove the op.
764 (class linux_process_target) <low_prepare_to_resume>: Declare.
765 * linux-low.cc (linux_process_target::low_prepare_to_resume):
766 Define.
767
768 Update the callers below:
769
770 (linux_process_target::resume_one_lwp_throw)
771 (linux_process_target::low_prepare_to_resume)
772
773 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
774 Declare.
775 (x86_target::low_prepare_to_resume): Define.
776 (the_low_target): Remove the op field.
777 * linux-aarch64-low.cc (class aarch64_target)
778 <low_prepare_to_resume>: Declare.
779 (aarch64_target::low_prepare_to_resume): Define.
780 (the_low_target): Remove the op field.
781 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
782 Declare.
783 (arm_prepare_to_resume): Turn into...
784 (arm_target::low_prepare_to_resume): ...this.
785 (the_low_target): Remove the op field.
786 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
787 Declare.
788 (mips_linux_prepare_to_resume): Turn into...
789 (mips_target::low_prepare_to_resume): ...this.
790 (the_low_target): Remove the op field.
791 * linux-bfin-low.cc (the_low_target): Remove the op field.
792 * linux-crisv32-low.cc (the_low_target): Ditto.
793 * linux-m32r-low.cc (the_low_target): Ditto.
794 * linux-m68k-low.cc (the_low_target): Ditto.
795 * linux-ppc-low.cc (the_low_target): Ditto.
796 * linux-s390-low.cc (the_low_target): Ditto.
797 * linux-sh-low.cc (the_low_target): Ditto.
798 * linux-tic6x-low.cc (the_low_target): Ditto.
799 * linux-tile-low.cc (the_low_target): Ditto.
800 * linux-xtensa-low.cc (the_low_target): Ditto.
801
fd000fb3
TBA
8022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
803
804 Turn the 'new_process', 'delete_process', 'new_thread',
805 'delete_thread', and 'new_fork' linux target ops into methods
806 of linux_process_target.
807
808 * linux-low.h (struct linux_target_ops): Remove the ops.
809 (class linux_process_target) <add_linux_process>
810 <add_lwp>
811 <delete_lwp>
812 <attach_lwp>
813 <detach_one_lwp>
814 <check_zombie_leaders>
815 <filter_exit_event>
816 <low_new_process>
817 <low_delete_process>
818 <low_new_thread>
819 <low_delete_thread>
820 <low_new_fork>: Declare.
821 * linux-low.cc (delete_lwp): Turn into...
822 (linux_process_target::delete_lwp): ...this.
823 (linux_process_target::low_delete_thread): Define.
824 (linux_add_process): Turn into...
825 (linux_process_target::add_linux_process): ...this.
826 (linux_process_target::low_new_process): Define.
827 (linux_process_target::low_delete_process): Define.
828 (linux_process_target::low_new_fork): Define.
829 (add_lwp): Turn into...
830 (linux_process_target::add_lwp): ...this.
831 (linux_process_target::low_new_thread): Define.
832 (linux_attach_lwp): Turn into...
833 (linux_process_target::attach_lwp): ...this.
834 (linux_detach_one_lwp): Turn into...
835 (linux_process_target::detach_one_lwp): ...this.
836 (linux_detach_lwp_callback): Remove and inline...
837 (linux_process_target::detach): ...here.
838 (check_zombie_leaders): Turn into...
839 (linux_process_target::check_zombie_leaders): ...this.
840 (filter_exit_event): Turn into...
841 (linux_process_target::filter_exit_event): ...this.
842
843 Update the callers below.
844
845 (linux_process_target::handle_extended_wait)
846 (linux_process_target::create_inferior)
847 (attach_proc_task_lwp_callback)
848 (linux_process_target::attach)
849 (linux_process_target::detach)
850 (linux_process_target::mourn)
851 * thread-db.cc (attach_thread)
852
853 * linux-x86-low.cc (class x86_target) <low_new_process>
854 <low_delete_process>
855 <low_new_thread>
856 <low_delete_thread>
857 <low_new_fork>: Declare.
858 (x86_linux_new_process): Turn into...
859 (x86_target::low_new_process): ...this.
860 (x86_linux_delete_process): Turn into...
861 (x86_target::low_delete_process): ...this.
862 (x86_target::low_new_thread): Define.
863 (x86_target::low_delete_thread): Define.
864 (x86_linux_new_fork): Turn into...
865 (x86_target::low_new_fork): ...this.
866 (the_low_target): Remove the op fields.
867 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
868 <low_delete_process>
869 <low_new_thread>
870 <low_delete_thread>
871 <low_new_fork>: Declare.
872 (aarch64_linux_new_process): Turn into...
873 (aarch64_target::low_new_process): ...this.
874 (aarch64_linux_delete_process): Turn into...
875 (aarch64_target::low_delete_process): ...this.
876 (aarch64_target::low_new_thread): Define.
877 (aarch64_target::low_delete_thread): Define.
878 (aarch64_linux_new_fork): Turn into...
879 (aarch64_target::low_new_fork): ...this.
880 (the_low_target): Remove the op fields.
881 * linux-arm-low.cc (class arm_target) <low_new_process>
882 <low_delete_process>
883 <low_new_thread>
884 <low_delete_thread>
885 <low_new_fork>: Declare.
886 (arm_new_process): Turn into...
887 (arm_target::low_new_process): ...this.
888 (arm_delete_process): Turn into...
889 (arm_target::low_delete_process): ...this.
890 (arm_new_thread): Turn into...
891 (arm_target::low_new_thread): ...this.
892 (arm_delete_thread): Turn into...
893 (arm_target::low_delete_thread): ...this.
894 (arm_new_fork): Turn into...
895 (arm_target::low_new_fork): ...this.
896 (the_low_target): Remove the op fields.
897 * linux-mips-low.cc (class mips_target) <low_new_process>
898 <low_delete_process>
899 <low_new_thread>
900 <low_delete_thread>
901 <low_new_fork>: Declare.
902 (mips_linux_new_process): Turn into...
903 (mips_target::low_new_process): ...this.
904 (mips_linux_delete_process): Turn into...
905 (mips_target::low_delete_process): ...this.
906 (mips_linux_new_thread): Turn into...
907 (mips_target::low_new_thread): ...this.
908 (mips_linux_delete_thread): Turn into...
909 (mips_target::low_delete_thread): ...this.
910 (mips_linux_new_fork): Turn into...
911 (mips_target::low_new_fork): ...this.
912 (the_low_target): Remove the op fields.
913 * linux-bfin-low.cc (the_low_target): Remove the op fields.
914 * linux-crisv32-low.cc (the_low_target): Ditto.
915 * linux-m32r-low.cc (the_low_target): Ditto.
916 * linux-m68k-low.cc (the_low_target): Ditto.
917 * linux-ppc-low.cc (the_low_target): Ditto.
918 * linux-s390-low.cc (the_low_target): Ditto.
919 * linux-sh-low.cc (the_low_target): Ditto.
920 * linux-tic6x-low.cc (the_low_target): Ditto.
921 * linux-tile-low.cc (the_low_target): Ditto.
922 * linux-xtensa-low.cc (the_low_target): Ditto.
923
cb63de7c
TBA
9242020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
925
926 Turn the 'siginfo_fixup' linux target op into a method of
927 linux_process_target.
928
929 * linux-low.h (struct linux_target_ops): Remove the op.
930 (class linux_process_target) <siginfo_fixup>
931 <low_siginfo_fixup>: Declare.
932 * linux-low.cc (siginfo_fixup): Turn into...
933 (linux_process_target::siginfo_fixup): ...this.
934 (linux_process_target::low_siginfo_fixup): Define.
935 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
936 (x86_siginfo_fixup): Turn into...
937 (x86_target::low_siginfo_fixup): ...this.
938 (the_low_target): Remove the op field.
939 * linux-aarch64-low.cc (class aarch64_target):
940 <low_siginfo_fixup>: Declare.
941 (aarch64_linux_siginfo_fixup): Turn into...
942 (aarch64_target::low_siginfo_fixup): ...this.
943 (the_low_target): Remove the op field.
944 * linux-arm-low.cc (the_low_target): Remove the op field.
945 * linux-bfin-low.cc (the_low_target): Ditto.
946 * linux-crisv32-low.cc (the_low_target): Ditto.
947 * linux-m32r-low.cc (the_low_target): Ditto.
948 * linux-m68k-low.cc (the_low_target): Ditto.
949 * linux-mips-low.cc (the_low_target): Ditto.
950 * linux-ppc-low.cc (the_low_target): Ditto.
951 * linux-s390-low.cc (the_low_target): Ditto.
952 * linux-sh-low.cc (the_low_target): Ditto.
953 * linux-tic6x-low.cc (the_low_target): Ditto.
954 * linux-tile-low.cc (the_low_target): Ditto.
955 * linux-xtensa-low.cc (the_low_target): Ditto.
956
b35db733
TBA
9572020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
958
959 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
960 linux target ops into methods of linux_process_target.
961
962 * linux-low.h (struct linux_target_ops): Remove the ops.
963 (class linux_process_target) <low_collect_ptrace_register>
964 <low_store_ptrace_register>: Declare.
965 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
966 (linux_process_target::low_supply_ptrace_register): Define.
967
968 Update the callers below.
969
970 (linux_process_target::fetch_register)
971 (linux_process_target::store_register)
972
973 * linux-x86-low.cc (the_low_target): Remove the op fields.
974 * linux-aarch64-low.cc (the_low_target): Ditto.
975 * linux-arm-low.cc (the_low_target): Ditto.
976 * linux-bfin-low.cc (the_low_target): Ditto.
977 * linux-crisv32-low.cc (the_low_target): Ditto.
978 * linux-m32r-low.cc (the_low_target): Ditto.
979 * linux-m68k-low.cc (the_low_target): Ditto.
980 * linux-sh-low.cc (the_low_target): Ditto.
981 * linux-sparc-low.cc (the_low_target): Ditto.
982 * linux-tic6x-low.cc (the_low_target): Ditto.
983 * linux-tile-low.cc (the_low_target): Ditto.
984 * linux-xtensa-low.cc (the_low_target): Ditto.
985 * linux-mips-low.cc (class mips_target)
986 <low_collect_ptrace_register>
987 <low_supply_ptrace_register>: Declare.
988 (mips_collect_ptrace_register): Turn into ...
989 (mips_target::low_collect_ptrace_register): ...this.
990 (mips_supply_ptrace_register): Turn into...
991 (mips_target::low_supply_ptrace_register): ...this.
992 (the_low_target): Remove the op fields.
993 * linux-ppc-low.cc (class ppc_target)
994 <low_collect_ptrace_register>
995 <low_supply_ptrace_register>: Declare.
996 (ppc_collect_ptrace_register): Turn into ...
997 (ppc_target::low_collect_ptrace_register): ...this.
998 (ppc_supply_ptrace_register): Turn into ...
999 (ppc_target::low_supply_ptrace_register): ...this.
1000 (ppc_fill_gregset): Update for the calls to
1001 low_collect_ptrace_register.
1002 (the_low_target): Remove the op fields.
1003 * linux-s390-low.cc (class s390_target)
1004 <low_collect_ptrace_register>
1005 <low_supply_ptrace_register>: Declare.
1006 (s390_collect_ptrace_register): Turn into ...
1007 (s390_target::low_collect_ptrace_register): ...this.
1008 (s390_supply_ptrace_register): Turn into ...
1009 (s390_target::low_supply_ptrace_register): ...this.
1010 (s390_fill_gregset): Update for the calls to
1011 low_collect_ptrace_register.
1012 (the_low_target): Remove the op fields.
1013
ac1bbaca
TBA
10142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1015
1016 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1017 target ops into methods of linux_process_target.
1018
1019 * linux-low.h (struct linux_target_ops): Remove the ops.
1020 (class linux_process_target) <check_stopped_by_watchpoint>
1021 <low_stopped_by_watchpoint>
1022 <low_stopped_data_address>: Declare.
1023 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1024 (linux_process_target::check_stopped_by_watchpoint): ...this.
1025 (linux_process_target::low_stopped_by_watchpoint): Define.
1026 (linux_process_target::low_stopped_data_address): Define.
1027 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1028 <low_stopped_data_address>: Declare.
1029 (x86_stopped_by_watchpoint): Turn into...
1030 (x86_target::low_stopped_by_watchpoint): ...this.
1031 (x86_stopped_data_address): Turn into...
1032 (x86_target::low_stopped_data_address): ...this.
1033 (the_low_target): Remove the op fields.
1034 * linux-aarch64-low.cc (class aarch64_target)
1035 <low_stopped_by_watchpoint>
1036 <low_stopped_data_address>: Declare.
1037 (aarch64_stopped_by_watchpoint): Turn into...
1038 (aarch64_target::low_stopped_by_watchpoint): ...this.
1039 (aarch64_stopped_data_address): Turn into...
1040 (aarch64_target::low_stopped_data_address): ...this.
1041 (the_low_target): Remove the op fields.
1042 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1043 <low_stopped_data_address>: Declare.
1044 (arm_stopped_by_watchpoint): Turn into...
1045 (arm_target::low_stopped_by_watchpoint): ...this.
1046 (arm_stopped_data_address): Turn into...
1047 (arm_target::low_stopped_data_address): ...this.
1048 (the_low_target): Remove the op fields.
1049 * linux-crisv32-low.cc (class crisv32_target)
1050 <low_stopped_by_watchpoint>
1051 <low_stopped_data_address>: Declare.
1052 (cris_stopped_by_watchpoint): Turn into...
1053 (crisv32_target::low_stopped_by_watchpoint): ...this.
1054 (cris_stopped_data_address): Turn into...
1055 (crisv32_target::low_stopped_data_address): ...this.
1056 (the_low_target): Remove the op fields.
1057 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1058 <low_stopped_data_address>: Declare.
1059 (mips_stopped_by_watchpoint): Turn into...
1060 (mips_target::low_stopped_by_watchpoint): ...this.
1061 (mips_stopped_data_address): Turn into...
1062 (mips_target::low_stopped_data_address): ...this.
1063 (the_low_target): Remove the op fields.
1064 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1065 * linux-m32r-low.cc (the_low_target): Ditto.
1066 * linux-m68k-low.cc (the_low_target): Ditto.
1067 * linux-ppc-low.cc (the_low_target): Ditto.
1068 * linux-s390-low.cc (the_low_target): Ditto.
1069 * linux-sh-low.cc (the_low_target): Ditto.
1070 * linux-sparc-low.cc (the_low_target): Ditto.
1071 * linux-tic6x-low.cc (the_low_target): Ditto.
1072 * linux-tile-low.cc (the_low_target): Ditto.
1073 * linux-xtensa-low.cc (the_low_target): Ditto.
1074
9db9aa23
TBA
10752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1076
1077 Turn the 'insert_point' and 'remove_point' linux target ops into
1078 methods of linux_process_target.
1079
1080 * linux-low.h (struct linux_target_ops): Remove the ops.
1081 (class linux_process_target) <low_insert_point>
1082 <low_remove_point>: Declare.
1083 * linux-low.cc (linux_process_target::low_insert_point)
1084 (linux_process_target::low_remove_point): Define.
1085 (linux_process_target::insert_point)
1086 (linux_process_target::remove_point): Update for calls to
1087 low_insert_point and low_remove_point.
1088 * linux-x86-low.cc (class x86_target) <low_insert_point>
1089 <low_remove_point>: Declare.
1090 (x86_insert_point): Turn into...
1091 (x86_target::low_insert_point): ...this.
1092 (x86_remove_point): Turn into...
1093 (x86_target::low_remove_point): ...this.
1094 (the_low_target): Remove the op fields.
1095 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1096 <low_remove_point>: Declare.
1097 (aarch64_insert_point): Turn into...
1098 (aarch64_target::low_insert_point): ...this.
1099 (aarch64_remove_point): Turn into...
1100 (aarch64_target::low_remove_point): ...this.
1101 (the_low_target): Remove the op fields.
1102 * linux-arm-low.cc (class arm_target) <low_insert_point>
1103 <low_remove_point>: Declare.
1104 (arm_insert_point): Turn into...
1105 (arm_target::low_insert_point): ...this.
1106 (arm_remove_point): Turn into...
1107 (arm_target::low_remove_point): ...this.
1108 (the_low_target): Remove the op fields.
1109 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1110 <low_remove_point>: Declare.
1111 (crisv32_insert_point): Turn into...
1112 (crisv32_target::low_insert_point): ...this.
1113 (crisv32_remove_point): Turn into...
1114 (crisv32_target::low_remove_point): ...this.
1115 (the_low_target): Remove the op fields.
1116 * linux-mips-low.cc (class mips_target) <low_insert_point>
1117 <low_remove_point>: Declare.
1118 (mips_insert_point): Turn into...
1119 (mips_target::low_insert_point): ...this.
1120 (mips_remove_point): Turn into...
1121 (mips_target::low_remove_point): ...this.
1122 (the_low_target): Remove the op fields.
1123 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1124 <low_remove_point>: Declare.
1125 (ppc_insert_point): Turn into...
1126 (ppc_target::low_insert_point): ...this.
1127 (ppc_remove_point): Turn into...
1128 (ppc_target::low_remove_point): ...this.
1129 (the_low_target): Remove the op fields.
1130 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1131 * linux-m32r-low.cc (the_low_target): Ditto.
1132 * linux-m68k-low.cc (the_low_target): Ditto.
1133 * linux-s390-low.cc (the_low_target): Ditto.
1134 * linux-sh-low.cc (the_low_target): Ditto.
1135 * linux-sparc-low.cc (the_low_target): Ditto.
1136 * linux-tic6x-low.cc (the_low_target): Ditto.
1137 * linux-tile-low.cc (the_low_target): Ditto.
1138 * linux-xtensa-low.cc (the_low_target): Ditto.
1139
007c9b97
TBA
11402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1141
1142 Remove the 'supports_z_point_type' linux target op and let the
1143 concrete linux target define it by overriding the op declared in
1144 process_stratum_target.
1145
1146 * linux-low.cc (linux_process_target::supports_z_point_type):
1147 Remove.
1148 * linux-low.h (struct linux_target_ops): Remove the op.
1149 (class linux_process_target) <supports_z_point_type>: Remove.
1150 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1151 Declare.
1152 (x86_supports_z_point_type): Turn into...
1153 (x86_target::supports_z_point_type): ...this.
1154 (the_low_target): Remove the op field.
1155 * linux-aarch64-low.cc (class aarch64_target)
1156 <supports_z_point_type>: Declare.
1157 (aarch64_supports_z_point_type): Turn into...
1158 (aarch64_target::supports_z_point_type): ...this.
1159 (the_low_target): Remove the op field.
1160 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1161 Declare.
1162 (arm_supports_z_point_type): Turn into...
1163 (arm_target::supports_z_point_type): ...this.
1164 (the_low_target): Remove the op field.
1165 * linux-crisv32-low.cc (class crisv32_target)
1166 <supports_z_point_type>: Declare.
1167 (cris_supports_z_point_type): Turn into...
1168 (crisv32_target::supports_z_point_type): ...this.
1169 (the_low_target): Remove the op field.
1170 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1171 Declare.
1172 (mips_supports_z_point_type): Turn into...
1173 (mips_target::supports_z_point_type): ...this.
1174 (the_low_target): Remove the op field.
1175 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1176 Declare.
1177 (ppc_supports_z_point_type): Turn into...
1178 (ppc_target::supports_z_point_type): ...this.
1179 (the_low_target): Remove the op field.
1180 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1181 Declare.
1182 (s390_supports_z_point_type): Turn into...
1183 (s390_target::supports_z_point_type): ...this.
1184 (the_low_target): Remove the op field.
1185 * linux-bfin-low.cc (the_low_target): Remove the op field.
1186 * linux-m32r-low.cc (the_low_target): Ditto.
1187 * linux-m68k-low.cc (the_low_target): Ditto.
1188 * linux-sh-low.cc (the_low_target): Ditto.
1189 * linux-sparc-low.cc (the_low_target): Ditto.
1190 * linux-tic6x-low.cc (the_low_target): Ditto.
1191 * linux-tile-low.cc (the_low_target): Ditto.
1192 * linux-xtensa-low.cc (the_low_target): Ditto.
1193
d7146cda
TBA
11942020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1195
1196 Turn the 'breakpoint_at' linux target op into a method of
1197 linux_process_target.
1198
1199 * linux-low.h (struct linux_target_ops): Remove the op.
1200 (class linux_process_target) <low_breakpoint_at>: Declare.
1201
1202 Update the callers below:
1203
1204 * linux-low.cc (linux_process_target::save_stop_reason)
1205 (linux_process_target::thread_still_has_status_pending)
1206 (linux_process_target::wait_1)
1207
1208 * linux-x86-low.cc (class x86_target)
1209 <low_breakpoint_at>: Declare.
1210 (x86_breakpoint_at): Turn into...
1211 (x86_target::low_breakpoint_at): ...this.
1212 (the_low_target): Remove the op field.
1213 * linux-aarch64-low.cc (class aarch64_target)
1214 <low_breakpoint_at>: Declare.
1215 (aarch64_breakpoint_at): Turn into...
1216 (aarch64_target::low_breakpoint_at): ...this.
1217 (the_low_target): Remove the op field.
1218 * linux-arm-low.cc (class arm_target)
1219 <low_breakpoint_at>: Declare.
1220 (arm_target::low_breakpoint_at): Define.
1221 (the_low_target): Remove the op field.
1222 * linux-bfin-low.cc (class bfin_target)
1223 <low_breakpoint_at>: Declare.
1224 (bfin_breakpoint_at): Turn into...
1225 (bfin_target::low_breakpoint_at): ...this.
1226 (the_low_target): Remove the op field.
1227 * linux-cris-low.cc (class cris_target)
1228 <low_breakpoint_at>: Declare.
1229 (cris_breakpoint_at): Turn into...
1230 (cris_target::low_breakpoint_at): ...this.
1231 (the_low_target): Remove the op field.
1232 * linux-crisv32-low.cc (class crisv32_target)
1233 <low_breakpoint_at>: Declare.
1234 (crisv32_breakpoint_at): Turn into...
1235 (crisv32_target::low_breakpoint_at): ...this.
1236 (the_low_target): Remove the op field.
1237 * linux-ia64-low.cc (class ia64_target)
1238 <low_breakpoint_at>: Declare.
1239 (ia64_target::low_breakpoint_at): Define.
1240 * linux-m32r-low.cc (class m32r_target)
1241 <low_breakpoint_at>: Declare.
1242 (m32r_breakpoint_at): Turn into...
1243 (m32r_target::low_breakpoint_at): ...this.
1244 (the_low_target): Remove the op field.
1245 * linux-m68k-low.cc (class m68k_target)
1246 <low_breakpoint_at>: Declare.
1247 (m68k_breakpoint_at): Turn into...
1248 (m68k_target::low_breakpoint_at): ...this.
1249 (the_low_target): Remove the op field.
1250 * linux-mips-low.cc (class mips_target)
1251 <low_breakpoint_at>: Declare.
1252 (mips_breakpoint_at): Turn into...
1253 (mips_target::low_breakpoint_at): ...this.
1254 (the_low_target): Remove the op field.
1255 * linux-nios2-low.cc (class nios2_target)
1256 <low_breakpoint_at>: Declare.
1257 (nios2_breakpoint_at): Turn into...
1258 (nios2_target::low_breakpoint_at): ...this.
1259 (the_low_target): Remove the op field.
1260 * linux-ppc-low.cc (class ppc_target)
1261 <low_breakpoint_at>: Declare.
1262 (ppc_breakpoint_at): Turn into...
1263 (ppc_target::low_breakpoint_at): ...this.
1264 (the_low_target): Remove the op field.
1265 * linux-riscv-low.cc (class riscv_target)
1266 <low_breakpoint_at>: Declare.
1267 (riscv_breakpoint_at): Turn into...
1268 (riscv_target::low_breakpoint_at): ...this.
1269 (the_low_target): Remove the op field.
1270 * linux-s390-low.cc (class s390_target)
1271 <low_breakpoint_at>: Declare.
1272 (s390_breakpoint_at): Turn into...
1273 (s390_target::low_breakpoint_at): ...this.
1274 (the_low_target): Remove the op field.
1275 * linux-sh-low.cc (class sh_target)
1276 <low_breakpoint_at>: Declare.
1277 (sh_breakpoint_at): Turn into...
1278 (sh_target::low_breakpoint_at): ...this.
1279 (the_low_target): Remove the op field.
1280 * linux-sparc-low.cc (class sparc_target)
1281 <low_breakpoint_at>: Declare.
1282 (sparc_breakpoint_at): Turn into...
1283 (sparc_target::low_breakpoint_at): ...this.
1284 (the_low_target): Remove the op field.
1285 * linux-tic6x-low.cc (class tic6x_target)
1286 <low_breakpoint_at>: Declare.
1287 (tic6x_breakpoint_at): Turn into...
1288 (tic6x_target::low_breakpoint_at): ...this.
1289 (the_low_target): Remove the op field.
1290 * linux-tile-low.cc (class tile_target)
1291 <low_breakpoint_at>: Declare.
1292 (tile_breakpoint_at): Turn into...
1293 (tile_target::low_breakpoint_at): ...this.
1294 (the_low_target): Remove the op field.
1295 * linux-xtensa-low.cc (class xtensa_target)
1296 <low_breakpoint_at>: Declare.
1297 (xtensa_breakpoint_at): Turn into...
1298 (xtensa_target::low_breakpoint_at): ...this.
1299 (the_low_target): Remove the op field.
1300
d4807ea2
TBA
13012020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1302
1303 Turn the 'decr_pc_after_break' linux_target_ops field into
1304 a method of linux_process_target.
1305
1306 * linux-low.h (struct linux_target_ops)
1307 <decr_pc_after_break>: Remove.
1308 (class linux_process_target) <low_decr_pc_after_break>: New method
1309 declaration.
1310 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1311 New method implementation.
1312
1313 Update the users below.
1314
1315 (linux_process_target::save_stop_reason)
1316 (linux_process_target::wait_1)
1317 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1318 New declaration.
1319 (x86_target::low_decr_pc_after_break): New method implementation.
1320 (the_low_target): Remove the field.
1321 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1322 New declaration.
1323 (bfin_target::low_decr_pc_after_break): New method implementation.
1324 (the_low_target): Remove the field.
1325 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1326 New declaration.
1327 (m68k_target::low_decr_pc_after_break): New method implementation.
1328 (the_low_target): Remove the field.
1329 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1330 New declaration.
1331 (s390_target::low_decr_pc_after_break): New method implementation.
1332 (the_low_target): Remove the field.
1333 * linux-aarch64-low.cc (the_low_target): Remove the field.
1334 * linux-arm-low.cc (the_low_target): Remove the field.
1335 * linux-cris-low.cc (the_low_target): Remove the field.
1336 * linux-crisv32-low.cc (the_low_target): Remove the field.
1337 * linux-m32r-low.cc (the_low_target): Remove the field.
1338 * linux-mips-low.cc (the_low_target): Remove the field.
1339 * linux-nios2-low.cc (the_low_target): Remove the field.
1340 * linux-ppc-low.cc (the_low_target): Remove the field.
1341 * linux-riscv-low.cc (the_low_target): Remove the field.
1342 * linux-sh-low.cc (the_low_target): Remove the field.
1343 * linux-sparc-low.cc (the_low_target): Remove the field.
1344 * linux-tic6x-low.cc (the_low_target): Remove the field.
1345 * linux-tile-low.cc (the_low_target): Remove the field.
1346 * linux-xtensa-low.cc (the_low_target): Remove the field.
1347
7582c77c
TBA
13482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1349
1350 Remove the 'supports_software_single_step' linux target op and let
1351 the concrete linux target define it by overriding the op in
1352 process_stratum_target.
1353 Turn the 'get_next_pcs' linux target op into a method of
1354 linux_process_target.
1355
1356 * linux-low.h (struct linux_target_ops): Remove the ops.
1357 (class linux_process_target) <supports_software_single_step>:
1358 Remove.
1359 <low_get_next_pcs>: Declare.
1360 * linux-low.cc (can_software_single_step): Remove.
1361 (linux_process_target::low_get_next_pcs): Define.
1362 (linux_process_target::supports_software_single_step): Remove.
1363
1364 Update the callers below.
1365
1366 (linux_process_target::handle_extended_wait)
1367 (linux_process_target::wait_1)
1368 (linux_process_target::install_software_single_step_breakpoints)
1369 (linux_process_target::single_step)
1370 (linux_process_target::thread_needs_step_over)
1371 (linux_process_target::proceed_one_lwp)
1372 (linux_process_target::supports_range_stepping)
1373
1374 * linux-x86-low.cc (the_low_target): Remove the op field.
1375 * linux-aarch64-low.cc (the_low_target): Ditto.
1376 * linux-bfin-low.cc (the_low_target): Ditto.
1377 * linux-cris-low.cc (the_low_target): Ditto.
1378 * linux-crisv32-low.cc (the_low_target): Ditto.
1379 * linux-m32r-low.cc (the_low_target): Ditto.
1380 * linux-m68k-low.cc (the_low_target): Ditto.
1381 * linux-mips-low.cc (the_low_target): Ditto.
1382 * linux-nios2-low.cc (the_low_target): Ditto.
1383 * linux-ppc-low.cc (the_low_target): Ditto.
1384 * linux-riscv-low.cc (the_low_target): Ditto.
1385 * linux-s390-low.cc (the_low_target): Ditto.
1386 * linux-sh-low.cc (the_low_target): Ditto.
1387 * linux-sparc-low.cc (the_low_target): Ditto.
1388 * linux-tic6x-low.cc (the_low_target): Ditto.
1389 * linux-tile-low.cc (the_low_target): Ditto.
1390 * linux-xtensa-low.cc (the_low_target): Ditto.
1391 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1392 <supports_software_single_step>: Declare.
1393 (arm_target::supports_software_single_step): Define.
1394 (arm_gdbserver_get_next_pcs): Turn into...
1395 (arm_target::low_get_next_pcs): ...this.
1396 (the_low_target): Remove the op field.
1397
3ca4edb6
TBA
13982020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1399
1400 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1401 the concrete linux target define it by overriding the op
1402 in process_stratum_target.
1403
1404 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1405 Remove.
1406 * linux-low.h (struct linux_target_ops): Remove the op.
1407 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1408 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1409 Declare.
1410 (x86_sw_breakpoint_from_kind): Turn into...
1411 (x86_target::sw_breakpoint_from_kind): ...this.
1412 (the_low_target): Remove the op field.
1413 * linux-aarch64-low.cc (class aarch64_target)
1414 <sw_breakpoint_from_kind>: Declare.
1415 (aarch64_sw_breakpoint_from_kind): Turn into...
1416 (aarch64_target::sw_breakpoint_from_kind): ...this.
1417 (the_low_target): Remove the op field.
1418 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1419 Declare.
1420 (arm_target::sw_breakpoint_from_kind): Define.
1421 (the_low_target): Remove the op field.
1422 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1423 Declare.
1424 (bfin_sw_breakpoint_from_kind): Turn into...
1425 (bfin_target::sw_breakpoint_from_kind): ...this.
1426 (the_low_target): Remove the op field.
1427 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1428 Declare.
1429 (cris_sw_breakpoint_from_kind): Turn into...
1430 (cris_target::sw_breakpoint_from_kind): ...this.
1431 (the_low_target): Remove the op field.
1432 * linux-crisv32-low.cc (class crisv32_target)
1433 <sw_breakpoint_from_kind>: Declare.
1434 (cris_sw_breakpoint_from_kind): Turn into...
1435 (crisv32_target::sw_breakpoint_from_kind): ...this.
1436 (the_low_target): Remove the op field.
1437 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1438 Declare.
1439 (ia64_target::sw_breakpoint_from_kind): Define.
1440 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1441 Declare.
1442 (m32r_sw_breakpoint_from_kind): Turn into...
1443 (m32r_target::sw_breakpoint_from_kind): ...this.
1444 (the_low_target): Remove the op field.
1445 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1446 Declare.
1447 (m68k_sw_breakpoint_from_kind): Turn into...
1448 (m68k_target::sw_breakpoint_from_kind): ...this.
1449 (the_low_target): Remove the op field.
1450 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1451 Declare.
1452 (mips_sw_breakpoint_from_kind): Turn into...
1453 (mips_target::sw_breakpoint_from_kind): ...this.
1454 (the_low_target): Remove the op field.
1455 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1456 Declare.
1457 (nios2_sw_breakpoint_from_kind): Turn into...
1458 (nios2_target::sw_breakpoint_from_kind): ...this.
1459 (the_low_target): Remove the op field.
1460 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1461 Declare.
1462 (ppc_sw_breakpoint_from_kind): Turn into...
1463 (ppc_target::sw_breakpoint_from_kind): ...this.
1464 (the_low_target): Remove the op field.
1465 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1466 Declare.
1467 (riscv_sw_breakpoint_from_kind): Turn into...
1468 (riscv_target::sw_breakpoint_from_kind): ...this.
1469 (the_low_target): Remove the op field.
1470 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1471 Declare.
1472 (s390_sw_breakpoint_from_kind): Turn into...
1473 (s390_target::sw_breakpoint_from_kind): ...this.
1474 (the_low_target): Remove the op field.
1475 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1476 Declare.
1477 (sh_sw_breakpoint_from_kind): Turn into...
1478 (sh_target::sw_breakpoint_from_kind): ...this.
1479 (the_low_target): Remove the op field.
1480 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1481 Declare.
1482 (sparc_sw_breakpoint_from_kind): Turn into...
1483 (sparc_target::sw_breakpoint_from_kind): ...this.
1484 (the_low_target): Remove the op field.
1485 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1486 Declare.
1487 (tic6x_sw_breakpoint_from_kind): Turn into...
1488 (tic6x_target::sw_breakpoint_from_kind): ...this.
1489 (the_low_target): Remove the op field.
1490 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1491 Declare.
1492 (tile_sw_breakpoint_from_kind): Turn into...
1493 (tile_target::sw_breakpoint_from_kind): ...this.
1494 (the_low_target): Remove the op field.
1495 * linux-xtensa-low.cc (class xtensa_target)
1496 <sw_breakpoint_from_kind>: Declare.
1497 (xtensa_sw_breakpoint_from_kind): Turn into...
1498 (xtensa_target::sw_breakpoint_from_kind): ...this.
1499 (the_low_target): Remove the op field.
1500
06250e4e
TBA
15012020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1502
1503 Remove the 'breakpoint_kind_from_pc' and
1504 'breakpoint_kind_from_current_state' linux target ops, and let the
1505 concrete linux target define them by overriding the ops of
1506 process_stratum_target.
1507
1508 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1509 Remove.
1510 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1511 * linux-low.h (struct linux_target_ops): Remove ops.
1512 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1513 <breakpoint_kind_from_current_state>: Remove.
1514 * linux-x86-low.cc (the_low_target): Remove the op fields.
1515 * linux-bfin-low.cc (the_low_target): Ditto.
1516 * linux-cris-low.cc (the_low_target): Ditto.
1517 * linux-crisv32-low.cc (the_low_target): Ditto.
1518 * linux-m32r-low.cc (the_low_target): Ditto.
1519 * linux-m68k-low.cc (the_low_target): Ditto.
1520 * linux-mips-low.cc (the_low_target): Ditto.
1521 * linux-nios2-low.cc (the_low_target): Ditto.
1522 * linux-ppc-low.cc (the_low_target): Ditto.
1523 * linux-s390-low.cc (the_low_target): Ditto.
1524 * linux-sh-low.cc (the_low_target): Ditto.
1525 * linux-sparc-low.cc (the_low_target): Ditto.
1526 * linux-tic6x-low.cc (the_low_target): Ditto.
1527 * linux-tile-low.cc (the_low_target): Ditto.
1528 * linux-xtensa-low.cc (the_low_target): Ditto.
1529 * linux-aarch64-low.cc (class aarch64_target)
1530 <breakpoint_kind_from_pc>
1531 <breakpoint_kind_from_current_state>: Declare.
1532 (aarch64_breakpoint_kind_from_pc): Turn into...
1533 (aarch64_target::breakpoint_kind_from_pc): ...this.
1534 (aarch64_breakpoint_kind_from_current_state): Turn into...
1535 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1536 (the_low_target): Remove the op fields.
1537 * linux-arm-low.cc (class arm_target):
1538 <breakpoint_kind_from_pc>
1539 <breakpoint_kind_from_current_state>: Declare.
1540 (arm_target::breakpoint_kind_from_pc): Define.
1541 (arm_target::breakpoint_kind_from_current_state): Define.
1542 (the_low_target): Remove the op fields.
1543 * linux-riscv-low.cc (class riscv_target):
1544 <breakpoint_kind_from_pc>: Declare.
1545 (riscv_breakpoint_kind_from_pc): Turn into...
1546 (riscv_target::breakpoint_kind_from_pc): ...this.
1547 (the_low_target): Remove the op fields.
1548
bf9ae9d8
TBA
15492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1550
1551 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1552 of linux_process_target.
1553
1554 * linux-low.h (struct linux_target_ops): Remove the ops.
1555 (class linux_process_target) <low_supports_breakpoints>
1556 <low_get_pc>
1557 <low_set_pc>: Declare.
1558 * linux-low.cc (supports_breakpoints): Turn into...
1559 (linux_process_target::low_supports_breakpoints): ...this.
1560 (linux_process_target::low_get_pc): Define.
1561 (linux_process_target::low_set_pc): Define.
1562
1563 Update the callers below.
1564
1565 (linux_process_target::get_pc)
1566 (linux_process_target::save_stop_reason)
1567 (linux_process_target::maybe_move_out_of_jump_pad)
1568 (linux_process_target::wait_1)
1569 (linux_process_target::resume_one_lwp_throw)
1570 (linux_process_target::resume)
1571 (linux_process_target::proceed_all_lwps)
1572 (linux_process_target::read_pc)
1573 (linux_process_target::write_pc)
1574
1575 * linux-x86-low.cc (class linux_process_target)
1576 <low_supports_breakpoints>
1577 <low_get_pc>
1578 <low_set_pc>: Declare.
1579 (x86_target::low_supports_breakpoints): Define.
1580 (x86_get_pc): Turn into...
1581 (x86_target::low_get_pc): ...this.
1582 (x86_set_pc): Turn into...
1583 (x86_target::low_set_pc): ...this.
1584 (the_low_target): Remove the op fields.
1585 * linux-arm-low.cc (class arm_target)
1586 <low_supports_breakpoints>
1587 <low_get_pc>
1588 <low_set_pc>: Declare.
1589 (arm_target::low_supports_breakpoints)
1590 (arm_target::low_get_pc)
1591 (arm_target::low_set_pc): Define.
1592 (the_low_target): Remove the op fields.
1593 * linux-bfin-low.cc (class bfin_target)
1594 <low_supports_breakpoints>
1595 <low_get_pc>
1596 <low_set_pc>: Declare.
1597 (bfin_target::low_supports_breakpoints)
1598 (bfin_target::low_get_pc)
1599 (bfin_target::low_set_pc): Define.
1600 (the_low_target): Remove the op fields.
1601 * linux-cris-low.cc (class cris_target)
1602 <low_supports_breakpoints>
1603 <low_get_pc>
1604 <low_set_pc>: Declare.
1605 (cris_target::low_supports_breakpoints)
1606 (cris_target::low_get_pc)
1607 (cris_target::low_set_pc): Define.
1608 (the_low_target): Remove the op fields.
1609 * linux-crisv32-low.cc (class crisv32_target)
1610 <low_supports_breakpoints>
1611 <low_get_pc>
1612 <low_set_pc>: Declare.
1613 (crisv32_target::low_supports_breakpoints)
1614 (crisv32_target::low_get_pc)
1615 (crisv32_target::low_set_pc): Define.
1616 (the_low_target): Remove the op fields.
1617 * linux-m32r-low.cc (class m32r_target)
1618 <low_supports_breakpoints>
1619 <low_get_pc>
1620 <low_set_pc>: Declare.
1621 (m32r_target::low_supports_breakpoints)
1622 (m32r_target::low_get_pc)
1623 (m32r_target::low_set_pc): Define.
1624 (the_low_target): Remove the op fields.
1625 * linux-m68k-low.cc (class m68k_target)
1626 <low_supports_breakpoints>
1627 <low_get_pc>
1628 <low_set_pc>: Declare.
1629 (m68k_target::low_supports_breakpoints)
1630 (m68k_target::low_get_pc)
1631 (m68k_target::low_set_pc): Define.
1632 (the_low_target): Remove the op fields.
1633 * linux-nios2-low.cc (class nios2_target)
1634 <low_supports_breakpoints>
1635 <low_get_pc>
1636 <low_set_pc>: Declare.
1637 (nios2_target::low_supports_breakpoints)
1638 (nios2_target::low_get_pc)
1639 (nios2_target::low_set_pc): Define.
1640 (the_low_target): Remove the op fields.
1641 * linux-sh-low.cc (class sh_target)
1642 <low_supports_breakpoints>
1643 <low_get_pc>
1644 <low_set_pc>: Declare.
1645 (sh_target::low_supports_breakpoints)
1646 (sh_target::low_get_pc)
1647 (sh_target::low_set_pc): Define.
1648 (the_low_target): Remove the op fields.
1649 * linux-xtensa-low.cc (class xtensa_target)
1650 <low_supports_breakpoints>
1651 <low_get_pc>
1652 <low_set_pc>: Declare.
1653 (xtensa_target::low_supports_breakpoints)
1654 (xtensa_target::low_get_pc)
1655 (xtensa_target::low_set_pc): Define.
1656 (the_low_target): Remove the op fields.
1657 * linux-sparc-low.cc (class sparc_target)
1658 <low_supports_breakpoints>
1659 <low_get_pc>: Declare.
1660 (sparc_target::low_supports_breakpoints)
1661 (sparc_target::low_get_pc): Define.
1662 (the_low_target): Remove the op fields.
1663 * linux-tile-low.cc (class tile_target)
1664 <low_supports_breakpoints>
1665 <low_get_pc>
1666 <low_set_pc>: Declare.
1667 (tile_target::low_supports_breakpoints)
1668 (tile_target::low_get_pc)
1669 (tile_target::low_set_pc): Define.
1670 (the_low_target): Remove the op fields.
1671 * linux-aarch64-low.cc (class aarch64_target)
1672 <low_supports_breakpoints>
1673 <low_get_pc>
1674 <low_set_pc>: Declare.
1675 (aarch64_target::low_supports_breakpoints): Define.
1676 (aarch64_get_pc): Turn into...
1677 (aarch64_target::low_get_pc): ...this.
1678 (aarch64_set_pc): Turn into...
1679 (aarch64_target::low_set_pc): ...this.
1680 (the_low_target): Remove the op fields.
1681 * linux-mips-low.cc (class mips_target)
1682 <low_supports_breakpoints>
1683 <low_get_pc>
1684 <low_set_pc>: Declare.
1685 (mips_target::low_supports_breakpoints): Define.
1686 (mips_get_pc): Turn into...
1687 (mips_target::low_get_pc): ...this.
1688 (mips_set_pc): Turn into...
1689 (mips_target::low_set_pc): ...this.
1690 (the_low_target): Remove the op fields.
1691 * linux-ppc-low.cc (class ppc_target)
1692 <low_supports_breakpoints>
1693 <low_get_pc>
1694 <low_set_pc>: Declare.
1695 (ppc_target::low_supports_breakpoints): Define.
1696 (ppc_get_pc): Turn into...
1697 (ppc_target::low_get_pc): ...this.
1698 (ppc_set_pc): Turn into...
1699 (ppc_target::low_set_pc): ...this.
1700 (the_low_target): Remove the op fields.
1701 * linux-riscv-low.cc (class riscv_target)
1702 <low_supports_breakpoints>
1703 <low_get_pc>
1704 <low_set_pc>: Declare.
1705 (riscv_target::low_supports_breakpoints): Define.
1706 (riscv_get_pc): Turn into...
1707 (riscv_target::low_get_pc): ...this.
1708 (riscv_set_pc): Turn into...
1709 (riscv_target::low_set_pc): ...this.
1710 (the_low_target): Remove the op fields.
1711 * linux-s390-low.cc (class s390_target)
1712 <low_supports_breakpoints>
1713 <low_get_pc>
1714 <low_set_pc>: Declare.
1715 (s390_target::low_supports_breakpoints): Define.
1716 (s390_get_pc): Turn into...
1717 (s390_target::low_get_pc): ...this.
1718 (s390_set_pc): Turn into...
1719 (s390_target::low_set_pc): ...this.
1720 (the_low_target): Remove the op fields.
1721 * linux-tic6x-low.cc (class tic6x_target)
1722 <low_supports_breakpoints>
1723 <low_get_pc>
1724 <low_set_pc>: Declare.
1725 (tic6x_target::low_supports_breakpoints): Define.
1726 (tic6x_get_pc): Turn into...
1727 (tic6x_target::low_get_pc): ...this.
1728 (tic6x_set_pc): Turn into...
1729 (tic6x_target::low_set_pc): ...this.
1730 (the_low_target): Remove the op fields.
1731
df95181f
TBA
17322020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1733
1734 Turn some more static methods in linux-low into private methods
1735 of linux_process_target.
1736
1737 * linux-low.cc (get_pc): Turn into...
1738 (linux_process_target::get_pc): ...this.
1739 (save_stop_reason): Turn into...
1740 (linux_process_target::save_stop_reason): ...this.
1741 (thread_still_has_status_pending_p): Turn into...
1742 (linux_process_target::thread_still_has_status_pending): ...this.
1743 (status_pending_p_callback): Turn into...
1744 (linux_process_target::status_pending_p_callback): ...this.
1745 (resume_stopped_resumed_lwps): Turn into...
1746 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1747 (install_software_single_step_breakpoints): Turn into...
1748 (linux_process_target::install_software_single_step_breakpoints):
1749 ...this.
1750 (single_step): Turn into...
1751 (linux_process_target::single_step): ...this.
1752 (linux_resume_one_lwp_throw): Turn into...
1753 (linux_process_target::resume_one_lwp_throw): ...this.
1754 (linux_resume_one_lwp): Turn into...
1755 (linux_process_target::resume_one_lwp): ...this.
1756 (resume_status_pending_p): Turn into...
1757 (linux_process_target::resume_status_pending): ...this.
1758 (need_step_over_p): Turn into...
1759 (linux_process_target::thread_needs_step_over): ...this.
1760 (linux_resume_one_thread): Turn into...
1761 (linux_process_target::resume_one_thread): ...this.
1762 (proceed_one_lwp): Turn into...
1763 (linux_process_target::proceed_one_lwp): ...this.
1764 (unsuspend_and_proceed_one_lwp): Turn into...
1765 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1766
1767 Update the calls/references to the above functions below.
1768
1769 (linux_process_target::handle_extended_wait)
1770 (linux_process_target::filter_event)
1771 (linux_process_target::wait_for_event_filtered)
1772 (linux_process_target::wait_1)
1773 (linux_process_target::move_out_of_jump_pad)
1774 (linux_process_target::start_step_over)
1775 (linux_process_target::resume)
1776 (linux_process_target::proceed_all_lwps)
1777 (regsets_store_inferior_registers)
1778 (linux_process_target::store_register)
1779
1780 * linux-low.h (class linux_process_target)
1781 <get_pc>
1782 <save_stop_reason>
1783 <thread_still_has_status_pending>
1784 <status_pending_p_callback>
1785 <resume_stopped_resumed_lwps>
1786 <install_software_single_step_breakpoints>
1787 <single_step>
1788 <resume_one_lwp_throw>
1789 <resume_one_lwp>
1790 <resume_status_pending>
1791 <thread_needs_step_over>
1792 <resume_one_thread>
1793 <proceed_one_lwp>
1794 <unsuspend_and_proceed_one_lwp>: Declare.
1795
bd70b1f2
TBA
17962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1797
1798 Turn the 'fetch_register' linux target op into a method of
1799 linux_process_target.
1800
1801 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1802 (class linux_process_target) <low_fetch_register>: Declare.
1803 * linux-x86-low.cc (the_low_target)
1804 * linux-aarch64-low.cc (the_low_target)
1805 * linux-arm-low.cc (the_low_target)
1806 * linux-bfin-low.cc (the_low_target)
1807 * linux-cris-low.cc (the_low_target)
1808 * linux-crisv32-low.cc (the_low_target)
1809 * linux-m32r-low.cc (the_low_target)
1810 * linux-m68k-low.cc (the_low_target)
1811 * linux-nios2-low.cc (the_low_target)
1812 * linux-ppc-low.cc (the_low_target)
1813 * linux-s390-low.cc (the_low_target)
1814 * linux-sh-low.cc (the_low_target)
1815 * linux-sparc-low.cc (the_low_target)
1816 * linux-tic6x-low.cc (the_low_target)
1817 * linux-tile-low.cc (the_low_target)
1818 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1819 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1820 Declare.
1821 (ia64_fetch_register): Turn into...
1822 (ia64_target::low_fetch_register): ...this.
1823 (the_low_target): Remove the op field.
1824 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1825 Declare.
1826 (mips_fetch_register): Turn into...
1827 (mips_target::low_fetch_register): ...this.
1828 (the_low_target): Remove the op field.
1829 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1830 Declare.
1831 (riscv_fetch_register): Turn into...
1832 (riscv_target::low_fetch_register): ...this.
1833 (the_low_target): Remove the op field.
1834
1835 Update the callers below.
1836
1837 * linux-low.cc (linux_process_target::fetch_registers)
1838 (linux_process_target::low_fetch_register)
1839
daca57a7
TBA
18402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1841
1842 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1843 linux target ops into methods of linux_process_target.
1844
1845 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1846 (class linux_process_target) <fetch_register>
1847 <store_register>
1848 <usr_fetch_inferior_registers>
1849 <usr_store_inferior_registers>
1850 <low_cannot_fetch_register>
1851 <low_cannot_fetch_register> Declare.
1852 * linux-low.cc (fetch_register): Turn into...
1853 (linux_process_target::fetch_register): ...this.
1854 (store_register): Turn into ...
1855 (linux_process_target::store_register): ...this.
1856 (usr_fetch_inferior_registers): Turn into...
1857 (linux_process_target::usr_fetch_inferior_registers): ...this.
1858 (usr_store_inferior_registers): Turn into...
1859 (linux_process_target::usr_store_inferior_registers): ...this.
1860 * linux-x86-low.cc (class x86_target)
1861 <low_cannot_fetch_register>
1862 <low_cannot_store_register>: Declare.
1863 (x86_cannot_store_register): Turn into...
1864 (x86_target::low_cannot_store_register): ...this.
1865 (x86_cannot_fetch_register): Turn into...
1866 (x86_target::low_cannot_fetch_register): ...this.
1867 (the_low_target): Remove the target op fields.
1868 * linux-aarch64-low.cc (class aarch64_target)
1869 <low_cannot_fetch_register>
1870 <low_cannot_store_register>: Declare.
1871 (aarch64_target::low_cannot_fetch_register)
1872 (aarch64_target::low_cannot_store_register): Define.
1873 (the_low_target): Remove the op fields.
1874 * linux-arm-low.cc (class arm_target)
1875 <low_cannot_fetch_register>
1876 <low_cannot_store_register>: Declare.
1877 (arm_cannot_fetch_register): Turn into...
1878 (arm_target::low_cannot_fetch_register): ...this.
1879 (arm_cannot_store_register): Turn into...
1880 (arm_target::low_cannot_store_register): ...this.
1881 (the_low_target): Remove the op fields.
1882 * linux-bfin-low.cc (class bfin_target)
1883 <low_cannot_fetch_register>
1884 <low_cannot_store_register>: Declare.
1885 (bfin_cannot_fetch_register): Turn into...
1886 (bfin_target::low_cannot_fetch_register): ...this.
1887 (bfin_cannot_store_register): Turn into...
1888 (bfin_target::low_cannot_store_register): ...this.
1889 (the_low_target): Remove the op fields.
1890 * linux-cris-low.cc (class cris_target)
1891 <low_cannot_fetch_register>
1892 <low_cannot_store_register>: Declare.
1893 (cris_cannot_fetch_register): Turn into...
1894 (cris_target::low_cannot_fetch_register): ...this.
1895 (cris_cannot_store_register): Turn into...
1896 (cris_target::low_cannot_store_register): ...this.
1897 (the_low_target): Remove the op fields.
1898 * linux-crisv32-low.cc (class crisv32_target)
1899 <low_cannot_fetch_register>
1900 <low_cannot_store_register>: Declare.
1901 (crisv32_target::low_cannot_fetch_register)
1902 (crisv32_target::low_cannot_store_register): Define.
1903 (the_low_target): Remove the op fields.
1904 * linux-ia64-low.cc (class ia64_target)
1905 <low_cannot_fetch_register>
1906 <low_cannot_store_register>: Declare.
1907 (ia64_cannot_fetch_register): Turn into...
1908 (ia64_target::low_cannot_fetch_register): ...this.
1909 (ia64_cannot_store_register): Turn into...
1910 (ia64_target::low_cannot_store_register): ...this.
1911 (the_low_target): Remove the op fields.
1912 * linux-m32r-low.cc (class m32r_target)
1913 <low_cannot_fetch_register>
1914 <low_cannot_store_register>: Declare.
1915 (m32r_cannot_fetch_register): Turn into...
1916 (m32r_target::low_cannot_fetch_register): ...this.
1917 (m32r_cannot_store_register): Turn into...
1918 (m32r_target::low_cannot_store_register): ...this.
1919 (the_low_target): Remove the op fields.
1920 * linux-m68k-low.cc (class m68k_target)
1921 <low_cannot_fetch_register>
1922 <low_cannot_store_register>: Declare.
1923 (m68k_cannot_fetch_register): Turn into...
1924 (m68k_target::low_cannot_fetch_register): ...this.
1925 (m68k_cannot_store_register): Turn into...
1926 (m68k_target::low_cannot_store_register): ...this.
1927 (the_low_target): Remove the op fields.
1928 * linux-mips-low.cc (class mips_target)
1929 <low_cannot_fetch_register>
1930 <low_cannot_store_register>: Declare.
1931 (mips_cannot_fetch_register): Turn into...
1932 (mips_target::low_cannot_fetch_register): ...this.
1933 (mips_cannot_store_register): Turn into...
1934 (mips_target::low_cannot_store_register): ...this.
1935 (get_usrregs_info): Inline at the call sites in
1936 low_cannot_fetch_register and low_cannot_store_register,
1937 and remove.
1938 (the_low_target): Remove the op fields.
1939 * linux-nios2-low.cc (class nios2_target)
1940 <low_cannot_fetch_register>
1941 <low_cannot_store_register>: Declare.
1942 (nios2_cannot_fetch_register): Turn into...
1943 (nios2_target::low_cannot_fetch_register): ...this.
1944 (nios2_cannot_store_register): Turn into...
1945 (nios2_target::low_cannot_store_register): ...this.
1946 (the_low_target): Remove the op fields.
1947 * linux-ppc-low.cc (class ppc_target)
1948 <low_cannot_fetch_register>
1949 <low_cannot_store_register>: Declare.
1950 (ppc_cannot_fetch_register): Turn into...
1951 (ppc_target::low_cannot_fetch_register): ...this.
1952 (ppc_cannot_store_register): Turn into...
1953 (ppc_target::low_cannot_store_register): ...this.
1954 (the_low_target): Remove the op fields.
1955 * linux-riscv-low.cc (class riscv_target)
1956 <low_cannot_fetch_register>
1957 <low_cannot_store_register>: Declare.
1958 (riscv_target::low_cannot_fetch_register)
1959 (riscv_target::low_cannot_store_register): Define.
1960 (the_low_target): Remove the op fields.
1961 * linux-s390-low.cc (class s390_target)
1962 <low_cannot_fetch_register>
1963 <low_cannot_store_register>: Declare.
1964 (s390_cannot_fetch_register): Turn into...
1965 (s390_target::low_cannot_fetch_register): ...this.
1966 (s390_cannot_store_register): Turn into...
1967 (s390_target::low_cannot_store_register): ...this.
1968 (the_low_target): Remove the op fields.
1969 * linux-sh-low.cc (class sh_target)
1970 <low_cannot_fetch_register>
1971 <low_cannot_store_register>: Declare.
1972 (sh_cannot_fetch_register): Turn into...
1973 (sh_target::low_cannot_fetch_register): ...this.
1974 (sh_cannot_store_register): Turn into...
1975 (sh_target::low_cannot_store_register): ...this.
1976 (the_low_target): Remove the op fields.
1977 * linux-sparc-low.cc (class sparc_target)
1978 <low_cannot_fetch_register>
1979 <low_cannot_store_register>: Declare.
1980 (sparc_cannot_fetch_register): Turn into...
1981 (sparc_target::low_cannot_fetch_register): ...this.
1982 (sparc_cannot_store_register): Turn into...
1983 (sparc_target::low_cannot_store_register): ...this.
1984 (the_low_target): Remove the op fields.
1985 * linux-tic6x-low.cc (class tic6x_target)
1986 <low_cannot_fetch_register>
1987 <low_cannot_store_register>: Declare.
1988 (tic6x_cannot_fetch_register): Turn into...
1989 (tic6x_target::low_cannot_fetch_register): ...this.
1990 (tic6x_cannot_store_register): Turn into...
1991 (tic6x_target::low_cannot_store_register): ...this.
1992 (the_low_target): Remove the op fields.
1993 * linux-tile-low.cc (class tile_target)
1994 <low_cannot_fetch_register>
1995 <low_cannot_store_register>: Declare.
1996 (tile_cannot_fetch_register): Turn into...
1997 (tile_target::low_cannot_fetch_register): ...this.
1998 (tile_cannot_store_register): Turn into...
1999 (tile_target::low_cannot_store_register): ...this.
2000 (the_low_target): Remove the op fields.
2001 * linux-xtensa-low.cc (class xtensa_target)
2002 <low_cannot_fetch_register>
2003 <low_cannot_store_register>: Declare.
2004 (xtensa_target::low_cannot_fetch_register)
2005 (xtensa_target::low_cannot_store_register): Define.
2006 (the_low_target): Remove the op fields.
2007
aa8d21c9
TBA
20082020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2009
2010 Turn the 'regs_info' linux target op into a method of
2011 linux_process_target.
2012
2013 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2014 (class linux_process_target) <get_regs_info>: Define.
2015
2016 Update the callers below.
2017
2018 * linux-low.cc (linux_process_target::fetch_registers)
2019 (linux_process_target::store_registers)
2020 * proc-service.cc (gregset_info)
2021
2022 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2023 (x86_linux_regs_info): Turn into ...
2024 (x86_target::get_regs_info): ...this.
2025 (the_low_target): Remove the op field.
2026 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2027 Declare.
2028 (aarch64_regs_info): Turn into ...
2029 (aarch64_target::get_regs_info): ...this.
2030 (the_low_target): Remove the op field.
2031 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2032 (arm_regs_info): Turn into ...
2033 (arm_target::get_regs_info): ...this.
2034 (the_low_target): Remove the op field.
2035 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2036 (bfin_regs_info): Turn into ...
2037 (bfin_target::get_regs_info): ...this.
2038 (the_low_target): Remove the op field.
2039 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2040 (cris_regs_info): Turn into ...
2041 (cris_target::get_regs_info): ...this.
2042 (the_low_target): Remove the op field.
2043 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2044 Declare.
2045 (crisv32_regs_info): Turn into ...
2046 (crisv32_target::get_regs_info): ...this.
2047 (the_low_target): Remove the op field.
2048 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2049 (ia64_regs_info): Turn into ...
2050 (ia64_target::get_regs_info): ...this.
2051 (the_low_target): Remove the op field.
2052 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2053 (m32r_regs_info): Turn into ...
2054 (m32r_target::get_regs_info): ...this.
2055 (the_low_target): Remove the op field.
2056 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2057 (m68k_regs_info): Turn into ...
2058 (m68k_target::get_regs_info): ...this.
2059 (the_low_target): Remove the op field.
2060 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2061 (mips_regs_info): Turn into ...
2062 (mips_target::get_regs_info): ...this.
2063 (the_low_target): Remove the op field.
2064 (get_usrregs_info): Update the call to the op.
2065 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2066 (nios2_regs_info): Turn into ...
2067 (nios2_target::get_regs_info): ...this.
2068 (the_low_target): Remove the op field.
2069 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2070 (ppc_regs_info): Turn into ...
2071 (ppc_target::get_regs_info): ...this.
2072 (the_low_target): Remove the op field.
2073 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2074 (riscv_regs_info): Turn into ...
2075 (riscv_target::get_regs_info): ...this.
2076 (the_low_target): Remove the op field.
2077 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2078 (s390_regs_info): Turn into ...
2079 (s390_target::get_regs_info): ...this.
2080 (the_low_target): Remove the op field.
2081 (s390_collect_ptrace_register)
2082 (s390_supply_ptrace_register)
2083 (s390_fill_gregset): Update the call to the op.
2084 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2085 (sh_regs_info): Turn into ...
2086 (sh_target::get_regs_info): ...this.
2087 (the_low_target): Remove the op field.
2088 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2089 (sparc_regs_info): Turn into ...
2090 (sparc_target::get_regs_info): ...this.
2091 (the_low_target): Remove the op field.
2092 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2093 (tic6x_regs_info): Turn into ...
2094 (tic6x_target::get_regs_info): ...this.
2095 (the_low_target): Remove the op field.
2096 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2097 (tile_regs_info): Turn into ...
2098 (tile_target::get_regs_info): ...this.
2099 (the_low_target): Remove the op field.
2100 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2101 Declare.
2102 (xtensa_regs_info): Turn into ...
2103 (xtensa_target::get_regs_info): ...this.
2104 (the_low_target): Remove the op field.
2105
797bcff5
TBA
21062020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2107
2108 Turn the 'arch_setup' linux target op into a method of
2109 linux_process_target.
2110
2111 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2112 (class linux_process_target) <arch_setup_thread>
2113 <low_arch_setup>: New declarations.
2114 * linux-low.cc (linux_arch_setup): Delete.
2115 (linux_arch_setup_thread): Turn into...
2116 (linux_process_target::arch_setup_thread): ... this.
2117
2118 Update the callers below.
2119
2120 (linux_process_target::handle_extended_wait)
2121 (linux_process_target::post_create_inferior)
2122 (linux_process_target::filter_event)
2123
2124 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2125 declaration.
2126 (x86_linux_update_xmltarget): Turn into...
2127 (x86_target::update_xmltarget): ...this.
2128 (x86_linux_process_qsupported): Update the call to
2129 x86_linux_update_xmltarget.
2130 (x86_arch_setup): Turn into ...
2131 (x86_target::low_arch_setup): ...this.
2132 (the_low_target): Remove the op field.
2133 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2134 declaration.
2135 (aarch64_arch_setup): Turn into ...
2136 (aarch64_target::low_arch_setup): ...this.
2137 (the_low_target): Remove the op field.
2138 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2139 declaration.
2140 (arm_arch_setup): Turn into ...
2141 (arm_target::low_arch_setup): ...this.
2142 (the_low_target): Remove the op field.
2143 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2144 declaration.
2145 (bfin_arch_setup): Turn into ...
2146 (bfin_target::low_arch_setup): ...this.
2147 (the_low_target): Remove the op field.
2148 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2149 declaration.
2150 (cris_arch_setup): Turn into ...
2151 (cris_target::low_arch_setup): ...this.
2152 (the_low_target): Remove the op field.
2153 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2154 declaration.
2155 (crisv32_arch_setup): Turn into ...
2156 (crisv32_target::low_arch_setup): ...this.
2157 (the_low_target): Remove the op field.
2158 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2159 declaration.
2160 (ia64_arch_setup): Turn into ...
2161 (ia64_target::low_arch_setup): ...this.
2162 (the_low_target): Remove the op field.
2163 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2164 declaration.
2165 (m32r_arch_setup): Turn into ...
2166 (m32r_target::low_arch_setup): ...this.
2167 (the_low_target): Remove the op field.
2168 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2169 declaration.
2170 (m68k_arch_setup): Turn into ...
2171 (m68k_target::low_arch_setup): ...this.
2172 (the_low_target): Remove the op field.
2173 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2174 declaration.
2175 (mips_arch_setup): Turn into ...
2176 (mips_target::low_arch_setup): ...this.
2177 (the_low_target): Remove the op field.
2178 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2179 declaration.
2180 (nios2_arch_setup): Turn into ...
2181 (nios2_target::low_arch_setup): ...this.
2182 (the_low_target): Remove the op field.
2183 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2184 declaration.
2185 (ppc_arch_setup): Turn into ...
2186 (ppc_target::low_arch_setup): ...this.
2187 (the_low_target): Remove the op field.
2188 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2189 declaration.
2190 (riscv_arch_setup): Turn into ...
2191 (riscv_target::low_arch_setup): ...this.
2192 (the_low_target): Remove the op field.
2193 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2194 declaration.
2195 (s390_arch_setup): Turn into ...
2196 (s390_target::low_arch_setup): ...this.
2197 (the_low_target): Remove the op field.
2198 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2199 declaration.
2200 (sh_arch_setup): Turn into ...
2201 (sh_target::low_arch_setup): ...this.
2202 (the_low_target): Remove the op field.
2203 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2204 declaration.
2205 (sparc_arch_setup): Turn into ...
2206 (sparc_target::low_arch_setup): ...this.
2207 (the_low_target): Remove the op field.
2208 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2209 declaration.
2210 (tic6x_arch_setup): Turn into ...
2211 (tic6x_target::low_arch_setup): ...this.
2212 (the_low_target): Remove the op field.
2213 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2214 declaration.
2215 (tile_arch_setup): Turn into ...
2216 (tile_target::low_arch_setup): ...this.
2217 (the_low_target): Remove the op field.
2218 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2219 declaration.
2220 (xtensa_arch_setup): Turn into ...
2221 (xtensa_target::low_arch_setup): ...this.
2222 (the_low_target): Remove the op field.
2223
ef0478f6
TBA
22242020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2225
2226 * linux-low.h (the_linux_target): New extern declaration.
2227 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2228 'the_target'.
2229 (the_linux_target): Remove.
2230 * linux-x86-low.cc (class x86_target): New class.
2231 (the_x86_target): New static object.
2232 (the_linux_target): Define as pointer to the_x86_target.
2233 * linux-aarch64-low.cc (class aarch64_target): New class.
2234 (the_aarch64_target): New static object.
2235 (the_linux_target): Define as pointer to the_aarch64_target.
2236 * linux-arm-low.cc (class arm_target): New class.
2237 (the_arm_target): New static object.
2238 (the_linux_target): Define as pointer to the_arm_target.
2239 * linux-bfin-low.cc (class bfin_target): New class.
2240 (the_bfin_target): New static object.
2241 (the_linux_target): Define as pointer to the_bfin_target.
2242 * linux-cris-low.cc (class cris_target): New class.
2243 (the_cris_target): New static object.
2244 (the_linux_target): Define as pointer to the_cris_target.
2245 * linux-crisv32-low.cc (class crisv32_target): New class.
2246 (the_crisv32_target): New static object.
2247 (the_linux_target): Define as pointer to the_crisv32_target.
2248 * linux-ia64-low.cc (class ia64_target): New class.
2249 (the_ia64_target): New static object.
2250 (the_linux_target): Define as pointer to the_ia64_target.
2251 * linux-m32r-low.cc (class m32r_target): New class.
2252 (the_m32r_target): New static object.
2253 (the_linux_target): Define as pointer to the_m32r_target.
2254 * linux-m68k-low.cc (class m68k_target): New class.
2255 (the_m68k_target): New static object.
2256 (the_linux_target): Define as pointer to the_m68k_target.
2257 * linux-mips-low.cc (class mips_target): New class.
2258 (the_mips_target): New static object.
2259 (the_linux_target): Define as pointer to the_mips_target.
2260 * linux-nios2-low.cc (class nios2_target): New class.
2261 (the_nios2_target): New static object.
2262 (the_linux_target): Define as pointer to the_nios2_target.
2263 * linux-ppc-low.cc (class ppc_target): New class.
2264 (the_ppc_target): New static object.
2265 (the_linux_target): Define as pointer to the_ppc_target.
2266 * linux-riscv-low.cc (class riscv_target): New class.
2267 (the_riscv_target): New static object.
2268 (the_linux_target): Define as pointer to the_riscv_target.
2269 * linux-s390-low.cc (class s390_target): New class.
2270 (the_s390_target): New static object.
2271 (the_linux_target): Define as pointer to the_s390_target.
2272 * linux-sh-low.cc (class sh_target): New class.
2273 (the_sh_target): New static object.
2274 (the_linux_target): Define as pointer to the_sh_target.
2275 * linux-sparc-low.cc (class sparc_target): New class.
2276 (the_sparc_target): New static object.
2277 (the_linux_target): Define as pointer to the_sparc_target.
2278 * linux-tic6x-low.cc (class tic6x_target): New class.
2279 (the_tic6x_target): New static object.
2280 (the_linux_target): Define as pointer to the_tic6x_target.
2281 * linux-tile-low.cc (class tile_target): New class.
2282 (the_tile_target): New static object.
2283 (the_linux_target): Define as pointer to the_tile_target.
2284 * linux-xtensa-low.cc (class xtensa_target): New class.
2285 (the_xtensa_target): New static object.
2286 (the_linux_target): Define as pointer to the_xtensa_target.
2287
d16f3f6c
TBA
22882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2289
2290 Turn some static functions in linux-low.cc into private methods of
2291 linux_process_target.
2292
2293 * linux-low.cc (handle_extended_wait): Turn into ...
2294 (linux_process_target::handle_extended_wait): ...this. Call
2295 'mourn' on 'this' object instead of 'the_target'.
2296 (maybe_move_out_of_jump_pad): Turn into...
2297 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2298 (linux_low_filter_event): Turn into...
2299 (linux_process_target::filter_event): ...this.
2300 (linux_wait_for_event_filtered): Turn into...
2301 (linux_process_target::wait_for_event_filtered): ...this.
2302 (linux_wait_for_event): Turn into...
2303 (linux_process_target::wait_for_event): ...this.
2304 (linux_wait_1): Turn into...
2305 (linux_process_target::wait_1): ...this.
2306 (wait_for_sigstop): Turn into...
2307 (linux_process_target::wait_for_sigstop): ...this.
2308 (move_out_of_jump_pad_callback): Turn into...
2309 (linux_process_target::move_out_of_jump_pad): ...this.
2310 (stop_all_lwps): Turn into...
2311 (linux_process_target::stop_all_lwps): ...this.
2312 (start_step_over): Turn into...
2313 (linux_process_target::start_step_over): ...this.
2314 (complete_ongoing_step_over): Turn into...
2315 (linux_process_target::complete_ongoing_step_over): ...this.
2316 (proceed_all_lwps): Turn into...
2317 (linux_process_target::proceed_all_lwps): ...this.
2318 (unstop_all_lwps): Turn into...
2319 (linux_process_target::unstop_all_lwps): ...this.
2320
2321 * linux-low.h (class linux_process_target)
2322 <handle_extended_wait>
2323 <maybe_move_out_of_jump_pad>
2324 filter_event>
2325 <wait_for_event_filtered>
2326 <wait_for_event>
2327 <wait_1>
2328 <wait_for_sigstop>
2329 <move_out_of_jump_pad>
2330 <stop_all_lwps>
2331 <start_step_over>
2332 <complete_ongoing_step_over>
2333 <proceed_all_lwps>
2334 <unstop_all_lwps>: Declare.
2335
2336 Update the callers below.
2337
2338 * linux-low.cc (linux_process_target::attach): Update.
2339 (linux_process_target::stabilize_threads): Ditto.
2340 (linux_process_target::wait): Ditto.
2341
a5863204
TBA
23422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2343
2344 * linux-low.h (struct linux_target_ops): Update the comment for
2345 'cannot_store_register' to return 0 or 1.
2346 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2347 of 2.
2348
c884cc46
SM
23492020-03-20 Simon Marchi <simon.marchi@efficios.com>
2350
2351 * config.in: Re-generate.
2352 * configure: Re-generate.
2353
5a82b8a1
KR
23542020-03-17 Kamil Rytarowski <n54@gmx.com>
2355
2356 * regcache.cc (find_register_by_number): Update.
2357 * tdesc.cc (init_target_desc): Likewise.
2358 * tdesc.h (target_desc::reg_defs): Likewise.
2359
4635ff97
TT
23602020-03-12 Tom Tromey <tom@tromey.com>
2361
2362 * configure: Rebuild.
2363 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2364 (WIN32APILIBS): New subst.
2365 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2366 gdbsupport files.
2367 (gdbsupport/%.o): Remove target.
2368 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2369 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2370 (WIN32APILIBS): New variable.
2371 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2372 (gdbreplay$(EXEEXT)): Likewise.
2373
9a665d62
TT
23742020-03-12 Tom Tromey <tom@tromey.com>
2375
2376 * config.in, configure: Rebuild.
2377 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2378 * acinclude.m4: Include gettext-sister.m4.
2379 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2380 variables.
2381 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2382 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2383
272cd5a3
SM
23842020-03-12 Simon Marchi <simon.marchi@efficios.com>
2385
2386 * acinclude.m4: Update path to selftest.m4.
2387
db6878ac
SM
23882020-03-12 Simon Marchi <simon.marchi@efficios.com>
2389
2390 * configure.ac: Don't source bfd/development.sh, move
2391 GDB_AC_COMMON higher.
2392 * configure: Re-generate.
2393
4d696a5c
SM
23942020-03-12 Simon Marchi <simon.marchi@efficios.com>
2395
2396 * configure: Re-generate.
2397
a0761e34
SM
23982020-03-11 Simon Marchi <simon.marchi@efficios.com>
2399
2400 * configure: Re-generate.
2401
20ea4a60
AB
24022020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2403
2404 * .dir-locals.el: New file.
2405
842806cb
TBA
24062020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2407
2408 * .gitattributes: New file.
2409
442131c1
AB
24102020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2411
2412 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2413 reply into an S reply.
2414 * server.cc (disable_packet_T): New global.
2415 (captured_main): Set new global when appropriate.
2416 * server.h (disable_packet_T): Declare.
2417
dda42c0b
TT
24182020-02-21 Tom Tromey <tom@tromey.com>
2419
2420 * Makefile.in (mostlyclean): New target.
2421
52405d85
TBA
24222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2423
2424 * target.h (struct process_stratum_target): Remove.
2425 (class process_target): Rename to ...
2426 (class process_stratum_target): ... this.
2427 * linux-low.h (class linux_process_target): Derive from
2428 'process_stratum_target'.
2429 * linux-low.cc (linux_target_ops): Remove.
2430 (initialize_low): Set the_target to the singleton instance of
2431 linux_process_target.
2432 * lynx-low.h (class lynx_process_target): Derive from
2433 'process_stratum_target'.
2434 * lynx-low.cc (lynx_target_ops): Remove.
2435 (initialize_low): Set the_target to the singleton instance of
2436 lynx_process_target.
2437 * nto-low.h (class nto_process_target): Derive from
2438 'process_stratum_target'.
2439 * nto-low.cc (nto_target_ops): Remove.
2440 (initialize_low): Set the_target to the singleton instance of
2441 nto_process_target.
2442 * win32-low.h (class win32_process_target): Derive from
2443 'process_stratum_target'.
2444 * win32-low.cc (win32_target_ops): Remove.
2445 (initialize_low): Set the_target to the singleton instance of
2446 win32_process_target.
2447
2448 Replace 'the_target->pt' with 'the_target' in the uses below.
2449
2450 * hostio.cc (hostio_error)
2451 (handle_setfs)
2452 (handle_open)
2453 (handle_unlink)
2454 (handle_readlink)
2455 * linux-aarch32-low.cc (arm_breakpoint_at)
2456 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2457 * linux-arm-low.cc (arm_sigreturn_next_pc)
2458 (arm_get_hwcap)
2459 (arm_get_syscall_trapinfo)
2460 * linux-cris-low.cc (cris_breakpoint_at)
2461 * linux-crisv32-low.cc (cris_breakpoint_at)
2462 * linux-low.cc (handle_extended_wait)
2463 (linux_wait_1)
2464 (linux_read_memory)
2465 (linux_process_target::breakpoint_kind_from_pc)
2466 (linux_get_auxv)
2467 * linux-m32r-low.cc (m32r_breakpoint_at)
2468 * linux-mips-low.cc (mips_breakpoint_at)
2469 * linux-nios2-low.cc (nios2_breakpoint_at)
2470 * linux-ppc-low.cc (ppc_breakpoint_at)
2471 * linux-s390-low.cc (s390_get_hwcap)
2472 * linux-sh-low.cc (sh_breakpoint_at)
2473 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2474 (sparc_store_gregset_from_stack)
2475 (sparc_breakpoint_at)
2476 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2477 * linux-tile-low.cc (tile_breakpoint_at)
2478 * linux-x86-low.cc (x86_breakpoint_at)
2479 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2480 * mem-break.cc (bp_size)
2481 (bp_opcode)
2482 (insert_memory_breakpoint)
2483 (set_raw_breakpoint_at)
2484 (delete_raw_breakpoint)
2485 (z_type_supported)
2486 (uninsert_raw_breakpoint)
2487 (reinsert_raw_breakpoint)
2488 (validate_inserted_breakpoint)
2489 * regcache.cc (regcache_read_pc)
2490 (regcache_write_pc)
2491 * remote-utils.cc (putpkt_binary_1)
2492 (input_interrupt)
2493 (getpkt)
2494 (prepare_resume_reply)
2495 * server.cc (handle_general_set)
2496 (handle_detach)
2497 (handle_qxfer_auxv)
2498 (handle_qxfer_exec_file)
2499 (handle_qxfer_libraries_svr4)
2500 (handle_qxfer_osdata)
2501 (handle_qxfer_siginfo)
2502 (handle_qxfer_fdpic)
2503 (handle_query)
2504 (resume)
2505 (handle_v_requests)
2506 (queue_stop_reply_callback)
2507 (captured_main)
2508 * target.cc (prepare_to_access_memory)
2509 (done_accessing_memory)
2510 (read_inferior_memory)
2511 (target_write_memory)
2512 (target_stop_and_wait)
2513 (target_wait)
2514 (target_mourn_inferior)
2515 (target_continue_no_signal)
2516 (target_continue)
2517 (target_supports_multi_process)
2518 (kill_inferior)
2519 * target.h
2520 (target_create_inferior)
2521 (target_post_create_inferior)
2522 (myattach)
2523 (target_supports_fork_events)
2524 (target_supports_vfork_events)
2525 (target_supports_exec_events)
2526 (target_handle_new_gdb_connection)
2527 (detach_inferior)
2528 (mythread_alive)
2529 (fetch_inferior_registers)
2530 (store_inferior_registers)
2531 (join_inferior)
2532 (target_supports_non_stop)
2533 (target_async)
2534 (target_process_qsupported)
2535 (target_supports_catch_syscall)
2536 (target_get_ipa_tdesc_idx)
2537 (target_supports_tracepoints)
2538 (target_supports_fast_tracepoints)
2539 (target_get_min_fast_tracepoint_insn_len)
2540 (target_thread_stopped)
2541 (target_pause_all)
2542 (target_unpause_all)
2543 (target_stabilize_threads)
2544 (target_install_fast_tracepoint_jump_pad)
2545 (target_emit_ops)
2546 (target_supports_disable_randomization)
2547 (target_supports_agent)
2548 (target_enable_btrace)
2549 (target_disable_btrace)
2550 (target_read_btrace)
2551 (target_read_btrace_conf)
2552 (target_supports_range_stepping)
2553 (target_supports_stopped_by_sw_breakpoint)
2554 (target_stopped_by_sw_breakpoint)
2555 (target_supports_stopped_by_hw_breakpoint)
2556 (target_supports_hardware_single_step)
2557 (target_stopped_by_hw_breakpoint)
2558 (target_breakpoint_kind_from_pc)
2559 (target_breakpoint_kind_from_current_state)
2560 (target_supports_software_single_step)
2561 (target_core_of_thread)
2562 (target_thread_name)
2563 (target_thread_handle)
2564 * win32-low.cc (do_initial_child_stuff)
2565
2566 Rename target op default definitions listed below.
2567
2568 * target.cc (process_target::post_create_inferior): Rename as ...
2569 (process_stratum_target::post_create_inferior): ... this.
2570 (process_target::prepare_to_access_memory): Rename as ...
2571 (process_stratum_target::prepare_to_access_memory): ... this.
2572 (process_target::done_accessing_memory): Rename as ...
2573 (process_stratum_target::done_accessing_memory): ... this.
2574 (process_target::look_up_symbols): Rename as ...
2575 (process_stratum_target::look_up_symbols): ... this.
2576 (process_target::supports_read_auxv): Rename as ...
2577 (process_stratum_target::supports_read_auxv): ... this.
2578 (process_target::read_auxv): Rename as ...
2579 (process_stratum_target::read_auxv): ... this.
2580 (process_target::supports_z_point_type): Rename as ...
2581 (process_stratum_target::supports_z_point_type): ... this.
2582 (process_target::insert_point): Rename as ...
2583 (process_stratum_target::insert_point): ... this.
2584 (process_target::remove_point): Rename as ...
2585 (process_stratum_target::remove_point): ... this.
2586 (process_target::stopped_by_sw_breakpoint): Rename as ...
2587 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2588 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2589 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2590 (process_target::stopped_by_hw_breakpoint): Rename as ...
2591 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2592 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2593 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2594 (process_target::supports_hardware_single_step): Rename as ...
2595 (process_stratum_target::supports_hardware_single_step): ... this.
2596 (process_target::stopped_by_watchpoint): Rename as ...
2597 (process_stratum_target::stopped_by_watchpoint): ... this.
2598 (process_target::stopped_data_address): Rename as ...
2599 (process_stratum_target::stopped_data_address): ... this.
2600 (process_target::supports_read_offsets): Rename as ...
2601 (process_stratum_target::supports_read_offsets): ... this.
2602 (process_target::read_offsets): Rename as ...
2603 (process_stratum_target::read_offsets): ... this.
2604 (process_target::supports_get_tls_address): Rename as ...
2605 (process_stratum_target::supports_get_tls_address): ... this.
2606 (process_target::get_tls_address): Rename as ...
2607 (process_stratum_target::get_tls_address): ... this.
2608 (process_target::hostio_last_error): Rename as ...
2609 (process_stratum_target::hostio_last_error): ... this.
2610 (process_target::supports_qxfer_osdata): Rename as ...
2611 (process_stratum_target::supports_qxfer_osdata): ... this.
2612 (process_target::qxfer_osdata): Rename as ...
2613 (process_stratum_target::qxfer_osdata): ... this.
2614 (process_target::supports_qxfer_siginfo): Rename as ...
2615 (process_stratum_target::supports_qxfer_siginfo): ... this.
2616 (process_target::qxfer_siginfo): Rename as ...
2617 (process_stratum_target::qxfer_siginfo): ... this.
2618 (process_target::supports_non_stop): Rename as ...
2619 (process_stratum_target::supports_non_stop): ... this.
2620 (process_target::async): Rename as ...
2621 (process_stratum_target::async): ... this.
2622 (process_target::start_non_stop): Rename as ...
2623 (process_stratum_target::start_non_stop): ... this.
2624 (process_target::supports_multi_process): Rename as ...
2625 (process_stratum_target::supports_multi_process): ... this.
2626 (process_target::supports_fork_events): Rename as ...
2627 (process_stratum_target::supports_fork_events): ... this.
2628 (process_target::supports_vfork_events): Rename as ...
2629 (process_stratum_target::supports_vfork_events): ... this.
2630 (process_target::supports_exec_events): Rename as ...
2631 (process_stratum_target::supports_exec_events): ... this.
2632 (process_target::handle_new_gdb_connection): Rename as ...
2633 (process_stratum_target::handle_new_gdb_connection): ... this.
2634 (process_target::handle_monitor_command): Rename as ...
2635 (process_stratum_target::handle_monitor_command): ... this.
2636 (process_target::core_of_thread): Rename as ...
2637 (process_stratum_target::core_of_thread): ... this.
2638 (process_target::supports_read_loadmap): Rename as ...
2639 (process_stratum_target::supports_read_loadmap): ... this.
2640 (process_target::read_loadmap): Rename as ...
2641 (process_stratum_target::read_loadmap): ... this.
2642 (process_target::process_qsupported): Rename as ...
2643 (process_stratum_target::process_qsupported): ... this.
2644 (process_target::supports_tracepoints): Rename as ...
2645 (process_stratum_target::supports_tracepoints): ... this.
2646 (process_target::read_pc): Rename as ...
2647 (process_stratum_target::read_pc): ... this.
2648 (process_target::write_pc): Rename as ...
2649 (process_stratum_target::write_pc): ... this.
2650 (process_target::supports_thread_stopped): Rename as ...
2651 (process_stratum_target::supports_thread_stopped): ... this.
2652 (process_target::thread_stopped): Rename as ...
2653 (process_stratum_target::thread_stopped): ... this.
2654 (process_target::supports_get_tib_address): Rename as ...
2655 (process_stratum_target::supports_get_tib_address): ... this.
2656 (process_target::get_tib_address): Rename as ...
2657 (process_stratum_target::get_tib_address): ... this.
2658 (process_target::pause_all): Rename as ...
2659 (process_stratum_target::pause_all): ... this.
2660 (process_target::unpause_all): Rename as ...
2661 (process_stratum_target::unpause_all): ... this.
2662 (process_target::stabilize_threads): Rename as ...
2663 (process_stratum_target::stabilize_threads): ... this.
2664 (process_target::supports_fast_tracepoints): Rename as ...
2665 (process_stratum_target::supports_fast_tracepoints): ... this.
2666 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2667 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2668 (process_target::emit_ops): Rename as ...
2669 (process_stratum_target::emit_ops): ... this.
2670 (process_target::supports_disable_randomization): Rename as ...
2671 (process_stratum_target::supports_disable_randomization): ... this.
2672 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2673 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2674 (process_target::qxfer_libraries_svr4): Rename as ...
2675 (process_stratum_target::qxfer_libraries_svr4): ... this.
2676 (process_target::supports_agent): Rename as ...
2677 (process_stratum_target::supports_agent): ... this.
2678 (process_target::enable_btrace): Rename as ...
2679 (process_stratum_target::enable_btrace): ... this.
2680 (process_target::disable_btrace): Rename as ...
2681 (process_stratum_target::disable_btrace): ... this.
2682 (process_target::read_btrace): Rename as ...
2683 (process_stratum_target::read_btrace): ... this.
2684 (process_target::read_btrace_conf): Rename as ...
2685 (process_stratum_target::read_btrace_conf): ... this.
2686 (process_target::supports_range_stepping): Rename as ...
2687 (process_stratum_target::supports_range_stepping): ... this.
2688 (process_target::supports_pid_to_exec_file): Rename as ...
2689 (process_stratum_target::supports_pid_to_exec_file): ... this.
2690 (process_target::pid_to_exec_file): Rename as ...
2691 (process_stratum_target::pid_to_exec_file): ... this.
2692 (process_target::supports_multifs): Rename as ...
2693 (process_stratum_target::supports_multifs): ... this.
2694 (process_target::multifs_open): Rename as ...
2695 (process_stratum_target::multifs_open): ... this.
2696 (process_target::multifs_unlink): Rename as ...
2697 (process_stratum_target::multifs_unlink): ... this.
2698 (process_target::multifs_readlink): Rename as ...
2699 (process_stratum_target::multifs_readlink): ... this.
2700 (process_target::breakpoint_kind_from_pc): Rename as ...
2701 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2702 (process_target::breakpoint_kind_from_current_state): Rename as ...
2703 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2704 (process_target::thread_name): Rename as ...
2705 (process_stratum_target::thread_name): ... this.
2706 (process_target::thread_handle): Rename as ...
2707 (process_stratum_target::thread_handle): ... this.
2708 (process_target::supports_software_single_step): Rename as ...
2709 (process_stratum_target::supports_software_single_step): ... this.
2710 (process_target::supports_catch_syscall): Rename as ...
2711 (process_stratum_target::supports_catch_syscall): ... this.
2712 (process_target::get_ipa_tdesc_idx): Rename as ...
2713 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2714
478f9adf
PA
27152020-02-20 Pedro Alves <palves@redhat.com>
2716
2717 * target.cc (set_target_ops): Simply copy the given target pointer
2718 instead of creating a copy of the pointed object.
2719
d633e831
TBA
27202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2721
2722 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2723 of process_target.
2724
2725 * target.h (struct process_stratum_target): Remove the target op.
2726 (class process_target): Add the target op.
2727 (target_get_ipa_tdesc_idx): Update the macro.
2728 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2729
2730 Update the derived classes and callers below.
2731
2732 * linux-low.cc (linux_target_ops): Update.
2733 (linux_get_ipa_tdesc_idx): Turn into ...
2734 (linux_process_target::get_ipa_tdesc_idx): ... this.
2735 * linux-low.h (class linux_process_target): Update.
2736 * lynx-low.cc (lynx_target_ops): Update.
2737 * nto-low.cc (nto_target_ops): Update.
2738 * win32-low.cc (win32_target_ops): Update.
2739
bc8d3ae4
TBA
27402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2741
2742 Turn process_stratum_target's supports_catch_syscall op into a
2743 method of process_target.
2744
2745 * target.h (struct process_stratum_target): Remove the target op.
2746 (class process_target): Add the target op.
2747 (target_supports_catch_syscall): Update the macro.
2748 * target.cc (process_target::supports_catch_syscall): Define.
2749
2750 Update the derived classes and callers below.
2751
2752 * linux-low.cc (linux_target_ops): Update.
2753 (linux_supports_catch_syscall): Turn into ...
2754 (linux_process_target::supports_catch_syscall): ... this.
2755 * linux-low.h (class linux_process_target): Update.
2756 * lynx-low.cc (lynx_target_ops): Update.
2757 * nto-low.cc (nto_target_ops): Update.
2758 * win32-low.cc (win32_target_ops): Update.
2759
5303a34f
TBA
27602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2761
2762 Turn process_stratum_target's supports_software_single_step op
2763 into a method of process_target.
2764
2765 * target.h (struct process_stratum_target): Remove the target op.
2766 (class process_target): Add the target op.
2767 (target_supports_software_single_step): Update the macro.
2768 * target.cc (process_target::supports_software_single_step): Define.
2769
2770 Update the derived classes and callers below.
2771
2772 * linux-low.cc (linux_target_ops): Update.
2773 (linux_supports_software_single_step): Turn into ...
2774 (linux_process_target::supports_software_single_step): ... this.
2775 * linux-low.h (class linux_process_target): Update.
2776 * lynx-low.cc (lynx_target_ops): Update.
2777 * nto-low.cc (nto_target_ops): Update.
2778 * win32-low.cc (win32_target_ops): Update.
2779
7f63b89b
TBA
27802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2781
2782 Turn process_stratum_target's thread_name and thread_handle ops
2783 into methods of process_target.
2784
2785 * target.h (struct process_stratum_target): Remove the target ops.
2786 (class process_target): Add the target ops.
2787 (target_thread_name): Update the macro.
2788 (target_thread_handle): Update the macro.
2789 * target.cc (process_target::thread_name): Define.
2790 (process_target::thread_handle): Define.
2791
2792 Update the derived classes and callers below.
2793
2794 * linux-low.cc (linux_target_ops): Update.
2795 (linux_process_target::thread_name): Define.
2796 (linux_process_target::thread_handle): Define.
2797 * linux-low.h (class linux_process_target): Update.
2798 * lynx-low.cc (lynx_target_ops): Update.
2799 * nto-low.cc (nto_target_ops): Update.
2800 * win32-low.cc (win32_target_ops): Update.
2801
d367006f
TBA
28022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2803
2804 Turn process_stratum_target's breakpoint_kind_from_pc,
2805 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2806 ops into methods of process_target.
2807
2808 * target.h (struct process_stratum_target): Remove the target op.
2809 (class process_target): Add the target op.
2810 (target_breakpoint_kind_from_pc): Update the macro.
2811 (target_breakpoint_kind_from_current_state): Update the macro.
2812 (default_breakpoint_kind_from_pc): Remove declaration.
2813 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2814 (process_target::breakpoint_kind_from_pc): ... this.
2815 (process_target::breakpoint_kind_from_current_state): Define.
2816
2817 Update the derived classes and callers below.
2818
2819 * mem-break.cc (bp_size): Update.
2820 (bp_opcode): Update.
2821 * linux-low.cc (linux_target_ops): Update.
2822 (linux_wait_1): Update.
2823 (linux_breakpoint_kind_from_pc): Turn into ...
2824 (linux_process_target::breakpoint_kind_from_pc): ... this.
2825 (linux_sw_breakpoint_from_kind): Turn into ...
2826 (linux_process_target::sw_breakpoint_from_kind): ... this.
2827 (linux_breakpoint_kind_from_current_state): Turn into ...
2828 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2829 * linux-low.h (class linux_process_target): Update.
2830 * lynx-low.cc (lynx_target_ops): Update.
2831 (lynx_process_target::sw_breakpoint_from_kind): Define.
2832 * lynx-low.h (class lynx_process_target): Update.
2833 * nto-low.cc (nto_target_ops): Update.
2834 (nto_sw_breakpoint_from_kind): Turn into ...
2835 (nto_process_target::sw_breakpoint_from_kind): ... this.
2836 * nto-low.h (class nto_process_target): Update.
2837 * win32-low.cc (win32_target_ops): Update.
2838 (win32_sw_breakpoint_from_kind): Turn into ...
2839 (win32_process_target::sw_breakpoint_from_kind): ... this.
2840 * win32-low.h (class win32_process_target): Update.
2841
c9b7b804
TBA
28422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2843
2844 Turn process_stratum_target's multifs_open, multifs_readlink,
2845 multifs_unlink ops into methods of process_target.
2846
2847 * target.h (struct process_stratum_target): Remove the target ops.
2848 (class process_target): Add the target ops. Also add
2849 'supports_multifs'.
2850 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2851 "sys/stat.h".
2852 (process_target::supports_multifs): Define.
2853 (process_target::multifs_open): Define.
2854 (process_target::multifs_readlink): Define.
2855 (process_target::multifs_unlink): Define.
2856
2857 Update the derived classes and callers below.
2858
2859 * hostio.cc (handle_setfs): Update.
2860 (handle_open): Update.
2861 (handle_unlink): Update.
2862 (handle_readlink): Update.
2863 * linux-low.cc (linux_target_ops): Update.
2864 (linux_process_target::supports_multifs): Define.
2865 (linux_process_target::multifs_open): Define.
2866 (linux_process_target::multifs_readlink): Define.
2867 (linux_process_target::multifs_unlink): Define.
2868 * linux-low.h (class linux_process_target): Update.
2869 * lynx-low.cc (lynx_target_ops): Update.
2870 * nto-low.cc (nto_target_ops): Update.
2871 * win32-low.cc (win32_target_ops): Update.
2872
8247b823
TBA
28732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2874
2875 Turn process_stratum_target's pid_to_exec_file op into a method
2876 of process_target.
2877
2878 * target.h (struct process_stratum_target): Remove the target op.
2879 (class process_target): Add the target op. Also add
2880 'supports_pid_to_exec_file'.
2881 * target.cc (process_target::pid_to_exec_file): Define.
2882 (process_target::supports_pid_to_exec_file): Define.
2883
2884 Update the derived classes and callers below.
2885
2886 * server.cc (handle_qxfer_exec_file): Update.
2887 (handle_query): Update.
2888 * linux-low.cc (linux_target_ops): Update.
2889 (linux_process_target::supports_pid_to_exec_file): Define.
2890 (linux_process_target::pid_to_exec_file): Define.
2891 * linux-low.h (class linux_process_target): Update.
2892 * lynx-low.cc (lynx_target_ops): Update.
2893 * nto-low.cc (nto_target_ops): Update.
2894 * win32-low.cc (win32_target_ops): Update.
2895
2526e0cd
TBA
28962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2897
2898 Turn process_stratum_target's supports_range_stepping op into a
2899 method of process_target.
2900
2901 * target.h (struct process_stratum_target): Remove the target op.
2902 (class process_target): Add the target op.
2903 (target_supports_range_stepping): Update the macro.
2904 * target.cc (process_target::supports_range_stepping): Define.
2905
2906 Update the derived classes and callers below.
2907
2908 * linux-low.cc (linux_target_ops): Update.
2909 (linux_supports_range_stepping): Turn into ...
2910 (linux_process_target::supports_range_stepping): ... this.
2911 * linux-low.h (class linux_process_target): Update.
2912 * lynx-low.cc (lynx_target_ops): Update.
2913 * nto-low.cc (nto_target_ops): Update.
2914 * win32-low.cc (win32_target_ops): Update.
2915
79597bdd
TBA
29162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2917
2918 Turn process_stratum_target's btrace-related ops (enable_btrace,
2919 disable_btrace, read_btrace, read_btrace_conf) into methods of
2920 process_target.
2921
2922 * target.h (struct process_stratum_target): Remove the target ops.
2923 (class process_target): Add the target ops.
2924 (target_enable_btrace): Update.
2925 (target_disable_btrace): Update.
2926 (target_read_btrace): Update.
2927 (target_read_btrace_conf): Update.
2928 * target.cc (process_target::enable_btrace): Define.
2929 (process_target::disable_btrace): Define.
2930 (process_target::read_btrace): Define.
2931 (process_target::read_btrace_conf): Define.
2932
2933 Update the derived classes and callers below.
2934
2935 * linux-low.cc (linux_target_ops): Update.
2936 (linux_process_target:enable_btrace): Define as a wrapper around
2937 linux_enable_btrace.
2938 (linux_low_disable_btrace): Turn into ...
2939 (linux_process_target::disable_btrace): ... this.
2940 (linux_low_read_btrace): Turn into ...
2941 (linux_process_target::read_btrace): ... this.
2942 (linux_low_btrace_conf): Turn into ...
2943 (linux_process_target::read_btrace_conf): ... this.
2944 * linux-low.h (class linux_process_target): Update.
2945 * lynx-low.cc (lynx_target_ops): Update.
2946 * nto-low.cc (nto_target_ops): Update.
2947 * win32-low.cc (win32_target_ops): Update.
2948
c0245cb9
TBA
29492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2950
2951 Turn process_stratum_target's supports_agent op into a method of
2952 process_target.
2953
2954 * target.h (struct process_stratum_target): Remove the target op.
2955 (class process_target): Add the target op.
2956 (target_supports_agent): Update the macro.
2957 * target.cc (process_target::supports_agent): Define.
2958
2959 Update the derived classes and callers below.
2960
2961 * linux-low.cc (linux_target_ops): Update.
2962 (linux_supports_agent): Turn into ...
2963 (linux_process_target::supports_agent): ... this.
2964 * linux-low.h (class linux_process_target): Update.
2965 * lynx-low.cc (lynx_target_ops): Update.
2966 * nto-low.cc (nto_target_ops): Update.
2967 * win32-low.cc (win32_target_ops): Update.
2968
974387bb
TBA
29692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2970
2971 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2972 method of process_target.
2973
2974 * target.h (struct process_stratum_target): Remove the target op.
2975 (class process_target): Add the target op. Also add
2976 'supports_qxfer_libraries_svr4'.
2977 * target.cc (process_target::qxfer_libraries_svr4): Define.
2978 (process_target::supports_qxfer_libraries_svr4): Define.
2979
2980 Update the derived classes and callers below.
2981
2982 * server.cc (handle_qxfer_libraries_svr4): Update.
2983 (handle_query): Update.
2984 * linux-low.cc (linux_target_ops): Update.
2985 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2986 (linux_qxfer_libraries_svr4): Turn into ...
2987 (linux_process_target::qxfer_libraries_svr4): ... 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
c756403b
TBA
29932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2994
2995 Turn process_stratum_target's supports_disable_randomization op
2996 into a 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_supports_disable_randomization): Update the macro.
3001 * target.cc (process_target::supports_disable_randomization): Define.
3002
3003 Update the derived classes and callers below.
3004
3005 * linux-low.cc (linux_target_ops): Update.
3006 (linux_supports_disable_randomization): Turn into ...
3007 (linux_process_target::supports_disable_randomization): ... this.
3008 * linux-low.h (class linux_process_target): Update.
3009 * lynx-low.cc (lynx_target_ops): Update.
3010 * nto-low.cc (nto_target_ops): Update.
3011 * win32-low.cc (win32_target_ops): Update.
3012
345dafad
TBA
30132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3014
3015 Turn process_stratum_target's emit_ops op into a method of
3016 process_target.
3017
3018 * target.h (struct process_stratum_target): Remove the target op.
3019 (class process_target): Add the target op.
3020 (target_emit_ops): Update the macro.
3021 * target.cc (process_target::emit_ops): Define.
3022
3023 Update the derived classes and callers below.
3024
3025 * linux-low.cc (linux_target_ops): Update.
3026 (linux_emit_ops): Turn into ...
3027 (linux_process_target::emit_ops): ... this.
3028 * linux-low.h (class linux_process_target): Update.
3029 * lynx-low.cc (lynx_target_ops): Update.
3030 * nto-low.cc (nto_target_ops): Update.
3031 * win32-low.cc (win32_target_ops): Update.
3032
c23c9391
TBA
30332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3034
3035 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3036 and get_min_fast_tracepoint_insn_len ops into methods of
3037 process_target.
3038
3039 * target.h (struct process_stratum_target): Remove the target ops.
3040 (class process_target): Add the target ops. Also add
3041 'supports_fast_tracepoints'.
3042 (target_supports_fast_tracepoints): Update the macro.
3043 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3044 (install_fast_tracepoint_jump_pad): Update and rename the macro
3045 to ...
3046 (target_install_fast_tracepoint_jump_pad): ... this.
3047 * target.cc (process_target::supports_fast_tracepoints): Define.
3048 (process_target::install_fast_tracepoint_jump_pad): Define.
3049 (process_target::get_min_fast_tracepoint_insn_len): Define.
3050
3051 Update the derived classes and callers below.
3052
3053 * tracepoint.cc (install_fast_tracepoint): Update.
3054 * linux-low.cc (linux_target_ops): Update.
3055 (linux_process_target::supports_fast_tracepoints): Define.
3056 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3057 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3058 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3059 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3060 * linux-low.h (class linux_process_target): Update.
3061 * lynx-low.cc (lynx_target_ops): Update.
3062 * nto-low.cc (nto_target_ops): Update.
3063 * win32-low.cc (win32_target_ops): Update.
3064
5c9eb2f2
TBA
30652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3066
3067 Turn process_stratum_target's stabilize_threads op into a
3068 method of process_target.
3069
3070 * target.h (struct process_stratum_target): Remove the target op.
3071 (class process_target): Add the target op.
3072 (target_stabilize_threads): Update the macro.
3073 * target.cc (process_target::stabilize_threads): Define.
3074
3075 Update the derived classes and callers below.
3076
3077 * server.cc (handle_status): Update.
3078 * tracepoint.cc (cmd_qtdp): Update.
3079 (cmd_qtstart): Update.
3080 * linux-low.cc (linux_target_ops): Update.
3081 (linux_stabilize_threads): Turn into ...
3082 (linux_process_target::stabilize_threads): ... this.
3083 (linux_wait_1): Update.
3084 * linux-low.h (class linux_process_target): Update.
3085 * lynx-low.cc (lynx_target_ops): Update.
3086 * nto-low.cc (nto_target_ops): Update.
3087 * win32-low.cc (win32_target_ops): Update.
3088
29e8dc09
TBA
30892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3090
3091 Turn process_stratum_target's pause_all and unpause_all ops
3092 into methods of process_target.
3093
3094 * target.h (struct process_stratum_target): Remove the target ops.
3095 (class process_target): Add the target ops.
3096 (pause_all): Update the macro and rename to...
3097 (target_pause_all): ... this.
3098 (unpause_all): Update the macro and rename to...
3099 (target_unpause_all): ... this.
3100 * target.cc (process_target::pause_all): Define.
3101 (process_target::unpause_all): Define.
3102
3103 Update the derived classes and callers below.
3104
3105 * server.cc (handle_status): Update.
3106 * tracepoint.cc (clear_installed_tracepoints): Update.
3107 (cmd_qtdp): Update.
3108 (cmd_qtstart): Update.
3109 (stop_tracing): Update.
3110 (cmd_qtstatus): Update.
3111 (upload_fast_traceframes): Update.
3112 (run_inferior_command): Update.
3113 * linux-low.cc (linux_target_ops): Update.
3114 (linux_pause_all): Turn into ...
3115 (linux_process_target::pause_all): ... this.
3116 (linux_unpause_all): Turn into ...
3117 (linux_process_target::unpause_all): ... this.
3118 (linux_process_target::prepare_to_access_memory): Update.
3119 (linux_process_target::done_accessing_memory): Update.
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
4e2e869c
TBA
31252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3126
3127 Turn process_stratum_target's get_tib_address op into a method of
3128 process_target.
3129
3130 * target.h (struct process_stratum_target): Remove the target op.
3131 (class process_target): Add the target op. Also add
3132 'supports_get_tib_address'.
3133 * target.cc (process_target::get_tib_address): Define.
3134 (process_target::supports_get_tib_address): Define.
3135
3136 Update the derived classes and callers below.
3137
3138 * server.cc (handle_query): Update.
3139 * linux-low.cc (win32_target_ops): Update.
3140 * lynx-low.cc (lynx_target_ops): Update.
3141 * nto-low.cc (nto_target_ops): Update.
3142 * win32-low.cc (win32_target_ops): Update.
3143 (win32_process_target::supports_get_tib_address): Define.
3144 (win32_get_tib_address): Turn into ...
3145 (win32_process_target::get_tib_address): ... this.
3146 * win32-low.h (class win32_process_target): Update.
3147
68119632
TBA
31482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3149
3150 Turn process_stratum_target's thread_stopped op into a method of
3151 process_target.
3152
3153 * target.h (struct process_stratum_target): Remove the target op.
3154 (class process_target): Add the target op. Also add
3155 'supports_thread_stopped'.
3156 (target_thread_stopped): Update the macro.
3157 * target.cc (process_target::thread_stopped): Define.
3158 (process_target::supports_thread_stopped): Define.
3159 (prepare_to_access_memory): Update.
3160
3161 Update the derived classes and callers below.
3162
3163 * server.cc (queue_stop_reply_callback): Update.
3164 * linux-low.cc (linux_target_ops): Update.
3165 (linux_process_target::supports_thread_stopped): Define.
3166 (linux_thread_stopped): Turn into ...
3167 (linux_process_target::thread_stopped): ... this.
3168 * linux-low.h (class linux_process_target): Update.
3169 * lynx-low.cc (lynx_target_ops): Update.
3170 * nto-low.cc (nto_target_ops): Update.
3171 * win32-low.cc (win32_target_ops): Update.
3172
770d8f6a
TBA
31732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3174
3175 Turn process_stratum_target's read_pc and write_pc ops into
3176 methods of process_target.
3177
3178 * target.h (struct process_stratum_target): Remove the target ops.
3179 (class process_target): Add the target ops.
3180 * target.cc (process_target::read_pc): Define.
3181 (process_target::write_pc): Define.
3182
3183 Update the derived classes and callers below.
3184
3185 * regcache.cc (regcache_read_pc): Update.
3186 (regcache_write_pc): Update.
3187 * linux-low.cc (linux_target_ops): Update.
3188 (linux_read_pc): Turn into ...
3189 (linux_process_target::read_pc): ... this.
3190 (linux_write_pc): Turn into ...
3191 (linux_process_target::write_pc): ... this.
3192 * linux-low.h (class linux_process_target): Update.
3193 * lynx-low.cc (lynx_target_ops): Update.
3194 * nto-low.cc (nto_target_ops): Update.
3195 * win32-low.cc (win32_target_ops): Update.
3196
290732bf
TBA
31972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3198
3199 Turn process_stratum_target's supports_tracepoints op into a
3200 method of process_target.
3201
3202 * target.h (struct process_stratum_target): Remove the target op.
3203 (class process_target): Add the target op.
3204 (target_supports_tracepoints): Update the macro.
3205 * target.cc (process_target::supports_tracepoints): Define.
3206
3207 Update the derived classes and callers below.
3208
3209 * linux-low.cc (linux_target_ops): Update.
3210 (linux_supports_tracepoints): Turn into ...
3211 (linux_process_target::supports_tracepoints): ... this.
3212 * linux-low.h (class linux_process_target): Update.
3213 * lynx-low.cc (lynx_target_ops): Update.
3214 * nto-low.cc (nto_target_ops): Update.
3215 * win32-low.cc (win32_target_ops): Update.
3216
0df28b1b
TBA
32172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3218
3219 Turn process_stratum_target's process_qsupported op into a method
3220 of process_target.
3221
3222 * target.h (struct process_stratum_target): Remove the target op.
3223 (class process_target): Add the target op.
3224 (target_process_qsupported): Update the macro.
3225 * target.cc (process_target::process_qsupported): Define.
3226
3227 Update the derived classes and callers below.
3228
3229 * linux-low.cc (linux_target_ops): Update.
3230 (linux_process_qsupported): Turn into ...
3231 (linux_process_target::process_qsupported): ... this.
3232 * linux-low.h (class linux_process_target): Update.
3233 * lynx-low.cc (lynx_target_ops): Update.
3234 * nto-low.cc (nto_target_ops): Update.
3235 * win32-low.cc (win32_target_ops): Update.
3236
9da41fda
TBA
32372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3238
3239 Turn process_stratum_target's read_loadmap op into a method of
3240 process_target.
3241
3242 * target.h (struct process_stratum_target): Remove the target op.
3243 (class process_target): Add the target op. Also add
3244 'supports_read_loadmap'.
3245 * target.cc (process_target::read_loadmap): Define.
3246 (process_target::supports_read_loadmap): Define.
3247
3248 Update the derived classes and callers below.
3249
3250 * server.cc (handle_qxfer_fdpic): Update.
3251 (handle_query): Update.
3252 * linux-low.cc (linux_target_ops): Update.
3253 (linux_process_target::supports_read_loadmap): Define.
3254 (linux_read_loadmap): Turn into ...
3255 (linux_process_target::read_loadmap): ... this.
3256 * linux-low.h (class linux_process_target): Update.
3257 * lynx-low.cc (lynx_target_ops): Update.
3258 * nto-low.cc (nto_target_ops): Update.
3259 * win32-low.cc (win32_target_ops): Update.
3260
95a45fc1
TBA
32612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3262
3263 Turn process_stratum_target's core_of_thread op into a method of
3264 process_target.
3265
3266 * target.h (struct process_stratum_target): Remove the target op.
3267 (class process_target): Add the target op.
3268 (target_core_of_thread): Update the macro.
3269 * target.cc (process_target::core_of_thread): Define.
3270
3271 Update the derived classes and callers below.
3272
3273 * linux-low.cc (linux_target_ops): Update.
3274 (linux_process_target::core_of_thread): Define.
3275 * linux-low.h (class linux_process_target): Update.
3276 * lynx-low.cc (lynx_target_ops): Update.
3277 * nto-low.cc (nto_target_ops): Update.
3278 * win32-low.cc (win32_target_ops): Update.
3279
55cf3021
TBA
32802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3281
3282 Turn process_stratum_target's handle_monitor_command op into a
3283 method of process_target.
3284
3285 * target.h (struct process_stratum_target): Remove the target op.
3286 (class process_target): Add the target op.
3287 (target_handle_monitor_command): Update the macro.
3288 * target.cc (process_target::handle_monitor_command): Define.
3289
3290 Update the derived classes and callers below.
3291
3292 * server.cc (handle_query): Update.
3293 * linux-low.cc (linux_target_ops): Update.
3294 (linux_process_target::handle_monitor_command): Define.
3295 * linux-low.h (class linux_process_target): Update.
3296 * lynx-low.cc (lynx_target_ops): Update.
3297 * nto-low.cc (nto_target_ops): Update.
3298 * win32-low.cc (win32_target_ops): Update.
3299
fb00dfce
TBA
33002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3301
3302 Turn process_stratum_target's handle_new_gdb_connection op into a
3303 method of process_target.
3304
3305 * target.h (struct process_stratum_target): Remove the target op.
3306 (class process_target): Add the target op.
3307 (target_handle_new_gdb_connection): Update the macro.
3308 * target.cc (process_target::handle_new_gdb_connection): Define.
3309
3310 Update the derived classes and callers below.
3311
3312 * linux-low.cc (linux_target_ops): Update.
3313 (linux_handle_new_gdb_connection): Turn into ...
3314 (linux_process_target::handle_new_gdb_connection): ... this.
3315 * linux-low.h (class linux_process_target): Update.
3316 * lynx-low.cc (lynx_target_ops): Update.
3317 * nto-low.cc (nto_target_ops): Update.
3318 * win32-low.cc (win32_target_ops): Update.
3319
9690a72a
TBA
33202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3321
3322 Turn process_stratum_target's supports_fork_events,
3323 supports_vfork_events, and supports_exec_events ops into methods
3324 of process_target.
3325
3326 * target.h (struct process_stratum_target): Remove the target ops.
3327 (class process_target): Add the target ops.
3328 (target_supports_fork_events): Update the macro.
3329 (target_supports_vfork_events): Update the macro.
3330 (target_supports_exec_events): Update the macro.
3331 * target.cc (process_target::supports_fork_events): Define.
3332 (process_target::supports_vfork_events): Define.
3333 (process_target::supports_exec_events): Define.
3334
3335 Update the derived classes and callers below.
3336
3337 * linux-low.cc (linux_target_ops): Update.
3338 (linux_supports_fork_events): Turn into ...
3339 (linux_process_target::supports_fork_events): ... this.
3340 (linux_supports_vfork_events): Turn into ...
3341 (linux_process_target::supports_vfork_events): ... this.
3342 (linux_supports_exec_events): Turn into ...
3343 (linux_process_target::supports_exec_events): ... this.
3344 * linux-low.h (class linux_process_target): Update.
3345 * lynx-low.cc (lynx_target_ops): Update.
3346 * nto-low.cc (nto_target_ops): Update.
3347 * win32-low.cc (win32_target_ops): Update.
3348
652aef77
TBA
33492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3350
3351 Turn process_stratum_target's supports_multi_process op into a
3352 method of process_target.
3353
3354 * target.h (struct process_stratum_target): Remove the target op.
3355 (class process_target): Add the target op.
3356 * target.cc (process_target::supports_multi_process): Define.
3357 (target_supports_multi_process): Update.
3358
3359 Update the derived classes and callers below.
3360
3361 * linux-low.cc (linux_target_ops): Update.
3362 (linux_supports_multi_process): Turn into ...
3363 (linux_process_target::supports_multi_process): ... this.
3364 * linux-low.h (class linux_process_target): Update.
3365 * lynx-low.cc (lynx_target_ops): Update.
3366 * nto-low.cc (nto_target_ops): Update.
3367 * win32-low.cc (win32_target_ops): Update.
3368
0dc587d4
TBA
33692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3370
3371 Turn process_stratum_target's supports_non_stop, async, and
3372 start_non_stop ops into methods of process_target.
3373
3374 * target.h (struct process_stratum_target): Remove the target ops.
3375 (class process_target): Add the target ops.
3376 (target_supports_non_stop): Update the macro.
3377 (target_async): Update the macro.
3378 (start_non_stop): Remove declaration.
3379 * target.cc (process_target::supports_non_stop): Define.
3380 (process_target::async): Define.
3381 (process_target::start_non_stop): Define.
3382 (start_non_stop): Remove.
3383
3384 Update the derived classes and callers below.
3385
3386 * server.cc (handle_qxfer_siginfo): Update.
3387 (handle_query): Update.
3388 * linux-low.cc (linux_target_ops): Update.
3389 (linux_supports_non_stop): Turn into ...
3390 (linux_process_target::supports_non_stop): ... this.
3391 (linux_async): Turn into ...
3392 (linux_process_target::async): ... this.
3393 (linux_start_non_stop): Turn into ...
3394 (linux_process_target::start_non_stop): ... this.
3395 * linux-low.h (class linux_process_target): Update.
3396 * lynx-low.cc (lynx_target_ops): Update.
3397 * nto-low.cc (nto_target_ops): Update.
3398 (nto_supports_non_stop): Remove; rely on the default behavior
3399 instead.
3400 * win32-low.cc (win32_target_ops): Update.
3401
d7abedf7
TBA
34022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3403
3404 Turn process_stratum_target's qxfer_siginfo op into a method of
3405 process_target.
3406
3407 * target.h (struct process_stratum_target): Remove the target op.
3408 (class process_target): Add the target op. Also add
3409 'supports_qxfer_siginfo'.
3410 * target.cc (process_target::qxfer_siginfo): Define.
3411 (process_target::supports_qxfer_siginfo): Define.
3412
3413 Update the derived classes and callers below.
3414
3415 * server.cc (handle_qxfer_siginfo): Update.
3416 (handle_query): Update.
3417 * linux-low.cc (linux_target_ops): Update.
3418 (linux_process_target::supports_qxfer_siginfo): Define.
3419 (linux_xfer_siginfo): Turn into ...
3420 (linux_process_target::qxfer_siginfo): ... this.
3421 * linux-low.h (class linux_process_target): Update.
3422 * lynx-low.cc (lynx_target_ops): Update.
3423 * nto-low.cc (nto_target_ops): Update.
3424 * win32-low.cc (win32_target_ops): Update.
3425
2d0795ee
TBA
34262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3427
3428 Turn process_stratum_target's qxfer_osdata op into a method of
3429 process_target.
3430
3431 * target.h (struct process_stratum_target): Remove the target op.
3432 (class process_target): Add the target op. Also add
3433 'supports_qxfer_osdata'.
3434 * target.cc (process_target::qxfer_osdata): Define.
3435 (process_target::supports_qxfer_osdata): Define.
3436
3437 Update the derived classes and callers below.
3438
3439 * server.cc (handle_qxfer_osdata): Update.
3440 (handle_query): Update.
3441 * linux-low.cc (linux_target_ops): Update.
3442 (linux_process_target::supports_qxfer_osdata): Define.
3443 (linux_qxfer_osdata): Turn into ...
3444 (linux_process_target::qxfer_osdata): ... this.
3445 * linux-low.h (class linux_process_target): Update.
3446 * lynx-low.cc (lynx_target_ops): Update.
3447 * nto-low.cc (nto_target_ops): Update.
3448 * win32-low.cc (win32_target_ops): Update.
3449
ea06bbaa
TBA
34502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3451
3452 Turn process_stratum_target's hostio_last_error op into a
3453 method of process_target.
3454
3455 * target.h (struct process_stratum_target): Remove the target op.
3456 (class process_target): Add the target op.
3457 * target.cc: Add "hostio.h" to includes.
3458 (process_target::hostio_last_error): Define.
3459
3460 Update the derived classes and callers below.
3461
3462 * hostio.cc (hostio_error): Update.
3463 * linux-low.cc: Remove "hostio.h" from includes.
3464 (linux_target_ops): Update.
3465 * lynx-low.cc (lynx_target_ops): Update.
3466 * nto-low.cc (nto_target_ops): Update.
3467 * win32-low.h (class win32_process_target): Update.
3468 * win32-low.cc (win32_target_ops): Update.
3469 (wince_hostio_last_error): Turn into ...
3470 (win32_process_target::hostio_last_error): ... this.
3471
6e3fd7e9
TBA
34722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3473
3474 Turn process_stratum_target's get_tls_address op into a method of
3475 process_target.
3476
3477 * target.h (struct process_stratum_target): Remove the target op.
3478 (class process_target): Add the target op. Also add
3479 'supports_get_tls_address'.
3480 * target.cc (process_target::get_tls_address): Define.
3481 (process_target::supports_get_tls_address): Define.
3482
3483 Update the derived classes and callers below.
3484
3485 * server.cc (handle_query): Update.
3486 * linux-low.cc (linux_target_ops): Update.
3487 (linux_process_target::supports_get_tls_address): Define.
3488 (linux_process_target::get_tls_address): Define.
3489 * linux-low.h (class linux_process_target): Update.
3490 * lynx-low.cc (lynx_target_ops): Update.
3491 * nto-low.cc (nto_target_ops): Update.
3492 * win32-low.cc (win32_target_ops): Update.
3493
5203ae1e
TBA
34942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3495
3496 Turn process_stratum_target's read_offsets op into a method of
3497 process_target.
3498
3499 * target.h (struct process_stratum_target): Remove the target op.
3500 (class process_target): Add the target op. Also add
3501 'supports_read_offsets'.
3502 * target.cc (process_target::read_offsets): Define.
3503 (process_target::supports_read_offsets): Define.
3504
3505 Update the derived classes and callers below.
3506
3507 * server.cc (handle_query): Update.
3508 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3509 (linux_target_ops): Update.
3510 (linux_process_target::supports_read_offsets): Define.
3511 (linux_read_offsets): Turn into ...
3512 (linux_process_target::read_offsets): ... this.
3513 * linux-low.h (class linux_process_target): Update.
3514 * lynx-low.cc (lynx_target_ops): Update.
3515 * nto-low.cc (nto_target_ops): Update.
3516 * win32-low.cc (win32_target_ops): Update.
3517
6eeb5c55
TBA
35182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3519
3520 Turn process_stratum_target's stopped_by_watchpoint and
3521 stopped_data_address ops into methods of process_target.
3522
3523 * target.h (struct process_stratum_target): Remove the target ops.
3524 (class process_target): Add the target ops.
3525 * target.cc (process_target::stopped_by_watchpoint): Define.
3526 (process_target::stopped_data_address): Define.
3527
3528 Update the derived classes and callers below.
3529
3530 * remote-utils.cc (prepare_resume_reply): Update.
3531 * linux-low.cc (linux_target_ops): Update.
3532 (linux_stopped_by_watchpoint): Turn into ...
3533 (linux_process_target::stopped_by_watchpoint): ... this.
3534 (linux_stopped_data_address): Turn into ...
3535 (linux_process_target::stopped_data_address): ... this.
3536 * linux-low.h (class linux_process_target): Update.
3537 * lynx-low.cc (lynx_target_ops): Update.
3538 * nto-low.cc (nto_target_ops): Update.
3539 (nto_stopped_by_watchpoint): Turn into ...
3540 (nto_process_target::stopped_by_watchpoint): ... this.
3541 (nto_stopped_data_address): Turn into ...
3542 (nto_process_target::stopped_data_address): ... this.
3543 * nto-low.h (class nto_process_target): Update.
3544 * win32-low.cc (win32_target_ops): Update.
3545 (win32_stopped_by_watchpoint): Turn into ...
3546 (win32_process_target::stopped_by_watchpoint): ... this.
3547 (win32_stopped_data_address): Turn into ...
3548 (win32_process_target::stopped_data_address): ... this.
3549 * win32-low.h (class win32_process_target): Update.
3550
22aa6223
TBA
35512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3552
3553 Turn process_stratum_target's supports_hardware_single_step op into
3554 a method of process_target.
3555
3556 * target.h (struct process_stratum_target): Remove the target op.
3557 (class process_target): Add the target op.
3558 (target_supports_hardware_single_step): Update the macro.
3559 (target_can_do_hardware_single_step): Remove declaration.
3560 * target.cc (process_target::supports_hardware_single_step): Define.
3561 (target_can_do_hardware_single_step): Remove.
3562
3563 Update the derived classes and callers below.
3564
3565 * linux-low.h (class linux_process_target): Update.
3566 * linux-low.cc (linux_target_ops): Update.
3567 (linux_supports_hardware_single_step): Turn into ...
3568 (linux_process_target::supports_hardware_single_step): ... this.
3569 * lynx-low.h (class lynx_process_target): Update.
3570 * lynx-low.cc (lynx_target_ops): Update.
3571 (lynx_process_target::supports_hardware_single_step): Define.
3572 * nto-low.h (class nto_process_target): Update.
3573 * nto-low.cc (nto_target_ops): Update.
3574 (nto_process_target::supports_hardware_single_step): Define.
3575 * win32-low.h (class win32_process_target): Update.
3576 * win32-low.cc (win32_target_ops): Update.
3577 (win32_process_target::supports_hardware_single_step): Define.
3578
93fe88b2
TBA
35792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3580
3581 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3582 ops into methods of process_target.
3583
3584 * target.h (struct process_stratum_target): Remove the target ops.
3585 (class process_target): Add the target ops.
3586 (target_stopped_by_hw_breakpoint): Update the macro.
3587 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3588 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3589 (process_target::supports_stopped_by_hw_breakpoint): Define.
3590
3591 Update the derived classes and callers below.
3592
3593 * linux-low.cc (linux_target_ops): Update.
3594 (linux_stopped_by_hw_breakpoint): Turn into ...
3595 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3596 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3597 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3598 * linux-low.h (class linux_process_target): Update.
3599 * lynx-low.cc (lynx_target_ops): Update.
3600 * nto-low.cc (nto_target_ops): Update.
3601 * win32-low.cc (win32_target_ops): Update.
3602
84320c4e
TBA
36032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3604
3605 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3606 ops into methods of process_target.
3607
3608 * target.h (struct process_stratum_target): Remove the target ops.
3609 (class process_target): Add the target ops.
3610 (target_stopped_by_sw_breakpoint): Update the macro.
3611 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3612 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3613 (process_target::supports_stopped_by_sw_breakpoint): Define.
3614
3615 Update the derived classes and callers below.
3616
3617 * linux-low.cc (linux_target_ops): Update.
3618 (linux_stopped_by_sw_breakpoint): Turn into ...
3619 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3620 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3621 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3622 * linux-low.h (class linux_process_target): Update.
3623 * lynx-low.cc (lynx_target_ops): Update.
3624 * nto-low.cc (nto_target_ops): Update.
3625 * win32-low.cc (win32_target_ops): Update.
3626
7e0bde70
TBA
36272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3628
3629 Turn process_stratum_target's insert_point and remove_point ops
3630 into methods of process_target.
3631
3632 * target.h (struct process_stratum_target): Remove the target ops.
3633 (class process_target): Add the target ops.
3634 * target.cc (process_target::insert_point): Define.
3635 (process_target::remove_point): Define.
3636
3637 Update the derived classes and callers below.
3638
3639 * mem-break.cc (set_raw_breakpoint_at): Update.
3640 (delete_raw_breakpoint): Update.
3641 (uninsert_raw_breakpoint): Update.
3642 (reinsert_raw_breakpoint): Update.
3643 * linux-low.cc (linux_target_ops): Update.
3644 (linux_insert_point): Turn into ...
3645 (linux_process_target::insert_point): ... this.
3646 (linux_remove_point): Turn into ...
3647 (linux_process_target::remove_point): ... this.
3648 * linux-low.h (class linux_process_target): Update.
3649 * lynx-low.cc (lynx_target_ops): Update.
3650 * nto-low.cc (nto_target_ops): Update.
3651 (nto_insert_point): Turn into ...
3652 (nto_process_target::insert_point): ... this.
3653 (nto_remove_point): Turn into ...
3654 (nto_process_target::remove_point): ... this.
3655 * nto-low.h (class nto_process_target): Update.
3656 * win32-low.cc (win32_target_ops): Update.
3657 (win32_insert_point): Turn into ...
3658 (win32_process_target::insert_point): ... this.
3659 (win32_remove_point): Turn into ...
3660 (win32_process_target::remove_point): ... this.
3661 * win32-low.h (class win32_process_target): Update.
3662
a2b2297a
TBA
36632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3664
3665 Turn process_stratum_target's supports_z_point_type op into a
3666 method of process_target.
3667
3668 * target.h (struct process_stratum_target): Remove the target op.
3669 (class process_target): Add the target op.
3670 * target.cc (process_target::supports_z_point_type): Define.
3671
3672 Update the derived classes and callers below.
3673
3674 * mem-break.cc (z_type_supported): Update.
3675 * linux-low.cc (linux_target_ops): Update.
3676 (linux_supports_z_point_type): Turn into ...
3677 (linux_process_target::supports_z_point_type): ... this.
3678 * linux-low.h (class linux_process_target): Update.
3679 * lynx-low.cc (lynx_target_ops): Update.
3680 * nto-low.cc (nto_target_ops): Update.
3681 (nto_supports_z_point_type): Turn into ...
3682 (nto_process_target::supports_z_point_type): ... this.
3683 * nto-low.h (class nto_process_target): Update.
3684 * win32-low.cc (win32_target_ops): Update.
3685 (win32_supports_z_point_type): Turn into ...
3686 (win32_process_target::supports_z_point_type): ... this.
3687 * win32-low.h (class win32_process_target): Update.
3688
eac215cc
TBA
36892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3690
3691 Turn process_stratum_target's read_auxv op into a method of
3692 process_target.
3693
3694 * target.h (class process_stratum_target): Remove the target op.
3695 (struct process_target): Add the target op. Also add
3696 'supports_read_auxv'.
3697 * target.cc (process_target::read_auxv): Define.
3698 (process_target::supports_read_auxv): Define.
3699
3700 Update the derived classes and callers below.
3701
3702 * server.cc (handle_qxfer_auxv): Update.
3703 (handle_query): Update.
3704 * linux-low.cc (linux_target_ops): Update.
3705 (linux_process_target::supports_read_auxv): Define.
3706 (linux_read_auxv): Turn into ...
3707 (linux_process_target::read_auxv): ... this.
3708 * linux-low.h (class linux_process_target): Update.
3709 * lynx-low.cc (lynx_target_ops): Update.
3710 * nto-low.cc (nto_target_ops): Update.
3711 (nto_process_target::supports_read_auxv): Define.
3712 (nto_read_auxv): Turn into ...
3713 (nto_process_target::read_auxv): ... this.
3714 * nto-low.h (class nto_process_target): Update.
3715 * win32-low.cc (win32_target_ops): Update.
3716
eb497a2a
TBA
37172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3718
3719 Turn process_stratum_target's request_interrupt op into a method of
3720 process_target.
3721
3722 * target.h (struct process_stratum_target): Remove the target op.
3723 (class process_target): Add the target op.
3724
3725 Update the derived classes and callers below.
3726
3727 * remote-utils.cc (putpkt_binary_1): Update.
3728 (input_interrupt): Update.
3729 (getpkt): Update.
3730 * server.cc (handle_v_requests): Update.
3731 * linux-low.cc (linux_target_ops): Update.
3732 (linux_request_interrupt): Turn into ...
3733 (linux_process_target::request_interrupt): ... this.
3734 * linux-low.h (class linux_process_target): Update.
3735 * lynx-low.cc (lynx_target_ops): Update.
3736 (lynx_request_interrupt): Turn into ...
3737 (lynx_process_target::request_interrupt): ... this.
3738 * lynx-low.h (class lynx_process_target): Update.
3739 * nto-low.cc (nto_target_ops): Update.
3740 (nto_request_interrupt): Turn into ...
3741 (nto_process_target::request_interrupt): ... this.
3742 * nto-low.h (class nto_process_target): Update.
3743 * win32-low.cc (win32_target_ops): Update.
3744 (win32_request_interrupt): Turn into ...
3745 (win32_process_target::request_interrupt): ... this.
3746 * win32-low.h (class win32_process_target): Update.
3747
2a31c7aa
TBA
37482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3749
3750 Turn process_stratum_target's look_up_symbols op into a method of
3751 process_target.
3752
3753 * target.h (struct process_stratum_target): Remove the target op.
3754 (class process_target): Add the target op.
3755 * target.cc (process_target::look_up_symbols): Define.
3756
3757 Update the derived classes and callers below.
3758
3759 * server.cc (handle_query): Update.
3760 * linux-low.cc (linux_target_ops): Update.
3761 (linux_look_up_symbols): Turn into ...
3762 (linux_process_target::look_up_symbols): ... this.
3763 * linux-low.h (class linux_process_target): Update.
3764 * lynx-low.cc (lynx_target_ops): Update.
3765 * nto-low.cc (nto_target_ops): Update.
3766 * win32-low.cc (win32_target_ops): Update.
3767
e2558df3
TBA
37682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3769
3770 Turn process_stratum_target's read_memory and write_memory
3771 ops into methods of process_target.
3772
3773 * target.h (struct process_stratum_target): Remove the target ops.
3774 (class process_target): Add the target ops.
3775
3776 Update the derived classes and callers below.
3777
3778 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3779 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3780 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3781 (arm_get_syscall_trapinfo): Update.
3782 * linux-cris-low.cc (cris_breakpoint_at): Update.
3783 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3784 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3785 * linux-mips-low.cc (mips_breakpoint_at): Update.
3786 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3787 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3788 * linux-sh-low.cc (sh_breakpoint_at): Update.
3789 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3790 (sparc_store_gregset_from_stack): Update.
3791 (sparc_breakpoint_at): Update.
3792 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3793 * linux-tile-low.cc (tile_breakpoint_at): Update.
3794 * linux-x86-low.cc (x86_breakpoint_at): Update.
3795 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3796 * mem-brea.cc (insert_memory_breakpoint): Update.
3797 (validate_inserted_breakpoint): Update.
3798 * target.cc (read_inferior_memory): Update.
3799 (target_write_memory): Update.
3800 * linux-low.cc (linux_target_ops): Update.
3801 (linux_read_memory): Make a wrapper around the read_memory target
3802 op call.
3803 (linux_process_target::read_memory): Rename from linux_read_memory.
3804 (linux_write_memory): Turn into ...
3805 (linux_process_target::write_memory): ... this.
3806 * linux-low.h (class linux_process_target): Update.
3807 * lynx-low.cc (lynx_target_ops): Update.
3808 (lynx_read_memory): Turn into ...
3809 (lynx_process_target::read_memory): ... this.
3810 (lynx_write_memory): Turn into ...
3811 (lynx_process_target::write_memory): ... this.
3812 * lynx-low.h (class lynx_process_target): Update.
3813 * nto-low.cc (nto_target_ops): Update.
3814 (nto_read_memory): Turn into ...
3815 (nto_process_target::read_memory): ... this.
3816 (nto_write_memory): Turn into ...
3817 (nto_process_target::write_memory): ... this.
3818 * nto-low.h (class nto_process_target): Update.
3819 * win32-low.cc (win32_target_ops): Update.
3820 (win32_read_inferior_memory): Turn into ...
3821 (win32_process_target::read_memory): ... this.
3822 (win32_write_inferior_memory): Turn into ...
3823 (win32_process_target::write_memory): ... this.
3824 * win32-low.h (class win32_process_target): Update.
3825
79b44087
TBA
38262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3827
3828 Turn process_stratum_target's prepare_to_access_memory and
3829 done_accessing_memory ops into methods of process_target.
3830
3831 * target.h (struct process_stratum_target): Remove the target ops.
3832 (class process_target): Add the target ops.
3833 * target.cc (process_target::prepare_to_access_memory): Define.
3834 (process_target::done_accessing_memory): Define.
3835 (prepare_to_access_memory): Update.
3836 (done_accessing_memory): Update.
3837
3838 Update the derived classes and callers below.
3839
3840 * linux-low.cc (linux_target_ops): Update.
3841 (linux_prepare_to_access_memory): Turn into ...
3842 (linux_process_target::prepare_to_access_memory): ... this.
3843 (linux_done_accessing_memory): Turn into ...
3844 (linux_process_target::done_accessing_memory): ... this.
3845 * linux-low.h (class linux_process_target): Update.
3846 * lynx-low.cc (lynx_target_ops): Update.
3847 * nto-low.cc (nto_target_ops): Update.
3848 * win32-low.cc (win32_target_ops): Update.
3849
a5a4d4cd
TBA
38502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3851
3852 Turn process_stratum_target's fetch_registers and store_registers
3853 ops into methods of process_target.
3854
3855 * target.h (struct process_stratum_target): Remove the target ops.
3856 (class process_target): Add the target ops.
3857 (fetch_inferior_registers): Update the macro.
3858 (store_inferior_registers): Update the macro.
3859
3860 Update the derived classes and callers below.
3861
3862 * linux-low.cc (linux_target_ops): Update.
3863 (linux_fetch_registers): Turn into ...
3864 (linux_process_target::fetch_registers): ... this.
3865 (linux_store_registers): Turn into ...
3866 (linux_process_target::store_registers): ... this.
3867 * linux-low.h (class linux_process_target): Update.
3868 * lynx-low.cc (lynx_target_ops): Update.
3869 (lynx_fetch_registers): Turn into ...
3870 (lynx_process_target::fetch_registers): ... this.
3871 (lynx_store_registers): Turn into ...
3872 (lynx_process_target::store_registers): ... this.
3873 * lynx-low.h (class lynx_process_target): Update.
3874 * nto-low.cc (nto_target_ops): Update.
3875 (nto_fetch_registers): Turn into ...
3876 (nto_process_target::fetch_registers): ... this.
3877 (nto_store_registers): Turn into ...
3878 (nto_process_target::store_registers): ... this.
3879 * nto-low.h (class nto_process_target): Update.
3880 * win32-low.cc (win32_target_ops): Update.
3881 (win32_fetch_inferior_registers): Turn into ...
3882 (win32_process_target::fetch_registers): ... this.
3883 (win32_store_inferior_registers): Turn into ...
3884 (win32_process_target::store_registers): ... this.
3885 * win32-low.h (class win32_process_target): Update.
3886
6532e7e3
TBA
38872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3888
3889 Turn process_stratum_target's wait op into a method of
3890 process_target.
3891
3892 * target.h (struct process_stratum_target): Remove the target op.
3893 (class process_target): Add the target op.
3894
3895 Update the derived classes and callers below.
3896
3897 * target.cc (target_wait): Update.
3898 * linux-low.cc (linux_target_ops): Update.
3899 (linux_wait): Turn into ...
3900 (linux_process_target::wait): ... this.
3901 * linux-low.h (class linux_process_target): Update.
3902 * lynx-low.cc (lynx_target_ops): Update.
3903 (lynx_wait): Turn into ...
3904 (lynx_process_target::wait): ... this.
3905 * lynx-low.h (class lynx_process_target): Update.
3906 * nto-low.cc (nto_target_ops): Update.
3907 (nto_wait): Turn into ...
3908 (nto_process_target::wait): ... this.
3909 * nto-low.h (class nto_process_target): Update.
3910 * win32-low.cc (win32_target_ops): Update.
3911 (win32_wait): Turn into ...
3912 (win32_process_target::wait): ... this.
3913 (do_initial_child_stuff): Update.
3914 * win32-low.h (class win32_process_target): Update.
3915
0e4d7e35
TBA
39162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3917
3918 Turn process_stratum_target's resume op into a method of
3919 process_target.
3920
3921 * target.h (struct process_stratum_target): Remove the target op.
3922 (class process_target): Add the target op.
3923
3924 Update the derived classes and callers below.
3925
3926 * server.cc (resume): Update.
3927 * target.cc (target_stop_and_wait): Update.
3928 (target_continue_no_signal): Update.
3929 (target_continue): Update.
3930 * linux-low.cc (linux_target_ops): Update.
3931 (linux_resume): Turn into ...
3932 (linux_process_target::resume): ... this.
3933 * linux-low.h (class linux_process_target): Update.
3934 * lynx-low.cc (lynx_target_ops): Update.
3935 (lynx_resume): Turn into ...
3936 (lynx_process_target::resume): ... this.
3937 * lynx-low.h (class lynx_process_target): Update.
3938 * nto-low.cc (nto_target_ops): Update.
3939 (nto_resume): Turn into ...
3940 (nto_process_target::resume): ... this.
3941 * nto-low.h (class nto_process_target): Update.
3942 * win32-low.cc (win32_target_ops): Update.
3943 (win32_resume): Turn into ...
3944 (win32_process_target::resume): ... this.
3945 (win32_process_target::detach): Update.
3946 (do_initial_child_stuff): Update.
3947 * win32-low.h (class win32_process_target): Update.
3948
13d3d99b
TBA
39492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3950
3951 Turn process_stratum_target's thread_alive op into a method of
3952 process_target.
3953
3954 * target.h (struct process_stratum_target): Remove the target op.
3955 (class process_target): Add the target op.
3956 (mythread_alive): Update the macro.
3957
3958 Update the derived classes and callers below.
3959
3960 * linux-low.cc (linux_target_ops): Update.
3961 (linux_thread_alive): Turn into ...
3962 (linux_process_target::thread_alive): ... this.
3963 (wait_for_sigstop): Update.
3964 * linux-low.h (class linux_process_target): Update.
3965 * lynx-low.cc (lynx_target_ops): Update.
3966 (lynx_thread_alive): Turn into ...
3967 (lynx_process_target::thread_alive): ... this.
3968 * lynx-low.h (class lynx_process_target): Update.
3969 * nto-low.cc (nto_target_ops): Update.
3970 (nto_thread_alive): Turn into ...
3971 (nto_process_target::thread_alive): ... this.
3972 * nto-low.h (class nto_process_target): Update.
3973 * win32-low.cc (win32_target_ops): Update.
3974 (win32_thread_alive): Turn into ...
3975 (win32_process_target::thread_alive): ... this.
3976 * win32-low.h (class win32_process_target): Update.
3977
95a49a39
TBA
39782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3979
3980 Turn process_stratum_target's join op into a method of
3981 process_target.
3982
3983 * target.h (struct process_stratum_target): Remove the target op.
3984 (class process_target): Add the target op.
3985 (join_inferior): Update the macro.
3986
3987 Update the derived classes and callers below.
3988
3989 * linux-low.cc (linux_target_ops): Update.
3990 (linux_join): Turn into ...
3991 (linux_process_target::join): ... this.
3992 * linux-low.h (class linux_process_target): Update.
3993 * lynx-low.cc (lynx_target_ops): Update.
3994 (lynx_join): Turn into ...
3995 (lynx_process_target::join): ... this.
3996 * lynx-low.h (class lynx_process_target): Update.
3997 * nto-low.cc (nto_target_ops): Update.
3998 (nto_process_target::join): Define.
3999 * nto-low.h (class nto_process_target): Update.
4000 * win32-low.cc (win32_target_ops): Update.
4001 (win32_join): Turn into ...
4002 (win32_process_target::join): ... this.
4003 * win32-low.h (class win32_process_target): Update.
4004
8adb37b9
TBA
40052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4006
4007 Turn process_stratum_target's mourn op into a method of
4008 process_target.
4009
4010 * target.h (struct process_stratum_target): Remove the target op.
4011 (class process_target): Add the target op.
4012
4013 Update the derived classes and callers below.
4014
4015 * target.cc (target_mourn_inferior): Update.
4016 * linux-low.cc (linux_target_ops): Update.
4017 (linux_mourn): Turn into ...
4018 (linux_process_target::mourn): ... this.
4019 (handle_extended_wait): Update.
4020 (linux_process_target::kill): Update.
4021 (linux_process_target::detach): Update.
4022 * linux-low.h (class linux_process_target): Update.
4023 * lynx-low.cc (lynx_target_ops): Update.
4024 (lynx_mourn): Turn into ...
4025 (lynx_process_target::mourn): ... this.
4026 * lynx-low.h (class lynx_process_target): Update.
4027 * nto-low.cc (nto_target_ops): Update.
4028 (nto_mourn): Turn into ...
4029 (nto_process_target::mourn): ... this.
4030 * nto-low.h (class nto_process_target): Update.
4031 * win32-low.cc (win32_target_ops): Update.
4032 (win32_mourn): Turn into ...
4033 (win32_process_target::mourn): ... this.
4034 * win32-low.h (class win32_process_target): Update.
4035
9061c9cf
TBA
40362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4037
4038 Turn process_stratum_target's detach op into a method of
4039 process_target.
4040
4041 * target.h (struct process_stratum_target): Remove the target op.
4042 (class process_target): Add the target op.
4043 (detach_inferior): Update the macro.
4044
4045 Update the derived classes and callers below.
4046
4047 * linux-low.cc (linux_target_ops): Update.
4048 (linux_detach): Turn into ...
4049 (linux_process_target::detach): ... this.
4050 * linux-low.h (class linux_process_target): Update.
4051 * lynx-low.cc (lynx_target_ops): Update.
4052 (lynx_detach): Turn into ...
4053 (lynx_process_target::detach): ... this.
4054 * lynx-low.h (class lynx_process_target): Update.
4055 * nto-low.cc (nto_target_ops): Update.
4056 (nto_detach): Turn into ...
4057 (nto_process_target::detach): ... this.
4058 * nto-low.h (class nto_process_target): Update.
4059 * win32-low.cc (win32_target_ops): Update.
4060 (win32_detach): Turn into ...
4061 (win32_process_target::detach): ... this.
4062 * win32-low.h (class win32_process_target): Update.
4063
c6885a57
TBA
40642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4065
4066 Turn process_stratum_target's kill op into a method of
4067 process_target.
4068
4069 * target.h (struct process_stratum_target): Remove the target op.
4070 (class process_target): Add the target op.
4071
4072 Update the derived classes and callers below.
4073
4074 * target.cc (kill_inferior): Update.
4075 * linux-low.cc (linux_target_ops): Update.
4076 (linux_kill): Turn into ...
4077 (linux_process_target::kill): ... this.
4078 * linux-low.h (class linux_process_target): Update.
4079 * lynx-low.cc (lynx_target_ops): Update.
4080 (lynx_kill): Turn into ...
4081 (lynx_process_target::kill): ... this.
4082 * lynx-low.h (class lynx_process_target): Update.
4083 * nto-low.cc (nto_target_ops): Update.
4084 (nto_kill): Turn into ...
4085 (nto_process_target::kill): ... this.
4086 * nto-low.h (class nto_process_target): Update.
4087 * win32-low.cc (win32_target_ops): Update.
4088 (win32_kill): Turn into ...
4089 (win32_process_target::kill): ... this.
4090 * win32-low.h (class win32_process_target): Update.
4091
ef03dad8
TBA
40922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4093
4094 Turn process_stratum_target's attach op into a method of
4095 process_target.
4096
4097 * target.h (struct process_stratum_target): Remove the target op.
4098 (class process_target): Add the target op.
4099 (myattach): Update the macro.
4100
4101 Update the derived classes and callers below.
4102
4103 * linux-low.cc (linux_target_ops): Update.
4104 (linux_attach): Turn into ...
4105 (linux_process_target::attach): ... this.
4106 * linux-low.h (class linux_process_target): Update.
4107 * lynx-low.cc (lynx_target_ops): Update.
4108 (lynx_attach): Turn into ...
4109 (lynx_process_target::attach): ... this.
4110 * lynx-low.h (class lynx_process_target): Update.
4111 * nto-low.cc (nto_target_ops): Update.
4112 (nto_attach): Turn into ...
4113 (nto_process_target::attach): ... this.
4114 * nto-low.h (class nto_process_target): Update.
4115 * win32-low.cc (win32_target_ops): Update.
4116 (win32_attach): Turn into ...
4117 (win32_process_target::attach): ... this.
4118 * win32-low.h (class win32_process_target): Update.
4119
6dee9afb
TBA
41202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4121
4122 Turn process_stratum_target's post_create_inferior op into a method
4123 of process_target.
4124
4125 * target.h (struct process_stratum_target): Remove the target op.
4126 (class process_target): Add the target op.
4127 (target_post_create_inferior): Update the macro.
4128 * target.cc (process_target::post_create_inferior): Define.
4129
4130 Update the derived classes and callers below.
4131
4132 * linux-low.cc (linux_target_ops): Update.
4133 (linux_post_create_inferior): Turn into ...
4134 (linux_process_target::post_create_inferior): ... this.
4135 * linux-low.h (class linux_process_target): Update.
4136 * lynx-low.cc (lynx_target_ops): Update.
4137 * nto-low.cc (nto_target_ops): Update.
4138 * win32-low.cc (win32_target_ops): Update.
4139
15295543
TBA
41402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4141
4142 Turn process_stratum_target's create_inferior op into a method of
4143 process_target.
4144
4145 * target.h (struct process_stratum_target): Remove the target op.
4146 (class process_target): Add the target op.
4147 (create_inferior): Rename the macro to ...
4148 (target_create_inferior): ... this.
4149
4150 Update the derived classes and callers below.
4151
4152 * server.cc (handle_v_run): Update.
4153 (captured_main): Update.
4154 (process_serial_event): Update.
4155 * linux-low.cc (linux_target_ops): Update.
4156 (linux_create_inferior): Turn into ...
4157 (linux_process_target::create_inferior): ... this.
4158 * linux-low.h (class linux_process_target): Update.
4159 * lynx-low.cc (lynx_target_ops): Update.
4160 (lynx_create_inferior): Turn into ...
4161 (lynx_process_target::create_inferior): ... this.
4162 * lynx-low.h (class lynx_process_target): Update.
4163 * nto-low.cc (nto_target_ops): Update.
4164 (nto_create_inferior): Turn into ...
4165 (nto_process_target::create_inferior): ... this.
4166 * nto-low.h (class nto_process_target): Update.
4167 * win32-low.cc (win32_target_ops): Update.
4168 (win32_create_inferior): Turn into ...
4169 (win32_process_target::create_inferior): ... this.
4170 * win32-low.h (class win32_process_target): Update.
4171
5ef9273d
TBA
41722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4173
4174 * target.h (class process_target): New class definition.
4175 (struct process_stratum_target) <pt>: New field with type
4176 'process_target*'.
4177 * linux-low.h (class linux_process_target): Define as a derived
4178 class of 'process_target'.
4179 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4180 as the 'pt' field.
4181 * lynx-low.h (class lynx_process_target): Define as a derived
4182 class of 'process_target'.
4183 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4184 as the 'pt' field.
4185 * nto-low.h (class nto_process_target): Define as a derived
4186 class of 'process_target'.
4187 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4188 as the 'pt' field.
4189 * win32-low.h (class win32_process_target): Define as a derived
4190 class of 'process_target'.
4191 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4192 as the 'pt' field.
4193
9f1528a1
AB
41942020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4195
4196 * configure: Regenerate.
4197
bf84f706
MR
41982020-02-19 Maciej W. Rozycki <macro@wdc.com>
4199 Andrew Burgess <andrew.burgess@embecosm.com>
4200
4201 * linux-riscv-low.cc: New file.
4202 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4203 and nat/riscv-linux-tdesc.c.
4204 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4205 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4206 Define.
4207
1a627e7e
TT
42082020-02-14 Tom Tromey <tom@tromey.com>
4209
4210 * acinclude.m4: Don't include acx_configure_dir.m4.
4211 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4212 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4213 (all, install-only, uninstall, clean-info, clean)
4214 (maintainer-clean): Don't recurse.
4215 (subdir_do, all-lib): Remove.
4216 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4217 (GNULIB_H): Remove.
4218 (generated_files): Update.
4219 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4220 * configure: Rebuild.
4221 * configure.ac: Don't configure gnulib or libiberty.
4222 (GNULIB): Update.
4223
a9b34532
EZ
42242020-02-14 Eli Zaretskii <eliz@gnu.org>
4225
4226 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4227 preparing the command line for CreateProcess.
4228 (win32_create_inferior): Reflect the program name in debugging
4229 output that shows the process and its command line.
4230
feacfcac
SM
42312020-02-13 Simon Marchi <simon.marchi@efficios.com>
4232
4233 * Makefile.in: Rename source files from .c to .cc.
4234 * %.c: Rename to %.cc.
4235 * configure.ac: Rename server.c to server.cc.
4236 * configure: Re-generate.
4237
06b3c5bd
SM
42382020-02-13 Simon Marchi <simon.marchi@efficios.com>
4239
4240 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4241
052793ad
HD
42422020-02-12 Hannes Domani <ssbssa@yahoo.de>
4243
4244 * win32-low.c (win32_create_inferior): Set signal_pid.
4245
f20e3e82
MR
42462020-02-12 Maciej W. Rozycki <macro@wdc.com>
4247 Pedro Alves <palves@redhat.com>
4248
4249 Skip building gdbserver in a cross-configuration.
4250 * configure.srv: Set $gdbserver_host depending on whether $target
4251 is $host. Use $gdbserver_host instead of $host.
4252
8ddd8e0e
SM
42532020-02-11 Simon Marchi <simon.marchi@efficios.com>
4254
4255 * configure: Re-generate.
4256
898e7f60
SM
42572020-02-11 Simon Marchi <simon.marchi@efficios.com>
4258
4259 * configure: Re-generate.
4260
58df732b
SM
42612020-02-11 Simon Marchi <simon.marchi@efficios.com>
4262
4263 * acinclude.m4: Update warning.m4 path.
4264
7928d571
HD
42652020-02-09 Hannes Domani <ssbssa@yahoo.de>
4266
4267 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4268 (handle_exception): Set siginfo_er.
4269 (win32_xfer_siginfo): New function.
4270
919adfe8
TT
42712020-02-07 Tom Tromey <tom@tromey.com>
4272 Pedro Alves <palves@redhat.com>
4273
4274 * README: Update build documentation.
4275 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4276 host, not target.
4277 * configure.ac: Update paths.
4278 * configure: Rebuild.
4279 * acinclude.m4: Update paths.
4280 * Makefile.in: Update include paths.
4281 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4282 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4283 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4284 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4285 (%-generated.c): Update paths.
4286 * Move entire directory from ../gdb/gdbserver.
4287
287c844a
MR
42882020-01-29 Maciej W. Rozycki <macro@wdc.com>
4289
4290 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4291
548a204f
PFC
42922020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4293
4294 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4295 assignment instead of srv_linux_obj.
4296
a2236a08
HD
42972020-01-28 Hannes Domani <ssbssa@yahoo.de>
4298
4299 * server.c (handle_qxfer_libraries): Write segment-address with
4300 paddress.
4301
bdaed379
HD
43022020-01-24 Hannes Domani <ssbssa@yahoo.de>
4303
4304 * Makefile.in (install-strip): New target.
4305 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4306 * aclocal.m4: Regenerate.
4307 * configure: Regenerate.
4308 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4309
42cd72aa
MR
43102020-01-24 Maciej W. Rozycki <macro@wdc.com>
4311
4312 * Makefile.in (SFILES): Adjust paths to point to real files.
4313 (OBS): Move waitstatus.o to target/waitstatus.o.
4314 (TAGS): Transform paths appropriately.
4315 (%.o): Rename to...
4316 (nat/%.o): ... this pattern rule.
4317 (%.o): Rename to...
4318 (target/%.o): ... this pattern rule.
4319 * configure.srv: Adjust paths throughout to include nat/ prefix
4320 with the revant files.
4321 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4322 * configure: Regenerate.
4323
42ba50ec
MR
43242020-01-24 Maciej W. Rozycki <macro@wdc.com>
4325
4326 * Makefile.in (TAGS): Remove config files from the recipe.
4327
05ea2a05
TT
43282020-01-14 Tom Tromey <tom@tromey.com>
4329
4330 * configure: Rebuild.
4331 * configure.ac: Remove any checks that were added to common.m4.
4332 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4333 lib-link.m4.
4334
01027315
TT
43352020-01-14 Tom Tromey <tom@tromey.com>
4336
4337 * server.h: Include config.h.
4338 * gdbreplay.c: Include config.h.
4339 * configure: Rebuild.
4340 * configure.ac: Don't source common.host.
4341 * acinclude.m4: Update path.
4342 * Makefile.in (INCSUPPORT): New variable.
4343 (INCLUDE_CFLAGS): Add INCSUPPORT.
4344 (SFILES): Update paths.
4345 (version-generated.c): Update path to create-version.sh.
4346 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4347
b2ceabe8
TT
43482020-01-14 Tom Tromey <tom@tromey.com>
4349
4350 * configure.ac (LIBS): Use WIN32APILIBS.
4351 (USE_WIN32API): Don't define.
4352 * configure: Rebuild.
4353
25c51f71
TT
43542020-01-14 Tom Tromey <tom@tromey.com>
4355
4356 * configure: Rebuild.
4357
c0bd321d
SM
43582020-01-13 Simon Marchi <simon.marchi@efficios.com>
4359
4360 * Makefile.in (%-generated.c): Remove rule for files from
4361 regformats/i386.
4362
bb564c58
SM
43632020-01-13 Simon Marchi <simon.marchi@efficios.com>
4364
4365 * configure: Re-generate.
4366
6e37c371
SM
43672020-01-13 Simon Marchi <simon.marchi@efficios.com>
4368
4369 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4370 Define to static.
4371 * tracepoint.c (stop_tracing, flush_trace_buffer,
4372 about_to_request_buffer_space, get_trace_state_variable_value,
4373 set_trace_state_variable_value, gdb_collect): Add declaration.
4374
df4a0200
SM
43752020-01-13 Simon Marchi <simon.marchi@efficios.com>
4376
4377 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4378 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4379 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4380 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4381 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4382 static.
4383
89e94ec9
SM
43842020-01-13 Simon Marchi <simon.marchi@efficios.com>
4385
4386 * inferiors.c: Include gdbsupport/common-inferior.h.
4387
2552728a
SM
43882020-01-13 Simon Marchi <simon.marchi@efficios.com>
4389
4390 * hostio-errno.c: Include hostio.h.
4391
4025fa09
SM
43922020-01-13 Simon Marchi <simon.marchi@efficios.com>
4393
4394 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4395 prerequisite.
4396
c0b0a142
SM
43972020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4398
4399 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4400 * linux-arm-tdesc.h: Include arch/arm.h.
4401
bb1183e2
SM
44022020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4403
4404 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4405
f5df0b5f
SM
44062020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4407
4408 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4409 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4410
5b6d1e4f
PA
44112020-01-10 Pedro Alves <palves@redhat.com>
4412
4413 * fork-child.c (post_fork_inferior): Pass target down to
4414 startup_inferior.
4415 * inferiors.c (switch_to_thread): Add process_stratum_target
4416 parameter.
4417 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4418 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4419 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4420 * remote-utils.c (prepare_resume_reply): Pass the target to
4421 switch_to_thread.
4422 * target.c (the_target): Now a process_stratum_target.
4423 (done_accessing_memory): Pass the target to switch_to_thread.
4424 (set_target_ops): Ajust to use process_stratum_target.
4425 * target.h (struct target_ops): Rename to ...
4426 (struct process_stratum_target): ... this.
4427 (the_target, set_target_ops): Adjust.
4428 (prepare_to_access_memory): Adjust comment.
4429 * win32-low.c (child_xfer_memory): Adjust to use
4430 process_stratum_target.
4431 (win32_target_ops): Now a process_stratum_target.
4432
559e7e50
EZ
44332020-01-06 Eli Zaretskii <eliz@gnu.org>
4434 Pedro Alves <palves@redhat.com>
4435
4436 * win32-low.c (get_child_debug_event): Extract the fatal exception
4437 from the exit status and convert to the equivalent Posix signal
4438 number.
4439 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4440 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4441
48189bec
HD
44422020-01-01 Hannes Domani <ssbssa@yahoo.de>
4443
4444 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4445
5dd8bf88
JB
44462020-01-01 Joel Brobecker <brobecker@adacore.com>
4447
4448 * server.c (gdbserver_version): Change copyright year to 2020.
4449 * gdbreplay.c (gdbreplay_version): Likewise.
4450
0ad6b8ee
CB
44512019-12-19 Christian Biesinger <cbiesinger@google.com>
4452
4453 * configure: Regenerate.
4454 * configure.ac: Quote variable arguments of test.
4455
1ee7b812
BE
44562019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4457
4458 * Makefile.in: Fix build with GNU Make 3.81
4459
d9fa87f4
TT
44602019-12-16 Tom Tromey <tromey@adacore.com>
4461
4462 * server.c (get_exec_file): Constify result.
4463
ab7d13f0
CB
44642019-12-10 Christian Biesinger <cbiesinger@google.com>
4465
4466 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4467 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4468 * config.in: Regenerate.
4469 * configure: Regenerate.
4470 * configure.ac: Don't check for strerror.
4471 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4472 Call safe_strerror instead of strerror.
4473 * server.h (strerror): Remove this now-unnecessary declaration.
4474 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4475 strerror.
4476 (gdb_agent_helper_thread): Likewise.
4477 * utils.c (perror_with_name): Likewise.
4478
4da8c3a8
TT
44792019-11-26 Tom Tromey <tom@tromey.com>
4480
4481 * configure, config.in: Rebuild.
4482
21987b9c
TT
44832019-11-26 Tom Tromey <tom@tromey.com>
4484
4485 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4486 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4487 gdb_sigmask.
4488 * configure, config.in: Rebuild.
4489
5e030278
TT
44902019-11-26 Tom Tromey <tom@tromey.com>
4491
4492 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4493 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4494 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4495 * acinclude.m4: Include ax_pthread.m4.
4496 * config.in, configure: Rebuild.
4497
6d91ce9a
CB
44982019-11-26 Christian Biesinger <cbiesinger@google.com>
4499
4500 * debug.c (debug_set_output): Call safe_strerror instead of
4501 strerror.
4502 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4503 (linux_kill_one_lwp): Likewise.
4504 (linux_detach_one_lwp): Likewise.
4505 (linux_wait_for_event_filtered): Likewise.
4506 (store_register): Likewise.
4507 * lynx-low.c (lynx_attach): Likewise.
4508 * mem-break.c (insert_memory_breakpoint): Likewise.
4509 (remove_memory_breakpoint): Likewise.
4510 (delete_fast_tracepoint_jump): Likewise.
4511 (set_fast_tracepoint_jump): Likewise.
4512 (uninsert_fast_tracepoint_jumps_at): Likewise.
4513 (reinsert_fast_tracepoint_jumps_at): Likewise.
4514 * nto-low.c (nto_xfer_memory): Likewise.
4515 (nto_resume): Likewise.
4516
6cdd651f
LM
45172019-11-20 Luis Machado <luis.machado@linaro.org>
4518
4519 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4520 instead of register count.
4521 * tdesc.c (tdesc_contains_feature): New function.
4522 * tdesc.h (tdesc_contains_feature): New prototype.
4523
cd850b40
CB
45242019-11-15 Christian Biesinger <cbiesinger@google.com>
4525
4526 * Makefile.in: Add safe-strerror.c.
4527 * configure: Regenerate.
4528 * configure.ac: Don't source common.host.
4529
5abebf3c
CB
45302019-11-15 Christian Biesinger <cbiesinger@google.com>
4531
4532 * config.in: Regenerate.
4533 * configure: Regenerate.
4534
e06f3d6e
AB
45352019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4536
4537 * ax.c (ax_printf): Handle size_t_arg.
4538
ca3a04f6
CB
45392019-11-06 Christian Biesinger <cbiesinger@google.com>
4540
4541 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4542 * mi/mi-main.c (output_cores): Likewise.
4543 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4544 (linux_xfer_osdata_modules): Likewise.
4545 * remote.c (register_remote_support_xml): Likewise.
4546 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4547 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4548
e48f6033
CB
45492019-11-01 Christian Biesinger <cbiesinger@google.com>
4550
4551 * configure: Regenerate.
4552 * configure.ac: Remove check for strerror_r.
4553
e7e97a2e
CB
45542019-10-31 Christian Biesinger <cbiesinger@google.com>
4555
4556 * config.in: Regenerate.
4557 * configure: Regenerate.
4558 * configure.ac: Also check for strerror_r.
4559
75cafaa6
CB
45602019-10-31 Christian Biesinger <cbiesinger@google.com>
4561
4562 * ax.h (debug_agent): Remove duplicate declaration.
4563
30baf67b
TV
45642019-10-26 Tom de Vries <tdevries@suse.de>
4565
4566 * linux-aarch64-low.c: Fix typos in comments.
4567 * linux-arm-low.c: Same.
4568 * linux-low.c: Same.
4569 * linux-ppc-low.c: Same.
4570 * proc-service.c: Same.
4571 * regcache.h: Same.
4572 * server.c: Same.
4573 * tracepoint.c: Same.
4574 * win32-low.c: Same.
4575
52c64cf7
TT
45762019-10-25 Tom Tromey <tromey@adacore.com>
4577
4578 * utils.c (xstrdup): Remove.
4579
c12d372d
TT
45802019-10-23 Tom Tromey <tom@tromey.com>
4581
4582 * configure, config.in: Rebuild.
4583
4d0b984b
TT
45842019-10-23 Tom Tromey <tom@tromey.com>
4585
4586 * configure: Rebuild.
4587 * acinclude.m4: Use m4_include, not sinclude.
4588
c5adaa19
TT
45892019-10-17 Tom Tromey <tromey@adacore.com>
4590
4591 * configure: Rebuild.
4592 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4593 in AC_CONFIG_FILES invocation.
4594 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4595 invocation.
4596
fec4e896
CB
45972019-10-16 Christian Biesinger <cbiesinger@google.com>
4598
4599 * server.c: Include xml-builtin.h.
4600 (get_xml_features): Don't declare xml_builtins here.
4601
00975ff6
AB
46022019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4603
4604 * Makefile.in: Remove references to vec-ipa.o.
4605
0dc32745
AB
46062019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4607
4608 * Makefile.in: Remove references to vec.c.
4609
3e6ec53a
CB
46102019-10-02 Christian Biesinger <cbiesinger@google.com>
4611
4612 * server.c (server_waiting): Change to bool.
4613 (extended_protocol): Likewise.
4614 (response_needed): Likewise.
4615 (exit_requested): Likewise.
4616 (run_once): Likewise.
4617 (report_no_resumed): Likewise.
4618 (non_stop): Likewise.
4619 (disable_packet_vCont): Likewise.
4620 (disable_packet_Tthread): Likewise.
4621 (disable_packet_qC): Likewise.
4622 (disable_packet_qfThreadInfo): Likewise.
4623 (handle_general_set): Update.
4624 (handle_detach): Update.
4625 (handle_monitor_command): Update.
4626 (handle_query): Update.
4627 (captured_main): Update.
4628 (process_serial_event): Update.
4629 * server.h (server_waiting): Change to bool.
4630 (disable_packet_vCont): Likewise.
4631 (disable_packet_Tthread): Likewise.
4632 (disable_packet_qC): Likewise.
4633 (disable_packet_qfThreadInfo): Likewise.
4634 (run_once): Likewise.
4635 (non_stop): Likewise.
4636 * target.c (target_stop_and_wait): Update.
4637
80fd2826
TT
46382019-10-02 Tom Tromey <tromey@adacore.com>
4639
4640 * Makefile.in (SFILES): Add common-inferior.c.
4641 (OBS): Add common-inferior.o.
4642 * server.c (startup_with_shell): Don't define.
4643
46f29a9a
AB
46442019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4645
4646 * linux-low.c (linux_low_read_btrace): Update for change to
4647 std::vector.
4648
f9d949fb
CB
46492019-09-20 Christian Biesinger <cbiesinger@google.com>
4650
4651 * debug.c (debug_threads): Remove comment in favor of the header.
4652 * debug.h (using_threads): Add declaration.
4653 (debug_threads): Add comment.
4654 * linux-aarch64-low.c: Include debug.h and remove declaration of
4655 debug_threads.
4656 * nto-low.c: Likewise.
4657 * remote-utils.c: Likewise.
4658 * thread-db.c: Likewise.
4659
abf516c6
UW
46602019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4661
4662 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4663 and powerpc-cell64l-ipa.o.
4664 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4665 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4666 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4667 (spu*-*-*): Remove.
4668
4669 * spu-low.c: Remove file.
4670
4671 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4672 (parse_spufs_run): Remove.
4673 (ppc_get_pc): Remove Cell/B.E. support.
4674 (ppc_set_pc): Likewise.
4675 (ppc_breakpoint_at): Likewise.
4676 (ppc_arch_setup): Likewise.
4677 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4678 tdesc_powerpc_cell32l.
4679 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4680 or init_registers_powerpc_cell32l.
4681 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4682 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4683 or init_registers_powerpc_cell32l.
4684 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4685 (init_registers_powerpc_cell32l): Remove prototype.
4686 (init_registers_powerpc_cell64l): Likewise.
4687
4688 * target.h (struct target_ops): Remove qxfer_spu member.
4689 * server.c (handle_qxfer_spu): Remove.
4690 (qxfer_packets): Remove entry for "spu".
4691 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4692 * linux-low.c (SPUFS_MAGIC): Remove.
4693 (spu_enumerate_spu_ids): Remove.
4694 (linux_qxfer_spu): Remove.
4695 (linux_target_ops): Remove qxfer_spu member.
4696 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4697 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4698 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4699
2d41fa11
SDJ
47002019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4701
4702 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4703 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4704 * config.in: Regenerate.
4705 * configure: Regenerate.
4706
d59b55f0
TT
47072019-08-15 Tom Tromey <tromey@adacore.com>
4708
4709 * target.c (target_write_memory): Use gdb::byte_vector.
4710
4196ab2a
TT
47112019-08-15 Tom Tromey <tromey@adacore.com>
4712
4713 * tracepoint.c (write_inferior_data_pointer)
4714 (write_inferior_integer, write_inferior_int8)
4715 (write_inferior_uinteger, m_tracepoint_action_download)
4716 (r_tracepoint_action_download, x_tracepoint_action_download)
4717 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4718 (download_agent_expr, download_tracepoint_1)
4719 (download_trace_state_variables, upload_fast_traceframes): Update.
4720 * server.c (gdb_write_memory): Update.
4721 * remote-utils.c (relocate_instruction): Update.
4722 * proc-service.c (ps_pdwrite): Update.
4723 * mem-break.c (remove_memory_breakpoint)
4724 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4725 (uninsert_fast_tracepoint_jumps_at)
4726 (reinsert_fast_tracepoint_jumps_at): Update.
4727 * linux-x86-low.c (append_insns)
4728 (i386_install_fast_tracepoint_jump_pad)
4729 (amd64_write_goto_address, i386_write_goto_address): Update.
4730 * linux-s390-low.c (append_insns, s390_write_goto_address):
4731 Update.
4732 * linux-ppc-low.c (ppc_relocate_instruction)
4733 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4734 (ppc_write_goto_address): Update.
4735 * linux-aarch64-low.c (append_insns): Update.
4736 * target.h (struct target_ops): Update.
4737 (write_inferior_memory): Don't declare.
4738 * target.c (target_write_memory): Rename from
4739 write_inferior_memory. Remove old target_write_memory.
4740
c6778d00
TT
47412019-08-15 Tom Tromey <tromey@adacore.com>
4742
4743 * target.c (write_inferior_memory): Use std::vector.
4744
404f2902
FCE
47452019-08-06 Frank Ch. Eigler <fche@redhat.com>
4746
4747 PR build/24886
4748 * configure.ac: Drop enable-libmcheck support.
4749 * configure, config.in: Rebuild.
4750 * acinclude.m4: Don't include it.
4751
4c5aa8e0
AH
47522019-07-19 Alan Hayward <alan.hayward@arm.com>
4753
4754 * configure.srv: Remove Arm xml files.
4755
7cc17433
AH
47562019-07-19 Alan Hayward <alan.hayward@arm.com>
4757
4758 * configure.srv: Add new files. Remove xml generated files.
4759 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4760 registers.
4761 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4762 * linux-aarch32-tdesc.c: New file.
4763 * linux-aarch32-tdesc.h: New file.
4764 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4765 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4766 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4767 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4768 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4769 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4770 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4771 (arm_read_description): Call arm_linux_read_description.
4772 (initialize_low_arch): Don't init registers.
4773 * linux-arm-tdesc.c: New file.
4774 * linux-arm-tdesc.h: New file.
4775
166a82be
AH
47762019-07-10 Alan Hayward <alan.hayward@arm.com>
4777
4778 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4779 Move counter inside for.
4780 (arm_read_description): Check ptrace earlier.
4781 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4782
268a13a5
TT
47832019-07-09 Tom Tromey <tom@tromey.com>
4784
4785 * configure: Rebuild.
4786 * configure.ac: Change common to gdbsupport.
4787 * acinclude.m4: Change common to gdbsupport.
4788 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4789 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4790 common to gdbsupport.
4791 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4792 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4793 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4794 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4795 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4796 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4797 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4798 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4799 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4800 common to gdbsupport.
4801
350fab54
AH
48022019-07-04 Alan Hayward <alan.hayward@arm.com>
4803
4804 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4805 defines.
4806 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4807
2b40fda7
AH
48082019-07-04 Alan Hayward <alan.hayward@arm.com>
4809
4810 * configure.srv: Remove legacy xml.
4811 * linux-aarch64-low.c (initialize_low_arch): Remove
4812 initialize_low_tdesc call.
4813 * linux-aarch64-tdesc-selftest.c: Remove file.
4814 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4815 * linux-x86-low.c (initialize_low_arch): Remove
4816 initialize_low_tdesc call.
4817 * linux-x86-tdesc-selftest.c: Remove file.
4818 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4819
7d10623d
TV
48202019-06-20 Tom de Vries <tdevries@suse.de>
4821
4822 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4823 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4824
8d6a48df
TV
48252019-06-19 Tom de Vries <tdevries@suse.de>
4826
4827 * debug.h (debug_write): Change return type to ssize_t.
4828 * debug.c (debug_write): Same.
4829
73cc7272
TT
48302019-06-14 Tom Tromey <tom@tromey.com>
4831
4832 * configure.ac: Use new path to gnulib.
4833 * configure: Rebuild.
4834 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4835 to gnulib.
4836
08f10e02
TT
48372019-06-11 Tom Tromey <tom@tromey.com>
4838
4839 * Makefile.in (SFILES): Add alloc.c.
4840 (OBS): Add alloc.o.
4841 (IPA_OBJS): Add alloc-ipa.o.
4842 (alloc-ipa.o): New target.
4843 (%.o: ../%.c): New pattern rule.
4844
422186a9
TT
48452019-06-10 Tom Tromey <tromey@adacore.com>
4846
4847 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4848 end warning with a newline.
4849 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4850 newline.
4851 * thread-db.c (attach_thread): Don't end warning with a newline.
4852 (thread_db_notice_clone): Likewise.
4853 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4854 newline.
4855 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4856 end warning with a newline.
4857
b02f78f9
PA
48582019-06-04 Pedro Alves <palves@redhat.com>
4859
4860 * server.c (captured_main): Use make_unique_xstrdup.
4861
88ed7edb
TT
48622019-06-02 Tom Tromey <tom@tromey.com>
4863
4864 * gdbreplay.c (fromhex): Remove.
4865 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4866
33a6bc35
TT
48672019-05-29 Tom Tromey <tromey@adacore.com>
4868
4869 * configure: Rebuild.
4870
e90a813d
KB
48712019-05-06 Kevin Buettner <kevinb@redhat.com>
4872
4873 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4874 sign extension code on 32-bit builds.
4875
353ea2d1
EZ
48762019-05-03 Eli Zaretskii <eliz@gnu.org>
4877
4878 * remote-utils.c:
4879 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4880
b494cdff
TT
48812019-04-19 Tom Tromey <tom@tromey.com>
4882
4883 * server.c (struct vstop_notif): Derive from notif_event.
4884 <base>: Remove.
4885 (queue_stop_reply): Update.
4886 (remove_all_on_match_ptid): Change type. Rewrite.
4887 (discard_queued_stop_replies): Rewrite.
4888 (in_queued_stop_replies_ptid): Change type.
4889 (in_queued_stop_replies): Rewrite.
4890 (notif_stop): Update.
4891 (queue_stop_reply_callback): Update.
4892 (captured_main): Don't call initialize_notif.
4893 (push_stop_notification): Update.
4894 * notif.c (notif_write_event, handle_notif_ack)
4895 (notif_event_enque, notif_push): Update.
4896 (notif_event_xfree, initialize_notif): Remove.
4897 * notif.h (struct notif_event): Include <list>, not
4898 "common/queue.h".
4899 (struct notif_server) <queue>: Now a std::list.
4900 (notif_event_p): Remove typedef.
4901 (initialize_notif): Don't declare.
4902 (struct notif_event): Add virtual destructor.
4903
a7e559cc
AH
49042019-04-17 Alan Hayward <alan.hayward@arm.com>
4905
4906 * ax.c (ax_vdebug): Call debug_printf.
4907 * debug.c (debug_write): New function.
4908 * debug.h (debug_write): New declaration.
4909 * linux-low.c (sigchld_handler): Call debug_write.
4910
aeb2e706
AH
49112019-04-17 Alan Hayward <alan.hayward@arm.com>
4912
4913 * debug.c (debug_set_output): New function.
4914 (debug_vprintf): Send output to debug_file.
4915 (debug_flush): Likewise.
4916 * debug.h (debug_set_output): New declaration.
4917 * server.c (handle_monitor_command): Add debug-file option.
4918 (captured_main): Likewise.
4919
c1bc0935
AH
49202019-04-17 Alan Hayward <alan.hayward@arm.com>
4921
4922 * debug.c (remote_debug): Add definition.
4923 * debug.h (remote_debug): Add declaration.
4924 * hostio.c (remote_debug): Remove declaration.
4925 * remote-utils.c (struct ui_file): Likewise.
4926 (remote_debug): Likewise.
4927 * remote-utils.h (remote_debug): Likewise,
4928 * server.c (remote_debug): Remove definition.
4929
3f52fdbc
KB
49302019-04-10 Kevin Buettner <kevinb@redhat.com>
4931
4932 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4933 when using a 64-bit gdbserver.
4934
b0319eaa
TT
49352019-04-09 Tom Tromey <tromey@adacore.com>
4936
4937 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4938
eedc3f4f
TT
49392019-04-08 Tom Tromey <tom@tromey.com>
4940
4941 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4942 throw.
4943 (linux_resume_one_lwp): Likewise.
4944
230d2906
TT
49452019-04-08 Tom Tromey <tom@tromey.com>
4946
4947 * gdbreplay.c: Update.
4948 * linux-low.c: Update.
4949 * server.c: Update.
4950
a70b8144
TT
49512019-04-08 Tom Tromey <tom@tromey.com>
4952
4953 * server.c: Use C++ exception handling.
4954 * linux-low.c: Use C++ exception handling.
4955 * gdbreplay.c: Use C++ exception handling.
4956
3d6e9d23
TT
49572019-04-08 Tom Tromey <tom@tromey.com>
4958
4959 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4960 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4961 (captured_main, main): Update.
4962 * gdbreplay.c (main): Update.
4963
0570503d
PFC
49642019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4965
4966 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4967 value in argument pointer, return 1 if the entry is found and 0
4968 otherwise. Move comment.
4969 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4970 * linux-low.h (linux_get_auxv): Declare.
4971 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4972
227a9e65
TT
49732019-04-05 Tom Tromey <tromey@adacore.com>
4974
4975 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4976 variables.
4977
69f4c9cc
AH
49782019-03-28 Alan Hayward <alan.hayward@arm.com>
4979
4980 * linux-low.c (AT_HWCAP2): Add define if not already included.
4981
974c89e0
AH
49822019-03-26 Alan Hayward <alan.hayward@arm.com>
4983
4984 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4985 (aarch64_arch_setup): Call linux_get_hwcap.
4986 * linux-arm-low.c (arm_get_hwcap): Remove function.
4987 (arm_read_description): Call linux_get_hwcap.
4988 * linux-low.c (linux_get_auxv): New function.
4989 (linux_get_hwcap): Likewise.
4990 (linux_get_hwcap2): Likewise.
4991 * linux-low.h (linux_get_hwcap): New declaration.
4992 (linux_get_hwcap2): Likewise.
4993 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4994 (ppc_arch_setup): Call linux_get_hwcap.
4995 * linux-s390-low.c (s390_get_hwcap): Remove function.
4996 (s390_arch_setup): Call linux_get_hwcap.
4997
1ef53e6b
AH
49982019-03-22 Alan Hayward <alan.hayward@arm.com>
4999 Jiong Wang <jiong.wang@arm.com>
5000
5001 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5002 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5003 to fail.
5004 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5005
ee4fbcfa
AH
50062019-03-22 Alan Hayward <alan.hayward@arm.com>
5007 Jiong Wang <jiong.wang@arm.com>
5008
5009 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5010 (aarch64_get_hwcap): New function.
5011 (aarch64_arch_setup): Read APIA hwcap.
5012
6dc0ebde
AH
50132019-03-22 Alan Hayward <alan.hayward@arm.com>
5014 Jiong Wang <jiong.wang@arm.com>
5015
5016 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5017 (initialize_low_tracepoint): Likewise.
5018 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5019 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5020 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5021 (aarch64_linux_read_description): Likewise.
5022 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5023
1163a4b7
JB
50242019-03-12 John Baldwin <jhb@FreeBSD.org>
5025
5026 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5027 i386_create_target_description for 'segments' parameter.
5028 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5029 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5030 * win32-i386-low.c (i386_arch_setup): Likewise.
5031
d3a70e03
TT
50322019-03-12 Tom Tromey <tromey@adacore.com>
5033
5034 * linux-low.c (iterate_over_lwps): Update.
5035
37991b4f
TT
50362019-03-06 Tom Tromey <tom@tromey.com>
5037
5038 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5039 (captured_main): Use SCOPE_EXIT.
5040
45950eb6
SDJ
50412019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5042
5043 * configure.srv: Use '$enable_unittest' instead of '$development'
5044 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5045 case.
5046
43ac54fc
TT
50472019-02-27 Tom Tromey <tromey@adacore.com>
5048
5049 * gdbreplay.c (logchar): Handle \r\n.
5050
df0da8a2
AH
50512019-02-07 Alan Hayward <alan.hayward@arm.com>
5052
5053 * linux-low.c (linux_attach): Add process before lwp.
5054 * server.c (attach_inferior): Check if already attached.
5055
1a5c2598
TT
50562019-02-07 Tom Tromey <tom@tromey.com>
5057
5058 * x86-tdesc.h: Rename include guard.
5059 * x86-low.h: Add include guard.
5060 * wincecompat.h: Rename include guard.
5061 * win32-low.h: Add include guard.
5062 * utils.h: Rename include guard.
5063 * tracepoint.h: Rename include guard.
5064 * tdesc.h: Rename include guard.
5065 * target.h: Rename include guard.
5066 * server.h: Rename include guard.
5067 * remote-utils.h: Rename include guard.
5068 * regcache.h: Rename include guard.
5069 * nto-low.h: Rename include guard.
5070 * notif.h: Add include guard.
5071 * mem-break.h: Rename include guard.
5072 * lynx-low.h: Add include guard.
5073 * linux-x86-tdesc.h: Add include guard.
5074 * linux-s390-tdesc.h: Add include guard.
5075 * linux-ppc-tdesc-init.h: Add include guard.
5076 * linux-low.h: Add include guard.
5077 * linux-aarch64-tdesc.h: Add include guard.
5078 * linux-aarch32-low.h: Add include guard.
5079 * inferiors.h: Rename include guard.
5080 * i387-fp.h: Rename include guard.
5081 * hostio.h: Rename include guard.
5082 * gdbthread.h: Rename include guard.
5083 * gdb_proc_service.h: Rename include guard.
5084 * event-loop.h: Rename include guard.
5085 * dll.h: Rename include guard.
5086 * debug.h: Rename include guard.
5087 * ax.h: Rename include guard.
5088
956cc47c
SN
50892018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5090
5091 PR gdb/23985
5092 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5093 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5094
a0707f3c
TT
50952019-01-25 Tom Tromey <tom@tromey.com>
5096
5097 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5098
0747795c
TT
50992019-01-25 Tom Tromey <tom@tromey.com>
5100
5101 * win32-low.c: Fix common/ includes.
5102 * win32-i386-low.c: Fix common/ includes.
5103 * tracepoint.c: Fix common/ includes.
5104 * thread-db.c: Fix common/ includes.
5105 * target.h: Fix common/ includes.
5106 * symbol.c: Fix common/ includes.
5107 * spu-low.c: Fix common/ includes.
5108 * server.h: Fix common/ includes.
5109 * server.c: Fix common/ includes.
5110 * remote-utils.c: Fix common/ includes.
5111 * regcache.h: Fix common/ includes.
5112 * regcache.c: Fix common/ includes.
5113 * nto-x86-low.c: Fix common/ includes.
5114 * notif.h: Fix common/ includes.
5115 * mem-break.h: Fix common/ includes.
5116 * lynx-low.c: Fix common/ includes.
5117 * lynx-i386-low.c: Fix common/ includes.
5118 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5119 * linux-x86-low.c: Fix common/ includes.
5120 * linux-low.c: Fix common/ includes.
5121 * inferiors.h: Fix common/ includes.
5122 * i387-fp.c: Fix common/ includes.
5123 * hostio.c: Fix common/ includes.
5124 * hostio-errno.c: Fix common/ includes.
5125 * gdbthread.h: Fix common/ includes.
5126 * gdbreplay.c: Fix common/ includes.
5127 * fork-child.c: Fix common/ includes.
5128 * event-loop.c: Fix common/ includes.
5129 * ax.c:
5130 (enum gdb_agent_op): Fix common/ includes.
5131
be6d4f74
TT
51322019-01-21 Tom Tromey <tom@tromey.com>
5133
5134 * tracepoint.c: Fix includes.
5135 * remote-utils.c: Fix includes.
5136 * linux-x86-low.c: Fix includes.
5137
66d91b39
JB
51382019-01-01 Joel Brobecker <brobecker@adacore.com>
5139
5140 * gdbreplay.c (gdbreplay_version): Update copyright year in
5141 version message.
5142 * server.c (gdbserver_version): Likewise.
5143
754e3168
AH
51442018-12-05 Alan Hayward <alan.hayward@arm.com>
5145
5146 * linux-low.c (add_lwp): Switch ordering.
5147
d105de22
TT
51482018-11-29 Tom Tromey <tom@tromey.com>
5149
5150 * win32-low.c (win32_join): Take pid, not process.
5151 * target.h (struct target_ops) <join>: Change argument type.
5152 (join_inferior): Change argument name.
5153 * spu-low.c (spu_join): Take pid, not process.
5154 * server.c (handle_detach): Preserve pid before destroying
5155 process.
5156 * lynx-low.c (lynx_join): Take pid, not process.
5157 * linux-low.c (linux_join): Take pid, not process.
5158
50138245
AH
51592018-11-23 Alan Hayward <alan.hayward@arm.com>
5160
5161 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5162 (aarch64_cannot_fetch_register): Likewise.
5163 (struct linux_target_ops): Update references.
5164
64f57f3d
PFC
51652018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5166
5167 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5168
8d619c01
EBM
51692018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5170
5171 * configure.srv (ipa_ppc_linux_regobj): Add
5172 powerpc-isa207-htm-vsx32l-ipa.o and
5173 powerpc-isa207-htm-vsx64l-ipa.o.
5174 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5175 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5176 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5177 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5178 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5179 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5180 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5181 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5182 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5183 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5184 (init_registers_powerpc_isa207_htm_vsx32l)
5185 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5186 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5187 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5188 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5189 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5190 (ppc_store_tm_ctarregset): New functions.
5191 (ppc_regsets): Add entries for HTM regsets.
5192 (ppc_arch_setup): Set htm in features struct when needed. Set
5193 sizes for the HTM regsets.
5194 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5195 (initialize_low_arch): Call
5196 init_registers_powerpc_isa207_htm_vsx32l and
5197 init_registers_powerpc_isa207_htm_vsx64l.
5198 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5199 PPC_TDESC_ISA207_HTM_VSX.
5200 (initialize_low_tracepoint): Call
5201 init_registers_powerpc_isa207_htm_vsx32l and
5202 init_registers_powerpc_isa207_htm_vsx64l.
5203
232bfb86
EBM
52042018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5205
5206 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5207 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5208 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5209 (ppc_store_pmuregset): New functions.
5210 (ppc_regsets): Add entries for ebb and pmu regsets.
5211 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5212 pmu regsets are available. Set sizes for these regsets.
5213
f2cf6173
EBM
52142018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5215
5216 * configure.srv (ipa_ppc_linux_regobj): Add
5217 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5218 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5219 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5220 rs6000/powerpc-isa207-vsx32l.xml, and
5221 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5222 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5223 <PPC_TDESC_ISA207_VSX>: New enum value.
5224 (init_registers_powerpc_isa207_vsx32l): Declare.
5225 (init_registers_powerpc_isa207_vsx64l): Declare.
5226 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5227 (ppc_store_tarregset): New function.
5228 (ppc_regsets): Add entry for the TAR regset.
5229 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5230 size for the TAR regsets.
5231 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5232 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5233 and init_registers_powerpc_isa207_vsx64l.
5234 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5235 (initialize_low_tracepoint): Call
5236 init_registers_powerpc_isa207_vsx32l and
5237 init_registers_powerpc_isa207_vsx64l.
5238
7ca18ed6
EBM
52392018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5240 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5241
5242 * configure.srv (ipa_ppc_linux_regobj): Add
5243 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5244 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5245 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5246 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5247 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5248 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5249 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5250 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5251 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5252 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5253 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5254 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5255 (ppc_hwcap): Add comment.
5256 (ppc_hwcap2): New global.
5257 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5258 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5259 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5260 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5261 when needed. Set sizes for the the DSCR and PPR regsets.
5262 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5263 (initialize_low_arch): Call
5264 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5265 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5266 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5267 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5268 (initialize_low_tracepoint): Call
5269 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5270 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5271
5c849b22
PFC
52722018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5273
5274 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5275
8ecfd7bd
SDJ
52762018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5277 Simon Marchi <simark@simark.ca>
5278
5279 * acinclude.m4: Include "../selftest.m4".
5280 * configure: Regenerate.
5281 * configure.ac: Use "GDB_AC_SELFTEST".
5282 * configure.srv: Use "$enable_unittests" instead of
5283 "$development" when checking whether unit tests have been
5284 enabled.
5285 * server.c (captured_main): Update message informing that
5286 selftests have been disabled.
5287
96643e35
TT
52882018-10-04 Tom Tromey <tom@tromey.com>
5289
5290 * configure: Rebuild.
5291
da4ae14a
TT
52922018-10-04 Tom Tromey <tom@tromey.com>
5293
5294 * server.c (handle_status): Rename inner "thread".
5295 (process_serial_event): Declare "res" in 'm' case.
5296 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5297 (iterate_over_lwps): Rename inner "thread".
5298 (linux_qxfer_libraries_svr4): Rename inner "len".
5299 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5300
7c619dbd
GB
53012018-10-01 Gary Benson <gbenson@redhat.com>
5302
5303 * gdb_proc_service.h: Moved common code to
5304 common/gdb_proc_service.h.
5305
3795e814
GB
53062018-10-01 Gary Benson <gbenson@redhat.com>
5307
5308 * gdb_proc_service.h: Synchronize comments and whitespace with
5309 GDB's version of this file.
5310
49b036f1
TT
53112018-09-25 Tom Tromey <tom@tromey.com>
5312
5313 * configure: Rebuild.
5314 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5315
8ff03f0b
SM
53162018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5317
5318 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5319 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5320 ($(IPA_LIB)): Sort IPA_OBJS.
5321
a1cd91dc
SM
53222018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5323
5324 * Makefile.in: Remove references to $(ADD_DEPS).
5325
752312ba
TT
53262018-09-16 Tom Tromey <tom@tromey.com>
5327
5328 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5329 variables.
5330 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5331 variables.
5332
f1628857
TT
53332018-09-05 Tom Tromey <tom@tromey.com>
5334
5335 * configure: Rebuild.
5336
ad202fcc
SM
53372018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5338
5339 PR build/23399
5340 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5341
d3d8724a
TT
53422018-08-27 Tom Tromey <tom@tromey.com>
5343
5344 PR build/23087:
5345 * configure: Rebuild.
5346
b4f183d2
TT
53472018-08-27 Tom Tromey <tom@tromey.com>
5348
5349 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5350 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5351 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5352 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5353 (s390x_emit_stack_adjust): Add casts to unsigned char.
5354
4e2aa472
SM
53552018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5356
5357 PR gdb/23374
5358 PR gdb/23375
5359 * server.h (struct client_state) <disable_randomization>:
5360 Initialize to 1.
5361
cf4088a9
SM
53622018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5363
5364 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5365 variable.
5366 (mips_supply_ptrace_register): Likewise.
5367
a0de763e
TT
53682018-07-22 Tom Tromey <tom@tromey.com>
5369
5370 * configure: Rebuild.
5371
b0a7723d
TT
53722018-07-22 Tom Tromey <tom@tromey.com>
5373
5374 * win32-low.c (win32_create_inferior): Remove unused variables.
5375 * gdbreplay.c (remote_open): Remove unused variable.
5376 * remote-utils.c (remote_prepare): Remove unused variable.
5377 * x86-tdesc.h (X86_TDESC_H): Define.
5378 (amd64_expedite_regs): Define conditionally.
5379 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5380 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5381 * remote-utils.c (readchar): Remove unused variable.
5382
a780ef4f
PA
53832018-07-13 Pedro Alves <palves@redhat.com>
5384
5385 * linux-low.c (linux_kill): Change parameter to process_info
5386 pointer instead of pid. Adjust.
5387 * lynx-low.c (lynx_kill): Likewise.
5388 * nto-low.c (nto_kill): Likewise.
5389 * spu-low.c (spu_kill): Likewise.
5390 * win32-low.c (win32_kill): Likewise.
5391 * server.c (handle_v_kill, kill_inferior_callback)
5392 (detach_or_kill_for_exit): Adjust.
5393 * target.c (kill_inferior): Change parameter to process_info
5394 pointer instead of pid. Adjust.
5395 * target.h (struct target_ops) <kill>: Change parameter to
5396 process_info pointer instead of pid. Adjust all implementations
5397 and callers.
5398 (kill_inferior): Likewise.
5399
ef2ddb33
PA
54002018-07-13 Pedro Alves <palves@redhat.com>
5401
5402 * linux-low.c (linux_detach, linux_join): Change parameter to
5403 process_info pointer instead of pid. Adjust.
5404 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5405 * nto-low.c (nto_detach): Likewise.
5406 * spu-low.c (spu_detach, spu_join): Likewise.
5407 * win32-low.c (win32_detach, win32_join): Likewise.
5408 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5409 * target.h (struct target_ops) <detach, join>: Change parameter to
5410 process_info pointer instead of pid. Adjust all implementations
5411 and callers.
5412 (detach_inferior, join_inferior): Rename 'pid' parameter to
5413 'proc'.
5414
c7ab0aef
SDJ
54152018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5416 Jan Kratochvil <jan.kratochvil@redhat.com>
5417 Paul Fertser <fercerpav@gmail.com>
5418 Tsutomu Seki <sekiriki@gmail.com>
5419
5420 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5421 (OBS): Add 'common/netstuff.o'.
5422 (GDBREPLAY_OBS): Likewise.
5423 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5424 (remote_open): Implement support for IPv6
5425 connections.
5426 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5427 and 'wspiapi.h'.
5428 (handle_accept_event): Accept connections from IPv6 sources.
5429 (remote_prepare): Handle IPv6-style hostnames; implement
5430 support for IPv6 connections.
5431 (remote_open): Implement support for printing connections from
5432 IPv6 sources.
5433
31445d10
PA
54342018-07-11 Pedro Alves <palves@redhat.com>
5435
5436 PR gdb/23377
5437 * mem-break.c (any_persistent_commands): Add process_info
5438 parameter and use it instead of relying on the current process.
5439 Change return type to bool.
5440 * mem-break.h (any_persistent_commands): Add process_info
5441 parameter and change return type to bool.
5442 * server.c (handle_detach): Remove require_running_or_return call.
5443 Look up the process_info for the process we're about to detach.
5444 If not found, return back error to GDB. Adjust
5445 any_persistent_commands call to pass down a process pointer.
5446
cb197132
PA
54472018-07-11 Pedro Alves <palves@redhat.com>
5448
5449 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5450 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5451 instead of collect_register_by_name.
5452 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5453 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5454
1b919490
VB
54552018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5456 Pedro Alves <palves@redhat.com>
5457
5458 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5459
d7e15655
TT
54602018-07-03 Tom Tromey <tom@tromey.com>
5461
5462 * linux-low.c: Update.
5463 * lynx-low.c: Update.
5464 * mem-break.c: Update.
5465 * nto-low.c: Update.
5466 * remote-utils.c: Update.
5467 * server.c: Update.
5468 * spu-low.c: Update.
5469 * target.c: Update.
5470 * win32-low.c: Update.
5471
26a57c92
TT
54722018-07-03 Tom Tromey <tom@tromey.com>
5473
5474 * server.c: Update.
5475
0e998d96
TT
54762018-07-03 Tom Tromey <tom@tromey.com>
5477
5478 * linux-low.c: Update.
5479
cc6bcb54
TT
54802018-07-03 Tom Tromey <tom@tromey.com>
5481
5482 * target.c: Update.
5483
e38504b3
TT
54842018-07-03 Tom Tromey <tom@tromey.com>
5485
5486 * linux-low.c: Update.
5487 * linux-mips-low.c: Update.
5488 * lynx-low.c: Update.
5489 * nto-low.c: Update.
5490 * remote-utils.c: Update.
5491 * server.c: Update.
5492 * spu-low.c: Update.
5493 * target.c: Update.
5494 * thread-db.c: Update.
5495
e99b03dc
TT
54962018-07-03 Tom Tromey <tom@tromey.com>
5497
5498 * linux-low.c: Update.
5499 * linux-mips-low.c: Update.
5500 * lynx-low.c: Update.
5501 * mem-break.c: Update.
5502 * nto-low.c: Update.
5503 * remote-utils.c: Update.
5504 * server.c: Update.
5505 * spu-low.c: Update.
5506 * target.c: Update.
5507 * tracepoint.c: Update.
5508
f2907e49
TT
55092018-07-03 Tom Tromey <tom@tromey.com>
5510
5511 * linux-low.c: Update.
5512 * linux-ppc-low.c: Update.
5513 * linux-x86-low.c: Update.
5514 * proc-service.c: Update.
5515 * server.c: Update.
5516 * spu-low.c: Update.
5517 * thread-db.c: Update.
5518 * win32-low.c: Update.
5519
fd79271b
TT
55202018-07-03 Tom Tromey <tom@tromey.com>
5521
5522 * linux-low.c: Update.
5523 * lynx-low.c: Update.
5524 * nto-low.c: Update.
5525 * remote-utils.c: Update.
5526 * spu-low.c: Update.
5527 * thread-db.c: Update.
5528 * win32-low.c: Update.
5529
c0867626
SDJ
55302018-06-29 Joel Brobecker <brobecker@adacore.com>
5531
5532 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5533 parameter in call to 'amd64_create_target_description'.
5534
2512d7ef
JK
55352018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5536
5537 * x86-tdesc.h: Remove executable permission flag.
5538
d0ac1c44
SM
55392018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5540
5541 * configure.ac: Remove AC_PREREQ, add missing quoting.
5542 * configure: Re-generate.
5543 * config.in: Re-generate.
5544 * aclocal.m4: Re-generate.
5545
c4eb05ff
SM
55462018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5547
5548 * tracepoint.h (current_traceframe): Remove declaration.
5549
02895270
AH
55502018-06-18 Alan Hayward <alan.hayward@arm.com>
5551
5552 * linux-aarch64-low.c (is_sve_tdesc): New function.
5553 (aarch64_sve_regs_copy_to_regcache): Likewise.
5554 (aarch64_sve_regs_copy_from_regcache): Likewise.
5555 (aarch64_regs_info): Add SVE checks.
5556 (initialize_low_arch): Initialize SVE.
5557
e9902bfc
AH
55582018-06-18 Alan Hayward <alan.hayward@arm.com>
5559
5560 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5561
fefa175e
AH
55622018-06-11 Alan Hayward <alan.hayward@arm.com>
5563
5564 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5565 (initialize_low_tracepoint): Likewise
5566 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5567 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5568 param.
5569 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5570 checks.
5571 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5572
b91ad3ff
AH
55732018-06-11 Alan Hayward <alan.hayward@arm.com>
5574
5575 * server.h (PBUFSIZ): Increase size
5576
f868386e
AH
55772018-06-11 Alan Hayward <alan.hayward@arm.com>
5578
5579 * regcache.c (regcache::raw_compare): New function.
5580 * regcache.h (regcache::raw_compare): New declaration.
5581
9c861883
AH
55822018-06-11 Alan Hayward <alan.hayward@arm.com>
5583
5584 * regcache.c (new_register_cache): Use new.
5585 (free_register_cache): Use delete.
5586 (register_data): Use const.
5587 (supply_register): Move body inside regcache.
5588 (regcache::raw_supply): New override function.
5589 (collect_register): Move body inside regcache.
5590 (regcache::raw_collect): New override function.
5591 (regcache::get_register_status): New override function.
5592 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5593
40591844
TT
55942018-06-09 Tom Tromey <tom@tromey.com>
5595
5596 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5597 declare queue.
5598 (event_queue): Use std::queue.
5599 (gdb_event_xfree): Remove.
5600 (initialize_event_loop, process_event, wait_for_event): Update.
5601
6341380d
SC
56022018-06-08 Stan Cox <scox@redhat.com>
5603
5604 * win32-low.c (win32_create_inferior): last_ptid and last_status
5605 moved to client_state.
5606
03349c93
PA
56072018-06-08 Pedro Alves <palves@redhat.com>
5608
5609 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5610 common/common-exceptions.o, common/common-utils.o,
5611 common/errors.o, common/print-utils.o and utils.o.
5612 * gdbreplay.c: Include "common-defs.h" instead of the two
5613 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5614 string.h or alloca.h.
5615 (perror_with_name): Delete.
5616 (remote_open): Use xstrdup instead of strdup.
5617 (main): Rename to ...
5618 (captured_main): ... this.
5619 (main): New.
5620
8dcc53b3
TT
56212018-06-08 Tom Tromey <tom@tromey.com>
5622
5623 * linux-low.c (linux_low_read_btrace): Update.
5624
c12a5089
SC
56252018-06-04 Stan Cox <scox@redhat.com>
5626
5627 * server.h (struct client_state): New.
5628 * server.c (cont_thread, general_thread, multi_process)
5629 (report_fork_events, report_vfork_events, report_exec_events)
5630 (report_thread_events, swbreak_feature, hwbreak_feature)
5631 (vCont_supported, disable_randomization, pass_signals)
5632 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5633 Moved to client_state.
5634 * remote-utils.c (remote_debug, noack_mode)
5635 (transport_is_reliable): Moved to client_state.
5636 * tracepoint.c (current_traceframe): Moved to client_state.
5637
5638 Update all callers.
5639 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5640 linux-low.c, remote-utils.h, target.c: Use client_state.
5641
122394f1
AH
56422018-05-31 Alan Hayward <alan.hayward@arm.com>
5643
5644 * configure.srv: Add new c/h file.
5645
95228a0d
AH
56462018-05-31 Alan Hayward <alan.hayward@arm.com>
5647
5648 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5649 null VQ.
5650
d8dab6c3
MR
56512018-05-25 Maciej W. Rozycki <macro@mips.com>
5652
5653 * gdb.arch/mips-fpregset-core.exp: New test.
5654 * gdb.arch/mips-fpregset-core.c: New test source.
5655
81e25b7c
EK
56562018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5657
5658 PR server/23198
5659 * hostio.c (require_int): Do not report overflow for integers
5660 between 0xfffffff and 0x7fffffff.
5661
7e947ad3
MR
56622018-05-22 Maciej W. Rozycki <macro@mips.com>
5663
5664 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5665 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5666 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5667 functions.
5668 (the_low_target): Wire them.
5669
1d75a658
PFC
56702018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5671
5672 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5673 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5674 mode. Call collect_register_by_name with vscr using
5675 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5676 (ppc_store_vrregset): Add and set vscr_offset variable as in
5677 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5678 vscr_offset.
5679
d078308a
PFC
56802018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5681
5682 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5683 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5684 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5685
7273b5fc
PFC
56862018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5687
5688 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5689 (ppc_store_vsxregset): Likewise.
5690 (ppc_fill_vrregset): Likewise.
5691 (ppc_store_vrregset): Likewise.
5692 (ppc_fill_evrregset): Likewise.
5693 (ppc_store_evrregset): Likewise.
5694 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5695 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5696 needed.
5697
2e077f5e
PFC
56982018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5699
5700 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5701 wordsize of the inferior. Call ppc_linux_target_wordsize.
5702
bd64614e
PFC
57032018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5704
5705 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5706 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5707 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5708 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5709 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5710 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5711 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5712 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5713 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5714 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5715 (tdesc_powerpc_e500l): Remove.
5716 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5717 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5718 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5719 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5720 linux-ppc-tdesc.h.
5721 (ppc_arch_setup): Remove target description matching code. Fill a
5722 ppc_linux_features struct and call ppc_linux_match_description
5723 with it.
5724
75d74cca
MR
57252018-05-22 Maciej W. Rozycki <macro@mips.com>
5726
5727 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5728 width of the requested register exceeds the width of the
5729 `ptrace' data type.
5730 (mips_cannot_store_register): Likewise.
5731
e4439e43
MR
57322018-05-21 Maciej W. Rozycki <macro@mips.com>
5733
5734 * linux-mips-low.c (mips_fetch_register): New function. Update
5735 preceding comment.
5736 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5737 (the_low_target): Wire `mips_fetch_register'.
5738
55271bf9
JB
57392018-05-10 Joel Brobecker <brobecker@adacore.com>
5740
5741 * lynx-i386-low.c (LYNXOS_178): New macro.
5742 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5743 the layout on LynxOS-178.
5744 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5745 handle floating point registers that are not supported by
5746 LynxOS-178.
5747
1a34f210
TT
57482018-05-10 Tom Tromey <tom@tromey.com>
5749
5750 * configure: Rebuild.
5751
190852c8
JB
57522018-05-10 Joel Brobecker <brobecker@adacore.com>
5753
5754 PR server/23158:
5755 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5756 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5757 Use it to set the expedite_regs field in the given tdesc.
5758 * x86-tdesc.h: New file.
5759 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5760 Adjust following the addition of the new expedite_regs parameter
5761 to init_target_desc.
5762 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5763 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5764 (i386_linux_read_description, amd64_linux_read_description):
5765 Adjust following the addition of the new expedite_regs parameter
5766 to init_target_desc.
5767 * lynx-i386-low.c: #include "x86-tdesc.h".
5768 (lynx_i386_arch_setup): Adjust following the addition of the new
5769 expedite_regs parameter to init_target_desc.
5770 * nto-x86-low.c: #include "x86-tdesc.h".
5771 (nto_x86_arch_setup): Adjust following the addition of the new
5772 expedite_regs parameter to init_target_desc.
5773 * win32-i386-low.c: #include "x86-tdesc.h".
5774 (i386_arch_setup): Adjust following the addition of the new
5775 expedite_regs parameter to init_target_desc.
5776
7dbac825
JB
57772018-05-10 Joel Brobecker <brobecker@adacore.com>
5778
5779 PR server/23158:
5780 * win32-low.c (win32_create_inferior): Add call to my_wait
5781 setting last_status global.
5782
906994d9
JB
57832018-05-10 Joel Brobecker <brobecker@adacore.com>
5784
5785 PR server/23158:
5786 * win32-low.c (create_process): Only call gdb_tilde_expand if
5787 inferior_cwd is not NULL.
5788
8ee22052
AB
57892018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5790
5791 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5792 registers to the cache if their values have changed.
5793 (i387_xsave_to_cache): Provide default values for x87 control
5794 registers when these features are available, but disabled.
5795 * regcache.c (supply_register_by_name_zeroed): New function.
5796 * regcache.h (supply_register_by_name_zeroed): Declare new
5797 function.
5798
aff689d3
TT
57992018-05-07 Tom Tromey <tom@tromey.com>
5800
5801 * configure: Rebuild.
5802
85e26832
TT
58032018-05-04 Tom Tromey <tom@tromey.com>
5804
5805 * configure: Rebuild.
5806
a3b60e45
JK
58072018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5808 Pedro Alves <palves@redhat.com>
5809
5810 * linux-aarch64-low.c (aarch64_stopped_data_address):
5811 Likewise.
5812
632e107b
TT
58132018-04-27 Tom Tromey <tom@tromey.com>
5814
5815 * configure: Rebuild.
5816
458412c3
TT
58172018-04-23 Tom Tromey <tom@tromey.com>
5818
5819 * configure: Rebuild.
5820
f31c089e
SM
58212018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5822
5823 * Makefile.in (depcomp): Add "..".
5824 (all_deps_files): New and use it.
5825
b319b098
AH
58262018-04-18 Alan Hayward <alan.hayward@arm.com>
5827
5828 * configure.srv (aarch64*-*-linux*): Don't include xml.
5829 (i[34567]86-*-cygwin*): Likewise.
5830 (i[34567]86-*-linux*): Likewise.
5831 (i[34567]86-*-lynxos*): Likewise.
5832 (i[34567]86-*-mingw32ce*): Likewise.
5833 (i[34567]86-*-mingw*): Likewise.
5834 (i[34567]86-*-nto*): Likewise.
5835 (tic6x-*-uclinux): Likewise.
5836 (x86_64-*-linux*): Likewise.
5837 (x86_64-*-mingw*): Likewise.
5838 (x86_64-*-cygwin*): Likewise.
5839
3b74854b
AH
58402018-04-18 Alan Hayward <alan.hayward@arm.com>
5841
5842 * tdesc.c: Remove xml parameter.
5843
e98577a9
AH
58442018-04-18 Alan Hayward <alan.hayward@arm.com>
5845
5846 * server.c (get_features_xml): Remove cast.
5847 * tdesc.c (void target_desc::accept): Fill in function.
5848 (tdesc_get_features_xml): Remove old xml creation.
5849 (print_xml_feature::visit_pre): Add xml vistor.
5850 * tdesc.h (struct target_desc): Make xmltarget mutable.
5851 (tdesc_get_features_xml): Remove declaration.
5852
d278f585
AH
58532018-04-18 Alan Hayward <alan.hayward@arm.com>
5854
5855 * tdesc.c (tdesc_architecture_name): Add new function.
5856 (tdesc_osabi_name): Likewise.
5857 (tdesc_get_features_xml): Use new functions.
5858
eee8a18d
AH
58592018-04-18 Alan Hayward <alan.hayward@arm.com>
5860
5861 * tdesc.c (tdesc_create_flags): Remove.
5862 (tdesc_add_flag): Likewise.
5863 (tdesc_named_type): Likewise.
5864 (tdesc_create_union): Likewise.
5865 (tdesc_create_struct): Likewise.
5866 (tdesc_create_vector): Likewise.
5867 (tdesc_add_bitfield): Likewise.
5868 (tdesc_add_field): Likewise.
5869 (tdesc_set_struct_size): Likewise.
5870
82ec9bc7
AH
58712018-04-18 Alan Hayward <alan.hayward@arm.com>
5872
5873 * tdesc.c (~target_desc): Remove implictly deleted items.
5874 (init_target_desc): Iterate all features.
5875 (tdesc_get_features_xml): Use vector.
5876 (tdesc_create_feature): Create feature.
5877 * tdesc.h (tdesc_feature) Remove
5878 (target_desc): Add features.
5879
ea3e7d71
AH
58802018-04-18 Alan Hayward <alan.hayward@arm.com>
5881
5882 * Makefile.in: Add common/tdesc.c
5883 * tdesc.c (init_target_desc): init all reg_defs from register
5884 vector.
5885 (tdesc_create_reg): Create tdesc_reg.
5886 * tdesc.h (tdesc_feature): Add register vector.
5887
17d08cd4
SM
58882018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5889
5890 * tdesc.h (struct target_desc) <features>: Change type to
5891 std::vector<std::string>.
5892 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5893 changes.
5894 (tdesc_get_features_xml): Likewise.
5895 (tdesc_create_feature): Likewise.
5896
5cd3e386
AH
58972018-03-26 Alan Hayward <alan.hayward@arm.com>
5898
5899 * regcache.c (find_register_by_number): Return a ref.
5900 (find_regno): Use references.
5901 (register_size): Likewise.
5902 (register_data): Likewise.
5903 * tdesc.c (target_desc::~target_desc): Remove free calls.
5904 (target_desc::operator==): Use std::vector compare.
5905 (init_target_desc): Use reference.
5906 (tdesc_create_reg): Use reg constructors.
5907 * tdesc.h (struct target_desc): Replace pointer with object.
5908
dff7492c
AH
59092018-03-23 Alan Hayward <alan.hayward@arm.com>
5910
5911 * regcache.c (find_register_by_number): Make static.
5912 (find_regno): Use find_register_by_number
5913 * regcache.h (struct reg): Remove declaration.
5914
d80e5242
AH
59152018-03-23 Alan Hayward <alan.hayward@arm.com>
5916
5917 * tdesc.c (target_desc::~target_desc): Move to here.
5918 (target_desc::operator==): Likewise.
5919 * tdesc.h (target_desc::~target_desc): Move from here.
5920 (target_desc::operator==): Likewise.
5921
f69c5afb
AA
59222018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5923
5924 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5925
ce29f843
AA
59262018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5927
5928 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5929 S390_TDESC_GS.
5930 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5931 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5932 and init_registers_s390_gs_linux64.
5933
c49bd90b
AA
59342018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5935
5936 * linux-s390-low.c (s390_fill_gs): Remove function.
5937 (s390_fill_gsbc): Remove function.
5938 (s390_regsets): Set fill functions for the guarded storage regsets
5939 to NULL.
5940
7edb9bd3
AA
59412018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5942
5943 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5944 the word size. Add comment.
5945 (s390_get_wordsize): New function.
5946 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5947 pswm with it. Instead, use s390_get_wordsize to determine the
5948 word size first and derive the correct tdesc from that directly.
5949
39be3c7e
SM
59502018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5951
5952 * Makefile.in: Include silent-rules.mk.
5953 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5954 (COMPILE): Add ECHO_CXX.
5955 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5956 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5957 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5958 (version-generated.c): Add ECHO_GEN.
5959 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5960 (IPAGENT_COMPILE): Add ECHO_CXX.
5961 (%-generated.c): Add ECHO_REGDAT.
5962
3ae9ce5d
TT
59632018-03-14 Tom Tromey <tom@tromey.com>
5964
5965 PR cli/14977:
5966 * ax.c (ax_printf): Special case for NULL.
5967
e6a58aa8
SM
59682018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5969
5970 * linux-low.c (linux_qxfer_libraries_svr4): Use
5971 xml_escape_text_append.
5972
f6e8a41e
SM
59732018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5974
5975 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5976
b9671caf
SM
59772018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5978
5979 * server.c (handle_general_set): Remove unnecessary xstrdup.
5980
e80aaf61
SM
59812018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5982
5983 * server.c (parse_debug_format_options): Adjust to
5984 delim_string_to_char_ptr_vec changes.
5985 * thread-db.c (thread_db_load_search): Adjust to
5986 dirnames_to_char_ptr_vec changes.
5987
b1223e78
MM
59882018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5989
5990 * target.h (target_enable_btrace, target_disable_btrace)
5991 (target_read_btrace, target_read_btrace_conf): Turn macro into
5992 inline function. Throw error if target method is not defined.
5993 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5994 check for btrace target method. Be prepared to handle exceptions
5995 from btrace target methods.
5996
81561546
SDJ
59972018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5998
5999 * server.c (captured_main): Change order of error message printed
6000 when the current working directory cannot be found.
6001
25e3c82c
SDJ
60022018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6003
6004 * server.c: Include "filenames.h" and "pathstuff.h".
6005 (program_name): Delete variable.
6006 (program_path): New anonymous class.
6007 (get_exec_wrapper): Use "program_path" instead of
6008 "program_name".
6009 (handle_v_run): Likewise.
6010 (captured_main): Likewise.
6011 (process_serial_event): Likewise.
6012
b4987c95
SDJ
60132018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6014
6015 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6016 (OBJS): Add "pathstuff.o".
6017 * server.c (current_directory): New global variable.
6018 (captured_main): Initialize "current_directory".
6019
f46cd62a
AH
60202018-02-26 Alan Hayward <alan.hayward@arm.com>
6021
6022 * tdesc.c: Use common/tdesc.h.
6023 * tdesc.h: Likewise.
6024
a543c5ca
AH
60252018-02-20 Alan Hayward <alan.hayward@arm.com>
6026 Simon Marchi <simon.marchi@ericsson.com>
6027
6028 * Makefile.in: Switch order of make rules.
6029
b5884fa7
AH
60302018-02-19 Alan Hayward <alan.hayward@arm.com>
6031
6032 * Makefile.in: Add common directory in build.
6033 * configure.ac: Add common reference.
6034 * configure: Regenerate.
6035
de6242d3
MM
60362018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6037
6038 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6039 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6040 * spu-low.c (spu_target_ops): Likewise.
6041 * win32-low.c (win32_target_ops): Likewise.
6042 * server.c (supported_btrace_packets): Report packets unconditionally.
6043 * target.h (target_ops) <supports_btrace>: Remove.
6044 (target_supports_btrace): Remove.
6045
9ee23a85
MM
60462018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6047
6048 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6049 (handle_btrace_disable): Change return type to void. Use exceptions
6050 to report errors.
6051 (handle_btrace_general_set): Catch exception and copy message to
6052 return message.
6053
8ce47547
TT
60542018-02-08 Tom Tromey <tom@tromey.com>
6055
6056 * linux-low.c (install_software_single_step_breakpoints): Use
6057 make_scoped_restore.
6058 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6059 (do_restore_current_thread_cleanup): Remove.
6060 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6061 declare.
6062
45dd3607
TT
60632018-02-08 Tom Tromey <tom@tromey.com>
6064
6065 * mem-break.c (set_raw_breakpoint_at): Use
6066 gdb::unique_xmalloc_ptr.
6067
e671cd59
PA
60682018-01-30 Pedro Alves <palves@redhat.com>
6069
6070 PR gdb/13211
6071 * target.c (target_terminal::terminal_state): Rename to ...
6072 (target_terminal::m_terminal_state): ... this.
6073
a0aad537
JC
60742018-01-19 James Clarke <jrtc27@jrtc27.com>
6075
6076 * linux-low.c (handle_extended_wait): Surround call to
6077 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6078
4d9b86e1
SM
60792018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6080
6081 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6082 linux_ptrace_attach_fail_reason_string now returning an
6083 std::string.
6084 (linux_attach): Likewise.
6085 * thread-db.c (attach_thread): Likewise.
6086
f517c180
EA
60872018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6088
6089 PR gdb/21559
6090 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6091 checking for fs_base/gs_base fields in struct user_regs_struct.
6092 * configure: Regenerate.
6093
9a70f35c
YQ
60942018-01-16 Yao Qi <yao.qi@linaro.org>
6095
6096 PR gdb/18749
6097 * linux-low.c (fetch_register): Call supply_register instead of
6098 error.
6099
605fd3c6
YQ
61002018-01-08 Yao Qi <yao.qi@linaro.org>
6101 Simon Marchi <simon.marchi@ericsson.com>
6102
6103 * Makefile.in (OBS): Remove selftest.o.
6104 * configure.ac: Set srv_selftest_objs if $development is true.
6105 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6106 * configure: Re-generated.
6107 * server.c (captured_main): Wrap variable selftest_filter with
6108 GDB_SELF_TEST.
6109
2cc05030
SM
61102018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6111
6112 * server.c (parse_debug_format_options): Return std::string.
6113 (handle_monitor_command, captured_main): Adjust.
6114
e379cee6
PA
61152018-01-05 Pedro Alves <palves@redhat.com>
6116
6117 PR gdb/18653
6118 * server.c (captured_main): Pass quiet=false to
6119 save_original_signals_state.
6120
82e1e79a
JB
61212018-01-01 Joel Brobecker <brobecker@adacore.com>
6122
6123 * gdbreplay.c (gdbreplay_version): Update copyright year in
6124 version message.
6125 * server.c (gdbserver_version): Likewise.
6126
8e481c3b
TT
61272017-12-08 Tom Tromey <tom@tromey.com>
6128
6129 * ax.c (ax_printf): Update.
6130
a8806230
YQ
61312017-12-07 Yao Qi <yao.qi@linaro.org>
6132
6133 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6134 aarch64_linux_read_description.
6135 * linux-amd64-ipa.c (idx2mask): New array.
6136 (get_ipa_tdesc): Move idx2mask out.
6137 (initialize_low_tracepoint): Initialize target descriptions.
6138 * linux-i386-ipa.c (idx2mask): New array.
6139 (get_ipa_tdesc): Move idx2mask out.
6140 (initialize_low_tracepoint): Initialize target descriptions.
6141
d4a0e8b5
SM
61422017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6143
6144 * tdesc.c (struct tdesc_type): Change return type.
6145 (tdesc_add_flag): Change parameter type.
6146 (tdesc_add_bitfield): Likewise.
6147 (tdesc_add_field): Likewise.
6148 (tdesc_set_struct_size): Likewise.
6149
798a7429
SM
61502017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6151
6152 * regcache.c (registers_to_string): Remove unused variable.
6153
c0e15c9b
SM
61542017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6155
6156 * inferiors.c (for_each_inferior_with_data): Remove.
6157 * inferiors.h (for_each_inferior_with_data): Remove.
6158 * server.c (handle_qxfer_threads_worker): Change parameter type.
6159 (handle_qxfer_threads_proper): Use for_each_thread.
6160
f0045347
SM
61612017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6162
6163 * inferiors.c (for_each_inferior): Remove.
6164 (clear_inferiors): Use for_each_thread.
6165 * inferiors.h (for_each_inferior): Remove.
6166 * linux-low.c (linux_wait_for_event_filtered): Use
6167 for_each_thread.
6168 (linux_stabilize_threads): Likewise.
6169 * regcache.c (regcache_release): Likewise.
6170 * server.c (gdb_wants_all_threads_stopped): Likewise.
6171 (clear_pending_status_callback): Remove.
6172 (handle_status): Use for_each_thread.
6173 (captured_main): Likewise.
6174 * win32-low.c (child_init_thread_list): Likewise.
6175 (win32_clear_inferiors): Likewise.
6176 (fake_breakpoint_event): Likewise.
6177
9521758b
SM
61782017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6179
6180 * inferiors.h (find_inferior): Remove.
6181 * inferiors.c (find_inferior): Remove.
6182
8f86d7aa
SM
61832017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6184
6185 * linux-low.c (resume_status_pending_p): Update comment.
6186 (need_step_over_p): Update comment.
6187
e2b44075
SM
61882017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6189
6190 * linux-low.c (proceed_one_lwp): Return void, change parameter
6191 type.
6192 (unsuspend_and_proceed_one_lwp): Likewise.
6193 (proceed_all_lwps): Use for_each_thread.
6194 (unstop_all_lwps): Likewise.
6195
c80825ff
SM
61962017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6197
6198 * linux-low.c (linux_resume_one_thread): Return void, take
6199 parameter directly.
6200 (linux_resume): Use for_each_thread.
6201
df3e4dbe
SM
62022017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6203
6204 * linux-low.c (send_sigstop_callback): Return void, change
6205 parameter type. Rename to...
6206 (send_sigstop): ... this.
6207 (suspend_and_send_sigstop_callback): Return void, change parameter
6208 type. Rename to...
6209 (suspend_and_send_sigstop): ... this.
6210 (stop_all_lwps): Use for_each_thread.
6211
5a6b0a41
SM
62122017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6213
6214 * linux-low.c (lwp_running): Return bool, remove unused
6215 argument.
6216 (linux_stabilize_threads): Use find_thread.
6217
39a64da5
SM
62182017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6219
6220 * linux-low.c (select_singlestep_lwp_callback): Remove.
6221 (count_events_callback): Remove.
6222 (select_event_lwp_callback): Remove.
6223 (select_event_lwp): Use find_thread/for_each_thread.
6224
a1385b7b
SM
62252017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6226
6227 * linux-low.c (not_stopped_callback): Return bool, take filter
6228 argument directly.
6229 (linux_wait_for_event_filtered): Use find_thread.
6230 (linux_wait_1): Likewise.
6231
454296a2
SM
62322017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6233
6234 * linux-low.c (same_lwp): Remove.
6235 (find_lwp_pid): Use find_thread.
6236
6b2a85da
SM
62372017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6238
6239 * linux-low.c (delete_lwp_callback): Remove.
6240 (linux_mourn): Use for_each_thread.
6241
798a38e8
SM
62422017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6243
6244 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6245 args parameter, don't check for pid.
6246 (linux_detach): Use for_each_thread.
6247
e4eb0dec
SM
62482017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6249
6250 * linux-low.c (struct counter): Remove.
6251 (second_thread_of_pid_p): Remove.
6252 (last_thread_of_process_p): Use find_thread.
6253
83e1b6c1
SM
62542017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6255
6256 * inferiors.c (find_inferior_in_random): Remove.
6257 * inferiors.h (find_inferior_in_random): Remove.
6258 * linux-low.c (status_pending_p_callback): Return bool, accept
6259 parameter ptid directly.
6260 (linux_wait_for_event_filtered): Use find_thread_in_random.
6261 (linux_wait_1): Likewise.
6262
8dc7b443
SM
62632017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6264
6265 * inferiors.c (find_inferior_id): Remove.
6266 (find_thread_ptid): Move implemention from find_inferior_id to
6267 here.
6268 * inferiors.h (find_inferior_id): Remove.
6269 * server.c (handle_status): Use find_thread_ptid.
6270 (process_serial_event): Likewise.
6271 * thread-db.c (find_one_thread): Likewise.
6272 (thread_db_thread_handle): Likewise.
6273 * win32-low.c (thread_rec): Likewise.
6274 (child_delete_thread): Likewise.
6275 (win32_thread_alive): Likewise.
6276 (get_child_debug_event): Likewise.
6277
da25033c
SM
62782017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6279
6280 * linux-mips-low.c (update_watch_registers_callback): Return
6281 void, remove pid_p parameter, don't check for pid.
6282 (mips_insert_point, mips_remove_point): Use for_each_thread.
6283
c91bb56b
SM
62842017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6285
6286 * lynx.low (lynx_delete_thread_callback): Remove.
6287 (lynx_mourn): Use for_each_thread.
6288
634a3254
SM
62892017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6290
6291 * regcache.c (regcache_invalidate_one): Remove.
6292 (regcache_invalidate_pid): use for_each_thread.
6293
41272101
TT
62942017-11-26 Tom Tromey <tom@tromey.com>
6295
6296 * linux-low.c (linux_create_inferior): Update.
6297
f5291a6f
UW
62982017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6299
6300 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6301
6654d750
AH
63022017-11-24 Alan Hayward <alan.hayward@arm.com>
6303
6304 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6305 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6306 * linux-aarch64-tdesc-selftest.c: New file.
6307 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6308
63092017-11-24 Alan Hayward <alan.hayward@arm.com>
6310
6311 * configure.srv: Add new file.
6312 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6313 * linux-aarch64-tdesc-selftest.c: New file.
6314 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6315
49bdb7ee
AH
63162017-11-24 Alan Hayward <alan.hayward@arm.com>
6317
6318 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6319 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6320 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6321
d6d7ce56
AH
63222017-11-24 Alan Hayward <alan.hayward@arm.com>
6323
6324 * configure.srv: Add new files.
6325 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6326 aarch64_linux_read_description.
6327 * linux-aarch64-low.c (aarch64_linux_read_description):
6328 Merge with aarch64_arch_setup.
6329 (aarch64_arch_setup): Call aarch64_linux_read_description.
6330 * linux-aarch64-tdesc.c: New file.
6331 * linux-aarch64-tdesc.h: New file.
6332
506fe5f4
YQ
63332017-11-24 Yao Qi <yao.qi@linaro.org>
6334
6335 * configure.srv: Set $srv_regobj for tic6x-linux.
6336 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6337 (tic6x_read_description): Move some code to tic6x_arch_setup.
6338 (tic6x_tdesc_test): New function.
6339 (initialize_low_arch): Call selftests::register_test.
6340
29f9a567
YQ
63412017-11-22 Yao Qi <yao.qi@linaro.org>
6342
6343 * remote-utils.c (prepare_resume_reply): Use memcpy.
6344
578290ec
SM
63452017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6346
6347 * linux-low.c (kill_one_lwp_callback): Return void, take
6348 argument directly, don't filter on pid.
6349 (linux_kill): Use for_each_thread.
6350
eca55aec
SM
63512017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6352
6353 * linux-low.c (need_step_over_p): Return bool, remove dummy
6354 argument.
6355 (linux_resume, proceed_all_lwps): Use find_thread.
6356
25c28b4d
SM
63572017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6358
6359 * linux-low.c (resume_status_pending_p): Return bool, remove
6360 flag_p argument.
6361 (linux_resume): Use find_thread.
6362
5fdda392
SM
63632017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6364
6365 * linux-low.c (struct thread_resume_array): Remove.
6366 (linux_set_resume_request): Return void, take arguments
6367 directly.
6368 (linux_resume): Use for_each_thread.
6369
fcb056a5
SM
63702017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6371
6372 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6373 return bool, remove data argument.
6374 (linux_stabilize_threads): Use find_thread.
6375
139720c5
SM
63762017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6377
6378 * linux-low.c (unsuspend_one_lwp): Remove.
6379 (unsuspend_all_lwps): Use for_each_thread, inline code from
6380 unsuspend_one_lwp.
6381
6d1e5673
SM
63822017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6383
6384 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6385 * linux-low.c (struct iterate_over_lwps_args): Remove.
6386 (iterate_over_lwps_filter): Remove.
6387 (iterate_over_lwps): Use find_thread.
6388
bbf550d5
SM
63892017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6390
6391 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6392 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6393 code from reset_lwp_ptrace_options_callback.
6394
00192f77
SM
63952017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6396
6397 * linux-arm-low.c (struct update_registers_data): Remove.
6398 (update_registers_callback): Return void, take arguments
6399 directly, don't check thread's pid.
6400 (arm_insert_point, arm_remove_point): Use for_each_thread.
6401
2bee2b6c
SM
64022017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6403
6404 * win32-low.c (continue_one_thread): Return void, take argument
6405 directly.
6406 (child_continue): Use for_each_thread.
6407
0b360f19
SM
64082017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6409
6410 * win32-i386-low.c (update_debug_registers_callback): Rename
6411 to ...
6412 (update_debug_registers): ... this, return void, remove pid_p arg.
6413 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6414
f27866ba
SM
64152017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6416
6417 * inferiors.h (struct process_info): Add constructor, initialize
6418 fields..
6419 <syscalls_to_catch>: Change type to std::vector<int>.
6420 * inferiors.c (add_process): Allocate process_info with new.
6421 (remove_process): Free process_info with delete.
6422 * linux-low.c (handle_extended_wait): Adjust.
6423 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6424 * server.c (handle_general_set): Adjust.
6425
e849ea89
PA
64262017-11-16 Pedro Alves <palves@redhat.com>
6427
6428 * remote-utils.c (remote_close): Block SIGIO signals instead of
6429 uninstalling the SIGIO handler.
6430
1d0aa65c
AH
64312017-11-16 Alan Hayward <alan.hayward@arm.com>
6432
6433 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6434
3491a34c
YQ
64352017-11-16 Yao Qi <yao.qi@linaro.org>
6436
6437 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6438 (tic6x_store_gregset): Likewise.
6439 (tic6x_usrregs_info): Move it up.
6440
a602f924
AH
64412017-11-15 Alan Hayward <alan.hayward@arm.com>
6442
6443 * Makefile.in: Update arch rules.
6444 * configure.srv: Explicitly mark arch/ files.
6445
5616b6c3
AS
64462017-11-13 Andreas Schwab <schwab@suse.de>
6447
6448 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6449 function.
6450 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6451
d1928160
PA
64522017-11-06 Pedro Alves <palves@redhat.com>
6453
6454 * config.in, configure: Regenerate.
6455
bac608e7
SM
64562017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6457
6458 * target.c (struct thread_search): Remove.
6459 (thread_search_callback): Remove.
6460 (prepare_to_access_memory): Use for_each_thread instead of
6461 find_inferior. Inline code from thread_search_callback.
6462
eaddb425
SM
64632017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6464
6465 * server.c (struct visit_actioned_threads_data): Remove.
6466 (visit_actioned_threads): Change prototype to take arguments
6467 directly.
6468 (resume): Use find_thread instead of find_inferior.
6469
99078d34
SM
64702017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6471
6472 * server.c (queue_stop_reply_callback): Change prototype, return
6473 void.
6474 (find_status_pending_thread_callback): Remove.
6475 (handle_status): Replace find_inferior with find_thread and
6476 for_each_thread.
6477
cc628f3d
AH
64782017-10-25 Alan Hayward <alan.hayward@arm.com>
6479
6480 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6481 with REGNO.
6482 (aarch64_store_gregset): Likewise.
6483 (aarch64_fill_fpregset): Likewise.
6484 (aarch64_store_fpregset): Likewise.
6485
4d3bb80e
SM
64862017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6487
6488 * gdbthread.h (find_thread, for_each_thread): New functions.
6489 * inferiors.c (thread_of_pid): Remove.
6490 (find_any_thread_of_pid): Use find_thread.
6491 * linux-low.c (num_lwps): Use for_each_thread.
6492
7a7cdfa0
YQ
64932017-10-17 Yao Qi <yao.qi@linaro.org>
6494
6495 * Makefile.in: Remove one rule.
6496 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6497
e675d170
YQ
64982017-10-17 Yao Qi <yao.qi@linaro.org>
6499
6500 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6501 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6502
7eb4e0f9
YQ
65032017-10-17 Yao Qi <yao.qi@linaro.org>
6504
6505 * configure.srv: Rename arm.o with arch/arm.o.
6506
60d6cfc9
YQ
65072017-10-17 Yao Qi <yao.qi@linaro.org>
6508
6509 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6510 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6511 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6512 (arch-i386.o, arch-amd64.o): Remove rules.
6513 (arch/%.o): New rule.
6514 Update POSTCOMPILE and COMPILE.pre.
6515 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6516 * configure: Re-generated.
6517 * configure.srv: Replace arch-i386.o with arch/i386.o.
6518 Replace arch-amd64.o with arch/amd64.o.
6519
5bfda255
YQ
65202017-10-16 Yao Qi <yao.qi@linaro.org>
6521
6522 * configure: Regenerated.
6523
9c80ecd6
SM
65242017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6525
6526 * inferiors.h: (struct inferior_list): Remove.
6527 (struct inferior_list_entry); Remove.
6528 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6529 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6530 get_first_inferior): Remove.
6531 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6532 find_inferior_id, find_inferior_in_random): Change signature.
6533 * inferiors.c (all_threads): Change type to
6534 std::list<thread_info *>.
6535 (get_thread): Remove macro.
6536 (find_inferior, find_inferior_id): Change signature, implement
6537 using find_thread.
6538 (find_inferior_in_random): Change signature, implement using
6539 find_thread_in_random.
6540 (for_each_inferior, for_each_inferior_with_data): Change
6541 signature, implement using for_each_thread.
6542 (add_inferior_to_list, remove_inferior): Remove.
6543 (add_thread, get_first_thread, thread_of_pid,
6544 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6545 (get_first_inferior, one_inferior_p, clear_inferior_list):
6546 Remove.
6547 (clear_inferiors, get_thread_process): Update.
6548 * gdbthread.h: Include <list>.
6549 (struct thread_info) <entry>: Remove field.
6550 <id>: New field.
6551 (all_threads): Change type to std::list<thread_info *>.
6552 (get_first_inferior): Add doc.
6553 (find_thread, for_each_thread, find_thread_in_random): New
6554 functions.
6555 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6556 * linux-arm-low.c (update_registers_callback): Update.
6557 * linux-low.c (second_thread_of_pid_p): Update.
6558 (kill_one_lwp_callback, linux_detach_lwp_callback,
6559 delete_lwp_callback, status_pending_p_callback, same_lwp,
6560 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6561 iterate_over_lwps, not_stopped_callback,
6562 resume_stopped_resumed_lwps, count_events_callback,
6563 select_singlestep_lwp_callback, select_event_lwp_callback,
6564 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6565 suspend_and_send_sigstop_callback, wait_for_sigstop,
6566 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6567 lwp_running, linux_set_resume_request, resume_status_pending_p,
6568 need_step_over_p, start_step_over, linux_resume_one_thread,
6569 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6570 reset_lwp_ptrace_options_callback): Update.
6571 * linux-mips-low.c (update_watch_registers_callback): Update.
6572 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6573 Update.
6574 (free_register_cache_thread_one): Remove.
6575 (regcache_release): Update.
6576 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6577 handle_qxfer_threads_worker): Update.
6578 (handle_query): Update, use list iterator.
6579 (visit_actioned_threads, handle_pending_status,
6580 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6581 clear_pending_status_callback, set_pending_status_callback,
6582 find_status_pending_thread_callback, handle_status,
6583 process_serial_event): Update.
6584 * target.c (thread_search_callback): Update.
6585 * thread-db.c (thread_db_get_tls_address): Update.
6586 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6587 Update.
6588 * win32-i386-low.c (update_debug_registers_callback): Update.
6589 * win32-low.c (delete_thread_info, child_delete_thread,
6590 continue_one_thread, suspend_one_thread,
6591 get_child_debug_event): Adjust.
6592
9179355e
SM
65932017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6594
6595 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6596 * inferiors.h: Include <list>.
6597 (struct process_info) <entry>: Remove field.
6598 <pid>: New field.
6599 (pid_of): Change macro to function.
6600 (ptid_of, lwpid_of): Remove macro.
6601 (all_processes): Change type to std::list<process_info *>.
6602 (ALL_PROCESSES): Remove macro.
6603 (for_each_process, find_process): New function.
6604 * inferiors.c (all_processes): Change type to
6605 std::list<process_info *>.
6606 (find_thread_process): Adjust.
6607 (add_process): Likewise.
6608 (remove_process): Likewise.
6609 (find_process_pid): Likewise.
6610 (get_first_process): Likewise.
6611 (started_inferior_callback): Remove.
6612 (have_started_inferiors_p): Adjust.
6613 (attached_inferior_callback): Remove.
6614 (have_attached_inferiors_p): Adjust.
6615 * linux-low.c (check_zombie_leaders): Likewise.
6616 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6617 (x86_linux_update_xmltarget): Adjust.
6618 * server.c (handle_query): Likewise.
6619 (gdb_reattached_process): Remove.
6620 (handle_status): Adjust.
6621 (kill_inferior_callback): Likewise.
6622 (detach_or_kill_inferior): Remove.
6623 (print_started_pid): Likewise.
6624 (print_attached_pid): Likewise.
6625 (detach_or_kill_for_exit): Update.
6626 (process_serial_event): Likewise.
6627 * linux-arm-low.c (arm_new_fork): Likewise.
6628
c9cb8905
SM
66292017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6630
6631 * dll.h: Include <list>.
6632 (struct dll_info): Add constructor.
6633 <entry>: Remove field.
6634 (all_dlls): Change type to std::list<dll_info>.
6635 * dll.c: Include <algorithm>.
6636 (get_dll): Remove macro.
6637 (all_dlls): Change type to std::list<dll_info *>.
6638 (free_one_dll): Remove.
6639 (match_dll): Likewise.
6640 (loaded_dll): Adjust.
6641 (unloaded_dll): Adjust to all_dlls type change, use
6642 std::find_if. Inline code from match_dll.
6643 (clear_dlls): Adjust to all_dlls type change.
6644 * server.c (emit_dll_description): Remove.
6645 (handle_qxfer_libraries): Adjust to all_dlls type change,
6646 integrate emit_dll_description's functionality.
6647
04ec7890
SM
66482017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6649
6650 * linux-low.h (struct linux_target_ops) <delete_process>: New
6651 field.
6652 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6653 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6654 (struct linux_target_ops): Add delete_process callback.
6655 * linux-arm-low.c (arm_delete_process): New.
6656 (struct linux_target_ops): Add delete_process callback.
6657 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6658 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6659 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6660 * linux-mips-low.c (mips_linux_delete_process): New.
6661 (struct linux_target_ops): Add delete_process callback.
6662 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6663 * linux-s390-low.c (struct linux_target_ops): Likewise.
6664 * linux-sh-low.c (struct linux_target_ops): Likewise.
6665 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6666 * linux-tile-low.c (struct linux_target_ops): Likewise.
6667 * linux-x86-low.c (x86_linux_delete_process): New.
6668 (struct linux_target_ops): Add delete_process callback.
6669 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6670
466eecee
SM
66712017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6672
6673 * linux-aarch64-low.c (the_low_target): Add thread delete
6674 callback.
6675 * linux-arm-low.c (arm_delete_thread): New function.
6676 (the_low_target): Add thread delete callback.
6677 * linux-bfin-low.c (the_low_target): Likewise.
6678 * linux-crisv32-low.c (the_low_target): Likewise.
6679 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6680 set.
6681 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6682 field.
6683 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6684 * linux-mips-low.c (mips_linux_delete_thread): New function.
6685 (the_low_target): Add thread delete callback.
6686 * linux-ppc-low.c (the_low_target): Likewise.
6687 * linux-s390-low.c (the_low_target): Likewise.
6688 * linux-sh-low.c (the_low_target): Likewise.
6689 * linux-tic6x-low.c (the_low_target): Likewise.
6690 * linux-tile-low.c (the_low_target): Likewise.
6691 * linux-x86-low.c (the_low_target): Likewise.
6692 * linux-xtensa-low.c (the_low_target): Likewise.
6693
b79f7801
YZ
66942017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6695
6696 * win32-low.c: Include "common-inferior.h".
6697
bc3b087d
SDJ
66982017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6699
6700 * inferiors.c (set_inferior_cwd): New function.
6701 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6702 (handle_query): Inform that QSetWorkingDir is supported.
6703 * win32-low.c (create_process): Pass the inferior's cwd to
6704 CreateProcess.
6705
d092c5a2
SDJ
67062017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6707
6708 * inferiors.c (current_inferior_cwd): New global variable.
6709 (get_inferior_cwd): New function.
6710 * inferiors.h (struct process_info) <cwd>: New field.
6711
7da0a886
SDJ
67122017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6713
6714 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6715 (OBS): Add gdb_tilde_expand.o.
6716
289a6840
SM
67172017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6718
6719 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6720 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6721
256642e8
PA
67222017-09-29 Pedro Alves <palves@redhat.com>
6723
6724 * ax.c (gdb_parse_agent_expr): Constify.
6725 * ax.h (gdb_parse_agent_expr): Constify.
6726 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6727 Constify.
6728 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6729 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6730 * remote-utils.h (read_ptid): Constify.
6731 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6732 (process_point_options, process_serial_event): Constify.
6733 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6734 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6735 (cmd_qtbuffer): Constify.
6736
5b9ca4d4
PA
67372017-09-29 Pedro Alves <palves@redhat.com>
6738
6739 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6740 fails.
6741
94c207e0
PA
67422017-09-29 Pedro Alves <palves@redhat.com>
6743
6744 * linux-low.c (handle_extended_wait): Pass parent thread instead
6745 of process to thread_db_notice_clone.
6746 * linux-low.h (thread_db_notice_clone): Replace parent process
6747 parameter with parent thread parameter.
6748 * thread-db.c (find_one_thread): Add comment.
6749 (thread_db_notice_clone): Replace parent process parameter with
6750 parent thread parameter. Temporarily switch to the parent thread.
6751
75352e28
SDJ
67522017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6753
6754 * gdbthread.h: Include "common-gdbthread.h".
6755 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6756 "if" when validating the ptid.
6757 * remote-utils.c: Include "gdbthread.h".
6758 (prepare_resume_reply): Use "switch_to_thread".
6759 * target.c (done_accessing_memory): Likewise.
6760
ad339634
AA
67612017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6762
6763 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6764 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6765 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6766 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6767 s390x-gs-linux64-ipa.o to ipa_obj.
6768 * linux-s390-low.c (HWCAP_S390_GS): New define.
6769 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6770 New functions.
6771 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6772 (s390_arch_setup): Check for guarded-storage support and choose
6773 appropriate tdesc.
6774 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6775 init_registers_s390x_gs_linux64.
6776 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6777 enum value.
6778 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6779 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6780
cc4d742f
SM
67812017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6782
6783 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6784
f6327dcb
KB
67852017-09-21 Kevin Buettner <kevinb@redhat.com>
6786
6787 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6788 (thread_db_thread_handle): Declare.
6789 * linux-low.c (linux_target_ops): Initialize thread_handle.
6790 * server.c (handle_qxfer_threads_worker): Add support for
6791 "handle" attribute.
6792 * target.h (struct target_ops): Add new function pointer,
6793 thread_handle.
6794 (target_thread_handle): Define.
6795 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6796 field in lwp.
6797 (thread_db_thread_handle): New function.
6798
86299109
KB
67992017-09-21 Kevin Buettner <kevinb@redhat.com>
6800
6801 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6802 * linux-low.h (thread_db_notice_clone): Declare.
6803 * thread-db.c (thread_db_notice_clone): New function.
6804
f557a88a
PA
68052017-09-21 Pedro Alves <palves@redhat.com>
6806
6807 * server.c (gdb_read_memory, handle_status, process_serial_event)
6808 (handle_serial_event, handle_target_event): Adjust to
6809 set_desired_thread prototype change.
6810 * target.c (set_desired_thread): Remove 'use_general' parameter
6811 and adjust.
6812 * target.h (set_desired_thread): Remove 'use_general' parameter.
6813
223ffa71
TT
68142017-09-20 Tom Tromey <tom@tromey.com>
6815
6816 * target.c (target_terminal::terminal_state): Define.
6817 (target_terminal::init): Rename from target_terminal_init.
6818 (target_terminal::inferior): Rename from
6819 target_terminal_inferior.
6820 (target_terminal::ours): Rename from target_terminal_ours.
6821 (target_terminal::ours_for_output, target_terminal::info): New.
6822
04fd3ba9
SM
68232017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6824
6825 * server.c (accumulate_file_name_length): Remove.
6826 (emit_dll_description): Adjust to std::string change.
6827 (handle_qxfer_libraries): Use std::string to hold document.
6828
5e187554
SM
68292017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6830
6831 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6832 return type of xml_escape_text.
6833 * server.c (emit_dll_description): Likewise.
6834
1526853e
SM
68352017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6836
6837 * server.c (captured_main): Accept argument for --selftest.
6838 Update run_tests call.
6839 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6840 when registering selftests.
6841
c4dfafab
SDJ
68422017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6843
6844 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6845 instead of "VEC" for "target_desc.reg_defs".
6846 (regcache_cpy): Likewise.
6847 (registers_to_string): Likewise.
6848 (registers_from_string): Likewise.
6849 (find_regno): Likewise.
6850 (supply_regblock): Likewise.
6851 (regcache_raw_read_unsigned): Likewise.
6852 * tdesc.c (init_target_desc): Likewise.
6853 (tdesc_create_reg): Likewise.
6854 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6855 (struct target_desc) <reg_defs>: Convert to "std::vector".
6856 (target_desc): Do not initialize "reg_defs".
6857 (~target_desc): Update code to use "std::vector" instead of "VEC"
6858 for "target_desc.reg_defs".
6859 (operator==): Likewise.
6860
124aceb4
SM
68612017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6862
6863 * inferiors.h (thread_to_gdb_id): Remove.
6864 * inferiors.c (thread_to_gdb_id): Remove.
6865 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6866 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6867 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6868 Likewise.
6869 * nto-low.c (nto_fetch_registers, nto_store_registers,
6870 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6871
96cde54f
SM
68722017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6873
6874 * inferiors.h (gdb_id_to_thread_id): Remove.
6875 * inferiors.c (gdb_id_to_thread_id): Remove.
6876 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6877 removal. Move pid declaration closer to where it's used.
6878
e8ca139e
SM
68792017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6880
6881 * server.c (handle_detach): New function.
6882 (process_serial_event): Move code out, call handle_detach.
6883
f8a4e119
SM
68842017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6885
6886 * server.c (require_running): Rename to ...
6887 (require_running_or_return): ... this ...
6888 (require_running_or_break): ... and this.
6889 (handle_query, process_serial_event): Adjust.
6890
0eb0a407
SM
68912017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6892
6893 * linux-low.c (linux_set_resume_request): Remove unused
6894 variables.
6895
785922a5
SM
68962017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6897
6898 * server.c (first_thread_of): Remove.
6899 (process_serial_event): Replace usage of first_thread_of with
6900 find_any_thread_of_pid.
6901 * tracepoint.c (same_process_p): Remove.
6902 (gdb_agent_about_to_close): Replace usage of same_process_p with
6903 find_any_thread_of_pid.
6904 * linux-x86-low.c (same_process_callback): Remove.
6905 (x86_arch_setup_process_callback): Replace usage of
6906 same_process_callback with find_any_thread_of_pid.
6907 * thread-db.c (any_thread_of): Remove.
6908 (switch_to_process): Replace usage of any_thread_of with
6909 find_any_thread_of_pid.
6910 * inferiors.c (thread_pid_matches_callback): Remove.
6911 (find_thread_process): Adjust to use find_any_thread_of_pid.
6912
a059f00c
SDJ
69132017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6914
6915 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6916 with "!VEC_empty".
a059f00c 6917
cc397f3a
SDJ
69182017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6919
6920 * linux-low.c (handle_extended_wait): Use
6921 "allocate_target_description" instead of "XNEW".
6922 * linux-x86-low.c (initialize_low_arch): Likewise.
6923
22916b07
YQ
69242017-09-05 Yao Qi <yao.qi@linaro.org>
6925
6926 * configure.srv (srv_i386_regobj): Remove.
6927 (srv_amd64_regobj): Remove.
6928 (srv_regobj): Set it to "" for x86 non-linux targets.
6929 * linux-x86-tdesc.c (i386_linux_read_description):
6930 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6931 (init_registers_i386): Remove the declaration.
6932 (tdesc_i386): Remove the declaration.
6933 (lynx_i386_arch_setup): Call i386_create_target_description.
6934 * nto-x86-low.c: Likewise.
6935 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6936 [!__x86_64__]: include arch/i386.h.
6937 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6938
38602d55
YQ
69392017-09-05 Yao Qi <yao.qi@linaro.org>
6940
6941 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6942 i386/amd64-XXX-linux from it.
6943
44b886ff
YQ
69442017-09-05 Yao Qi <yao.qi@linaro.org>
6945
6946 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6947 false.
6948 (ipa_amd64_linux_regobj): Remove.
6949 (ipa_x32_linux_regobj): Remove.
6950
b4570e4b
YQ
69512017-09-05 Yao Qi <yao.qi@linaro.org>
6952
6953 * Makefile.in (arch-amd64.o): New rule.
6954 * configure.srv: Append arch-amd64.o.
6955 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6956 (get_ipa_tdesc): Call amd64_linux_read_description.
6957 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6958 and init_registers_amd64_XXX.
6959 * linux-x86-low.c (x86_linux_read_description): Call
6960 amd64_linux_read_description.
6961 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6962 (initialize_low_arch): Don't call init_registers_x32_XXX and
6963 init_registers_amd64_XXX.
6964 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6965 and tdesc_amd64_XXX.
6966 [__x86_64__] (amd64_tdesc_test): New function.
6967 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6968 and init_registers_amd64_XXX.
6969 * linux-x86-tdesc.c: Include arch/amd64.h.
6970 (xcr0_to_tdesc_idx): New function.
6971 (i386_linux_read_description): New function.
6972 (amd64_get_ipa_tdesc_idx): New function.
6973 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6974 (amd64_get_ipa_tdesc): Declare.
6975
d1f28ea2
YQ
69762017-09-05 Yao Qi <yao.qi@linaro.org>
6977
6978 * configure.srv (srv_i386_linux_xmlfiles): Remove
6979 i386/i386-XXX-linux.xml from it.
6980
25a93583
YQ
69812017-09-05 Yao Qi <yao.qi@linaro.org>
6982
6983 * configure.srv: Set srv_i386_linux_regobj empty if $development
6984 is false.
6985 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6986 initialize_low_tdesc.
6987 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6988 with #if initialize_low_tdesc.
6989 * linux-x86-tdesc-selftest.c: New file.
6990 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6991
5f035c07
YQ
69922017-09-05 Yao Qi <yao.qi@linaro.org>
6993
6994 * Makefile.in (arch-i386.o): New rule.
6995 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6996 (x86_64-*-linux*): Likewise.
6997 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6998 include arch/i386.h.
6999 (i386_linux_read_description): Remove code and call
7000 i386_create_target_description.
7001 * tdesc.c (allocate_target_description): New function.
7002 * tdesc.h (set_tdesc_architecture): Remove declaration.
7003 (set_tdesc_osabi): Likewise.
7004
0abe8a89
YQ
70052017-09-05 Yao Qi <yao.qi@linaro.org>
7006
7007 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7008 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7009 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7010 .xmltarget.
7011 * server.c (get_features_xml): Call tdesc_get_features_xml.
7012 * tdesc.c (set_tdesc_architecture): New function.
7013 (set_tdesc_osabi): New function.
7014 (tdesc_get_features_xml): New function.
7015 (tdesc_create_feature): Add an argument.
7016 * tdesc.h (struct target_desc) <features>: New field.
7017 <arch, osabi>: New field.
7018 (~target_desc): xfree features, arch, and osabi.
7019 (target_desc::oerator==): Don't compare .xmltarget.
7020 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7021 (set_tdesc_osabi): Likewise.
7022 (tdesc_get_features_xml): Likewise.
7023
0a188386
YQ
70242017-09-05 Yao Qi <yao.qi@linaro.org>
7025
7026 * linux-x86-tdesc.c: Include selftest.h.
7027 (i386_tdesc_test): New function.
7028 (initialize_low_tdesc): Call selftests::register_test.
7029 * tdesc.h: Include regdef.h.
7030 (target_desc): Override operator == and !=.
7031
f49ff000
YQ
70322017-09-05 Yao Qi <yao.qi@linaro.org>
7033
7034 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7035 (ipa_obj): Likewise.
7036 * linux-i386-ipa.c: Include common/x86-xstate.h
7037 (get_ipa_tdesc): Call i386_linux_read_description.
7038 (initialize_low_tracepoint): Don't call init_registers_XXX
7039 functions, call initialize_low_tdesc instead.
7040 * linux-x86-low.c (x86_linux_read_description): Call
7041 i386_linux_read_description.
7042 (initialize_low_arch): Don't call init_registers_i386_XXX
7043 functions, call initialize_low_tdesc.
7044 * linux-x86-tdesc.c: New file.
7045 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7046 (i386_get_ipa_tdesc_idx): Declare.
7047 (i386_get_ipa_tdesc): Declare.
7048 (initialize_low_tdesc): Declare.
7049
2b68ef2f
YQ
70502017-09-05 Yao Qi <yao.qi@linaro.org>
7051
7052 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7053 instead of 0.
7054
f7000548
YQ
70552017-09-05 Yao Qi <yao.qi@linaro.org>
7056
7057 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7058 * regcache.c (get_thread_regcache): Use VEC_length.
7059 (init_register_cache): Likewise.
7060 (regcache_cpy): Likewise.
7061 (registers_to_string): Iterate reg_defs via VEC_iterate.
7062 (find_regno): Likewise.
7063 (find_register_by_number): Use VEC_index.
7064 (register_size): Call find_register_by_number.
7065 (register_data): Call find_register_by_number.
7066 (supply_regblock): Use VEC_length.
7067 (regcache_raw_read_unsigned): Likewise.
7068 * tdesc.c (init_target_desc): Iterate reg_defs via
7069 VEC_iterate.
7070 (default_description): Update initializer.
7071 (copy_target_description): Don't update field num_registers.
7072 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7073 <num_registers>: Remove.
7074
50a421ac
SM
70752017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7076
7077 * Makefile.in (.SECONDARY): Define target.
7078
23fdd69e
SM
70792017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7080
7081 * linux-low.c (linux_wait_1): Adjust.
7082 * server.c (queue_stop_reply_callback): Adjust.
7083
0a2dde4a
SDJ
70842017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7085
7086 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7087 QEnvironmentUnset and QEnvironmentReset packets.
7088 (handle_query): Inform remote that QEnvironmentHexEncoded,
7089 QEnvironmentUnset and QEnvironmentReset are supported.
7090
6afd337d
SM
70912017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7092
7093 * inferiors.h (inferior_target_data): Rename to ...
7094 (thread_target_data): ... this.
7095 (inferior_regcache_data): Rename to ...
7096 (thread_regcache_data): ... this.
7097 (set_inferior_regcache_data): Rename to ...
7098 (set_thread_regcache_data): ... this.
7099 * inferiors.c (inferior_target_data): Rename to ...
7100 (thread_target_data): ... this.
7101 (inferior_regcache_data): Rename to ...
7102 (thread_regcache_data): ... this.
7103 (set_inferior_regcache_data): Rename to ...
7104 (set_thread_regcache_data): ... this.
7105 (free_one_thread): Update.
7106 * linux-low.h (get_thread_lwp): Update.
7107 * regcache.c (get_thread_regcache): Update.
7108 (regcache_invalidate_thread): Update.
7109 (free_register_cache_thread): Update.
7110 * win32-i386-low.c (update_debug_registers_callback): Update.
7111 (win32_get_current_dr): Update.
7112 * win32-low.c (thread_rec): Update.
7113 (delete_thread_info): Update.
7114 (continue_one_thread): Update.
7115 (suspend_one_thread): Update.
7116
a160cc46
SM
71172017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7118
7119 * inferiors.c (set_inferior_target_data): Remove.
7120 * inferiors.h (set_inferior_target_data): Remove.
7121
6d580b63
YQ
71222017-08-18 Yao Qi <yao.qi@linaro.org>
7123
7124 * Makefile.in (OBS): Add selftest.o.
7125 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7126 * configure, config.in: Re-generated.
7127 * server.c: Include common/sefltest.h.
7128 (captured_main): Handle option --selftest.
7129
f5a29eb0
YQ
71302017-08-09 Yao Qi <yao.qi@linaro.org>
7131
7132 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7133 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7134 i386-avx-mpx.o and i386-mmx.o.
7135 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7136 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7137 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7138 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7139 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7140 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7141 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7142 i386/amd64-avx-mpx.xml.
7143
57757c2f
YQ
71442017-08-09 Yao Qi <yao.qi@linaro.org>
7145
7146 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7147 and x32-avx-avx512.o.
7148 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7149 i386/x32-avx-avx512.xml.
7150
229d26fc
SM
71512017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7152
7153 * tracepoint.h (enum class fast_tpoint_collect_result): New
7154 enumeration.
7155 (fast_tracepoint_collecting): Change return type to
7156 fast_tpoint_collect_result.
7157 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7158 * linux-low.h: Include tracepoint.h.
7159 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7160 fast_tpoint_collect_result.
7161 * linux-low.c (handle_tracepoints): Adjust.
7162 (linux_fast_tracepoint_collecting): Change return type to
7163 fast_tpoint_collect_result.
7164 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7165 linux_wait_1, stuck_in_jump_pad_callback,
7166 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7167 proceed_one_lwp): Adjust to type change.
7168
2e1e43e1
YQ
71692017-07-10 Yao Qi <yao.qi@linaro.org>
7170
7171 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7172
adc764e7
YQ
71732017-06-29 Yao Qi <yao.qi@linaro.org>
7174
7175 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7176 Remove.
7177 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7178
a206891a
SM
71792017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7180
7181 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7182
9a6c7d9c
SDJ
71832017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7184
7185 * linux-low.c (linux_create_inferior): Adjust code to access the
7186 environment information via 'gdb_environ' class.
7187 * lynx-low.c (lynx_create_inferior): Likewise.
7188 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7189 (get_environ): Return a pointer to 'our_environ'.
7190 (captured_main): Initialize 'our_environ'.
7191 * server.h (get_environ): Adjust prototype.
7192 * spu-low.c (spu_create_inferior): Adjust code to access the
7193 environment information via 'gdb_environ' class.
7194
ae3e2ccf
SM
71952017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7196
7197 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7198 usage of "register" keyword.
7199
3e019bdc
SM
72002017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7201
7202 * configure: Re-generate.
7203
8465943a
SM
72042017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7205
7206 * configure: Re-generate.
7207
cf0dd6f0
SM
72082017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7209
7210 * Makefile.in (COMPILE.pre): Add "-x c++".
7211
9845682b
SDJ
72122017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7213
7214 * fork-child.c: Conditionally include <signal.h>.
7215
aefd8b33
SDJ
72162017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7217
7218 * server.c (handle_general_set): Handle new packet
7219 "QStartupWithShell".
7220 (handle_query): Add "QStartupWithShell" to the list of supported
7221 packets.
7222 (gdbserver_usage): Add help text explaining the
7223 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7224 options.
7225 (captured_main): Recognize and act upon the presence of the new
7226 CLI options.
7227
2090129c
SDJ
72282017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7229 Pedro Alves <palves@redhat.com>
7230
7231 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7232 * configure: Regenerate.
7233 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7234 "fork-inferior.o".
7235 (i[34567]86-*-lynxos*): Likewise.
7236 (spu*-*-*): Likewise.
7237 * fork-child.c: New file.
7238 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7239 and "environ.h".
7240 (linux_ptrace_fun): New function.
7241 (linux_create_inferior): Adjust function prototype to reflect
7242 change on "target.h". Adjust function code to use
7243 "fork_inferior".
7244 (linux_request_interrupt): Delete "signal_pid".
7245 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7246 (lynx_ptrace_fun): New function.
7247 (lynx_create_inferior): Adjust function prototype to reflect
7248 change on "target.h". Adjust function code to use
7249 "fork_inferior".
7250 * nto-low.c (nto_create_inferior): Adjust function prototype and
7251 code to reflect change on "target.h". Update comments.
7252 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7253 "common-terminal.h" and "environ.h".
7254 (terminal_fd): Moved to fork-child.c.
7255 (old_foreground_pgrp): Likewise.
7256 (restore_old_foreground_pgrp): Likewise.
7257 (last_status): Make it global.
7258 (last_ptid): Likewise.
7259 (our_environ): New variable.
7260 (startup_with_shell): Likewise.
7261 (program_name): Likewise.
7262 (program_argv): Rename to...
7263 (program_args): ...this.
7264 (wrapper_argv): New variable.
7265 (start_inferior): Delete function.
7266 (get_exec_wrapper): New function.
7267 (get_exec_file): Likewise.
7268 (get_environ): Likewise.
7269 (prefork_hook): Likewise.
7270 (post_fork_inferior): Likewise.
7271 (postfork_hook): Likewise.
7272 (postfork_child_hook): Likewise.
7273 (handle_v_run): Update code to deal with arguments coming from the
7274 remote host. Update calls from "start_inferior" to
7275 "create_inferior".
7276 (captured_main): Likewise. Initialize environment variable. Call
7277 "have_job_control".
7278 * server.h (post_fork_inferior): New prototype.
7279 (get_environ): Likewise.
7280 (last_status): Declare.
7281 (last_ptid): Likewise.
7282 (signal_pid): Likewise.
7283 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7284 (spu_ptrace_fun): New function.
7285 (spu_create_inferior): Adjust function prototype to reflect change
7286 on "target.h". Adjust function code to use "fork_inferior".
7287 * target.c (target_terminal_init): New function.
7288 (target_terminal_inferior): Likewise.
7289 (target_terminal_ours): Likewise.
7290 * target.h: Include <vector>.
7291 (struct target_ops) <create_inferior>: Update prototype.
7292 (create_inferior): Update macro.
7293 * utils.c (gdb_flush_out_err): New function.
7294 * win32-low.c (win32_create_inferior): Adjust function prototype
7295 and code to reflect change on "target.h".
7296
043a4934
SDJ
72972017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7298
7299 * inferiors.c (switch_to_thread): New function.
7300
15652511
SDJ
73012017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7302
7303 * Makefile.in (SFILE): Add "common/job-control.c".
7304 (OBS): Add "job-control.o".
7305
21ea5acd
SDJ
73062017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7307
7308 * Makefile: Remove "@host_makefile_frag@".
7309
e13cb306
PA
73102017-05-05 Pedro Alves <palves@redhat.com>
7311
7312 * configure: Regenerate.
7313
c94fee56
SDJ
73142017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7315
7316 * configure: Regenerate.
7317
a0ff9e1a
SM
73182017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7319
7320 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7321 software_single_step change of return type to
7322 std::vector<CORE_ADDR>.
7323 * linux-low.c (install_software_single_step_breakpoints):
7324 Likewise.
7325 * linux-low.h (install_software_single_step_breakpoints):
7326 Likewise.
7327
be628ab8
SDJ
73282017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7329
7330 * remote-utils.c: Include "gdb_termios.h" instead of
7331 "terminal.h".
7332 * terminal.h: Delete file.
7333
7c5ded6a
SDJ
73342017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7335
7336 * server.c: Include <vector>.
7337 <program_argv, wrapper_argv>: Convert to std::vector.
7338 (start_inferior): Rewrite function to use C++.
7339 (handle_v_run): Likewise. Update code that calculates the argv
7340 based on the vRun packet; use C++.
7341 (captured_main): Likewise.
7342
436252de
SM
73432017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7344
7345 * server.c (handle_v_cont): Initialize thread_resume::thread
7346 with null_ptid.
7347
9bf2a700
PA
73482017-04-05 Pedro Alves <palves@redhat.com>
7349
7350 * configure: Regenerate.
7351
a121b7c1
PA
73522017-04-05 Pedro Alves <palves@redhat.com>
7353
7354 * gdbreplay.c (sync_error): Constify.
7355 * linux-x86-low.c (push_opcode): Constify.
7356
21c8a587
PA
73572017-04-05 Pedro Alves <palves@redhat.com>
7358
7359 * win32-low.c (get_child_debug_event)
7360 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7361 Report TARGET_WAITKIND_SPURIOUS instead.
7362
fb32b4f7
PA
73632017-04-05 Pedro Alves <palves@redhat.com>
7364
e79be6e5
SM
7365 * remote-utils.c (remote_prepare, remote_open): Constify.
7366 * remote-utils.h (remote_prepare, remote_open): Constify.
7367 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7368
65dd1e59
SM
73692017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7370
7371 * Makefile.in (clean): Clear .deps.
7372
8fa5b777
SM
73732017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7374
7375 * .gitignore: Remove generated files, replace with wildcard.
7376 * (clean): Replace removal of generated files with wildcard.
7377 (version.c): Replace with...
7378 (version-generated.c): ...this.
7379 (xml-builtin.c): Replace with...
7380 (xml-builtin-generated.c): ...this.
7381 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7382 (%.c: *regformats*): Replace with...
7383 (%-generated.c: *regformats*): ...this.
7384
a12e714b
MF
73852017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7386
7387 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7388 (xtensa_fill_gregset): Call collect_register_by_name for
7389 threadptr register.
7390 (xtensa_store_gregset): Call supply_register_by_name for
7391 threadptr register.
7392
1a09b50a
MF
73932017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7394
7395 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7396 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7397 (xtensa_store_gregset): Call supply_register for all registers in
7398 a0_regnum..a0_regnum + C0_NREGS range.
7399
1a01e7c6
SM
74002017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7401
7402 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7403 (ax-ipa.o: ax.c): Remove.
7404 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7405 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7406 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7407 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7408 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7409
36bc18a8
SM
74102017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7411
7412 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7413 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7414 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7415 (errors-ipa.o: ../common/errors.c): Remove.
7416 (format-ipa.o: ../common/format.c): Remove.
7417 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7418
a8ebe3d5
SM
74192017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7420
7421 * Makefile.in (%-ipa.o: %.c): New rule.
7422 (tracepoint-ipa.o: tracepoint.c): Remove.
7423 (utils-ipa.o: utils.c): Remove.
7424 (remote-utils-ipa.o: remote-utils.c): Remove.
7425 (regcache-ipa.o: regcache.c): Remove.
7426 (i386-linux-ipa.o: i386-linux.c): Remove.
7427 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7428 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7429 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7430 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7431 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7432 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7433 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7434 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7435 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7436 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7437 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7438 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7439 (aarch64-ipa.o: aarch64.c): Remove.
7440 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7441 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7442 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7443 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7444 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7445 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7446 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7447 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7448 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7449 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7450 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7451 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7452 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7453 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7454 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7455 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7456 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7457 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7458 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7459 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7460 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7461 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7462 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7463 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7464 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7465 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7466 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7467 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7468 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7469 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7470 (tdesc-ipa.o: tdesc.c): Remove.
7471 (x32-linux-ipa.o: x32-linux.c): Remove.
7472 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7473 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7474
50cfacb7
SM
74752017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7476
7477 * Makefile.in (%.o: ../arch/%.c): New rule.
7478 (arm.o: ../arch/arm.c): Remove.
7479 (arm-linux.o: ../arch/arm-linux.c): Remove.
7480 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7481 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7482
c5a22423
SM
74832017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7484
7485 * Makefile.in (%.o: ../nat/%.c): New rule.
7486 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7487 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7488 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7489 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7490 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7491 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7492 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7493 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7494 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7495 (linux-personality.o: ../nat/linux-personality.c): Remove.
7496 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7497 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7498 (x86-linux.o: ../nat/x86-linux.c): Remove.
7499 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7500 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7501
6bda016b
SM
75022017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7503
7504 * Makefile.in (%.o: ../common/%.c): New rule.
7505 (signals.o: ../common/signals.c): Remove.
7506 (print-utils.o: ../common/print-utils.c): Remove.
7507 (rsp-low.o: ../common/rsp-low.c): Remove.
7508 (common-utils.o: ../common/common-utils.c): Remove.
7509 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7510 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7511 (vec.o: ../common/vec.c): Remove.
7512 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7513 (xml-utils.o: ../common/xml-utils.c): Remove.
7514 (ptid.o: ../common/ptid.c): Remove.
7515 (buffer.o: ../common/buffer.c): Remove.
7516 (format.o: ../common/format.c): Remove.
7517 (filestuff.o: ../common/filestuff.c): Remove.
7518 (agent.o: ../common/agent.c): Remove.
7519 (errors.o: ../common/errors.c): Remove.
7520 (environ.o: ../common/environ.c): Remove.
7521 (common-debug.o: ../common/common-debug.c): Remove.
7522 (cleanups.o: ../common/cleanups.c): Remove.
7523 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7524 (fileio.o: ../common/fileio.c): Remove.
7525 (common-regcache.o: ../common/common-regcache.c): Remove.
7526 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7527 (new-op.o: ../common/new-op.c): Remove.
7528 (btrace-common.o: ../common/btrace-common.c): Remove.
7529
21122961
SM
75302017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7531
7532 * Makefile.in (%.o: ../target/%.c): New rule.
7533 (waitstatus.o: ../target/waitstatus.c): Remove.
7534
c362e621
SM
75352017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7536
7537 * Makefile.in
7538 (%.c: ../regformats/%.dat,
7539 (%.c: ../regformats/arm/%.dat,
7540 (%.c: ../regformats/i386/%.dat,
7541 (%.c: ../regformats/rs6000/%.dat): New rules.
7542 (aarch64.c): Remove.
7543 (reg-arm.c): Remove.
7544 (arm-with-iwmmxt.c): Remove.
7545 (arm-with-vfpv2.c): Remove.
7546 (arm-with-vfpv3.c): Remove.
7547 (arm-with-neon.c): Remove.
7548 (reg-bfin.c): Remove.
7549 (reg-cris.c): Remove.
7550 (reg-crisv32.c): Remove.
7551 (i386.c): Remove.
7552 (i386-linux.c): Remove.
7553 (i386-avx.c): Remove.
7554 (i386-avx-linux.c): Remove.
7555 (i386-avx-avx512.c): Remove.
7556 (i386-avx-avx512-linux.c): Remove.
7557 (i386-mpx.c): Remove.
7558 (i386-mpx-linux.c): Remove.
7559 (i386-avx-mpx-avx512-pku.c): Remove.
7560 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7561 (i386-avx-mpx.c): Remove.
7562 (i386-avx-mpx-linux.c): Remove.
7563 (i386-mmx.c): Remove.
7564 (i386-mmx-linux.c): Remove.
7565 (reg-ia64.c): Remove.
7566 (reg-m32r.c): Remove.
7567 (reg-m68k.c): Remove.
7568 (reg-cf.c): Remove.
7569 (mips-linux.c): Remove.
7570 (mips-dsp-linux.c): Remove.
7571 (mips64-linux.c): Remove.
7572 (mips64-dsp-linux.c): Remove.
7573 (nios2-linux.c): Remove.
7574 (powerpc-32.c): Remove.
7575 (powerpc-32l.c): Remove.
7576 (powerpc-altivec32l.c): Remove.
7577 (powerpc-cell32l.c): Remove.
7578 (powerpc-vsx32l.c): Remove.
7579 (powerpc-isa205-32l.c): Remove.
7580 (powerpc-isa205-altivec32l.c): Remove.
7581 (powerpc-isa205-vsx32l.c): Remove.
7582 (powerpc-e500l.c): Remove.
7583 (powerpc-64l.c): Remove.
7584 (powerpc-altivec64l.c): Remove.
7585 (powerpc-cell64l.c): Remove.
7586 (powerpc-vsx64l.c): Remove.
7587 (powerpc-isa205-64l.c): Remove.
7588 (powerpc-isa205-altivec64l.c): Remove.
7589 (powerpc-isa205-vsx64l.c): Remove.
7590 (s390-linux32.c): Remove.
7591 (s390-linux32v1.c): Remove.
7592 (s390-linux32v2.c): Remove.
7593 (s390-linux64.c): Remove.
7594 (s390-linux64v1.c): Remove.
7595 (s390-linux64v2.c): Remove.
7596 (s390-te-linux64.c): Remove.
7597 (s390-vx-linux64.c): Remove.
7598 (s390-tevx-linux64.c): Remove.
7599 (s390x-linux64.c): Remove.
7600 (s390x-linux64v1.c): Remove.
7601 (s390x-linux64v2.c): Remove.
7602 (s390x-te-linux64.c): Remove.
7603 (s390x-vx-linux64.c): Remove.
7604 (s390x-tevx-linux64.c): Remove.
7605 (tic6x-c64xp-linux.c): Remove.
7606 (tic6x-c64x-linux.c): Remove.
7607 (tic6x-c62x-linux.c): Remove.
7608 (reg-sh.c): Remove.
7609 (reg-sparc64.c): Remove.
7610 (reg-spu.c): Remove.
7611 (amd64.c): Remove.
7612 (amd64-linux.c): Remove.
7613 (amd64-avx.c): Remove.
7614 (amd64-avx-linux.c): Remove.
7615 (amd64-avx-avx512.c): Remove.
7616 (amd64-avx-avx512-linux.c): Remove.
7617 (amd64-mpx.c): Remove.
7618 (amd64-mpx-linux.c): Remove.
7619 (amd64-avx-mpx-avx512-pku.c): Remove.
7620 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7621 (amd64-avx-mpx.c): Remove.
7622 (amd64-avx-mpx-linux.c): Remove.
7623 (x32.c): Remove.
7624 (x32-linux.c): Remove.
7625 (x32-avx.c): Remove.
7626 (x32-avx-linux.c): Remove.
7627 (x32-avx-avx512.c): Remove.
7628 (x32-avx-avx512-linux.c): Remove.
7629 (reg-xtensa.c): Remove.
7630 (reg-tilegx.c): Remove.
7631 (reg-tilegx32.c): Remove.
7632
1672e0d9
SDJ
76332017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7634
7635 * Makefile.in (SFILES): Add "common/environ.c".
7636 (OBJS): Add "common/environ.h".
7637
239b6d10
WT
76382017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7639
7640 * configure.ac: Check if the fs_base and gs_base members of
7641 `struct user_regs_struct' exist.
7642 * config.in: Regenerated.
7643 * configure: Likewise.
7644
694b382c
AT
76452017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7646
7647 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7648 target_read_memory.
7649 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7650 (get_next_pcs_syscall_next_pc): Likewise.
7651
7dc53023
LM
76522016-12-23 Luis Machado <lgustavo@codesourcery.com>
7653
7654 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7655 * nto-x86-low.c: Likewise.
7656
ad02e4fe
SM
76572016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7658
7659 * Makefile.in: Include disable-implicit-rules.mk.
7660
dcb07cfa
PA
76612016-11-23 Pedro Alves <palves@redhat.com>
7662
7663 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7664 (debug_vprintf): Use std::chrono::steady_clock instead of
7665 gettimeofday. Use '.' instead of ':'.
7666 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7667 (get_timestamp): Use std::chrono::steady_clock instead of
7668 gettimeofday.
7669
8629c02c
SM
76702016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7671
7672 * Makefile.in: Fix whitespace formatting.
7673
b593ecca
SM
76742016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7675
7676 * Makefile.in (SFILES, OBS): Flatten list and order
7677 alphabetically.
7678
9986ba08
PA
76792016-11-23 Pedro Alves <palves@redhat.com>
7680
7681 * event-loop.c (handle_file_event): Use warning.
7682 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7683 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7684 Use warning.
7685
4eefa7bc
PA
76862016-11-23 Pedro Alves <palves@redhat.com>
7687
7688 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7689 output.
7690 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7691 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7692 debug_printf and debug_flush for debug output.
7693 * server.c (handle_general_set): Likewise.
7694 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7695 output.
7696
5443506e
SM
76972016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7698
7699 * Makefile.in (.c.o): Replace rule with ...
7700 (%.o: %.c): ... this one.
7701
3b165252
SM
77022016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7703
7704 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7705 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7706 make.
7707 * configure.ac: Remove checks for the make program.
7708 * configure: Re-generate.
7709
0bcda685
PA
77102016-10-28 Pedro Alves <palves@redhat.com>
7711
7712 * Makefile.in (CXX_DIALECT): Get from configure.
7713 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7714 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7715 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7716 * config.in: Regenerate.
7717 * configure: Regenerate.
7718
c3805894
YQ
77192016-10-27 Yao Qi <yao.qi@linaro.org>
7720
7721 * linux-low.c (linux_supports_range_stepping): Return true if
7722 can_software_single_step return true.
7723
89342618
YQ
77242016-10-27 Yao Qi <yao.qi@linaro.org>
7725
7726 * inferiors.c (find_inferior_in_random): New function.
7727 * inferiors.h (find_inferior_in_random): Declare.
7728 * linux-low.c (linux_wait_for_event_filtered): Call
7729 find_inferior_in_random instead of find_inferior.
7730
e3652c84
YQ
77312016-10-27 Yao Qi <yao.qi@linaro.org>
7732
7733 * linux-low.c (linux_wait_1): If single-step breakpoints are
7734 inserted, remove them.
7735
5a04c4cf
PA
77362016-10-26 Pedro Alves <palves@redhat.com>
7737
7738 * linux-low.c (handle_extended_wait): Link parent/child fork
7739 threads.
7740 (linux_wait_1): Unlink them.
7741 (linux_set_resume_request): Ignore resume requests for
7742 already-resumed and unhandled fork child threads.
7743 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7744 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7745 New functions.
7746 (handle_v_requests) <vCont>: Don't call require_running.
7747 * server.h (in_queued_stop_replies): New declaration.
7748
cb93dc7f
YQ
77492016-10-24 Yao Qi <yao.qi@linaro.org>
7750
7751 PR server/20733
7752 * linux-aarch64-low.c (append_insns): Cast the return value to
7753 'uint32_t *'.
7754
a1078bea
YQ
77552016-10-10 Yao Qi <yao.qi@linaro.org>
7756
7757 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7758
1fb77080
SDJ
77592016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7760
7761 * target.c (target_supports_multi_process): New function, moved
7762 from...
7763 * target.h (target_supports_multi_process): ... here. Remove
7764 macro.
7765
39b5a3b9
TT
77662016-10-05 Tom Tromey <tom@tromey.com>
7767
7768 PR remote/20655:
7769 * tracepoint.c (handle_tracepoint_bkpts): Check
7770 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7771
c1d0b70a
YQ
77722016-10-05 Yao Qi <yao.qi@linaro.org>
7773
7774 * configure.srv: Update the path of arm-*.xml files.
7775
0a69eedb
YQ
77762016-10-05 Terry Guo <terry.guo@arm.com>
7777 Yao Qi <yao.qi@linaro.org>
7778
7779 * Makefile.in: Adjust the path of rules.
7780 * configure.srv: Update the path of xml files.
7781 * regformats/arm-with-iwmmxt.dat: Regenerated.
7782 * regformats/arm-with-neon.dat: Likewise.
7783 * regformats/arm-with-vfpv2.dat: Likewise.
7784 * regformats/arm-with-vfpv3.dat Likewise.
7785
17e16485
YQ
77862016-09-30 Yao Qi <yao.qi@linaro.org>
7787
7788 PR gdbserver/20627
7789 * target.c (target_stop_and_wait): Don't call
7790 target_continue_no_signal, use resume_stop instead.
7791
edeeb602
YQ
77922016-09-26 Yao Qi <yao.qi@linaro.org>
7793
7794 * linux-low.c (linux_wait_1): Call debug_exit.
7795
503b1c39
PA
77962016-09-23 Pedro Alves <palves@redhat.com>
7797
7798 * Makefile.in (SFILES): Add common/new-op.c.
7799 (OBS): Add common/new-op.o.
7800 (new-op.o): New rule.
7801
74172ecf
SM
78022016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7803
7804 * .gitinore: Ignore more files.
7805
fc6cda2e
YQ
78062016-09-21 Yao Qi <yao.qi@linaro.org>
7807
7808 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7809 23.
7810
bc1e6c81
SDJ
78112016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7812
7813 * server.c (start_inferior): Call target_mourn_inferior instead of
7814 mourn_inferior; pass ptid_t argument to it.
7815 (resume): Likewise.
7816 (handle_target_event): Likewise.
7817 * target.c (target_mourn_inferior): New function.
7818 * target.h (mourn_inferior): Delete macro.
7819
0e00e962
AA
78202016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7821
7822 * linux-low.c (lwp_is_stepping): New function.
7823
1d8cb77d
CL
78242016-09-06 Carl Love <cel@us.ibm.com>
7825
7826 * server.c (start_inferior): Fixed comment, requested comment change
7827 didn't get updated correctly. Removed reference to ptrace () call as
7828 it is only true on Linux systems.
7829
7313bced
CL
78302016-09-06 Carl Love <cel@us.ibm.com>
7831
7832 * server.c (start_inferior): Do not call
7833 function target_post_create_inferior () if the
7834 inferior process has already exited.
7835
cf6de44d
PA
78362016-09-05 Pedro Alves <palves@redhat.com>
7837
7838 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7839 (COMPILE.pre, CC_LD): Use CXX directly.
7840 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7841 * acinclude.m4: Don't include build-with-cxx.m4.
7842 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7843 * configure: Regenerate.
7844
c1da6748
AT
78452016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7846
7847 PR gdb/19495
7848 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7849 call writing data to own_buf.
7850
f2b9e3df
SDJ
78512016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7852
7853 * target.c (mywait): Call target_wait instead of
7854 the_target->wait.
7855 (target_wait): New function.
7856
049a8570
SDJ
78572016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7858
7859 * server.c (start_inferior): New variable 'ptid'. Replace calls
7860 to the_target->resume by target_continue{,_no_signal}, depending
7861 on the case.
7862 * target.c (target_stop_and_wait): Call target_continue_no_signal
7863 instead of the_target->resume.
7864 (target_continue): New function.
7865
3aa5cfa0
AT
78662016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7867
7868 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7869
754653a7
AZ
78702016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7871
7872 PR server/20491
7873 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7874 ps_prochandle.
7875 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7876 * linux-arm-low.c (ps_get_thread_area): Likewise.
7877 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7878 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7879 * linux-mips-low.c (ps_get_thread_area): Likewise.
7880 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7881 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7882 * linux-x86-low.c (ps_get_thread_area): Likewise.
7883 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7884
ed036b40
PA
78852016-08-19 Pedro Alves <palves@redhat.com>
7886
7887 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7888
c8ef42ee
PA
78892016-08-19 Pedro Alves <palves@redhat.com>
7890
7891 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7892 comment. Use memcpy instead of casting through unsigned long.
7893
9c235a72
PA
78942016-08-19 Pedro Alves <palves@redhat.com>
7895
7896 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7897 allocating around 0x80000000.
7898
201506da
PA
78992016-08-19 Pedro Alves <palves@redhat.com>
7900
7901 PR gdb/20415
7902 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7903 (x32-avx512-linux-ipa.o): New rules.
7904 * configure.ac (x86_64-*-linux*): New x32 check.
7905 * configure.srv (ipa_x32_linux_regobj): New.
7906 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7907 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7908 descriptions.
7909 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7910 descriptions.
7911 * configure: Regenerate.
7912
f348d89a
PA
79132016-08-09 Pedro Alves <palves@redhat.com>
7914
7915 PR gdb/18653
7916 * Makefile.in (OBS): Add signals-state-save-restore.o.
7917 (signals-state-save-restore.o): New rule.
7918 * config.in: Regenerate.
7919 * configure: Regenerate.
7920 * linux-low.c: Include "signals-state-save-restore.h".
7921 (linux_create_inferior): Call
7922 restore_original_signals_state.
7923 * server.c: Include "dispositions-save-restore.h".
7924 (captured_main): Call save_original_signals_state.
7925
1baf5149
PA
79262016-08-05 Pedro Alves <palves@redhat.com>
7927
7928 * configure: Regenerate.
7929
fcd4a73d
YQ
79302016-08-04 Yao Qi <yao.qi@linaro.org>
7931
7932 * linux-low.c (regsets_fetch_inferior_registers): Check
7933 errno is ESRCH or not.
7934
979659d0
YQ
79352016-08-02 Yao Qi <yao.qi@linaro.org>
7936
7937 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7938 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7939 (thread_db_load_search): Update.
7940 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7941 td_ta_set_event and td_ta_event_getmsg.
7942
6598661d
PA
79432016-07-26 Pedro Alves <palves@redhat.com>
7944
7945 PR server/20414
7946 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7947 of unsigned long for 64-bit registers and use uint32_t instead of
7948 unsigned int for 32-bit registers.
7949
9cf12d57
PA
79502016-07-26 Pedro Alves <palves@redhat.com>
7951
7952 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7953 to 'ptrace'.
7954
305450ed
TT
79552016-07-21 Tom Tromey <tom@tromey.com>
7956
7957 * configure: Rebuild.
7958
2583da7c
YQ
79592016-07-21 Yao Qi <yao.qi@linaro.org>
7960
7961 * mem-break.c (find_gdb_breakpoint): Cast bp to
7962 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7963
21536b36
YQ
79642016-07-21 Yao Qi <yao.qi@linaro.org>
7965
7966 * server.c (handle_v_requests): Support s and S actions
7967 if target_supports_software_single_step return true.
7968
8901d193
YQ
79692016-07-21 Yao Qi <yao.qi@linaro.org>
7970
7971 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7972 is resume_step, call maybe_hw_step.
7973 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7974 and unstop them.
7975 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7976 breakpoints or not.
7977 (proceed_one_lwp): If resume request is resume_step, install
7978 reinsert breakpoints and call maybe_hw_step.
7979
0e9a339e
YQ
79802016-07-21 Yao Qi <yao.qi@linaro.org>
7981
7982 * linux-low.c (proceed_one_lwp): Declare.
7983 (linux_resume_one_thread): Remove local variable 'step'.
7984 Lift code enqueue signal. Call proceed_one_lwp instead of
7985 linux_resume_one_lwp.
7986
4281b351
YQ
79872016-07-21 Yao Qi <yao.qi@linaro.org>
7988
7989 * linux-low.c (linux_resume_one_thread): Call
7990 enqueue_pending_signal.
7991
984a2c04
YQ
79922016-07-21 Yao Qi <yao.qi@linaro.org>
7993
7994 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7995 * inferiors.c (do_restore_current_thread_cleanup): New function.
7996 (make_cleanup_restore_current_thread): Likewise.
7997 * linux-low.c (install_software_single_step_breakpoints): Call
7998 make_cleanup_restore_current_thread. Switch current_thread to
7999 thread.
8000
bec903c9
YQ
80012016-07-21 Yao Qi <yao.qi@linaro.org>
8002
8003 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8004 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8005 (clone_one_breakpoint): Likewise.
8006 (delete_reinsert_breakpoints): Change parameter to thread.
8007 Callers updated.
8008 (has_reinsert_breakpoints): Likewise.
8009 (uninsert_reinsert_breakpoints): Likewise.
8010 (reinsert_reinsert_breakpoints): Likewise.
8011 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8012 (delete_reinsert_breakpoints): Likewise.
8013 (reinsert_reinsert_breakpoints): Likewise.
8014 (uninsert_reinsert_breakpoints): Likewise.
8015 (has_reinsert_breakpoints): Likewise.
8016
63c40ec7
YQ
80172016-07-21 Yao Qi <yao.qi@linaro.org>
8018
8019 * inferiors.c (get_thread_process): Make parameter const.
8020 * inferiors.h (get_thread_process): Update declaration.
8021 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8022 Add new parameters child_thread and parent_thread. Callers
8023 updated.
8024 * mem-break.h (clone_all_breakpoints): Update declaration.
8025
9aa76cd0
YQ
80262016-07-21 Yao Qi <yao.qi@linaro.org>
8027
8028 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8029 <command_list, handler>: Remove.
8030 (struct gdb_breakpoint): New.
8031 (struct other_breakpoint): New.
8032 (struct reinsert_breakpoint): New.
8033 (is_gdb_breakpoint): New function.
8034 (any_persistent_commands): Update command_list if
8035 is_gdb_breakpoint returns true.
8036 (set_breakpoint): Create breakpoints according to their types.
8037 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8038 (set_gdb_breakpoint_1): Likewise.
8039 (set_gdb_breakpoint): Likewise.
8040 (clear_breakpoint_conditions): Change parameter type to
8041 'struct gdb_breakpoint *'.
8042 (clear_breakpoint_commands): Likewise.
8043 (clear_breakpoint_conditions_and_commands): Likewise.
8044 (add_condition_to_breakpoint): Likewise.
8045 (add_breakpoint_condition): Likewise.
8046 (add_commands_to_breakpoint): Likewise.
8047 (check_breakpoints): Check other_breakpoint.
8048 (clone_one_breakpoint): Clone breakpopint according to its type.
8049 * mem-break.h (struct gdb_breakpoint): Declare.
8050 (set_gdb_breakpoint): Update declaration.
8051 (clear_breakpoint_conditions_and_commands): Likewise.
8052 (add_breakpoint_condition): Likewise.
8053 (add_breakpoint_commands): Likewise.
8054 * server.c (process_point_options): Change parameter type to
8055 'struct gdb_breakpoint *'.
8056
811f8301
YQ
80572016-07-21 Yao Qi <yao.qi@linaro.org>
8058
8059 * mem-break.c (set_breakpoint_at): Rename it to ...
8060 (set_breakpoint_type_at): ... it.
8061 (set_breakpoint_at): Call set_breakpoint_type_at.
8062 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8063 * mem-break.h (set_breakpoint_at): Update comments.
8064
b1c51e36
CLT
80652016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8066
8067 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8068 to buf parameter.
8069 (nios2_store_gregset): Likewise.
8070
ced2dffb
PA
80712016-07-01 Pedro Alves <palves@redhat.com>
8072 Antoine Tremblay <antoine.tremblay@ericsson.com>
8073
8074 * linux-low.c: Change interface to take the target lwp_info
8075 pointer directly and return void. Handle detaching from a zombie
8076 thread.
8077 (linux_detach_lwp_callback): New function.
8078 (linux_detach): Detach from the leader thread after detaching from
8079 the clone threads.
8080
2ac09a5b
YQ
80812016-06-28 Yao Qi <yao.qi@linaro.org>
8082
8083 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8084 for variable new_offset.
8085 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8086 (aarch64_ftrace_insn_reloc_cb): Likewise.
8087 (aarch64_ftrace_insn_reloc_tb): Likewise.
8088 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8089 PRIx64 instead of PRIx32.
8090
79e7fd4f
YQ
80912016-06-28 Yao Qi <yao.qi@linaro.org>
8092
8093 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8094 (the_low_target): Install arm_get_syscall_trapinfo.
8095
061fc021
YQ
80962016-06-28 Yao Qi <yao.qi@linaro.org>
8097
8098 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8099 function.
8100 (the_low_target): Install aarch64_get_syscall_trapinfo.
8101
4cc32bec
YQ
81022016-06-28 Yao Qi <yao.qi@linaro.org>
8103
8104 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8105 Callers updated.
8106 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8107 Remove parameter sysno.
8108 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8109 sysret.
8110
782c1122
AA
81112016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8112
8113 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8114 (s390_emit_ne_goto): Likewise.
8115 (s390_emit_lt_goto): Likewise.
8116 (s390_emit_le_goto): Likewise.
8117 (s390_emit_gt_goto): Likewise.
8118 (s390_emit_ge_goto): Likewise.
8119 (s390x_emit_eq_goto): Likewise.
8120 (s390x_emit_ne_goto): Likewise.
8121 (s390x_emit_lt_goto): Likewise.
8122 (s390x_emit_le_goto): Likewise.
8123 (s390x_emit_gt_goto): Likewise.
8124 (s390x_emit_ge_goto): Likewise.
8125 (s390_emit_ops_impl): Mark variable static.
8126 (s390x_emit_ops): Likewise.
8127
2e7b624b
YQ
81282016-06-17 Yao Qi <yao.qi@linaro.org>
8129
8130 * linux-low.c (handle_extended_wait): Call
8131 uninsert_reinsert_breakpoints for the parent process. Remove
8132 reinsert breakpoints from the child process. Reinsert them to
8133 the parent process when vfork is done.
8134 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8135 (reinsert_reinsert_breakpoints): New function.
8136 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8137 (reinsert_reinsert_breakpoints): Declare.
8138
8a81c5d7
YQ
81392016-06-17 Yao Qi <yao.qi@linaro.org>
8140
8141 * linux-low.c (handle_extended_wait): If the parent is doing
8142 step-over, remove the reinsert breakpoints from the forked child.
8143
f50bf8e5
YQ
81442016-06-17 Yao Qi <yao.qi@linaro.org>
8145
8146 * linux-low.c (unsuspend_all_lwps): Declare.
8147 (linux_low_filter_event): If thread exited, call finish_step_over.
8148 If step-over is finished, unsuspend other threads.
8149
8376a3cb
YQ
81502016-06-17 Yao Qi <yao.qi@linaro.org>
8151
8152 * linux-low.c (linux_resume_one_lwp_throw): Assert
8153 has_reinsert_breakpoints returns false.
8154 * mem-break.c (delete_disabled_breakpoints): Assert
8155 bp type isn't reinsert_breakpoint.
8156
f79b145d
YQ
81572016-06-17 Yao Qi <yao.qi@linaro.org>
8158
8159 * linux-low.c (maybe_hw_step): New function.
8160 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8161 (finish_step_over): Switch current_thread to lwp temporarily,
8162 and assert has_reinsert_breakpoints returns true.
8163 (proceed_one_lwp): Call maybe_hw_step.
8164 * mem-break.c (has_reinsert_breakpoints): New function.
8165 * mem-break.h (has_reinsert_breakpoints): Declare.
8166
0ae534d2
JT
81672016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8168
8169 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8170
fcdad592
YQ
81712016-05-17 Yao Qi <yao.qi@linaro.org>
8172
8173 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8174 instead of find_inferior.
8175
9e784964
YQ
81762016-05-05 Yao Qi <yao.qi@linaro.org>
8177
8178 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8179 Initialize res to zero.
8180
cf2ebb6e
YQ
81812016-05-05 Yao Qi <yao.qi@linaro.org>
8182
8183 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8184 to uint32_t.
8185
c1aebf87
UW
81862016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8187
8188 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8189 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8190 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8191
35fd2deb 81922016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8193 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8194
8195 * tracepoint.c (write_inferior_int8): New function.
8196 (cmd_qtenable_disable): Write enable flag using
8197 write_inferior_int8.
8198
484b3c32
YQ
81992016-04-25 Yao Qi <yao.qi@linaro.org>
8200
8201 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8202 (need_step_over_p): Return zero if the LWP has pending signals
8203 can be delivered on software single step target.
8204
85ba7d86
YQ
82052016-04-25 Yao Qi <yao.qi@linaro.org>
8206
8207 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8208 return instead of error.
8209
3539aa13
YQ
82102016-04-22 Yao Qi <yao.qi@linaro.org>
8211
8212 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8213 to 23.
8214
5b061e98
YQ
82152016-04-22 Yao Qi <yao.qi@linaro.org>
8216
8217 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8218 signal when stepping over breakpoint with software single
8219 step.
8220
3451269c
PA
82212016-04-21 Pedro Alves <palves@redhat.com>
8222
8223 * linux-s390-low.c (s390_collect_ptrace_register)
8224 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8225 add casts.
8226 (s390_check_regset): Use void * instead of gdb_byte *.
8227
a2358508
PA
82282016-04-20 Pedro Alves <palves@redhat.com>
8229
8230 * configure: Renegerate.
8231
6885166d
YQ
82322016-04-20 Yao Qi <yao.qi@linaro.org>
8233
8234 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8235 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8236 number 16.
8237 (arm_store_gregset): Likewise.
8238
2b863f51
WT
82392016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8240
8241 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8242 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8243 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8244 (amd64-avx-mpx-linux.c): New rules.
8245 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8246 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8247 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8248 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8249 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8250 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8251 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8252 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8253 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8254 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8255 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8256 * linux-x86-low.c (x86_linux_read_description): Add case for
8257 X86_XSTATE_AVX_MPX_MASK.
8258 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8259 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8260 init_registers_i386_avx_mpx_linux.
8261 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8262 (initialize_low_tracepoint): Call
8263 init_registers_i386_avx_mpx_linux.
8264 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8265 (initialize_low_tracepoint): Call
8266 init_registers_amd64_avx_mpx_linux.
8267 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8268 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8269 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8270 declarations.
8271
9b30624b
PA
82722016-04-18 Pedro Alves <palves@redhat.com>
8273
8274 * configure: Regenerate.
8275
45e3745e
AT
82762016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8277
8278 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8279 (aarch64_emit_sub): Likewise.
8280
2afc13ff
PA
82812016-04-12 Pedro Alves <palves@redhat.com>
8282
8283 * utils.c (prepare_to_throw_exception): Delete.
8284
6e774b13
SM
82852016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8286
8287 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8288
4dca19f8
MK
82892016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8290
8291 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8292
d0a9981f
MK
82932016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8294
8295 * linux-aarch64-ipa.c: Add <elf.h> include.
8296 * linux-ppc-ipa.c: Add <elf.h> include.
8297 * linux-s390-ipa.c: Add <elf.h> include.
8298
252db07e
MK
82992016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8300
8301 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8302 (get_raw_reg_ptr): Likewise.
8303 (get_trace_state_variable_value_ptr): Likewise.
8304 (set_trace_state_variable_value_ptr): Likewise.
8305 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8306 char *.
8307
14e2b6d9
MK
83082016-03-31 Wei-cheng Wang <cole945@gmail.com>
8309 Marcin Kościelnicki <koriakin@0x04.net>
8310
8311 PR/17221
8312 * linux-ppc-low.c (emit_insns): New function.
8313 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8314 (ppc_emit_prologue): New function.
8315 (ppc_emit_epilogue): New function.
8316 (ppc_emit_add): New function.
8317 (ppc_emit_sub): New function.
8318 (ppc_emit_mul): New function.
8319 (ppc_emit_lsh): New function.
8320 (ppc_emit_rsh_signed): New function.
8321 (ppc_emit_rsh_unsigned): New function.
8322 (ppc_emit_ext): New function.
8323 (ppc_emit_zero_ext): New function.
8324 (ppc_emit_log_not): New function.
8325 (ppc_emit_bit_and): New function.
8326 (ppc_emit_bit_or): New function.
8327 (ppc_emit_bit_xor): New function.
8328 (ppc_emit_bit_not): New function.
8329 (ppc_emit_equal): New function.
8330 (ppc_emit_less_signed): New function.
8331 (ppc_emit_less_unsigned): New function.
8332 (ppc_emit_ref): New function.
8333 (ppc_emit_const): New function.
8334 (ppc_emit_reg): New function.
8335 (ppc_emit_pop): New function.
8336 (ppc_emit_stack_flush): New function.
8337 (ppc_emit_swap): New function.
8338 (ppc_emit_stack_adjust): New function.
8339 (ppc_emit_call): New function.
8340 (ppc_emit_int_call_1): New function.
8341 (ppc_emit_void_call_2): New function.
8342 (ppc_emit_if_goto): New function.
8343 (ppc_emit_goto): New function.
8344 (ppc_emit_eq_goto): New function.
8345 (ppc_emit_ne_goto): New function.
8346 (ppc_emit_lt_goto): New function.
8347 (ppc_emit_le_goto): New function.
8348 (ppc_emit_gt_goto): New function.
8349 (ppc_emit_ge_goto): New function.
8350 (ppc_write_goto_address): New function.
8351 (ppc_emit_ops_impl): New static variable.
8352 (ppc64v1_emit_prologue): New function.
8353 (ppc64v2_emit_prologue): New function.
8354 (ppc64_emit_epilogue): New function.
8355 (ppc64_emit_add): New function.
8356 (ppc64_emit_sub): New function.
8357 (ppc64_emit_mul): New function.
8358 (ppc64_emit_lsh): New function.
8359 (ppc64_emit_rsh_signed): New function.
8360 (ppc64_emit_rsh_unsigned): New function.
8361 (ppc64_emit_ext): New function.
8362 (ppc64_emit_zero_ext): New function.
8363 (ppc64_emit_log_not): New function.
8364 (ppc64_emit_bit_and): New function.
8365 (ppc64_emit_bit_or): New function.
8366 (ppc64_emit_bit_xor): New function.
8367 (ppc64_emit_bit_not): New function.
8368 (ppc64_emit_equal): New function.
8369 (ppc64_emit_less_signed): New function.
8370 (ppc64_emit_less_unsigned): New function.
8371 (ppc64_emit_ref): New function.
8372 (ppc64_emit_const): New function.
8373 (ppc64v1_emit_reg): New function.
8374 (ppc64v2_emit_reg): New function.
8375 (ppc64_emit_pop): New function.
8376 (ppc64_emit_stack_flush): New function.
8377 (ppc64_emit_swap): New function.
8378 (ppc64v1_emit_call): New function.
8379 (ppc64v2_emit_call): New function.
8380 (ppc64v1_emit_int_call_1): New function.
8381 (ppc64v2_emit_int_call_1): New function.
8382 (ppc64v1_emit_void_call_2): New function.
8383 (ppc64v2_emit_void_call_2): New function.
8384 (ppc64_emit_if_goto): New function.
8385 (ppc64_emit_eq_goto): New function.
8386 (ppc64_emit_ne_goto): New function.
8387 (ppc64_emit_lt_goto): New function.
8388 (ppc64_emit_le_goto): New function.
8389 (ppc64_emit_gt_goto): New function.
8390 (ppc64_emit_ge_goto): New function.
8391 (ppc64v1_emit_ops_impl): New static variable.
8392 (ppc64v2_emit_ops_impl): New static variable.
8393 (ppc_emit_ops): New function.
8394 (linux_low_target): Wire in ppc_emit_ops.
8395
a2174ba4
MK
83962016-03-31 Wei-cheng Wang <cole945@gmail.com>
8397 Marcin Kościelnicki <koriakin@0x04.net>
8398
8399 PR/17221
8400 * Makefile.in: Add powerpc-*-ipa.o
8401 * configure.srv: Add ipa_obj for powerpc*-linux.
8402 * linux-ppc-ipa.c: New file.
8403 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8404 includes.
8405 (PPC_FIELD): New macro.
8406 (PPC_SEXT): New macro.
8407 (PPC_OP6): New macro.
8408 (PPC_BO): New macro.
8409 (PPC_LI): New macro.
8410 (PPC_BD): New macro.
8411 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8412 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8413 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8414 (ppc_get_thread_area): New function.
8415 (is_elfv2_inferior): New function.
8416 (gen_ds_form): New function.
8417 (GEN_STD): New macro.
8418 (GEN_STDU): New macro.
8419 (GEN_LD): New macro.
8420 (GEN_LDU): New macro.
8421 (gen_d_form): New function.
8422 (GEN_ADDI): New macro.
8423 (GEN_ADDIS): New macro.
8424 (GEN_LI): New macro.
8425 (GEN_LIS): New macro.
8426 (GEN_ORI): New macro.
8427 (GEN_ORIS): New macro.
8428 (GEN_LWZ): New macro.
8429 (GEN_STW): New macro.
8430 (GEN_STWU): New macro.
8431 (gen_xfx_form): New function.
8432 (GEN_MFSPR): New macro.
8433 (GEN_MTSPR): New macro.
8434 (GEN_MFCR): New macro.
8435 (GEN_MTCR): New macro.
8436 (GEN_SYNC): New macro.
8437 (GEN_LWSYNC): New macro.
8438 (gen_x_form): New function.
8439 (GEN_OR): New macro.
8440 (GEN_MR): New macro.
8441 (GEN_LWARX): New macro.
8442 (GEN_STWCX): New macro.
8443 (GEN_CMPW): New macro.
8444 (gen_md_form): New function.
8445 (GEN_RLDICL): New macro.
8446 (GEN_RLDICR): New macro.
8447 (gen_i_form): New function.
8448 (GEN_B): New macro.
8449 (GEN_BL): New macro.
8450 (gen_b_form): New function.
8451 (GEN_BNE): New macro.
8452 (GEN_LOAD): New macro.
8453 (GEN_STORE): New macro.
8454 (gen_limm): New function.
8455 (gen_atomic_xchg): New function.
8456 (gen_call): New function.
8457 (ppc_relocate_instruction): New function.
8458 (ppc_install_fast_tracepoint_jump_pad): New function.
8459 (ppc_get_min_fast_tracepoint_insn_len): New function.
8460 (ppc_get_ipa_tdesc_idx): New function.
8461 (the_low_target): Wire in the new functions.
8462 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8463 tdescs.
8464 * linux-ppc-tdesc.h: New file.
8465
a13c4696
MK
84662016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8467
8468 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8469 (alloc_jump_pad_buffer): New function.
8470 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8471 (alloc_jump_pad_buffer): New function.
8472 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8473 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8474 (alloc_jump_pad_buffer): New function.
8475 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8476 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8477 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8478 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8479
1cda1512
MK
84802016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8481
8482 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8483 * linux-amd64-ipa.c: Likewise.
8484 * linux-i386-ipa.c: Likewise.
8485 * linux-s390-ipa.c: Likewise.
8486 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8487 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8488 set_trace_state_variable_value_ptr.
8489 (struct ipa_sym_addresses): Likewise.
8490 (symbol_list): Likewise.
8491 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8492 accessing gdb_collect directly.
8493 (gdb_collect_ptr_type): New typedef.
8494 (get_raw_reg_ptr_type): New typedef.
8495 (get_trace_state_variable_value_ptr_type): New typedef.
8496 (set_trace_state_variable_value_ptr_type): New typedef.
8497 (gdb_collect_ptr): New global.
8498 (get_raw_reg_ptr): New global.
8499 (get_trace_state_variable_value_ptr): New global.
8500 (set_trace_state_variable_value_ptr): New global.
8501 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8502 accessing get_raw_reg directly.
8503 (get_get_tsv_func_addr): Likewise for
8504 get_trace_state_variable_value_ptr.
8505 (get_set_tsv_func_addr): Likewise for
8506 set_trace_state_variable_value_ptr.
8507 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8508
72fb5488
SM
85092016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8510
8511 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8512
28170b88
MK
85132016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8514
8515 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8516 packets.
8517 (relocate_instruction): Remove own_buf.
8518 * server.c (own_buf): Make global.
8519 (handle_v_requests): Make global.
8520 * server.h (own_buf): New declaration.
8521 (handle_v_requests): New prototype.
8522
f39e8743
MK
85232016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8524
8525 PR 18377
8526 * linux-s390-low.c (add_insns): New function.
8527 (s390_emit_prologue): New function.
8528 (s390_emit_epilogue): New function.
8529 (s390_emit_add): New function.
8530 (s390_emit_sub): New function.
8531 (s390_emit_mul): New function.
8532 (s390_emit_lsh): New function.
8533 (s390_emit_rsh_signed): New function.
8534 (s390_emit_rsh_unsigned): New function.
8535 (s390_emit_ext): New function.
8536 (s390_emit_log_not): New function.
8537 (s390_emit_bit_and): New function.
8538 (s390_emit_bit_or): New function.
8539 (s390_emit_bit_xor): New function.
8540 (s390_emit_bit_not): New function.
8541 (s390_emit_equal): New function.
8542 (s390_emit_less_signed): New function.
8543 (s390_emit_less_unsigned): New function.
8544 (s390_emit_ref): New function.
8545 (s390_emit_if_goto): New function.
8546 (s390_emit_goto): New function.
8547 (s390_write_goto_address): New function.
8548 (s390_emit_litpool): New function.
8549 (s390_emit_const): New function.
8550 (s390_emit_call): New function.
8551 (s390_emit_reg): New function.
8552 (s390_emit_pop): New function.
8553 (s390_emit_stack_flush): New function.
8554 (s390_emit_zero_ext): New function.
8555 (s390_emit_swap): New function.
8556 (s390_emit_stack_adjust): New function.
8557 (s390_emit_set_r2): New function.
8558 (s390_emit_int_call_1): New function.
8559 (s390_emit_void_call_2): New function.
8560 (s390_emit_eq_goto): New function.
8561 (s390_emit_ne_goto): New function.
8562 (s390_emit_lt_goto): New function.
8563 (s390_emit_le_goto): New function.
8564 (s390_emit_gt_goto): New function.
8565 (s390_emit_ge_goto): New function.
8566 (s390x_emit_prologue): New function.
8567 (s390x_emit_epilogue): New function.
8568 (s390x_emit_add): New function.
8569 (s390x_emit_sub): New function.
8570 (s390x_emit_mul): New function.
8571 (s390x_emit_lsh): New function.
8572 (s390x_emit_rsh_signed): New function.
8573 (s390x_emit_rsh_unsigned): New function.
8574 (s390x_emit_ext): New function.
8575 (s390x_emit_log_not): New function.
8576 (s390x_emit_bit_and): New function.
8577 (s390x_emit_bit_or): New function.
8578 (s390x_emit_bit_xor): New function.
8579 (s390x_emit_bit_not): New function.
8580 (s390x_emit_equal): New function.
8581 (s390x_emit_less_signed): New function.
8582 (s390x_emit_less_unsigned): New function.
8583 (s390x_emit_ref): New function.
8584 (s390x_emit_if_goto): New function.
8585 (s390x_emit_const): New function.
8586 (s390x_emit_call): New function.
8587 (s390x_emit_reg): New function.
8588 (s390x_emit_pop): New function.
8589 (s390x_emit_stack_flush): New function.
8590 (s390x_emit_zero_ext): New function.
8591 (s390x_emit_swap): New function.
8592 (s390x_emit_stack_adjust): New function.
8593 (s390x_emit_int_call_1): New function.
8594 (s390x_emit_void_call_2): New function.
8595 (s390x_emit_eq_goto): New function.
8596 (s390x_emit_ne_goto): New function.
8597 (s390x_emit_lt_goto): New function.
8598 (s390x_emit_le_goto): New function.
8599 (s390x_emit_gt_goto): New function.
8600 (s390x_emit_ge_goto): New function.
8601 (s390_emit_ops): New function.
8602 (struct linux_target_ops): Fill in emit_ops hook.
8603
abd9baf9
MK
86042016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8605
8606 PR 18377
8607 * Makefile.in: Add s390 IPA files.
8608 * configure.srv: Build IPA for s390.
8609 * linux-s390-ipa.c: New file.
8610 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8611 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8612 (tdesc_s390_linux32): Likewise.
8613 (init_registers_s390_linux32v1): Likewise.
8614 (tdesc_s390_linux32v1): Likewise.
8615 (init_registers_s390_linux32v2): Likewise.
8616 (tdesc_s390_linux32v2): Likewise.
8617 (init_registers_s390_linux64): Likewise.
8618 (tdesc_s390_linux64): Likewise.
8619 (init_registers_s390_linux64v1): Likewise.
8620 (tdesc_s390_linux64v1): Likewise.
8621 (init_registers_s390_linux64v2): Likewise.
8622 (tdesc_s390_linux64v2): Likewise.
8623 (init_registers_s390_te_linux64): Likewise.
8624 (tdesc_s390_te_linux64): Likewise.
8625 (init_registers_s390_vx_linux64): Likewise.
8626 (tdesc_s390_vx_linux64): Likewise.
8627 (init_registers_s390_tevx_linux64): Likewise.
8628 (tdesc_s390_tevx_linux64): Likewise.
8629 (init_registers_s390x_linux64): Likewise.
8630 (tdesc_s390x_linux64): Likewise.
8631 (init_registers_s390x_linux64v1): Likewise.
8632 (tdesc_s390x_linux64v1): Likewise.
8633 (init_registers_s390x_linux64v2): Likewise.
8634 (tdesc_s390x_linux64v2): Likewise.
8635 (init_registers_s390x_te_linux64): Likewise.
8636 (tdesc_s390x_te_linux64): Likewise.
8637 (init_registers_s390x_vx_linux64): Likewise.
8638 (tdesc_s390x_vx_linux64): Likewise.
8639 (init_registers_s390x_tevx_linux64): Likewise.
8640 (tdesc_s390x_tevx_linux64): Likewise.
8641 (have_hwcap_s390_vx): New static variable.
8642 (s390_arch_setup): Fill have_hwcap_s390_vx.
8643 (s390_get_thread_area): New function.
8644 (s390_ft_entry_gpr_esa): New const.
8645 (s390_ft_entry_gpr_zarch): New const.
8646 (s390_ft_entry_misc): New const.
8647 (s390_ft_entry_fr): New const.
8648 (s390_ft_entry_vr): New const.
8649 (s390_ft_main_31): New const.
8650 (s390_ft_main_64): New const.
8651 (s390_ft_exit_fr): New const.
8652 (s390_ft_exit_vr): New const.
8653 (s390_ft_exit_misc): New const.
8654 (s390_ft_exit_gpr_esa): New const.
8655 (s390_ft_exit_gpr_zarch): New const.
8656 (append_insns): New function.
8657 (s390_relocate_instruction): New function.
8658 (s390_install_fast_tracepoint_jump_pad): New function.
8659 (s390_get_min_fast_tracepoint_insn_len): New function.
8660 (s390_get_ipa_tdesc_idx): New function.
8661 (struct linux_target_ops): Wire in the above functions.
8662 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8663 * linux-s390-tdesc.h: New file.
8664
a4105d04
MK
86652016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8666
8667 * linux-s390-low.c (s390_supports_tracepoints): New function.
8668 (struct linux_target_ops): Fill supports_tracepoints hook.
8669
35ac8b3e
YQ
86702016-03-18 Yao Qi <yao.qi@linaro.org>
8671
8672 * linux-low.c (lwp_signal_can_be_delivered): New function.
8673 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8674
94610ec4
YQ
86752016-03-18 Yao Qi <yao.qi@linaro.org>
8676
8677 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8678 0 if signal is enqueued. Remove 'signal' from one debugging
8679 message. Move one debugging message to some lines below.
8680 Remove code setting 'signal' to 0.
8681
80aea927
YQ
86822016-03-18 Yao Qi <yao.qi@linaro.org>
8683
8684 * linux-low.c (linux_low_filter_event): Remove redundant
8685 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8686
b04fd3be
MK
86872016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8688
8689 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8690 (struct linux_target_ops): Wire in the above.
8691
c40c8d4b
YQ
86922016-03-03 Yao Qi <yao.qi@linaro.org>
8693
8694 * linux-low.c: Update comments to start_step_over.
8695
0f8288ae
YQ
86962016-03-03 Yao Qi <yao.qi@linaro.org>
8697
8698 PR server/19736
8699 * linux-low.c (handle_extended_wait): Set child suspended
8700 if event_lwp->bp_reinsert isn't zero.
8701
fdbd04a8
YQ
87022016-03-02 Yao Qi <yao.qi@linaro.org>
8703
8704 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8705 enqueue_pending_signal.
8706
6896a8fa
MK
87072016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8708
8709 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8710 is actually loaded.
8711
ab503087
MK
87122016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8713
8714 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8715 (s390_regmap_3264) [!__s390x__]: New global.
8716 (s390_collect_ptrace_register): Skip map entries containing -1.
8717 (s390_supply_ptrace_register): Ditto.
8718 (s390_fill_gprs_high): New function.
8719 (s390_store_gprs_high): New function.
8720 (s390_regsets): Add NT_S390_HIGH_GPRS.
8721 (s390_get_hwcap): Enable on 31-bit.
8722 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8723 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8724 Detect NT_S390_HIGH_GPRS.
8725 (s390_usrregs_info_3264): Enable on 31-bit.
8726 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8727 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8728
ae91f625
MK
87292016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8730
8731 PR gdb/13808
8732 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8733 * configure.srv: Ditto.
8734 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8735 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8736 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8737 (init_registers_amd64_linux): Remove prototype.
8738 (tdesc_amd64_linux): Remove declaration.
8739 (get_ipa_tdesc): New function.
8740 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8741 initialize remaining tdescs.
8742 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8743 (init_registers_i386_linux): Remove prototype.
8744 (tdesc_i386_linux): Remove declaration.
8745 (get_ipa_tdesc): New function.
8746 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8747 initialize remaining tdescs.
8748 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8749 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8750 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8751 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8752 (x86_get_ipa_tdesc_idx): New function.
8753 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8754 * linux-x86-tdesc.h: New file.
8755 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8756 (target_get_ipa_tdesc_idx): New macro.
8757 * tracepoint.c (ipa_tdesc_idx): New macro.
8758 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8759 (symbol_list): Add ipa_tdesc_idx.
8760 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8761 (ipa_tdesc): Remove.
8762 (ipa_tdesc_idx): New variable.
8763 (get_context_regcache): Use get_ipa_tdesc.
8764 (gdb_collect): Ditto.
8765 (gdb_probe): Ditto.
8766 * tracepoint.h (get_ipa_tdesc): New prototype.
8767 (ipa_tdesc): Remove.
8768
e7ad2f14
PA
87692016-02-24 Pedro Alves <palves@redhat.com>
8770
8771 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8772 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8773 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8774 Factor out common code between the USE_SIGTRAP_SIGINFO and
8775 !USE_SIGTRAP_SIGINFO blocks.
8776 (linux_low_filter_event): Call save_stop_reason instead of
8777 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8778 Update comments.
8779 (linux_wait_1): Update comments.
8780
657f9cde
WW
87812016-02-24 Wei-cheng Wang <cole945@gmail.com>
8782
8783 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8784 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8785 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8786 ppc_insert_point, ppc_remove_point.
8787
b00b61e1
MK
87882016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8789
8790 * linux-s390-low.c (s390_supports_z_point_type): New function.
8791 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8792
553cb527
YQ
87932016-02-16 Yao Qi <yao.qi@linaro.org>
8794
8795 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8796 PC. Get pc from regcache_read_pc.
8797
a5652c21
YQ
87982016-02-12 Yao Qi <yao.qi@linaro.org>
8799
8800 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8801 or linux_get_pc_32bit.
8802 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8803
ed443b61
YQ
88042016-02-12 Yao Qi <yao.qi@linaro.org>
8805
8806 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8807 arm_linux_get_next_pcs_fixup.
8808
020ecd38
MK
88092016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8810
8811 * tracepoint.c (x_tracepoint_action_download): Change
8812 write_inferior_data_ptr to write_inferior_data_pointer.
8813 (cmd_qtstart): Likewise.
8814 (write_inferior_data_ptr): Remove.
8815 (download_agent_expr): Change write_inferior_data_ptr to
8816 write_inferior_data_pointer.
8817 (download_tracepoint_1): Likewise.
8818 (download_tracepoint): Likewise.
8819 (download_trace_state_variables): Likewise.
8820
7cae9051
WW
88212016-02-11 Wei-cheng Wang <cole945@gmail.com>
8822 Marcin Kościelnicki <koriakin@0x04.net>
8823
8824 * tracepoint.c (struct tracepoint_action_ops): Remove.
8825 (struct tracepoint_action): Remove ops.
8826 (m_tracepoint_action_download, r_tracepoint_action_download)
8827 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8828 size and offset accordingly.
8829 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8830 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8831 (tracepoint_action_send, tracepoint_action_download): New functions.
8832 Helpers for trace action handlers.
8833 (add_tracepoint_action): Remove setup actions ops.
8834 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8835
9f6a71b4
YQ
88362016-02-10 Yao Qi <yao.qi@linaro.org>
8837
8838 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8839
1e94266c
SM
88402016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8841
8842 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8843 to AC_OUTPUT.
8844 * configure: Regenerate.
8845
8adce034
SM
88462016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8847
8848 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8849 void * to gdb_byte *.
8850 * linux-low.c (siginfo_fixup): Likewise.
8851 (linux_xfer_siginfo): Likewise.
8852 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8853 Likewise.
8854 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8855
93813b37
WT
88562016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8857
8858 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8859 to srv_tgtobj.
8860 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8861 to srv_tgtobj.
8862 * linux-x86-low.c [__x86_64__]: Include
8863 "nat/amd64-linux-siginfo.h".
8864 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8865 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8866 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8867 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8868 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8869 (cpt_si_fd, si_timerid, si_overrun): Move from
8870 nat/amd64-linux-siginfo.c.
8871 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8872
8424cc97
SM
88732016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8874
8875 * server.c (skip_to_semicolon): Remove.
8876 (process_point_options): Use strchrnul instead of
8877 skip_to_semicolon.
8878
4d18591b
YQ
88792016-01-26 Yao Qi <yao.qi@linaro.org>
8880
8881 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8882 * linux-low.c (install_software_single_step_breakpoints): Don't
8883 call regcache_read_pc.
8884 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8885 argument pc.
8886
d8020970
YQ
88872016-01-26 Yao Qi <yao.qi@linaro.org>
8888
8889 * linux-low.c (install_software_single_step_breakpoints): Call
8890 regcache_read_pc instead of get_pc.
8891
8b207339
YQ
88922016-01-26 Yao Qi <yao.qi@linaro.org>
8893
8894 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8895 (unblock_async_io): Rename to ...
8896 (block_unblock_async_io): ... it. New function.
8897 (enable_async_io): Don't install SIGIO handler. Unblock it
8898 instead.
8899 (disable_async_io): Don't ignore SIGIO. Block it instead.
8900 (initialize_async_io): Install SIGIO handler. Don't call
8901 unblock_async_io.
8902
18879fef
YQ
89032016-01-26 Yao Qi <yao.qi@linaro.org>
8904
8905 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8906 first character is '\003', call *the_target->request_interrupt.
8907
a0f8e08a
YQ
89082016-01-25 Yao Qi <yao.qi@linaro.org>
8909
8910 * remote-utils.c (new_thread_notify): Remove.
8911 (dead_thread_notify): Likewise.
8912 * remote-utils.h (new_thread_notify): Remove declaration.
8913 (dead_thread_notify): Likewise.
8914
cc5fd9ab
MK
89152016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8916
8917 * gdb.trace/pending.exp: Fix expected message on continue.
8918
99e8eb11
MK
89192016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8920
8921 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8922 it works properly on big-endian machines where sizeof (CORE_ADDR)
8923 != sizeof (void *).
8924
a994041d
PA
89252016-01-21 Pedro Alves <palves@redhat.com>
8926
8927 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8928 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8929 * configure: Regenerate.
8930
f7a6a40d
YQ
89312016-01-21 Yao Qi <yao.qi@linaro.org>
8932
8933 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8934 is_thumb and set it according to CPSR saved on the stack.
8935 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8936 arm_sigreturn_next_pc.
8937
6f69e520
YQ
89382016-01-18 Yao Qi <yao.qi@linaro.org>
8939
8940 * linux-low.c (linux_set_pc_64bit): New function.
8941 (linux_get_pc_64bit): New function.
8942 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8943 Declare.
8944 * linux-sparc-low.c (debug_threads): Remove declaration.
8945 (sparc_get_pc): Remove.
8946 (the_low_target): Use linux_get_pc_64bit instead of
8947 sparc_get_pc.
8948 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8949 (the_low_target): Use linux_get_pc_64bit and
8950 linux_set_pc_64bit.
8951
276d4552
YQ
89522016-01-18 Yao Qi <yao.qi@linaro.org>
8953
8954 * linux-arm-low.c (debug_threads): Remove declaration.
8955 (arm_get_pc, arm_set_pc): Remove.
8956 (the_low_target): Use linux_get_pc_32bit and
8957 linux_set_pc_32bit.
8958 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8959 (the_low_target): Use linux_get_pc_32bit and
8960 linux_set_pc_32bit.
8961 * linux-cris-low.c (debug_threads): Remove declaration.
8962 (cris_get_pc, cris_set_pc,): Remove.
8963 (the_low_target): Use linux_get_pc_32bit and
8964 linux_set_pc_32bit.
8965 * linux-crisv32-low.c (debug_threads): Remove declaration.
8966 (cris_get_pc, cris_set_pc): Remove.
8967 (the_low_target): Use linux_get_pc_32bit and
8968 linux_set_pc_32bit.
8969 * linux-low.c: Include inttypes.h.
8970 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8971 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8972 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8973 (the_low_target): Use linux_get_pc_32bit and
8974 linux_set_pc_32bit.
8975 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8976 (the_low_target): Use linux_get_pc_32bit and
8977 linux_set_pc_32bit.
8978 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8979 (the_low_target): Use linux_get_pc_32bit and
8980 linux_set_pc_32bit.
8981 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8982 (the_low_target): Use linux_get_pc_32bit and
8983 linux_set_pc_32bit.
8984 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8985 (the_low_target): Use linux_get_pc_32bit and
8986 linux_set_pc_32bit.
8987
eb0edac8
GB
89882016-01-18 Gary Benson <gbenson@redhat.com>
8989
8990 * configure.ac (AC_FUNC_FORK): New check.
8991 * config.in: Regenerate.
8992 * configure: Likewise.
8993
1b451dda
YQ
89942016-01-14 Yao Qi <yao.qi@linaro.org>
8995
8996 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8997 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8998 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8999 arm_get_next_pcs_ctor.
9000
82075af2
JS
90012016-01-12 Josh Stone <jistone@redhat.com>
9002 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9003
9004 * inferiors.h: Include "gdb_vecs.h".
9005 (struct process_info): Add syscalls_to_catch.
9006 * inferiors.c (remove_process): Free syscalls_to_catch.
9007 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9008 syscall_return stops.
9009 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9010 * server.c (handle_general_set): Handle QCatchSyscalls.
9011 (handle_query): Report support for QCatchSyscalls.
9012 * target.h (struct target_ops): Add supports_catch_syscall.
9013 (target_supports_catch_syscall): New macro.
9014 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9015 (struct lwp_info): Add syscall_state.
9016 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9017 Maintain syscall_state and syscalls_to_catch across exec.
9018 (get_syscall_trapinfo): New function, proxy to the_low_target.
9019 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9020 (linux_low_filter_event): Toggle syscall_state entry/return for
9021 syscall traps, and set it ignored for all others.
9022 (gdb_catching_syscalls_p): New function.
9023 (gdb_catch_this_syscall_p): New function.
9024 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9025 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9026 (linux_supports_catch_syscall): New function.
9027 (linux_target_ops): Install it.
9028 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9029 (the_low_target): Install it.
9030
8f13a3ce
MF
90312016-01-12 Mike Frysinger <vapier@gentoo.org>
9032
9033 * acinclude.m4: Include new ../warning.m4 file.
9034 * configure: Regenerated.
9035 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9036
5b3da067
MF
90372016-01-12 Mike Frysinger <vapier@gentoo.org>
9038
9039 * ax.c (is_goto_target): Mark static.
9040 * linux-low.c (register_addr): Likewise.
9041 (linux_fetch_registers, linux_store_registers): Likewise.
9042 * mem-break.c (any_persistent_commands): Fix old prototype.
9043 (add_commands_to_breakpoint): Mark static.
9044 * regcache.c (find_register_by_name): Delete unused func.
9045 * remote-utils.c (hex_or_minus_one): Mark static.
9046 * server.c (monitor_show_help): Mark static.
9047 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9048 handle_v_requests): Likewise.
9049
bc504a31
PA
90502016-01-12 Pedro Alves <palves@redhat.com>
9051
9052 Remove use of the registered trademark symbol throughout.
9053
5a0dd67a
YQ
90542016-01-08 Yao Qi <yao.qi@linaro.org>
9055
9056 * remote-utils.c (getpkt): If c is '\003', call target hook
9057 request_interrupt.
9058
b2ca446f
YQ
90592016-01-06 Yao Qi <yao.qi@linaro.org>
9060
9061 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9062 linux-aarch32-low.c.
9063 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9064 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9065 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9066 (thumb2_breakpoint): Declare.
9067 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9068 linux-aarch32-low.h.
9069 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9070 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9071 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9072
edd88788
JB
90732016-01-01 Joel Brobecker <brobecker@adacore.com>
9074
9075 * gdbreplay.c (gdbreplay_version): Change copyright year in
9076 version message.
9077 * server.c (gdbserver_version): Likewise.
9078
65da7f14
PP
90792015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9080
9081 * server.c (crc32_table): Delete.
9082 (crc32): Use libiberty's xcrc32 function.
9083
4abd5ed2
JB
90842015-12-22 Joel Brobecker <brobecker@adacore.com>
9085
9086 * lynx-low.c (lynx_delete_thread_callback): New function.
9087 (lynx_mourn): Properly delete our process and all of its
9088 threads. Remove call to clear_inferiors.
9089
0e50fe5c
JB
90902015-12-22 Joel Brobecker <brobecker@adacore.com>
9091
9092 * target.c (thread_search_callback): Add check that
9093 the thread_stopped target callback is not NULL before
9094 calling it.
9095
35adc03f
YQ
90962015-12-21 Yao Qi <yao.qi@linaro.org>
9097
9098 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9099 arm breakpoint.
9100
bd2b2909
AT
91012015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9102
9103 * server.c (handle_query): Call target_supports_software_single_step.
9104
7fe5e27e
AT
91052015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9106
9107 * linux-low.c (single_step): New function.
9108 (linux_resume_one_lwp_throw): Call single_step.
9109 (start_step_over): Likewise.
9110
d9311bfa
AT
91112015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9112
9113 * Makefile.in (SFILES): Append arch/arm-linux.c,
9114 arch/arm-get-next-pcs.c.
9115 (arm-linux.o): New rule.
9116 (arm-get-next-pcs.o): New rule.
9117 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9118 arm-linux.o.
9119 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9120 to linux-aarch32-low.c.
9121 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9122 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9123 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9124 (thumb2_breakpoint_len): Likewise.
9125 (arm_is_thumb_mode): Make non-static.
9126 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9127 from linux-aarch32-low.c.
9128 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9129 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9130 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9131 (thumb2_breakpoint_len): Likewise.
9132 (arm_is_thumb_mode): New declaration.
9133 * linux-arm-low.c: Include arch/arm-linux.h
9134 aarch/arm-get-next-pcs.h, sys/syscall.h.
9135 (get_next_pcs_ops): New struct.
9136 (get_next_pcs_addr_bits_remove): New function.
9137 (get_next_pcs_is_thumb): New function.
9138 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9139 (arm_sigreturn_next_pc): Likewise.
9140 (get_next_pcs_syscall_next_pc): Likewise.
9141 (arm_gdbserver_get_next_pcs): Likewise.
9142 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9143 Initialize.
9144 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9145 * server.h: Include gdb_vecs.h.
9146
68ce2059
AT
91472015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9148
9149 * Makefile.in (SFILES): Append common/common-regcache.c.
9150 (OBS): Append common-regcache.o.
9151 (common-regcache.o): New rule.
9152 * regcache.c (init_register_cache): Initialize cache to
9153 REG_UNAVAILABLE.
9154 (regcache_raw_read_unsigned): New function.
9155 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9156 register_status enum.
9157
fa5308bd
AT
91582015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9159
9160 * linux-aarch64-low.c (the_low_targets): Rename
9161 breakpoint_reinsert_addr to get_next_pcs.
9162 * linux-arm-low.c (the_low_targets): Likewise.
9163 * linux-bfin-low.c (the_low_targets): Likewise.
9164 * linux-cris-low.c (the_low_targets): Likewise.
9165 * linux-crisv32-low.c (the_low_targets): Likewise.
9166 * linux-low.c (can_software_single_step): Likewise.
9167 (install_software_single_step_breakpoints): New function.
9168 (start_step_over): Use install_software_single_step_breakpoints.
9169 * linux-low.h: New CORE_ADDR vector.
9170 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9171 get_next_pcs.
9172 * linux-mips-low.c (the_low_targets): Likewise.
9173 * linux-nios2-low.c (the_low_targets): Likewise.
9174 * linux-sparc-low.c (the_low_targets): Likewise.
9175
4a6ed09b
PA
91762015-12-17 Pedro Alves <palves@redhat.com>
9177
9178 * linux-low.c (linux_kill_one_lwp): Remove references to
9179 LinuxThreads.
9180 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9181 to 'kill'.
9182 (linux_init_signals): Delete.
9183 (initialize_low): Adjust.
9184 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9185
7544db95
PA
91862015-12-16 Pedro Alves <palves@redhat.com>
9187
9188 * configure.ac (compiler warning flags): When testing a
9189 -Wno-foo option, check whether -Wfoo works instead.
9190 * configure: Regenerate.
9191
8020350c
DB
91922015-12-11 Don Breazeal <donb@codesourcery.com>
9193
9194 * server.c (process_serial_event): Don't exit from gdbserver
9195 in remote mode if there are still active inferiors.
9196
db91f502
YQ
91972015-12-11 Yao Qi <yao.qi@linaro.org>
9198
9199 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9200 arm_breakpoint_at if the process is 32-bit.
9201
b37a6290
YQ
92022015-12-11 Yao Qi <yao.qi@linaro.org>
9203
9204 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9205 arm breakpoint.
9206
17b1509a
YQ
92072015-12-07 Yao Qi <yao.qi@linaro.org>
9208
9209 * configure.srv: Append arm.o to srv_tgtobj for
9210 aarch64*-*-linux* target.
9211 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9212 from linux-arm-low.c.
9213 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9214 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9215 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9216 (thumb2_breakpoint_len): Likewise.
9217 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9218 (arm_breakpoint_kinds): Likewise.
9219 (arm_breakpoint_kind_from_pc): Likewise.
9220 (arm_sw_breakpoint_from_kind): Likewise.
9221 (arm_breakpoint_kind_from_current_state): Likewise.
9222 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9223 (arm_sw_breakpoint_from_kind): Declare.
9224 (arm_breakpoint_kind_from_current_state): Declare.
9225 (arm_breakpoint_at): Declare.
9226 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9227 arm_sw_breakpoint_from_kind if process is 32-bit.
9228 (aarch64_breakpoint_kind_from_pc): New function.
9229 (aarch64_breakpoint_kind_from_current_state): New function.
9230 (the_low_target): Initialize fields breakpoint_kind_from_pc
9231 and breakpoint_kind_from_current_state.
9232 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9233 linux-aarch32-low.c.
9234 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9235 (arm_breakpoint, arm_breakpoint_len): Likewise.
9236 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9237 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9238 (arm_is_thumb_mode): Likewise.
9239 (arm_breakpoint_at): Likewise.
9240 (arm_breakpoint_kind_from_pc): Likewise.
9241 (arm_sw_breakpoint_from_kind): Likewise.
9242 (arm_breakpoint_kind_from_current_state): Likewise.
9243
9244 Revert:
9245 2015-08-04 Yao Qi <yao.qi@linaro.org>
9246
9247 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9248 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9249 * server.c (extended_protocol): Remove "static".
9250 * server.h (extended_protocol): Declare it.
9251
ece66d65
JS
92522015-12-04 Josh Stone <jistone@redhat.com>
9253
9254 * target.h (struct target_ops) <arch_setup>: Rename to ...
9255 (struct target_ops) <post_create_inferior>: ... this.
9256 (target_arch_setup): Rename to ...
9257 (target_post_create_inferior): ... this, calling post_create_inferior.
9258 * server.c (start_inferior): Update target_arch_setup calls to
9259 target_post_create_inferior.
9260 * linux-low.c (linux_low_ptrace_options): Forward declare.
9261 (linux_arch_setup): Update its comment for general use.
9262 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9263 (struct linux_target_ops): Use linux_post_create_inferior.
9264 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9265 to post_create_inferior.
9266 * nto-low.c (struct nto_target_ops): Likewise.
9267 * spu-low.c (struct spu_target_ops): Likewise.
9268 * win32-low.c (struct win32_target_ops): Likewise.
9269
e58c48b4
AT
92702015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9271
9272 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9273
fbec8956
AT
92742015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9275
9276 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9277 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9278 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9279 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9280 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9281 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9282 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9283 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9284 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9285 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9286 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9287 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9288
9b4c5f87
AT
92892015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9290
9291 * linux-low.c (linux_look_up_symbols): Don't call
9292 linux_supports_traceclone.
9293 * linux-low.h (thread_db_init): Remove use_events argument.
9294 * thread-db.c (thread_db_use_event): Remove global variable.
9295 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9296 (struct thread_db) <td_create_bp>: Remove field.
9297 (thread_db_create_event): Remove function.
9298 (thread_db_enable_reporting): Likewise.
9299 (find_one_thread): Don't check for thread_db_use_events.
9300 (attach_thread): Likewise.
9301 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9302 (try_thread_db_load_1): Don't check for thread_db_use_events.
9303 (thread_db_init): Remove use_events argument and thread events
9304 handling.
9305 (remove_thread_event_breakpoints): Remove function.
9306 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9307
7d00775e
AT
93082015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9309
9310 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9311 New function.
9312 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9313 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9314 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9315 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9316 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9317 Initialize.
9318 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9319 New function.
9320 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9321 * linux-low.c (can_hardware_single_step): Use
9322 supports_hardware_single_step.
9323 (can_software_single_step): New function.
9324 (start_step_over): Call can_software_single_step.
9325 (linux_supports_hardware_single_step): New function.
9326 (struct target_ops) <supports_software_single_step>: Initialize.
9327 * linux-low.h (struct linux_target_ops)
9328 <supports_hardware_single_step>: Initialize.
9329 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9330 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9331 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9332 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9333 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9334 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9335 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9336 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9337 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9338 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9339 Initialize.
9340 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9341 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9342 Initialize.
9343 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9344 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9345 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9346 New function.
9347 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9348 * target.h (struct target_ops): <supports_software_single_step>:
9349 New field.
9350 (target_supports_software_single_step): New macro.
9351
2d97cd35
AT
93522015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9353
9354 * linux-low.c (linux_wait_1): Fix pc advance condition.
9355 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9356 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9357
769ef81f
AT
93582015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9359
9360 * linux-arm-low.c (arm_is_thumb_mode): New function.
9361 (arm_breakpoint_at): Use arm_is_thumb_mode.
9362 (arm_breakpoint_kind_from_current_state): New function.
9363 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9364 Initialize.
9365 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9366 (linux_breakpoint_kind_from_current_state): New function.
9367 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9368 * linux-low.h (struct linux_target_ops)
9369 <breakpoint_kind_from_current_state>: New field.
9370 * target.h (struct target_ops): Likewise.
9371 (target_breakpoint_kind_from_current_state): New macro.
9372
1bebeeca
PA
93732015-11-30 Pedro Alves <palves@redhat.com>
9374
9375 * linux-low.c (linux_resume): Wake up the event loop before
9376 returning.
9377
a67a9fae
PA
93782015-11-30 Pedro Alves <palves@redhat.com>
9379
9380 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9381 check.
9382 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9383 to -1.
9384 * target.c (struct thread_search): New structure.
9385 (thread_search_callback): New function.
9386 (prev_general_thread): New global.
9387 (prepare_to_access_memory, done_accessing_memory): New functions.
9388 * target.h (prepare_to_access_memory, done_accessing_memory):
9389 Replace macros with function declarations.
9390
f2faf941
PA
93912015-11-30 Pedro Alves <palves@redhat.com>
9392
9393 PR 14618
9394 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9395 report TARGET_WAITKIND_NO_RESUMED.
9396 * remote-utils.c (prepare_resume_reply): Handle
9397 TARGET_WAITKIND_NO_RESUMED.
9398 * server.c (report_no_resumed): New global.
9399 (handle_query) <qSupported>: Handle "no-resumed+". Report
9400 "no-resumed+" support.
9401 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9402 return error if the client doesn't support no-resumed events.
9403 (push_stop_notification): New function.
9404 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9405 events if the client supports them.
9406
a681f9c9
PA
94072015-11-30 Pedro Alves <palves@redhat.com>
9408
9409 * linux-low.c (thread_still_has_status_pending_p): Don't check
9410 vCont;t here.
9411 (lwp_resumed): New function.
9412 (status_pending_p_callback): Return early if the LWP is not
9413 supposed to be resumed.
9414
65706a29
PA
94152015-11-30 Pedro Alves <palves@redhat.com>
9416
9417 * linux-low.c (handle_extended_wait): Assert that the LWP's
9418 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9419 thread create events, leave the new child's status pending.
9420 (linux_low_filter_event): If GDB wants to hear about thread exit
9421 events, leave the LWP marked dead and don't delete it.
9422 (linux_wait_for_event_filtered): Don't check for thread exit.
9423 (filter_exit_event): New function.
9424 (linux_wait_1): Use it, when returning an exit event.
9425 (linux_resume_one_lwp_throw): Assert that the LWP's
9426 waitstatus is TARGET_WAITKIND_IGNORE.
9427 * remote-utils.c (prepare_resume_reply): Handle
9428 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9429 * server.c (report_thread_events): New global.
9430 (handle_general_set): Handle QThreadEvents.
9431 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9432 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9433 TARGET_WAITKIND_THREAD_EXITED.
9434 * server.h (report_thread_events): Declare.
9435
56cf4bed
PA
94362015-11-30 Pedro Alves <palves@redhat.com>
9437
9438 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9439 the thread's last_resume_kind was resume_stop.
9440
500c1d85
PA
94412015-11-30 Pedro Alves <palves@redhat.com>
9442
9443 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9444 before returning.
9445
de979965
PA
94462015-11-30 Pedro Alves <palves@redhat.com>
9447
9448 * server.c (handle_v_requests): Handle vCtrlC.
9449
34c65914
PA
94502015-11-30 Pedro Alves <palves@redhat.com>
9451
9452 * gdbthread.h (find_any_thread_of_pid): Declare.
9453 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9454 functions.
9455 * server.c (handle_query): If current_thread is NULL, look for
9456 another thread of the selected process.
9457
79efa585 94582015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9459 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9460
9461 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9462 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9463 name in reply.
9464 * target.h (struct target_ops) <thread_name>: New field.
9465 (target_thread_name): New macro.
9466
80d82c19
JB
94672015-11-23 Joel Brobecker <brobecker@adacore.com>
9468
9469 * regcache.h (regcache_invalidate_pid): Add declaration.
9470 * regcache.c (regcache_invalidate_pid): New function, extracted
9471 from regcache_invalidate.
9472 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9473 Add trivial documentation comment.
9474 * lynx-low.c: Use regcache_invalidate_pid instead of
9475 regcache_invalidate.
9476
64da5dd5
JB
94772015-11-23 Joel Brobecker <brobecker@adacore.com>
9478
9479 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9480 and Elf64_auxv_t if the target is Android.
9481
37ce4055
DE
94822015-11-22 Doug Evans <xdje42@gmail.com>
9483
9484 * target.h: #include <sys/types.h>.
9485
06e03fff
PA
94862015-11-19 Pedro Alves <palves@redhat.com>
9487
9488 * linux-low.c (linux_process_qsupported): Change prototype.
9489 Adjust.
9490 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9491 Change prototype.
9492 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9493 and adjust to loop over all features.
9494 * server.c (handle_query) <qSupported>: Adjust to call
9495 target_process_qsupported once, passing it a vector of unprocessed
9496 features.
9497 * target.h (struct target_ops) <process_qsupported>: Change
9498 prototype.
9499 (target_process_qsupported): Adjust.
9500
9a084706
PA
95012015-11-19 Pedro Alves <palves@redhat.com>
9502
9503 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9504 mode.
9505 * configure: Regenerate.
9506
dad44a1f
PA
95072015-11-19 Pedro Alves <palves@redhat.com>
9508
9509 * configure: Regenerate.
9510
231c0592
YQ
95112015-11-19 Yao Qi <yao.qi@linaro.org>
9512
9513 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9514 type to uint32_t.
9515
6c1c9a8b
YQ
95162015-11-19 Yao Qi <yao.qi@linaro.org>
9517
9518 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9519 (struct aarch64_operand): Move enum out.
9520
9caa3311
YQ
95212015-11-19 Yao Qi <yao.qi@linaro.org>
9522
9523 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9524 struct user_fpsimd_state *.
9525 (aarch64_store_fpregset): Likewise.
9526
6a69a054
YQ
95272015-11-19 Yao Qi <yao.qi@linaro.org>
9528
9529 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9530 struct user_pt_regs *.
9531 (aarch64_store_gregset): Likewise.
9532
1798301e
PA
95332015-11-18 Pedro Alves <palves@redhat.com>
9534
9535 * Makefile.in (all_object_files): Add $IPA_OBJS.
9536
ce7715e2
PA
95372015-11-17 Pedro Alves <palves@redhat.com>
9538
9539 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9540 GDB_SIGNAL_0 and gdb_signal_to_string.
9541
c0879059
PA
95422015-11-17 Pedro Alves <palves@redhat.com>
9543
9544 * win32-low.c (handle_output_debug_string): Remove parameter.
9545 (win32_kill): Remove our_status local and adjust call to
9546 handle_output_debug_string.
9547 (get_child_debug_event): Adjust call to
9548 handle_output_debug_string.
9549
1996e237
SM
95502015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9551
9552 * linux-mips-low.c (mips_fill_gregset): Add cast.
9553 (mips_store_gregset): Likewise.
9554 (mips_fill_fpregset): Likewise.
9555 (mips_store_fpregset): Likewise.
9556
cbec665b
SM
95572015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9558
9559 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9560 priv.
9561
eb3e3c67
SM
95622015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9563
9564 * linux-mips-low.c (mips_linux_new_thread): Change type of
9565 watch_type to enum target_hw_bp_type.
9566
171de4b8
SM
95672015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9568
9569 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9570 Change return type to arm_hwbp_type.
9571
04248ead
SM
95722015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9573
9574 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9575 (arm_store_gregset): Likewise.
9576 * linux-arm-low.c (arm_get_hwcap): Likewise.
9577 (arm_read_description): Likewise.
9578
04b3479c
SM
95792015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9580
9581 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9582
2bc84e8a
SM
95832015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9584
9585 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9586 (ppc_fill_vsxregset): Likewise.
9587 (ppc_store_vsxregset): Likewise.
9588 (ppc_fill_vrregset): Likewise.
9589 (ppc_store_vrregset): Likewise.
9590 (ppc_fill_evrregset): Likewise.
9591 (ppc_store_evrregset): Likewise.
9592
e6c5bb05
SM
95932015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9594
9595 * linux-ppc-low.c (ppc_usrregs_info): Remove
9596 forward-declaration.
9597 (ppc_arch_setup): Move lower in file.
9598
7ea45d72
SM
95992015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9600
9601 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9602 (ps_pdwrite): Likewise.
9603
69291610
HW
96042015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9605
9606 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9607 to after assert checks.
9608
b42945fd
SM
96092015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9610
9611 * proc-service.c (ps_pdread): Add/adjust casts.
9612 (ps_pdwrite): Add/adjust casts.
9613
d6f85c84
SM
96142015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9615
9616 * server.c (handle_search_memory_1): Cast return value of
9617 memmem.
9618
f98cd059
SM
96192015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9620
9621 * server.c (write_qxfer_response): Change type of data to
9622 gdb_byte *.
9623
d2412fa5
PA
96242015-10-29 Pedro Alves <palves@redhat.com>
9625
9626 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9627
c17414a2
PA
96282015-10-29 Pedro Alves <palves@redhat.com>
9629
9630 * tracepoint.c (clear_installed_tracepoints): Add casts.
9631
e053fbc4
PA
96322015-10-29 Pedro Alves <palves@redhat.com>
9633
9634 * server.c (handle_v_cont, process_serial_event): Add enum
9635 gdb_signal casts to signal parsing code.
9636
add67df8
PA
96372015-10-29 Pedro Alves <palves@redhat.com>
9638
9639 * linux-low.h (NULL_REGSET): Define.
9640 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9641 * linux-arm-low.c (arm_regsets): Likewise.
9642 * linux-crisv32-low.c (cris_regsets): Likewise.
9643 * linux-m68k-low.c (m68k_regsets): Likewise.
9644 * linux-mips-low.c (mips_regsets): Likewise.
9645 * linux-nios2-low.c (nios2_regsets): Likewise.
9646 * linux-ppc-low.c (ppc_regsets): Likewise.
9647 * linux-s390-low.c (s390_regsets): Likewise.
9648 * linux-sh-low.c (sh_regsets): Likewise.
9649 * linux-sparc-low.c (sparc_regsets): Likewise.
9650 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9651 * linux-tile-low.c (tile_regsets): Likewise.
9652 * linux-x86-low.c (x86_regsets): Likewise.
9653 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9654
50bc912a
PA
96552015-10-29 Pedro Alves <palves@redhat.com>
9656
9657 * linux-low.h (NULL_REGSET): Define.
9658 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9659 * linux-arm-low.c (arm_regsets): Likewise.
9660 * linux-crisv32-low.c (cris_regsets): Likewise.
9661 * linux-m68k-low.c (m68k_regsets): Likewise.
9662 * linux-mips-low.c (mips_regsets): Likewise.
9663 * linux-nios2-low.c (nios2_regsets): Likewise.
9664 * linux-ppc-low.c (ppc_regsets): Likewise.
9665 * linux-s390-low.c (s390_regsets): Likewise.
9666 * linux-sh-low.c (sh_regsets): Likewise.
9667 * linux-sparc-low.c (sparc_regsets): Likewise.
9668 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9669 * linux-tile-low.c (tile_regsets): Likewise.
9670 * linux-x86-low.c (x86_regsets): Likewise.
9671 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9672
682b2546
DE
96732015-10-26 Doug Evans <dje@google.com>
9674
9675 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9676
963843d4
DE
96772015-10-26 Doug Evans <dje@google.com>
9678
9679 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9680
d41401ac
DE
96812015-10-26 Doug Evans <dje@google.com>
9682
9683 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9684 for debug_printf.
9685 (attach_thread, find_new_threads_callback): Ditto.
9686
3db28855
AT
96872015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9688
9689 * mem-break.h (set_breakpoint_data): Remove.
9690
fb78e89c
AT
96912015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9692
9693 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9694 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9695 (initialize_low): Remove set_breakpoint_data call.
9696 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9697 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9698 (initialize_low): Remove set_breakpoint_data call.
9699 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9700 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9701 (initialize_low): Remove set_breakpoint_data call.
9702
2e6ee069
AT
97032015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9704
9705 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9706 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9707 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9708 * target.h (target_breakpoint_kind_from_pc): New macro.
9709
1652a986
AT
97102015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9711
9712 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9713 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9714 the default breakpoint kind.
9715
abeead09
AT
97162015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9717
9718 * linux-arm-low.c (arm_supports_z_point_type): Add software
9719 breakpoint support.
9720
b0b4b501
AT
97212015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9722
9723 * linux-arm-low.c: Refactor breakpoint definitions.
9724 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9725 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9726
8689682c
AT
97272015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9728
9729 * Makefile.in: Add arm.c/o.
9730 * configure.srv: Likewise.
9731 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9732 (arm_breakpoint_kind_from_pc): New function.
9733 (arm_sw_breakpoint_from_kind): Return proper kind.
9734 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9735
27165294
AT
97362015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9737
9738 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9739 removal.
9740 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9741 (struct raw_breakpoint) <size>: Remove.
9742 (struct raw_breakpoint) <kind>: Add.
9743 (bp_size): New function.
9744 (bp_opcode): Likewise.
9745 (find_raw_breakpoint_at): Adjust for kind.
9746 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9747 (remove_memory_breakpoint): Adjust for kind call bp_size.
9748 (set_raw_breakpoint_at): Adjust for kind.
9749 (set_breakpoint): Likewise.
9750 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9751 (delete_raw_breakpoint): Adjust for kind.
9752 (delete_breakpoint): Likewise.
9753 (find_gdb_breakpoint): Likewise.
9754 (set_gdb_breakpoint_1): Likewise.
9755 (set_gdb_breakpoint): Likewise.
9756 (delete_gdb_breakpoint_1): Likewise.
9757 (delete_gdb_breakpoint): Likewise.
9758 (uninsert_raw_breakpoint): Likewise.
9759 (reinsert_raw_breakpoint): Likewise.
9760 (set_breakpoint_data): Remove.
9761 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9762 (check_mem_read): Adjust for kind call bp_size.
9763 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9764 (clone_one_breakpoint): Adjust for kind.
9765 * mem-break.h (set_gdb_breakpoint): Likewise.
9766 (delete_gdb_breakpoint): Likewise.
9767 * server.c (process_serial_event): Likewise.
9768
dd373349
AT
97692015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9770
9771 * linux-aarch64-low.c (aarch64_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-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9777 (arm_sw_breakpoint_from_kind): New function.
9778 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9779 (struct linux_target_ops) <breakpoint>: Remove.
9780 (struct linux_target_ops) <breakpoint_len>: Remove.
9781 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9782 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9783 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9784 (struct linux_target_ops) <breakpoint>: Remove.
9785 (struct linux_target_ops) <breakpoint_len>: Remove.
9786 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9787 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9788 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9789 (struct linux_target_ops) <breakpoint>: Remove.
9790 (struct linux_target_ops) <breakpoint_len>: Remove.
9791 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9792 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9793 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9794 and sw_breakpoint_from_kind to increment the pc.
9795 (linux_breakpoint_kind_from_pc): New function.
9796 (linux_sw_breakpoint_from_kind): New function.
9797 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9798 (initialize_low): Call breakpoint_kind_from_pc and
9799 sw_breakpoint_from_kind to replace breakpoint_data/len.
9800 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9801 New field.
9802 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9803 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9804 (struct linux_target_ops) <breakpoint>: Remove.
9805 (struct linux_target_ops) <breakpoint_len>: Remove.
9806 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9807 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9808 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9809 (struct linux_target_ops) <breakpoint>: Remove.
9810 (struct linux_target_ops) <breakpoint_len>: Remove.
9811 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9812 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9813 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9814 (struct linux_target_ops) <breakpoint>: Remove.
9815 (struct linux_target_ops) <breakpoint_len>: Remove.
9816 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9817 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9818 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9819 (struct linux_target_ops) <breakpoint>: Remove.
9820 (struct linux_target_ops) <breakpoint_len>: Remove.
9821 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9822 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9823 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9824 (struct linux_target_ops) <breakpoint>: Remove.
9825 (struct linux_target_ops) <breakpoint_len>: Remove.
9826 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9827 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9828 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9829 (struct linux_target_ops) <breakpoint>: Remove.
9830 (struct linux_target_ops) <breakpoint_len>: Remove.
9831 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9832 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9833 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9834 (struct linux_target_ops) <breakpoint>: Remove.
9835 (struct linux_target_ops) <breakpoint_len>: Remove.
9836 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9837 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9838 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9839 (struct linux_target_ops) <breakpoint>: Remove.
9840 (struct linux_target_ops) <breakpoint_len>: Remove.
9841 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9842 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9843 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9844 (struct linux_target_ops) <breakpoint>: Remove.
9845 (struct linux_target_ops) <breakpoint_len>: Remove.
9846 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9847 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9848 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9849 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9850 (struct linux_target_ops) <breakpoint>: Remove.
9851 (struct linux_target_ops) <breakpoint_len>: Remove.
9852 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9853 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9854 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9855 (struct linux_target_ops) <breakpoint>: Remove.
9856 (struct linux_target_ops) <breakpoint_len>: Remove.
9857 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9858 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9859
4cd98a19
AT
98602015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9861
9862 * linux-cris-low.c (cris_get_pc): Remove void arg.
9863
774ee6d2
AR
98642015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9865
9866 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9867 variable name.
9868
833dcd29
AR
98692015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9870
9871 * inferiors.c (thread_pid_matches_callback): New function.
9872 (find_thread_process): New function.
9873 (remove_thread): Reset current_thread.
9874 (remove_process): Assert threads have been removed first.
9875
8d689ee5
YQ
98762015-10-15 Yao Qi <yao.qi@linaro.org>
9877
9878 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9879 if it is 3.
9880 (aarch64_remove_point): Likewise.
9881 * regcache.c (regcache_register_size): New function.
9882
1c2e1515
YQ
98832015-10-12 Yao Qi <yao.qi@linaro.org>
9884
9885 * linux-aarch64-low.c: Update all callers as emit_load_store
9886 is renamed to aarch64_emit_load_store.
9887
e1c587c3
YQ
98882015-10-12 Yao Qi <yao.qi@linaro.org>
9889
9890 * linux-aarch64-low.c: Update all callers of function renaming
9891 from emit_insn to aarch64_emit_insn.
9892
b6542f81
YQ
98932015-10-12 Yao Qi <yao.qi@linaro.org>
9894
9895 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9896 arch/aarch64-insn.h.
9897 (struct aarch64_memory_operand): Likewise.
9898 (ENCODE): Likewise.
9899 (emit_insn): Move to arch/aarch64-insn.c.
9900 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9901 (emit_load_store): Move to arch/aarch64-insn.c.
9902 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9903 (can_encode_int32): Remove.
9904
246994ce
YQ
99052015-10-12 Yao Qi <yao.qi@linaro.org>
9906
9907 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9908 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9909 (aarch64_relocate_instruction): Likewise.
9910 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9911 (struct aarch64_insn_visitor): Likewise.
9912
0badd99f
YQ
99132015-10-12 Yao Qi <yao.qi@linaro.org>
9914
9915 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9916 (struct aarch64_insn_visitor): New.
9917 (struct aarch64_insn_relocation_data): New.
9918 (aarch64_ftrace_insn_reloc_b): New function.
9919 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9920 (aarch64_ftrace_insn_reloc_cb): Likewise.
9921 (aarch64_ftrace_insn_reloc_tb): Likewise.
9922 (aarch64_ftrace_insn_reloc_adr): Likewise.
9923 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9924 (aarch64_ftrace_insn_reloc_others): Likewise.
9925 (visitor): New.
9926 (aarch64_relocate_instruction): Use visitor.
9927
dfaffe9d
YQ
99282015-10-12 Yao Qi <yao.qi@linaro.org>
9929
9930 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9931 int. Add argument buf.
9932 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9933 aarch64_relocate_instruction.
9934
70b439f0
YQ
99352015-10-12 Yao Qi <yao.qi@linaro.org>
9936
9937 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9938 argument insn. Remove local variable insn. Don't call
9939 target_read_uint32.
9940 (aarch64_install_fast_tracepoint_jump_pad): Call
9941 target_read_uint32.
9942
7781c06f
YQ
99432015-09-30 Yao Qi <yao.qi@linaro.org>
9944
9945 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9946 (emit_load_store_pair): Likewise.
9947
9a3c8263
SM
99482015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9949
9950 * dll.c (match_dll): Add cast(s).
9951 (unloaded_dll): Likewise.
9952 * linux-low.c (second_thread_of_pid_p): Likewise.
9953 (delete_lwp_callback): Likewise.
9954 (count_events_callback): Likewise.
9955 (select_event_lwp_callback): Likewise.
9956 (linux_set_resume_request): Likewise.
9957 * server.c (accumulate_file_name_length): Likewise.
9958 (emit_dll_description): Likewise.
9959 (handle_qxfer_threads_worker): Likewise.
9960 (visit_actioned_threads): Likewise.
9961 * thread-db.c (any_thread_of): Likewise.
9962 * tracepoint.c (same_process_p): Likewise.
9963 (match_blocktype): Likewise.
9964 (build_traceframe_info_xml): Likewise.
9965
224c3ddb
SM
99662015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9967
9968 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9969 assignment.
9970 (gdb_unparse_agent_expr): Likewise.
9971 * hostio.c (require_data): Likewise.
9972 (handle_pread): Likewise.
9973 * linux-low.c (disable_regset): Likewise.
9974 (fetch_register): Likewise.
9975 (store_register): Likewise.
9976 (get_dynamic): Likewise.
9977 (linux_qxfer_libraries_svr4): Likewise.
9978 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9979 (set_fast_tracepoint_jump): Likewise.
9980 (uninsert_fast_tracepoint_jumps_at): Likewise.
9981 (reinsert_fast_tracepoint_jumps_at): Likewise.
9982 (validate_inserted_breakpoint): Likewise.
9983 (clone_agent_expr): Likewise.
9984 * regcache.c (init_register_cache): Likewise.
9985 * remote-utils.c (putpkt_binary_1): Likewise.
9986 (decode_M_packet): Likewise.
9987 (decode_X_packet): Likewise.
9988 (look_up_one_symbol): Likewise.
9989 (relocate_instruction): Likewise.
9990 (monitor_output): Likewise.
9991 * server.c (handle_search_memory): Likewise.
9992 (handle_qxfer_exec_file): Likewise.
9993 (handle_qxfer_libraries): Likewise.
9994 (handle_qxfer): Likewise.
9995 (handle_query): Likewise.
9996 (handle_v_cont): Likewise.
9997 (handle_v_run): Likewise.
9998 (captured_main): Likewise.
9999 * target.c (write_inferior_memory): Likewise.
10000 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10001 * tracepoint.c (init_trace_buffer): Likewise.
10002 (add_tracepoint_action): Likewise.
10003 (add_traceframe): Likewise.
10004 (add_traceframe_block): Likewise.
10005 (cmd_qtdpsrc): Likewise.
10006 (cmd_qtdv): Likewise.
10007 (cmd_qtstatus): Likewise.
10008 (response_source): Likewise.
10009 (response_tsv): Likewise.
10010 (cmd_qtnotes): Likewise.
10011 (gdb_collect): Likewise.
10012 (initialize_tracepoint): Likewise.
10013
afbe19f8
PL
100142015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10015
10016 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10017 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10018 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10019 <NOP>: New.
10020 (enum aarch64_condition_codes): New enum.
10021 (w0): New static global.
10022 (fp): Likewise.
10023 (lr): Likewise.
10024 (struct aarch64_memory_operand) <type>: New
10025 MEMORY_OPERAND_POSTINDEX type.
10026 (postindex_memory_operand): New helper function.
10027 (emit_ret): New function.
10028 (emit_load_store_pair): New function, factored out of emit_stp
10029 with support for MEMORY_OPERAND_POSTINDEX.
10030 (emit_stp): Rewrite using emit_load_store_pair.
10031 (emit_ldp): New function.
10032 (emit_load_store): Likewise.
10033 (emit_ldr): Mention post-index instruction in comment.
10034 (emit_ldrh): New function.
10035 (emit_ldrb): New function.
10036 (emit_ldrsw): Mention post-index instruction in comment.
10037 (emit_str): Likewise.
10038 (emit_subs): New function.
10039 (emit_cmp): Likewise.
10040 (emit_and): Likewise.
10041 (emit_orr): Likewise.
10042 (emit_orn): Likewise.
10043 (emit_eor): Likewise.
10044 (emit_mvn): Likewise.
10045 (emit_lslv): Likewise.
10046 (emit_lsrv): Likewise.
10047 (emit_asrv): Likewise.
10048 (emit_mul): Likewise.
10049 (emit_sbfm): Likewise.
10050 (emit_sbfx): Likewise.
10051 (emit_ubfm): Likewise.
10052 (emit_ubfx): Likewise.
10053 (emit_csinc): Likewise.
10054 (emit_cset): Likewise.
10055 (emit_nop): Likewise.
10056 (emit_ops_insns): New helper function.
10057 (emit_pop): Likewise.
10058 (emit_push): Likewise.
10059 (aarch64_emit_prologue): New function.
10060 (aarch64_emit_epilogue): Likewise.
10061 (aarch64_emit_add): Likewise.
10062 (aarch64_emit_sub): Likewise.
10063 (aarch64_emit_mul): Likewise.
10064 (aarch64_emit_lsh): Likewise.
10065 (aarch64_emit_rsh_signed): Likewise.
10066 (aarch64_emit_rsh_unsigned): Likewise.
10067 (aarch64_emit_ext): Likewise.
10068 (aarch64_emit_log_not): Likewise.
10069 (aarch64_emit_bit_and): Likewise.
10070 (aarch64_emit_bit_or): Likewise.
10071 (aarch64_emit_bit_xor): Likewise.
10072 (aarch64_emit_bit_not): Likewise.
10073 (aarch64_emit_equal): Likewise.
10074 (aarch64_emit_less_signed): Likewise.
10075 (aarch64_emit_less_unsigned): Likewise.
10076 (aarch64_emit_ref): Likewise.
10077 (aarch64_emit_if_goto): Likewise.
10078 (aarch64_emit_goto): Likewise.
10079 (aarch64_write_goto_address): Likewise.
10080 (aarch64_emit_const): Likewise.
10081 (aarch64_emit_call): Likewise.
10082 (aarch64_emit_reg): Likewise.
10083 (aarch64_emit_pop): Likewise.
10084 (aarch64_emit_stack_flush): Likewise.
10085 (aarch64_emit_zero_ext): Likewise.
10086 (aarch64_emit_swap): Likewise.
10087 (aarch64_emit_stack_adjust): Likewise.
10088 (aarch64_emit_int_call_1): Likewise.
10089 (aarch64_emit_void_call_2): Likewise.
10090 (aarch64_emit_eq_goto): Likewise.
10091 (aarch64_emit_ne_goto): Likewise.
10092 (aarch64_emit_lt_goto): Likewise.
10093 (aarch64_emit_le_goto): Likewise.
10094 (aarch64_emit_gt_goto): Likewise.
10095 (aarch64_emit_ge_got): Likewise.
10096 (aarch64_emit_ops_impl): New static global variable.
10097 (aarch64_emit_ops): New target function, return
10098 &aarch64_emit_ops_impl.
10099 (struct linux_target_ops): Install it.
10100
bb903df0
PL
101012015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10102
10103 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10104 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10105 aarch64-ipa.o.
10106 * linux-aarch64-ipa.c: New file.
10107 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10108 and endian.h.
10109 (aarch64_get_thread_area): New target method.
10110 (extract_signed_bitfield): New helper function.
10111 (aarch64_decode_ldr_literal): New function.
10112 (enum aarch64_opcodes): New enum.
10113 (struct aarch64_register): New struct.
10114 (struct aarch64_operand): New struct.
10115 (x0): New static global.
10116 (x1): Likewise.
10117 (x2): Likewise.
10118 (x3): Likewise.
10119 (x4): Likewise.
10120 (w2): Likewise.
10121 (ip0): Likewise.
10122 (sp): Likewise.
10123 (xzr): Likewise.
10124 (aarch64_register): New helper function.
10125 (register_operand): Likewise.
10126 (immediate_operand): Likewise.
10127 (struct aarch64_memory_operand): New struct.
10128 (offset_memory_operand): New helper function.
10129 (preindex_memory_operand): Likewise.
10130 (enum aarch64_system_control_registers): New enum.
10131 (ENCODE): New macro.
10132 (emit_insn): New helper function.
10133 (emit_b): New function.
10134 (emit_bcond): Likewise.
10135 (emit_cb): Likewise.
10136 (emit_tb): Likewise.
10137 (emit_blr): Likewise.
10138 (emit_stp): Likewise.
10139 (emit_ldp_q_offset): Likewise.
10140 (emit_stp_q_offset): Likewise.
10141 (emit_load_store): Likewise.
10142 (emit_ldr): Likewise.
10143 (emit_ldrsw): Likewise.
10144 (emit_str): Likewise.
10145 (emit_ldaxr): Likewise.
10146 (emit_stxr): Likewise.
10147 (emit_stlr): Likewise.
10148 (emit_data_processing_reg): Likewise.
10149 (emit_data_processing): Likewise.
10150 (emit_add): Likewise.
10151 (emit_sub): Likewise.
10152 (emit_mov): Likewise.
10153 (emit_movk): Likewise.
10154 (emit_mov_addr): Likewise.
10155 (emit_mrs): Likewise.
10156 (emit_msr): Likewise.
10157 (emit_sevl): Likewise.
10158 (emit_wfe): Likewise.
10159 (append_insns): Likewise.
10160 (can_encode_int32_in): New helper function.
10161 (aarch64_relocate_instruction): New function.
10162 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10163 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10164 (struct linux_target_ops): Install aarch64_get_thread_area,
10165 aarch64_install_fast_tracepoint_jump_pad and
10166 aarch64_get_min_fast_tracepoint_insn_len.
10167
787749ea
PL
101682015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10169
10170 * Makefile.in (aarch64-insn.o): New rule.
10171 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10172
9812b2e6
YQ
101732015-09-21 Yao Qi <yao.qi@linaro.org>
10174
10175 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10176
18fe412b
YQ
101772015-09-21 Yao Qi <yao.qi@linaro.org>
10178
10179 * tracepoint.c (max_jump_pad_size): Remove.
10180
a0cc84cd
YQ
101812015-09-18 Yao Qi <yao.qi@linaro.org>
10182
10183 * linux-aarch64-low.c: Don't include sys/uio.h.
10184 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10185
d78908cf
WW
101862015-09-16 Wei-cheng Wang <cole945@gmail.com>
10187
10188 * tracepoint.c (eval_result_type): Change prototype.
10189 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10190
d57e0d50
PA
101912015-09-15 Pedro Alves <palves@redhat.com>
10192
10193 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10194 Check whether to report exec events instead of checking whether
10195 multiprocess is enabled.
10196
5a676acc
PA
101972015-09-15 Pedro Alves <palves@redhat.com>
10198
10199 PR remote/18965
10200 * remote-utils.c (prepare_resume_reply): Merge
10201 TARGET_WAITKIND_VFORK_DONE switch case with the
10202 TARGET_WAITKIND_FORKED case.
10203
7c5d0fad
YQ
102042015-09-15 Yao Qi <yao.qi@linaro.org>
10205
10206 * server.c (handle_query): Check string comparison using
10207 "else if" instead of "if".
10208
750ce8d1
YQ
102092015-09-15 Yao Qi <yao.qi@linaro.org>
10210
10211 * server.c (vCont_supported): New global variable.
10212 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10213 matches. Append ";vContSupported+" to own_buf.
10214 (handle_v_requests): Append ";s;S" to own_buf if target supports
10215 hardware single step or vCont_supported is false.
10216 (capture_main): Set vCont_supported to zero.
10217
70b90b91
YQ
102182015-09-15 Yao Qi <yao.qi@linaro.org>
10219
10220 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10221 it to ...
10222 (linux_supports_hardware_single_step): ... New function.
10223 (linux_target_ops): Update.
10224 * lynx-low.c (lynx_target_ops): Set field
10225 supports_hardware_single_step to target_can_do_hardware_single_step.
10226 * nto-low.c (nto_target_ops): Likewise.
10227 * spu-low.c (spu_target_ops): Likewise.
10228 * win32-low.c (win32_target_ops): Likewise.
10229 * target.c (target_can_do_hardware_single_step): New function.
10230 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10231 Remove. <supports_hardware_single_step>: New field.
10232 (target_supports_conditional_breakpoints): Remove.
10233 (target_supports_hardware_single_step): New macro.
10234 (target_can_do_hardware_single_step): Declare.
10235 * server.c (handle_query): Use target_supports_hardware_single_step
10236 instead of target_supports_conditional_breakpoints.
10237
ade90bde
YQ
102382015-09-15 Yao Qi <yao.qi@linaro.org>
10239
10240 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10241 function.
10242 (struct linux_target_ops the_low_target): Install
10243 aarch64_linux_siginfo_fixup.
10244
94585166
DB
102452015-09-11 Don Breazeal <donb@codesourcery.com>
10246 Luis Machado <lgustavo@codesourcery.com>
10247
10248 * linux-low.c (linux_mourn): Static declaration.
10249 (linux_arch_setup): Move in front of
10250 handle_extended_wait.
10251 (linux_arch_setup_thread): New function.
10252 (handle_extended_wait): Handle exec events. Call
10253 linux_arch_setup_thread. Make event_lwp argument a
10254 pointer-to-a-pointer.
10255 (check_zombie_leaders): Do not check stopped threads.
10256 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10257 (linux_low_filter_event): Add lwp and thread for exec'ing
10258 non-leader thread if leader thread has been deleted.
10259 Refactor code into linux_arch_setup_thread and call it.
10260 Pass child lwp pointer by reference to handle_extended_wait.
10261 (linux_wait_for_event_filtered): Update comment.
10262 (linux_wait_1): Prevent clobbering exec event status.
10263 (linux_supports_exec_events): New function.
10264 (linux_target_ops) <supports_exec_events>: Initialize new member.
10265 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10266 new member.
10267 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10268 * server.c (report_exec_events): New global variable.
10269 (handle_query): Handle qSupported query for exec-events feature.
10270 (captured_main): Initialize report_exec_events.
10271 * server.h (report_exec_events): Declare new global variable.
10272 * target.h (struct target_ops) <supports_exec_events>: New
10273 member.
10274 (target_supports_exec_events): New macro.
10275 * win32-low.c (win32_target_ops) <supports_exec_events>:
10276 Initialize new member.
10277
0568462b
MM
102782015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10279
10280 * linux-low.c (linux_low_enable_btrace): Remove.
10281 (linux_target_ops): Replace linux_low_enable_btrace with
10282 linux_enable_btrace.
10283
39edd165
YQ
102842015-09-03 Yao Qi <yao.qi@linaro.org>
10285
10286 * linux-aarch64-low.c (aarch64_insert_point): Call
10287 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10288 returns true.
10289
1db33b5a
UW
102902015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10291
10292 * linux-low.c (check_stopped_by_breakpoint): Use
10293 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10294
ab290430
PA
102952015-08-27 Pedro Alves <palves@redhat.com>
10296
10297 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10298
8d749320
SM
102992015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10300
6711b7f8
SM
10301 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10302 the XNEW-family equivalent.
8d749320
SM
10303 (compile_bytecodes): Likewise.
10304 * dll.c (loaded_dll): Likewise.
10305 * event-loop.c (append_callback_event): Likewise.
10306 (create_file_handler): Likewise.
10307 (create_file_event): Likewise.
10308 * hostio.c (handle_open): Likewise.
10309 * inferiors.c (add_thread): Likewise.
10310 (add_process): Likewise.
10311 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10312 * linux-arm-low.c (arm_new_process): Likewise.
10313 (arm_new_thread): Likewise.
10314 * linux-low.c (add_to_pid_list): Likewise.
10315 (linux_add_process): Likewise.
10316 (handle_extended_wait): Likewise.
10317 (add_lwp): Likewise.
10318 (enqueue_one_deferred_signal): Likewise.
10319 (enqueue_pending_signal): Likewise.
10320 (linux_resume_one_lwp_throw): Likewise.
10321 (linux_resume_one_thread): Likewise.
10322 (linux_read_memory): Likewise.
10323 (linux_write_memory): Likewise.
10324 * linux-mips-low.c (mips_linux_new_process): Likewise.
10325 (mips_linux_new_thread): Likewise.
10326 (mips_add_watchpoint): Likewise.
10327 * linux-x86-low.c (initialize_low_arch): Likewise.
10328 * lynx-low.c (lynx_add_process): Likewise.
10329 * mem-break.c (set_raw_breakpoint_at): Likewise.
10330 (set_breakpoint): Likewise.
10331 (add_condition_to_breakpoint): Likewise.
10332 (add_commands_to_breakpoint): Likewise.
10333 (clone_agent_expr): Likewise.
10334 (clone_one_breakpoint): Likewise.
10335 * regcache.c (new_register_cache): Likewise.
10336 * remote-utils.c (look_up_one_symbol): Likewise.
10337 * server.c (queue_stop_reply): Likewise.
10338 (start_inferior): Likewise.
10339 (queue_stop_reply_callback): Likewise.
10340 (handle_target_event): Likewise.
10341 * spu-low.c (fetch_ppc_memory): Likewise.
10342 (store_ppc_memory): Likewise.
10343 * target.c (set_target_ops): Likewise.
10344 * thread-db.c (thread_db_load_search): Likewise.
10345 (try_thread_db_load_1): Likewise.
10346 * tracepoint.c (add_tracepoint): Likewise.
10347 (add_tracepoint_action): Likewise.
10348 (create_trace_state_variable): Likewise.
10349 (cmd_qtdpsrc): Likewise.
10350 (cmd_qtro): Likewise.
10351 (add_while_stepping_state): Likewise.
10352 * win32-low.c (child_add_thread): Likewise.
10353 (get_image_name): Likewise.
10354
ed8b7b42
YQ
103552015-08-25 Yao Qi <yao.qi@linaro.org>
10356
10357 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10358
db3cb7cb
YQ
103592015-08-25 Yao Qi <yao.qi@linaro.org>
10360
10361 * Makefile.in (aarch64-linux.o): New rule.
10362 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10363 srv_tgtobj.
10364 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10365 (aarch64_init_debug_reg_state): Make it extern.
10366 (aarch64_linux_prepare_to_resume): Remove.
10367
f6011a1c
YQ
103682015-08-25 Yao Qi <yao.qi@linaro.org>
10369
10370 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10371 lwp_arch_private_info and ptid_of_lwp.
10372
88e2cf7e
YQ
103732015-08-25 Yao Qi <yao.qi@linaro.org>
10374
10375 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10376 Find proc_info by find_process_pid. All callers updated.
10377
5e35436e
YQ
103782015-08-25 Yao Qi <yao.qi@linaro.org>
10379
10380 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10381 Remove.
10382 (debug_reg_change_callback): Remove.
10383 (aarch64_notify_debug_reg_change): Remove.
10384
4a8a7965
YQ
103852015-08-25 Yao Qi <yao.qi@linaro.org>
10386
10387 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10388 Call current_lwp_ptid.
10389
32a271ee
YQ
103902015-08-25 Yao Qi <yao.qi@linaro.org>
10391
10392 * linux-aarch64-low.c (debug_reg_change_callback): Use
10393 debug_printf.
10394
0d51c8d7
YQ
103952015-08-25 Yao Qi <yao.qi@linaro.org>
10396
10397 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10398
31a43dd5
YQ
103992015-08-25 Yao Qi <yao.qi@linaro.org>
10400
10401 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10402
8ee52567
YQ
104032015-08-25 Yao Qi <yao.qi@linaro.org>
10404
10405 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10406 the code.
10407
ff3f0f45
YQ
104082015-08-25 Yao Qi <yao.qi@linaro.org>
10409
10410 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10411 Remove.
10412 (debug_reg_change_callback): Remove argument entry and add argument
10413 lwp. Remove local variable thread. Don't print thread id in the
10414 debugging output. Don't check whether pid of thread equals to pid.
10415 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10416 iterate_over_lwps instead find_inferior.
10417
3d40fbb5
PA
104182015-08-24 Pedro Alves <palves@redhat.com>
10419
10420 * inferiors.c (get_first_process): New function.
10421 * inferiors.h (get_first_process): New declaration.
10422 * remote-utils.c (read_ptid): Default to the first process in the
10423 list, instead of to the current thread's process.
10424
438e1e42
PA
104252015-08-24 Pedro Alves <palves@redhat.com>
10426
10427 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10428 * event-loop.c: Likewise.
10429 * remote-utils.c: Likewise.
10430 * tracepoint.c: Likewise.
10431
a8c6d4fc
PA
104322015-08-24 Pedro Alves <palves@redhat.com>
10433
10434 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10435 ptid_get_lwp.
10436
99b0bb12
PA
104372015-08-21 Pedro Alves <palves@redhat.com>
10438
10439 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10440 instead of literal 1.
10441
f8904751
PA
104422015-08-21 Pedro Alves <palves@redhat.com>
10443
10444 * tdesc.c (default_description): Explicitly zero-initialize.
10445
465a859e
PA
104462015-08-21 Pedro Alves <palves@redhat.com>
10447
10448 PR gdb/18749
10449 * inferiors.c (remove_thread): Discard any pending stop reply for
10450 this thread.
10451 * server.c (remove_all_on_match_pid): Rename to ...
10452 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10453 instead of a pid.
10454 (discard_queued_stop_replies): Change parameter to a ptid. Now
10455 extern.
10456 (handle_v_kill, kill_inferior_callback, captured_main)
10457 (process_serial_event): Adjust.
10458 * server.h (discard_queued_stop_replies): Declare.
10459
f0db101d
PA
104602015-08-21 Pedro Alves <palves@redhat.com>
10461
10462 * linux-low.c (wait_for_sigstop): Always switch to no thread
10463 selected if the previously current thread dies.
10464 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10465 process instead of the current thread's.
10466 * remote-utils.c (input_interrupt): Don't check if there's no
10467 current thread.
10468 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10469 current thread to the general thread fails, error out.
10470 (handle_qxfer_auxv, handle_qxfer_libraries)
10471 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10472 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10473 (handle_query): Check if there's a thread selected instead of
10474 checking whether there's any thread in the thread list.
10475 (handle_qxfer_threads, handle_qxfer_btrace)
10476 (handle_qxfer_btrace_conf): Don't error out early if there's no
10477 thread in the thread list.
10478 (handle_v_cont, myresume): Don't set the current thread to the
10479 continue thread.
10480 (process_serial_event) <Hg handling>: Also set thread_id if the
10481 previous general thread is still alive.
10482 (process_serial_event) <g/G handling>: If setting the current
10483 thread to the general thread fails, error out.
10484 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10485 thread's lwp instead of the current thread's.
10486 * target.c (set_desired_thread): If the desired thread was not
10487 found, leave the current thread pointing to NULL. Return an int
10488 (boolean) indicating success.
10489 * target.h (set_desired_thread): Change return type to int.
10490
40045d91
MF
104912015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10492
10493 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10494 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10495 #includes.
10496 (ps_get_thread_area): New function.
10497
45face3b
GB
104982015-08-19 Gary Benson <gbenson@redhat.com>
10499
10500 * hostio.c (handle_pread): Do not attempt to read more data
10501 than hostio_reply_with_data can fit in a packet.
10502
16d5f642
JB
105032015-08-18 Joel Brobecker <brobecker@adacore.com>
10504
10505 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10506
a738da3a
MF
105072015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10508
10509 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10510
33ebda9d
PA
105112015-08-06 Pedro Alves <palves@redhat.com>
10512
10513 * tracepoint.c (expr_eval_result): Now an int.
10514
a44892be
PA
105152015-08-06 Pedro Alves <palves@redhat.com>
10516
10517 * gdbthread.h (struct regcache): Forward declare.
10518 (struct thread_info) <regcache_data>: Now a struct regcache
10519 pointer.
10520 * inferiors.c (inferior_regcache_data)
10521 (set_inferior_regcache_data): Now work with struct regcache
10522 pointers.
10523 * inferiors.h (struct regcache): Forward declare.
10524 (inferior_regcache_data, set_inferior_regcache_data): Now work
10525 with struct regcache pointers.
10526 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10527 (free_register_cache_thread): Remove struct regcache pointer
10528 casts.
10529
608a1e46
PA
105302015-08-06 Pedro Alves <palves@redhat.com>
10531
10532 * server.c (captured_main): On error, print the exception message
10533 to stderr, and if run_once is set, throw a quit.
10534
f0ce0d3a
PA
105352015-08-06 Pedro Alves <palves@redhat.com>
10536
10537 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10538 the current thread.
10539
bf47e248
PA
105402015-08-06 Pedro Alves <palves@redhat.com>
10541
10542 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10543 reading beyond the passed in buffer length.
10544
b6b9ffcc
PL
105452015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10546
10547 * tracepoint.c (symbol_list) <required>: Remove.
10548
863d01bd
PA
105492015-08-06 Pedro Alves <palves@redhat.com>
10550
10551 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10552 count if stopping and suspending threads.
10553 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10554 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10555 (linux_detach): Complete an ongoing step-over.
10556 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10557 throughout.
10558 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10559 (linux_wait_1): If passing a signal to the inferior after
10560 finishing a step-over, unsuspend and re-resume all lwps. If we
10561 see a single-step event but the thread should be continuing, don't
10562 pass the trap to gdb.
10563 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10564 internal_error instead of gdb_assert.
10565 (enqueue_pending_signal): New function.
10566 (check_ptrace_stopped_lwp_gone): Add debug output.
10567 (start_step_over): Use internal_error instead of gdb_assert.
10568 (complete_ongoing_step_over): New function.
10569 (linux_resume_one_thread): Don't resume a suspended thread.
10570 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10571 it stepping.
10572
00db26fa
PA
105732015-08-06 Pedro Alves <palves@redhat.com>
10574
10575 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10576 (linux_thread_alive): Use lwp_is_marked_dead.
10577 (extended_event_reported): Delete.
10578 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10579 instead of extended_event_reported.
10580 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10581 as well.
10582 (lwp_is_marked_dead): New function.
10583 (lwp_running): Use lwp_is_marked_dead.
10584 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10585 comment.
10586
ad071a30
PA
105872015-08-06 Pedro Alves <palves@redhat.com>
10588
10589 * linux-low.c (linux_wait_1): Move fork event output out of the
10590 !report_to_gdb check. Pass event_child->waitstatus to
10591 target_waitstatus_to_string instead of ourstatus.
10592
524b57e6
YQ
105932015-08-04 Yao Qi <yao.qi@linaro.org>
10594
10595 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10596 if current_thread is 32 bit.
10597
6085d6f6
YQ
105982015-08-04 Yao Qi <yao.qi@linaro.org>
10599
10600 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10601 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10602 * server.c (extended_protocol): Remove "static".
10603 * server.h (extended_protocol): Declare it.
10604
8a7e4587
YQ
106052015-08-04 Yao Qi <yao.qi@linaro.org>
10606
10607 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10608 both aarch64 and aarch32.
10609 (aarch64_set_pc): Likewise.
10610
3b53ae99
YQ
106112015-08-04 Yao Qi <yao.qi@linaro.org>
10612
10613 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10614 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10615 arm-with-neon.xml to srv_xmlfiles.
10616 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10617 (is_64bit_tdesc): New function.
10618 (aarch64_linux_read_description): New function.
10619 (aarch64_arch_setup): Call aarch64_linux_read_description.
10620 (regs_info): Rename to regs_info_aarch64.
10621 (aarch64_regs_info): Return right regs_info.
10622 (initialize_low_arch): Call initialize_low_arch_aarch32.
10623
bd9e6534
YQ
106242015-08-04 Yao Qi <yao.qi@linaro.org>
10625
10626 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10627 * linux-aarch32-low.c: New file.
10628 * linux-aarch32-low.h: New file.
10629 * linux-arm-low.c (arm_fill_gregset): Move it to
10630 linux-aarch32-low.c.
10631 (arm_store_gregset): Likewise.
10632 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10633 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10634 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10635 (regs_info): Rename to regs_info_arm.
10636 (arm_regs_info): Return regs_info_aarch32 if
10637 have_ptrace_getregset is 1 and target description is
10638 arm_with_neon or arm_with_vfpv3.
10639 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10640 Call initialize_low_arch_aarch32 instead.
10641
ded48a5e
YQ
106422015-08-04 Yao Qi <yao.qi@linaro.org>
10643
10644 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10645 * linux-low.c: ... here.
10646 * linux-low.h (have_ptrace_getregset): Declare it.
10647
96e9210f
PA
106482015-08-04 Pedro Alves <palves@redhat.com>
10649
10650 * thread-db.c (struct thread_db): Use new typedefs.
10651 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10652 CHK calls.
10653 (disable_thread_event_reporting): Cast result of dlsym to
10654 destination function pointer type.
10655 (thread_db_mourn): Use td_ta_delete_ftype.
10656
af60a1ef
SL
106572015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10658
10659 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10660 arch variant.
10661 (CDX_BREAKPOINT): Define for R2.
10662 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10663 (the_low_target): Add comments.
10664
e8b41681
YQ
106652015-07-30 Yao Qi <yao.qi@linaro.org>
10666
10667 * linux-arm-low.c (arm_hwcap): Remove it.
10668 (arm_read_description): New local variable arm_hwcap. Don't
10669 set arm_hwcap to zero.
10670
89abb039
YQ
106712015-07-30 Yao Qi <yao.qi@linaro.org>
10672
10673 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10674 Use regcache->tdesc instead.
10675 (arm_store_wmmxregset): Likewise.
10676 (arm_fill_vfpregset): Likewise.
10677 (arm_store_vfpregset): Likewise.
10678
deca266c
YQ
106792015-07-30 Yao Qi <yao.qi@linaro.org>
10680
10681 * linux-arm-low.c: Include arch/arm.h.
10682 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10683 (arm_store_gregset): Likewise.
10684
aa58a496
SM
106852015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10686
10687 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10688 ptrace's 4th parameter.
10689
50904b25
YQ
106902015-07-27 Yao Qi <yao.qi@linaro.org>
10691
10692 * configure.srv (case aarch64*-*-linux*): Don't set
10693 srv_linux_usrregs.
10694
5826e159
PA
106952015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10696
10697 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10698 sys/ptrace.h.
10699 * linux-arm-low.c: Likewise.
10700 * linux-cris-low.c: Likewise.
10701 * linux-crisv32-low.c: Likewise.
10702 * linux-low.c: Likewise.
10703 * linux-m68k-low.c: Likewise.
10704 * linux-mips-low.c: Likewise.
10705 * linux-nios2-low.c: Likewise.
10706 * linux-s390-low.c: Likewise.
10707 * linux-sparc-low.c: Likewise.
10708 * linux-tic6x-low.c: Likewise.
10709 * linux-tile-low.c: Likewise.
10710 * linux-x86-low.c: Likewise.
10711
54019719
PA
107122015-07-24 Pedro Alves <palves@redhat.com>
10713
10714 * config.in: Regenerate.
10715 * configure: Regenerate.
10716
eb7aa561
PA
107172015-07-24 Pedro Alves <palves@redhat.com>
10718
10719 * acinclude.m4: Include ../ptrace.m4.
10720 * configure.ac: Call GDB_AC_PTRACE.
10721 * config.in, configure: Regenerate.
10722
55d7b841
YQ
107232015-07-24 Yao Qi <yao.qi@linaro.org>
10724
10725 * linux-low.c (linux_create_inferior): Remove setting to
10726 proc->priv->new_inferior.
10727 (linux_attach): Likewise.
10728 (linux_low_filter_event): Likewise.
10729 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10730
c06cbd92
YQ
107312015-07-24 Yao Qi <yao.qi@linaro.org>
10732
10733 * linux-low.c (linux_arch_setup): New function.
10734 (linux_low_filter_event): If proc->tdesc is NULL and
10735 proc->attached is true, call the_low_target.arch_setup.
10736 Otherwise, keep status pending, and return.
10737 (linux_resume_one_lwp_throw): Don't call get_pc if
10738 thread->while_stepping isn't NULL. Don't call
10739 get_thread_regcache if proc->tdesc is NULL.
10740 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10741 (linux_target_ops): Install arch_setup.
10742 * server.c (start_inferior): Call the_target->arch_setup.
10743 * target.h (struct target_ops) <arch_setup>: New field.
10744 (target_arch_setup): New marco.
10745 * lynx-low.c (lynx_target_ops): Update.
10746 * nto-low.c (nto_target_ops): Update.
10747 * spu-low.c (spu_target_ops): Update.
10748 * win32-low.c (win32_target_ops): Update.
10749
5ae3ebba
YQ
107502015-07-24 Yao Qi <yao.qi@linaro.org>
10751
10752 * linux-low.c (linux_add_process): Don't set
10753 proc->priv->new_inferior.
10754 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10755 (linux_attach): Likewise.
10756
eb97750b
YQ
107572015-07-24 Yao Qi <yao.qi@linaro.org>
10758
10759 * server.c (start_inferior): Code refactor.
10760
51aee833
YQ
107612015-07-24 Yao Qi <yao.qi@linaro.org>
10762
10763 * server.c (process_serial_event): Set general_thread.
10764
af1b22f3
YQ
107652015-07-21 Yao Qi <yao.qi@linaro.org>
10766
10767 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10768 aarch64_linux_get_debug_reg_capacity.
10769
554717a3
YQ
107702015-07-17 Yao Qi <yao.qi@linaro.org>
10771
10772 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10773 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10774 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10775 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10776 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10777 (AARCH64_HWP_ALIGNMENT): Likewise.
10778 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10779 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10780 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10781 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10782 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10783 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10784 (struct aarch64_debug_reg_state): Likewise.
10785 (struct arch_lwp_info): Likewise.
10786 (aarch64_align_watchpoint): Likewise.
10787 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10788 (aarch64_watchpoint_length): Likewise.
10789 (aarch64_point_encode_ctrl_reg): Likewise
10790 (aarch64_point_is_aligned): Likewise.
10791 (aarch64_align_watchpoint): Likewise.
10792 (aarch64_linux_set_debug_regs):
10793 (aarch64_dr_state_insert_one_point): Likewise.
10794 (aarch64_dr_state_remove_one_point): Likewise.
10795 (aarch64_handle_breakpoint): Likewise.
10796 (aarch64_handle_aligned_watchpoint): Likewise.
10797 (aarch64_handle_unaligned_watchpoint): Likewise.
10798 (aarch64_handle_watchpoint): Likewise.
10799
c67ca4de
YQ
108002015-07-17 Yao Qi <yao.qi@linaro.org>
10801
10802 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10803 and don't aarch64_get_debug_reg_state. All callers update.
10804 (aarch64_handle_aligned_watchpoint): Likewise.
10805 (aarch64_handle_unaligned_watchpoint): Likewise.
10806 (aarch64_handle_watchpoint): Likewise.
10807 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10808 (aarch64_remove_point): Likewise.
10809
25abf979
YQ
108102015-07-17 Yao Qi <yao.qi@linaro.org>
10811
10812 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10813 debug_printf.
10814 (aarch64_handle_unaligned_watchpoint): Likewise.
10815
db1ff28b
JK
108162015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10817
10818 Revert the previous 3 commits:
10819 Move gdb_regex* to common/
10820 Move linux_find_memory_regions_full & co.
10821 gdbserver build-id attribute generator
10822
700ca40f
JK
108232015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10824 Jan Kratochvil <jan.kratochvil@redhat.com>
10825
10826 gdbserver build-id attribute generator.
10827 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10828 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10829 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10830 (find_phdr): New.
10831 (get_dynamic): Use find_pdhr to traverse program headers.
10832 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10833 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10834 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10835 (get_hex_build_id): New.
10836 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10837 to reply XML document.
10838
9904185c
JK
108392015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10840 Jan Kratochvil <jan.kratochvil@redhat.com>
10841
10842 * target.c: Include target/target-utils.h and fcntl.h.
10843 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10844 (target_fileio_read_stralloc): New functions.
10845
6e5b4429
JK
108462015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10847
10848 * Makefile.in (OBS): Add gdb_regex.o.
10849 (gdb_regex.o): New.
10850 * config.in: Rebuilt.
10851 * configure: Rebuilt.
10852
ddc98fbf
JK
108532015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10854 Jan Kratochvil <jan.kratochvil@redhat.com>
10855
10856 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10857 * Makefile.in (OBS): Add target-utils.o.
10858 (linux-maps.o, target-utils.o): New.
10859 * configure.srv (srv_linux_obj): Add linux-maps.o.
10860
e57bb7a0
PL
108612015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10862
10863 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10864 function, return 1.
10865 (the_low_target): Install it.
10866
586b02a9
PA
108672015-07-14 Pedro Alves <palves@redhat.com>
10868
10869 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10870 Instead, ignore ECHILD, and throw an error for other errnos.
10871
58c1b36c
PA
108722015-07-10 Pedro Alves <palves@redhat.com>
10873
10874 * event-loop.c (struct callback_event) <data>: Change type to
10875 gdb_client_data instance instead of gdb_client_data pointer.
10876 (append_callback_event): Adjust.
10877
421530db
PL
108782015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10879
10880 * linux-aarch64-low.c: Add comments for each linux_target_ops
10881 method. Remove comments already covered in target_ops and
10882 linux_target_ops definitions.
10883 (the_low_target): Add comments for each unimplemented method.
10884
c2d65f38
YQ
108852015-07-09 Yao Qi <yao.qi@linaro.org>
10886
10887 * linux-aarch64-low.c (aarch64_regmap): Remove.
10888 (aarch64_usrregs_info): Remove.
10889 (regs_info): Set field usrregs to NULL.
10890
b20a6524
MM
108912015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10892
10893 * linux-low.c: Include "rsp-low.h"
10894 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10895 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10896 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10897 (handle_btrace_enable_pt): New.
10898 (handle_btrace_general_set): Support "pt".
10899 (handle_btrace_conf_general_set): Support "pt:size".
10900
96c97461
PL
109012015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10902
10903 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10904 Z_PACKET_SW_BP.
10905
37d66942
PL
109062015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10907
10908 * linux-aarch64-low.c: Remove comment about endianness.
10909 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10910 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10911 memcmp.
10912
dc06243f
GB
109132015-06-24 Gary Benson <gbenson@redhat.com>
10914
10915 * linux-i386-ipa.c (stdint.h): Do not include.
10916 * lynx-i386-low.c (stdint.h): Likewise.
10917 * lynx-ppc-low.c (stdint.h): Likewise.
10918 * mem-break.c (stdint.h): Likewise.
10919 * thread-db.c (stdint.h): Likewise.
10920 * tracepoint.c (stdint.h): Likewise.
10921 * win32-low.c (stdint.h): Likewise.
10922
124e13d9
SM
109232015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10924
10925 * server.c (write_qxfer_response): Update call to
10926 remote_escape_output.
10927
909c2cda
JK
109282015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10929 Jan Kratochvil <jan.kratochvil@redhat.com>
10930
10931 Merge multiple hex conversions.
10932 * gdbreplay.c (tohex): Rename to 'fromhex'.
10933 (logchar): Use fromhex.
10934
24c05f46
JK
109352015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10936
10937 * server.c (handle_qxfer_libraries): Set `version' attribute for
10938 <library-list>.
10939
14d2069a
GB
109402015-06-10 Gary Benson <gbenson@redhat.com>
10941
10942 * target.h (struct target_ops) <multifs_open>: New field.
10943 <multifs_unlink>: Likewise.
10944 <multifs_readlink>: Likewise.
10945 * linux-low.c (nat/linux-namespaces.h): New include.
10946 (linux_target_ops): Initialize the_target->multifs_open,
10947 the_target->multifs_unlink and the_target->multifs_readlink.
10948 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10949 * hostio.c (hostio_fs_pid): New static variable.
10950 (hostio_handle_new_gdb_connection): New function.
10951 (handle_setfs): Likewise.
10952 (handle_open): Use the_target->multifs_open as appropriate.
10953 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10954 (handle_readlink): Use the_target->multifs_readlink as
10955 appropriate.
10956 (handle_vFile): Handle vFile:setfs packets.
10957 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10958 after target_handle_new_gdb_connection.
10959
4b8b5e72
GB
109602015-06-10 Gary Benson <gbenson@redhat.com>
10961
10962 * configure.ac (AC_CHECK_FUNCS): Add setns.
10963 * config.in: Regenerate.
10964 * configure: Likewise.
10965 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10966 (linux-namespaces.o): New rule.
10967 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10968
3ac2e371
GB
109692015-06-09 Gary Benson <gbenson@redhat.com>
10970
10971 * hostio.c (handle_open): Process mode argument with
10972 fileio_to_host_mode.
10973
ca9b78ce
YQ
109742015-06-01 Yao Qi <yao.qi@linaro.org>
10975
10976 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10977 * linux-x86-low.c: Likewise.
10978
bfacd19d
DB
109792015-05-28 Don Breazeal <donb@codesourcery.com>
10980
10981 * linux-low.c (handle_extended_wait): Initialize
10982 thread_info.last_resume_kind for new fork children.
10983
452003ef
PA
109842015-05-15 Pedro Alves <palves@redhat.com>
10985
10986 * target.h (target_handle_new_gdb_connection): Rewrite using if
10987 wrapped in do/while.
10988
1041a03c
JB
109892015-05-14 Joel Brobecker <brobecker@adacore.com>
10990
10991 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10992 * configure, config.in: Regenerate.
10993 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10994 Declare typedef.
10995
c269dbdb
DB
109962015-05-12 Don Breazeal <donb@codesourcery.com>
10997
10998 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10999 PTRACE_EVENT_VFORK_DONE.
11000 (linux_low_ptrace_options, extended_event_reported): Add vfork
11001 events.
11002 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11003 and "vforkdone" for RSP 'T' Stop Reply Packet.
11004 * server.h (report_vfork_events): Declare
11005 global variable.
11006
3a8a0396
DB
110072015-05-12 Don Breazeal <donb@codesourcery.com>
11008
11009 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11010 (the_low_target) <new_fork>: Initialize new member.
11011 * linux-arm-low.c (arm_new_fork): New function.
11012 (the_low_target) <new_fork>: Initialize new member.
11013 * linux-low.c (handle_extended_wait): Call new target function
11014 new_fork.
11015 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11016 * linux-mips-low.c (mips_add_watchpoint): New function
11017 extracted from mips_insert_point.
11018 (the_low_target) <new_fork>: Initialize new member.
11019 (mips_linux_new_fork): New function.
11020 (mips_insert_point): Call mips_add_watchpoint.
11021 * linux-x86-low.c (x86_linux_new_fork): New function.
11022 (the_low_target) <new_fork>: Initialize new member.
11023
de0d863e
DB
110242015-05-12 Don Breazeal <donb@codesourcery.com>
11025
11026 * linux-low.c (handle_extended_wait): Implement return value,
11027 rename argument 'event_child' to 'event_lwp', handle
11028 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11029 (linux_low_ptrace_options): New function.
11030 (linux_low_filter_event): Call linux_low_ptrace_options,
11031 use different argument fo linux_enable_event_reporting,
11032 use return value from handle_extended_wait.
11033 (extended_event_reported): New function.
11034 (linux_wait_1): Call extended_event_reported and set
11035 status to report fork events.
11036 (linux_write_memory): Add pid to debug message.
11037 (reset_lwp_ptrace_options_callback): New function.
11038 (linux_handle_new_gdb_connection): New function.
11039 (linux_target_ops): Initialize new structure member.
11040 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11041 * lynx-low.c: Initialize new structure member.
11042 * remote-utils.c (prepare_resume_reply): Implement stop reason
11043 "fork" for "T" stop message.
11044 * server.c (handle_query): Call handle_new_gdb_connection.
11045 * server.h (report_fork_events): Declare global flag.
11046 * target.h (struct target_ops) <handle_new_gdb_connection>:
11047 New member.
11048 (target_handle_new_gdb_connection): New macro.
11049 * win32-low.c: Initialize new structure member.
11050
ddcbc397
DB
110512015-05-12 Don Breazeal <donb@codesourcery.com>
11052
11053 * mem-break.c (APPEND_TO_LIST): Define macro.
11054 (clone_agent_expr): New function.
11055 (clone_one_breakpoint): New function.
11056 (clone_all_breakpoints): New function.
11057 * mem-break.h: Declare new functions.
11058
89245bc0
DB
110592015-05-12 Don Breazeal <donb@codesourcery.com>
11060
11061 * linux-low.c (linux_supports_fork_events): New function.
11062 (linux_supports_vfork_events): New function.
11063 (linux_target_ops): Initialize new structure members.
11064 (initialize_low): Call linux_check_ptrace_features.
11065 * lynx-low.c (lynx_target_ops): Initialize new structure
11066 members.
11067 * server.c (report_fork_events, report_vfork_events):
11068 New global flags.
11069 (handle_query): Add new features to qSupported packet and
11070 response.
11071 (captured_main): Initialize new global variables.
11072 * target.h (struct target_ops) <supports_fork_events>:
11073 New member.
11074 <supports_vfork_events>: New member.
11075 (target_supports_fork_events): New macro.
11076 (target_supports_vfork_events): New macro.
11077 * win32-low.c (win32_target_ops): Initialize new structure
11078 members.
11079
835205d0
GB
110802015-05-12 Gary Benson <gbenson@redhat.com>
11081
11082 * server.c (handle_qxfer_exec_file): Use current process
11083 if annex is empty.
11084
21e94bd9
SL
110852015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11086
11087 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11088 Remove HAVE_PTRACE_GETREGS conditionals.
11089 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11090 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11091
45614f15
YQ
110922015-05-08 Yao Qi <yao.qi@linaro.org>
11093
11094 * linux-low.c (linux_supports_conditional_breakpoints): New
11095 function.
11096 (linux_target_ops): Install new target method.
11097 * lynx-low.c (lynx_target_ops): Install NULL hook for
11098 supports_conditional_breakpoints.
11099 * nto-low.c (nto_target_ops): Likewise.
11100 * spu-low.c (spu_target_ops): Likewise.
11101 * win32-low.c (win32_target_ops): Likewise.
11102 * server.c (handle_query): Check
11103 target_supports_conditional_breakpoints.
11104 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11105 New field.
11106 (target_supports_conditional_breakpoints): New macro.
11107
80ad801e
PA
111082015-05-06 Pedro Alves <palves@redhat.com>
11109
11110 PR server/18081
11111 * server.c (start_inferior): If the process exits, mourn it.
11112
819843c7
GB
111132015-04-21 Gary Benson <gbenson@redhat.com>
11114
11115 * hostio.c (fileio_open_flags_to_host): Factored out to
11116 fileio_to_host_openflags in common/fileio.c. Single use
11117 updated.
11118
a2d5a9d7
MF
111192015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11120
11121 * linux-xtensa-low.c (xtensa_fill_gregset)
11122 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11123 XCHAL_HAVE_LOOP.
11124
deb44829
MF
111252015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11126
11127 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11128 (regs_info): Replace usrregs pointer with NULL.
11129
e57f1de3
GB
111302015-04-17 Gary Benson <gbenson@redhat.com>
11131
11132 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11133 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11134 * server.c (handle_qxfer_exec_file): New function.
11135 (qxfer_packets): Add exec-file entry.
11136 (handle_query): Report qXfer:exec-file:read as supported packet.
11137
62828379
RN
111382015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11139
11140 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11141
b88bb450
GB
111422015-04-09 Gary Benson <gbenson@redhat.com>
11143
11144 * hostio-errno.c (errno_to_fileio_error): Remove function.
11145 Update caller to use remote_fileio_to_fio_error.
11146
c8f4bfdd
YQ
111472015-04-09 Yao Qi <yao.qi@linaro.org>
11148
11149 * linux-low.c (linux_insert_point): Call
11150 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11151 (linux_remove_point): Call remove_memory_breakpoint if type is
11152 raw_bkpt_type_sw.
11153 * linux-x86-low.c (x86_insert_point): Don't call
11154 insert_memory_breakpoint.
11155 (x86_remove_point): Don't call remove_memory_breakpoint.
11156
41f98f02
PA
111572015-04-01 Pedro Alves <palves@redhat.com>
11158 Cleber Rosa <crosa@redhat.com>
11159
11160 * server.c (gdbserver_usage): Reorganize and extend the usage
11161 message.
11162
2bf6fb9d
PA
111632015-03-24 Pedro Alves <palves@redhat.com>
11164
11165 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11166 output. Also dump TRAP_TRACE.
11167 (linux_low_filter_event): In debug output, distinguish a
11168 resume_stop SIGSTOP from a delayed SIGSTOP.
11169
369f6daa
GB
111702015-03-24 Gary Benson <gbenson@redhat.com>
11171
11172 * linux-x86-low.c (x86_linux_new_thread): Moved to
11173 nat/x86-linux.c.
11174 (x86_linux_prepare_to_resume): Likewise.
11175
8e5d4070
GB
111762015-03-24 Gary Benson <gbenson@redhat.com>
11177
11178 * Makefile.in (x86-linux-dregs.o): New rule.
11179 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11180 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11181 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11182 (x86_linux_dr_get): Likewise.
11183 (x86_linux_dr_set): Likewise.
11184 (update_debug_registers_callback): Likewise.
11185 (x86_linux_dr_set_addr): Likewise.
11186 (x86_linux_dr_get_addr): Likewise.
11187 (x86_linux_dr_set_control): Likewise.
11188 (x86_linux_dr_get_control): Likewise.
11189 (x86_linux_dr_get_status): Likewise.
11190 (x86_linux_update_debug_registers): Likewise.
11191
2b95d440
GB
111922015-03-24 Gary Benson <gbenson@redhat.com>
11193
11194 * linux-x86-low.c (x86_linux_update_debug_registers):
11195 New function, factored out from...
11196 (x86_linux_prepare_to_resume): ...this.
11197
14b0bc68
GB
111982015-03-24 Gary Benson <gbenson@redhat.com>
11199
11200 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11201 (x86_linux_dr_set): Likewise.
11202 (update_debug_registers_callback): Likewise.
11203 (x86_linux_dr_set_addr): Likewise.
11204 (x86_linux_dr_get_addr): Likewise.
11205 (x86_linux_dr_set_control): Likewise.
11206 (x86_linux_dr_get_control): Likewise.
11207 (x86_linux_dr_get_status): Likewise.
11208 (x86_linux_prepare_to_resume): Likewise.
11209
5dfe6ca8
GB
112102015-03-24 Gary Benson <gbenson@redhat.com>
11211
11212 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11213 Use perror_with_name. Pass string through gettext.
11214 (x86_linux_dr_set): Likewise.
11215
d33472ad
GB
112162015-03-24 Gary Benson <gbenson@redhat.com>
11217
11218 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11219 (x86_linux_dr_set_addr): ...this.
11220 (x86_dr_low_get_addr): Rename to...
11221 (x86_linux_dr_get_addr): ...this.
11222 (x86_dr_low_set_control): Rename to...
11223 (x86_linux_dr_set_control): ...this.
11224 (x86_dr_low_get_control): Rename to...
11225 (x86_linux_dr_get_control): ...this.
11226 (x86_dr_low_get_status): Rename to...
11227 (x86_linux_dr_get_status): ...this.
11228 (x86_dr_low): Update with new function names.
11229
4b134ca1
GB
112302015-03-24 Gary Benson <gbenson@redhat.com>
11231
11232 * Makefile.in (x86-linux.o): New rule.
11233 * configure.srv: Add x86-linux.o to relevant targets.
11234 * linux-low.c (lwp_set_arch_private_info): New function.
11235 (lwp_arch_private_info): Likewise.
11236 * linux-x86-low.c: Include nat/x86-linux.h.
11237 (arch_lwp_info): Removed structure.
11238 (update_debug_registers_callback):
11239 Use lwp_set_debug_registers_changed.
11240 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11241 and lwp_set_debug_registers_changed.
11242 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11243
34c703da
GB
112442015-03-24 Gary Benson <gbenson@redhat.com>
11245
11246 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11247 * linux-arm-low.c (arm_new_thread): Likewise.
11248 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11249 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11250 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11251 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11252
cff068da
GB
112532015-03-24 Gary Benson <gbenson@redhat.com>
11254
11255 * linux-low.c (ptid_of_lwp): New function.
11256 (lwp_is_stopped): Likewise.
11257 (lwp_stop_reason): Likewise.
11258 * linux-x86-low.c (update_debug_registers_callback):
11259 Use lwp_is_stopped.
11260 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11261 lwp_stop_reason.
11262
b2f7c7e8
GB
112632015-03-24 Gary Benson <gbenson@redhat.com>
11264
11265 * linux-low.h (linux_stop_lwp): Remove declaration.
11266
6d4ee8c6
GB
112672015-03-24 Gary Benson <gbenson@redhat.com>
11268
11269 * linux-low.h: Include nat/linux-nat.h.
11270 * linux-low.c (iterate_over_lwps_args): New structure.
11271 (iterate_over_lwps_filter): New function.
11272 (iterate_over_lwps): Likewise.
11273 * linux-x86-low.c (update_debug_registers_callback):
11274 Update signature to what iterate_over_lwps expects.
11275 Remove PID check that iterate_over_lwps now performs.
11276 (x86_dr_low_set_addr): Use iterate_over_lwps.
11277 (x86_dr_low_set_control): Likewise.
11278
70a0bb6b
GB
112792015-03-24 Gary Benson <gbenson@redhat.com>
11280
11281 * linux-x86-low.c (x86_debug_reg_state): New function.
11282 (x86_linux_prepare_to_resume): Use the above.
11283
7b669087
GB
112842015-03-24 Gary Benson <gbenson@redhat.com>
11285
11286 * linux-low.c (current_lwp_ptid): New function.
11287 * linux-x86-low.c: Include nat/linux-nat.h.
11288 (x86_dr_low_get_addr): Use current_lwp_ptid.
11289 (x86_dr_low_get_control): Likewise.
11290 (x86_dr_low_get_status): Likewise.
11291
eef49a3d
PA
112922015-03-20 Pedro Alves <palves@redhat.com>
11293
11294 * tracepoint.c (cmd_qtstatus): Make "str" const.
11295
b2333d22
PA
112962015-03-20 Pedro Alves <palves@redhat.com>
11297
11298 * server.c (handle_general_set): Make "req_str" const.
11299
23f238d3
PA
113002015-03-19 Pedro Alves <palves@redhat.com>
11301
11302 * linux-low.c (linux_resume_one_lwp): Rename to ...
11303 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11304 instead call perror_with_name.
11305 (check_ptrace_stopped_lwp_gone): New function.
11306 (linux_resume_one_lwp): Reimplement as wrapper around
11307 linux_resume_one_lwp_throw that swallows errors if the LWP is
11308 gone.
11309
91baf43f
PA
113102015-03-19 Pedro Alves <palves@redhat.com>
11311
11312 * linux-low.c (count_events_callback, select_event_lwp_callback):
11313 No longer check whether the thread has resume_stop as last resume
11314 kind.
11315
8bf3b159
PA
113162015-03-19 Pedro Alves <palves@redhat.com>
11317
11318 * linux-low.c (count_events_callback, select_event_lwp_callback):
11319 Use the lwp's status_pending_p field, not the thread's.
11320
b90fc188
PA
113212015-03-19 Pedro Alves <palves@redhat.com>
11322
11323 * linux-low.c (select_event_lwp_callback): Update comments to
11324 no longer mention SIGTRAP.
11325
464b0089
GB
113262015-03-18 Gary Benson <gbenson@redhat.com>
11327
11328 * server.c (handle_query): Do not report vFile:fstat as supported.
11329
aa9e327f
GB
113302015-03-11 Gary Benson <gbenson@redhat.com>
11331
11332 * hostio.c (sys/types.h): New include.
11333 (sys/stat.h): Likewise.
11334 (common-remote-fileio.h): Likewise.
11335 (handle_fstat): New function.
11336 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11337
791c0056
GB
113382015-03-11 Gary Benson <gbenson@redhat.com>
11339
11340 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11341 struct stat.st_blocks and struct stat.st_blksize.
11342 * configure: Regenerate.
11343 * config.in: Likewise.
11344 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11345 (OBS): Add common-remote-fileio.o.
11346 (common-remote-fileio.o): New rule.
11347
9a9df970
PA
113482015-03-09 Pedro Alves <palves@redhat.com>
11349
11350 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11351 'struct sockaddr' pointer in 'accept' call.
11352
9eb1356e
PA
113532015-03-09 Pedro Alves <palves@redhat.com>
11354
11355 Revert:
11356 2015-03-07 Pedro Alves <palves@redhat.com>
11357 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11358 or <winsock2.h> here. Instead include "gdb_socket.h".
11359 (remote_open): Use union gdb_sockaddr_u.
11360 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11361 or <winsock2.h> here. Instead include "gdb_socket.h".
11362 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11363 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11364 or <sys/un.h>.
11365 (init_named_socket, gdb_agent_helper_thread): Use union
11366 gdb_sockaddr_u.
11367
aac331e4
PA
113682015-03-07 Pedro Alves <palves@redhat.com>
11369
11370 * configure.ac (build_warnings): Move
11371 -Wdeclaration-after-statement to the C-specific set.
11372 * configure: Regenerate.
11373
366c75fc
PA
113742015-03-07 Pedro Alves <palves@redhat.com>
11375
11376 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11377 or <winsock2.h> here. Instead include "gdb_socket.h".
11378 (remote_open): Use union gdb_sockaddr_u.
11379 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11380 or <winsock2.h> here. Instead include "gdb_socket.h".
11381 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11382 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11383 or <sys/un.h>.
11384 (init_named_socket, gdb_agent_helper_thread): Use union
11385 gdb_sockaddr_u.
11386
492d29ea
PA
113872015-03-07 Pedro Alves <palves@redhat.com>
11388
11389 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11390 instead.
11391
60a191ed
YQ
113922015-03-06 Yao Qi <yao.qi@linaro.org>
11393
11394 * linux-aarch64-low.c (aarch64_insert_point): Use
11395 show_debug_regs as a boolean.
11396 (aarch64_remove_point): Likewise.
11397
f5771b1d
PA
113982015-03-05 Pedro Alves <palves@redhat.com>
11399
11400 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11401 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11402 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11403 * nto-low.c (nto_target_ops): Likewise.
11404 * spu-low.c (spu_target_ops): Likewise.
11405 * win32-low.c (win32_target_ops): Likewise.
11406
3e572f71
PA
114072015-03-04 Pedro Alves <palves@redhat.com>
11408
72f4393d 11409 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11410 Decide whether a breakpoint triggered based on the SIGTRAP's
11411 siginfo.si_code.
72f4393d
L
11412 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11413 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11414 (linux_low_filter_event): Check for breakpoints before checking
11415 watchpoints.
11416 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11417 siginfo.si_code.
72f4393d
L
11418 (linux_stopped_by_sw_breakpoint)
11419 (linux_supports_stopped_by_sw_breakpoint)
11420 (linux_stopped_by_hw_breakpoint)
11421 (linux_supports_stopped_by_hw_breakpoint): New functions.
11422 (linux_target_ops): Install new target methods.
3e572f71 11423
1ec68e26
PA
114242015-03-04 Pedro Alves <palves@redhat.com>
11425
11426 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11427 * server.c (swbreak_feature, hwbreak_feature): New globals.
11428 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11429 (captured_main): Clear swbreak_feature and hwbreak_feature.
11430 * server.h (swbreak_feature, hwbreak_feature): Declare.
11431 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11432 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11433 supports_stopped_by_hw_breakpoint>: New fields.
11434 (target_supports_stopped_by_sw_breakpoint)
11435 (target_stopped_by_sw_breakpoint)
11436 (target_supports_stopped_by_hw_breakpoint)
11437 (target_stopped_by_hw_breakpoint): Declare.
11438
15c66dd6
PA
114392015-03-04 Pedro Alves <palves@redhat.com>
11440
11441 enum lwp_stop_reason -> enum target_stop_reason
11442 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11443 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11444 (linux_wait_1, stuck_in_jump_pad_callback)
11445 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11446 (linux_stopped_by_watchpoint):
11447 * linux-low.h (enum lwp_stop_reason): Delete.
11448 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11449 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11450
98fc70d6
YQ
114512015-03-04 Yao Qi <yao.qi@linaro.org>
11452
11453 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11454
dd2ac174
GB
114552015-03-03 Gary Benson <gbenson@redhat.com>
11456
11457 * hostio.c (handle_vFile): Fix prefix lengths.
11458
d68e53f4
MM
114592015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11460
11461 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11462 ptr_bits.
11463
bf2d68ab
AA
114642015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11465
11466 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11467 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11468 (clean): Add "rm -f" for above C files.
11469 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11470 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11471 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11472 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11473 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11474 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11475 (init_registers_s390x_vx_linux64)
11476 (init_registers_s390x_tevx_linux64)
11477 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11478 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11479 declarations.
11480 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11481 (s390_store_vxrs_high): New functions.
11482 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11483 NT_S390_VXRS_HIGH.
11484 (s390_arch_setup): Add logic for selecting one of the new target
11485 descriptions. Activate the new vector regsets if applicable.
11486 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11487 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11488 and init_registers_s390x_tevx_linux64.
11489
c966a859
PA
114902015-03-01 Pedro Alves <palves@redhat.com>
11491
11492 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11493 parameter.
11494
4180215b
PA
114952015-02-27 Pedro Alves <palves@redhat.com>
11496
11497 * linux-x86-low.c (u_debugreg_offset): New function.
11498 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11499
749bab01
PA
115002015-02-27 Pedro Alves <palves@redhat.com>
11501
11502 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11503 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11504 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11505 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11506 (ps_lsetfpregs, ps_getpid)
11507 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11508 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11509 (ps_lsetxregs, ps_plog): Declare.
11510
3c14e5a3
PA
115112015-02-27 Pedro Alves <palves@redhat.com>
11512
11513 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11514 IP_AGENT_EXPORT_FUNC.
11515 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11516 IP_AGENT_EXPORT_FUNC.
11517 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11518 (IP_AGENT_EXPORT): Delete.
11519 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11520 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11521 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11522 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11523 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11524 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11525 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11526 (traceframe_read_count, traceframe_write_count)
11527 (traceframes_created, trace_state_variables, get_raw_reg)
11528 (get_trace_state_variable_value, set_trace_state_variable_value)
11529 (ust_loaded, helper_thread_id, cmd_buf): Use
11530 IPA_SYM_EXPORTED_NAME.
11531 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11532 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11533 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11534 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11535 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11536 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11537 EXTERN_C_PUSH/EXTERN_C_POP.
11538 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11539 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11540 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11541 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11542 (traceframe_write_count, traceframe_read_count)
11543 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11544 (about_to_request_buffer_space, get_trace_state_variable_value)
11545 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11546 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11547 EXTERN_C_PUSH/EXTERN_C_POP.
11548 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11549 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11550 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11551 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11552 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11553 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11554 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11555 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11556 Define.
11557 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11558 (IP_AGENT_EXPORT_VAR_DECL): Define.
11559 (tracing): Declare.
11560 (gdb_agent_get_raw_reg): Declare.
11561
fe978cb0
PA
115622015-02-27 Tom Tromey <tromey@redhat.com>
11563 Pedro Alves <palves@redhat.com>
11564
11565 Rename symbols whose names are reserved C++ keywords throughout.
11566
3bc3d82a
PA
115672015-02-27 Pedro Alves <palves@redhat.com>
11568
11569 * Makefile.in (COMPILER): New, get it from autoconf.
11570 (CXX): Get from autoconf instead.
11571 (COMPILE.pre): Use COMPILER.
11572 (CC-LD): Rename to ...
11573 (CC_LD): ... this. Use COMPILER.
11574 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11575 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11576 * acinclude.m4: Include build-with-cxx.m4.
11577 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11578 Disable -Werror by default if building in C++ mode.
11579 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11580 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11581 the C++ compiler. Save/restore CXXFLAGS too.
11582 * configure: Regenerate.
11583
07697489
PA
115842015-02-27 Pedro Alves <palves@redhat.com>
11585
11586 * acinclude.m4: Include libiberty.m4.
11587 * configure.ac: Call libiberty_INIT.
11588 * config.in, configure: Regenerate.
11589
9beb7c4e
PA
115902015-02-26 Pedro Alves <palves@redhat.com>
11591
11592 * linux-low.c (linux_wait_1): When incrementing the PC past a
11593 program breakpoint always use the_low_target.breakpoint_len as
11594 increment, rather than the maximum between that and
11595 the_low_target.decr_pc_after_break.
11596
8090aef2
PA
115972015-02-23 Pedro Alves <palves@redhat.com>
11598
11599 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11600 thread was doing a step-over; always adjust the PC if
11601 we stepped over a permanent breakpoint.
11602 (linux_wait_1): If we stepped over breakpoint that was on top of a
11603 permanent breakpoint, manually advance the PC past it.
11604
bc9540e8
PA
116052015-02-23 Pedro Alves <palves@redhat.com>
11606
11607 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11608 modes.
11609 (x86_fill_gregset, x86_store_gregset): Use it when handling
11610 $orig_eax.
11611
2db9a427
PA
116122015-02-20 Pedro Alves <palves@redhat.com>
11613
11614 * thread-db.c: Include "nat/linux-procfs.h".
11615 (thread_db_init): Skip listing new threads if the kernel supports
11616 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11617
afa8d396
PA
116182015-02-20 Pedro Alves <palves@redhat.com>
11619
11620 * linux-low.c (status_pending_p_callback): Use ptid_match.
11621
c9587f88
AT
116222015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11623
11624 PR breakpoints/16812
11625 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11626 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11627 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11628
b05ec7a5
AT
116292015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11630
11631 PR breakpoints/15956
11632 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11633
d33501a5
MM
116342015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11635
11636 * linux-low.c (linux_low_btrace_conf): Print size.
11637 * server.c (handle_btrace_conf_general_set): New.
11638 (hanle_general_set): Call handle_btrace_conf_general_set.
11639 (handle_query): Report Qbtrace-conf:bts:size as supported.
11640
f4abbc16
MM
116412015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11642
11643 * linux-low.c (linux_low_enable_btrace): Update parameters.
11644 (linux_low_btrace_conf): New.
11645 (linux_target_ops)<to_btrace_conf>: Initialize.
11646 * server.c (current_btrace_conf): New.
11647 (handle_btrace_enable): Rename to ...
11648 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11649 to target_enable_btrace. Update comment. Update users.
11650 (handle_qxfer_btrace_conf): New.
11651 (qxfer_packets): Add btrace-conf entry.
11652 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11653 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11654 (target_ops)<read_btrace_conf>: New.
11655 (target_enable_btrace): Update parameters.
11656 (target_read_btrace_conf): New.
11657
043c3577
MM
116582015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11659
11660 * server.c (handle_btrace_general_set): Remove call to
11661 target_supports_btrace.
11662 (supported_btrace_packets): New.
11663 (handle_query): Call supported_btrace_packets.
11664 * target.h: include btrace-common.h.
11665 (btrace_target_info): Removed.
11666 (supports_btrace, target_supports_btrace): Update parameters.
11667
734b0e4b
MM
116682015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11669
11670 * Makefile.in (SFILES): Add common/btrace-common.c.
11671 (OBS): Add common/btrace-common.o.
11672 (btrace-common.o): Add build rules.
11673 * linux-low: Include btrace-common.h.
11674 (linux_low_read_btrace): Use struct btrace_data. Call
11675 btrace_data_init and btrace_data_fini.
11676
d6c146e9
PA
116772015-02-06 Pedro Alves <palves@redhat.com>
11678
11679 * thread-db.c (find_new_threads_callback): Add debug output.
11680
20ba1ce6
PA
116812015-02-04 Pedro Alves <palves@redhat.com>
11682
11683 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11684 (resume_stopped_resumed_lwps): New function.
11685 (linux_wait_for_event_filtered): Use it.
11686
8cc73a39
SDJ
116872015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11688
11689 * Makefile.in (SFILES): Add linux-personality.c.
11690 (linux-personality.o): New rule.
11691 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11692 list of objects to be built.
11693 * linux-low.c: Include nat/linux-personality.h.
11694 (linux_create_inferior): Remove code to disable address space
11695 randomization (moved to ../nat/linux-personality.c). Create
11696 cleanup to disable address space randomization.
11697
fb23d554
SDJ
116982015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11699
11700 * Makefile.in (posix-strerror.o): New rule.
11701 (mingw-strerror.o): Likewise.
11702 * configure: Regenerated.
11703 * configure.ac: Source file ../common/common.host. Initialize new
11704 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11705
cdf43629
YQ
117062015-01-14 Yao Qi <yao@codesourcery.com>
11707
11708 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11709 (ppc-linux.o): New rule.
11710 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11711 * configure.ac: AC_CHECK_FUNCS(getauxval).
11712 * config.in: Re-generated.
11713 * configure: Re-generated.
11714 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11715 ppc64_64bit_inferior_p
11716
514c5338
YQ
117172015-01-14 Yao Qi <yao@codesourcery.com>
11718
11719 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11720 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11721 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11722 (PT_ORIG_R3, PT_TRAP): Likewise.
11723 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11724 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11725 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11726
3368c1e5
JB
117272015-01-10 Joel Brobecker <brobecker@adacore.com>
11728
11729 * i387-fp.c (i387_cache_to_xsave): In look over
11730 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11731 zmmh_low_space field by use of zmmh_high_space.
11732
582511be
PA
117332015-01-09 Pedro Alves <palves@redhat.com>
11734
11735 * linux-low.c (step_over_bkpt): Move higher up in the file.
11736 (handle_extended_wait): Don't store the stop_pc here.
11737 (get_stop_pc): Adjust comments and rename to ...
11738 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11739 stopped for a software breakpoint or hardware breakpoint.
11740 (thread_still_has_status_pending_p): New function.
11741 (status_pending_p_callback): Use
11742 thread_still_has_status_pending_p. If the event is no longer
11743 interesting, resume the LWP.
11744 (handle_tracepoints): Add assert.
11745 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11746 (wstatus_maybe_breakpoint): New function.
11747 (cancel_breakpoint): Delete function.
11748 (check_stopped_by_watchpoint): New function, factored out from
11749 linux_low_filter_event.
11750 (lp_status_maybe_breakpoint): Delete function.
11751 (linux_low_filter_event): Remove filter_ptid argument.
11752 Leave thread group exits pending here. Store the LWP's stop PC.
11753 Always leave events pending.
11754 (linux_wait_for_event_filtered): Pull all events out of the
11755 kernel, and leave them all pending.
11756 (count_events_callback, select_event_lwp_callback): Consider all
11757 events.
11758 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11759 (select_event_lwp): Only give preference to the stepping LWP in
11760 all-stop mode. Adjust comments.
11761 (ignore_event): New function.
11762 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11763 references to cancel_breakpoints. Adjust to renames. Also give
11764 equal priority to all LWPs that have had events in non-stop mode.
11765 If reporting a software breakpoint event, unadjust the LWP's PC.
11766 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11767 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11768 Adjust.
11769 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11770 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11771 (linux_stopped_by_watchpoint): Adjust.
11772 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11773 * linux-low.h (enum lwp_stop_reason): New.
11774 (struct lwp_info) <stop_pc>: Adjust comment.
11775 <stopped_by_watchpoint>: Delete field.
11776 <stop_reason>: New field.
11777 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11778 * mem-break.c (software_breakpoint_inserted_here)
11779 (hardware_breakpoint_inserted_here): New function.
11780 * mem-break.h (software_breakpoint_inserted_here)
11781 (hardware_breakpoint_inserted_here): Declare.
11782 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11783 (cancel_breakpoints): Delete.
11784 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11785 (upload_fast_traceframes): Remove references to
11786 cancel_breakpoints.
11787
a33e3959
PA
117882015-01-09 Pedro Alves <palves@redhat.com>
11789
11790 * thread-db.c (find_new_threads_callback): Ignore thread if the
11791 kernel thread ID is -1.
11792
8784d563
PA
117932015-01-09 Pedro Alves <palves@redhat.com>
11794
11795 * linux-low.c (linux_attach_fail_reason_string): Move to
11796 nat/linux-ptrace.c, and rename.
11797 (linux_attach_lwp): Update comment.
11798 (attach_proc_task_lwp_callback): New function.
11799 (linux_attach): Adjust to rename and use
11800 linux_proc_attach_tgid_threads.
11801 (linux_attach_fail_reason_string): Delete declaration.
11802
76f2b779
JB
118032015-01-01 Joel Brobecker <brobecker@adacore.com>
11804
11805 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11806 * server.c (gdbserver_version): Likewise.
11807
fafcc06a
SDJ
118082014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11809
11810 * remote-utils.c: Include ctype.h.
11811 (input_interrupt): Explicitly handle the case when the char
11812 received is the NUL byte. Improve the printing of non-ASCII
11813 characters.
11814
beed38b8
JB
118152014-12-16 Joel Brobecker <brobecker@adacore.com>
11816
11817 * linux-low.c (linux_low_filter_event): Update call to
11818 linux_enable_event_reporting following the addition of
11819 a new parameter to that function.
11820
bf330350
CU
118212014-12-16 Catalin Udma <catalin.udma@freescale.com>
11822
11823 PR server/17457
11824 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11825 (AARCH64_FPCR_REGNO): Likewise.
11826 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11827 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11828 (aarch64_store_fpregset): Likewise.
11829
5227d625
JB
118302014-12-15 Joel Brobecker <brobecker@adacore.com>
11831
11832 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11833 Remove FIXME comment about assumption about N.
11834
f93b65a0
JB
118352014-12-13 Joel Brobecker <brobecker@adacore.com>
11836
11837 * configure.ac: If large-file support is disabled in GDBserver,
11838 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11839 * configure: Regenerate.
11840
e5a9158d
AA
118412014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11842
11843 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11844 warning upon ENODATA from ptrace.
11845 * linux-s390-low.c (s390_store_tdb): New.
11846 (s390_regsets): Add regset for NT_S390_TDB.
11847
feea5f36
AA
118482014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11849
11850 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11851 without a fill_function.
11852 * linux-s390-low.c (s390_fill_last_break): Remove.
11853 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11854 (s390_arch_setup): Use regset's size instead of fill_function for
11855 loop end condition.
11856
098dbe61
AA
118572014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11858
11859 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11860 the regset's store function when ptrace returned an error.
11861 * regcache.c (get_thread_regcache): Invalidate register cache
11862 before fetching inferior's registers.
11863
28eef672
AA
118642014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11865
11866 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11867 while-loop as for-loop.
11868 (regsets_store_inferior_registers): Likewise.
11869
bdca27a2
YQ
118702014-11-28 Yao Qi <yao@codesourcery.com>
11871
11872 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11873 * config.in, configure: Re-generate.
11874 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11875 is defined.
11876
9c232dda
YQ
118772014-11-21 Yao Qi <yao@codesourcery.com>
11878
11879 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11880 (AC_CHECK_HEADERS): Remove malloc.h.
11881 * configure: Re-generated.
11882 * config.in: Re-generated.
11883 * server.h: Don't include alloca.h and malloc.h.
11884 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11885 Don't include malloc.h.
11886
43968415
JB
118872014-11-17 Joel Brobecker <brobecker@adacore.com>
11888
11889 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11890 corresponding ERRNO check in same block.
11891
40e91bc7
PA
118922014-11-12 Pedro Alves <palves@redhat.com>
11893
11894 * server.c (cont_thread): Update comment.
11895 (start_inferior, attach_inferior): No longer clear cont_thread.
11896 (handle_v_cont): No longer set cont_thread.
11897 (captured_main): Clear cont_thread each time a GDB connects.
11898
c2c118cf
PA
118992014-11-12 Pedro Alves <palves@redhat.com>
11900
11901 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11902 thread, and don't resume all threads if the Hc thread has exited.
11903
78708b7c
PA
119042014-11-12 Pedro Alves <palves@redhat.com>
11905
11906 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11907 the process group instead of to a specific LWP.
11908
a2abc7de
PA
119092014-10-15 Pedro Alves <palves@redhat.com>
11910
11911 PR server/17487
11912 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11913 parameter.
11914 (arm_set_thread_context): Delete.
11915 (the_low_target): Adjust.
11916 * win32-i386-low.c (debug_registers_changed)
11917 (debug_registers_used): Delete.
11918 (update_debug_registers_callback): New function.
11919 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11920 needing to update their debug registers.
11921 (win32_get_current_dr): New function.
11922 (x86_dr_low_get_addr, x86_dr_low_get_control)
11923 (x86_dr_low_get_status): Fetch the debug register from the thread
11924 record's context.
11925 (i386_initial_stuff): Adjust.
11926 (i386_get_thread_context): Remove current_event parameter. Don't
11927 clear debug_registers_changed nor copy DR values to
11928 debug_reg_state.
11929 (i386_set_thread_context): Delete.
11930 (i386_prepare_to_resume): New function.
11931 (i386_thread_added): Mark the thread as needing to update irs
11932 debug registers.
11933 (the_low_target): Remove i386_set_thread_context and install
11934 i386_prepare_to_resume.
11935 * win32-low.c (win32_get_thread_context): Adjust.
11936 (win32_set_thread_context): Use SetThreadContext
11937 directly.
11938 (win32_prepare_to_resume): New function.
11939 (win32_require_context): New function, factored out from ...
11940 (thread_rec): ... this.
11941 (continue_one_thread): Call win32_prepare_to_resume on each thread
11942 we're about to continue.
11943 (win32_resume): Call win32_prepare_to_resume on the event thread.
11944 * win32-low.h (struct win32_thread_info)
11945 <debug_registers_changed>: New field.
11946 (struct win32_target_ops): Change prototype of set_thread_context,
11947 delete set_thread_context and add prepare_to_resume.
11948 (win32_require_context): New declaration.
11949
a442d071
GB
119502014-10-08 Gary Benson <gbenson@redhat.com>
11951
11952 * server.h: Do not include common-exceptions.h.
11953
6f1947e8
GB
119542014-10-08 Gary Benson <gbenson@redhat.com>
11955
11956 * server.h: Do not include cleanups.h.
11957
63b434a4
JH
119582014-09-30 James Hogan <james.hogan@imgtec.com>
11959
11960 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11961 mips64-dsp-linux.c.
11962
c4d9ceb6
YQ
119632014-09-23 Yao Qi <yao@codesourcery.com>
11964
11965 * linux-low.c (lp_status_maybe_breakpoint): New function.
11966 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11967 (count_events_callback): Likewise.
11968 (select_event_lwp_callback): Likewise.
11969 (cancel_breakpoints_callback): Likewise.
11970
89a5711c
DB
119712014-09-19 Don Breazeal <donb@codesourcery.com>
11972
11973 * linux-low.c (handle_extended_wait): Call
11974 linux_ptrace_get_extended_event.
11975 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11976 linux_is_extended_waitstatus.
11977
bffc0964
JB
119782014-09-16 Joel Brobecker <brobecker@adacore.com>
11979
11980 * Makefile.in (CPPFLAGS): Define.
11981 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11982 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11983
0bfdf32f
GB
119842014-09-16 Gary Benson <gbenson@redhat.com>
11985
11986 * inferiors.h (current_inferior): Renamed as...
11987 (current_thread): New variable. All uses updated.
11988 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11989 (maybe_move_out_of_jump_pad): Likewise.
11990 (cancel_breakpoint): Likewise.
11991 (linux_low_filter_event): Likewise.
11992 (wait_for_sigstop): Likewise.
11993 (linux_resume_one_lwp): Likewise.
11994 (need_step_over_p): Likewise.
11995 (start_step_over): Likewise.
11996 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11997 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11998 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11999 and save_inferior as saved_thread.
12000 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12001 saved_thread.
12002 (regcache_invalidate_thread): Likewise.
12003 * remote-utils.c (prepare_resume_reply): Likewise.
12004 * thread-db.c (thread_db_get_tls_address): Likewise.
12005 (disable_thread_event_reporting): Likewise.
12006 (remove_thread_event_breakpoints): Likewise.
12007 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12008 as saved_thread.
12009 * target.h (set_desired_inferior): Renamed as...
12010 (set_desired_thread): New declaration. All uses updated.
12011 * server.c (myresume): Updated comment to reference thread instead
12012 of inferior.
12013 (handle_serial_event): Likewise.
12014 (handle_target_event): Likewise.
12015
361c8ade
GB
120162014-09-12 Tom Tromey <tromey@redhat.com>
12017 Gary Benson <gbenson@redhat.com>
12018
12019 * regcache.h: Include common-regcache.h.
12020 (regcache_read_pc): Don't declare.
12021 * regcache.c (get_thread_regcache_for_ptid): New function.
12022
bd9269f7
GB
120232014-09-11 Tom Tromey <tromey@redhat.com>
12024 Gary Benson <gbenson@redhat.com>
12025
12026 * symbol.c: New file.
12027 * Makefile.in (SFILES): Add symbol.c.
12028 (OBS): Add symbol.o.
12029
f8c1d06b
GB
120302014-09-11 Gary Benson <gbenson@redhat.com>
12031
12032 * target.c (target_stop_ptid, target_continue_ptid): New
12033 functions.
12034
721ec300
GB
120352014-09-11 Tom Tromey <tromey@redhat.com>
12036 Gary Benson <gbenson@redhat.com>
12037
12038 * target.h: Include target/target.h.
12039 * target.c (target_read_memory, target_read_uint32)
12040 (target_write_memory): New functions.
12041
c5e92cca
GB
120422014-09-11 Gary Benson <gbenson@redhat.com>
12043
12044 * server.h (debug_hw_points): Don't declare.
12045 * server.c (debug_hw_points): Don't define. Replace all uses
12046 with show_debug_regs.
12047 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12048 all uses with show_debug_regs.
12049
2e4bb98a
EBM
120502014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12051
12052 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12053 endianness into account.
12054 (ppc_supply_ptrace_register): Likewise.
12055
ac740bc7
JH
120562014-09-03 James Hogan <james.hogan@imgtec.com>
12057
12058 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12059 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12060
97ea6506
GB
120612014-09-03 Gary Benson <gbenson@redhat.com>
12062
12063 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12064 ALL_DEBUG_ADDRESS_REGISTERS.
12065
df7e5265
GB
120662014-09-02 Gary Benson <gbenson@redhat.com>
12067
12068 * i386-low.h: Renamed as...
12069 * x86-low.h: New file. All type, function and variable name
12070 prefixes changed from "i386_" to "x86_". All references updated.
12071 * i386-low.c: Renamed as...
12072 * x86-low.c: New file. All type, function and variable name
12073 prefixes changed from "i386_" to "x86_". All references updated.
12074
ed859da7
GB
120752014-09-02 Gary Benson <gbenson@redhat.com>
12076
12077 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12078 (x86_linux_new_thread): Likewise.
12079
860789c7
GB
120802014-08-29 Gary Benson <gbenson@redhat.com>
12081
12082 * server.h (setjmp.h): Do not include.
12083 (toplevel): Do not declare.
12084 (common-exceptions.h): Include.
12085 (cleanups.h): Likewise.
12086 * server.c (toplevel): Do not define.
12087 (exit_code): New static global.
12088 (detach_or_kill_for_exit_cleanup): New function.
12089 (main): New function. Original main renamed to...
12090 (captured_main): New function.
12091 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12092
ff55e1b5
GB
120932014-08-29 Gary Benson <gbenson@redhat.com>
12094
12095 * Makefile.in (SFILES): Add common/common-exceptions.c.
12096 (OBS): Add common-exceptions.o.
12097 (common-exceptions.o): New rule.
12098 * utils.c (prepare_to_throw_exception): New function.
12099
e9bcb658
GB
121002014-08-29 Gary Benson <gbenson@redhat.com>
12101
12102 * config.in: Regenerate.
12103 * configure: Likewise.
12104
e3180625
GB
121052014-08-29 Gary Benson <gbenson@redhat.com>
12106
12107 * Makefile.in (SFILES): Add common/cleanups.c.
12108 (OBS): cleanups.o.
12109 (cleanups.o): New rule.
12110
e3d6ba5d
GB
121112014-08-29 Gary Benson <gbenson@redhat.com>
12112
12113 * utils.c (internal_vwarning): New function.
12114
7096e886
GB
121152014-08-28 Gary Benson <gbenson@redhat.com>
12116
12117 * utils.h (fatal): Remove declaration.
12118 * utils.c (fatal): Remove function.
12119
14ce3192
GB
121202014-08-28 Gary Benson <gbenson@redhat.com>
12121
12122 * tracepoint.c (gdb_agent_init): Replace fatal with
12123 perror_with_name.
12124 (initialize_tracepoint): Likewise.
12125
50278d59
GB
121262014-08-28 Gary Benson <gbenson@redhat.com>
12127
12128 * remote-utils.c (remote_prepare): Replace fatal with error.
12129
aa96c426
GB
121302014-08-28 Gary Benson <gbenson@redhat.com>
12131
12132 * linux-low.c (linux_async): Replace fatal with warning.
12133 Tidy up and return.
12134 (linux_start_non_stop): Return -1 if linux_async failed.
12135
f7160e97
GB
121362014-08-28 Gary Benson <gbenson@redhat.com>
12137
12138 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12139 gdb_assert.
12140 (i386_dr_low_get_addr): Remove vague comment.
12141 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12142 gdb_assert.
12143
38e08fca
GB
121442014-08-28 Gary Benson <gbenson@redhat.com>
12145
12146 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12147 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12148 internal_error.
12149 (linux_resume_one_lwp): Likewise.
12150 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12151 gdb_assert.
12152 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12153 with internal_error.
12154 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12155 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12156 (find_register_by_name): Replace fatal with internal_error.
12157 (find_regno): Likewise.
12158 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12159 * thread-db.c (thread_db_create_event): Likewise.
12160 (thread_db_load_search): Likewise.
12161 (try_thread_db_load_1): Likewise.
12162 * tracepoint.c (get_jump_space_head): Replace fatal with
12163 internal_error.
12164 (claim_trampoline_space): Likewise.
12165 (have_fast_tracepoint_trampoline_buffer): Likewise.
12166 (cmd_qtstart): Likewise.
12167 (stop_tracing): Likewise.
12168 (fast_tracepoint_collecting): Likewise.
12169 (target_malloc): Likewise.
12170 (download_tracepoint): Likewise.
12171 (download_trace_state_variables): Replace check with gdb_assert.
12172 (upload_fast_traceframes): Replace fatal with internal_error.
12173
34abf635
GB
121742014-08-19 Tom Tromey <tromey@redhat.com>
12175 Gary Benson <gbenson@redhat.com>
12176
12177 * Makefile.in (SFILES): Add common/common-debug.c.
12178 (OBS): Add common-debug.o.
12179 (common-debug.o): New rule.
12180 * debug.h (debug_printf): Don't declare.
12181 * debug.c (debug_printf): Renamed and rewritten as...
12182 (debug_vprintf): New function.
12183
f6e94d78
GB
121842014-08-19 Gary Benson <gbenson@redhat.com>
12185
12186 * utils.h: Do not include print-utils.h.
12187
9239eeab
GB
121882014-08-19 Tom Tromey <tromey@redhat.com>
12189 Gary Benson <gbenson@redhat.com>
12190
12191 * server.h: Add static assertion.
12192 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12193
ef87c8bb
GB
121942014-08-19 Tom Tromey <tromey@redhat.com>
12195 Gary Benson <gbenson@redhat.com>
12196
12197 * Makefile.in (SFILES): Add common/errors.c.
12198 (OBS): Add errors.o.
12199 (IPA_OBS): Add errors-ipa.o.
12200 (errors.o): New rule.
12201 (errors-ipa.o): Likewise.
12202 * utils.h (perror_with_name, error, warning): Don't declare.
12203 * utils.c (warning): Renamed and rewritten as...
12204 (vwarning): New function.
12205 (error): Renamed and rewritten as...
12206 (verror): New function.
12207 (internal_error): Renamed and rewritten as...
12208 (internal_verror): New function.
12209
bb974a24
GB
122102014-08-07 Gary Benson <gbenson@redhat.com>
12211
12212 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12213 * configure: Regenerate.
12214 * config.in: Likewise.
12215 * server.h: Do not include errno.h.
12216 * event-loop.c: Likewise.
12217 * hostio-errno.c: Likewise.
12218 * linux-low.c: Likewise.
12219 * remote-utils.c: Likewise.
12220 * spu-low.c: Likewise.
12221 * utils.c: Likewise.
12222 * gdbreplay.c: Unconditionally include errno.h.
12223
6d3d12eb
GB
122242014-08-07 Gary Benson <gbenson@redhat.com>
12225
12226 * server.h: Do not include string.h.
12227 * event-loop.c: Likewise.
12228 * linux-low.c: Likewise.
12229 * regcache.c: Likewise.
12230 * remote-utils.c: Likewise.
12231 * spu-low.c: Likewise.
12232 * utils.c: Likewise.
12233
dccbb609
GB
122342014-08-07 Gary Benson <gbenson@redhat.com>
12235
12236 * server.h: Do not include gdb_assert.h.
12237
e76df0d0
GB
122382014-08-07 Gary Benson <gbenson@redhat.com>
12239
12240 * server.h: Do not include common-utils.h.
12241
4cb9c816
GB
122422014-08-07 Gary Benson <gbenson@redhat.com>
12243
12244 * server.h: Do not include ptid.h.
12245 * notif.h: Likewise.
12246
3995eeee
GB
122472014-08-07 Gary Benson <gbenson@redhat.com>
12248
12249 * server.h: Do not include gdb_locale.h.
12250
cb9f1a9b
GB
122512014-08-07 Gary Benson <gbenson@redhat.com>
12252
12253 * server.h: Do not include gdb/signals.h.
12254 * win32-low.c: Likewise.
12255
a5fceff8
GB
122562014-08-07 Gary Benson <gbenson@redhat.com>
12257
12258 * server.h: Do not include pathmax.h.
12259
b9391142
GB
122602014-08-07 Gary Benson <gbenson@redhat.com>
12261
12262 * server.h: Do not include libiberty.h.
12263 * linux-bfin-low.c: Likewise.
12264
0e443c87
GB
122652014-08-07 Gary Benson <gbenson@redhat.com>
12266
12267 * server.h: Do not include ansidecl.h.
12268
8ebb3f56
GB
122692014-08-07 Gary Benson <gbenson@redhat.com>
12270
12271 * linux-x86-low.c: Do not include stddef.h.
12272 * lynx-ppc-low.c: Likewise.
12273 * tracepoint.c: Likewise.
12274
8980bdf6
GB
122752014-08-07 Gary Benson <gbenson@redhat.com>
12276
12277 * server.h: Do not include stdarg.h.
12278 * nto-low.c: Likewise.
12279
d7096f71
GB
122802014-08-07 Gary Benson <gbenson@redhat.com>
12281
12282 * server.h: Do not include stdlib.h.
12283 * inferiors.c: Likewise.
12284 * linux-low.c: Likewise.
12285 * regcache.c: Likewise.
12286 * spu-low.c: Likewise.
12287 * tracepoint.c: Likewise.
12288 * utils.c: Likewise.
12289
d02f550d
GB
122902014-08-07 Gary Benson <gbenson@redhat.com>
12291
12292 * server.h: Do not include stdio.h.
12293 * linux-low.c: Likewise.
12294 * remote-utils.c: Likewise.
12295 * spu-low.c: Likewise.
12296 * utils.c: Likewise.
12297 * wincecompat.c: Likewise.
12298
87f6c4e3
GB
122992014-08-06 Gary Benson <gbenson@redhat.com>
12300
12301 * regcache.c (init_register_cache): Move conditionals inside if.
12302
7089dca4
GB
123032014-08-06 Gary Benson <gbenson@redhat.com>
12304
12305 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12306
462f517e
GB
123072014-07-31 Gary Benson <gbenson@redhat.com>
12308
12309 * ax.h: Do not include server.h.
12310 * gdbthread.h: Likewise.
12311 * lynx-low.h: Likewise.
12312 * notif.h: Likewise.
12313
976411d6
GB
123142014-07-30 Gary Benson <gbenson@redhat.com>
12315
12316 * server.h: Include common-defs.h.
12317 Do not include config.h or build-gnulib-gdbserver/config.h.
12318
d41f6d8e
GB
123192014-07-30 Gary Benson <gbenson@redhat.com>
12320
12321 * hostio-errno.c: Move server.h to top of includes list.
12322 * inferiors.c: Likewise.
12323 * linux-x86-low.c: Likewise.
12324 * notif.c: Include server.h.
12325
314c6a35
TT
123262014-07-24 Tom Tromey <tromey@redhat.com>
12327 Gary Benson <gbenson@redhat.com>
12328
12329 * server.h (CORE_ADDR): Now unsigned.
12330
69ff6be5
PA
123312014-07-16 Pedro Alves <palves@redhat.com>
12332
12333 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12334
ce9e3fe7
PA
123352014-07-15 Pedro Alves <palves@redhat.com>
12336
12337 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12338 copy.
12339
e76126e8
PA
123402014-07-11 Pedro Alves <palves@redhat.com>
12341
12342 * linux-low.c (kill_wait_lwp): New function, based on
12343 kill_one_lwp_callback, but use my_waitpid directly.
12344 (kill_one_lwp_callback, linux_kill): Use it.
12345
8e9db26e
PA
123462014-06-23 Pedro Alves <palves@redhat.com>
12347
12348 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12349 before setting DR0..DR3.
12350
698b3e08
GB
123512014-06-20 Gary Benson <gbenson@redhat.com>
12352
12353 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12354 * configure: Regenerated.
12355 * config.in: Likewise.
12356
125f8a3d
GB
123572014-06-20 Gary Benson <gbenson@redhat.com>
12358
12359 * Makefile.in (SFILES): Update locations for files moved
12360 from common to nat.
12361 (object file files): Reordered.
12362
42995dbd
GB
123632014-06-20 Gary Benson <gbenson@redhat.com>
12364
12365 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12366 (i386_dr_low_set_addr): Likewise.
12367 (i386_dr_low_get_addr): Likewise.
12368 (i386_dr_low_can_set_control): Likewise.
12369 (i386_dr_low_set_control): Likewise.
12370 (i386_dr_low_get_control): Likewise.
12371 (i386_dr_low_get_status): Likewise.
12372 (i386_get_debug_register_length): Likewise.
12373 * linux-x86-low.c (i386_dr_low_set_addr):
12374 Changed signature. Made static.
12375 (i386_dr_low_get_addr): Likewise.
12376 (i386_dr_low_set_control): Likewise.
12377 (i386_dr_low_get_control): Likewise.
12378 (i386_dr_low_get_status): Likewise.
12379 (i386_dr_low): New global variable.
12380 * win32-i386-low.c (i386_dr_low_set_addr):
12381 Changed signature. Made static.
12382 (i386_dr_low_get_addr): Likewise.
12383 (i386_dr_low_set_control): Likewise.
12384 (i386_dr_low_get_control): Likewise.
12385 (i386_dr_low_get_status): Likewise.
12386 (i386_dr_low): New global variable.
12387
e1d2394b
MS
123882014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12389
12390 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12391 * Makefile.in (AR, AR_FLAGS): Define.
12392 * configure: Regenerate.
12393
3a8ee006
GB
123942014-06-19 Gary Benson <gbenson@redhat.com>
12395
12396 * Makefile.in (i386-dregs.o): New rule.
12397 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12398 * i386-low.c (target.h): Remove include.
12399 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12400 (DR_CONTROL_SHIFT): Likewise.
12401 (DR_CONTROL_SIZE): Likewise.
12402 (DR_RW_EXECUTE): Likewise.
12403 (DR_RW_WRITE): Likewise.
12404 (DR_RW_READ): Likewise.
12405 (DR_RW_IORW): Likewise.
12406 (DR_LEN_1): Likewise.
12407 (DR_LEN_2): Likewise.
12408 (DR_LEN_4): Likewise.
12409 (DR_LEN_8): Likewise.
12410 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12411 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12412 (DR_ENABLE_SIZE): Likewise.
12413 (DR_LOCAL_SLOWDOWN): Likewise.
12414 (DR_GLOBAL_SLOWDOWN): Likewise.
12415 (DR_CONTROL_RESERVED): Likewise.
12416 (I386_DR_CONTROL_MASK): Likewise.
12417 (I386_DR_VACANT): Likewise.
12418 (I386_DR_LOCAL_ENABLE): Likewise.
12419 (I386_DR_GLOBAL_ENABLE): Likewise.
12420 (I386_DR_DISABLE): Likewise.
12421 (I386_DR_SET_RW_LEN): Likewise.
12422 (I386_DR_GET_RW_LEN): Likewise.
12423 (I386_DR_WATCH_HIT): Likewise.
12424 (i386_wp_op_t): Likewise.
12425 (i386_show_dr): Likewise.
12426 (i386_length_and_rw_bits): Likewise.
12427 (i386_insert_aligned_watchpoint): Likewise.
12428 (i386_remove_aligned_watchpoint): Likewise.
12429 (i386_handle_nonaligned_watchpoint): Likewise.
12430 i386_update_inferior_debug_regs(): Likewise.
12431 (i386_dr_insert_watchpoint): Likewise.
12432 (i386_dr_remove_watchpoint): Likewise.
12433 (i386_dr_region_ok_for_watchpoint): Likewise.
12434 (i386_dr_stopped_data_address): Likewise.
12435 (i386_dr_stopped_by_watchpoint): Likewise.
12436
8f26655c
GB
124372014-06-19 Gary Benson <gbenson@redhat.com>
12438
12439 * i386-low.c (i386_dr_show): Renamed to
12440 i386_show_dr and made static. All uses updated.
12441 (i386_dr_length_and_rw_bits): Renamed to
12442 i386_length_and_rw_bits and made static.
12443 All uses updated.
12444 (i386_dr_insert_aligned_watchpoint): Renamed to
12445 i386_insert_aligned_watchpoint and made static.
12446 All uses updated.
12447 (i386_dr_remove_aligned_watchpoint): Renamed to
12448 i386_remove_aligned_watchpoint and made static.
12449 All uses updated.
12450 (i386_dr_update_inferior_debug_regs): Renamed to
12451 i386_update_inferior_debug_regs and made static.
12452 All uses updated.
12453
b9228891
GB
124542014-06-18 Gary Benson <gbenson@redhat.com>
12455
5171def3
GB
12456 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12457 (i386_dr_low_can_set_control): Likewise.
12458 (i386_get_debug_register_length): Likewise.
12459 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12460 (i386_dr_low_can_set_control): Likewise.
12461 (i386_get_debug_register_length): Likewise.
12462
124632014-06-17 Gary Benson <gbenson@redhat.com>
12464
b9228891
GB
12465 * i386-low.h (i386-dregs.h): New include.
12466 (DR_FIRSTADDR): Now in i386-dregs.h.
12467 (DR_LASTADDR): Likewise.
12468 (DR_NADDR): Likewise.
12469 (DR_STATUS): Likewise.
12470 (DR_CONTROL): Likewise.
12471 (i386_debug_reg_state): Likewise.
12472 (i386_dr_insert_watchpoint): Likewise.
12473 (i386_dr_remove_watchpoint): Likewise.
12474 (i386_dr_region_ok_for_watchpoint): Likewise.
12475 (i386_dr_stopped_data_address): Likewise.
12476 (i386_dr_stopped_by_watchpoint): Likewise.
12477 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12478
4be83cc2
GB
124792014-06-18 Gary Benson <gbenson@redhat.com>
12480
12481 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12482 i386_dr_insert_watchpoint.
12483 (i386_low_remove_watchpoint): Renamed to
12484 i386_dr_remove_watchpoint.
12485 (i386_low_region_ok_for_watchpoint): Renamed to
12486 i386_dr_region_ok_for_watchpoint.
12487 (i386_low_stopped_data_address): Renamed to
12488 i386_dr_stopped_data_address.
12489 (i386_low_stopped_by_watchpoint): Renamed to
12490 i386_dr_stopped_by_watchpoint.
12491 * i386-low.c (i386_show_dr): Renamed to
12492 i386_dr_show and made nonstatic. All uses updated.
12493 (i386_length_and_rw_bits): Renamed to
12494 i386_dr_length_and_rw_bits and made nonstatic.
12495 All uses updated.
12496 (i386_insert_aligned_watchpoint): Renamed to
12497 i386_dr_insert_aligned_watchpoint and made nonstatic.
12498 All uses updated.
12499 (i386_remove_aligned_watchpoint): Renamed to
12500 i386_dr_remove_aligned_watchpoint and made nonstatic.
12501 All uses updated.
12502 (i386_update_inferior_debug_regs): Renamed to
12503 i386_dr_update_inferior_debug_regs and made nonstatic.
12504 All uses updated.
12505 (i386_low_insert_watchpoint): Renamed to
12506 i386_dr_insert_watchpoint. All uses updated.
12507 (i386_low_remove_watchpoint): Renamed to
12508 i386_dr_remove_watchpoint. All uses updated.
12509 (i386_low_region_ok_for_watchpoint): Renamed to
12510 i386_dr_region_ok_for_watchpoint. All uses updated.
12511 (i386_low_stopped_data_address): Renamed to
12512 i386_dr_stopped_data_address. All uses updated.
12513 (i386_low_stopped_by_watchpoint): Renamed to
12514 i386_dr_stopped_by_watchpoint. All uses updated.
12515
131aa0d4
GB
125162014-06-18 Gary Benson <gbenson@redhat.com>
12517
12518 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12519 (i386_dr_low_can_set_control): Likewise.
12520 (i386_insert_aligned_watchpoint): New check.
12521
d9305f7f
GB
125222014-06-18 Gary Benson <gbenson@redhat.com>
12523
12524 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12525 Renamed to state.
12526
e927c9fc
GB
125272014-06-18 Gary Benson <gbenson@redhat.com>
12528
12529 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12530 instead of fatal and error.
12531 (i386_handle_nonaligned_watchpoint): Likewise.
12532
1b6d4134
GB
125332014-06-18 Gary Benson <gbenson@redhat.com>
12534
12535 * i386-low.c (i386_get_debug_register_length): New macro.
12536 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12537 (i386_show_dr): Use debug_printf instead of fprintf. Use
12538 phex to format values.
12539
6e62758f
GB
125402014-06-18 Gary Benson <gbenson@redhat.com>
12541
12542 * i386-low.h: Comment changes.
12543 * i386-low.c: Likewise.
12544
fc6e2f03
GB
125452014-06-18 Gary Benson <gbenson@redhat.com>
12546
12547 * i386-low.c: Whitespace changes.
12548
f9d1eeed
TT
125492014-06-12 Tom Tromey <tromey@redhat.com>
12550
12551 * utils.c (freeargv): Remove.
12552
0b04e523
TT
125532014-06-12 Tom Tromey <tromey@redhat.com>
12554
12555 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12556 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12557 (parse_debug_format_options): Likewise.
12558 (gdbserver_usage): Likewise.
12559 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12560 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12561 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12562 against libiberty.
12563 ($(LIBGNU)): Depend on libiberty.
12564 (all-lib): Recurse into all subdirs.
12565 (install-only): Invoke "install" target in subdirs.
12566 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12567 targets.
12568 * configure: Rebuild.
12569 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12570 for vasprintf, vsnprintf, or gettimeofday.
12571 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12572 srv_tgtobj.
12573
270c9937
JB
125742014-06-05 Joel Brobecker <brobecker@adacore.com>
12575
12576 * development.sh: Delete.
12577 * Makefile.in (config.status): Adjust dependency on development.sh.
12578 * configure.ac: Adjust development.sh source call.
12579 * configure: Regenerate.
12580
0a261ed8
PA
125812014-06-02 Pedro Alves <palves@redhat.com>
12582
12583 * ax.c (gdb_free_agent_expr): New function.
12584 * ax.h (gdb_free_agent_expr): New declaration.
12585 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12586 list.
12587 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12588 static.
12589 (clear_breakpoint_conditions_and_commands): New function.
12590 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12591 (clear_breakpoint_conditions_and_commands): New declaration.
12592
e9dae05e
RR
125932014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12594
12595 * linux-aarch64-low.c (asm/ptrace.h): Include.
12596
5876f503
JK
125972014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12598
12599 Fix TLS access for -static -pthread.
12600 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12601 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12602 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12603
802e8e6d
PA
126042014-05-20 Pedro Alves <palves@redhat.com>
12605
12606 * linux-aarch64-low.c (aarch64_insert_point)
12607 (aarch64_remove_point): No longer check whether the type is
12608 supported here. Adjust to new interface.
12609 (the_low_target): Install aarch64_supports_z_point_type as
12610 supports_z_point_type method.
12611 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12612 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12613 instead of a Z packet char. Adjust.
12614 (arm_supports_z_point_type): New function.
12615 (arm_insert_point, arm_remove_point): Adjust to new interface.
12616 (the_low_target): Install arm_supports_z_point_type.
12617 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12618 (cris_insert_point, cris_remove_point): Adjust to new interface.
12619 Don't check whether the type is supported here.
12620 (the_low_target): Install cris_supports_z_point_type.
12621 * linux-low.c (linux_supports_z_point_type): New function.
12622 (linux_insert_point, linux_remove_point): Adjust to new interface.
12623 * linux-low.h (struct linux_target_ops) <insert_point,
12624 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12625 raw_breakpoint pointer parameter.
12626 <supports_z_point_type>: New method.
12627 * linux-mips-low.c (mips_supports_z_point_type): New function.
12628 (mips_insert_point, mips_remove_point): Adjust to new interface.
12629 Use mips_supports_z_point_type.
12630 (the_low_target): Install mips_supports_z_point_type.
12631 * linux-ppc-low.c (the_low_target): Install NULL as
12632 supports_z_point_type method.
12633 * linux-s390-low.c (the_low_target): Install NULL as
12634 supports_z_point_type method.
12635 * linux-sparc-low.c (the_low_target): Install NULL as
12636 supports_z_point_type method.
12637 * linux-x86-low.c (x86_supports_z_point_type): New function.
12638 (x86_insert_point): Adjust to new insert_point interface. Use
12639 insert_memory_breakpoint. Adjust to new
12640 i386_low_insert_watchpoint interface.
12641 (x86_remove_point): Adjust to remove_point interface. Use
12642 remove_memory_breakpoint. Adjust to new
12643 i386_low_remove_watchpoint interface.
12644 (the_low_target): Install x86_supports_z_point_type.
12645 * lynx-low.c (lynx_target_ops): Install NULL as
12646 supports_z_point_type callback.
12647 * nto-low.c (nto_supports_z_point_type): New.
12648 (nto_insert_point, nto_remove_point): Adjust to new interface.
12649 (nto_target_ops): Install nto_supports_z_point_type.
12650 * mem-break.c: Adjust intro comment.
12651 (struct raw_breakpoint) <raw_type, size>: New fields.
12652 <inserted>: Update comment.
12653 <shlib_disabled>: Delete field.
12654 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12655 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12656 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12657 (raw_bkpt_type_to_target_hw_bp_type): New function.
12658 (find_enabled_raw_code_breakpoint_at): New function.
12659 (find_raw_breakpoint_at): New type and size parameters. Use them.
12660 (insert_memory_breakpoint): New function, based off
12661 set_raw_breakpoint_at.
12662 (remove_memory_breakpoint): New function.
12663 (set_raw_breakpoint_at): Reimplement.
12664 (set_breakpoint): New, based on set_breakpoint_at.
12665 (set_breakpoint_at): Reimplement.
12666 (delete_raw_breakpoint): Go through the_target->remove_point
12667 instead of assuming memory breakpoints.
12668 (find_gdb_breakpoint_at): Delete.
12669 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12670 (find_gdb_breakpoint): New function.
12671 (set_gdb_breakpoint_at): Delete.
12672 (z_type_supported): New function.
12673 (set_gdb_breakpoint_1): New function, loosely based off
12674 set_gdb_breakpoint_at.
12675 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12676 (delete_gdb_breakpoint_at): Delete.
12677 (delete_gdb_breakpoint_1): New function, loosely based off
12678 delete_gdb_breakpoint_at.
12679 (delete_gdb_breakpoint): New function.
12680 (clear_gdb_breakpoint_conditions): Rename to ...
12681 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12682 breakpoint.
12683 (add_condition_to_breakpoint): Make static.
12684 (add_breakpoint_condition): Take a struct breakpoint pointer
12685 instead of an address. Adjust.
12686 (gdb_condition_true_at_breakpoint): Rename to ...
12687 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12688 z_type parameter.
12689 (gdb_condition_true_at_breakpoint): Reimplement.
12690 (add_breakpoint_commands): Take a struct breakpoint pointer
12691 instead of an address. Adjust.
12692 (gdb_no_commands_at_breakpoint): Rename to ...
12693 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12694 parameter. Return true if no breakpoint was found. Change debug
12695 output.
12696 (gdb_no_commands_at_breakpoint): Reimplement.
12697 (run_breakpoint_commands): Rename to ...
12698 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12699 and change return type to boolean.
12700 (run_breakpoint_commands): New function.
12701 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12702 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12703 breakpoint. Go through the_target->remove_point instead of
12704 assuming memory breakpoint.
12705 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12706 software and hardware breakpoints.
12707 (reinsert_raw_breakpoint): Go through the_target->insert_point
12708 instead of assuming memory breakpoint.
12709 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12710 software and hardware breakpoints.
12711 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12712 Check both software and hardware breakpoints.
12713 (validate_inserted_breakpoint): Assert the breakpoint is a
12714 software breakpoint. Set the inserted flag to -1 instead of
12715 setting shlib_disabled.
12716 (delete_disabled_breakpoints): Adjust.
12717 (validate_breakpoints): Only validate software breakpoints.
12718 Adjust to inserted flag change.
12719 (check_mem_read, check_mem_write): Skip breakpoint types other
12720 than software breakpoints. Adjust to inserted flag change.
12721 * mem-break.h (enum raw_bkpt_type): New enum.
12722 (raw_breakpoint, struct process_info): Forward declare.
12723 (Z_packet_to_target_hw_bp_type): Delete declaration.
12724 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12725 (set_gdb_breakpoint, delete_gdb_breakpoint)
12726 (clear_breakpoint_conditions): New declarations.
12727 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12728 (breakpoint_inserted_here): Update comment.
12729 (add_breakpoint_condition, add_breakpoint_commands): Replace
12730 address parameter with a breakpoint pointer parameter.
12731 (gdb_breakpoint_here): Update comment.
12732 (delete_gdb_breakpoint_at): Delete.
12733 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12734 * server.c (process_point_options): Take a struct breakpoint
12735 pointer instead of an address. Adjust.
12736 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12737 delete_gdb_breakpoint.
12738 * spu-low.c (spu_target_ops): Install NULL as
12739 supports_z_point_type method.
12740 * target.h: Include mem-break.h.
12741 (struct target_ops) <prepare_to_access_memory>: Update comment.
12742 <supports_z_point_type>: New field.
12743 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12744 instead of a char. Also take a raw breakpoint pointer.
12745 * win32-arm-low.c (the_low_target): Install NULL as
12746 supports_z_point_type.
12747 * win32-i386-low.c (i386_supports_z_point_type): New function.
12748 (i386_insert_point, i386_remove_point): Adjust to new interface.
12749 (the_low_target): Install i386_supports_z_point_type.
12750 * win32-low.c (win32_supports_z_point_type): New function.
12751 (win32_insert_point, win32_remove_point): Adjust to new interface.
12752 (win32_target_ops): Install win32_supports_z_point_type.
12753 * win32-low.h (struct win32_target_ops):
12754 <supports_z_point_type>: New method.
12755 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12756 instead of a char. Also take a raw breakpoint pointer.
12757
932539e3
PA
127582014-05-20 Pedro Alves <palves@redhat.com>
12759
12760 * mem-break.h: Include break-common.h.
12761 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12762 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12763 (Z_packet_to_target_hw_bp_type): New declaration.
12764 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12765 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12766 (Z_PACKET_ACCESS_WP): Delete macros.
12767 (Z_packet_to_hw_type): Delete function.
12768 * i386-low.h: Don't include break-common.h here.
12769 (Z_packet_to_hw_type): Delete declaration.
12770 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12771 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12772 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12773 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12774 * linux-aarch64-low.c: Don't include break-common.h here.
12775 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12776 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12777 (Z_packet_to_target_hw_bp_type): Delete function.
12778 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12779 function.
12780 (mips_insert_point, mips_remove_point): Use
12781 Z_packet_to_target_hw_bp_type.
12782
4ff0d3d8
PA
127832014-05-20 Pedro Alves <palves@redhat.com>
12784
12785 * linux-aarch64-low.c: Include break-common.h.
12786 (enum target_point_type): Delete.
12787 (Z_packet_to_point_type): Rename to ...
12788 (Z_packet_to_target_hw_bp_type): ... this, and return a
12789 target_hw_bp_type instead.
12790 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12791 instead of an enum target_point_type.
12792 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12793 breakpoint type.
12794 (aarch64_dr_state_insert_one_point)
12795 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12796 (aarch64_handle_aligned_watchpoint)
12797 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12798 Take an enum target_hw_bp_type instead of an enum
12799 target_point_type.
12800 (aarch64_supports_z_point_type): New function.
12801 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12802 use Z_packet_to_target_hw_bp_type.
12803
786dc519
JB
128042014-05-20 Joel Brobecker <brobecker@adacore.com>
12805
12806 * configure.ac: Only use -Werror by default when DEVELOPMENT
12807 is true.
12808 * configure: Regenerate.
12809
9e0aa64f
JK
128102014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12811
12812 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12813 * linux-x86-low.c (X86_64_USER_REGS): New.
12814 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12815
2b577b92
YQ
128162014-04-28 Yao Qi <yao@codesourcery.com>
12817
12818 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12819 name.
12820
94611da2
PA
128212014-04-25 Pedro Alves <palves@redhat.com>
12822
12823 PR server/16255
12824 * linux-low.c (linux_attach_fail_reason_string): New function.
12825 (linux_attach_lwp): Delete.
12826 (linux_attach_lwp_1): Rename to ...
12827 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12828 argument. Remove "initial" parameter. Return int instead of
12829 void. Don't error or warn here.
12830 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12831 failure to attach to the tgid. Call warning when failing to
12832 attach to an lwp.
12833 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12834 argument. Remove "initial" parameter. Return int instead of
12835 void. Don't error or warn here.
12836 (linux_attach_fail_reason_string): New declaration.
12837 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12838 interface change. Use linux_attach_fail_reason_string.
12839
01f9f808
MS
128402014-04-24 Michael Sturm <michael.sturm@mintel.com>
12841 Walfred Tedeschi <walfred.tedeschi@intel.com>
12842
12843 * Makefile.in: Added rules to handle new files
12844 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12845 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12846 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12847 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12848 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12849 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12850 x32-avx512-linux.o.
12851 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12852 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12853 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12854 i386/x32-avx512.xml.
12855 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12856 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12857 i386/x32-avx512-linux.xml.
12858 * i387-fp.c (num_avx512_k_registers): New constant for number
12859 of K registers.
12860 (num_avx512_zmmh_low_registers): New constant for number of
12861 lower ZMM registers (0-15).
12862 (num_avx512_zmmh_high_registers): New constant for number of
12863 higher ZMM registers (16-31).
12864 (num_avx512_ymmh_registers): New contant for number of higher
12865 YMM registers (ymm16-31 added by avx521 on x86_64).
12866 (num_avx512_xmm_registers): New constant for number of higher
12867 XMM registers (xmm16-31 added by AVX512 on x86_64).
12868 (struct i387_xsave): Add space for AVX512 registers.
12869 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12870 Add code to handle AVX512 registers.
12871 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12872 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12873 prototypei from generated file.
12874 (tdesc_amd64_avx512_linux): Likewise.
12875 (init_registers_x32_avx512_linux): Likewise.
12876 (tdesc_x32_avx512_linux): Likewise.
12877 (init_registers_i386_avx512_linux): Likewise.
12878 (tdesc_i386_avx512_linux): Likewise.
12879 (x86_64_regmap): Add AVX512 registers.
12880 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12881 mask.
12882 (initialize_low_arch): Add code to initialize AVX512 registers.
12883
51aa91f9
PA
128842014-04-23 Pedro Alves <palves@redhat.com>
12885
12886 * mem-break.c (find_gdb_breakpoint_at): Make static.
12887 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12888
a4165e94
PA
128892014-04-23 Pedro Alves <palves@redhat.com>
12890
12891 * i386-low.c: Don't include break-common.h here.
12892 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12893 prototype to take target_hw_bp_type as argument instead of a Z
12894 packet char.
12895 * i386-low.h: Include break-common.h here.
12896 (Z_packet_to_hw_type): Declare.
12897 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12898 prototypes.
12899 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12900 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12901 (x86_remove_point): Convert the packet number to a
12902 target_hw_bp_type before calling i386_low_remove_watchpoint.
12903 * win32-i386-low.c (i386_insert_point): Convert the packet number
12904 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12905 (i386_remove_point): Convert the packet number to a
12906 target_hw_bp_type before calling i386_low_remove_watchpoint.
12907
b8acf843
PA
129082014-04-23 Pedro Alves <palves@redhat.com>
12909
12910 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12911
d708bcd1
PA
129122014-04-10 Pedro Alves <palves@redhat.com>
12913
12914 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12915 Check if the condition or command is NULL before checking if the
12916 breakpoint is known. On success, return true.
12917 * mem-break.h (add_breakpoint_condition): Document return.
12918 (add_breakpoint_commands): Add describing comment.
12919 * server.c (skip_to_semicolon): New function.
12920 (process_point_options): Use it.
12921
2eec7d5b
PA
129222014-04-09 Pedro Alves <palves@redhat.com>
12923
12924 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12925 to lwpid_of.
12926
fa96cb38
PA
129272014-02-27 Pedro Alves <palves@redhat.com>
12928
12929 PR 12702
12930 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12931 macros.
12932 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12933 output.
12934 (last_thread_of_process_p): Take a PID argument instead of a
12935 thread pointer.
12936 (linux_wait_for_lwp): Delete.
12937 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12938 functions.
12939 (linux_low_filter_event): New function, party factored out from
12940 linux_wait_for_event.
12941 (linux_wait_for_event): Rename to ...
12942 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12943 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12944 sigsuspend. Check for zombie leaders.
12945 (linux_wait_for_event): Reimplement as wrapper around
12946 linux_wait_for_event_filtered.
12947 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12948 a normal or signal exit is seen, it's the whole process exiting.
12949 (wait_for_sigstop): No longer a for_each_inferior callback.
12950 Rewrite on top of linux_wait_for_event_filtered.
12951 (stop_all_lwps): Call wait_for_sigstop directly.
12952 * server.c (resume, handle_target_event): Handle
12953 TARGET_WAITKIND_NO_RESUMED.
12954
d763de10
JB
129552014-02-26 Joel Brobecker <brobecker@adacore.com>
12956
12957 * win32-low.c (psapi_get_dll_name,
12958 * win32_CreateToolhelp32Snapshot): Delete.
12959 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12960 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12961 Delete.
12962 (handle_load_dll): Add function description.
12963 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12964
850a0f76
JB
129652014-02-26 Joel Brobecker <brobecker@adacore.com>
12966
12967 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12968 Add comment.
12969 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12970 base address when calling win32_add_one_solib.
12971 (handle_load_dll): Delete local variable load_addr.
12972 Remove 0x1000 offset applied to DLL base address when calling
12973 win32_add_one_solib.
12974 (handle_unload_dll): Add comment.
12975
f25b3fc3
JB
129762014-02-26 Joel Brobecker <brobecker@adacore.com>
12977
12978 * win32-low.c (win32_add_all_dlls): Renames
12979 win32_ensure_ntdll_loaded. Rewrite function documentation.
12980 Adjust implementation to always load all DLLs.
12981 Add 0x1000 offset to DLL base address when calling
12982 win32_add_one_solib.
12983 (child_initialization_done): New static global.
12984 (do_initial_child_stuff): Set child_initialization_done to
12985 zero during child initialization, and 1 after. Replace call
12986 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12987 Add comment.
12988 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12989 (handle_unload_dll): Add function documentation.
12990 (get_child_debug_event): Ignore load and unload DLL events
12991 during child initialization.
12992
d86d4aaf
DE
129932014-02-20 Doug Evans <dje@google.com>
12994
3bc32da3 12995 Remove global all_lwps.
d86d4aaf
DE
12996 * inferiors.h (ptid_of): Move here from linux-low.h.
12997 (pid_of, lwpid_of): Ditto.
12998 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12999 parameter is a struct thread_info * now.
13000 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13001 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13002 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13003 directly.
13004 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13005 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13006 * linux-arm-low.c (update_registers_callback): Update, "entry"
13007 parameter is a struct thread_info * now.
13008 Fetch lwpid from current_inferior directly.
13009 (arm_insert_point): Pass &all_threads to find_inferior instead of
13010 &all_lwps.
13011 (arm_remove_point): Ditto.
13012 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13013 (arm_prepare_to_resume): Fetch pid from thread.
13014 (arm_read_description): Fetch lwpid from current_inferior directly.
13015 * linux-low.c (all_lwps): Delete.
13016 (delete_lwp): Delete call to remove_inferior.
13017 (handle_extended_wait): Fetch lwpid from thread.
13018 (add_lwp): Don't set lwp->entry.id. Remove call to
13019 add_inferior_to_list.
13020 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13021 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13022 (kill_one_lwp_callback): Ditto.
13023 (linux_kill): Don't dereference NULL pointer.
13024 Fetch ptid,lwpid from thread.
13025 (get_detach_signal): Fetch ptid from thread.
13026 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13027 Simplify call to regcache_invalidate_thread.
13028 (delete_lwp_callback): Update, "entry" parameter is a
13029 struct thread_info * now. Fetch pid from thread.
13030 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13031 (status_pending_p_callback): Update, "entry" parameter is a
13032 struct thread_info * now. Fetch ptid from thread.
13033 (find_lwp_pid): Update, "entry" parameter is a
13034 struct thread_info * now.
13035 (linux_wait_for_lwp): Fetch pid from thread.
13036 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13037 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13038 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13039 (dequeue_one_deferred_signal): Ditto.
13040 (cancel_breakpoint): Fetch ptid from current_inferior.
13041 (linux_wait_for_event): Pass &all_threads to find_inferior,
13042 not &all_lwps. Fetch ptid, lwpid from thread.
13043 (count_events_callback): Update, "entry" parameter is a
13044 struct thread_info * now.
13045 (select_singlestep_lwp_callback): Ditto.
13046 (select_event_lwp_callback): Ditto.
13047 (cancel_breakpoints_callback): Ditto.
13048 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13049 not &all_lwps.
13050 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13051 (unsuspend_one_lwp): Update, "entry" parameter is a
13052 struct thread_info * now.
13053 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13054 not &all_lwps.
13055 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13056 Fetch lwpid from thread, not lwp.
13057 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13058 Pass &all_threads to find_inferior, not &all_lwps.
13059 (send_sigstop): Fetch lwpid from thread, not lwp.
13060 (send_sigstop_callback): Update, "entry" parameter is a
13061 struct thread_info * now.
13062 (suspend_and_send_sigstop_callback): Ditto.
13063 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13064 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13065 struct thread_info * now.
13066 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13067 from thread, lwp.
13068 (lwp_running): Update, "entry" parameter is a
13069 struct thread_info * now.
13070 (stop_all_lwps): Fetch ptid from thread.
13071 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13072 (linux_resume_one_lwp): Fetch lwpid from thread.
13073 (linux_set_resume_request): Update, "entry" parameter is a
13074 struct thread_info * now. Fetch pid, lwpid from thread.
13075 (resume_status_pending_p): Update, "entry" parameter is a
13076 struct thread_info * now.
13077 (need_step_over_p): Ditto. Fetch lwpid from thread.
13078 (start_step_over): Fetch lwpid from thread.
13079 (linux_resume_one_thread): Update, "entry" parameter is a
13080 struct thread_info * now. Fetch lwpid from thread.
13081 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13082 (proceed_one_lwp): Update, "entry" parameter is a
13083 struct thread_info * now. Fetch lwpid from thread.
13084 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13085 struct thread_info * now.
13086 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13087 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13088 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13089 directly.
13090 (regsets_store_inferior_registers): Ditto.
13091 (fetch_register, store_register): Ditto.
13092 (linux_read_memory, linux_write_memory): Ditto.
13093 (linux_request_interrupt): Ditto.
13094 (linux_read_auxv): Ditto.
13095 (linux_xfer_siginfo): Ditto.
13096 (linux_qxfer_spu): Ditto.
13097 (linux_qxfer_libraries_svr4): Ditto.
13098 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13099 moved to inferiors.h.
13100 (get_lwp): Delete.
13101 (get_thread_lwp): Update.
13102 (struct lwp_info): Delete member "entry". Simplify comment for
13103 member "thread".
13104 (all_lwps): Delete.
13105 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13106 current_inferior directly.
13107 (update_watch_registers_callback): Update, "entry" parameter is a
13108 struct thread_info * now. Fetch pid from thread.
13109 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13110 (mips_insert_point): Fetch lwpid from current_inferior.
13111 Pass &all_threads to find_inferior, not &all_lwps.
13112 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13113 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13114 directly.
13115 (mips_stopped_data_address): Ditto.
13116 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13117 directly.
13118 * linux-tile-low.c (tile_arch_setup): Ditto.
13119 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13120 (update_debug_registers_callback): Update, "entry" parameter is a
13121 struct thread_info * now. Fetch pid from thread.
13122 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13123 Pass &all_threads to find_inferior, not &all_lwps.
13124 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13125 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13126 Pass &all_threads to find_inferior, not &all_lwps.
13127 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13128 (i386_dr_low_get_status): Ditto.
13129 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13130 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13131 (x86_linux_read_description): Ditto.
13132 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13133
3b8361aa
DE
131342014-02-20 Doug Evans <dje@google.com>
13135
13136 * inferiors.c (get_first_inferior): Fix buglet.
13137
f7667f0d
DE
131382014-02-19 Doug Evans <dje@google.com>
13139
13140 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13141 * inferiors.c (add_thread): Change result type to struct thread_info *.
13142 All callers updated.
13143 (add_lwp): Call add_thread here instead of in callers.
13144 All callers updated.
13145 * linux-low.h (get_lwp_thread): Rewrite.
13146 (struct lwp_info): New member "thread".
13147
b3312d80
DE
131482014-02-19 Doug Evans <dje@google.com>
13149
13150 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13151 All callers updated.
13152
ecc6f45c
DE
131532014-02-19 Doug Evans <dje@google.com>
13154
13155 * inferiors.c (add_thread): Fix whitespace.
13156
649ebbca
DE
131572014-02-19 Doug Evans <dje@google.com>
13158
13159 * dll.c (clear_dlls): Replace accessing list implemention details
13160 with API function.
13161 * gdbthread.h (get_first_thread): Declare.
13162 * inferiors.c (for_each_inferior_with_data): New function.
13163 (get_first_thread): New function.
13164 (find_thread_ptid): Simplify.
13165 (get_first_inferior): New function.
13166 (clear_list): Delete.
13167 (one_inferior_p): New function.
13168 (clear_inferior_list): New function.
13169 (clear_inferiors): Update.
13170 * inferiors.h (for_each_inferior_with_data): Declare.
13171 (clear_inferior_list): Declare.
13172 (one_inferior_p): Declare.
13173 (get_first_inferior): Declare.
13174 * linux-low.c (linux_wait_for_event): Replace accessing list
13175 implemention details with API function.
13176 * server.c (target_running): Ditto.
13177 (accumulate_file_name_length): New function.
13178 (emit_dll_description): New function.
13179 (handle_qxfer_libraries): Replace accessing list implemention
13180 details with API function.
13181 (handle_qxfer_threads_worker): New function.
13182 (handle_qxfer_threads_proper): Replace accessing list implemention
13183 details with API function.
13184 (handle_query): Ditto.
13185 (visit_actioned_threads_callback_ftype): New typedef.
13186 (visit_actioned_threads_data): New struct.
13187 (visit_actioned_threads): Rewrite to be find_inferior callback.
13188 (resume): Call find_inferior.
13189 (handle_status): Replace accessing list implemention
13190 details with API function.
13191 (process_serial_event): Replace accessing list implemention details
13192 with API function.
13193 * target.c (set_desired_inferior): Replace accessing list implemention
13194 details with API function.
13195 * tracepoint.c (same_process_p): New function.
13196 (gdb_agent_about_to_close): Replace accessing list implemention
13197 details with API function.
13198 * win32-low.c (child_delete_thread): Replace accessing list
13199 implemention details with API function.
13200 (match_dll_by_basename): New function.
13201 (dll_is_loaded_by_basename): New function.
13202 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13203 details call to dll_is_loaded_by_basename.
13204
80894984
DE
132052014-02-19 Doug Evans <dje@google.com>
13206
13207 * dll.h (struct dll_info): Add comment.
13208 * gdbthread.h (struct thread_info): Add comment.
13209 (current_ptid): Simplify.
13210 * inferiors.c (add_process): Update.
13211 (remove_process): Update.
13212 * inferiors.h (struct process_info): Rename member "head" to "entry".
13213 * linux-low.c (delete_lwp): Update.
13214 (add_lwp): Update.
13215 (last_thread_of_process_p): Update.
13216 (kill_one_lwp_callback, linux_kill): Update.
13217 (status_pending_p_callback): Update.
13218 (wait_for_sigstop): Update. Simplify read of ptid.
13219 (start_step_over): Update.
13220 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13221 (get_lwp_thread): Update.
13222 (struct lwp_info): Rename member "head" to "entry".
13223 * regcache.h (inferior_list_entry): Delete.
13224 * server.c (kill_inferior_callback): Update.
13225 (detach_or_kill_inferior_callback): Update.
13226 (print_started_pid): Update.
13227 (print_attached_pid): Update.
13228 (process_serial_event): Simplify read of ptid.
13229 * thread-db.c (thread_db_create_event): Update.
13230 (thread_db_get_tls_address): Update.
13231 * win32-low.c (current_inferior_ptid): Simplify.
13232
46917d26
TT
132332014-02-19 Tom Tromey <tromey@redhat.com>
13234
13235 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13236 argument.
13237 (target_supports_btrace): Update.
13238
0759a81e
YQ
132392014-02-14 Yao Qi <yao@codesourcery.com>
13240
13241 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13242 (rsp-low-ipa.o): New target.
13243
a7191e8b
TT
132442014-02-12 Tom Tromey <tromey@redhat.com>
13245
13246 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13247 convert_ascii_to_int.
13248 * regcache.c (registers_to_string): Likewise.
13249 * remote-utils.c (decode_M_packet): Likewise.
13250 * server.c (process_serial_event): Likewise.
13251
ff0e980e
TT
132522014-02-12 Tom Tromey <tromey@redhat.com>
13253
13254 * server.c (handle_query, handle_v_run): Use hex2bin, not
13255 unhexify.
13256 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13257
e9371aff
TT
132582014-02-12 Tom Tromey <tromey@redhat.com>
13259
13260 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13261 convert_int_to_ascii.
13262 * regcache.c (registers_to_string, collect_register_as_string):
13263 Likewise.
13264 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13265 Likewise.
13266 * server.c (process_serial_event): Likewise.
13267 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13268 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13269
971dc0b8
TT
132702014-02-12 Tom Tromey <tromey@redhat.com>
13271
13272 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13273 bin2hex, not hexify.
13274 * tracepoint.c (cmd_qtstatus): Likewise.
13275
0a822afb
TT
132762014-02-12 Tom Tromey <tromey@redhat.com>
13277
13278 * remote-utils.c (monitor_output): Pass explicit length to
13279 hexify.
13280
9c3d6531
TT
132812014-02-12 Tom Tromey <tromey@redhat.com>
13282
13283 * tracepoint.c: Include rsp-low.h.
13284 * server.c: Include rsp-low.h.
13285 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13286 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13287 declare.
13288 * remote-utils.c: Include rsp-low.h.
13289 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13290 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13291 (convert_int_to_ascii, convert_ascii_to_int): Move to
13292 common/rsp-low.c.
13293 * regcache.c: Include rsp-low.h.
13294 * ax.c: Include rsp-low.h.
13295 * Makefile.in (SFILES): Add common/rsp-low.c.
13296 (OBS): Add rsp-low.o.
13297 (rsp-low.o): New target.
13298
01fd3ea5
TT
132992014-02-12 Tom Tromey <tromey@redhat.com>
13300
13301 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13302 Include print-utils.h.
13303 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13304 (plongest, thirty_two, phex_nz): Remove.
13305 * Makefile.in (SFILES): Add common/print-utils.c.
13306 (OBS): Add print-utils.o.
13307 (print-utils-ipa.o): New target.
13308 (print-utils.o): New target.
13309 (IPA_OBJS): Add print-utils-ipa.o.
13310
e99dc820
TT
133112014-02-06 Tom Tromey <tromey@redhat.com>
13312
13313 * Makefile.in (SFILES): Fix indentation.
13314
ee1e2d4f
DE
133152014-02-05 Doug Evans <dje@google.com>
13316
13317 * linux-low.c (linux_wait_for_event): Improve comment.
13318 (linux_wait_1): Keep current_inferior in sync with event_child.
13319
f5a02773
DE
133202014-01-22 Doug Evans <dje@google.com>
13321
13322 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13323
87ce2a04
DE
133242014-01-22 Doug Evans <dje@google.com>
13325
13326 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13327 * configure: Regenerate.
13328 * config.in: Regenerate.
13329 * Makefile.in (SFILES): Add debug.c.
13330 (OBS): Add debug.o.
13331 * debug.c: New file.
13332 * debug.h: New file.
13333 * linux-aarch64-low.c (*): Update all debugging printfs to use
13334 debug_printf instead of fprintf.
13335 * linux-arm-low.c (*): Ditto.
13336 * linux-cris-low.c (*): Ditto.
13337 * linux-crisv32-low.c (*): Ditto.
13338 * linux-m32r-low.c (*): Ditto.
13339 * linux-sparc-low.c (*): Ditto.
13340 * linux-x86.c (*): Ditto.
13341 * linux-low.c (*): Ditto.
13342 (linux_wait_1): Add calls to debug_enter, debug_exit.
13343 (linux_wait): Remove redundant debugging printf.
13344 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13345 (linux_resume, unstop_all_lwps): Ditto.
13346 * mem-break.c (*): Update all debugging printfs to use
13347 debug_printf instead of fprintf.
13348 * remote-utils.c (*): Ditto.
13349 * thread-db.c (*): Ditto.
13350 * server.c #include <ctype.h>, "gdb_vecs.h".
13351 (debug_threads): Moved to debug.c.
13352 (*): Update all debugging printfs to use debug_printf instead of
13353 fprintf.
13354 (start_inferior): Replace call to fflush with call to debug_flush.
13355 (monitor_show_help): Mention set debug-format.
13356 (parse_debug_format_options): New function.
13357 (handle_monitor_command): Handle "monitor set debug-format".
13358 (gdbserver_usage): Mention --debug-format.
13359 (main): Parse --debug-format.
13360 * server.h (debug_threads): Declaration moved to debug.h.
13361 #include "debug.h".
13362 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13363 trace_debug_1 that uses debug_printf.
13364 (tracepoint_look_up_symbols): Update all debugging printfs to use
13365 debug_printf instead of fprintf.
13366
e671835b
BS
133672014-01-20 Baruch Siach <baruch@tkos.co.il>
13368
13369 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13370 sys/ptrace.h.
13371
b5737fa9
PA
133722014-01-17 Pedro Alves <palves@redhat.com>
13373
ea38d2a9 13374 PR build/16445
c7faa97a
PA
13375 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13376 defined after including gdb_proc_service.h.
b5737fa9 13377
40ed484e
DE
133782014-01-16 Doug Evans <dje@google.com>
13379
13380 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13381 (match_dll): Use it.
13382
969c39fb
MM
133832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13384
13385 * target.h (target_ops) <read_btrace>: Change parameters and
13386 return type to allow error reporting.
13387 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13388 trace reading errors on.
13389 * linux-low.c (linux_low_read_btrace): Pass trace reading
13390 errors on.
13391 (linux_low_disable_btrace): New.
13392
ab7f45ba
DE
133932014-01-15 Doug Evans <dje@google.com>
13394
13395 * inferiors.c (thread_id_to_gdb_id): Delete.
13396 * inferiors.h (thread_id_to_gdb_id): Delete.
13397
66af0f44
EZ
133982014-01-13 Eli Zaretskii <eliz@gnu.org>
13399
13400 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13401 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13402 versions.
13403
9939e131
PA
134042014-01-08 Pedro Alves <palves@redhat.com>
13405
13406 * server.c (handle_status): Don't discard previous queued stop
13407 replies or thread's pending status here.
13408 (main) <disconnection>: Do it here instead.
13409
b7ea362b
PA
134102014-01-08 Pedro Alves <palves@redhat.com>
13411
13412 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13413 * server.c (visit_actioned_threads, handle_pending_status): New
13414 function.
13415 (handle_v_cont): Factor out parts to ...
13416 (resume): ... this new function. If in all-stop, and a thread
13417 being resumed has a pending status, report it without actually
13418 resuming.
13419 (myresume): Adjust to use the new 'resume' function.
13420 (clear_pending_status_callback, set_pending_status_callback)
13421 (find_status_pending_thread_callback): New functions.
13422 (handle_status): Handle the case of multiple threads having
13423 interesting statuses to report. Report threads' real last signal
13424 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13425 with an interesting thread to report the status for, instead of
13426 always reporting the status of the first thread.
13427
28498c42
JB
134282014-01-01 Joel Brobecker <brobecker@adacore.com>
13429
13430 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13431 * gdbreplay.c (gdbreplay_version): Likewise.
13432
f45c82da
YZ
134332013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13434
13435 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13436 iov.iov_len with the real length in use.
13437
379a5e2d
JB
134382013-12-13 Joel Brobecker <brobecker@adacore.com>
13439
13440 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13441 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13442 for all targets that use win32-low.c.
13443 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13444 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13445
4210d83e
PA
134462013-12-13 Pedro Alves <palves@redhat.com>
13447
13448 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13449 if equal to TARGET_WAITKIND_LOADED.
13450 * win32-low.c (cached_status): New static global.
13451 (win32_wait): Add declaration.
13452 (do_initial_child_stuff): Flush all initial pending debug events
13453 up to the initial breakpoint.
13454 (win32_wait): If CACHED_STATUS was set, return that instead
13455 of doing a real wait. Remove the code resuming the execution
13456 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13457 during the initial phase. Also remove the code changing
13458 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13459 TARGET_WAITKIND_STOPPED.
13460
e7f0d979
YQ
134612013-12-11 Yao Qi <yao@codesourcery.com>
13462
13463 * notif.c (handle_notif_ack): Return 0 if no notification
13464 matches.
13465
ebcf782c
DE
134662013-11-20 Doug Evans <dje@google.com>
13467
13468 * linux-low.c (linux_set_resume_request): Fix comment.
13469
20ad9378
DE
134702013-11-20 Doug Evans <dje@google.com>
13471
13472 * linux-low.c (resume_status_pending_p): Tweak comment.
13473
a196ebeb
WT
134742013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13475
13476 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13477 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13478 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13479 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13480 (srv_amd64_regobj): Add amd64-mpx.o.
13481 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13482 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13483 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13484 * i387-fp.c (num_pl_bnd_register) Added constant.
13485 (num_pl_bnd_cfg_registers) Added constant.
13486 (struct i387_xsave) Added reserved area and MPX fields.
13487 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13488 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13489 function.
13490 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13491 (init_registers_amd64_mpx_linux): Declare new function.
13492 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13493 (x86_64_regmap): Add MPX registers.
13494 (x86_linux_read_description): Add MPX case.
13495 (initialize_low_arch): Initialize MPX targets.
13496
0080a2f6
TT
134972013-11-18 Tom Tromey <tromey@redhat.com>
13498
13499 * configure: Rebuild.
13500 * configure.ac: Don't check for stdlib.h.
13501 * gdbreplay.c: Unconditionally include stdlib.h.
13502
2978b111
TT
135032013-11-18 Tom Tromey <tromey@redhat.com>
13504
13505 * config.in: Rebuild.
13506 * configure: Rebuild.
13507 * configure.ac: Don't use AC_HEADER_DIRENT.
13508
a3d08894
TT
135092013-11-18 Tom Tromey <tromey@redhat.com>
13510
13511 * server.h: Don't check HAVE_STRING_H.
13512 * gdbreplay.c: Don't check HAVE_STRING_H.
13513 * configure: Rebuild.
13514
0a5dd17d
TT
135152013-11-18 Tom Tromey <tromey@redhat.com>
13516
13517 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13518 LIBGNU.
13519
1bd2f0ba
TT
135202013-11-08 Tom Tromey <tromey@redhat.com>
13521
13522 * configure, config.in: Rebuild.
13523 * configure.ac: Remove unused configury.
13524
3266f10b
TT
135252013-11-08 Tom Tromey <tromey@redhat.com>
13526
13527 * acinclude.m4: Include common.m4, codeset.m4.
13528 * configure, config.in: Rebuild.
13529 * configure.ac: Use GDB_AC_COMMON.
13530
6682d959
AA
135312013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13532
13533 * linux-s390-low.c (HWCAP_S390_TE): New define.
13534 (s390_arch_setup): Consider the TE field in the HWCAP for
13535 determining 'have_regset_tdb'.
13536
fd0a4d76
SDJ
135372013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13538
13539 PR gdb/16014
13540 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13541 call to sizeof.
13542
1a3d890b
PA
135432013-10-02 Pedro Alves <palves@redhat.com>
13544
13545 * server.c (process_serial_event): Don't output "GDBserver
13546 exiting" if GDB is connected through stdio.
13547 * target.c (mywait): Likewise, be silent if GDB is connected
13548 through stdio.
13549
97ad4581
JB
135502013-10-01 Joel Brobecker <brobecker@adacore.com>
13551
13552 * lynx-low.c (lynx_add_threads_after_attach): New function.
13553 (lynx_attach): Remove call to add_thread. Add call to
13554 lynx_add_threads_after_attach instead.
13555
5b4e221c
MF
135562013-09-28 Mike Frysinger <vapier@gentoo.org>
13557
13558 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13559 * config.in, configure: Regenerated.
13560
ee47b2f8
YQ
135612013-09-18 Yao Qi <yao@codesourcery.com>
13562
13563 PR server/15959
13564 * server.c (start_inferior): Clear 'resume_info'.
13565
d6707650 135662013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13567
d6707650
JW
13568 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13569 for each register.
13570
9243dd0e 135712013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13572
9243dd0e
JW
13573 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13574 linux-tile-low.o to srv_tgtobj.
13575
c623a6ef
WN
135762013-09-16 Will Newton <will.newton@linaro.org>
13577
13578 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13579 out regs.
13580
fb71d39e
PA
135812013-09-06 Pedro Alves <palves@redhat.com>
13582
13583 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13584 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13585 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13586 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13587 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13588 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13589
8e7e9910
PA
135902013-09-06 Pedro Alves <palves@redhat.com>
13591
13592 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13593 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13594
7c3a12ca
PA
135952013-09-06 Pedro Alves <palves@redhat.com>
13596
13597 * linux-amd64-ipa.c: Include tracepoint.h.
13598 * linux-i386-ipa.c: Include tracepoint.h.
13599
8eb3d7b6
RW
136002013-09-06 Ricard Wanderlof <ricardw@axis.com>
13601
13602 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13603 (ps_get_thread_area): New function.
13604
eddddb9d
RW
136052013-09-06 Ricard Wanderlof <ricardw@axis.com>
13606
13607 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13608 (initialize_low_arch): Call init_registers_crisv32 rather than
13609 init_register_crisv32.
13610
533b0600
PA
136112013-09-05 Pedro Alves <palves@redhat.com>
13612
13613 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13614 to ...
13615 * hostio.h: ... this new file.
13616 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13617 win32-low.c: Include hostio.h.
13618
0ce3d3b5
PA
136192013-09-05 Pedro Alves <palves@redhat.com>
13620
13621 * server.h (gdb_client_data, handler_func, callback_handler_func)
13622 (delete_file_handler, add_file_handler, append_callback_event)
13623 (delete_callback_event, start_event_loop, initialize_event_loop):
13624 Move to event-loop.h and include it.
13625 * event-loop.h: New file.
13626
799cdc37
PA
136272013-09-05 Pedro Alves <palves@redhat.com>
13628
13629 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13630 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13631 (loaded_dll, unloaded_dll): Move to ...
13632 * dll.h: ... this new file.
13633 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13634
6a6bbd9d
PA
136352013-09-05 Pedro Alves <palves@redhat.com>
13636
13637 * server.h (current_process, get_thread_process, all_processes)
13638 (add_inferior_to_list, for_each_inferior, current_inferior)
13639 (remove_inferior, add_process, remove_process, find_process_pid)
13640 (have_started_inferiors_p, have_attached_inferiors_p)
13641 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13642 (clear_inferiors, find_inferior, find_inferior_id)
13643 (inferior_target_data, set_inferior_target_data)
13644 (inferior_regcache_data, set_inferior_regcache_data): Move to
13645 inferiors.h, and include it.
13646 * inferiors.h: New file.
13647
f699aaba
PA
136482013-09-05 Pedro Alves <palves@redhat.com>
13649
13650 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13651 Move ...
72f4393d 13652 * ax.h: ... here.
f699aaba 13653
c144c7a0
PA
136542013-09-05 Pedro Alves <palves@redhat.com>
13655
13656 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13657 tracepoint.h.
13658 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13659 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13660 (handle_tracepoint_general_set, handle_tracepoint_query)
13661 (tracepoint_finished_step, tracepoint_was_hit)
13662 (release_while_stepping_state_list, current_traceframe)
13663 (in_readonly_region, traceframe_read_mem)
13664 (fetch_traceframe_registers, traceframe_read_sdata)
13665 (traceframe_read_info, struct fast_tpoint_collect_status)
13666 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13667 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13668 (supply_fast_tracepoint_registers)
13669 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13670 (ipa_tdesc, claim_trampoline_space)
13671 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13672 (agent_mem_read, agent_get_trace_state_variable_value)
13673 (agent_set_trace_state_variable_value, agent_tsv_read)
13674 (agent_mem_read_string, get_raw_reg_func_addr)
13675 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13676 * tracepoint.h: ... this new file.
13677
ff42e6ab
PA
136782013-09-05 Pedro Alves <palves@redhat.com>
13679
13680 * server.h (perror_with_name, error, fatal, warning, paddress)
13681 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13682 include it.
13683 * utils.h: New file.
13684
541af0f4
PA
136852013-09-05 Pedro Alves <palves@redhat.com>
13686
13687 * server.h (remote_debug, noack_mode, transport_is_reliable)
13688 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13689 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13690 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13691 (write_enn, initialize_async_io, enable_async_io)
13692 (disable_async_io, check_remote_input_interrupt_request)
13693 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13694 (dead_thread_notify, prepare_resume_reply)
13695 (decode_address_to_semicolon, decode_address, decode_m_packet)
13696 (decode_M_packet, decode_X_packet, decode_xfer_write)
13697 (decode_search_memory_packet, unhexify, hexify)
13698 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13699 (look_up_one_symbol, relocate_instruction)
13700 (monitor_output): Move to remote-utils.h, and include it.
13701 * remote-utils.h: New file.
13702
eebdf26b
PA
137032013-09-05 Pedro Alves <palves@redhat.com>
13704
13705 * server.h (_): Delete.
13706
3aafd2ff
PA
137072013-09-02 Pedro Alves <palves@redhat.com>
13708
13709 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13710 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13711 allocated.
13712 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13713
cee83bcb
PM
137142013-09-02 Pierre Muller <muller@sourceware.org>
13715
13716 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13717 or WriteProcessMemory complete successfully and handle
13718 ERROR_PARTIAL_COPY error.
13719
9a13b2fa
PA
137202013-09-02 Pedro Alves <palves@redhat.com>
13721
13722 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13723 error instead of EIO.
13724
602e3198
JK
137252013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13726
13727 PR server/15604
13728 * linux-low.c: Include filestuff.h.
13729 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13730 * lynx-low.c: Include filestuff.h.
13731 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13732 * server.c: Include filestuff.h.
13733 (main): Call notice_open_fds.
13734 * spu-low.c: Include filestuff.h.
13735 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13736
96d7229d
LM
137372013-08-22 Luis Machado <lgustavo@codesourcery.com>
13738
13739 * Makefile.in: Explain why ../target and ../nat are not
13740 listed as include file search paths.
13741 (linux-waitpid.o): New object file rule.
13742 * configure.srv (srv_native_linux_obj): New variable.
13743 Replace all occurrences of linux native object files with
13744 $srv_native_linux_obj.
13745 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13746 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13747 (linux_enable_event_reporting): Remove declaration.
13748 (my_waitpid): Moved to common/linux-waitpid.c.
13749 (linux_wait_for_event): Pass ptid when calling
13750 linux_enable_event_reporting.
13751 (linux_supports_tracefork_flag): Remove.
13752 (linux_enable_event_reporting): Likewise.
13753 (linux_tracefork_grandchild): Remove.
13754 (STACK_SIZE): Moved to common/linux-ptrace.c.
13755 (linux_tracefork_child): Remove.
13756 (linux_test_for_tracefork): Remove.
13757 (linux_look_up_symbols): Call linux_supports_traceclone.
13758 (initialize_low): Remove call to linux_test_for_tracefork.
13759 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13760 common/linux-ptrace.h.
13761 (PTRACE_TYPE_ARG4): Likewise.
13762 Include linux-ptrace.h.
13763
32940073
PA
137642013-08-21 Pedro Alves <palves@redhat.com>
13765
13766 * config.in: Renegerate.
13767
33b60d58 137682013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13769
33b60d58
LM
13770 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13771 (SFILES): Remove $(srcdir)/common/target-common.c and
13772 add $(srcdir)/target/waitstatus.c.
13773 (OBS): Remove target-common.o and add waitstatus.o.
13774 (server_h): Remove $(srcdir)/../common/target-common.h and
13775 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13776 and $(srcdir)/../target/waitstatus.h.
13777 (target-common.o): Remove.
13778 (waitstatus.o): New target object file.
13779 * target.h: Do not include target-common.h and
13780 include target/resume.h, target/wait.h and
13781 target/waitstatus.h.
13782
b8e1b30e
LM
137832013-08-13 Luis Machado <lgustavo@codesourcery.com>
13784
13785 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13786 to PTRACE_TYPE_ARG3.
13787 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13788 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13789 PTRACE_TYPE_ARG4.
13790 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13791 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13792
7a60ad40
YQ
137932013-07-27 Jie Zhang <jie@codesourcery.com>
13794 Daniel Jacobowitz <dan@codesourcery.com>
13795 Yao Qi <yao@codesourcery.com>
13796
13797 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13798 (mips-linux-watch.o): New rule.
13799 (mips_linux_watch_h): New variable.
13800 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13801 srv_tgtobj.
13802 * linux-mips-low.c: Include mips-linux-watch.h.
13803 (struct arch_process_info, struct arch_lwp_info): New.
13804 (update_watch_registers_callback): New function.
13805 (mips_linux_new_process, mips_linux_new_thread) New functions.
13806 (mips_linux_prepare_to_resume, mips_insert_point): New
13807 functions.
13808 (mips_remove_point, mips_stopped_by_watchpoint): New
13809 functions.
13810 (rsp_bp_type_to_target_hw_bp_type): New function.
13811 (mips_stopped_data_address): New function.
13812 (the_low_target): Add watchpoint support functions.
13813
de6f69ad
YQ
138142013-07-27 Yao Qi <yao@codesourcery.com>
13815
13816 * i386-low.c: Include break-common.h.
13817 (enum target_hw_bp_type): Remove.
13818
3360c0bf
LM
138192013-07-24 Luis Machado <lgustavo@codesourcery.com>
13820
13821 * Makefile.in (SFILES): /common/target-common.c.
13822 (OBS): Add target-common.o.
13823 (server_h): Add $(srcdir)/../common/target-common.h.
13824 (target-common.o): New target.
13825 * server.c (queue_stop_reply_callback): Free
13826 status string after use.
13827 * target.c (target_waitstatus_to_string): Remove.
13828 * target.h: Include target-common.h.
13829 (resume_kind): Likewise.
13830 (target_waitkind): Likewise.
13831 (target_waitstatus): Likewise.
13832 (TARGET_WNOHANG): Likewise.
13833
bd885420
YQ
138342013-07-04 Yao Qi <yao@codesourcery.com>
13835
13836 * Makefile.in (host_alias): Use @host_noncanonical@.
13837 (target_alias): Use @target_noncanonical@.
13838 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13839 ACX_NONCANONICAL_HOST.
13840 * configure: Regenerated.
13841
13842 Revert:
13843 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13844
13845 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13846 * configure: Rebuild.
13847 * Makefile.in (version_host, version_target): Get from configure.
13848 (version.c): Use $(version_host) and $(version_target).
13849
17ef446e
PA
138502013-07-03 Pedro Alves <palves@redhat.com>
13851
13852 * Makefile.in (config.status): Depend on development.sh.
13853 * acinclude.m4: Include libmcheck.m4.
13854 * configure: Regenerate.
13855
7a9a7487
MG
138562013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13857
13858 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13859 attribute inside the parentheses.
13860 (winapi_DebugSetProcessKillOnExit): Ditto.
13861 (winapi_DebugBreakProcess): Ditto.
13862 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13863
49b64de6
MG
138642013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13865
13866 * notif.h (notif_event): Add a dummy member to avoid compiler
13867 errors.
13868
d5749ee7
PA
138692013-07-01 Pedro Alves <palves@redhat.com>
13870
13871 * hostio.c (HOSTIO_PATH_MAX): Define.
13872 (require_filename, handle_open, handle_unlink, handle_readlink):
13873 Use it.
13874
d8d2a3ee
PA
138752013-07-01 Pedro Alves <palves@redhat.com>
13876
13877 * server.h: Include "pathmax.h".
13878 * linux-low.c: Don't include sys/param.h.
13879 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13880 MAXPATHLEN.
13881 * win32-low.c: Don't include sys/param.h.
13882 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13883
bc7dea8d
PA
138842013-07-01 Pedro Alves <palves@redhat.com>
13885
13886 * event-loop.c: Don't check HAVE_UNISTD_H before including
13887 <unistd.h>.
13888 * gdbreplay.c: Likewise.
13889 * remote-utils.c: Likewise.
13890 * server.c: Likewise.
13891 * configure.ac: Don't check for unistd.h.
13892 * configure: Regenerate.
13893
d6c2da54
TT
138942013-06-28 Tom Tromey <tromey@redhat.com>
13895
13896 * Makefile.in (version.c): Use version.in, not
13897 common/version.in.
13898
257b6bec
MG
138992013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13900
13901 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13902 * configure: Rebuild.
13903 * Makefile.in (version_host, version_target): Get from configure.
13904 (version.c): Use $(version_host) and $(version_target).
13905
86ebe149
DK
139062013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13907
13908 Fix trace-status to output user name without trailing colon.
13909 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13910
f30aa5af
DK
139112013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13912
13913 Fix trace-status to output proper start-time and stop-time.
13914 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13915 output start time and stop time in hex as gdb expects.
13916
28a93511
YQ
139172013-06-26 Pedro Alves <pedro@codesourcery.com>
13918
13919 * tracepoint.c (build_traceframe_info_xml): Output trace state
13920 variables present in the trace buffer.
13921
01208463
TT
139222013-06-24 Tom Tromey <tromey@redhat.com>
13923
13924 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13925 create-version.sh.
13926 (version.o): Remove.
13927 * gdbreplay.c: Include version.h.
13928 (version, host_name): Don't declare.
13929 * server.h: Include version.h.
13930 (version, host_name): Don't declare.
13931
760256f9
PA
139322013-06-12 Pedro Alves <palves@redhat.com>
13933
13934 * linux-x86-low.c (linux_is_elf64): Delete global.
13935 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13936 with local linux_pid_exe_is_elf_64_file use.
13937
030031ee
PA
139382013-06-11 Pedro Alves <palves@redhat.com>
13939
13940 * linux-low.c (regset_disabled, disable_regset): New functions.
13941 (regsets_fetch_inferior_registers)
13942 (regsets_store_inferior_registers): Use them.
13943 (initialize_regsets_info); Don't allocate the disabled_regsets
13944 array here.
13945 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13946 comment.
13947
5da6eb0a
PA
139482013-06-11 Pedro Alves <palves@redhat.com>
13949
13950 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13951 xmalloc.
13952
7e5aaa09
PA
139532013-06-11 Pedro Alves <palves@redhat.com>
13954
13955 * linux-x86-low.c (initialize_low_arch): Call
13956 init_registers_x32_avx_linux.
13957
d878444c
JK
139582013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13959
13960 Fix compatibility with Android Bionic.
13961 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13962 it is not empty.
13963
3aee8918
PA
139642013-06-07 Pedro Alves <palves@redhat.com>
13965
5f2b57b5 13966 PR server/14823
3aee8918
PA
13967 * Makefile.in (OBS): Add tdesc.o.
13968 (IPA_OBJS): Add tdesc-ipa.o.
13969 (tdesc-ipa.o): New rule.
13970 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13971 interface.
13972 * linux-low.c (new_inferior): Delete.
13973 (disabled_regsets, num_regsets): Delete.
13974 (linux_add_process): Adjust to set the new per-process
13975 new_inferior flag.
13976 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13977 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13978 was a stop. When calling arch_setup, switch the current inferior
13979 to the thread that got an event.
13980 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13981 (regsets_fetch_inferior_registers)
13982 (regsets_store_inferior_registers): New regsets_info parameter.
13983 Adjust to use it.
13984 (linux_register_in_regsets): New regs_info parameter. Adjust to
13985 use it.
13986 (register_addr, fetch_register, store_register): New usrregs_info
13987 parameter. Adjust to use it.
13988 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13989 parameter regs_info. Adjust to use it.
13990 (linux_fetch_registers): Get the current inferior's regs_info, and
13991 adjust to use it.
13992 (linux_store_registers): Ditto.
13993 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13994 (initialize_low): Don't initialize the target_regsets here. Call
13995 initialize_low_arch.
13996 * linux-low.h (target_regsets): Delete declaration.
13997 (struct regsets_info): New.
13998 (struct usrregs_info): New.
13999 (struct regs_info): New.
14000 (struct process_info_private) <new_inferior>: New field.
14001 (struct linux_target_ops): Delete the num_regs, regmap, and
14002 regset_bitmap fields. New field regs_info.
14003 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14004 * i387-fp.c (num_xmm_registers): Delete.
14005 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14006 calls to new interface.
14007 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14008 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14009 Infer the number of xmm registers from the regcache's target
14010 description.
14011 * i387-fp.h (num_xmm_registers): Delete.
14012 * inferiors.c (add_thread): Don't install the thread's regcache
14013 here.
14014 * proc-service.c (gregset_info): Fetch the current inferior's
14015 regs_info. Adjust to use it.
14016 * regcache.c: Include tdesc.h.
14017 (register_bytes, reg_defs, num_registers)
14018 (gdbserver_expedite_regs): Delete.
14019 (get_thread_regcache): If the thread doesn't have a regcache yet,
14020 create one, instead of aborting gdbserver.
14021 (regcache_invalidate_one): Rename to ...
14022 (regcache_invalidate_thread): ... this.
14023 (regcache_invalidate_one): New.
14024 (regcache_invalidate): Only invalidate registers of the current
14025 process.
14026 (init_register_cache): Add target_desc parameter, and use it.
14027 (new_register_cache): Ditto. Assert the target description has a
14028 non zero registers_size.
14029 (regcache_cpy): Add assertions. Adjust.
14030 (realloc_register_cache, set_register_cache): Delete.
14031 (registers_to_string, registers_from_string): Adjust.
14032 (find_register_by_name, find_regno, find_register_by_number)
14033 (register_cache_size): Add target_desc parameter, and use it.
14034 (free_register_cache_thread, free_register_cache_thread_one)
14035 (regcache_release, register_cache_size): New.
14036 (register_size): Add target_desc parameter, and use it.
14037 (register_data, supply_register, supply_register_zeroed)
14038 (supply_regblock, supply_register_by_name, collect_register)
14039 (collect_register_as_string, collect_register_by_name): Adjust.
14040 * regcache.h (struct target_desc): Forward declare.
14041 (struct regcache) <tdesc>: New field.
14042 (init_register_cache, new_register_cache): Add target_desc
14043 parameter.
14044 (regcache_invalidate_thread): Declare.
14045 (regcache_invalidate_one): Delete declaration.
14046 (regcache_release): Declare.
14047 (find_register_by_number, register_cache_size, register_size)
14048 (find_regno): Add target_desc parameter.
14049 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14050 declarations.
14051 * remote-utils.c: Include tdesc.h.
14052 (outreg, prepare_resume_reply): Adjust.
14053 * server.c: Include tdesc.h.
14054 (gdbserver_xmltarget): Delete declaration.
14055 (get_features_xml, process_serial_event): Adjust.
14056 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14057 declare.
14058 (struct process_info) <tdesc>: New field.
14059 (ipa_tdesc): Declare.
14060 * tdesc.c: New file.
14061 * tdesc.h: New file.
14062 * tracepoint.c: Include tdesc.h.
14063 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14064 (get_context_regcache): Adjust to pass ipa_tdesc down.
14065 (do_action_at_tracepoint): Adjust to get the register cache size
14066 from the context regcache's description.
14067 (traceframe_walk_blocks): Adjust to get the register cache size
14068 from the current trace frame's description.
14069 (traceframe_get_pc): Adjust to get current trace frame's
14070 description and pass it down.
14071 (gdb_collect): Adjust to get the register cache size from the
14072 IPA's description.
14073 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14074 (gdbserver_xmltarget): Delete.
14075 (initialize_low_tracepoint): Set the ipa's target description.
14076 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14077 (initialize_low_tracepoint): Set the ipa's target description.
14078 * linux-x86-low.c: Include tdesc.h.
14079 [__x86_64__] (is_64bit_tdesc): New.
14080 (ps_get_thread_area, x86_get_thread_area): Use it.
14081 (i386_cannot_store_register): Rename to ...
14082 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14083 (i386_cannot_fetch_register): Rename to ...
14084 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14085 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14086 to new interface.
14087 (target_regsets): Rename to ...
14088 (x86_regsets): ... this.
14089 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14090 interface.
14091 (x86_siginfo_fixup): Use is_64bit_tdesc.
14092 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14093 (tdesc_x32_avx_linux, tdesc_x32_linux)
14094 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14095 Declare.
14096 (x86_linux_update_xmltarget): Delete.
14097 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14098 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14099 (AMD64_LINUX_USER64_CS): New.
14100 (x86_linux_read_description): New, based on
14101 x86_linux_update_xmltarget.
14102 (same_process_callback): New.
14103 (x86_arch_setup_process_callback): New.
14104 (x86_linux_update_xmltarget): New.
14105 (x86_regsets_info): New.
14106 (amd64_linux_regs_info): New.
14107 (i386_linux_usrregs_info): New.
14108 (i386_linux_regs_info): New.
14109 (x86_linux_regs_info): New.
14110 (x86_arch_setup): Reimplement.
14111 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14112 (x86_emit_ops): Ditto.
14113 (the_low_target): Adjust. Install x86_linux_regs_info,
14114 x86_cannot_fetch_register, and x86_cannot_store_register.
14115 (initialize_low_arch): New.
14116 * linux-ia64-low.c (tdesc_ia64): Declare.
14117 (ia64_fetch_register): Adjust.
14118 (ia64_usrregs_info, regs_info): New globals.
14119 (ia64_regs_info): New function.
14120 (the_low_target): Adjust.
14121 (initialize_low_arch): New function.
14122 * linux-sparc-low.c (tdesc_sparc64): Declare.
14123 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14124 Adjust.
14125 (sparc_arch_setup): New function.
14126 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14127 (the_low_target): Adjust.
14128 (initialize_low_arch): New function.
14129 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14130 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14131 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14132 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14133 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14134 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14135 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14136 (tdesc_powerpc_isa205_vsx64l): Declare.
14137 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14138 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14139 (ppc_set_pc, ppc_get_hwcap): Adjust.
14140 (ppc_usrregs_info): Forward declare.
14141 (!__powerpc64__) ppc_regmap_adjusted: New global.
14142 (ppc_arch_setup): Adjust to the current process'es target
14143 description.
14144 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14145 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14146 (ppc_store_evrregset): Adjust.
14147 (target_regsets): Rename to ...
14148 (ppc_regsets): ... this, and make static.
14149 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14150 (ppc_regs_info): New function.
14151 (the_low_target): Adjust.
14152 (initialize_low_arch): New function.
14153 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14154 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14155 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14156 (tdesc_s390x_linux64v2): Declare.
14157 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14158 (s390_fill_gregset, s390_store_last_break): Adjust.
14159 (target_regsets): Rename to ...
14160 (s390_regsets): ... this, and make static.
14161 (s390_get_pc, s390_set_pc): Adjust.
14162 (s390_get_hwcap): New target_desc parameter, and use it.
14163 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14164 (s390_arch_setup): Adjust to set the current process'es target
14165 description. Don't adjust the regmap.
14166 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14167 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14168 (regs_info_3264): New globals.
14169 (s390_regs_info): New function.
14170 (the_low_target): Adjust.
14171 (initialize_low_arch): New function.
14172 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14173 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14174 [__mips64] (init_registers_mips_linux)
14175 (init_registers_mips_dsp_linux): Delete defines.
14176 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14177 (have_dsp): New global.
14178 (mips_read_description): New, based on mips_arch_setup.
14179 (mips_arch_setup): Reimplement.
14180 (get_usrregs_info): New function.
14181 (mips_cannot_fetch_register, mips_cannot_store_register)
14182 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14183 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14184 (target_regsets): Rename to ...
14185 (mips_regsets): ... this, and make static.
14186 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14187 (dsp_regs_info, regs_info): New globals.
14188 (mips_regs_info): New function.
14189 (the_low_target): Adjust.
14190 (initialize_low_arch): New function.
14191 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14192 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14193 Declare.
14194 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14195 (arm_read_description): New, with bits factored from
14196 arm_arch_setup.
14197 (arm_arch_setup): Reimplement.
14198 (target_regsets): Rename to ...
14199 (arm_regsets): ... this, and make static.
14200 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14201 (arm_regs_info): New function.
14202 (the_low_target): Adjust.
14203 (initialize_low_arch): New function.
14204 * linux-m68k-low.c (tdesc_m68k): Declare.
14205 (target_regsets): Rename to ...
14206 (m68k_regsets): ... this, and make static.
14207 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14208 (m68k_regs_info): New function.
14209 (m68k_arch_setup): New function.
14210 (the_low_target): Adjust.
14211 (initialize_low_arch): New function.
14212 * linux-sh-low.c (tdesc_sharch): Declare.
14213 (target_regsets): Rename to ...
14214 (sh_regsets): ... this, and make static.
14215 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14216 (sh_regs_info, sh_arch_setup): New functions.
14217 (the_low_target): Adjust.
14218 (initialize_low_arch): New function.
14219 * linux-bfin-low.c (tdesc_bfin): Declare.
14220 (bfin_arch_setup): New function.
14221 (bfin_usrregs_info, regs_info): New globals.
14222 (bfin_regs_info): New function.
14223 (the_low_target): Adjust.
14224 (initialize_low_arch): New function.
14225 * linux-cris-low.c (tdesc_cris): Declare.
14226 (cris_arch_setup): New function.
14227 (cris_usrregs_info, regs_info): New globals.
14228 (cris_regs_info): New function.
14229 (the_low_target): Adjust.
14230 (initialize_low_arch): New function.
14231 * linux-cris-low.c (tdesc_crisv32): Declare.
14232 (cris_arch_setup): New function.
14233 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14234 (cris_regs_info): New function.
14235 (the_low_target): Adjust.
14236 (initialize_low_arch): New function.
14237 * linux-m32r-low.c (tdesc_m32r): Declare.
14238 (m32r_arch_setup): New function.
14239 (m32r_usrregs_info, regs_info): New globals.
14240 (m32r_regs_info): Adjust.
14241 (initialize_low_arch): New function.
14242 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14243 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14244 (tic6x_usrregs_info): Forward declare.
14245 (tic6x_read_description): New function, based on ...
14246 (tic6x_arch_setup): ... this. Reimplement.
14247 (target_regsets): Rename to ...
14248 (tic6x_regsets): ... this, and make static.
14249 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14250 (tic6x_regs_info): New function.
14251 (the_low_target): Adjust.
14252 (initialize_low_arch): New function.
14253 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14254 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14255 (target_regsets): Rename to ...
14256 (xtensa_regsets): ... this, and make static.
14257 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14258 globals.
14259 (xtensa_arch_setup, xtensa_regs_info): New functions.
14260 (the_low_target): Adjust.
14261 (initialize_low_arch): New function.
14262 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14263 (nios2_arch_setup): Set the current process'es tdesc.
14264 (target_regsets): Rename to ...
14265 (nios2_regsets): ... this.
14266 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14267 (nios2_regs_info): New function.
14268 (the_low_target): Adjust.
14269 (initialize_low_arch): New function.
a261b8f5
PA
14270 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14271 (aarch64_arch_setup): Set the current process'es tdesc.
14272 (target_regsets): Rename to ...
14273 (aarch64_regsets): ... this.
14274 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14275 (aarch64_regs_info): New function.
14276 (the_low_target): Adjust.
14277 (initialize_low_arch): New function.
3aee8918
PA
14278 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14279 globals.
14280 (target_regsets): Rename to ...
14281 (tile_regsets): ... this.
14282 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14283 (tile_regs_info): New function.
14284 (tile_arch_setup): Set the current process'es tdesc.
14285 (the_low_target): Adjust.
14286 (initialize_low_arch): New function.
14287 * spu-low.c (tdesc_spu): Declare.
14288 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14289 * win32-arm-low.c (tdesc_arm): Declare.
14290 (arm_arch_setup): New function.
14291 (the_low_target): Install arm_arch_setup instead of
14292 init_registers_arm.
14293 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14294 (init_windows_x86): Rename to ...
14295 (i386_arch_setup): ... this. Set `win32_tdesc'.
14296 (the_low_target): Adjust.
14297 * win32-low.c (win32_tdesc): New global.
14298 (child_add_thread): Don't create the thread cache here.
14299 (do_initial_child_stuff): Set the new process'es tdesc.
14300 * win32-low.h (struct target_desc): Forward declare.
14301 (win32_tdesc): Declare.
14302 * lynx-i386-low.c (tdesc_i386): Declare global.
14303 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14304 * lynx-low.c (lynx_tdesc): New global.
14305 (lynx_add_process): Set the new process'es tdesc.
14306 * lynx-low.h (struct target_desc): Forward declare.
14307 (lynx_tdesc): Declare global.
14308 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14309 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14310 * nto-low.c (nto_tdesc): New global.
14311 (do_attach): Set the new process'es tdesc.
14312 * nto-low.h (struct target_desc): Forward declare.
14313 (nto_tdesc): Declare.
14314 * nto-x86-low.c (tdesc_i386): Declare.
14315 (nto_x86_arch_setup): Set `nto_tdesc'.
14316
b1fbec62
GB
143172013-06-04 Gary Benson <gbenson@redhat.com>
14318
14319 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14320 to qSupported response when appropriate.
14321 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14322 with nonzero-length annex.
14323 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14324 arguments supplied in annex.
14325
d1ec4ce7
DE
143262013-05-31 Doug Evans <dje@google.com>
14327
ac44adcb 14328 PR server/15594
d1ec4ce7
DE
14329 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14330 64 bits in 64-cross-32 environment.
14331
9b25f2d3
PA
143322013-05-28 Pedro Alves <palves@redhat.com>
14333
14334 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14335 (aarch64-without-fpu.c): Delete rule.
14336 * configure.srv (aarch64*-*-linux*): Remove references to
14337 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14338 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14339 declaration.
14340
6740dc9c
PA
143412013-05-24 Pedro Alves <palves@redhat.com>
14342
14343 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14344 instead of strchr/decode_address. Error if the range isn't split
14345 with a ','. Don't assume there's be a ':' in the action.
14346
c2d6af84
PA
143472013-05-23 Yao Qi <yao@codesourcery.com>
14348 Pedro Alves <palves@redhat.com>
14349
14350 * linux-low.c (lwp_in_step_range): New function.
14351 (linux_wait_1): If the thread was range stepping and stopped
14352 outside the stepping range, report the stop to GDB. Otherwise,
14353 continue stepping. Add range stepping debug output.
14354 (linux_set_resume_request): Copy the step range from the resume
14355 request to the lwp.
14356 (linux_supports_range_stepping): New.
14357 (linux_target_ops) <supports_range_stepping>: Set to
14358 linux_supports_range_stepping.
14359 * linux-low.h (struct linux_target_ops)
14360 <supports_range_stepping>: New field.
14361 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14362 * linux-x86-low.c (x86_supports_range_stepping): New.
14363 (the_low_target) <supports_range_stepping>: Set to
14364 x86_supports_range_stepping.
14365 * server.c (handle_v_cont): Handle 'r' action.
14366 (handle_v_requests): Append ";r" if the target supports range
14367 stepping.
14368 * target.h (struct thread_resume) <step_range_start,
14369 step_range_end>: New fields.
14370 (struct target_ops) <supports_range_stepping>:
14371 New field.
14372 (target_supports_range_stepping): New macro.
14373
58794e1a
JB
143742013-05-17 Joel Brobecker <brobecker@adacore.com>
14375
14376 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14377 confusion in comment.
14378
d631c5a7
JB
143792013-05-17 Joel Brobecker <brobecker@adacore.com>
14380
14381 * lynx-low.c (struct process_info_private): New type.
14382 (lynx_add_process): New function.
14383 (lynx_create_inferior, lynx_attach): Replace calls to
14384 add_process by calls to lynx_add_process.
14385 (lynx_resume): If PTID is null, then try using
14386 current_process()->private->last_wait_event_ptid.
14387 Add comments.
14388 (lynx_clear_inferiors): Delete. The contents of that function
14389 has been inlined in lynx_mourn;
14390 (lynx_wait_1): Save the ptid in the process's private data.
14391 (lynx_mourn): Free the process' private data. Replace call
14392 to lynx_clear_inferiors by call to clear_inferiors.
14393
96f7a20f
YQ
143942013-05-17 Yao Qi <yao@codesourcery.com>
14395
14396 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14397 the right place.
14398
db0dfaa0
LM
143992013-05-16 Luis Machado <lgustavo@codesourcery.com>
14400
14401 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14402 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14403 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14404 PT_TEXT_END_ADDR guards. Update comments.
14405 (linux_target_op) <read_offsets>: Conditionally define to
14406 linux_read_offsets if the target is UCLIBC and if it defines
14407 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14408
68f5f838
SL
144092013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14410 Andrew Jenner <andrew@codesourcery.com>
14411
14412 * Makefile.in (SFILES): Add linux-nios2-low.c.
14413 (clean): Add action to delete nios2-linux.c.
14414 (nios2-linux.c): New rule.
14415 * configure.srv: Add nios2*-*-linux*.
14416 * linux-nios2-low.c: New.
14417
1ebff1fd
HAQ
144182013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14419
14420 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14421
f6150862
HZ
144222013-04-25 Hui Zhu <hui@codesourcery.com>
14423
14424 PR gdb/15186
f6150862
HZ
14425 * ax.c (ax_printf): Add fflush.
14426
614c279d
TT
144272013-04-22 Tom Tromey <tromey@redhat.com>
14428
14429 * Makefile.in (SFILES): Add filestuff.c.
14430 (OBS): Add filestuff.o.
14431 (filestuff.o): New target.
14432 * config.in, configure: Rebuild.
14433 * configure.ac: Check for fdwalk, pipe2.
14434
7d4e5717
PA
144352013-04-17 Pedro Alves <palves@redhat.com>
14436
14437 * configure.ac (USE_THREAD_DB): Delete variable.
14438 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14439 Don't AC_SUBST USE_THREAD_DB.
14440 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14441 * config.in, configure: Regenerate.
14442
d5c93e41
PA
144432013-04-16 Pedro Alves <palves@redhat.com>
14444
14445 * linux-low.h (struct lwp_info) <thread_known>: Move under
14446 the USE_THREAD_DB #ifdef.
14447
04f5fe89
PA
144482013-04-16 Pedro Alves <palves@redhat.com>
14449
14450 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14451 (linux-low.o): Delete rule.
14452 * linux-low.h: Always include "gdb_thread_db.h" instead of
14453 conditionally including thread_db.h.
14454 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14455 HAVE_THREAD_DB_H.
14456
480b27bf
JK
144572013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14458
14459 * Makefile.in (install-only): Fix make install regression.
14460
43662968
JK
144612013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14462
14463 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14464 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14465 installation.
14466 * gdbserver.1: Remove.
14467
3e74e146
PA
144682013-03-22 Pedro Alves <palves@redhat.com>
14469
14470 * linux-low.c (handle_extended_wait): Don't call
14471 linux_enable_event_reporting.
14472
a8347a2a
TT
144732013-03-15 Tony Theodore <tonyt@logyst.com>
14474
14475 PR build/9098:
14476 * Makefile.in (SHELL): Use @SHELL@.
14477
eeb56fa7
SDJ
144782013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14479
14480 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14481 compiler warning.
14482
4fa7e2ff
JB
144832013-03-13 Joel Brobecker <brobecker@adacore.com>
14484
14485 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14486 Remove extraneous NULL element.
14487
8ddb1965
YQ
144882013-03-13 Yao Qi <yao@codesourcery.com>
14489
14490 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14491 'V' block in trace frame.
14492
9accd112
MM
144932013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14494
14495 * target.h (struct target_ops): Add btrace ops.
14496 (target_supports_btrace): New macro.
14497 (target_enable_btrace): New macro.
14498 (target_disable_btrace): New macro.
14499 (target_read_btrace): New macro.
14500 * gdbthread.h (struct thread_info): Add btrace field.
14501 * server.c: Include btrace-common.h.
14502 (handle_btrace_general_set): New function.
14503 (handle_btrace_enable): New function.
14504 (handle_btrace_disable): New function.
14505 (handle_general_set): Call handle_btrace_general_set.
14506 (handle_qxfer_btrace): New function.
14507 (struct qxfer qxfer_packets[]): Add btrace entry.
14508 * inferiors.c (remove_thread): Disable btrace.
14509 * linux-low: Include linux-btrace.h.
14510 (linux_low_enable_btrace): New function.
14511 (linux_low_read_btrace): New function.
14512 (linux_target_ops): Add btrace ops.
14513 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14514 Add srv_linux_btrace=yes.
14515 (x86_64-*-linux*): Add linux-btrace.o.
14516 Add srv_linux_btrace=yes.
14517 * configure.ac: Define HAVE_LINUX_BTRACE.
14518 * config.in: Regenerated.
14519 * configure: Regenerated.
14520
5cc22e4c
MM
145212013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14522
14523 * server.c (handle_qxfer): Preserve error message if -3 is
14524 returned.
14525 (qxfer): Document the -3 return value.
14526
7c97f91e
MM
145272013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14528
14529 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14530 (linux_btrace_h): New variable.
14531 (linux-btrace.o): New rule.
14532
be9a119c 145332013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14534 Hafiz Abid Qadeer <abidh@codesourcery.com>
14535
14536 * tracepoint.c (trace_buffer_size): New global.
14537 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14538 (init_trace_buffer): Change to one-argument function. Allocate
14539 trace buffer memory.
14540 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14541 handle QTBuffer:size packet.
14542 (cmd_bigqtbuffer_size): New function.
14543 (initialize_tracepoint): Call init_trace_buffer with
14544 DEFAULT_TRACE_BUFFER_SIZE.
14545 * server.c (handle_query): Add QTBuffer:size in the
14546 supported packets.
14547
e64f7499
YQ
145482013-03-07 Yao Qi <yao@codesourcery.com>
14549
14550 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14551 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14552 of -1.
14553 (cmd_qtsp): Adjust condition. Do post increment.
14554 Set cur_action and cur_step_action back to 0.
14555
f0ae6fc3
PA
145562013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14557
14558 PR server/15236
14559 * linux-low.c (linux_write_memory): Return early success if LEN is
14560 zero.
14561
b5b0b0af
CV
145622013-03-05 Corinna Vinschen <vinschen@redhat.de>
14563
334ad4a8 14564 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14565
589bc927
TT
145662013-02-28 Tom Tromey <tromey@redhat.com>
14567
14568 * configure.ac: Invoke AC_SYS_LARGEFILE.
14569 * configure, config.in: Rebuild.
14570
dfe07582
CV
145712013-02-28 Corinna Vinschen <vinschen@redhat.com>
14572
14573 * win32-low.c: Throughout, fix format strings and casts of
14574 printf-like functions to avoid type related warnings on all
14575 platforms.
14576 (get_child_debug_event): Print dwDebugEventCode as hex since
14577 that's how it's usually documented.
14578
736cd585
YQ
145792013-02-28 Yao Qi <yao@codesourcery.com>
14580
14581 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14582 pulongest.
14583
e1f58301
JW
145842013-02-27 Jiong Wang <jiwang@tilera.com>
14585
14586 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14587 (reg-tilegx32.c): New rule.
14588 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14589 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14590 different register info initializer according to elf class.
14591 (init_registers_tilgx32): New function. The tilegx32 register info
14592 initializer.
14593 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14594 (tile_store_gregset): Likewise.
14595
d171ca78
YQ
145962013-02-27 Yao Qi <yao@codesourcery.com>
14597
14598 * server.c (process_point_options): Print debug message when
14599 debug_threads is true.
14600
282bbdf3
YQ
146012013-02-26 Yao Qi <yao@codesourcery.com>
14602
14603 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14604
aca22551
PA
146052013-02-19 Pedro Alves <palves@redhat.com>
14606 Kai Tietz <ktietz@redhat.com>
14607
14608 PR gdb/15161
14609
14610 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14611 instead of strtoul to extract address from packet.
14612 (process_serial_event) <'z'>: Likewise.
14613
4f3cee1c
YQ
146142013-02-18 Yao Qi <yao@codesourcery.com>
14615
14616 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14617
8e1d55a3
PA
146182013-02-14 Pedro Alves <palves@redhat.com>
14619
14620 Plug memory leak.
14621
14622 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14623 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14624
458820da
PA
146252013-02-14 Pedro Alves <palves@redhat.com>
14626
14627 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14628
baea0dae
PA
146292013-02-14 Pedro Alves <palves@redhat.com>
14630
14631 * tracepoint.c (save_string): Delete.
14632 (add_tracepoint_action): Use savestring instead of save_string.
14633
0b1afbb3
PA
146342013-02-12 Pedro Alves <palves@redhat.com>
14635
14636 * linux-xtensa-low.c: Ditto.
14637 * xtensa-xtregs.c: Ditto.
14638
8a4ac37e
PA
146392013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14640
14641 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14642 thread_db.
14643
148de6bb
MS
146442013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14645
14646 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14647 aarch64_num_wp_regs and aarch64_num_bp_regs to
14648 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14649
55fac6e0
MS
146502013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14651
14652 * linux-aarch64-low.c (ps_get_thread_area): Replace
14653 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14654
176eb98c
MS
146552013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14656 Marcus Shawcroft <marcus.shawcroft@arm.com>
14657 Nigel Stephens <nigel.stephens@arm.com>
14658 Yufeng Zhang <yufeng.zhang@arm.com>
14659
14660 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14661 (aarch64.c, aarch64-without-fpu.c): New targets.
14662 * configure.srv (aarch64*-*-linux*): New.
14663 * linux-aarch64-low.c: New file.
14664
56f7af9c
MS
146652013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14666
43aaf8b6 14667 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14668 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14669 (dequeue_one_deferred_signal, linux_resume_one_thread)
14670 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14671 (linux_tracefork_grandchild, linux_test_for_tracefork)
14672 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14673 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14674 where the argument is 0.
14675
60f662b0
YQ
146762013-01-25 Yao Qi <yao@codesourcery.com>
14677
14678 * event-loop.c: Include "queue.h".
14679 (gdb_event_p): New typedef.
14680 (struct gdb_event) <next_event>: Remove.
14681 (event_queue): Change to QUEUE(gdb_event_p).
14682 (async_queue_event): Remove.
14683 (gdb_event_xfree): New.
14684 (initialize_event_loop): New.
14685 (process_event): Use API from QUEUE.
14686 (wait_for_event): Likewise.
14687 * server.c (main): Call initialize_event_loop.
14688 * server.h (initialize_event_loop): Declare.
14689
5ae4861a
YQ
146902013-01-18 Yao Qi <yao@codesourcery.com>
14691
14692 * ax.h (struct eval_agent_expr_context): New.
14693 (gdb_eval_agent_expr): Update declaration.
14694 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14695 TFRAME. Add new argument CTX.
14696 * server.h (struct eval_agent_expr_context): Declare.
14697 (agent_mem_read, agent_tsv_read): Update declaration.
14698 (agent_mem_read_string): Likewise.
14699 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14700 (add_traceframe_block): Add new argument TPOINT.
14701 Increase TPOINT->traceframe_usage.
14702 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14703 eval_tracepoint_agent_expr.
14704 (condition_true_at_tracepoint): Likewise.
14705 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14706 (agent_mem_read_string, agent_tsv_read): Likewise.
14707
85e00e85
YQ
147082013-01-16 Yao Qi <yao@codesourcery.com>
14709
14710 * linux-low.c (linux_resume_one_lwp): Don't check
14711 'lwp->bp_reinsert != 0'.
14712
4039cf45
JB
147132013-01-07 Joel Brobecker <brobecker@adacore.com>
14714 Pedro Alves <palves@redhat.com>
14715
14716 * lynx-low.c (ptrace_request_to_str): Define a temporary
14717 macro and use it to simplify this function's implementation.
14718
9044dee2
JB
147192013-01-07 Joel Brobecker <brobecker@adacore.com>
14720
14721 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14722 sets errno.
14723
e6352c8f
JB
147242013-01-07 Joel Brobecker <brobecker@adacore.com>
14725
14726 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14727
50681a27
JB
147282013-01-07 Joel Brobecker <brobecker@adacore.com>
14729
14730 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14731
3f6e77ef
JB
147322013-01-07 Joel Brobecker <brobecker@adacore.com>
14733
14734 * lynx-low.c (lynx_resume): Use the resume_info parameter
14735 to determine the ptid for the lynx_ptrace call, unless
14736 it is equal to minus_one_ptid, in which case we use the
14737 ptid of the current_inferior.
14738 (lynx_wait_1): After having received a thread create/exit
14739 event, resume the inferior's execution using the signaling
14740 thread's ptid, rather than the old ptid.
14741
7fda33ae
JB
147422013-01-07 Joel Brobecker <brobecker@adacore.com>
14743
14744 * lynx-low.c (lynx_resume): Delete variable ret.
14745
b9786c74
JB
147462013-01-01 Joel Brobecker <brobecker@adacore.com>
14747
14748 * gdbreplay.c (gdbreplay_version): Update copyright year.
14749 * server.c (gdbserver_version): Likewise.
14750
8b93d60f
JB
147512012-12-17 Joel Brobecker <brobecker@adacore.com>
14752
14753 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14754 new thread.
14755
037335a7
JB
147562012-12-17 Joel Brobecker <brobecker@adacore.com>
14757
14758 * lynx-low.c (ptrace_request_to_str): Add handling for
14759 PTRACE_GETTRACESIG.
14760
52d4cbd8
JB
147612012-12-17 Joel Brobecker <brobecker@adacore.com>
14762
14763 * lynx-low.c (lynx_attach): Delete variable new_process.
14764
ab8f6ca9
JB
147652012-12-17 Joel Brobecker <brobecker@adacore.com>
14766
14767 * lynx-low.c (lynx_create_inferior): Delete variable
14768 new_process.
14769
78cbc024
JB
147702012-12-17 Joel Brobecker <brobecker@adacore.com>
14771
14772 * lynx-low.c (ptrace_request_to_str): Do not handle
14773 PTRACE_GETTHREADLIST if this macro does not exist.
14774
14a00470
YQ
147752012-12-15 Yao Qi <yao@codesourcery.com>
14776
14777 * Makefile.in (OBS): Add notif.o.
14778 * notif.c, notif.h: New.
14779 * server.c: Include "notif.h".
14780 (struct vstop_notif) <next>: Remove.
14781 <base>: New field.
14782 (queue_stop_reply): Update.
14783 (push_event, send_next_stop_reply): Remove.
14784 (discard_queued_stop_replies): Update.
14785 (notif_stop): New variable.
14786 (handle_v_stopped): Remove.
14787 (handle_v_requests): Don't call handle_v_stopped. Call
14788 handle_ack_notif instead.
14789 (queue_stop_reply_callback): Call notif_event_enque instead
14790 of queue_stop_reply.
14791 (handle_status): Don't call send_next_stop_reply, call
14792 notif_write_event instead.
14793 (kill_inferior_callback): Likewise.
14794 (detach_or_kill_inferior_callback): Likewise.
14795 (main): Call initialize_notif.
14796 (process_serial_event): Call QUEUE_is_empty.
14797 (handle_target_event): Call notif_push instead of push event.
14798 * server.h (push_event): Remove declaration.
14799
61c125b9
TT
148002012-12-10 Tom Tromey <tromey@redhat.com>
14801
14802 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14803 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14804 macros.
14805 (.c.o): Rewrite.
14806 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14807 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14808 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14809 (amd64-linux-ipa.o, ax.o): Rewrite.
14810 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14811 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14812 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14813 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14814 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14815 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14816 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14817 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14818 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14819 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14820 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14821 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14822 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14823 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14824 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14825 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14826 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14827 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14828 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14829 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14830 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14831 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14832 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14833 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14834 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14835 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14836 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14837 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14838 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14839 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14840 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14841 (reg-tilegx.o): Remove.
14842 (all_object_files): New macro.
14843 Include .deps files.
14844 * aclocal.m4, configure: Rebuild.
14845 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14846 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14847 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14848
e90e9ad9
TT
148492012-12-05 Tom Tromey <tromey@redhat.com>
14850
14851 PR gdb/14917:
14852 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14853
02d403bf 148542012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14855
14856 * configure.ac: Check for linux/perf_event.h.
14857 * config.in: Regenerated.
14858 * configure: Regenerated.
14859
0270a750
PA
148602012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14861
14862 * hostio.c (handle_readlink): Decrease buffer size
14863 parameter passed to readlink by one byte.
14864
8c29b58e
YQ
148652012-11-26 Yao Qi <yao@codesourcery.com>
14866
14867 * configure.ac (build_warnings): Append '-Wempty-body'.
14868 * configure: Regenerated.
14869 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14870 body.
14871
8bdce1ff
PM
148722012-11-15 Pierre Muller <muller@sourceware.org>
14873
14874 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14875 * config.in: Regenerate.
14876 * configure: Regenerate.
14877 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14878 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14879 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14880 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14881 header.
14882 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14883 instead of <sys/wait.h> header.
14884 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14885
02d403bf 148862012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14887
14888 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14889 (various make rules): Remove -DGDBSERVER
14890
fbd5db48
YQ
148912012-11-09 Yao Qi <yao@codesourcery.com>
14892
14893 * spu-low.c (current_ptid): Move it to ..
14894 * gdbthread.h: ... here. New.
14895 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14896 * server.c (myresume, process_serial_event): Likewise.
14897 * thread-db.c (thread_db_find_new_threads): Likewise.
14898 * tracepoint.c (run_inferior_command): Likewise.
14899
b3dc46ff
AB
149002012-10-01 Andrew Burgess <aburgess@broadcom.com>
14901
14902 * server.c (handle_search_memory_1): Include access length in
14903 warning message.
14904
07c04788
HPN
149052012-09-05 Michael Brandt <michael.brandt@axis.com>
14906
14907 * linux-crisv32-low.c: Fix compile errors.
14908
918d227b
YQ
149092012-09-04 Yao Qi <yao@codesourcery.com>
14910
14911 * tracepoint.c (cmd_qtsv): Adjust debug message.
14912 Don't check CUR_TPOINT.
14913
18c1b81a
YQ
149142012-08-28 Yao Qi <yao@codesourcery.com>
14915
14916 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14917 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14918 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14919 Remove declarations of xmalloc, xreallloc, xstrdup and
14920 freeargv.
14921 * Makefile.in (libiberty_h): New.
14922 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14923 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14924
dc82f37b
YQ
149252012-08-23 Yao Qi <yao@codesourcery.com>
14926
14927 * server.h: Remove declaration of 'xsnprintf'.
14928
406b1477
KS
149292012-08-22 Keith Seitz <keiths@redhat.com>
14930
14931 * server.h: Include build-gnulib-gbserver/config.h.
14932 * gdbreplay.c: Likewise.
14933
e6712ff1
DE
149342012-08-08 Doug Evans <dje@google.com>
14935
14936 * Makefile.in (SFILES): Add gdb_vecs.c.
14937 (OBS): Add gdb_vecs.o.
14938 (gdb_vecs_h, host_defs_h): New variables.
14939 (thread-db.o): Add $(gdb_vecs_h) dependency.
14940 (gdb_vecs.o): New rule.
14941 * thread-db.c: #include "gdb_vecs.h".
14942 (thread_db_load_search): Use a vector to iterate over path elements.
14943 Handle text appearing after "$pdir".
14944
14945 * configure.ac: Add check for strstr.
14946 * config.in: Regenerate.
14947 * configure: Regenerate.
14948
7c3270ae
UW
149492012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14950
14951 * hostio.c (handle_pread): If pread fails, fall back to attempting
14952 lseek/read.
14953 (handle_pwrite): Likewise for pwrite.
14954
b62e2b27
UW
149552012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14956
14957 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14958 between unsupported TYPE and unimplementable ADDR/LEN combination.
14959 (arm_insert_point): Act on new return value.
14960
78a99e91
PA
149612012-07-31 Pedro Alves <palves@redhat.com>
14962
14963 * server.c (process_point_options): Only skip tokens if we find
14964 one that is unrecognized. Don't treat 'X' specially while
14965 skipping unrecognized tokens.
14966
fcf303ab
UW
149672012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14968
14969 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14970 to 4-byte-align HW breakpoint addresses for Thumb.
14971
7255706c
YQ
149722012-07-27 Yao Qi <yao@codesourcery.com>
14973
14974 PR remote/14161.
14975
14976 * server.h: Declare gdb_agent_about_to_close.
14977 * target.c (kill_inferior): Include "agent.h".
14978 New. Send command 'kill'.
14979 * target.h (kill_inferior): Removed macro.
14980 * tracepoint.c (gdb_agent_about_to_close): New.
14981 (gdb_agent_helper_thread): Handle command 'close'.
14982 Wait endlessly until the inferior stops.
14983 Install gdb_agent_remove_socket to atexit hook.
14984 (agent_socket_name): New static variable.
14985 (gdb_agent_socket_init): Replace local variable 'name' with
14986 'agent_socket_name'.
14987 (gdb_agent_remove_socket): New.
14988
5a3f286f
YQ
149892012-07-27 Yao Qi <yao@codesourcery.com>
14990
14991 * server.c (process_point_options): Stop at 'X' when parsing.
14992
961bd387
ME
149932012-07-19 Michael Eager <eager@eagercon.com>
14994
a261b8f5 14995 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14996 to hw_execute.
14997 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14998 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14999 hardware breakpoint.
15000
aa7c7447
JK
150012012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15002
15003 * gdbserver/linux-low.c (initialize_low): Call
15004 linux_ptrace_init_warnings.
15005
7f216e7c
DE
150062012-07-02 Doug Evans <dje@google.com>
15007
15008 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15009 pointer to int.
15010
d3ce09f5
SS
150112012-07-02 Stan Shebs <stan@codesourcery.com>
15012
15013 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15014 (ax.o): Add it to build rule.
15015 (ax-ipa.o): Ditto.
15016 (OBS): Add format.o.
15017 (IPA_OBS): Add format.o.
15018 * server.c (handle_query): Claim support for breakpoint commands.
15019 (process_point_options): Add command case.
15020 (process_serial_event): Leave running if there are printfs in
15021 effect.
15022 * mem-break.h (any_persistent_commands): Declare.
15023 (add_breakpoint_commands): Declare.
15024 (gdb_no_commands_at_breakpoint): Declare.
15025 (run_breakpoint_commands): Declare.
15026 * mem-break.c (struct point_command_list): New struct.
15027 (struct breakpoint): New field command_list.
15028 (any_persistent_commands): New function.
15029 (add_commands_to_breakpoint): New function.
15030 (add_breakpoint_commands): New function.
15031 (gdb_no_commands_at_breakpoint): New function.
15032 (run_breakpoint_commands): New function.
15033 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15034 locally.
15035 * ax.c: Include format.h.
15036 (ax_printf): New function.
15037 (gdb_eval_agent_expr): Add printf opcode.
15038
2f8f6aed
YQ
150392012-06-13 Yao Qi <yao@codesourcery.com>
15040
15041 * server.c (start_inferior): Remove duplicated writes to fields
15042 'last_resume_kind' and 'last_status' of 'current_inferior'.
15043
0c9070b3
YQ
150442012-06-12 Yao Qi <yao@codesourcery.com>
15045 Pedro Alves <palves@redhat.com>
15046
15047 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15048 comment.
15049 * server.c (handle_v_cont): Extend comment.
15050
c52daf70
YQ
150512012-06-11 Yao Qi <yao@codesourcery.com>
15052
15053 * linux-low.c (linux_attach): Add 'static'.
15054
d38bbb0a
YQ
150552012-06-06 Yao Qi <yao@codesourcery.com>
15056
15057 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15058
89dc0afd
JK
150592012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15060
15061 Fix gcc -flto compilation warning.
15062 * server.c (main): Make variable multi_mode and attach volatile.
15063
75f62ce7
TJB
150642012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15065
15066 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15067 if the platform doesn't know about it.
15068
65f479b6
PA
150692012-05-30 Jeff Kenton <jkenton@tilera.com>
15070
15071 * Makefile.in (SFILES): Add linux-tile-low.c.
15072 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15073 * configure.srv: Handle tilegx-*-linux*.
15074 * linux-tile-low.c: New file.
15075
0c5bf5a9
JK
150762012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15077
15078 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15079
a493e3e2
PA
150802012-05-24 Pedro Alves <palves@redhat.com>
15081
15082 PR gdb/7205
15083
43aaf8b6 15084 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15085
2ea28649
PA
150862012-05-24 Pedro Alves <palves@redhat.com>
15087
15088 PR gdb/7205
15089
15090 Replace target_signal with gdb_signal throughout.
15091
8d409d16
MR
150922012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15093
15094 * linux-low.c (linux_store_registers): Avoid the copying sequence
15095 when no data has been retrieved by ptrace.
15096
23512c01
MGD
150972012-05-22 Will Deacon <will.deacon@arm.com>
15098
15099 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15100 Include asm/ptrace.h.
15101 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15102 already defined.
15103
4934b29e
MR
151042012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15105
15106 * linux-low.c (linux_store_registers): Don't re-retrieve data
15107 with ptrace that has already been obtained from /proc. Always
15108 copy any data retrieved with ptrace to the buffer supplied.
15109
bde24c0a
PA
151102012-05-11 Yao Qi <yao@codesourcery.com>
15111 Pedro Alves <palves@redhat.com>
15112
15113 * linux-low.c (enum stopping_threads_kind): New.
15114 (stopping_threads): Change type to `enum stopping_threads_kind'.
15115 (handle_extended_wait): If stopping and suspending threads, leave
15116 the new_lwp suspended too.
15117 (linux_wait_for_event): Adjust.
15118 (stop_all_lwps): Set `stopping_threads' to
15119 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15120 whether we're suspending threads or just stopping them. Assert no
15121 recursion happens.
15122
623b6bdf
YQ
151232012-04-29 Yao Qi <yao@codesourcery.com>
15124
15125 * server.h: Move some code to ...
15126 * gdbthread.h: ... here. New.
15127 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15128 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15129 (nto-low.o, win32-low.o): Likewise.
15130 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15131 * regcache.c, remote-utils.c, server.c: Likewise.
15132 * target.c, tracepoint.c, win32-low.c: Likewise.
15133
f15f9948
TJB
151342012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15135
15136 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15137 (PTRACE_ARG4_TYPE): Likewise.
15138 (PTRACE_XFER_TYPE): Likewise.
15139 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15140 ptrace to PTRACE_ARG3_TYPE.
15141 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15142 (PTRACE_ARG4_TYPE): Likewise.
15143 (PTRACE_XFER_TYPE): Likewise.
15144 (linux_detach_one_lwp): Cast fourth argument of
15145 ptrace to long then PTRACE_ARG4_TYPE.
15146 (regsets_fetch_inferior_registers): Cast third argument of
15147 ptrace to long then PTRACE_ARG3_TYPE.
15148 (regsets_store_inferior_registers): Likewise.
15149
38ea300a
PA
151502012-04-20 Pedro Alves <palves@redhat.com>
15151
15152 * configure: Regenerate.
15153
c971b7fa
PA
151542012-04-19 Pedro Alves <palves@redhat.com>
15155
43aaf8b6 15156 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15157 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15158 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15159 (all, install-only, uninstall, clean-info, all-lib, clean): No
15160 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15161 (maintainer-clean realclean distclean): Use subdir_do.
15162 (subdir_do): New.
15163 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15164 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15165 * acinclude.m4: Include acx_configure_dir.m4.
15166 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15167 calls. Call AC_PROG_RANLIB. Configure gnulib using
15168 ACX_CONFIGURE_DIR.
15169 (GNULIB): New.
15170 (GNULIB_STDINT_H): Adjust.
15171 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15172 * gdbreplay.c: Include build-gnulib/config.h.
15173 * server.h: Likewise.
15174 * aclocal.m4: Regenerate.
15175 * config.in: Regenerate.
15176 * configure: Regenerate.
c971b7fa 15177
809277f8
PA
151782012-04-19 Pedro Alves <palves@redhat.com>
15179
15180 * Makefile.in (LIBGNU, INCGNU): Adjust.
15181 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15182 (all, install-only, uninstall, clean-info, all-lib, clean)
15183 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15184 * configure.ac: Adjust AC_OUTPUT output.
15185 * aclocal.m4: Regenerate.
15186 * configure: Regenerate.
15187
fd9bb8b8
PA
151882012-04-19 Pedro Alves <palves@redhat.com>
15189
15190 * Makefile.in (generated_files): New.
15191 (server_h): Remove the explicit dependency on config.h, and depend
15192 on $generated_files.
15193
1c298c66
PA
151942012-04-19 Pedro Alves <palves@redhat.com>
15195
15196 * Makefile.in (INCGNU): Add -Ignulib.
15197
57c4b50b
PA
151982012-04-19 Pedro Alves <palves@redhat.com>
15199
15200 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15201 (INCGNU): ... this, and spell out -I here.
15202 (GNULIB_LIB): Rename to ...
15203 (LIBGNU): ... this.
15204 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15205
1030e047
PA
152062012-04-19 Pedro Alves <palves@redhat.com>
15207
15208 * config.in: Regenerate.
15209
447d4319
PA
152102012-04-19 Pedro Alves <palves@redhat.com>
15211
15212 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15213 * server.h (memmem): Remove declaration.
15214 * config.in: Regenerate.
15215 * configure: Regenerate.
15216
aad9eab9
YQ
152172012-04-19 Yao Qi <yao@codesourcery.com>
15218
15219 * Makefile.in (SFILES): Add common/vec.c.
15220 (OBS): Add vec.o.
15221 (vec.o): New rule.
15222
3e10640f
YQ
152232012-04-19 Yao Qi <yao@codesourcery.com>
15224
15225 * remote-utils.c (prepare_resume_reply): Replace with macro
15226 target_core_of_thread.
15227 * server.c (handle_qxfer_threads_proper): Likewise.
15228 * target.h (traget_core_of_thread): New macro.
15229
71622373
PA
152302012-04-18 Pedro Alves <palves@redhat.com>
15231
15232 * aclocal.m4: Regenerate.
15233 * configure: Regenerate.
15234
80d26939
YQ
152352012-04-16 Yao Qi <yao@codesourcery.com>
15236
15237 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15238 duplicated on address.
15239
42476b70
YQ
152402012-04-16 Yao Qi <yao@codesourcery.com>
15241
15242 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15243 (struct tracepoint_action_ops) <send>: New field.
15244 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15245 (agent_expr_send, x_tracepoint_action_send): New.
15246 (l_tracepoint_action_send): New.
15247 (cmd_qtdp): Download and install tracepoint
15248 according to `use_agent'.
15249 (run_inferior_command): Add one more parameter `len'.
15250 Update callers.
15251 (tracepoint_send_agent): New.
15252 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15253
7bc83639
YQ
152542012-04-16 Yao Qi <yao@codesourcery.com>
15255
15256 * tracepoint.c (download_tracepoints): Moved to ...
15257 (cmd_qtstart): ... here.
15258
5f18041e
YQ
152592012-04-14 Yao Qi <yao@codesourcery.com>
15260
15261 * tracepoint.c: Include inttypes.h.
15262 (struct collect_memory_action): Use sized types.
15263 (struct tracepoint): Likewise.
15264 (cmd_qtdp, stop_tracing): Update print specifiers.
15265 (cmd_qtp, response_tracepoint): Likewise.
15266 (collect_data_at_tracepoint): Likewise.
15267 (collect_data_at_step): Likewise.
15268
55a8c076
YQ
152692012-04-14 Yao Qi <yao@codesourcery.com>
15270
15271 Import gnulib module inttypes.
15272 * aclocal.m4, config.in, configure: Regenerated.
15273
dc750257
YQ
152742012-04-14 Yao Qi <yao@codesourcery.com>
15275
15276 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15277 Makefile and config.status at last.
15278
0ab5faf9
YQ
152792012-04-13 Yao Qi <yao@codesourcery.com>
15280
15281 * tracepoint.c: Include stdint.h unconditionally.
15282
18f5fd81
TJB
152832012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15284
15285 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15286 on BFD_HAVE_SYS_PROCFS_TYPE.
15287 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15288 * configure: Regenerate.
15289 * config.in: Likewise.
15290
4d47af5c
L
152912012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15292
15293 * Makefile.in (clean): Also remove x32.c x32-linux.c
15294 x32-avx.c x32-avx-linux.c.
15295 (x32.o): New target.
15296 (x32.c): Likewise.
15297 (x32-linux.o): Likewise.
15298 (x32-linux.c): Likewise.
15299 (x32-avx.o): Likewise.
15300 (x32-avx.c): Likewise.
15301 (x32-avx-linux.o): Likewise.
15302 (x32-avx-linux.c): Likewise.
15303
15304 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15305 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15306 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15307 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15308 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15309 i386/x32-avx-linux.xml.
15310
15311 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15312 (init_registers_x32_avx_linux): Likwise.
15313 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15314 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15315
ecedbe58
PA
153162012-04-13 Pedro Alves <palves@redhat.com>
15317
15318 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15319 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15320 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15321 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15322 the sub-make.
15323
c92b5177
L
153242012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15325
15326 * linux-x86-low.c (compat_x32_clock_t): New.
15327 (compat_x32_siginfo_t): Likewise.
15328 (compat_x32_siginfo_from_siginfo): Likewise.
15329 (siginfo_from_compat_x32_siginfo): Likewise.
15330 (linux_is_elf64): Likewise.
15331 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15332 and siginfo_from_compat_x32_siginfo for x32.
15333 (x86_arch_setup): Set linux_is_elf64.
15334
214d508e
L
153352012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15336
15337 PR gdb/13969
15338 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15339 e_machine field.
15340 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15341 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15342 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15343 compatible with process.
15344
c9a1864a
YQ
153452012-04-12 Yao Qi <yao@codesourcery.com>
15346
15347 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15348 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15349 (install-only, install-info, clean): Handle sub dir gnulib.
15350 (all-lib, am--refresh): New targets.
15351 (memmem.o): Remove target.
15352 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15353 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15354 (AC_REPLACE_FUNCS): Remove memmem.
15355 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15356 (AC_OUTPUT): Generate Makefile in gnulib/.
15357 * aclocal.m4, config.in, configure: Regenerated.
15358
367ba2c2
MR
153592012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15360
15361 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15362
9d236627
PA
153632012-04-05 Pedro Alves <palves@redhat.com>
15364
15365 -Werror=strict-aliasing
15366
15367 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15368 pointer.
15369
111217b3
PA
153702012-04-04 Pedro Alves <palves@redhat.com>
15371
15372 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15373 (sparc_store_gregset_from_stack, sparc_store_gregset)
15374 (sparc_breakpoint_at): Fix formatting.
15375
8365dcf5
TJB
153762012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15377
15378 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15379 are available.
15380 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15381 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15382 * config.in: Regenerate.
15383 * configure: Likewise.
15384
689cc2ae
PA
153852012-03-29 Pedro Alves <palves@redhat.com>
15386
15387 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15388 Correct ptrace arguments.
15389
c14dfd32
PA
153902012-03-28 Pedro Alves <palves@redhat.com>
15391
15392 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15393 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15394 (IA64_FR1_REGNUM): New defines.
15395 (ia64_fetch_register): New.
15396 (the_low_target): Install it.
15397 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15398 field.
15399 * linux-low.c (linux_fetch_registers): Try the
15400 the_low_target.fetch_register hook first.
15401
15402 * linux-arm-low.c (the_low_target): Adjust.
15403 * linux-bfin-low.c (the_low_target): Adjust.
15404 * linux-cris-low.c (the_low_target): Adjust.
15405 * linux-crisv32-low.c (the_low_target): Adjust.
15406 * linux-m32r-low.c (the_low_target): Adjust.
15407 * linux-m68k-low.c (the_low_target): Adjust.
15408 * linux-mips-low.c (the_low_target): Adjust.
15409 * linux-ppc-low.c (the_low_target): Adjust.
15410 * linux-s390-low.c (the_low_target): Adjust.
15411 * linux-sh-low.c (the_low_target): Adjust.
15412 * linux-sparc-low.c (the_low_target): Adjust.
15413 * linux-tic6x-low.c (the_low_target): Adjust.
15414 * linux-x86-low.c (the_low_target): Adjust.
15415 * linux-xtensa-low.c (the_low_target): Adjust.
15416
63c88e13
PA
154172012-03-26 Pedro Alves <palves@redhat.com>
15418
15419 * server.c (handle_qxfer_libraries): Don't bail early if
15420 the_target->qxfer_libraries_svr4 is not NULL.
15421
fb723180
PA
154222012-03-26 Pedro Alves <palves@redhat.com>
15423
15424 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15425
0afae3cf
PA
154262012-03-23 Pedro Alves <palves@redhat.com>
15427
15428 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15429 "library-list-svr4" element's start tag when the the DSO list is
15430 empty.
15431
485f1ee4
PA
154322012-03-23 Pedro Alves <palves@redhat.com>
15433
15434 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15435 a variable whose type size is the same as the inferior's pointer
15436 size.
15437
a5362b9a
TS
154382012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15439
15440 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15441 struct siginfo.
15442 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15443 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15444 * linux-low.h: Include <signal.h>.
15445 (struct siginfo): Remove forward declaration.
15446 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15447 struct siginfo.
15448
d226c142
MF
154492012-03-21 Mike Frysinger <vapier@gentoo.org>
15450
15451 * .gitignore: Ignore more files.
15452
122f36ef
PA
154532012-03-19 Pedro Alves <palves@redhat.com>
15454 Jan Kratochvil <jan.kratochvil@redhat.com>
15455
15456 * server.c (cont_thread, general_thread): Add describing comments.
15457 (start_inferior): Clear `cont_thread'.
15458 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15459 of a process.
15460
fc3e5175
YQ
154612012-03-15 Yao Qi <yao@codesourcery.com>
15462
15463 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15464 handling to ...
15465 (cmd_qtdp): ... here.
15466
8d0d92cd
YQ
154672012-03-15 Yao Qi <yao@codesourcery.com>
15468
15469 * tracepoint.c (struct tracepoint_action_ops): New.
15470 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15471 (m_tracepoint_action_download): New.
15472 (r_tracepoint_action_download): New.
15473 (x_tracepoint_action_download): New.
15474 (l_tracepoint_action_download): New.
15475 (add_tracepoint_action): Install `action->ops' according type.
15476 (download_tracepoint_1): Move code `download' function pointer
15477 of various tracepoint_action_ops.
15478
87b0bb13
JK
154792012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15480
15481 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15482 linux_ptrace_attach_warnings.
15483
5f572dec
JK
154842012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15485
15486 * Makefile.in (linux-ptrace.o): New.
15487 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15488 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15489 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15490 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15491 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15492 of these targets.
15493 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15494
f4647387
YQ
154952012-03-08 Yao Qi <yao@codesourcery.com>
15496 Pedro Alves <palves@redhat.com>
15497
15498 Fix PR server/13392.
15499 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15500 offset of JMP insn.
15501 * tracepoint.c (remove_tracepoint): New.
15502 (cmd_qtdp): Call remove_tracepoint when failed to install.
15503
9b224c5e
PA
155042012-03-07 Pedro Alves <palves@redhat.com>
15505
15506 * linux-low.c (get_detach_signal): New.
15507 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15508 Pass on pending signals to PTRACE_DETACH. Check the result of the
15509 ptrace call.
15510 * server.c (program_signals, program_signals_p): New.
15511 (handle_general_set): Handle QProgramSignals.
15512 * server.h (program_signals, program_signals_p): Declare.
15513
e237a7e2
JK
155142012-03-05 Pedro Alves <palves@redhat.com>
15515 Jan Kratochvil <jan.kratochvil@redhat.com>
15516
15517 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15518 New comment why.
15519
5808517f
YQ
155202012-03-03 Yao Qi <yao@codesourcery.com>
15521
15522 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15523 agent_look_up_symbols.
15524
58b4daa5
YQ
155252012-03-03 Yao Qi <yao@codesourcery.com>
15526
15527 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15528 (linux-x86-low.o): Likewise.
15529 * server.h: Remove in_process_agent_loaded.
15530 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15531 common/agent.c.
15532 Update callers.
15533
8ffcbaaf
YQ
155342012-03-03 Yao Qi <yao@codesourcery.com>
15535
15536 * tracepoint.c (gdb_agent_capability): New global.
15537 (in_process_agent_loaded_ust): Renamed to
15538 `in_process_agent_supports_ust'.
15539 Update callers.
15540 (in_process_agent_supports_ust): Call agent_capability_check.
15541 (clear_installed_tracepoints): Assert that agent supports
15542 agent.
15543
d1feda86
YQ
155442012-03-03 Yao Qi <yao@codesourcery.com>
15545
15546 * linux-low.c (linux_supports_agent): New.
15547 (linux_target_ops): Initialize field `supports_agent' with
15548 linux_supports_agent.
15549 * target.h (struct target_ops) <supports_agent>: New.
15550 (target_supports_agent): New macro.
15551 * server.c (handle_general_set): Handle packet 'QAgent'.
15552 (handle_query): Send `QAgent+'.
15553 * Makefile.in (server.o): Depends on agent.h.
15554
2fa291ac
YQ
155552012-03-03 Yao Qi <yao@codesourcery.com>
15556
15557 * Makefile.in (OBS): Add agent.o.
15558 Add new rule for agent.o.
15559 Track dependence of tracepoint.c on agent.h.
15560 * tracepoint.c (run_inferior_command_1):
15561 (run_inferior_command): Call agent_run_command.
15562 (gdb_ust_connect_sync_socket): Deleted. Move it to
15563 common/agent.c.
15564 (resume_thread, stop_thread): Likewise.
15565 (gdb_ust_socket_init): Renamed to ...
15566 (gdb_agent_socket_init): ... New.
15567 (gdb_ust_thread): Renamed to ...
15568 (gdb_agent_helper_thread): ... New.
15569 (gdb_ust_init): Move some code to ...
15570 (gdb_agent_init): ... here. New.
15571 [HAVE_UST]: Call gdb_ust_init.
15572 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15573 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15574 * config.in, configure: Regenerated.
15575
05044653
PA
155762012-03-02 Pedro Alves <palves@redhat.com>
15577
15578 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15579 * linux-low.c (struct simple_pid_list): New.
15580 (stopped_pids): New a struct simple_pid_list pointer.
15581 (add_to_pid_list, pull_pid_from_list): New.
15582 (handle_extended_wait): Don't assume the first signal new children
15583 report is SIGSTOP. Adjust call to pull_pid_from_list.
15584 (linux_wait_for_lwp): Adjust.
15585
8d00225b
YQ
155862012-03-02 Yao Qi <yao@codesourcery.com>
15587
15588 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15589 debug log.
15590
19560ba5
YQ
155912012-03-02 Yao Qi <yao@codesourcery.com>
15592
15593 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15594 `stop_pc' and `tpoint'. Update caller.
15595
1faeff08
MR
155962012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15597
15598 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15599 * linux-low.c (use_linux_regsets): New macro.
15600 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15601 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15602 (linux_register_in_regsets): New function.
15603 (usr_fetch_inferior_registers): Skip registers covered by
15604 regsets.
15605 (usr_store_inferior_registers): Likewise.
15606 (usr_fetch_inferior_registers): New macro.
15607 (usr_store_inferior_registers): Likewise.
15608 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15609 (linux_store_registers): Likewise.
15610 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15611 prototype.
15612 (init_registers_mips64_dsp_linux): Likewise.
15613 (init_registers_mips_linux): New macro.
15614 (init_registers_mips_dsp_linux): Likewise.
15615 (mips_dsp_num_regs): Likewise.
15616 (DSP_BASE, DSP_CONTROL): New fallback macros.
15617 (mips_base_regs): New macro.
15618 (mips_regmap): Use it. Fix the size.
15619 (mips_dsp_regmap): New variable.
15620 (mips_dsp_regset_bitmap): Likewise.
15621 (mips_arch_setup): New function.
15622 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15623 than mips_regmap.
15624 (mips_cannot_store_register): Likewise.
15625 (the_low_target): Update .arch_setup, .num_regs and .regmap
15626 initializers. Add .regset_bitmap initializer.
15627 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15628 initializer.
15629 * linux-bfin-low.c (the_low_target): Likewise.
15630 * linux-cris-low.c (the_low_target): Likewise.
15631 * linux-crisv32-low.c (the_low_target): Likewise.
15632 * linux-ia64-low.c (the_low_target): Likewise.
15633 * linux-m32r-low.c (the_low_target): Likewise.
15634 * linux-m68k-low.c (the_low_target): Likewise.
15635 * linux-ppc-low.c (the_low_target): Likewise.
15636 * linux-s390-low.c (the_low_target): Likewise.
15637 * linux-sh-low.c (the_low_target): Likewise.
15638 * linux-sparc-low.c (the_low_target): Likewise.
15639 * linux-tic6x-low.c (the_low_target): Likewise.
15640 * linux-x86-low.c (the_low_target): Likewise.
15641 * linux-xtensa-low.c (the_low_target): Likewise.
15642 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15643 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15644 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15645 srv_xmlfiles.
15646 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15647 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15648
c03e6ccc
YQ
156492012-02-29 Yao Qi <yao@codesourcery.com>
15650 Pedro Alves <palves@redhat.com>
15651
15652 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15653 `step_over_finished' is true.
15654
644cebc9
PA
156552012-02-27 Pedro Alves <palves@redhat.com>
15656
15657 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15658 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15659
c14d7ab2
PA
156602012-02-27 Pedro Alves <palves@redhat.com>
15661
15662 PR server/9684
15663 * linux-low.c (pid_is_stopped): New.
15664 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15665
412c89dd
LM
156662012-02-25 Luis Machado <lgustavo@codesourcery.com>
15667
15668 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15669 of conditions.
15670
b745defe
MR
156712012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15672
15673 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15674
9f3a5c85
LM
156752012-02-24 Luis Machado <lgustavo@codesourcery>
15676
15677 * server.c (handle_query): Advertise support for target-side
15678 breakpoint condition evaluation.
15679 (process_point_options): New function.
15680 (process_serial_event): When inserting a breakpoint, check for
15681 a target-side condition that should be evaluated.
15682
15683 * mem-break.c: Include regcache.h and ax.h.
15684 (point_cond_list_t): New data structure.
15685 (breakpoint) <cond_list>: New field.
15686 (find_gdb_breakpoint_at): Make non-static.
15687 (delete_gdb_breakpoint_at): Clear any target-side
15688 conditions.
15689 (clear_gdb_breakpoint_conditions): New function.
15690 (add_condition_to_breakpoint): Likewise.
15691 (add_breakpoint_condition): Likewise.
15692 (gdb_condition_true_at_breakpoint): Likewise.
15693 (gdb_breakpoint_here): Return result directly instead
15694 of going through a local variable.
15695
15696 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15697 (clear_gdb_breakpoint_conditions): Likewise.
15698 (add_breakpoint_condition): Likewise.
15699 (gdb_condition_true_at_breakpoint): Likewise.
15700
15701 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15702 (need_step_over_p): Take target-side breakpoint condition into
15703 consideration.
15704
5e1dc496
LM
157052012-02-24 Luis Machado <lgustavo@codesourcery>
15706
15707 * server.h: Include tracepoint.h.
15708 (agent_mem_read, agent_get_trace_state_variable_value,
15709 agent_set_trace_state_variable_value,
15710 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15711 get_set_tsv_func_addr): New prototypes.
15712
15713 * ax.h: New include file.
15714 * ax.c: New source file.
15715
15716 * tracepoint.c: Include ax.h.
15717 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15718 agent_expr, eval_result_type): Move to ax.h.
15719 (parse_agent_expr): Rename to ...
15720 (gdb_parse_agent_expr): ... this, make it non-static and move
15721 to ax.h.
15722 (unparse_agent_expr) Rename to ...
15723 (gdb_unparse_agent_expr): ... this, make it non-static and move
15724 to ax.h.
15725 (eval_agent_expr): Rename to ...
15726 (eval_tracepoint_agent_expr): ... this.
15727 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15728 forward declarations.
15729 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15730 (agent_get_trace_state_variable_value): New function.
15731 (agent_set_trace_state_variable_value): New function.
15732 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15733 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15734 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15735 (condition_true_at_tracepoint): Likewise.
15736 (parse_agent_expr): Rename to ...
15737 (gdb_parse_agent_expr): ... this and move to ax.c.
15738 (unparse_agent_expr): Rename to ...
15739 (gdb_unparse_agent_expr): ... this and move to ax.c.
15740 (gdb_agent_op_name): Move to ax.c.
15741 (eval_agent_expr): Rename to ...
15742 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15743 and move to ax.c.
15744 (eval_tracepoint_agent_expr): New function.
15745 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15746 non-static.
5e1dc496
LM
15747 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15748 ax.c.
15749 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15750 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15751 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15752 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15753 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15754 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15755 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15756 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15757 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15758 (compile_bytecodes): Remove forward declaration.
15759 (is_goto_target): Move to ax.c.
15760 (compile_bytecodes): Move to ax.c and call
15761 agent_get_trace_state_variable_value (...) and
15762 agent_set_trace_state_variable_value (...).
15763
15764 * Makefile.in: Update ax.c and IPA dependencies.
15765
277e4e52
PA
157662012-02-24 Pedro Alves <palves@redhat.com>
15767
15768 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15769 (cmd_bigqtbuffer_circular): ... this. Only handle
15770 'QTBuffer:circular:'.
15771 (handle_tracepoint_general_set): Adjust.
15772
bf4c19f7
YQ
157732012-02-16 Yao Qi <yao@codesourcery.com>
15774
15775 * inferiors.c: Move code to ...
15776 * dll.c: .... here. New.
15777 * server.h: Declare clear_dlls.
15778 * Makefile.in (SFILES): Add dll.c.
15779 (OBS): Add dll.o
15780 (dll.o): New rule.
15781
d73f2619
YQ
157822012-02-11 Yao Qi <yao@codesourcery.com>
15783
15784 * server.c: (handle_monitor_command): Add a new parameter
15785 `own_buf'.
15786 (handle_query): Update caller.
15787
f8255c2a
JB
157882012-02-09 Joel Brobecker <brobecker@adacore.com>
15789
15790 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15791 * configure, config.in: Regenerate.
15792 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15793 is not defined.
15794
da84f473
PA
157952012-02-02 Pedro Alves <palves@redhat.com>
15796
15797 Try SIGKILL first, then PTRACE_KILL.
15798 * linux-low.c (linux_kill_one_lwp): New.
15799 (linux_kill_one_lwp): Rename to ...
15800 (kill_one_lwp_callback): ... this. Use the new
15801 linux_kill_one_lwp.
15802
e886a173
PA
158032012-02-02 Pedro Alves <palves@redhat.com>
15804
15805 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15806 inferior.
15807
be07f1a2
PA
158082012-01-27 Pedro Alves <palves@redhat.com>
15809
15810 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15811 (elf_64_file_p): Make static.
15812 (linux_pid_exe_is_elf_64_file): New.
15813 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15814 Delete declarations.
15815 (linux_pid_exe_is_elf_64_file): Declare.
15816 * linux-x86-low.c (x86_arch_setup): Use
15817 linux_pid_exe_is_elf_64_file.
15818
d8301ad1
JK
158192012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15820
15821 * linux-low.c (linux_wait_for_event_1): Rename to ...
15822 (linux_wait_for_event): ... here and merge it with former
15823 linux_wait_for_event - new variable wait_ptid, use it.
15824 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15825
01b17894
PA
158262012-01-23 Pedro Alves <palves@redhat.com>
15827
15828 * server.c (main): Avoid yet another case of infinite loop while
15829 detaching/killing after a longjmp.
15830
e825046f
JK
158312012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15832
15833 Code cleanup.
15834 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15835
b9e7b9c3
UW
158362012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15837
15838 * hostio.c (handle_readlink): New function.
15839 (handle_vFile): Call it to handle "vFile:readlink" packets.
15840
901f9912
UW
158412012-01-20 Pedro Alves <palves@redhat.com>
15842 Ulrich Weigand <ulrich.weigand@linaro.org>
15843
15844 * server.c (handle_v_requests): Only support vAttach and vRun to
15845 start multiple processes when in extended protocol mode.
15846
fc1ab1a0
PA
158472012-01-17 Pedro Alves <palves@redhat.com>
15848
15849 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15850 memalign plus mprotect to allocate the scratch buffer.
15851
7d5d4e98
PA
158522012-01-13 Pedro Alves <palves@redhat.com>
15853
15854 * server.c (attach_inferior): Clear `cont_thread'.
15855
f128d5e9
PA
158562012-01-13 Pedro Alves <palves@redhat.com>
15857
15858 * server.c (main): Avoid infinite loop while detaching/killing
15859 after a longjmp.
15860
06db92f0
DE
158612012-01-09 Doug Evans <dje@google.com>
15862
15863 * server.c (start_inferior): Set last_ptid in --wrapper case.
15864
32d92999
YQ
158652012-01-06 Yao Qi <yao@codesourcery.com>
15866
15867 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15868 defined.
15869 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15870
5e0a92a9
YQ
158712012-01-04 Yao Qi <yao@codesourcery.com>
15872
15873 * tracepoint.c (cmd_qtdp): Print debug message
15874 for static tracepoint.
15875
ae639e8c
YQ
158762012-01-04 Yao Qi <yao@codesourcery.com>
15877
15878 * tracepoint.c (trace_vdebug): Differentiate debug message
15879 between gdbserver and IPA.
15880
f72429c5
YQ
158812012-01-03 Yao Qi <yao@codesourcery.com>
15882
15883 * tracepoint.c (tracepoint_was_hit): Don't collect for
15884 static tracepoint.
15885
12c3e59c
JB
158862012-01-02 Joel Brobecker <brobecker@adacore.com>
15887
15888 * terminal.h: Reformat copyright header.
15889
67827812
JB
158902012-01-02 Joel Brobecker <brobecker@adacore.com>
15891
15892 * server.c (gdbserver_version): Update copyright year.
15893 * gdbreplay.c (gdbreplay_version): Likewise.
15894
3e52c33d
JK
158952011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15896
15897 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15898
15899 Revert:
15900 2011-12-18 Hui Zhu <teawater@gmail.com>
15901 * linux-low.c (linux_create_inferior): Save return value to ret.
15902
66f1260e
HZ
159032011-12-18 Hui Zhu <teawater@gmail.com>
15904
15905 * linux-low.c (linux_create_inferior): Save return value to ret.
15906
e77616d7
DE
159072011-12-16 Doug Evans <dje@google.com>
15908
e7b06c57
DE
15909 * linux-low.c (linux_create_inferior): If stdio connection,
15910 redirect stdin from /dev/null, stdout to stderr.
15911 * remote-utils.c (remote_is_stdio): New static global.
15912 (remote_connection_is_stdio): New function.
15913 (remote_prepare): Handle stdio connection.
15914 (remote_open): Ditto.
15915 (remote_close): Don't close stdin for stdio connections.
15916 (read_prim,write_prim): New functions. Replace all calls to
15917 read/write to these.
15918 * server.c (main): Watch for "-" argument. Move call to
15919 remote_prepare before start_inferior.
15920 * server.h (STDIO_CONNECTION_NAME): New macro.
15921 (remote_connection_is_stdio): Declare.
15922
e77616d7
DE
15923 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15924 in debugging output.
15925
82067193
YQ
159262011-12-15 Yao Qi <yao@codesourcery.com>
15927
15928 * tracepoint.c: Include sys/syscall.h.
15929 (gdb_ust_thread): Remove preprocessor conditional.
15930
82bfbe7e
PA
159312011-12-14 Pedro Alves <pedro@codesourcery.com>
15932
15933 * linux-low.c (linux_detach_one_lwp): Call
15934 the_low_target.prepare_to_resume before detaching.
15935
712c6575
YQ
159362011-12-14 Yao Qi <yao@codesourcery.com>
15937
15938 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15939 of write.
15940
d54d1edf
YQ
159412011-12-14 Yao Qi <yao@codesourcery.com>
15942
15943 * i386-low.c (i386_low_stopped_data_address): Initialize local
15944 variable `control'.
15945
6210a125
PA
159462011-12-13 Pedro Alves <pedro@codesourcery.com>
15947
15948 PR remote/13492
15949
15950 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15951 DR_CONTROL unless necessary. Extend comments.
15952 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15953 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15954
2ece8244
YQ
159552011-12-13 Yao Qi <yao@codesourcery.com>
15956
15957 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15958 macros.
15959 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15960
784867a5
JK
159612011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15962
15963 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15964 Print new debug message for such case.
15965
6bf36717
JK
159662011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15967
15968 Fix overlapping memcpy.
15969 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15970 the read_inferior_memory transfer.
15971 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15972 write_inferior_memory transfer.
15973 (set_fast_tracepoint_jump): New variable buf. Use it for the
15974 read_inferior_memory and write_inferior_memory transfers.
15975 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15976 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15977 Use it for the write_inferior_memory transfer.
15978 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15979 buffers.
15980
50275556
MR
159812011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15982
15983 * linux-low.c (fetch_register, store_register): Make code
15984 consistent, fix formatting.
15985
7325beb4
MR
159862011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15987
15988 * linux-low.c (usr_store_inferior_registers): Factor out code
15989 to handle individual registers into...
15990 (store_register): ... this new function.
15991
c642a434
UW
159922011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15993
15994 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15995 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15996 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15997 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15998 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15999 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16000 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16001 (srv_xmlfiles): Add new XML files.
16002
16003 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16004 and <sys/uio.h>.
16005 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16006 (init_registers_s390_linux32v1): Add prototype.
16007 (init_registers_s390_linux32v2): Likewise.
16008 (init_registers_s390_linux64v1): Likewise.
16009 (init_registers_s390_linux64v2): Likewise.
16010 (init_registers_s390x_linux64v1): Likewise.
16011 (init_registers_s390x_linux64v2): Likewise.
16012 (s390_num_regs): Increment to 52.
16013 (s390_regmap): Add orig_r2 register.
16014 (s390_num_regs_3264): Increment to 68.
16015 (s390_regmap_3264): Add orig_r2 register.
16016 (s390_collect_ptrace_register): Handle orig_r2 register.
16017 (s390_supply_ptrace_register): Likewise.
16018 (s390_fill_last_break): New function.
16019 (s390_store_last_break): Likewise.
16020 (s390_fill_system_call): New function.
16021 (s390_store_system_call): Likewise.
16022 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16023 register sets.
16024 (s390_check_regset): New function.
16025 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16026 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16027 Update target_regsets for available register sets.
16028
2268b414
JK
160292011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16030 Jan Kratochvil <jan.kratochvil@redhat.com>
16031
16032 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16033 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16034 New.
16035 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16036 * linux-low.h (struct process_info_private): New member r_debug.
16037 * server.c (handle_qxfer_libraries): Call
16038 the_target->qxfer_libraries_svr4.
16039 (handle_qxfer_libraries_svr4): New function.
16040 (qxfer_packets): New entry "libraries-svr4".
16041 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16042 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16043 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16044 PACKET_qXfer_libraries_svr4.
16045
d6db1fab
UW
160462011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16047
16048 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16049 PSW address/mask between 8-byte and 16-byte formats.
16050 (s390_supply_ptrace_register): Likewise.
16051 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16052 basic addressing mode bit.
16053
242f5f1c
SS
160542011-11-24 Stan Shebs <stan@codesourcery.com>
16055
16056 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16057
f196051f
SS
160582011-11-17 Stan Shebs <stan@codesourcery.com>
16059
16060 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16061 (tracing_start_time): New global.
16062 (tracing_stop_time): New global.
16063 (tracing_user_name): New global.
16064 (tracing_notes): New global.
16065 (tracing_stop_note): New global.
16066 (cmd_qtstart): Set traceframe_usage, start_time.
16067 (stop_tracing): Set stop_time.
16068 (cmd_qtstatus): Report additional status.
16069 (cmd_qtp): New function.
16070 (handle_tracepoint_query): Call it.
16071 (cmd_qtnotes): New function.
16072 (handle_tracepoint_general_set): Call it.
16073 (get_timestamp): Rename from tsv_get_timestamp.
16074
405f8e94
SS
160752011-11-14 Stan Shebs <stan@codesourcery.com>
16076 Kwok Cheung Yeung <kcy@codesourcery.com>
16077
16078 * linux-x86-low.c (small_jump_insn): New.
16079 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16080 trampoline and error message, build a trampoline and issue a small
16081 jump instruction to it.
16082 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16083 trampoline and error message.
16084 (x86_get_min_fast_tracepoint_insn_len): New.
16085 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16086 * linux-low.h (struct linux_target_ops): Add arguments to
16087 install_fast_tracepoint_jump_pad operation, add new operation.
16088 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16089 arguments.
16090 (linux_get_min_fast_tracepoint_insn_len): New function.
16091 (linux_target_op): Add new operation.
16092 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16093 (gdb_trampoline_buffer_end): Ditto.
16094 (gdb_trampoline_buffer_error): Ditto.
16095 (struct ipa_sym_addresses): Add fields for new IPA variables.
16096 (symbol_list): Add entries for new IPA variables.
16097 (struct tracepoint): Add fields to hold the address range of the
16098 trampoline used by the tracepoint.
16099 (trampoline_buffer_head): New static variable.
16100 (trampoline_buffer_tail): Ditto.
16101 (claim_trampoline_space): New function.
16102 (have_fast_tracepoint_trampoline_buffer): New function.
16103 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16104 structure.
16105 (install_fast_tracepoint): Ditto, also add error buffer argument.
16106 (cmd_qtminftpilen): New function.
16107 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16108 (fast_tracepoint_from_trampoline_address): New function.
16109 (fast_tracepoint_collecting): Handle trampoline as part of jump
16110 pad space.
16111 (set_trampoline_buffer_space): New function.
16112 (initialize_tracepoint): Initialize new IPA variables.
16113 * target.h (struct target_ops): Add arguments to
16114 install_fast_tracepoint_jump_pad operation, add new
16115 get_min_fast_tracepoint_insn_len operation.
16116 (target_get_min_fast_tracepoint_insn_len): New.
16117 (install_fast_tracepoint_jump_pad): Add arguments.
16118 * server.h (IPA_BUFSIZ): Define.
16119 * linux-i386-ipa.c: Include extra header files.
16120 (initialize_fast_tracepoint_trampoline_buffer): New function.
16121 (initialize_low_tracepoint): Call it.
16122 * server.h (set_trampoline_buffer_space): Declare.
16123 (claim_trampoline_space): Ditto.
16124 (have_fast_tracepoint_trampoline_buffer): Ditto.
16125
1e4d1764
YQ
161262011-11-14 Yao Qi <yao@codesourcery.com>
16127
16128 * server.c (handle_query): Handle InstallInTrace for qSupported.
16129 * tracepoint.c (add_tracepoint): Sort list.
16130 (install_tracepoint, download_tracepoint): New.
16131 (cmd_qtdp): Call them to install and download tracepoints.
16132 (sort_tracepoints): Removed.
16133 (cmd_qtstart): Update.
16134
5c73ff4e
YQ
161352011-11-14 Yao Qi <yao@codesourcery.com>
16136
16137 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16138 * mem-break.h: Declare.
16139 * tracepoint.c (cmd_qtstart): Move some code to ...
16140 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16141 New.
16142 (download_tracepoints): Move some code to ...
16143 (download_tracepoint_1): ... here. New.
16144
86a30030
YQ
161452011-11-08 Yao Qi <yao@codesourcery.com>
16146
16147 * remote-utils.c (relocate_instruction): A comment fix.
16148
8d26e50c
JB
161492011-11-07 Joel Brobecker <brobecker@adacore.com>
16150
16151 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16152 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16153 dr_status_mirror and dr_control_mirror from debug_reg_state.
16154 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16155 (i386_initial_stuff): Remove use of deleted globals.
16156 (i386_get_thread_context, i386_set_thread_context,
16157 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16158 from debug_reg_state.
16159
a59306a3
YQ
161602011-11-05 Yao Qi <yao@codesourcery.com>
16161
16162 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16163 address as TPOINT's.
16164
3065dfb6
SS
161652011-11-02 Stan Shebs <stan@codesourcery.com>
16166
16167 * tracepoint.c (agent_mem_read_string): New function.
16168 (eval_agent_expr): Call it for tracenz.
16169 * server.c (handle_query): Report support for tracenz.
16170
fd0d8c7c
YQ
161712011-11-02 Yao Qi <yao@codesourcery.com>
16172
16173 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16174
609086b1
YQ
161752011-11-02 Yao Qi <yao@codesourcery.com>
16176
16177 * target.h: Fix a typo in comment.
16178
b9fd1791
PA
161792011-10-31 Pedro Alves <pedro@codesourcery.com>
16180
16181 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16182 clobber the breakpoints' shadows with fast tracepoint jumps.
16183 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16184 * target.c (write_inferior_memory): Also pass MYADDR down to
16185 check_mem_write.
16186
03583c20
UW
161872011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16188
16189 * configure.ac: Check support for personality routine.
16190 * configure: Regenerate.
16191 * config.in: Likewise.
16192 * linux-low.c: Include <sys/personality.h>.
16193 Define ADDR_NO_RANDOMIZE if necessary.
16194 (linux_create_inferior): Disable address space randomization when
16195 forking inferior, if requested.
16196 (linux_supports_disable_randomization): New function.
16197 (linux_target_ops): Install it.
16198 * server.h (disable_randomization): Declare.
16199 * server.c (disable_randomization): New global variable.
16200 (handle_general_set): Handle QDisableRandomization.
16201 (handle_query): Likewise for qSupported.
16202 (main): Support --disable-randomization and --no-disable-randomization
16203 command line arguments.
16204 * target.h (struct target_ops): Add supports_disable_randomization.
16205 (target_supports_disable_randomization): New macro.
16206
723b724b
MF
162072011-09-29 Mike Frysinger <vapier@gentoo.org>
16208
16209 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16210 ifdef check.
16211 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16212 [!PT_GETDSBT] (target_loadmap): New definition.
16213 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16214 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16215 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16216 and PT_GETDSBT to LINUX_LOADMAP.
16217 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16218 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16219
55329a5c 162202011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16221
16222 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16223 (arm_linux_hwbp_cap): New static variable.
16224 (arm_linux_get_hwbp_cap): Replace by ...
16225 (arm_linux_init_hwbp_cap): ... this new function.
16226 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16227 (arm_linux_get_hw_watchpoint_count): Likewise.
16228 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16229 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16230 (arm_prepare_to_resume): Use perror_with_name instead of error.
16231
55329a5c 162322011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16233
16234 * linux-arm-low.c: Include <signal.h>.
16235 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16236 (struct arm_linux_hwbp_cap): New data type.
16237 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16238 (struct arm_linux_hw_breakpoint): New data type.
16239 (MAX_BPTS, MAX_WPTS): Define.
16240 (struct arch_process_info, struct arch_lwp_info): New data types.
16241 (arm_linux_get_hwbp_cap): New function.
16242 (arm_linux_get_hw_breakpoint_count): Likewise.
16243 (arm_linux_get_hw_watchpoint_count): Likewise.
16244 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16245 (arm_hwbp_control_initialize): Likewise.
16246 (arm_hwbp_control_is_enabled): Likewise.
16247 (arm_hwbp_control_is_initialized): Likewise.
16248 (arm_hwbp_control_disable): Likewise.
16249 (arm_linux_hw_breakpoint_equal): Likewise.
16250 (arm_linux_hw_point_initialize): Likewise.
16251 (struct update_registers_data): New data structure.
16252 (update_registers_callback: New function.
16253 (arm_insert_point): Likewise.
16254 (arm_remove_point): Likewise.
16255 (arm_stopped_by_watchpoint): Likewise.
16256 (arm_stopped_data_address): Likewise.
16257 (arm_new_process): Likewise.
16258 (arm_new_thread): Likewise.
16259 (arm_prepare_to_resume): Likewise.
16260 (the_low_target): Register arm_insert_point, arm_remove_point,
16261 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16262 arm_new_thread, and arm_prepare_to_resume.
16263
6b9801d4
SS
162642011-09-15 Stan Shebs <stan@codesourcery.com>
16265
16266 * server.h (struct emit_ops): Add compare-goto fields.
16267 * tracepoint.c (gdb_agent_op_sizes): New table.
16268 (emit_eq_goto): New function.
16269 (emit_ne_goto): New function.
16270 (emit_lt_goto): New function.
16271 (emit_le_goto): New function.
16272 (emit_gt_goto): New function.
16273 (emit_ge_goto): New function.
16274 (is_goto_target): New function.
16275 (compile_bytecodes): Recognize special cases of compare-goto
16276 combinations and call specialized emitters for them.
16277 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16278 (amd64_emit_ne_goto): New function.
16279 (amd64_emit_lt_goto): New function.
16280 (amd64_emit_le_goto): New function.
16281 (amd64_emit_gt_goto): New function.
16282 (amd64_emit_ge_goto): New function.
16283 (amd64_emit_ops): Add the new functions.
16284 (i386_emit_eq_goto): New function.
16285 (i386_emit_ne_goto): New function.
16286 (i386_emit_lt_goto): New function.
16287 (i386_emit_le_goto): New function.
16288 (i386_emit_gt_goto): New function.
16289 (i386_emit_ge_goto): New function.
16290 (i386_emit_ops): Add the new functions.
16291
bf15cbda
SS
162922011-09-08 Stan Shebs <stan@codesourcery.com>
16293
16294 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16295 (i386_emit_epilogue): Restore %ebx.
16296
943ca1dd
JZ
162972011-08-31 Jie Zhang <jzhang918@gmail.com>
16298
16299 * server.c (step_thread): Remove definition.
16300 (process_serial_event): Don't handle Hs.
16301 * server.h (step_thread): Remove declaration.
16302 * target.c (set_desired_inferior): Remove use of step_thread.
16303
e3deef73
LM
163042011-08-24 Luis Machado <lgustavo@codesourcery.com>
16305
16306 * linux-low.c: Include linux-procfs.h.
16307 (linux_attach_lwp_1): Update comments.
16308 (linux_attach): Scan for existing threads when attaching to a
16309 process that is the tgid.
16310 * Makefile.in: Update dependencies.
16311
13da1c97
LM
163122011-08-24 Luis Machado <lgustavo@codesourcery.com>
16313
16314 * configure.srv: Add linux-procfs.o dependencies.
16315
881127c9
YQ
163162011-08-14 Yao Qi <yao@codesourcery.com>
16317
16318 * target.h (struct target_ops): Fix indent.
16319 * win32-low.c (win32_target_ops): Fix comment.
16320
58dbd541
YQ
163212011-08-14 Andrew Jenner <andrew@codesourcery.com>
16322 Yao Qi <yao@codesourcery.com>
16323
16324 * Makefile.in (clean): Remove tic6x-*.c files.
16325 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16326 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16327 (tic6x-c64xp-linux.c): Likewise.
16328 * configure.srv: Add support for tic6x-*-uclinux.
16329 * linux-tic6x-low.c: New.
16330 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16331
78d85199
YQ
163322011-08-14 Andrew Stubbs <ams@codesourcery.com>
16333 Yao Qi <yao@codesourcery.com>
16334
16335 * target.h (struct target_ops): Add read_loadmap.
16336 * linux-low.c (struct target_loadseg): New type.
16337 (struct target_loadmap): New type.
16338 (linux_read_loadmap): New function.
16339 (linux_target_ops): Add linux_read_loadmap.
16340 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16341 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16342 to NULL.
78d85199 16343
a959a88d
EZ
163442011-08-05 Eli Zaretskii <eliz@gnu.org>
16345
16346 * win32-low.c: Include <stdint.h>.
16347
1ced966e
PA
163482011-07-22 Pedro Alves <pedro@codesourcery.com>
16349
16350 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16351 to the inferior here.
16352 (i386_remove_aligned_watchpoint): Ditto.
16353 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16354 fit part of the watchpoint in the debug registers.
16355 (i386_update_inferior_debug_regs): New.
16356 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16357 registers, and only update the inferior on success.
16358 (i386_low_remove_watchpoint): Ditto.
16359
d26e3629
KY
163602011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16361
16362 * linux-low.c (compare_ints, unique, list_threads, show_process,
16363 linux_core_of_thread): Delete.
16364 (linux_target_ops): Change linux_core_of_thread to
16365 linux_common_core_of_thread.
16366 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16367 * utils.c (malloc_failure): Change type of argument.
16368 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16369 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16370 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16371 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16372 (IPA_OBJS): Add common-utils-ipa.o.
16373 (ptid_h, linux_osdata_h): New macros.
16374 (server_h): Add common/common-utils.h, common/xml-utils.h,
16375 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16376 common/ptid.h.
16377 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16378 ptid.o, buffer.o): New rules.
16379 (linux-low.o): Add common/linux-osdata.h as a dependency.
16380 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16381 * configure.ac: Add AC_HEADER_DIRENT check.
16382 * config.in: Regenerate.
16383 * configure: Regenerate.
16384 * remote-utils.c (xml_escape_text): Delete.
16385 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16386 buffer_xml_printf): Move to common/buffer.c.
16387 * server.c (main): Remove call to initialize_inferiors.
16388 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16389 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16390 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16391 internal_error, gdb_assert, gdb_assert_fail): Delete.
16392 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16393 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16394 common/buffer.h.
16395 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16396 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16397 initialize_inferiors): Delete.
16398
2275a1a7
PA
163992011-07-20 Pedro Alves <pedro@codesourcery.com>
16400
16401 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16402 symbol error.
16403
0a5b1e09
PA
164042011-05-31 Pedro Alves <pedro@codesourcery.com>
16405
16406 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16407 assertion.
16408 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16409
6938fd34
YQ
164102011-05-26 Yao Qi <yao@codesourcery.com>
16411
16412 * Makefile.in (thread-db.o): Track dependence to
16413 common/gdb_thread_db.h.
16414 * thread-db.c: include gdb_thread_db.h from right place.
16415
b481f9e0
TT
164162011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16417
16418 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16419 __FILE__ and __LINE__ to internal_error.
16420
98a5dd13
DE
164212011-05-13 Doug Evans <dje@google.com>
16422
16423 * thread-db.c (try_thread_db_load_from_sdir): New function.
16424 (try_thread_db_load_from_dir): New function.
16425 (thread_db_load_search): Handle $sdir, ignore $pdir.
16426 Remove trying of system directories if search of
16427 libthread-db-search-path fails, that is now done via $sdir.
16428
d248b706
KY
164292011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16430
16431 * server.c (handle_query): Add EnableDisableTracepoints to the list
16432 of supported features.
43aaf8b6 16433 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16434 tracepoints.
43aaf8b6
PA
16435 (cmd_qtenable_disable): New.
16436 (cmd_qtstart): Install tracepoints even if disabled.
16437 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16438 receiving a QTEnable or QTDisable packet.
16439 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16440 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16441 tracepoints.
16442 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16443
84e578fb
DE
164442011-05-10 Doug Evans <dje@google.com>
16445
16446 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16447
71f55dd8
DE
164482011-05-04 Doug Evans <dje@google.com>
16449
16450 * linux-low.c (linux_join): Skip process lookup.
16451 * spu-low.c (spu_join): Ditto.
16452 * server.c (join_inferiors_callback): Delete.
16453 (process_serial_event): For 'D' packet (detach) call join_inferior
16454 directly.
16455
4d393d60
JM
164562011-05-04 Joseph Myers <joseph@codesourcery.com>
16457
16458 * README: Don't mention xscale*-*-linux*.
16459 * configure.srv (xscale*-*-linux*): Don't handle target.
16460
b00ad6ff
NF
164612011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16462
16463 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16464 casting pointers.
16465 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16466 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16467 (i386_emit_void_call_2): Likewise.
16468
af96c192
YQ
164692011-04-26 Yao Qi <yao@codesourcery.com>
16470
43aaf8b6
PA
16471 * linux-low.c: Move common macros to linux-ptrace.h.
16472 Include linux-ptrace.h.
af96c192
YQ
16473 * Makefile.in (linux_ptrace_h): New.
16474 (linux-low.o): Depends on linux-ptrace.h.
16475
03f2bd59
JK
164762011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16477
16478 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16479 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16480 (remote_prepare): New function with most of the TCP code from ...
16481 (remote_open): ... here. Detect PORT here unconditionally. Move also
16482 setting transport_is_reliable.
16483 * server.c (run_once): New variable.
16484 (gdbserver_usage): Document it.
16485 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16486 the first run if RUN_ONCE.
16487 * server.h (run_once, remote_prepare): New declarations.
16488
7a9dd1b2
TT
164892011-04-19 Tom Tromey <tromey@redhat.com>
16490
16491 * win32-low.c (handle_load_dll): Remove duplicate "the".
16492
81239425
PM
164932011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16494
16495 Remove support for old Cygwin 1.5 versions.
16496 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16497 function to avoid warning.
16498 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16499 warning.
16500
9e0627f1
PM
165012011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16502
16503 * gdbserver/server.h (Macro _): Define it if not available.
16504
588eebee
MS
165052011-03-14 Michael Snyder <msnyder@vmware.com>
16506
348af9f7 16507 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16508
43f70d4c
JB
165092011-03-10 Joel Brobecker <brobecker@adacore.com>
16510
16511 * Makefile.in (maintainer-clean realclean distclean): Remove
16512 "make ... subdir_do" command.
16513
348af9f7
MS
165142011-03-10 Michael Snyder <msnyder@vmware.com>
16515
16516 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16517
16518 * server.c (handle_v_run): Free alloced buffer on early return.
16519
e637a4f5
YQ
165202011-03-09 Yao Qi <yao@codesourcery.com>
16521
16522 Revert:
16523 2011-03-04 Yao Qi <yao@codesourcery.com>
16524
16525 * Makefile.in: Remove GNU make feature --directory.
16526
16527 2011-03-05 Yao Qi <yao@codesourcery.com>
16528
16529 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16530 (subdir_do): New make target. Copied from gdb/Makefile.
16531 (maintainer-clean, realclean, distclean, clean): Call corresponding
16532 make targets in common/Makefile.
16533
16534 2011-02-11 Yao Qi <yao@codesourcery.com>
16535
16536 * configure.ac: Call AC_PROG_RANLIB.
16537 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16538 * configure: Regenerate.
16539
e6edda56
JK
165402011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16541
16542 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16543
e5141119
JB
165442011-03-06 Yao Qi <yao@codesourcery.com>
16545
16546 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16547
64794aa4
JB
165482011-03-05 Yao Qi <yao@codesourcery.com>
16549
16550 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16551 (subdir_do): New make target. Copied from gdb/Makefile.
16552 (maintainer-clean, realclean, distclean, clean): Call corresponding
16553 make targets in common/Makefile.
16554
7a762829
YQ
165552011-03-04 Yao Qi <yao@codesourcery.com>
16556
16557 * Makefile.in: Remove GNU make feature --directory.
16558
348af9f7
MS
165592011-03-04 Michael Snyder <msnyder@vmware.com>
16560
16561 * server.c (queue_stop_reply): Call xmalloc not malloc.
16562
165632011-03-02 Michael Snyder <msnyder@vmware.com>
16564
16565 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16566
9f72fee2
MS
165672011-02-28 Michael Snyder <msnyder@vmware.com>
16568
588eebee
MS
16569 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16570 (cmd_qtframe): Ditto.
16571 (cmd_qtbuffer): Ditto.
16572 (cmd_bigqtbuffer): Ditto.
16573
9f72fee2
MS
16574 * utils.c (decimal2str): Initialize 'width' to nine, then
16575 don't mess with it.
16576
8040bd49
UW
165772011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16578
16579 * hostio.c (require_data): Free *data, not data.
16580
7e52cbd0
JK
165812011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16582
16583 * hostio.c (require_data): Use free, not xfree.
16584
9130f83e
MS
165852011-02-27 Michael Snyder <msnyder@vmware.com>
16586
4b812f4e
MS
16587 * server.c (handle_query): Discard unused value.
16588
9130f83e
MS
16589 * hostio.c (require_data): Free malloc memory before returning
16590 error.
16591
69d37113
MS
165922011-02-26 Michael Snyder <msnyder@vmware.com>
16593
16594 * linux-low.c (list_threads): Call closedir for dirent.
16595
35f5825a
MS
165962011-02-27 Michael Snyder <msnyder@vmware.com>
16597
2a589cef
MS
16598 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16599 a case statement falls through.
16600
0adea5f7
MS
16601 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16602
35f5825a
MS
16603 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16604 in comparison.
16605
238f1c74
MS
166062011-02-26 Michael Snyder <msnyder@vmware.com>
16607
16608 * utils.c (decimal2str): Eliminate dead code and dead param.
16609 (pulongest): Drop dead param from call to decimal2str.
16610 (plongest): Ditto.
16611
633ff500
JB
166122011-02-24 Joel Brobecker <brobecker@adacore.com>
16613
16614 Revert the following patch (not approved yet):
16615 2011-02-21 Hui Zhu <teawater@gmail.com>
16616 * tracepoint.c (tp_printf): New function.
16617 (eval_agent_expr): Handle gdb_agent_op_printf.
16618
f9c6ff72
HZ
166192011-02-21 Hui Zhu <teawater@gmail.com>
16620
16621 * tracepoint.c (tp_printf): New function.
16622 (eval_agent_expr): Handle gdb_agent_op_printf.
16623
94d5e490
TT
166242011-02-18 Tom Tromey <tromey@redhat.com>
16625
16626 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16627 (tracepoint.o): Likewise.
16628 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16629 (gdb_agent_op_names): Likewise.
16630
c7f96d2b
TT
166312011-02-18 Tom Tromey <tromey@redhat.com>
16632
16633 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16634 gdb_agent_op_rot>: New constants.
16635 (gdb_agent_op_names): Add pick and roll.
16636 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16637 cases.
16638
0feedb2c
JK
166392011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16640
16641 * aclocal.m4: Regenerated with aclocal-1.11.1.
16642
b3b9301e
PA
166432011-02-14 Pedro Alves <pedro@codesourcery.com>
16644
16645 * server.c (handle_qxfer_traceframe_info): New.
16646 (qxfer_packets): Register "traceframe-info".
16647 (handle_query): Report support for qXfer:traceframe-info:read+.
16648 * tracepoint.c (match_blocktype): New.
16649 (traceframe_find_block_type): Rename to ...
16650 (traceframe_walk_blocks): ... this. Add callback filter argument,
16651 and use it.
16652 (traceframe_find_block_type): New, reimplemented on top of
16653 traceframe_walk_blocks.
16654 (build_traceframe_info_xml): New.
16655 (traceframe_read_info): New.
16656 * server.h (traceframe_read_info): Declare.
16657
4f3e6fb7
YQ
166582011-02-11 Yao Qi <yao@codesourcery.com>
16659
16660 * configure.ac: Call AC_PROG_RANLIB.
16661 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16662 * configure: Regenerate.
16663
764880b7
PA
166642011-02-07 Pedro Alves <pedro@codesourcery.com>
16665
16666 * server.c (gdb_read_memory): Change return semantics to allow
16667 partial transfers.
16668 (handle_search_memory_1): Adjust.
16669 (process_serial_event) <'m' packet>: Handle partial transfers.
16670 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16671
1c79eb8a
PA
166722011-01-28 Pedro Alves <pedro@codesourcery.com>
16673
16674 * regcache.c (init_register_cache): Initialize
16675 regcache->register_status.
16676 (free_register_cache): Release regcache->register_status.
16677 (regcache_cpy): Copy register_status.
16678 (registers_to_string): Print 'x's for unavailable registers.
16679 (supply_register): Mark the register's status valid or
16680 unavailable, depending on whether a buffer was passed in or not.
16681 (supply_register_zeroed): New.
16682 (supply_regblock): Mark the registers' status valid or
16683 unavailable, depending on whether a buffer was passed in or not.
16684 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16685 (struct regcache): New `register_status' field.
16686 (supply_register_zeroed): Declare.
16687 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16688 supply_register_zeroed, rather than passing a NULL buffer to
16689 supply_register.
16690 * tracepoint.c (fetch_traceframe_registers): Update comment.
16691
85724a0e
PA
166922011-01-28 Pedro Alves <pedro@codesourcery.com>
16693
16694 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16695 buffer explicit.
16696
d08aafef
PA
166972011-01-25 Pedro Alves <pedro@codesourcery.com>
16698
16699 * server.h (decode_xfer_write): Change prototype.
16700 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16701 and don't extract the annex here.
16702 * server.c (decode_xfer_read): Remove `annex' parameter,
16703 and don't extract the annex here.
16704 (decode_xfer): New.
16705 (struct qxfer): New.
16706 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16707 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16708 (handle_qxfer_statictrace): New functions, abstracted out from
16709 handle_query, and made to use the struct qxfer interface.
16710 (handle_threads_qxfer_proper): Rename to ...
16711 (handle_qxfer_threads_proper): ... this.
16712 (handle_threads_qxfer): Rename to ...
16713 (handle_qxfer_threads): ... this. Adjust.
16714 (qxfer_packets): New array.
16715 (handle_qxfer): New function.
16716 (handle_query): Use handle_qxfer.
16717
493e2a69
MS
167182011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16719
16720 * gdbreplay.c: Shorten lines of >= 80 columns.
16721 * linux-low.c: Ditto.
16722 * linux-ppc-low.c: Ditto.
16723 * linux-s390-low.c: Ditto.
16724 * linux-sparc-low.c: Ditto.
16725 * linux-x86-low.c: Ditto.
16726 * linux-xtensa-low.c: Ditto.
16727 * mem-break.c: Ditto.
16728 * nto-low.c: Ditto.
16729 * regcache.h: Ditto.
16730 * remote-utils.c: Ditto.
16731 * server.c: Ditto.
16732 * server.h: Ditto.
16733 * thread-db.c: Ditto.
16734 * tracepoint.c: Ditto.
16735 * utils.c: Ditto.
16736 * win32-low.h: Ditto.
16737
44944448
JB
167382011-01-05 Joel Brobecker <brobecker@adacore.com>
16739
16740 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16741 update.
16742
71ce852c
JB
167432011-01-01 Joel Brobecker <brobecker@adacore.com>
16744
16745 * server.c (gdbserver_version): Update copyright year in version
16746 output.
16747 * gdbreplay.c (gdbreplay_version): Ditto.
16748
eb826dc6
MF
167492010-12-29 Jie Zhang <jie.zhang@analog.com>
16750
16751 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16752 * linux-bfin-low.c: New file.
16753 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16754 PT_DATA_ADDR for BFIN targets.
16755 * Makefile.in (SFILES): Add linux-bfin-low.c.
16756 (clean): Remove reg-bfin.c.
16757 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16758 * README: Mention supported Blackfin targets.
16759
39ab222a
MF
167602010-12-23 Mike Frysinger <vapier@gentoo.org>
16761
16762 * .gitignore: New file.
16763
a1f2ce7d
MF
167642010-11-16 Mike Frysinger <vapier@gentoo.org>
16765
16766 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16767
f474844c
JZ
167682010-10-22 Jie Zhang <jie@codesourcery.com>
16769
16770 * Makefile.in: Add FLAGS_TO_PASS variable.
16771 (install): Remove dependency of install-only and recursively
16772 invoke make for install-only.
16773
f1048712
DE
167742010-10-04 Doug Evans <dje@google.com>
16775
16776 * Makefile.in (uninstall): Use $(DESTDIR).
16777
b53a1623
PA
167782010-09-24 Pedro Alves <pedro@codesourcery.com>
16779
e6ee044d
PA
16780 PR gdb/11842
16781
b53a1623
PA
16782 * linux-x86-low.c (compat_siginfo_from_siginfo)
16783 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16784 si_code is < 0. Check for si_code == SI_TIMER before checking for
16785 si_code < 0.
16786
fa1bd1e4
JB
167872010-09-13 Joel Brobecker <brobecker@adacore.com>
16788
16789 * lynx-i386-low.c: New file.
16790 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16791
47fac8f8
JB
167922010-09-13 Joel Brobecker <brobecker@adacore.com>
16793
16794 * lynx-low.c (ptrace_request_to_str): Remove handling for
16795 request values that have been removed in LynxOS 5.x.
16796
1adfc54d
JB
167972010-09-13 Joel Brobecker <brobecker@adacore.com>
16798
16799 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16800 <ptrace.h>
16801
c2a66c29
NS
168022010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16803
16804 * configure.ac: Add --enable-inprocess-agent option.
16805 * configure: Rebuilt.
16806
32fcada3
YQ
168072010-09-06 Yao Qi <yao@codesourcery.com>
16808
16809 * linux-low.c (linux_kill): Remove unused variable.
16810 (linux_stabilize_threads): Likewise.
16811 * server.c (start_inferior): Likewise.
16812 (queue_stop_reply_callback): Likewise.
16813 * tracepoint.c (do_action_at_tracepoint): Likewise.
16814
0cccb683
YQ
168152010-09-06 Yao Qi <yao@codesourcery.com>
16816
16817 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16818 on return.
16819
423ec54c
JK
168202010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16821
16822 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16823
12ac6819
PA
168242010-09-06 Pedro Alves <pedro@codesourcery.com>
16825
16826 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16827 "$(IPA_DEPFILES)".
16828
8ed54b31
JB
168292010-09-01 Joel Brobecker <brobecker@adacore.com>
16830
16831 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16832 gdbserver/lynx-ppc-low.c: New files.
16833 * Makefile.in (lynx_low_h): New variable.
16834 (lynx-low.o, lynx-ppc-low.o): New rules.
16835 * configure.ac: On LynxOS, link with -lnetinet.
16836 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16837 * configure: regenerate.
16838
bb0116a4
JB
168392010-09-01 Joel Brobecker <brobecker@adacore.com>
16840
16841 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16842 * configure.ac: Add check for vasprintf and vsnprintf.
16843 * configure, config.in: Regenerate.
16844 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16845
a778ab81 168462010-09-01 Joel Brobecker <brobecker@adacore.com>
16847
16848 * gdbreplay.c: Move include of alloca.h up, next to include of
16849 malloc.h.
16850 * server.h: Add include of malloc.h.
16851 * mem-break.c: Remove include of malloc.h.
16852 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16853
8b034a19 168542010-09-01 Joel Brobecker <brobecker@adacore.com>
16855
16856 * Makefile.in (memmem.o): Build with -Wno-error.
16857
168582010-09-01 Joel Brobecker <brobecker@adacore.com>
16859
16860 * utils.c (xsnprintf): Make non-static.
16861 * server.h: Add xsnprintf declaration.
16862 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16863 replace calls to snprintf by calls to xsnprintf throughout.
16864
168652010-09-01 Joel Brobecker <brobecker@adacore.com>
16866
16867 * configure.ac: Add configure check for alloca.
16868 * configure, config.in: Regenerate.
16869 * server.h: Include alloca.h if it exists.
16870 * gdbreplay.c: Include alloca.h if it exists.
16871
1a981360
PA
168722010-08-28 Pedro Alves <pedro@codesourcery.com>
16873
16874 * linux-low.c (__SIGRTMIN): Define if not already defined.
16875 (linux_create_inferior): Check for __ANDROID__ rather than
16876 __SIGRTMIN.
16877 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16878 are already deferred.
16879 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16880 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16881 stopped and already has a pending signal to report.
16882 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16883 a pending signal to report or is moving out of a jump pad.
16884 (linux_init_signals): Check for __ANDROID__ rather than
16885 __SIGRTMIN.
16886
b4d51a55
PA
168872010-08-28 Pedro Alves <pedro@codesourcery.com>
16888
16889 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16890 debug_threads check. Avoid a linear search when not doing debug
16891 output.
16892
ec48365d
PA
168932010-08-27 Pedro Alves <pedro@codesourcery.com>
16894
16895 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16896 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16897 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16898 (process_event): Change local fd's type to gdb_fildes_t.
16899 (create_file_handler): Adjust prototype.
16900 (delete_file_handler): Adjust prototype.
16901 (handle_file_event): Adjust prototype. Use pfildes.
16902 (create_file_event): Adjsut prototype.
16903 * remote-utils.c (remote_desc, listen_desc): Change type to
16904 gdb_fildes_t.
16905 * server.h: New gdb_fildes_t typedef.
16906 [USE_WIN32API]: Include winsock2.h.
16907 (delete_file_handler, add_file_handler): Adjust prototypes.
16908 (pfildes): Declare.
16909 * utils.c (pfildes): New.
16910
854d88f0
PA
169112010-08-27 Pedro Alves <pedro@codesourcery.com>
16912
16913 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16914 * configure: Regenerate.
16915
0146f85b
PA
169162010-08-27 Pedro Alves <pedro@codesourcery.com>
16917
16918 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16919 (linux_done_accessing_memory): ... this.
16920 (linux_target_ops): Adjust.
16921 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16922 * nto-low.c (nto_target_ops): Adjust comment.
16923 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16924 * spu-low.c (spu_target_ops): Adjust comment.
16925 * target.h (target_ops): Rename unprepare_to_access_memory field
16926 to done_accessing_memory.
16927 (unprepare_to_access_memory): Rename to ...
16928 (done_accessing_memory): ... this.
16929
90d74c30
PA
169302010-08-26 Pedro Alves <pedro@codesourcery.com>
16931
16932 * linux-low.c (linux_prepare_to_access_memory): New.
16933 (linux_unprepare_to_access_memory): New.
16934 (linux_target_ops): Install them.
16935 * server.c (read_memory): Rename to ...
16936 (gdb_read_memory): ... this. Use
16937 prepare_to_access_memory/prepare_to_access_memory.
16938 (write_memory): Rename to ...
16939 (gdb_write_memory): ... this. Use
16940 prepare_to_access_memory/prepare_to_access_memory.
16941 (handle_search_memory_1): Adjust.
16942 (process_serial_event): Adjust.
16943 * target.h (struct target_ops): New fields
16944 prepare_to_access_memory and unprepare_to_access_memory.
16945 (prepare_to_access_memory, unprepare_to_access_memory): New.
16946 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16947 prepare_to_access_memory/prepare_to_access_memory.
16948 * nto-low.c (nto_target_ops): Adjust.
16949 * spu-low.c (spu_target_ops): Adjust.
16950 * win32-low.c (win32_target_ops): Adjust.
16951
fd467969
PA
169522010-08-26 Pedro Alves <pedro@codesourcery.com>
16953
16954 * Makefile.in (WARN_CFLAGS): Get it from configure.
16955 (WERROR_CFLAGS): New.
16956 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16957 * configure.ac: Introduce --enable-werror, which adds -Werror to
16958 the compiler command line. Enabled by default. Disable with
16959 --disable-werror. Add -Wdeclaration-after-statement
16960 Wpointer-arith and -Wformat-nonliteral to warning flags.
16961 * configure: Regenerate.
16962
331e2f5f
PA
169632010-08-26 Pedro Alves <pedro@codesourcery.com>
16964
16965 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16966
e581f2b4
PA
169672010-08-26 Pedro Alves <pedro@codesourcery.com>
16968
16969 * gdbreplay.c (remote_error): New.
16970 (gdbchar): New.
16971 (expect): Use gdbchar. Check for error reading from GDB.
16972 Clarify sync error output.
16973 (play): Check for errors writing to GDB.
16974 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16975 * remote-utils.c (getpkt): Check for errors writing to the remote
16976 descriptor.
16977
3c11dd79
PA
169782010-08-25 Pedro Alves <pedro@codesourcery.com>
16979
16980 * linux-low.c (linux_wait_1): Move non-debugging code out of
16981 `debug_threads' control.
16982
d20a8ad9
PA
169832010-08-25 Pedro Alves <pedro@codesourcery.com>
16984
16985 * linux-low.c (linux_wait_1): Don't set last_status here.
16986 * server.c (push_event, queue_stop_reply_callback): Assert we're
16987 not pushing a TARGET_WAITKIND_IGNORE event.
16988 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16989 (myresume, handle_target_event): Set the thread's last_resume_kind
16990 and last_status from the target returned status.
16991
964e4306
PA
169922010-08-25 Pedro Alves <pedro@codesourcery.com>
16993
16994 PR threads/10729
16995
16996 * linux-x86-low.c (update_debug_registers_callback): New.
16997 (i386_dr_low_set_addr): Use it.
16998 (i386_dr_low_get_addr): New.
16999 (i386_dr_low_set_control): Use update_debug_registers_callback.
17000 (i386_dr_low_get_control): New.
17001 (i386_dr_low_get_status): Adjust.
17002 * linux-low.c (linux_stop_lwp): New.
17003 * linux-low.h (linux_stop_lwp): Declare.
17004
17005 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17006 argument instead of a i386_debug_reg_state.
17007 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17008 a i386_debug_reg_state.
17009 (i386_insert_aligned_watchpoint): Adjust.
17010 (i386_remove_aligned_watchpoint): Adjust.
17011 (i386_low_stopped_data_address): Read the debug registers from the
17012 inferior instead of from the mirrors.
17013 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17014 (i386_dr_low_get_addr): Declare.
17015 (i386_dr_low_get_control): Declare.
17016 (i386_dr_low_get_status): Change prototype.
17017
17018 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17019 (i386_dr_low_get_addr): New.
17020 (i386_dr_low_get_control): New.
17021 (i386_dr_low_get_status): Adjust prototype. Return
17022 dr_status_mirror.
17023 (i386_initial_stuff): Clear dr_status_mirror and
17024 dr_control_mirror.
17025 (i386_get_thread_context): Adjust.
17026 (i386_set_thread_context): Adjust.
17027 (i386_thread_added): Adjust.
17028
5f21a75b
PA
170292010-08-24 Pedro Alves <pedro@codesourcery.com>
17030
17031 * linux-low.h (linux_thread_area): Delete declaration.
17032
3e4c1235
TS
170332010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17034
17035 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17036 after its termination.
17037
1971b033
PA
170382010-08-09 Pedro Alves <pedro@codesourcery.com>
17039
17040 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17041 (gdb_wants_all_stopped): Delete.
17042 (linux_wait_1): Don't call them.
17043 * server.c (handle_v_cont): Tag all threads as want-stopped.
17044 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17045 stopped as "client-wants-stopped".
17046
310444ac
PA
170472010-07-31 Pedro Alves <pedro@codesourcery.com>
17048
17049 * Makefile.in (signals_h): New.
17050 (server_h): Depend on it.
17051 (server.o): Don't depend on $(signals_def).
17052 (signals.o): Depend on $(signals_def).
17053
a19cae16
JK
170542010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17055
17056 * Makefile.in (signals_def): New.
17057 (server_h): Append include/gdb/signals.h and signals_def.
17058 (server.o): Append signals_def.
17059
30d50328
JK
170602010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17061
17062 * server.c (handle_target_event): Use target_signal_to_host for
17063 resume_info.sig initialization.
17064 * target.h (struct thread_resume) <sig>: New comment.
17065
5c3216e2
OS
170662010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17067
c6f46ca0
OS
17068 * server.c (handle_query): strcpy() the returned string from paddress()
17069 instead of sprintf().
5c3216e2
OS
17070 * utils.c (paddress): Return phex_nz().
17071
6bd31874
JB
170722010-07-07 Joel Brobecker <brobecker@adacore.com>
17073
17074 * server.c (handle_v_cont): Call mourn_inferior if process
17075 just exited.
17076 (myresume): Likewise.
17077
0fb4aa4b
PA
170782010-07-01 Pedro Alves <pedro@codesourcery.com>
17079
17080 Static tracepoints, and integration with UST.
17081
17082 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17083 * mem-break.c (uninsert_all_breakpoints)
17084 (reinsert_all_breakpoints): New.
17085 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17086 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17087 (gdb_agent_ust_loaded, helper_thread_id)
17088 (gdb_agent_helper_thread_id): New macros.
17089 (struct ipa_sym_addresses): Add addr_ust_loaded,
17090 addr_helper_thread_id, addr_cmd_buf.
17091 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17092 (in_process_agent_loaded_ust): New.
17093 (write_e_ust_not_loaded): New.
17094 (maybe_write_ipa_ust_not_loaded): New.
17095 (struct collect_static_trace_data_action): New.
17096 (enum tracepoint_type) <static_tracepoint>: New.
17097 (struct tracepoint) <handle>: Mention static tracepoints.
17098 (struct static_tracepoint_ctx): New.
17099 (CMD_BUF_SIZE): New.
17100 (add_tracepoint_action): Handle static tracepoint actions.
17101 (unprobe_marker_at): New.
17102 (clear_installed_tracepoints): Handle static tracepoints.
17103 (cmd_qtdp): Handle static tracepoints.
17104 (probe_marker_at): New.
17105 (cmd_qtstart): Handle static tracepoints.
17106 (response_tracepoint): Handle static tracepoints.
17107 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17108 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17109 (get_context_regcache): Handle static tracepoints.
17110 (do_action_at_tracepoint): Handle static tracepoint actions.
17111 (traceframe_find_block_type): Handle static trace data blocks.
17112 (traceframe_read_sdata): New.
17113 (download_tracepoints): Download static tracepoint actions.
17114 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17115 (GDB_PROBE_NAME): New.
17116 (ust_ops): New.
17117 (GET_UST_SYM): New.
17118 (USTF): New.
17119 (dlsym_ust): New.
17120 (ust_marker_to_static_tracepoint): New.
17121 (gdb_probe): New.
17122 (collect_ust_data_at_tracepoint): New.
17123 (gdb_ust_probe): New.
17124 (UNIX_PATH_MAX, SOCK_DIR): New.
17125 (gdb_ust_connect_sync_socket): New.
17126 (resume_thread, stop_thread): New.
17127 (run_inferior_command): New.
17128 (init_named_socket): New.
17129 (gdb_ust_socket_init): New.
17130 (cstr_to_hexstr): New.
17131 (next_st): New.
17132 (first_marker, next_marker): New.
17133 (response_ust_marker): New.
17134 (cmd_qtfstm, cmd_qtsstm): New.
17135 (unprobe_marker_at, probe_marker_at): New.
17136 (cmd_qtstmat, gdb_ust_thread): New.
17137 (gdb_ust_init): New.
17138 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17139 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17140 (ST_REGENTRY): New.
17141 (x86_64_st_collect_regmap): New.
17142 (X86_64_NUM_ST_COLLECT_GREGS): New.
17143 (AMD64_RIP_REGNUM): New.
17144 (supply_static_tracepoint_registers): New.
17145 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17146 (ST_REGENTRY): New.
17147 (i386_st_collect_regmap): New.
17148 (i386_NUM_ST_COLLECT_GREGS): New.
17149 (supply_static_tracepoint_registers): New.
17150 * server.c (handle_query): Handle qXfer:statictrace:read.
17151 <qSupported>: Report support for StaticTracepoints, and
17152 qXfer:statictrace:read features.
17153 * server.h (traceframe_read_sdata)
17154 (supply_static_tracepoint_registers): Declare.
17155 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17156 (unpack_varlen_hex): Include in IPA build.
17157 * Makefile.in (ustlibs, ustinc): New.
17158 (IPA_OBJS): Add remote-utils-ipa.o.
17159 ($(IPA_LIB)): Link -ldl and -lpthread.
17160 (UST_CFLAGS): New.
17161 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17162 * config.in, configure: Regenerate.
17163
9e4344e5
PA
171642010-06-20 Ian Lance Taylor <iant@google.com>
17165 Pedro Alves <pedro@codesourcery.com>
17166
17167 * linux-x86-low.c (always_true): Delete.
17168 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17169 trying to fool the compiler with always_true.
17170
c6beb2cb
PA
171712010-06-20 Pedro Alves <pedro@codesourcery.com>
17172
17173 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17174 conditions in gdbserver.
17175
d2ed6730
UW
171762010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17177
17178 * spu-low.c (spu_read_memory): Wrap around local store limit.
17179 (spu_write_memory): Likewise.
17180
4e29fb54
PA
171812010-06-15 Pedro Alves <pedro@codesourcery.com>
17182
17183 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17184 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17185 LONGEST uses.
17186 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17187 uses.
17188 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17189 uses with LONGEST uses.
17190
6a271cae
PA
171912010-06-14 Stan Shebs <stan@codesourcery.com>
17192 Pedro Alves <pedro@codesourcery.com>
17193
17194 Bytecode compiler.
17195
17196 * linux-x86-low.c: Include limits.h.
17197 (add_insns): New.
17198 (always_true): New.
17199 (EMIT_ASM): New.
17200 (EMIT_ASM32): New.
17201 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17202 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17203 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17204 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17205 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17206 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17207 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17208 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17209 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17210 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17211 (amd64_emit_void_call_2): New.
17212 (amd64_emit_ops): New.
17213 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17214 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17215 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17216 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17217 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17218 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17219 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17220 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17221 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17222 (i386_emit_stack_adjust, i386_emit_int_call_1)
17223 (i386_emit_void_call_2): New.
17224 (i386_emit_ops): New.
17225 (x86_emit_ops): New.
17226 (the_low_target): Install x86_emit_ops.
17227 * server.h (struct emit_ops): New.
17228 (get_raw_reg_func_addr): Declare.
17229 (current_insn_ptr, emit_error): Declare.
17230 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17231 (set_trace_state_variable_value): New defines.
17232 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17233 addr_get_trace_state_variable_value and
17234 addr_set_trace_state_variable_value.
17235 (symbol_list): New fields for get_raw_reg,
17236 get_trace_state_variable_value and set_trace_state_variable_value.
17237 (condfn): New typedef.
17238 (struct tracepoint): New field `compiled_cond'.
17239 (do_action_at_tracepoint): Clear compiled_cond.
17240 (get_trace_state_variable_value, set_trace_state_variable_value):
17241 Export in the IPA.
17242 (condition_true_at_tracepoint): If there's a compiled condition,
17243 run that.
17244 (current_insn_ptr, emit_error): New globals.
17245 (struct bytecode_address): New.
17246 (get_raw_reg_func_addr): New.
17247 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17248 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17249 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17250 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17251 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17252 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17253 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17254 (compile_tracepoint_condition, compile_bytecodes): New.
17255 * target.h (emit_ops): Forward declare.
17256 (struct target_ops): New field emit_ops.
17257 (target_emit_ops): New.
17258 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17259 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17260 * linux-low.c (linux_emit_ops): New.
17261 (linux_target_ops): Install it.
17262 * linux-low.h (struct linux_target_ops): New field emit_ops.
17263
92b72907
UW
172642010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17265
17266 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17267 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17268
fa593d66
PA
172692010-06-01 Pedro Alves <pedro@codesourcery.com>
17270 Stan Shebs <stan@codesourcery.com>
17271
17272 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17273 (all): Depend on $(extra_libraries).
17274 (install-only): Install the IPA.
17275 (IPA_OBJS, IPA_LIB): New.
17276 (clean): Remove the IPA lib.
17277 (IPAGENT_CFLAGS): New.
17278 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17279 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17280 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17281 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17282 * configure.ac: Check for atomic builtins support in the compiler.
17283 (IPA_DEPFILES, extra_libraries): Define.
17284 * configure.srv (ipa_obj): Add description.
17285 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17286 (i[34567]86-*-linux*): Set ipa_obj.
17287 (x86_64-*-linux*): Set ipa_obj.
17288 * linux-low.c (stabilizing_threads): New.
17289 (supports_fast_tracepoints): New.
17290 (linux_detach): Stabilize threads before detaching.
17291 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17292 the lwp is either not stabilizing, or is moving out of a jump pad.
17293 (linux_fast_tracepoint_collecting): New.
17294 (maybe_move_out_of_jump_pad): New.
17295 (enqueue_one_deferred_signal): New.
17296 (dequeue_one_deferred_signal): New.
17297 (linux_wait_for_event_1): If moving out of a jump pad, defer
17298 pending signals to later.
17299 (linux_stabilize_threads): New.
17300 (linux_wait_1): Check if threads need moving out of jump pads, and
17301 do it if so.
17302 (stuck_in_jump_pad_callback): New.
17303 (move_out_of_jump_pad_callback): New.
17304 (lwp_running): New.
17305 (linux_resume_one_lwp): Handle moving out of jump pads.
17306 (linux_set_resume_request): Dequeue deferred signals.
17307 (need_step_over_p): Also step over fast tracepoint jumps.
17308 (start_step_over): Also uninsert fast tracepoint jumps.
17309 (finish_step_over): Also reinsert fast tracepoint jumps.
17310 (linux_install_fast_tracepoint_jump): New.
17311 (linux_target_ops): Install linux_stabilize_threads and
17312 linux_install_fast_tracepoint_jump_pad.
17313 * linux-low.h (linux_target_ops) <get_thread_area,
17314 install_fast_tracepoint_jump_pad>: New fields.
17315 (struct lwp_info) <collecting_fast_tracepoint,
17316 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17317 (linux_get_thread_area): Declare.
17318 * linux-x86-low.c (jump_insn): New.
17319 (x86_get_thread_area): New.
17320 (append_insns): New.
17321 (push_opcode): New.
17322 (amd64_install_fast_tracepoint_jump_pad): New.
17323 (i386_install_fast_tracepoint_jump_pad): New.
17324 (x86_install_fast_tracepoint_jump_pad): New.
17325 (the_low_target): Install x86_get_thread_area and
17326 x86_install_fast_tracepoint_jump_pad.
17327 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17328 (struct fast_tracepoint_jump): New.
17329 (fast_tracepoint_jump_insn): New.
17330 (fast_tracepoint_jump_shadow): New.
17331 (find_fast_tracepoint_jump_at): New.
17332 (fast_tracepoint_jump_here): New.
17333 (delete_fast_tracepoint_jump): New.
17334 (set_fast_tracepoint_jump): New.
17335 (uninsert_fast_tracepoint_jumps_at): New.
17336 (reinsert_fast_tracepoint_jumps_at): New.
17337 (set_breakpoint_at): Use write_inferior_memory.
17338 (uninsert_raw_breakpoint): Use write_inferior_memory.
17339 (check_mem_read): Mask out fast tracepoint jumps.
17340 (check_mem_write): Mask out fast tracepoint jumps.
17341 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17342 (set_fast_tracepoint_jump): Declare.
17343 (delete_fast_tracepoint_jump)
17344 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17345 (reinsert_fast_tracepoint_jumps_at): Declare.
17346 * regcache.c: Don't compile many functions when building the
17347 in-process agent library.
17348 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17349 the register buffer in the heap.
17350 (free_register_cache): If the register buffer isn't owned by the
17351 regcache, don't free it.
17352 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17353 pre-existing register caches.
17354 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17355 type.
17356 (convert_ascii_to_int): : Constify `from' parameter type.
17357 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17358 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17359 the needed buffer in-place.
17360 (relocate_instruction): New.
17361 * server.c (handle_query) <qSymbols>: If the target supports
17362 tracepoints, give it a chance of looking up symbols. Report
17363 support for fast tracepoints.
17364 (handle_status): Stabilize threads.
17365 (process_serial_event): Adjust.
17366 * server.h (struct fast_tracepoint_jump): Forward declare.
17367 (struct process_info) <fast_tracepoint_jumps>: New field.
17368 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17369 (decode_X_packet, decode_M_packet): Adjust.
17370 (relocate_instruction): Declare.
17371 (in_process_agent_loaded): Declare.
17372 (tracepoint_look_up_symbols): Declare.
17373 (struct fast_tpoint_collect_status): Declare.
17374 (fast_tracepoint_collecting): Declare.
17375 (force_unlock_trace_buffer): Declare.
17376 (handle_tracepoint_bkpts): Declare.
17377 (initialize_low_tracepoint)
17378 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17379 * target.h (struct target_ops) <stabilize_threads,
17380 install_fast_tracepoint_jump_pad>: New fields.
17381 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17382 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17383 [HAVE_STDINT_H]: Include stdint.h.
17384 (trace_debug_1): Rename to ...
17385 (trace_vdebug): ... this.
17386 (trace_debug): Rename to ...
17387 (trace_debug_1): ... this. Add `level' parameter.
17388 (trace_debug): New.
17389 (ATTR_USED, ATTR_NOINLINE): New.
17390 (IP_AGENT_EXPORT): New.
17391 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17392 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17393 (about_to_request_buffer_space, trace_buffer_is_full)
17394 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17395 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17396 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17397 (traceframe_write_count, traceframes_created)
17398 (trace_state_variables)
17399 New renaming defines.
17400 (struct ipa_sym_addresses): New.
17401 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17402 (symbol_list): New.
17403 (ipa_sym_addrs): New.
17404 (all_tracepoint_symbols_looked_up): New.
17405 (in_process_agent_loaded): New.
17406 (write_e_ipa_not_loaded): New.
17407 (maybe_write_ipa_not_loaded): New.
17408 (tracepoint_look_up_symbols): New.
17409 (debug_threads) [IN_PROCESS_AGENT]: New.
17410 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17411 (UNKNOWN_SIDE_EFFECTS): New.
17412 (stop_tracing): New.
17413 (flush_trace_buffer): New.
17414 (stop_tracing_bkpt): New.
17415 (flush_trace_buffer_bkpt): New.
17416 (read_inferior_integer): New.
17417 (read_inferior_uinteger): New.
17418 (read_inferior_data_pointer): New.
17419 (write_inferior_data_pointer): New.
17420 (write_inferior_integer): New.
17421 (write_inferior_uinteger): New.
17422 (struct collect_static_trace_data_action): Delete.
17423 (enum tracepoint_type): New.
17424 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17425 <actions_str, step_actions, step_actions_str>: Only include in
17426 GDBserver.
fa593d66
PA
17427 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17428 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17429 (tracepoints): Use IP_AGENT_EXPORT.
17430 (last_tracepoint): Don't include in the IPA.
17431 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17432 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17433 (alloced_trace_state_variables): New.
17434 (trace_state_variables): Use IP_AGENT_EXPORT.
17435 (traceframe_t): Delete unused variable.
17436 (circular_trace_buffer): Don't include in the IPA.
17437 (trace_buffer_start): Delete.
17438 (struct trace_buffer_control): New.
17439 (trace_buffer_free): Delete.
17440 (struct ipa_trace_buffer_control): New.
17441 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17442 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17443 New.
17444 (trace_buffer_ctrl): New.
17445 (TRACE_BUFFER_CTRL_CURR): New.
17446 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17447 Reimplement as macros.
17448 (trace_buffer_wrap): Delete.
17449 (traceframe_write_count, traceframe_read_count)
17450 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17451 (struct tracepoint_hit_ctx) <type>: New field.
17452 (struct fast_tracepoint_ctx): New.
17453 (memory_barrier): New.
17454 (cmpxchg): New.
17455 (record_tracepoint_error): Update atomically in the IPA.
17456 (clear_inferior_trace_buffer): New.
17457 (about_to_request_buffer_space): New.
17458 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17459 updating the same buffer.
17460 (add_tracepoint): Default the tracepoint's type to trap
17461 tracepoint, and orig_size to -1.
17462 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17463 internal variables.
17464 (create_trace_state_variable): New parameter `gdb'. Handle it.
17465 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17466 (cmd_qtdp): Handle fast tracepoints.
17467 (cmd_qtdv): Adjust.
17468 (max_jump_pad_size): New.
17469 (gdb_jump_pad_head): New.
17470 (get_jump_space_head): New.
17471 (claim_jump_space): New.
17472 (sort_tracepoints): New.
17473 (MAX_JUMP_SIZE): New.
17474 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17475 IPA.
17476 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17477 support. Upload fast traceframes, and delete internal IPA
17478 breakpoints.
17479 (stop_tracing_handler): New.
17480 (flush_trace_buffer_handler): New.
17481 (cmd_qtstop): Upload fast tracepoints.
17482 (response_tracepoint): Handle fast tracepoints.
17483 (tracepoint_finished_step): Upload fast traceframes. Set the
17484 tracepoint hit context's tracepoint type.
17485 (handle_tracepoint_bkpts): New.
17486 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17487 type. Add comment about fast tracepoints.
17488 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17489 non-existing action_str field.
17490 (get_context_regcache): Handle fast tracepoints.
17491 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17492 to the regcache.
17493 (fast_tracepoint_from_jump_pad_address): New.
17494 (fast_tracepoint_from_ipa_tpoint_address): New.
17495 (collecting_t): New.
17496 (force_unlock_trace_buffer): New.
17497 (fast_tracepoint_collecting): New.
17498 (collecting): New.
17499 (gdb_collect): New.
17500 (write_inferior_data_ptr): New.
17501 (target_tp_heap): New.
17502 (target_malloc): New.
17503 (download_agent_expr): New.
17504 (UALIGN): New.
17505 (download_tracepoints): New.
17506 (download_trace_state_variables): New.
17507 (upload_fast_traceframes): New.
17508 (IPA_FIRST_TRACEFRAME): New.
17509 (IPA_NEXT_TRACEFRAME_1): New.
17510 (IPA_NEXT_TRACEFRAME): New.
17511 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17512 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17513 (gdb_jump_pad_buffer_end): New.
17514 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17515 (initialize_tracepoint): Adjust.
17516 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17517 buffer. Initialize the low module.
17518 * utils.c (PREFIX, TOOLNAME): New.
17519 (malloc_failure): Use PREFIX.
17520 (error): In the IPA, an error causes an exit.
17521 (fatal, warning): Use PREFIX.
17522 (internal_error): Use TOOLNAME.
17523 (NUMCELLS): Increase to 10.
17524 * configure, config.in: Regenerate.
17525
d149dd1d
PA
175262010-06-01 Pedro Alves <pedro@codesourcery.com>
17527
17528 * server.c (handle_query) <qSupported>: Do two passes over the
17529 qSupported string to avoid nesting strtok.
17530
f6528abd
JK
175312010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17532
17533 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17534 (CDEPS): New.
17535 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17536 -Wl,--dynamic-list.
17537 * configure: Regenerate.
17538 * proc-service.list: New.
17539
ca2a87a0
JK
175402010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17541
17542 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17543 New comment.
17544
363a6e9f
OS
175452010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17546
17547 * gdbreplay.c (remote_open): Check error return from socket() call by
17548 its equality to -1 not by it being negative.
17549 * remote-utils.c (remote_open): Likewise.
17550
d23b6cb1
PA
175512010-05-23 Pedro Alves <pedro@codesourcery.com>
17552
17553 * config.h: Regenerate.
17554
28d3cf85
MK
175552010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17556
17557 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17558 doesn't provide PTRACE_GET_THREAD_AREA.
17559
fea36a59
MK
175602010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17561
17562 * linux-m68k-low.c: Include <asm/ptrace.h>
17563 (ps_get_thread_area): Implement.
17564
24b066ba
DE
175652010-05-03 Doug Evans <dje@google.com>
17566
17567 * event-loop.c (struct callback_event): New struct.
17568 (callback_list): New global.
17569 (append_callback_event, delete_callback_event): New functions.
17570 (process_callback): New function.
17571 (start_event_loop): Call it.
17572 * remote-utils.c (NOT_SCHEDULED): Define.
17573 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17574 moved out of readchar.
17575 (readchar): Rewrite. Call reschedule before returning.
17576 (reset_readchar): New function.
17577 (remote_close): Call it.
17578 (process_remaining, reschedule): New functions.
17579 * server.h (callback_handler_func): New typedef.
17580 (append_callback_event, delete_callback_event): Declare.
17581
9836d6ea
PA
175822010-05-03 Pedro Alves <pedro@codesourcery.com>
17583
17584 * proc-service.c (ps_pglobal_lookup): Use
17585 thread_db_look_up_one_symbol.
17586 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17587 parameter. Use it instead of all_symbols_looked_up.
17588 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17589 field.
17590 (all_symbols_looked_up): Don't declare.
17591 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17592 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17593 field.
17594 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17595 Set all_symbols_looked_up here.
17596 (thread_db_look_up_one_symbol): New.
17597 (thread_db_get_tls_address): Adjust.
17598 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17599 thread_db object on the heap, and tentatively set it in the
17600 process structure.
17601 (thread_db_init): Don't set all_symbols_looked_up here.
17602 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17603
7984d532
PA
176042010-05-03 Pedro Alves <pedro@codesourcery.com>
17605
17606 * linux-low.c (linux_kill, linux_detach): Adjust.
17607 (status_pending_p_callback): Remove redundant statement. Check
17608 for !TARGET_WAITIKIND_IGNORE, instead of
17609 TARGET_WAITKIND_STOPPED.
17610 (handle_tracepoints): Make sure LWP is locked. Adjust.
17611 (linux_wait_for_event_1): Adjust.
17612 (linux_cancel_breakpoints): New.
17613 (unsuspend_one_lwp): New.
17614 (unsuspend_all_lwps): New.
17615 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17616 (send_sigstop_callback): Change return type to int, add new
17617 `except' parameter and handle it.
17618 (suspend_and_send_sigstop_callback): New.
17619 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17620 pass them down. If SUSPEND, also increment the lwp's suspend
17621 count.
17622 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17623 (need_step_over_p): Don't consider suspended LWPs.
17624 (start_step_over): Adjust.
17625 (proceed_one_lwp): Change return type to int, add new `except'
17626 parameter and handle it.
17627 (unsuspend_and_proceed_one_lwp): New.
17628 (proceed_all_lwps): Use find_inferior instead of
17629 for_each_inferior.
17630 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17631 also decrement the suspend count of LWPs. Pass `except' down,
17632 instead of hacking its suspend count.
17633 (linux_pause_all): Add `freeze' parameter. Adjust.
17634 (linux_unpause_all): New.
17635 (linux_target_ops): Install linux_unpause_all.
17636 * server.c (handle_status): Adjust.
17637 * target.h (struct target_ops): New fields `unpause_all' and
17638 `cancel_breakpoints'. Add new parameter to `pause_all'.
17639 (pause_all): Add new `freeze' parameter.
17640 (unpause_all): New.
17641 (cancel_breakpoints): New.
17642 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17643 cancel breakpoints.
17644 (cmd_qtstart): Pause threads.
17645 (stop_tracing): Pause threads, and cancel breakpoints.
17646 * win32-low.c (win32_target_ops): Adjust.
17647
e471f25b
PA
176482010-05-03 Pedro Alves <pedro@codesourcery.com>
17649
17650 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17651 the inferior right away from here...
17652 (linux_wait_1): ... to here, and adjust to check the thread's
17653 last_resume_kind instead of the lwp's step or stop_expected flags.
17654
1915ef4f
PA
176552010-05-02 Pedro Alves <pedro@codesourcery.com>
17656
17657 * README: Use consistent `GDB' and `GDBserver' spellings.
17658
f9e39928
PA
176592010-05-02 Pedro Alves <pedro@codesourcery.com>
17660
17661 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17662 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17663 (linux_detach_one_lwp): Assume the lwp is stopped.
17664 (any_thread_of): Delete.
17665 (linux_detach): Stop all lwps here. Don't blindly delete all
17666 breakpoints.
17667 (delete_lwp_callback): New.
17668 (linux_mourn): Delete all lwps of the process that is gone.
17669 (linux_wait_1): Don't delete the last lwp of the process here.
17670 * mem-break.h (mark_breakpoints_out): Declare.
17671 * mem-break.c (mark_breakpoints_out): New.
17672 (free_all_breakpoints): Use it.
17673 * server.c (handle_target_event): If the process is gone, mark
17674 breakpoints out.
17675 * thread-db.c (struct thread_db) <create_bp>: New field.
17676 (thread_db_enable_reporting): Fix prototype. Store a thread event
17677 breakpoint reference in the thread_db struct.
17678 (thread_db_load_search): Clear the thread_db object.
17679 (try_thread_db_load_1): Ditto.
17680 (switch_to_process): New.
17681 (disable_thread_event_reporting): Use it.
17682 (remove_thread_event_breakpoints): New.
17683 (thread_db_detach, thread_db_mourn): Use it.
17684
1e7fc18c
PA
176852010-05-01 Pedro Alves <pedro@codesourcery.com>
17686
17687 * linux-low.c (linux_enable_event_reporting): New.
17688 (linux_wait_for_event_1, handle_extended_wait): Use it.
17689
02fc4de7
PA
176902010-04-30 Pedro Alves <pedro@codesourcery.com>
17691
17692 * linux-low.c (linux_kill_one_lwp, linux_kill)
17693 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17694 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17695 SIGSTOP even if the LWP is stopped.
17696 (send_sigstop_callback): New.
17697 (stop_all_lwps): Use send_sigstop_callback instead.
17698 (linux_resume_one_thread): Adjust.
17699 (proceed_one_lwp): Still proceed an LWP that the client has
17700 requested to stop, if we haven't reported it as stopped yet. Make
17701 sure that LWPs the client want stopped, have a pending SIGSTOP.
17702
bc3b5632
DE
177032010-04-26 Doug Evans <dje@google.com>
17704
ae1ada35
DE
17705 * server.c (handle_general_set): Make static.
17706
bc3b5632
DE
17707 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17708 Print received char after testing for error/eof instead of before.
17709 (input_interrupt): Tweak comment.
17710
65730243
DE
177112010-04-23 Doug Evans <dje@google.com>
17712
17713 * server.c (start_inferior): Print inferior argv if --debug.
17714
a8ae7dc0
AR
177152010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17716
17717 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17718 * nto-x86-low.c: Include server.h
17719
1c07cc19
PM
177202010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17721
17722 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17723 be consistent with other sources of this directory.
17724 (init_registers_amd64): Correct name of source file of this function
17725 in the comment.
17726
e0a61e09
PM
177272010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17728
17729 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17730 64-bit executables.
17731
54709339
PM
177322010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17733
17734 * win32-i386-low.c: Add 64-bit support.
17735 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17736 (init_registers_amd64): Declare.
17737 (mappings): Add 64-bit version of array.
17738 (init_windows_x86): New function.
17739 (the_low_target): Change init_arch field to init_windows_x86.
17740
e8f0053d
PM
177412010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17742
17743 * win32-low.c: Adapt to support also 64-bit architecture.
17744 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17745 (get_image_name): Use SIZE_T type for local variable `done'.
17746 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17747 (toolhelp_get_dll_name): Idem.
17748 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17749 Use uintptr_t typecast to avoid warning.
17750 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17751 (handle_exception): Use phex_nz to avoid warning.
17752 (win32_wait): Remove unused local variable `process'.
17753
c481e77e
PM
177542010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17755
17756 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17757 `amd64-avx.o'.
17758
12ea4b69
PM
177592010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17760
17761 * configure.ac: Use `ws2_32' library for srv_mingw.
17762 * configure: Regenerate.
17763 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17764 * remote-utils.c: Likewise.
17765
f6d1620c
L
177662010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17767
17768 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17769 if __x86_64__ is defined.
17770
8e642873
PM
177712010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17772
17773 * configure: Regenerate.
17774
711e434b
PM
177752010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17776
17777 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17778 * target.h (target_ops): New get_tib_address field.
17779 * win32-low.h (win32_thread_info): Add thread_local_base field.
17780 * win32-low.c (child_add_thread): Add tlb argument.
17781 Set thread_local_base field to TLB.
17782 (get_child_debug_event): Adapt to child_add_thread change.
17783 (win32_get_tib_address): New function.
17784 (win32_target_ops): Set get_tib_address field to
17785 win32_get_tib_address.
17786 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17787
505106cd
PA
177882010-04-12 Pedro Alves <pedro@codesourcery.com>
17789
505106cd
PA
17790 * linux-low.c (linux_mourn): Also remove the process.
17791 * server.c (handle_target_event): Don't remove the process here.
17792 * nto-low.c (nto_mourn): New.
17793 (nto_target_ops): Install it.
17794 * spu-low.c (spu_mourn): New.
17795 (spu_target_ops): Install it.
17796 * win32-low.c (win32_mourn): New.
17797 (win32_target_ops): Install it.
17798
e8470a06
PA
177992010-04-12 Pedro Alves <pedro@codesourcery.com>
17800
17801 * server.h (buffer_xml_printf): Remove redundant `;'.
17802
45ba0d02
PA
178032010-04-12 Pedro Alves <pedro@codesourcery.com>
17804
17805 * regcache.c (set_register_cache): Invalidate regcaches before
17806 changing the register cache layout.
17807 (regcache_invalidate_one): Allow a NULL regcache.
17808 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17809 regcaches before changing the register cache layout or the target
17810 regsets.
17811
59e04013
L
178122010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17813
17814 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17815 variable warning on Linux/x86-64.
17816
8336d594
PA
178172010-04-11 Pedro Alves <pedro@codesourcery.com>
17818
17819 GDBserver disconnected tracing support.
17820
17821 * linux-low.c (linux_remove_process): Delete.
17822 (add_lwp): Don't set last_resume_kind here.
17823 (linux_kill): Use `mourn'.
17824 (linux_detach): Use `thread_db_detach', and `mourn'.
17825 (linux_mourn): New.
17826 (linux_attach_lwp_1): Adjust comment.
17827 (linux_attach): last_resume_kind moved the thread_info; adjust.
17828 (status_pending_p_callback): Adjust.
17829 (linux_wait_for_event_1): Adjust.
17830 (count_events_callback, select_singlestep_lwp_callback)
17831 (select_event_lwp_callback, cancel_breakpoints_callback)
17832 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17833 (proceed_one_lwp): Adjust.
17834 (linux_async): Add debug output.
17835 (linux_thread_stopped): New.
17836 (linux_pause_all): New.
17837 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17838 linux_pause_all.
17839 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17840 (thread_db_free): Delete declaration.
17841 (thread_db_detach, thread_db_mourn): Declare.
17842 * thread-db.c (thread_db_init): Use thread_db_mourn.
17843 (thread_db_free): Delete, split in two.
17844 (disable_thread_event_reporting): New.
17845 (thread_db_detach): New.
17846 (thread_db_mourn): New.
17847
17848 * server.h (struct thread_info) <last_resume_kind>: New field.
17849 <attached>: Add comment.
17850 <gdb_detached>: New field.
17851 (handler_func): Change return type to int.
17852 (handle_serial_event, handle_target_event): Ditto.
17853 (gdb_connected): Declare.
17854 (tracing): Delete.
17855 (disconnected_tracing): Declare.
17856 (stop_tracing): Declare.
17857
17858 * server.c (handle_query) <qSupported>: Report support for
17859 disconnected tracing.
17860 (queue_stop_reply_callback): Account for running threads.
17861 (gdb_wants_thread_stopped): New.
17862 (gdb_wants_all_threads_stopped): New.
17863 (gdb_reattached_process): New.
17864 (handle_status): Clear the `gdb_detached' flag of all processes.
17865 In all-stop, stop all threads.
17866 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17867 (process_serial_event): If the remote connection breaks, or if an
17868 exit was forced with "monitor exit", force an event loop exit.
17869 Handle disconnected tracing on detach.
17870 (handle_serial_event): Adjust.
17871 (handle_target_event): If GDB isn't connected, forward events back
17872 to the inferior, unless the last process exited, in which case,
17873 exit gdbserver. Adjust interface.
17874
17875 * remote-utils.c (remote_open): Don't block in accept. Instead
17876 register an event loop source on the listen socket file
17877 descriptor. Refactor bits into ...
17878 (listen_desc): ... this new global.
17879 (gdb_connected): ... this new function.
17880 (enable_async_notification): ... this new function.
17881 (handle_accept_event): ... this new function.
17882 (remote_close): Clear remote_desc.
17883
17884 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17885
17886 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17887 New fields.
17888 (mourn_inferior): Define.
17889 (target_process_qsupported): Avoid the dangling else problem.
17890 (thread_stopped): Define.
17891 (pause_all): Define.
17892 (target_waitstatus_to_string): Declare.
17893 * target.c (target_waitstatus_to_string): New.
17894
17895 * tracepoint.c (tracing): Make extern.
17896 (disconnected_tracing): New.
17897 (stop_tracing): Make extern. Handle tracing stops due to GDB
17898 disconnecting.
17899 (cmd_qtdisconnected): New.
17900 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17901 (handle_tracepoint_general_set): Handle QTDisconnected.
17902
17903 * event-loop.c (event_handler_func): Change return type to int.
17904 (process_event): Bail out if the event handler wants the event
17905 loop to stop.
17906 (handle_file_event): Ditto.
17907 (start_event_loop): Bail out if the event handler wants the event
17908 loop to stop.
17909
17910 * nto-low.c (nto_target_ops): Adjust.
17911 * spu-low.c (spu_wait): Don't remove the process here.
17912 (spu_target_ops): Adjust.
17913 * win32-low.c (win32_wait): Don't remove the process here.
17914 (win32_target_ops): Adjust.
17915
5d267c4c
PA
179162010-04-11 Pedro Alves <pedro@codesourcery.com>
17917
17918 * regcache.c (realloc_register_cache): Invalidate inferior's
17919 regcache before recreating it.
17920
623ccd72
PA
179212010-04-09 Pedro Alves <pedro@codesourcery.com>
17922
17923 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17924
219f2f23
PA
179252010-04-09 Stan Shebs <stan@codesourcery.com>
17926 Pedro Alves <pedro@codesourcery.com>
17927
17928 * server.h (LONGEST): New.
17929 (struct thread_info) <while_stepping>: New field.
17930 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17931 Declare.
17932 (initialize_tracepoint, handle_tracepoint_general_set)
17933 (handle_tracepoint_query, tracepoint_finished_step)
17934 (tracepoint_was_hit, release_while_stepping_state_list):
17935 (current_traceframe): Declare.
17936 * server.c (handle_general_set): Handle tracepoint packets.
17937 (read_memory): New.
17938 (write_memory): New.
17939 (handle_search_memory_1): Use read_memory.
17940 (handle_query): Report support for conditional tracepoints, trace
17941 state variables, and tracepoint sources. Handle tracepoint
17942 queries.
17943 (main): Initialize the tracepoints module.
17944 (process_serial_event): Handle traceframe reads/writes.
17945
17946 * linux-low.c (handle_tracepoints): New.
17947 (linux_wait_1): Call it.
17948 (linux_resume_one_lwp): Handle while-stepping.
17949 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17950 (linux_target_ops): Install them.
17951 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17952 New field.
17953 * linux-x86-low.c (x86_supports_tracepoints): New.
17954 (the_low_target). Install it.
17955
17956 * mem-break.h (delete_breakpoint): Declare.
17957 * mem-break.c (delete_breakpoint): Make external.
17958
17959 * target.h (struct target_ops): Add `supports_tracepoints',
17960 `read_pc', and `write_pc' fields.
17961 (target_supports_tracepoints): Define.
17962 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17963 (phex_nz): New.
17964
17965 * regcache.h (struct regcache) <registers_owned>: New field.
17966 (init_register_cache, regcache_cpy): Declare.
17967 (regcache_read_pc, regcache_write_pc): Declare.
17968 (register_cache_size): Declare.
17969 (supply_regblock): Declare.
17970 * regcache.c (init_register_cache): New.
17971 (new_register_cache): Use it.
17972 (regcache_cpy): New.
17973 (register_cache_size): New.
17974 (supply_regblock): New.
17975 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17976
219f2f23
PA
17977 * tracepoint.c: New.
17978
17979 * Makefile.in (OBS): Add tracepoint.o.
17980 (tracepoint.o): New rule.
17981
3a13a53b
L
179822010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17983
17984 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17985 (i386-mmx.o): New.
17986 (i386-mmx.c): Likewise.
17987 (i386-mmx-linux.o): Likewise.
17988 (i386-mmx-linux.c): Likewise.
17989
17990 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17991 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17992 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17993 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17994
17995 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17996 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17997 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17998
1570b33e
L
179992010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18000
18001 * Makefile.in (clean): Updated.
18002 (i386-avx.o): New.
18003 (i386-avx.c): Likewise.
18004 (i386-avx-linux.o): Likewise.
18005 (i386-avx-linux.c): Likewise.
18006 (amd64-avx.o): Likewise.
18007 (amd64-avx.c): Likewise.
18008 (amd64-avx-linux.o): Likewise.
18009 (amd64-avx-linux.c): Likewise.
18010
18011 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18012 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18013 (srv_amd64_regobj): Add amd64-avx.o.
18014 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18015 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18016 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18017 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18018 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18019 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18020 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18021
18022 * i387-fp.c: Include "i386-xstate.h".
18023 (i387_xsave): New.
18024 (i387_cache_to_xsave): Likewise.
18025 (i387_xsave_to_cache): Likewise.
18026 (x86_xcr0): Likewise.
18027
18028 * i387-fp.h (i387_cache_to_xsave): Likewise.
18029 (i387_xsave_to_cache): Likewise.
18030 (x86_xcr0): Likewise.
18031
18032 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18033 * linux-crisv32-low.c (target_regsets): Likewise.
18034 * linux-m68k-low.c (target_regsets): Likewise.
18035 * linux-mips-low.c (target_regsets): Likewise.
18036 * linux-ppc-low.c (target_regsets): Likewise.
18037 * linux-s390-low.c (target_regsets): Likewise.
18038 * linux-sh-low.c (target_regsets): Likewise.
18039 * linux-sparc-low.c (target_regsets): Likewise.
18040 * linux-xtensa-low.c (target_regsets): Likewise.
18041
18042 * linux-low.c: Include <sys/uio.h>.
18043 (regsets_fetch_inferior_registers): Support nt_type.
18044 (regsets_store_inferior_registers): Likewise.
18045 (linux_process_qsupported): New.
18046 (linux_target_ops): Add linux_process_qsupported.
18047
18048 * linux-low.h (regset_info): Add nt_type.
18049 (linux_target_ops): Add process_qsupported.
18050
18051 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18052 and <sys/uio.h>.
18053 (init_registers_i386_avx_linux): New.
18054 (init_registers_amd64_avx_linux): Likewise.
18055 (xmltarget_i386_linux_no_xml): Likewise.
18056 (xmltarget_amd64_linux_no_xml): Likewise.
18057 (PTRACE_GETREGSET): Likewise.
18058 (PTRACE_SETREGSET): Likewise.
18059 (x86_fill_xstateregset): Likewise.
18060 (x86_store_xstateregset): Likewise.
18061 (use_xml): Likewise.
18062 (x86_linux_update_xmltarget): Likewise.
18063 (x86_linux_process_qsupported): Likewise.
18064 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18065 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18066 init_registers_i386_linux here. Call
18067 x86_linux_update_xmltarget.
18068 (the_low_target): Add x86_linux_process_qsupported.
18069
18070 * server.c (handle_query): Call target_process_qsupported.
18071
18072 * target.h (target_ops): Add process_qsupported.
18073 (target_process_qsupported): New.
18074
fc7238bb
PA
180752010-04-03 Pedro Alves <pedro@codesourcery.com>
18076
18077 * inferiors.c (add_thread): Set last_status kind to
18078 TARGET_WAITKIND_IGNORE.
18079 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18080 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18081 (linux_wait_1): Move `thread' local definition to block that uses
18082 it. Don't NULL initialize `event_child'.
18083 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18084 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18085 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18086
bdabb078
PA
180872010-04-01 Pedro Alves <pedro@codesourcery.com>
18088
18089 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18090 an extended waitstatus, or by a watchpoint.
18091 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18092 thread was stepping or has been stopped by a watchpoint.
18093
d3bbe7a0
PA
180942010-04-01 Pedro Alves <pedro@codesourcery.com>
18095
18096 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18097 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18098 of another, then delete the previous, and validate all
18099 breakpoints.
18100 (validate_inserted_breakpoint): New.
18101 (delete_disabled_breakpoints): New.
18102 (validate_breakpoints): New.
18103 (check_mem_read): Validate breakpoints before trusting their
18104 shadow. Delete disabled breakpoints.
18105 (check_mem_write): Validate breakpoints before trusting they
18106 should be inserted. Delete disabled breakpoints.
18107 * mem-break.h (validate_breakpoints):
18108 * server.c (handle_query): Validate breakpoints when we see a
18109 qSymbol query.
18110
8b07ae33
PA
181112010-04-01 Pedro Alves <pedro@codesourcery.com>
18112
18113 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18114 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18115 if we could tell there's a GDB breakpoint at stop_pc.
18116 (need_step_over_p): Don't do a step over if we find a GDB
18117 breakpoint at the resume PC.
18118
18119 * mem-break.c (struct raw_breakpoint): New.
18120 (enum bkpt_type): New type `gdb_breakpoint'.
18121 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18122 fields. New field `raw'.
18123 (find_raw_breakpoint_at): New.
18124 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18125 breakpoint instead.
18126 (set_breakpoint_at): Adjust.
18127 (delete_raw_breakpoint): New.
18128 (release_breakpoint): New.
18129 (delete_breakpoint): Rename to...
18130 (delete_breakpoint_1): ... this. Add proc parameter. Use
18131 release_breakpoint. Return ENOENT.
18132 (delete_breakpoint): Reimplement.
18133 (find_breakpoint_at): Delete.
18134 (find_gdb_breakpoint_at): New.
18135 (delete_breakpoint_at): Delete.
18136 (set_gdb_breakpoint_at): New.
18137 (delete_gdb_breakpoint_at): New.
18138 (gdb_breakpoint_here): New.
18139 (set_reinsert_breakpoint): Use release_breakpoint.
18140 (uninsert_breakpoint): Rename to ...
18141 (uninsert_raw_breakpoint): ... this.
18142 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18143 (reinsert_raw_breakpoint): Change parameter type to
18144 raw_breakpoint.
18145 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18146 instead.
18147 (check_breakpoints): Adjust. Use release_breakpoint.
18148 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18149 (breakpoint_inserted_here): Ditto.
18150 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18151 Don't trust the breakpoint's shadow if it is not inserted.
18152 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18153 (delete_all_breakpoints): Adjust.
18154 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18155 use delete_breakpoint_1.
18156
18157 * mem-break.h (breakpoints_supported): Delete declaration.
18158 (set_gdb_breakpoint_at): Declare.
18159 (gdb_breakpoint_here): Declare.
18160 (delete_breakpoint_at): Delete.
18161 (delete_gdb_breakpoint_at): Declare.
18162
18163 * server.h (struct raw_breakpoint): Forward declare.
18164 (struct process_info): New field `raw_breakpoints'.
18165
18166 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18167 breakpoints.
18168
6bf5e0ba
PA
181692010-03-24 Pedro Alves <pedro@codesourcery.com>
18170
18171 * linux-low.c (status_pending_p_callback): Fix comment.
18172 (linux_wait_for_event_1): Move most of the internal breakpoint
18173 handling from here...
18174 (linux_wait_1): ... to here.
18175 (count_events_callback): New.
18176 (select_singlestep_lwp_callback): New.
18177 (select_event_lwp_callback): New.
18178 (cancel_breakpoints_callback): New.
18179 (select_event_lwp): New.
18180 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18181 priority to all LWPs that have had events that should be reported
18182 to the client. Cancel breakpoints when about to reporting the
18183 event to the client, not while stopping lwps. No longer cancel
18184 finished single-steps here.
18185 (cancel_finished_single_step): Delete.
18186 (cancel_finished_single_steps): Delete.
18187
414a389f
PA
181882010-03-24 Pedro Alves <pedro@codesourcery.com>
18189
18190 * mem-break.c (enum bkpt_type): New.
18191 (struct breakpoint): New field `type'.
18192 (set_breakpoint_at): Change return type to struct breakpoint
18193 pointer. Set type to `other_breakpoint' by default.
18194 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18195 in the breakpoint list.
18196 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18197 (reinsert_breakpoint): Rename to ...
18198 (reinsert_raw_breakpoint): ... this.
18199 (reinsert_breakpoints_at): Adjust.
18200 * mem-break.h (struct breakpoint): Declare.
18201 (set_breakpoint_at): Change return type to struct breakpoint
18202 pointer.
18203
2280c721
PA
182042010-03-24 Pedro Alves <pedro@codesourcery.com>
18205
18206 * server.c (handle_query): Assign, not compare.
18207
d50171e4
PA
182082010-03-24 Pedro Alves <pedro@codesourcery.com>
18209
18210 Teach linux gdbserver to step-over-breakpoints.
18211
18212 * linux-low.c (can_hardware_single_step): New.
18213 (supports_breakpoints): New.
18214 (handle_extended_wait): If stopping threads, read the stop pc of
18215 the new cloned LWP.
18216 (get_pc): New.
18217 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18218 low target doesn't support retrieving the PC.
18219 (add_lwp): Set last_resume_kind to resume_continue.
18220 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18221 (linux_attach): Don't clear stop_expected. Set the lwp's
18222 last_resume_kind to resume_stop.
18223 (linux_detach_one_lwp): Don't check for removed breakpoints.
18224 (check_removed_breakpoint): Delete.
18225 (status_pending_p): Rename to ...
18226 (status_pending_p_callback): ... this. Don't check for removed
18227 breakpoints. Don't consider threads that are stopped from GDB's
18228 perspective.
18229 (linux_wait_for_lwp): Always read the stop_pc here.
18230 (cancel_breakpoint): New.
18231 (step_over_bkpt): New global.
18232 (linux_wait_for_event_1): Implement stepping over breakpoints.
18233 (gdb_wants_lwp_stopped): New.
18234 (gdb_wants_all_stopped): New.
18235 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18236 single-step traps here. Store the thread's last reported target
18237 wait status.
18238 (send_sigstop): Don't clear stop_expected. Always set it,
18239 instead.
18240 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18241 (cancel_finished_single_step): New.
18242 (cancel_finished_single_steps): New.
18243 (wait_for_sigstop): Don't cancel finished single-step traps here.
18244 (linux_resume_one_lwp): Don't check for removed breakpoints.
18245 Don't set `step' on non-hardware step archs.
18246 (linux_set_resume_request): Ignore resume_stop requests if already
18247 stopping or stopped. Set the lwp's last_resume_kind.
18248 (resume_status_pending_p): Don't check for removed breakpoints.
18249 (need_step_over_p): New.
18250 (start_step_over): New.
18251 (finish_step_over): New.
18252 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18253 requests. Clear the thread's last reported target waitstatus.
18254 Don't use the `suspended' flag. Don't consider pending breakpoints.
18255 (linux_resume): Start a step-over if necessary.
18256 (proceed_one_lwp): New.
18257 (proceed_all_lwps): New.
18258 (unstop_all_lwps): New.
18259 * linux-low.h (struct lwp_info): Rewrite comment for the
18260 `suspended' flag. Add the `stop_pc' field. Delete the
18261 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18262 Add `'last_resume_kind' and `need_step_over' fields.
18263 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18264 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18265 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18266 (set_raw_breakpoint_at): New.
18267 (set_breakpoint_at): Rewrite to use it.
18268 (reinsert_breakpoint_handler): Delete.
18269 (set_reinsert_breakpoint): New.
18270 (reinsert_breakpoint_by_bp): Delete.
18271 (delete_reinsert_breakpoints): New.
18272 (uninsert_breakpoint): Rewrite.
18273 (uninsert_breakpoints_at): New.
18274 (reinsert_breakpoint): Rewrite.
18275 (reinsert_breakpoints_at): New.
18276 (check_breakpoints): Rewrite.
18277 (breakpoint_here): New.
18278 (breakpoint_inserted_here): New.
18279 (check_mem_read): Adjust.
18280 * mem-break.h (breakpoints_supported, breakpoint_here)
18281 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18282 (reinsert_breakpoint_by_bp): Delete declaration.
18283 (delete_reinsert_breakpoints): Declare.
18284 (reinsert_breakpoint): Delete declaration.
18285 (reinsert_breakpoints_at): Declare.
18286 (uninsert_breakpoint): Delete declaration.
18287 (uninsert_breakpoints_at): Declare.
18288 (check_breakpoints): Adjust prototype.
18289 * server.h: Adjust include order.
18290 (struct thread_info): Declare here. Add a `last_status' field.
18291
30ba68cb
MS
182922010-03-23 Michael Snyder <msnyder@vmware.com>
18293
18294 * server.c (crc32): New function.
18295 (handle_query): Add handling for 'qCRC:' request.
18296
b9a881c2
PA
182972010-03-23 Pedro Alves <pedro@codesourcery.com>
18298
18299 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18300 lwp had been stopped by a watchpoint.
18301
e92d13d5
PA
183022010-03-16 Pedro Alves <pedro@codesourcery.com>
18303
18304 * server.h (internal_error): Declare.
18305 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18306 * utils.c (internal_error): New function.
18307
64daa791
AS
183082010-03-15 Andreas Schwab <schwab@redhat.com>
18309
18310 * configure.srv: Fix typo setting srv_regobj.
18311
f52cd8cd
PA
183122010-03-15 Pedro Alves <pedro@codesourcery.com>
18313
18314 * linux-low.c (fetch_register): Avoid passing a non string literal
18315 format to `error'.
18316 (usr_store_inferior_registers): Ditto.
18317
93ae6fdc
PA
183182010-03-14 Pedro Alves <pedro@codesourcery.com>
18319
18320 * linux-low.c (linux_write_memory): Bail out early if peeking
18321 memory failed.
18322
c3adc08c
PA
183232010-03-14 Pedro Alves <pedro@codesourcery.com>
18324
18325 * linux-low.h (struct lwp_info): New fields
18326 `stopped_by_watchpoint' and `stopped_data_address'.
18327 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18328 here, and cache them in the lwp object.
18329 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18330 directly.
18331 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18332 field.
18333 (linux_stopped_by_watchpoint): Rewrite.
18334 (linux_stopped_data_address): Rewrite.
18335
bce522a2
PA
183362010-03-06 Simo Melenius <simo.melenius@iki.fi>
18337
18338 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18339 switching the current inferior, not before.
18340
90884b2b
L
183412010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18342
18343 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18344 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18345 i386-linux.c and amd64-linux.c.
18346 (reg-i386.o): Removed.
18347 (reg-i386.c): Likewise.
18348 (reg-i386-linux.o): Likewise.
18349 (reg-i386-linux.c): Likewise.
18350 (reg-x86-64.o): Likewise.
18351 (reg-x86-64.c): Likewise.
18352 (reg-x86-64-linux.o): Likewise.
18353 (reg-x86-64-linux.c): Likewise.
18354 (i386.o): New.
18355 (i386.c): Likewise.
18356 (i386-linux.o): Likewise.
18357 (i386-linux.c): Likewise.
18358 (amd64.o): Likewise.
18359 (amd64.c): Likewise.
18360 (amd64-linux.o): Likewise.
18361 (amd64-linux.c): Likewise.
18362
18363 * configure.srv (srv_i386_regobj): New.
18364 (srv_i386_linux_regobj): Likewise.
18365 (srv_amd64_regobj): Likewise.
18366 (srv_amd64_linux_regobj): Likewise.
18367 (srv_i386_32bit_xmlfiles): Likewise.
18368 (srv_i386_64bit_xmlfiles): Likewise.
18369 (srv_i386_xmlfiles): Likewise.
18370 (srv_amd64_xmlfiles): Likewise.
18371 (srv_i386_linux_xmlfiles): Likewise.
18372 (srv_amd64_linux_xmlfiles): Likewise.
18373 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18374 srv_xmlfiles to $srv_i386_xmlfiles.
18375 (i[34567]86-*-mingw32ce*): Likewise.
18376 (i[34567]86-*-mingw*): Likewise.
18377 (i[34567]86-*-nto*): Likewise.
18378 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18379 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18380 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18381 (x86_64-*-linux*): Likewise.
18382
18383 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18384 (init_registers_amd64_linux): New.
18385 (x86_arch_setup): Replace init_registers_x86_64_linux with
18386 init_registers_amd64_linux.
18387
193f13e6
MK
183882010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18389
18390 * configure.ac: Check for libdl. If it is not available link against
18391 static libthread_db.
18392 * configure: Regenerate.
18393
85d721b8
PA
183942010-02-22 Pedro Alves <pedro@codesourcery.com>
18395
18396 PR9605
18397
18398 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18399 handing a read watchpoint.
18400 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18401
6076632b
DE
184022010-02-12 Doug Evans <dje@google.com>
18403
18404 * linux-low.c (linux_supports_tracefork_flag): Document.
18405 (linux_look_up_symbols): Add comment.
18406
3327ccf7
L
184072010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18408
18409 * regcache.c (supply_register): Clear regcache if buf is NULL.
18410
0718675c 184112010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18412 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18413
18414 * inferiors.c (find_inferior): Add function documentation.
18415 (unloaded_dll): Handle the case where the unloaded dll has not
18416 been previously registered in the dll list.
18417
177321bd
DJ
184182010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18419
18420 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18421 (thumb2_breakpoint): New.
18422 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18423
2b009048
DJ
184242010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18425
18426 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18427 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18428 breakpoints.
18429
3be029c7
PA
184302010-01-21 Pedro Alves <pedro@codesourcery.com>
18431
18432 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18433
18f5de3b
JK
184342010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18435
18436 * linux-s390-low.c (s390_collect_ptrace_register)
18437 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18438
3743bb4f
DE
184392010-01-21 Doug Evans <dje@google.com>
18440
14ce3065
DE
18441 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18442 (PTRACE_ARG4_TYPE): New macro.
18443 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18444 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18445 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18446 (usr_store_inferior_registers): Ditto.
18447 (linux_read_memory, linux_write_memory): Ditto.
18448 (linux_test_for_tracefork): Ditto.
18449
3743bb4f
DE
18450 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18451 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18452
8b315be5
PA
184532010-01-21 Pedro Alves <pedro@codesourcery.com>
18454
18455 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18456 target.
18457
85492558
PA
184582010-01-21 Pedro Alves <pedro@codesourcery.com>
18459
18460 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18461 prototype to take a regcache. Adjust.
18462
442ea881
PA
184632010-01-20 Pedro Alves <pedro@codesourcery.com>
18464
18465 * regcache.h (struct thread_info): Forward declare.
18466 (struct regcache): New.
18467 (new_register_cache): Adjust prototype.
18468 (get_thread_regcache): Declare.
18469 (free_register_cache): Adjust prototype.
18470 (registers_to_string, registers_from_string): Ditto.
18471 (supply_register, supply_register_by_name, collect_register)
18472 (collect_register_as_string, collect_register_by_name): Ditto.
18473 * regcache.c (struct inferior_regcache_data): Delete.
18474 (get_regcache): Rename to ...
18475 (get_thread_regcache): ... this. Adjust. Switch inferior before
18476 fetching registers.
18477 (regcache_invalidate_one): Adjust.
18478 (regcache_invalidate): Fix prototype.
18479 (new_register_cache): Return the new register cache.
18480 (free_register_cache): Change prototype.
18481 (realloc_register_cache): Adjust.
18482 (registers_to_string): Change prototype to take a regcache. Adjust.
18483 (registers_from_string): Ditto.
18484 (register_data): Ditto.
18485 (supply_register): Ditto.
18486 (supply_register_by_name): Ditto.
18487 (collect_register): Ditto.
18488 (collect_register_as_string): Ditto.
18489 (collect_register_by_name): Ditto.
18490 * server.c (process_serial_event): Adjust.
18491 * linux-low.h (regset_fill_func, regset_store_func): Change
18492 prototype.
18493 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18494 Change prototype.
18495 * linux-low.c (get_stop_pc): Adjust.
18496 (check_removed_breakpoint): Adjust.
18497 (linux_wait_for_event): Adjust.
18498 (linux_resume_one_lwp): Adjust.
18499 (fetch_register): Add regcache parameter. Adjust.
18500 (usr_store_inferior_registers): Ditto.
18501 (regsets_fetch_inferior_registers): Ditto.
18502 (regsets_store_inferior_registers): Ditto.
18503 (linux_fetch_registers, linux_store_registers): Ditto.
18504 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18505 regcache. Adjust.
43aaf8b6
PA
18506 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18507 Ditto.
442ea881
PA
18508 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18509 prototype to take a regcache.
18510 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18511 * remote-utils.c (convert_ascii_to_int, outreg)
18512 (prepare_resume_reply): Change prototype to take a regcache.
18513 Adjust.
18514 * target.h (struct target_ops) <fetch_registers, store_registers>:
18515 Change prototype to take a regcache.
18516 (fetch_inferior_registers, store_inferior_registers): Change
18517 prototype to take a regcache. Adjust.
18518 * proc-service.c (ps_lgetregs): Adjust.
18519 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18520 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18521 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18522 take a regcache. Adjust.
18523 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18524 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18525 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18526 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18527 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18528 (cris_cannot_fetch_register):
18529 (cris_breakpoint_at): Change prototype to take a regcache.
18530 Adjust.
18531 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18532 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18533 to take a regcache. Adjust.
18534 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18535 Adjust.
18536 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18537 take a regcache. Adjust.
18538 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18539 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18540 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18541 * linux-mips-low.c (mips_get_pc):
18542 (mips_set_pc): Change prototype to take a regcache. Adjust.
18543 (mips_reinsert_addr): Adjust.
18544 (mips_collect_register): Change prototype to take a regcache.
18545 Adjust.
18546 (mips_supply_register):
18547 (mips_collect_register_32bit, mips_supply_register_32bit)
18548 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18549 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18550 * linux-ppc-low.c (ppc_supply_ptrace_register)
18551 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18552 (parse_spufs_run): Adjust.
18553 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18554 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18555 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18556 take a regcache. Adjust.
18557 * linux-s390-low.c (s390_collect_ptrace_register)
18558 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18559 (s390_set_pc): Change prototype to take a regcache. Adjust.
18560 (s390_arch_setup): Adjust.
18561 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18562 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18563 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18564 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18565 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18566 regcache. Adjust.
18567 (sparc_breakpoint_at): Adjust.
18568 * linux-xtensa-low.c (xtensa_fill_gregset):
18569 (xtensa_store_gregset):
18570 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18571 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18572 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18573 prototype to take a regcache. Adjust.
18574 * win32-arm-low.c (arm_fetch_inferior_register)
18575 (arm_store_inferior_register): Change prototype to take a
18576 regcache. Adjust.
18577 * win32-i386-low.c (i386_fetch_inferior_register)
18578 (i386_store_inferior_register): Change prototype to take a
18579 regcache. Adjust.
18580 * win32-low.c (child_fetch_inferior_registers)
18581 (child_store_inferior_registers): Change prototype to take a
18582 regcache. Adjust.
18583 (win32_wait): Adjust.
18584 (win32_fetch_inferior_registers): Change prototype to take a
18585 regcache. Adjust.
18586 (win32_store_inferior_registers): Adjust.
18587 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18588 store_inferior_register>: Change prototype to take a regcache.
18589
60c3d7b0
DE
185902010-01-20 Doug Evans <dje@google.com>
18591
18592 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18593 #ifdef.
18594 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18595 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18596
dc146f7c
VP
185972010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18598
18599 * linux-low.c (linux_core_of_thread): New.
18600 (compare_ints, show_process, list_threads): New.
18601 (linux_qxfer_osdata): Report threads and cores.
18602 (linux_target_op): Register linux_core_of_thread.
18603 * remote-utils.c (prepare_resume_reply): Report the core.
18604 (buffer_xml_printf): Support %d specifier.
18605 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18606 New.
18607 (handle_query): Handle qXfer:threads. Announce availability
18608 thereof.
18609 * target.h (struct target_ops): New field core_of_thread.
18610
7803799a
UW
186112010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18612
18613 * Makefile.in (clean): Remove new generated files.
18614 (reg-s390.o, reg-s390.c): Remove rules.
18615 (reg-s390x.o, reg-s390x.c): Likewise.
18616 (s390-linux32.o, s390-linux32.c): Add rules.
18617 (s390-linux64.o, s390-linux64.c): Likewise.
18618 (s390x-linux64.o, s390x-linux64.c): Likewise.
18619 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18620 * linux-s390-low.c: Include <elf.h>.
18621 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18622 (init_registers_s390): Remove prototype.
18623 (init_registers_s390x): Likewise.
18624 (init_registers_s390_linux32): Add prototype.
18625 (init_registers_s390_linux64): Likewise.
18626 (init_registers_s390x_linux64): Likewise.
18627 (s390_num_regs_3264): New define.
18628 (s390_regmap_3264): New global variable.
18629 (s390_cannot_fetch_register): Remove obsolete check.
18630 (s390_cannot_store_register): Likewise.
18631 (s390_collect_ptrace_register): Handle upper/lower register halves.
18632 (s390_supply_ptrace_register): Likewise.
18633 (s390_fill_gregset): Update to register number changes.
18634 (s390_get_hwcap): New routine.
18635 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18636 Install appropriate regmap and register set.
18637
6e7ffa39
JB
186382010-01-01 Joel Brobecker <brobecker@adacore.com>
18639
18640 * server.c (gdbserver_version): Update copyright year to 2010.
18641 * gdbreplay.c (gdbreplay_version): Likewise.
18642
957f3f49
DE
186432009-12-28 Doug Evans <dje@google.com>
18644
18645 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18646 elf/external.h. Include <elf.h> instead but only if necessary.
18647
ca5c370d
PA
186482009-12-28 Pedro Alves <pedro@codesourcery.com>
18649
18650 * linux-low.c (linux_remove_process): Remove `detaching'
18651 parameter. Don't release/detach from thread_db here.
18652 (linux_kill): Release/detach from thread_db here, ...
18653 (linux_detach): ... and here, before actually detaching.
18654 (linux_wait_1): ... and here, when a process exits.
18655 * thread-db.c (any_thread_of): New.
18656 (thread_db_free): Switch the current inferior to a thread of the
18657 passed in process.
18658
4ee62156
DE
186592009-12-21 Doug Evans <dje@google.com>
18660
d90e6a88
DE
18661 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18662
c5f62d5f
DE
18663 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18664 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18665 warning ifndef __NR_tkill. Move setting of errno there too.
18666 Delete unnecessary resetting of errno after syscall.
18667 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18668
10e86dd7
DE
18669 * configure.ac: Check for dladdr.
18670 * config.in: Regenerate.
18671 * configure: Regenerate.
18672 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18673 (try_thread_db_load): Update.
18674
4ee62156
DE
18675 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18676
00f515da
DE
186772009-12-18 Doug Evans <dje@google.com>
18678
e9464885
DE
18679 * event-loop.c: Include unistd.h if it exists.
18680
07d4f67e
DE
18681 * linux-low.c (my_waitpid): Move definition away from being in
18682 between linux_tracefork_child/linux_test_for_tracefork.
18683
00f515da
DE
18684 * gdb_proc_service.h (psaddr_t): Fix type.
18685 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18686 signature to match glibc.
18687
1de1badb
DE
186882009-12-16 Doug Evans <dje@google.com>
18689
18690 * linux-low.c (linux_read_memory): Fix argument to read.
18691
aeeb81d1
PA
186922009-11-26 Pedro Alves <pedro@codesourcery.com>
18693
18694 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18695 events, don't leave current_inferior pointing at null.
18696
10357975
PA
186972009-11-26 Pedro Alves <pedro@codesourcery.com>
18698
18699 * win32-low.c (LOG): Delete.
18700 (OUTMSG): Output to stderr.
18701 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18702 on compile time LOG macro.
18703 (win32_wait): Fix debug output.
18704
cf6e3471
PA
187052009-11-26 Pedro Alves <pedro@codesourcery.com>
18706
18707 * win32-low.c (win32_add_one_solib): If the dll name is
18708 "ntdll.dll", prepend the system directory to the dll path.
18709
0c85e18e
MK
187102009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18711
18712 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18713
9ac544ce 187142009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18715 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18716
18717 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18718 * configure.ac: Check for __mcoldfire__ and set
18719 gdb_cv_m68k_is_coldfire.
18720 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18721 reg-cf.o and reg-m68k.o.
18722 * configure: Regenerated.
18723
fd7dd3e6
PA
187242009-11-16 Pedro Alves <pedro@codesourcery.com>
18725
18726 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18727 Pass it to thread_db_free.
18728 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18729 proper `detaching' argument to linux_remove_process.
18730 * linux-low.h (thread_db_free): Add `detaching' parameter.
18731 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18732 to thread_db_free.
18733 (thread_db_free): Add `detaching' parameter. Only
18734 call td_ta_clear_event if detaching from process.
18735
75aa492e
MK
187362009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18737
18738 * thread-db.c (thread_db_free): Fix typo.
18739
21e1bee4
PP
187402009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18741
18742 PR gdb/10838
18743 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18744
8838b45e
NS
187452009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18746
18747 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18748 with an i686 compiler.
18749 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18750 needed.
18751 * configure: Rebuilt.
18752
8a35fb51
SL
187532009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18754
18755 PR gdb/10783
18756
18757 * server.c (handle_search_memory_1): Correct read_addr initialization
18758 in loop for searching subsequent chunks.
18759
96f15937
PP
187602009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18761
18762 * configure.ac: New --with-libthread-db option.
18763 * thread-db.c: Allow direct dependence on libthread_db.
18764 (thread_db_free): Adjust.
18765 * config.in: Regenerate.
18766 * configure: Likewise.
889bf7c5 18767
5f7d1694
PP
187682009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18769
18770 PR gdb/10757
18771 * thread-db.c (attach_thread): New function.
18772 (maybe_attach_thread): Return success/failure.
18773 (find_new_threads_callback): Adjust.
889bf7c5
PA
18774 (thread_db_find_new_threads): Loop until no new threads.
18775
88e3b899
PA
187762009-10-13 Pedro Alves <pedro@codesourcery.com>
18777
18778 * proc-service.c (ps_lgetregs): Formatting.
18779
cdbfd419
PP
187802009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18781
18782 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18783 * configure.ac: Adjust.
18784 * linux-low.h (struct process_info_private): Move members to struct
18785 thread_db.
18786 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18787 * linux-low.c (linux_remove_process): Adjust.
18788 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18789 * server.c (handle_query): Move code ...
18790 (handle_monitor_command): ... here. New function.
18791 * target.h (struct target_ops): New member.
18792 * thread-db.c (struct thread_db): New.
18793 (libthread_db_search_path): New variable.
18794 (thread_db_create_event, thread_db_enable_reporting)
18795 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18796 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18797 (try_thread_db_load_1, dladdr_to_soname): New functions.
18798 (try_thread_db_load, thread_db_load_search): New functions.
18799 (thread_db_init): Search for libthread_db.
18800 (thread_db_free): New function.
18801 (thread_db_handle_monitor_command): Likewise.
18802 * config.in: Regenerate.
18803 * configure: Regenerate.
889bf7c5 18804
4168d2d6
UW
188052009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18806
18807 * spu-low.c (spu_kill): Wait for inferior to terminate.
18808 Call clear_inferiors.
18809 (spu_detach): Call clear_inferiors.
18810
81ecdfbb
RW
188112009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18812
18813 * aclocal.m4: Regenerate.
18814 * config.in: Likewise.
18815 * configure: Likewise.
18816
0b9ff2c0
UW
188172009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18818
18819 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18820 (parse_spufs_run): New function.
18821 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18822 (ppc_breakpoint_at): Handle SPU breakpoints.
18823
efcbbd14
UW
188242009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18825
18826 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18827 (SPUFS_MAGIC): Define.
18828 (spu_enumerate_spu_ids): New function.
18829 (linux_qxfer_spu): New function.
18830 (linux_target_ops): Install linux_qxfer_spu.
18831
f4d9bade
UW
188322009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18833
18834 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18835 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18836 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18837 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18838 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18839 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18840 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18841 (init_registers_powerpc_cell32l): Add prototype.
18842 (init_registers_powerpc_cell64l): Likewise.
18843 (ppc_arch_setup): Detect Cell/B.E. architecture.
18844
96e946ca
RW
188452009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18846
18847 * Makefile.in (datarootdir): New variable.
18848
58d6951d
DJ
188492009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18850
18851 * linux-low.c (linux_write_memory): Update debugging output.
18852 * Makefile.in (clean): Add new descriptions.
18853 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18854 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18855 * configure.srv: Add new files for arm*-*-linux*.
18856 * linux-arm-low.c: Add new declarations.
18857 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18858 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18859 (HWCAP_VFPv3D16): New.
18860 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18861 instead of __IWMMXT__.
18862 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18863 (arm_arch_setup): New.
18864 (target_regsets): Remove #ifdef. Add VFP regset.
18865 (the_low_target): Use arm_arch_setup.
18866
12b42a12
DJ
188672009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18868
18869 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18870 the main thread again.
18871
ac8c974e
AR
188722009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18873
18874 Adding Neutrino gdbserver.
18875 * configure: Regenerated.
18876 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18877 * configure.srv (i[34567]86-*-nto*): New target.
18878 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18879 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18880 (nto_comctrl) [__QNX__]: New function.
18881 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18882
4424e0c3 188832009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18884
18885 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18886 srv_tgtobj.
18887
912cf4ba
PA
188882009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18889 Pedro Alves <pedro@codesourcery.com>
18890
18891 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18892 don't support CONTEXT_EXTENDED_REGISTERS.
18893 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18894 (the_low_target): Install them.
18895 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18896 failing with ERROR_PIPE_NOT_CONNECTED.
18897
aa5ca48f
DE
188982009-06-30 Doug Evans <dje@google.com>
18899 Pierre Muller <muller@ics.u-strasbg.fr>
18900
18901 Add h/w watchpoint support to x86-linux, win32-i386.
18902 * Makefile.in (SFILES): Add i386-low.c
18903 (i386_low_h): Define.
18904 (i386-low.o): Add dependencies.
18905 (linux-x86-low.o): Add i386-low.h dependency.
18906 (win32-i386-low.o): Ditto.
18907 * i386-low.c: New file.
18908 * i386-low.h: New file.
18909 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18910 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18911 * linux-low.c (linux_add_process): Initialize arch_private.
18912 (linux_remove_process): Free arch_private.
18913 (add_lwp): Initialize arch_private.
18914 (delete_lwp): Free arch_private.
18915 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18916 provided.
18917 * linux-low.h (process_info_private): New member arch_private.
18918 (lwp_info): New member arch_private.
18919 (linux_target_ops): New members new_process, new_thread,
18920 prepare_to_resume.
18921 (ptid_of): New macro.
18922 * linux-x86-low.c: Include stddef.h, i386-low.h.
18923 (arch_process_info): New struct.
18924 (arch_lwp_info): New struct.
18925 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18926 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18927 (i386_dr_low_get_status): New function.
18928 (x86_insert_point, x86_remove_point): New functions.
18929 (x86_stopped_by_watchpoint): New function.
18930 (x86_stopped_data_address): New function.
18931 (x86_linux_new_process, x86_linux_new_thread): New functions.
18932 (x86_linux_prepare_to_resume): New function.
18933 (the_low_target): Add entries for insert_point, remove_point,
18934 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18935 prepare_to_resume.
18936 * server.c (debug_hw_points): New global.
18937 (monitor_show_help): Document set debug-hw-points.
18938 (handle_query): Process "set debug-hw-points".
18939 * server.h (debug_hw_points): Declare.
18940 (paddress): Declare.
18941 * utils.c (NUMCELLS, CELLSIZE): New macros.
18942 (get_sell, xsnprintf, paddress): New functions.
18943 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18944 remove_point, stopped_by_watchpoint, stopped_data_address.
18945 * win32-i386-low.c: Include i386-low.h.
18946 (debug_reg_state): Replaces dr.
18947 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18948 (i386_dr_low_get_status): New function.
18949 (i386_insert_point, i386_remove_point): New functions.
18950 (i386_stopped_by_watchpoint): New function.
18951 (i386_stopped_data_address): New function.
18952 (i386_initial_stuff): Update.
18953 (get_thread_context,set_thread_context,i386_thread_added): Update.
18954 (the_low_target): Add entries for insert_point,
18955 remove_point, stopped_by_watchpoint, stopped_data_address.
18956 * win32-low.c (win32_insert_watchpoint): New function.
18957 (win32_remove_watchpoint): New function.
18958 (win32_stopped_by_watchpoint): New function.
18959 (win32_stopped_data_address): New function.
18960 (win32_target_ops): Add entries for insert_watchpoint,
18961 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18962 * win32-low.h (win32_target_ops): New members insert_point,
18963 remove_point, stopped_by_watchpoint, stopped_data_address.
18964
d993e290
PA
189652009-06-25 Pedro Alves <pedro@codesourcery.com>
18966
18967 * server.c (process_serial_event): Re-return unsupported, not
18968 error, if the type isn't recognized. Re-allow supporting only
18969 insert or remove packets. Also call require_running for
18970 breakpoints. Add missing break statement to default case. Tidy.
18971 * target.h (struct target_ops): Rename insert_watchpoint to
18972 insert_point, and remove_watchpoint to remove_point.
18973
18974 * linux-low.h (struct linux_target_ops): Likewise.
18975 * linux-low.c (linux_insert_watchpoint): Rename to ...
18976 (linux_insert_point): ... this. Adjust.
18977 (linux_remove_watchpoint): Rename to ...
18978 (linux_remove_point): ... this. Adjust.
18979 (linux_target_ops): Adjust.
18980 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18981 (cris_insert_point): ... this.
18982 (cris_remove_watchpoint): Rename to ...
18983 (cris_remove_point): ... this.
18984 (the_low_target): Adjust.
18985
0f54c268
PM
189862009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18987
18988 * server.c (handle_v_kill): Pass signal_pid to
18989 kill_inferior if multi_process is zero.
18990
c6314022
AR
189912009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18992
18993 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18994 * target.h (target_ops): Comment for *_watchpoint to make it clear
18995 the functions can get types '0' and '1'.
18996
4463ce24
AR
189972009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18998
18999 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19000 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19001 * regcache.c (get_regcache): Likewise.
19002 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19003 * win32-low.c (child_fetch_inferior_registers): Remove check for
19004 regno 0.
19005
cf8fd78b
PA
190062009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19007 Pedro Alves <pedro@codesourcery.com>
19008
19009 * target.h (struct target_ops) <supports_multi_process>: New
19010 callback.
19011 (target_supports_multi_process): New.
19012 * server.c (handle_query): Even if GDB reports support, only
19013 enable multi-process if the target also supports it. Report
19014 multi-process support only if the target backend supports it.
19015 * linux-low.c (linux_supports_multi_process): New function.
19016 (linux_target_ops): Install it as target_supports_multi_process
19017 callback.
19018
47c0c975
DE
190192009-05-24 Doug Evans <dje@google.com>
19020
e09875d4
DE
19021 Global renaming of find_thread_pid to find_thread_ptid.
19022 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19023 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19024 All callers updated.
19025
e27d73f6
DE
19026 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19027 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19028 directly.
19029
47c0c975
DE
19030 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19031 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19032 (linux_resume_one_lwp): Ditto.
19033
2acc282a
DE
190342009-05-23 Doug Evans <dje@google.com>
19035
19036 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19037 from struct inferior_list_entry * to struct lwp_info *.
19038 All callers updated.
19039
9f1036c1
DE
190402009-05-13 Doug Evans <dje@google.com>
19041
19042 * linux-x86-low.c: Don't include assert.h.
19043 (x86_siginfo_fixup): Use fatal, not assert.
19044 (x86_arch_setup): Fix comment.
19045
d0722149
DE
190462009-05-12 Doug Evans <dje@google.com>
19047
19048 Biarch support for i386/amd64 gdbserver.
19049 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19050 Add linux-x86-low.c.
19051 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19052 (linux-x86-low.o): Add.
19053 * linux-x86-64-low.c: Delete.
19054 * linux-i386-low.c: Delete.
19055 * linux-x86-low.c: New file.
19056 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19057 linux-x86-low.o.
19058 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19059 linux-x86-low.o.
19060 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19061 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19062 (linux_child_pid_to_exec_file): New function.
19063 (elf_64_header_p, elf_64_file_p): New functions.
19064 (siginfo_fixup): New function.
19065 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19066 give target a chance to convert layout.
19067 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19068 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19069
fdeb2a12
DE
190702009-05-07 Doug Evans <dje@google.com>
19071
19072 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19073 (regsets_store_inferior_registers): Ditto.
19074
a6dbe5df
PA
190752009-05-06 Pedro Alves <pedro@codesourcery.com>
19076
19077 PR server/10048
19078
19079 * linux-low.c (must_set_ptrace_flags): Delete.
19080 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19081 of the global.
19082 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19083 `lwp->must_set_ptrace_flags' instead.
ba42693b 19084 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19085 (linux_wait_1): ... not here.
19086
5091eb23
DE
190872009-04-30 Doug Evans <dje@google.com>
19088
9f767825
DE
19089 * inferiors.c (started_inferior_callback): New function.
19090 (attached_inferior_callback): New function.
19091 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19092 * server.c (print_started_pid, print_attached_pid): New functions.
19093 (detach_or_kill_for_exit): New function.
19094 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19095 * server.h (have_started_inferiors_p): Declare.
19096 (have_attached_inferiors_p): Declare.
19097
5091eb23
DE
19098 * inferiors.c (remove_process): Fix memory leak, free process.
19099 * linux-low.c (linux_remove_process): New function.
19100 (linux_kill): Call it instead of remove_process.
19101 (linux_detach, linux_wait_1): Ditto.
19102
155c8968
PA
191032009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19104
19105 * configure.srv: Add x86 Windows CE target.
19106
7fe519cb
UW
191072009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19108
19109 * inferiors.c (get_thread_process): Make global.
19110 * server.h (get_thread_process): Add prototype.
19111 * thread-db.c (find_one_thread): Use get_thread_process
19112 instead of current_process.
19113 (thread_db_get_tls_address): Do not crash if called when
19114 thread layer is not yet initialized.
19115
5472f405
UW
191162009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19117
19118 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19119 * spu-low.c (current_tid): Rename to ...
19120 (current_ptid): ... this.
19121 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19122 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19123 ptid_get_lwp (current_ptid) instead of current_tid.
19124 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19125 instead of current_tid. Use find_process_pid to verify pid
19126 argument is valid. Pass proper argument to remove_process.
19127 (spu_thread_alive): Compare current_ptid instead of current_tid.
19128 (spu_resume): Likewise.
19129
55ac2b99
PA
191302009-04-02 Pedro Alves <pedro@codesourcery.com>
19131
19132 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19133 variable.
19134
95954743
PA
191352009-04-01 Pedro Alves <pedro@codesourcery.com>
19136
19137 Implement the multiprocess extensions, and add linux multiprocess
19138 support.
19139
19140 * server.h (ULONGEST): Declare.
19141 (struct ptid, ptid_t): New.
19142 (minus_one_ptid, null_ptid): Declare.
19143 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19144 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19145 (struct inferior_list_entry): Change `id' type from unsigned from
19146 to ptid_t.
19147 (struct sym_cache, struct breakpoint, struct
19148 process_info_private): Forward declare.
19149 (struct process_info): Declare.
19150 (current_process): Declare.
19151 (all_processes): Declare.
19152 (initialize_inferiors): Declare.
19153 (add_thread): Adjust to use ptid_t.
19154 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19155 (add_process, remove_process, find_thread_pid): Declare.
19156 (find_inferior_id): Adjust to use ptid_t.
19157 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19158 (multi_process): Declare.
19159 (push_event): Adjust to use ptid_t.
19160 (read_ptid, write_ptid): Declare.
19161 (prepare_resume_reply): Adjust to use ptid_t.
19162 (clear_symbol_cache): Declare.
19163 * inferiors.c (all_processes): New.
19164 (null_ptid, minus_one_ptid): New.
19165 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19166 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19167 (add_thread): Change unsigned long to ptid. Remove gdb_id
19168 parameter. Adjust.
19169 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19170 (gdb_id_to_thread): Rename to ...
19171 (find_thread_pid): ... this. Change unsigned long to ptid.
19172 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19173 (loaded_dll, pull_pid_from_list): Adjust.
19174 (add_process, remove_process, find_process_pid)
19175 (get_thread_process, current_process, initialize_inferiors): New.
19176 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19177 (struct target_waitstatus) <related_pid>: Ditto.
19178 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19179 return type to int.
19180 (struct target_ops) <join>: Add `pid' argument.
19181 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19182 (struct target_ops) <wait>: Add `ptid' field. Change return type
19183 to ptid.
19184 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19185 (mywait): Add `ptid' argument. Change return type to ptid_t.
19186 (target_pid_to_str): Declare.
19187 * target.c (set_desired_inferior): Adjust to use ptids.
19188 (mywait): Add new `ptid' argument. Adjust.
19189 (target_pid_to_str): New.
19190 * mem-break.h (free_all_breakpoints): Declare.
19191 * mem-break.c (breakpoints): Delelete.
19192 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19193 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19194 to use per-process breakpoint list.
19195 (free_all_breakpoints): New.
19196 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19197 (symbol_cache, all_symbols_looked_up): Delete.
19198 (hexchars): New.
19199 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19200 read_ptid): New.
19201 (prepare_resume_reply): Change ptid argument's type from unsigned
19202 long to ptid_t. Adjust. Implement W;process and X;process.
19203 (free_sym_cache, clear_symbol_cache): New.
19204 (look_up_one_symbol): Adjust to per-process symbol cache. *
19205 * server.c (cont_thread, general_thread, step_thread): Change type
19206 to ptid_t.
19207 (attached): Delete.
19208 (multi_process): New.
19209 (last_ptid): Change type to ptid_t.
19210 (struct vstop_notif) <ptid>: Change type to ptid_t.
19211 (queue_stop_reply, push_event): Change `ptid' argument's type to
19212 ptid_t.
19213 (discard_queued_stop_replies): Add `pid' argument.
19214 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19215 changes. Don't reference the `attached' global.
19216 (attach_inferior): Adjust to mywait interface changes.
19217 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19218 features. Handle and report "multiprocess+". Handle
19219 "qAttached:PID".
19220 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19221 changes.
19222 (handle_v_kill): New.
19223 (handle_v_stopped): Adjust to use target_pid_to_str.
19224 (handle_v_requests): Allow multiple attaches and runs when
19225 multiprocess extensions are in effect. Handle "vKill".
19226 (myresume): Adjust to use ptids.
19227 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19228 (handle_status): Adjust to discard_queued_stop_replies interface
19229 change.
19230 (first_thread_of, kill_inferior_callback)
19231 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19232 (main): Call initialize_inferiors. Adjust to use ptids, killing
19233 and detaching from all inferiors. Handle multiprocess packet
19234 variants.
19235 * linux-low.h: Include gdb_proc_service.h.
19236 (struct process_info_private): New.
19237 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19238 <lwpid_of>: Use ptid_get_lwp.
19239 (get_lwp_thread): Adjust.
19240 (struct lwp_info): Add `dead' member.
19241 (find_lwp_pid): Declare.
19242 * linux-low.c (thread_db_active): Delete.
19243 (new_inferior): Adjust comment.
19244 (inferior_pid): Delete.
19245 (linux_add_process): New.
19246 (handle_extended_wait): Adjust.
19247 (add_lwp): Change unsigned long to ptid.
19248 (linux_create_inferior): Add process to processes table. Adjust
19249 to use ptids. Don't set new_inferior here.
19250 (linux_attach_lwp): Rename to ...
19251 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19252 it. Adjust to use ptids.
19253 (linux_attach_lwp): New.
19254 (linux_attach): Add process to processes table. Don't set
19255 new_inferior here.
19256 (struct counter): New.
19257 (second_thread_of_pid_p, last_thread_of_process_p): New.
19258 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19259 multiple processes.
19260 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19261 processes. Remove process from process table.
19262 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19263 to multiple processes.
19264 (any_thread_of): New.
19265 (linux_detach): Add `pid' argument, and handle it. Remove process
19266 from processes table.
19267 (linux_join): Add `pid' argument. Handle it.
19268 (linux_thread_alive): Change unsighed long argument to ptid_t.
19269 Consider dead lwps as not being alive.
19270 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19271 threads we're not interested in.
19272 (same_lwp, find_lwp_pid): New.
19273 (linux_wait_for_lwp): Change `pid' argument's type from int to
19274 ptid_t. Adjust.
19275 (linux_wait_for_event): Rename to ...
19276 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19277 from int to ptid_t. Adjust.
19278 (linux_wait_for_event): New.
19279 (linux_wait_1): Add `ptid' argument. Change return type to
19280 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19281 that exit from the process table.
19282 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19283 Adjust.
19284 (mark_lwp_dead): New.
19285 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19286 stopping all threads, mark its main lwp as dead.
19287 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19288 ptids.
19289 (fetch_register, usr_store_inferior_registers)
19290 (regsets_fetch_inferior_registers)
19291 (regsets_store_inferior_registers, linux_read_memory)
19292 (linux_write_memory): Inline `inferior_pid'.
19293 (linux_look_up_symbols): Adjust to use per-process
19294 `thread_db_active'.
19295 (linux_request_interrupt): Adjust to use ptids.
19296 (linux_read_auxv): Inline `inferior_pid'.
19297 (initialize_low): Don't reference thread_db_active.
19298 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19299 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19300 (ps_getpid): Return the pid of the current inferior.
19301 * thread-db.c (proc_handle, thread_agent): Delete.
19302 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19303 per-process data.
19304 (find_one_thread): Change argument type to ptid_t. Adjust to
19305 per-process data.
19306 (maybe_attach_thread): Adjust to per-process data and ptids.
19307 (thread_db_find_new_threads): Ditto.
19308 (thread_db_init): Ditto.
19309 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19310 processes table. Adjust to use ptids.
19311 (spu_kill, spu_detach): Adjust interface. Remove process from
19312 processes table.
19313 (spu_join, spu_thread_alive): Adjust interface.
19314 (spu_wait): Adjust interface. Remove process from processes
19315 table. Adjust to use ptids.
19316 * win32-low.c (current_inferior_tid): Delete.
19317 (current_inferior_ptid): New.
19318 (debug_event_ptid): New.
19319 (thread_rec): Take a ptid. Adjust.
19320 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19321 (child_delete_thread): Ditto.
19322 (do_initial_child_stuff): Add `attached' argument. Add process to
19323 processes table.
19324 (child_fetch_inferior_registers, child_store_inferior_registers):
19325 Adjust.
19326 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19327 (win32_attach): Pass 1 to do_initial_child_stuff.
19328 (win32_kill): Adjust interface. Remove process from processes
19329 table.
19330 (win32_detach): Ditto.
19331 (win32_join): Adjust interface.
19332 (win32_thread_alive): Take a ptid.
19333 (win32_resume): Adjust to use ptids.
19334 (get_child_debug_event): Ditto.
19335 (win32_wait): Adjust interface. Remove exiting process from
19336 processes table.
19337
bd99dc85
PA
193382009-04-01 Pedro Alves <pedro@codesourcery.com>
19339
19340 Non-stop mode support.
19341
19342 * server.h (non_stop): Declare.
19343 (gdb_client_data, handler_func): Declare.
19344 (delete_file_handler, add_file_handler, start_event_loop):
19345 Declare.
19346 (handle_serial_event, handle_target_event, push_event)
19347 (putpkt_notif): Declare.
19348 * target.h (enum resume_kind): New.
19349 (struct thread_resume): Replace `step' field by `kind' field.
19350 (TARGET_WNOHANG): Define.
19351 (struct target_ops) <wait>: Add `options' argument.
19352 <supports_non_stop, async, start_non_stop>: New fields.
19353 (target_supports_non_stop, target_async): New.
19354 (start_non_stop): Declare.
19355 (mywait): Add `options' argument.
19356 * target.c (mywait): Add `options' argument. Print child exit
19357 notifications here.
19358 (start_non_stop): New.
19359 * server.c (non_stop, own_buf, mem_buf): New globals.
19360 (struct vstop_notif): New.
19361 (notif_queue): New global.
19362 (queue_stop_reply, push_event, discard_queued_stop_replies)
19363 (send_next_stop_reply): New.
19364 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19365 interface changes.
19366 (attach_inferior): In non-stop mode, don't wait for the target
19367 here.
19368 (handle_general_set): Handle QNonStop.
19369 (handle_query): When handling qC, return the current general
19370 thread, instead of the first thread of the list.
19371 (handle_query): If the backend supports non-stop mode, include
19372 QNonStop+ in the qSupported query response.
19373 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19374 and non-stop mode.
19375 (handle_v_attach, handle_v_run): Handle non-stop mode.
19376 (handle_v_stopped): New.
19377 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19378 (myresume): Adjust to use resume_kind. Handle non-stop.
19379 (queue_stop_reply_callback): New.
19380 (handle_status): Handle non-stop mode.
19381 (main): Clear non_stop flag on reconnection. Use the event-loop.
19382 Refactor serial protocol handling from here ...
19383 (process_serial_event): ... to this new function. When GDB
19384 selects any thread, select one here. In non-stop mode, wait until
19385 GDB acks all pending events before exiting.
19386 (handle_serial_event, handle_target_event): New.
19387 * remote-utils.c (remote_open): Install remote_desc in the event
19388 loop.
19389 (remote_close): Remove remote_desc from the event loop.
19390 (putpkt_binary): Rename to...
19391 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19392 (putpkt_binary): New as wrapper around putpkt_binary_1.
19393 (putpkt_notif): New.
19394 (prepare_resume_reply): In non-stop mode, don't change the
19395 general_thread.
19396 * event-loop.c: New.
19397 * Makefile.in (OBJ): Add event-loop.o.
19398 (event-loop.o): New rule.
19399
19400 * linux-low.h (pid_of): Moved here.
19401 (lwpid_of): New.
19402 (get_lwp_thread): Use lwpid_of.
19403 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19404 * linux-low.c (pid_of): Delete.
19405 (inferior_pid): Use lwpid_of.
19406 (linux_event_pipe): New.
19407 (target_is_async_p): New.
19408 (delete_lwp): New.
19409 (handle_extended_wait): Use lwpid_of.
19410 (add_lwp): Don't set lwpid field.
19411 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19412 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19413 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19414 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19415 first. Adjust to linux_wait_for_event interface changes. Use
19416 lwpid_of.
19417 (linux_detach): Don't delete the main lwp here.
19418 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19419 (status_pending_p): Don't consider explicitly suspended lwps.
19420 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19421 pointer. Add OPTIONS argument. Change return type to int. Use
19422 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19423 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19424 pointer. Add status pointer argument. Return a pid instead of a
19425 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19426 changes. In non-stop mode, don't switch to a random thread.
19427 (linux_wait): Rename to...
19428 (linux_wait_1): ... this. Add target_options argument, and handle
19429 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19430 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19431 clean exit and signal exit code. Don't stop all threads in
19432 non-stop mode. In all-stop mode, only stop all threads when
19433 reporting a stop to GDB. Handle explicit thread stop requests.
19434 (async_file_flush, async_file_mark): New.
19435 (linux_wait): New.
19436 (send_sigstop): Use lwpid_of.
19437 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19438 interface changes. In non-stop mode, don't switch to a random
19439 thread.
19440 (linux_resume_one_lwp): Use lwpid_of.
19441 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19442 (linux_resume_one_thread): ... this. Handle resume_stop. In
19443 non-stop mode, don't look for pending flag in all threads.
19444 (resume_status_pending_p): Don't consider explicitly suspended
19445 threads.
19446 (my_waitpid): Reimplement. Emulate __WALL.
19447 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19448 Use lwpid_of.
19449 (sigchld_handler, linux_supports_non_stop, linux_async)
19450 (linux_start_non_stop): New.
19451 (linux_target_ops): Register linux_supports_non_stop, linux_async
19452 and linux_start_non_stop.
19453 (initialize_low): Install SIGCHLD handler.
19454 * thread-db.c (thread_db_create_event, find_one_thread)
19455 (thread_db_get_tls_address): Use lwpid_of.
19456 * win32-low.c (win32_detach): Adjust to use resume_kind.
19457 (win32_wait): Add `options' argument.
19458 * spu-low.c (spu_resume): Adjust to use resume_kind.
19459 (spu_wait): Add `options' argument.
19460
5b1c542e
PA
194612009-04-01 Pedro Alves <pedro@codesourcery.com>
19462
19463 Decouple target code from remote protocol.
19464
19465 * target.h (enum target_waitkind): New.
19466 (struct target_waitstatus): New.
19467 (struct target_ops) <wait>: Return an unsigned long. Take a
19468 target_waitstatus pointer instead of a char pointer.
19469 (mywait): Likewise.
19470 * target.c (mywait): Change prototype to return an unsigned long.
19471 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19472 * server.h (thread_from_wait, old_thread_from_wait): Delete
19473 declarations.
19474 (prepare_resume_reply): Change prototype to take a
19475 target_waitstatus.
19476 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19477 (last_status, last_ptid): New.
19478 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19479 pid instead of a signal.
19480 (attach_inferior): Remove "status" and "signal" parameters.
19481 Adjust.
19482 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19483 not as an address.
19484 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19485 (handle_v_requests, myresume): Remove "status" and "signal"
19486 parameters. Adjust.
19487 (handle_status): New.
19488 (main): Delete local `status'. Adjust.
19489 * remote-utils.c: Include target.h.
19490 (prepare_resume_reply): Change prototype to take a
19491 target_waitstatus. Adjust.
19492
19493 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19494 interface.
19495 * spu-low.c (spu_wait): Adjust.
19496 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19497 Delete.
19498 (win32_wait): Adjust.
19499
2bd7c093
PA
195002009-04-01 Pedro Alves <pedro@codesourcery.com>
19501
19502 * target.h (struct thread_resume): Delete leave_stopped member.
19503 (struct target_ops): Add a `n' argument to the `resume' callback.
19504 * server.c (start_inferior): Adjust.
19505 (handle_v_cont, myresume): Adjust.
19506 * linux-low.c (check_removed_breakpoint): Adjust to resume
19507 interface change, and to removed leave_stopped field.
19508 (resume_ptr): Delete.
19509 (struct thread_resume_array): New.
19510 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19511 resume interface change.
19512 (linux_continue_one_thread, linux_queue_one_thread)
19513 (resume_status_pending_p): Check if the resume field is NULL
19514 instead of checking the leave_stopped member.
19515 (linux_resume): Adjust to the target resume interface change.
19516 * spu-low.c (spu_resume): Adjust to the target resume interface
19517 change.
19518 * win32-low.c (win32_detach, win32_resume): Ditto.
19519
c35fafde
PA
195202009-04-01 Pedro Alves <pedro@codesourcery.com>
19521
19522 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19523 flag.
19524 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19525 pending.
19526 (linux_continue_one_thread): Only preserve the stepping flag if
19527 there's a pending breakpoint.
19528
0a59d50b
PA
195292009-03-31 Pedro Alves <pedro@codesourcery.com>
19530
19531 * server.c (main): After the inferior having exited, call
19532 remote_close before exiting gdbserver.
19533
f04c6d38
TJB
195342009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19535
19536 Fix size of FPSCR in Power 7 processors.
19537 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19538 (PPC_FEATURE_HAS_DFP): New #define.
19539 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19540 size of the FPSCR.
19541
78e5cee6
PA
195422009-03-23 Pedro Alves <pedro@codesourcery.com>
19543
19544 * server.c (handle_query) Whitespace and formatting.
19545
1b3f6016
PA
195462009-03-22 Pedro Alves <pedro@codesourcery.com>
19547
19548 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19549 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19550 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19551 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19552 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19553 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19554 Makefile.in, configure.ac: Fix whitespace throughout.
19555 * configure: Regenerate.
19556
a07b2135
PA
195572009-03-22 Pedro Alves <pedro@codesourcery.com>
19558
19559 * inferiors.c (find_inferior): Make it safe for the callback
19560 function to delete the currently iterated inferior.
19561
67cc2626
PA
195622009-03-22 Pedro Alves <pedro@codesourcery.com>
19563
19564 * Makefile.in (linuw_low_h): Move higher.
19565 (thread-db.o): Depend on $(linux_low_h).
19566
54a0b537
PA
195672009-03-17 Pedro Alves <pedro@codesourcery.com>
19568
19569 Rename "process" to "lwp" throughout.
19570
19571 * linux-low.c (all_processes): Rename to...
19572 (all_lwps): ... this.
19573 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19574 (add_process): Rename to ...
19575 (add_lwp): ... this. Adjust.
19576 (linux_create_inferior): Adjust.
19577 (linux_attach_lwp): Adjust.
19578 (linux_attach): Adjust.
19579 (linux_kill_one_process): Rename to ...
19580 (linux_kill_one_lwp): ... this. Adjust.
19581 (linux_kill): Adjust.
19582 (linux_detach_one_process): Rename to ...
19583 (linux_detach_one_lwp): ... this. Adjust.
19584 (linux_detach): Adjust.
19585 (check_removed_breakpoint): Adjust.
19586 (status_pending_p): Adjust.
19587 (linux_wait_for_process): Rename to ...
19588 (linux_wait_for_lwp): ... this. Adjust.
19589 (linux_wait_for_event): Adjust.
19590 (send_sigstop): Adjust.
19591 (wait_for_sigstop): Adjust.
19592 (stop_all_processes): Rename to ...
19593 (stop_all_lwps): ... this.
19594 (linux_resume_one_process): Rename to ...
19595 (linux_resume_one_lwp): ... this. Adjust.
19596 (linux_set_resume_request, linux_continue_one_thread)
19597 (linux_queue_one_thread, resume_status_pending_p)
19598 (usr_store_inferior_registers, regsets_store_inferior_registers)
19599 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19600 Adjust.
19601 * linux-low.h (get_process): Rename to ...
19602 (get_lwp): ... this. Adjust.
19603 (get_thread_process): Rename to ...
19604 (get_thread_lwp): ... this. Adjust.
19605 (get_process_thread): Rename to ...
19606 (get_lwp_thread): ... this. Adjust.
19607 (struct process_info): Rename to ...
19608 (struct lwp_info): ... this.
19609 (all_processes): Rename to ...
19610 (all_lwps): ... this.
19611 * proc-service.c (ps_lgetregs): Adjust.
19612 * thread-db.c (thread_db_create_event, find_one_thread)
19613 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19614
0b16c5cf
PA
196152009-03-14 Pedro Alves <pedro@codesourcery.com>
19616
19617 * server.c (handle_query): Handle "qAttached".
19618
32de4b9d
NS
196192009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19620
19621 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19622 GPLv3, update license URL.
19623
2aecd87f
DE
196242009-03-01 Doug Evans <dje@google.com>
19625
93efd302 19626 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19627 (server_h): Add gdb_signals.h.
19628 (signals.o): Update.
19629 * server.h (target_signal_from_host,target_signal_to_host_p)
19630 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19631
86b1f9c5
PM
196322009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19633
19634 * remote-utils.c (getpkt): Also generate remote-debug
19635 information if noack_mode is set.
19636
4aa995e1
PA
196372009-02-06 Pedro Alves <pedro@codesourcery.com>
19638
19639 * server.c (handle_query): Report qXfer:siginfo:read and
19640 qXfer:siginfo:write as supported and handle them.
19641 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19642 * linux-low.c (linux_xfer_siginfo): New.
19643 (linux_target_ops): Set it.
19644
62709adf
PA
196452009-01-26 Pedro Alves <pedro@codesourcery.com>
19646
19647 * server.c (gdbserver_usage): Mention --remote-debug.
19648 (main): Accept '--remote-debug' switch.
19649
aef93bd7
DE
196502009-01-18 Doug Evans <dje@google.com>
19651
19652 * regcache.c (new_register_cache): No need to check result of xcalloc.
19653 * server.c (handle_search_memory): Back out calls to xmalloc,
19654 result is checked and error is returned to user upon failure.
19655 (handle_query): Ditto. Add more checks for result of malloc.
19656 (handle_v_cont): Check result of malloc, report error back to
19657 user upon failure.
19658 (handle_v_run): Ditto. Call freeargv.
19659 * server.h (freeargv): Declare.
19660 * utils.c (freeargv): New fn.
19661
54363045
DE
196622009-01-15 Doug Evans <dje@google.com>
19663
f626972c
DE
19664 * gdbreplay.c (perror_with_name): Make arg const char *.
19665 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19666 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19667 * utils.c (perror_with_name): Make arg const char *.
54363045 19668
18aae699
PA
196692009-01-14 Pedro Alves <pedro@codesourcery.com>
19670
19671 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19672 when handling a EXIT_PROCESS_DEBUG_EVENT.
19673
ff703abe
JB
196742009-01-06 Joel Brobecker <brobecker@adacore.com>
19675
19676 * gdbreplay.c (gdbreplay_version): Update copyright year.
19677 * server.c (gdbserver_version): Likewise.
19678
f21cc1a2 196792009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19680
19681 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19682 (handle_extended_wait): Improve comment.
0e21c1ec 19683
bca929d3
DE
196842008-12-13 Doug Evans <dje@google.com>
19685
19686 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19687 * server.h (ATTR_MALLOC): New macro.
19688 (xmalloc,xcalloc,xstrdup): Declare.
19689 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19690 * inferiors.c: Ditto.
19691 * linux-low.c: Ditto.
19692 * mem-break.c: Ditto.
19693 * regcache.c: Ditto.
19694 * remote-utils.c: Ditto.
19695 * server.c: Ditto.
19696 * target.c: Ditto.
19697 * win32-low.c: Ditto.
19698
97438e3f
DE
196992008-12-12 Doug Evans <dje@google.com>
19700
896c7fbb
DE
19701 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19702 in debugging printf.
19703
97438e3f
DE
19704 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19705
e3b886f8
DE
197062008-12-09 Doug Evans <dje@google.com>
19707
19708 * linux-low.h (struct process_info): Delete member tid, unused.
19709 * thread-db.c (find_one_thread): Update.
19710 (maybe_attach_thread): Update.
19711
07e059b5
VP
197122008-12-02 Pedro Alves <pedro@codesourcery.com>
19713
889bf7c5
PA
19714 * target.h (struct target_ops): Add qxfer_osdata member.
19715 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19716 and dirent.h.
19717 (linux_qxfer_osdata): New functions.
19718 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19719 callback.
19720 * server.c (handle_query): Handle "qXfer:osdata:read:".
19721 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19722 (buffer_xml_printf): New functions.
19723 * server.h (struct buffer): New.
19724 (buffer_grow_str, buffer_grow_str0): New macros.
19725 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19726 (buffer_xml_printf): Declare.
07e059b5 19727
4cab47ab
DE
197282008-11-24 Doug Evans <dje@google.com>
19729
19730 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19731
f142445f
DJ
197322008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19733
19734 * server.c (handle_v_run): Always use the supplied argument list.
19735
d0107bb6 197362008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19737
d0107bb6
BW
19738 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19739 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19740
2c4ad781
TJB
197412008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19742
19743 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19744 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19745 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19746 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19747 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19748 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19749 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19750 XML target descriptions.
19751 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19752 when inferior is running on an ISA 2.05 or later processor. Add
19753 special case to return offset for full 64-bit slot of FPSCR when
19754 in 32-bits.
19755
dfb64f85
DJ
197562008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19757
19758 * Makefile.in (SFILES, clean): Added sparc64 files.
19759 (reg-sparc64.o, reg-sparc64.c): New.
19760 * configure.srv (sparc*-*-linux*): New configuration.
19761 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19762 syscall arguments for SPARC.
19763 (regsets_store_inferior_registers): Likewise.
19764 * linux-sparc-low.c: New file.
19765
66b6e1dd
DE
197662008-10-21 Doug Evans <dje@google.com>
19767
19768 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19769 (READLINE_DIR,READLINE_DEP): Delete.
19770 (INTERNAL_CFLAGS): Update.
19771 (LINTFLAGS): Update.
19772
9b710a42
PA
197732008-10-10 Pedro Alves <pedro@codesourcery.com>
19774
19775 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19776 whole argv from the last run, not just argv[0].
19777
5822d809
PA
197782008-09-08 Pedro Alves <pedro@codesourcery.com>
19779
19780 * regcache.c (new_register_cache): Return NULL if the register
19781 cache size isn't known yet.
19782 (free_register_cache): Avoid dereferencing a NULL regcache.
19783
74aac56f
DJ
197842008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19785
19786 * configure.srv: Merge MIPS and MIPS64.
19787
400b20f5
MR
197882008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19789
19790 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19791
677c5bb1
LM
197922008-08-18 Luis Machado <luisgpm@br.ibm.com>
19793
19794 * Makefile.in: Add required vsx dependencies.
19795
19796 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19797 Declare init_registers_powerpc_vsx32l.
19798 Declare init_registers_powerpc_vsx64l.
19799 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19800 (ppc_arch_setup): Check for VSX in hwcap.
19801 (ppc_fill_vsxregset): New function.
19802 (ppc_store_vsxregset): New function.
19803 Add new VSX entry in regset_info target_regsets.
19804
19805 * configure.srv: Add new VSX dependencies.
19806
a6f3e723
SL
198072008-08-12 Pedro Alves <pedro@codesourcery.com>
19808
19809 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19810 (remote_open): Set or clear transport_is_reliable.
19811 (putpkt_binary): Don't expect acks in noack mode.
19812 (getpkt): Don't send ack/nac in noack mode.
19813 * server.c (handle_general_set): Handle QStartNoAckMode.
19814 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19815 qSupported.
19816 (main): Reset noack_mode on every connection.
19817 * server.h (noack_mode): Declare.
19818
a417dc56
RW
198192008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19820
19821 * Makefile.in (GDBREPLAY_OBS): New variable.
19822 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19823
3221518c
UW
198242008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19825 Daniel Jacobowitz <dan@codesourcery.com>
19826
19827 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19828 (usr_store_inferior_registers): Likewise.
19829 (regsets_store_inferior_registers): Likewise.
19830
ec56be1b
PA
198312008-07-31 Rolf Jansen <rj@surtec.com>
19832 Pedro Alves <pedro@codesourcery.com>
19833
19834 * configure.ac: Check for memmem declaration.
19835 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19836 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19837 (disable_packet_qfThreadInfo): Unconditionally compile.
19838 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19839 * configure, config.in: Regenerate.
19840
2fe5e3ff
DE
198412008-07-28 Doug Kwan <dougkwan@google.com>
19842
19843 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19844 (linux_write_memory): Remove declaration of errno.
19845
836acd6d
UW
198462008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19847
19848 * linux-low.c (handle_extended_wait): Do not use "status"
19849 variable uninitialized.
19850
aeba519e
PA
198512008-07-07 Pedro Alves <pedro@codesourcery.com>
19852
19853 * server.c (handle_v_attach): Inhibit reporting dll changes.
19854
db42f210
PA
198552008-06-27 Pedro Alves <pedro@codesourcery.com>
19856
19857 * remote-utils.c (prepare_resume_reply): If requested, don't
19858 output "thread:TID" in the T stop reply.
19859
19860 * server.c (disable_packet_vCont, disable_packet_Tthread)
19861 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19862 (handle_query): If requested, disable support for qC, qfThreadInfo
19863 and qsThreadInfo.
19864 (handle_v_requests): If requested, disable support for vCont.
19865 (gdbserver_show_disableable): New.
19866 (main): Handle --disable-packet and --disable-packet=LIST.
19867
19868 * server.h (disable_packet_vCont, disable_packet_Tthread)
19869 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19870
8e4c5421
CD
198712008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19872
19873 * server.c (gdbserver_usage): Mention --version.
19874
6e23a804
DJ
198752008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19876
19877 * Makefile.in (gdbreplay.o): New rule.
19878
90aa6a40
JM
198792008-06-06 Joseph Myers <joseph@codesourcery.com>
19880
19881 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19882 message, not gdbserver.
19883
c16158bc 198842008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19885 Nathan Sidwell <nathan@codesourcery.com>
19886 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19887
19888 * acinclude.m4: Include ../../config/acx.m4.
19889 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19890 * configure, config.in: Regenerate.
19891 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19892 * server.c (gdbserver_version): Print PKGVERSION.
19893 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19894 (main): Adjust gdbserver_usage calls.
19895 * gdbreplay.c (version, host_name): Add declarations.
19896 (gdbreplay_version, gdbreplay_usage): New.
19897 (main): Accept --version and --help options.
19898
aeb75bf5
DJ
198992008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19900
19901 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19902 (arm_breakpoint_at): Handle Thumb.
19903 (the_low_target): Add comment.
19904
76b233dd
UW
199052008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19906
19907 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19908
08388c79
DE
199092008-05-09 Doug Evans <dje@google.com>
19910
a3c83fae
DE
19911 * server.h (decode_search_memory_packet): Declare.
19912 * remote-utils.c (decode_search_memory_packet): New fn.
19913 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19914 (handle_search_memory): New fn.
19915 (handle_query): Process qSearch:memory packets.
19916
bb9c3d36
UW
199172008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19918
19919 * regcache.c (registers_length): Remove.
19920 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19921 full register packet.
19922 * regcache.h (registers_length): Remove prototype.
19923 * server.h (PBUFSIZ): Define to 16384.
19924
7284e1be
UW
199252008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19926
19927 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19928 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19929 powerpc-64l.o, and powerpc-altivec64l.o.
19930 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19931 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19932 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19933 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19934 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19935 to srv_xmlfiles.
19936
19937 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19938 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19939 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19940 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19941 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19942 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19943 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19944 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19945 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19946 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19947 (clean): Update.
19948
19949 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19950 (init_registers_powerpc_32l): ... this new prototype.
19951 (init_registers_powerpc_32): Remove, replace by ...
19952 (init_registers_powerpc_altivec32l): ... this new prototype.
19953 (init_registers_powerpc_e500): Remove, replace by ...
19954 (init_registers_powerpc_e500l): ... this new prototype.
19955 (init_registers_ppc64): Remove, replace by ...
19956 (init_registers_powerpc_64l): ... this new prototype.
19957 (init_registers_powerpc_64): Remove, replace by ...
19958 (init_registers_powerpc_altivec64l): ... this new prototype.
19959 (ppc_num_regs): Set to 73.
19960 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19961 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19962 (ppc_cannot_store_register): Handle orig_r3 and trap.
19963 (ppc_arch_setup): Update init_registers_... calls.
19964 (ppc_fill_gregset): Handle orig_r3 and trap.
19965
19966 * inferiors.c (clear_inferiors): Reset current_inferior.
19967
fdc59709
PB
199682008-04-23 Paolo Bonzini <bonzini@gnu.org>
19969
889bf7c5
PA
19970 * acinclude.m4: Add override.m4.
19971 * configure: Regenerate.
fdc59709 19972
c9b2f845
UW
199732008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19974
19975 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19976 initial call to init_register_ppc64.
19977
550512b8
UW
199782008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19979
43aaf8b6
PA
19980 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19981 single powerpc*-*-linux* case.
550512b8
UW
19982 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19983
b6430ec3
UW
199842008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19985
19986 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19987 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19988 from reg_xmlfiles.
19989 * linux-ppc-low.c: Include <elf.h>.
19990 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19991 (ppc_hwcap): New global variable.
19992 (ppc_regmap): Remove __SPE__ #ifdef sections.
19993 (ppc_regmap_e500): New global variable.
19994 (ppc_cannot_store_register): Update __SPE__ special case.
19995 (ppc_get_hwcap): New function.
19996 (ppc_arch_setup): Use it to determine whether inferior supports
19997 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19998 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19999 Do not access registers if target does not support AltiVec.
20000 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20001 Do not access registers if target does not support SPE.
20002 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20003
52fa2412
UW
200042008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20005
20006 * linux-low.c (disabled_regsets, num_regsets): New.
20007 (use_regsets_p): Delete.
20008 (linux_wait_for_process): Clear disabled_regsets.
20009 (regsets_fetch_inferior_registers): Check and set it.
20010 (regsets_store_inferior_registers): Likewise.
20011 (linux_fetch_registers, linux_store_registers): Do not use
20012 use_regsets_p.
20013 (initialize_low): Allocate disabled_regsets.
20014
e28b3332
DJ
200152008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20016
20017 * Makefile.in (LIBOBJS): New.
20018 (OBS): Use LIBOBJS.
20019 (memmem.o): New rule.
20020 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20021 * configure: Regenerated.
20022
4536995d
UW
200232008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20024
20025 * server.c (handle_query): Never return "unsupported" for
20026 qXfer:features:read queries.
20027
221c031f
UW
200282008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20029
20030 * server.c (get_features_xml): Fix inverted condition.
20031 (handle_query): Always support qXfer:feature:read.
20032
ccd213ac
DJ
200332008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20034
20035 * server.c (wrapper_argv): New.
20036 (start_inferior): Handle wrapper_argv. If set, expect an extra
20037 trap.
20038 (gdbserver_usage): Document --wrapper.
20039 (main): Parse --wrapper.
20040
6fe305f7
UW
200412008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20042
20043 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20044 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20045 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20046 (ppc_set_pc): Likewise.
20047 (ppc_arch_setup): New function.
20048 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20049 of collect_register.
889bf7c5 20050 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20051
5b0a002e
UW
200522008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20053
20054 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20055 instead of linux-ppc64-low.o.
20056 * linux-ppc64-low.c: Remove file.
20057 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20058 (linux-ppc64-low.o): Remove rule.
20059
20060 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20061 (init_registers_powerpc_64): Likewise.
20062 (ppc_regmap): Conditionally define depending on __powerpc64__.
20063 (ppc_cannot_store_register): Do not special-case "fpscr" when
20064 compiled on __powerpc64__.
20065 (ppc_collect_ptrace_register): New function.
20066 (ppc_supply_ptrace_register): New function.
20067 (ppc_breakpoint): Change type to "unsigned int".
20068 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20069 (the_low_target): Conditionally provide initializers for the
889bf7c5 20070 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20071 collect_ptrace_register and supply_ptrace_register members.
20072
9b4b61c8
UW
200732008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20074
20075 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20076 * server.c (gdbserver_xmltarget): Define.
20077 (get_features_xml): Use it to replace "target.xml" and arch_string.
20078
20079 * configure.srv: Remove srv_xmltarget. Add XML files that were
20080 mentioned there to srv_xmlfiles instead. Remove conditional tests
20081 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20082 srv_xmlfiles and srv_regobj to include all possible choices.
20083 * configure.ac (srv_xmltarget): Remove.
20084 (srv_xmlfiles): Do not add "target.xml".
20085 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20086 checks for supplementary target information.
20087 * configure: Regenerate.
20088 * Makefile.in (XML_TARGET): Remove.
20089 (target.xml): Remove rule.
20090 (clean): Do not clean up target.xml.
20091 (.PRECIOUS): Do not mention target.xml.
20092
20093 * target.h (struct target_ops): Remove arch_string member.
20094 * linux-low.c (linux_arch_string): Remove.
20095 (linux_target_ops): Remove arch_string initializer.
20096 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20097 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20098 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20099 * spu-low.c (spu_arch_string): Remove.
20100 (spu_target_ops): Remove arch_string initializer.
20101 * win32-low.c (win32_arch_string): Remove.
20102 (win32_target_ops): Remove arch_string initializer.
20103 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20104 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20105 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20106
ee1a7ae4
UW
201072008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20108
20109 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20110 by collect_ptrace_register and supply_ptrace_register hooks.
20111 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20112 instead of checking for the_low_target.left_pad_xfer.
20113 (usr_store_inferior_registers): Use collect_ptrace_register callback
20114 instead of checking for the_low_target.left_pad_xfer.
20115
20116 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20117 (s390_supply_ptrace_register): Likewise.
20118 (s390_fill_gregset): Call s390_collect_ptrace_register.
20119 (the_low_target): Update.
20120
20121 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20122 (ppc_supply_ptrace_register): Likewise.
20123 (the_low_target): Update.
20124
20125 * linux-i386-low.c (the_low_target): Update.
20126 * linux-x86-64-low.c (the_low_target): Update.
20127
d61ddec4
UW
201282008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20129
20130 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20131 reg-s390.o and reg-s390x.o.
20132
20133 * linux-low.c (new_inferior): New global variable.
20134 (linux_create_inferior, linux_attach): Set it.
20135 (linux_wait_for_process): Call the_low_target.arch_setup after the
20136 target has stopped for the first time.
20137 (initialize_low): Do not call the_low_target.arch_setup.
20138
20139 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20140 (s390_set_pc): Likewise.
20141 (s390_arch_setup): New function.
20142 (the_low_target): Use s390_arch_setup as arch_setup routine.
20143
20144 * regcache.c (realloc_register_cache): New function.
20145 (set_register_cache): Call it for each existing regcache.
20146
d05b4ac3
UW
201472008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20148
20149 * server.h (init_registers): Remove prototype.
20150
20151 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20152 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20153 instead of init_registers ().
20154 * linux-arm-low.c (init_registers_arm): Add prototype.
20155 (init_registers_arm_with_iwmmxt): Likewise.
20156 (the_low_target): Add initializer for arch_setup field.
20157 * linux-cris-low.c (init_registers_cris): Add prototype.
20158 (the_low_target): Add initializer for arch_setup field.
20159 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20160 (the_low_target): Add initializer for arch_setup field.
20161 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20162 (the_low_target): Add initializer for arch_setup field.
20163 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20164 (the_low_target): Add initializer for arch_setup field.
20165 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20166 (the_low_target): Add initializer for arch_setup field.
20167 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20168 (the_low_target): Add initializer for arch_setup field.
20169 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20170 (init_registers_mips64_linux): Likewise.
20171 (the_low_target): Add initializer for arch_setup field.
20172 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20173 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20174 (the_low_target): Add initializer for arch_setup field.
20175 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20176 (init_registers_powerpc_64): Likewise.
20177 (the_low_target): Add initializer for arch_setup field.
20178 * linux-s390-low.c (init_registers_s390): Add prototype.
20179 (init_registers_s390x): Likewise.
20180 (the_low_target): Add initializer for arch_setup field.
20181 * linux-sh-low.c (init_registers_sh): Add prototype.
20182 (the_low_target): Add initializer for arch_setup field.
20183 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20184 (the_low_target): Add initializer for arch_setup field.
20185 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20186 (the_low_target): Add initializer for arch_setup field.
20187
20188 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20189 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20190 instead of init_registers ().
20191 * win32-arm-low.c (init_registers_arm): Add prototype.
20192 (the_low_target): Add initializer for arch_setup field.
20193 * win32-i386-low.c (init_registers_i386): Add prototype.
20194 (the_low_target): Add initializer for arch_setup field.
20195
20196 * spu-low.c (init_registers_spu): Add prototype.
20197 (initialize_low): Call initialie_registers_spu () instead of
20198 initialize_registers ().
20199
fd96d250
PA
202002008-02-19 Pedro Alves <pedro@codesourcery.com>
20201
20202 * server.c (handle_v_requests): When handling the vRun and vAttach
20203 packets, if already debugging a process, don't kill it. Return an
20204 error instead.
20205
d41b6bb4
DJ
202062008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20207
20208 * server.c (handle_query): Correct length check.
20209
5ac588cf
PA
202102008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20211
20212 * win32-low.c (do_initial_child_stuff): Add process handle
20213 parameter. Set current_process_handle and current_process_id from the
20214 parameters. Clear globals.
20215 (win32_create_inferior): Don't set current_process_handle and
20216 current_process_id here. Instead pass them on the call to
20217 do_initial_child_stuff.
20218 (win32_attach): Likewise.
20219 (win32_clear_inferiors): New.
20220 (win32_kill): Don't close the current process handle or the
20221 current thread handle here. Instead call win32_clear_inferiors.
20222 (win32_detach): Don't open a new handle to the process. Call
20223 win32_clear_inferiors.
20224 (win32_join): Don't rely on current_process_handle; open a new
20225 handle using the process id.
20226 (win32_wait): Call win32_clear_inferiors when the inferior process
20227 has exited.
20228
ecd7ecbc
DJ
202292008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20230
20231 * server.c (monitor_show_help): Add "exit".
20232
1525d545
MG
202332008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20234
ecd7ecbc 20235 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20236 (clean): Add reg-xtensa.c.
20237 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20238 * configure.srv (xtensa*-*-linux*) New target.
20239 * linux-xtensa-low.c: New.
20240 * xtensa-xtregs.c: New.
1525d545 20241
59a016f0
PA
202422008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20243
20244 * hostio.c: Don't include errno.h.
20245 (errno_to_fileio_errno): Move to hostio-errno.
20246 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20247 error number outputting to the target->hostio_last_error callback.
20248 (hostio_packet_error): Use FILEIO_EINVAL directly.
20249 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20250 calls to hostio_error.
20251 * hostio-errno.c: New.
20252 * server.h (hostio_last_error_from_errno): Declare.
20253 * target.h (target_ops): Add hostio_last_error member.
20254 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20255 as hostio_last_error handler.
889bf7c5 20256 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20257 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20258 (wince_hostio_last_error): New functions.
20259 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20260 as hostio_last_error handler.
20261 (win32_target_ops) [!_WIN32_WCE]: Register
20262 hostio_last_error_from_errno as hostio_last_error handler.
20263 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20264 (hostio-errno.o): New rule.
20265 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20266 * configure.srv (srv_hostio_err_objs): New variable. Default to
20267 hostio-errno.o.
20268 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20269 * configure: Regenerate.
20270
2d717e4f
DJ
202712008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20272
20273 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20274 (linux_kill, linux_detach): Clean up the process list.
20275 * remote-utils.c (remote_open): Improve port number parsing.
20276 (putpkt_binary, input_interrupt): Only send interrupts if the target
20277 is running.
20278 * server.c (extended_protocol): Make static.
20279 (attached): Define earlier.
20280 (exit_requested, response_needed, program_argv): New variables.
20281 (target_running): New.
20282 (start_inferior): Clear attached here.
20283 (attach_inferior): Set attached here.
20284 (require_running): Define.
20285 (handle_query): Use require_running and target_running. Implement
20286 "monitor exit".
20287 (handle_v_attach, handle_v_run): New.
20288 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20289 (gdbserver_usage): Update.
20290 (main): Redo argument parsing. Handle --debug and --multi. Handle
20291 --attach along with other options or after the port. Save
20292 program_argv. Support no initial program. Resynchronize
20293 communication with GDB after an error. Handle "monitor exit".
20294 Use require_running and target_running. Always allow the extended
20295 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20296 restart in extended mode.
20297 * README: Refer to the GDB manual. Update --attach usage.
20298
7407e2de
AS
202992007-12-20 Andreas Schwab <schwab@suse.de>
20300
20301 * linux-low.c (STACK_SIZE): Define.
20302 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20303 (linux_test_for_tracefork): Likewise.
20304
b65d95c5
DJ
203052007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20306
20307 * linux-low.c (linux_wait_for_event): Update messages. Do not
20308 reinsert auto-delete breakpoints.
20309 * mem-break.c (struct breakpoint): Change return type of handler to
20310 int.
20311 (set_breakpoint_at): Update handler type.
20312 (reinsert_breakpoint_handler): Return 1 instead of calling
20313 delete_breakpoint.
20314 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20315 setting a new one.
20316 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20317 * mem-break.h (set_breakpoint_at): Update handler type.
20318 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20319 * win32-low.c (auto_delete_breakpoint): New.
20320 (get_child_debug_event): Use it.
20321
4e799345
DJ
203222007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20323
20324 * configure.ac: Check for pread and pwrite.
20325 * hostio.c (handle_pread): Fall back to lseek and read.
20326 (handle_pwrite): Fall back to lseek and write.
20327 * config.in, configure: Regenerated.
20328
27524b67
DJ
203292007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20330
20331 * server.c (myresume): Add own_buf argument.
20332 (main): Update calls.
20333
a20d5e98
DJ
203342007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20335
20336 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20337 * remote-utils.c (remote_open): Do not call disable_async_io.
20338 (block_async_io): Delete.
20339 (unblock_async_io): Make static.
20340 (initialize_async_io): New.
20341 * server.c (handle_v_cont): Handle async I/O here.
20342 (myresume): Likewise. Move other common resume tasks here...
20343 (main): ... from here. Call initialize_async_io. Disable async
20344 I/O before the main loop.
20345 * server.h (initialize_async_io): Declare.
20346 (block_async_io, unblock_async_io): Delete prototypes.
20347 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20348
b79d787e
DJ
203492007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20350
20351 * remote-utils.c (readchar): Allow binary data in received messages.
20352
d97903b2
PA
203532007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20354
20355 * win32-low.c (attaching): New global.
20356 (win32_create_inferior): Clear the `attaching' global.
20357 (win32_attach): Set the `attaching' global.
20358 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20359 attaching. Only set a breakpoint at the entry point if not
20360 attaching.
20361
311de423
PA
203622007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20363
20364 * server.c (main): Don't report dll events on the initial
20365 connection on attaches.
20366
6c2d16d2
PA
203672007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20368
20369 * server.c (main): Relax numerical bases supported for the pid of
20370 the --attach command line argument.
20371
5ca906e6
PA
203722007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20373
20374 * win32-low.c (win32_attach): Call OpenProcess before
20375 DebugActiveProcess, not after. Add last error output to error
20376 call.
20377
9c6c8194
PA
203782007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20379
20380 * win32-low.c (win32_get_thread_context)
20381 (win32_set_thread_context): New functions.
20382 (thread_rec): Use win32_get_thread_context.
20383 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20384 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20385 field.
20386
4d5d1aaa
PA
203872007-12-03 Leo Zayas
20388 Pedro Alves <pedro_alves@portugalmail.pt>
20389
20390 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20391 global variables.
20392 (child_add_thread): Minor cleanup.
20393 (child_continue): Resume artificially suspended threads before
20394 calling ContinueDebugEvent.
20395 (suspend_one_thread): New.
20396 (fake_breakpoint_event): New.
20397 (get_child_debug_event): Change return type to int. Check here if
20398 gdb sent an interrupt request. If a soft interrupt was requested,
20399 fake a breakpoint event. Return 0 if there is no event to handle,
20400 and 1 otherwise.
20401 (win32_wait): Don't check here if gdb sent an interrupt request.
20402 Ensure there is a valid event to handle.
20403 (win32_request_interrupt): Add soft interruption method as last
20404 resort.
20405
c436e841
PA
204062007-12-03 Leo Zayas
20407 Pedro Alves <pedro_alves@portugalmail.pt>
20408
20409 * win32-low.h (win32_thread_info): Add descriptions to the
20410 structure members. Replace `suspend_count' counter by a
20411 `suspended' flag.
20412 * win32-low.c (thread_rec): Update condition of when to get the
20413 context from the inferior. Rely on ContextFlags being set if it
20414 has already been retrieved. Only suspend the inferior thread if
20415 we haven't already. Warn if that fails.
20416 (continue_one_thread): s/suspend_count/suspended/. Only call
20417 ResumeThread once. Warn if that fails.
20418
e7b5fa67
PA
204192007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20420
20421 * win32-low.c (win32_wait): Don't read from the inferior when it
20422 has already exited.
20423
a385171d
PA
204242007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20425
20426 * Makefile.in (win32_low_h): New variable.
20427 (win32-low.o): Add dependency on $(win32_low_h).
20428 (win32-arm-low.o, win32-i386-low.o): New rules.
20429
f80c84b3
DJ
204302007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20431
20432 * hostio.c: Correct copyright year.
20433
a6b151f1
DJ
204342007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20435
20436 * Makefile.in (OBS): Add hostio.o.
20437 (hostio.o): New rule.
20438 * server.h (handle_vFile): Declare.
20439 * hostio.c: New file.
20440 * server.c (handle_v_requests): Take packet_len and new_packet_len
20441 for binary packets. Call handle_vFile.
20442 (main): Update call to handle_v_requests.
20443
f9387fc3
DJ
204442007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20445
20446 * linux-low.c: Include <sched.h>.
20447
51c2684e
DJ
204482007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20449
20450 * linux-low.c (linux_tracefork_grandchild): New.
20451 (linux_tracefork_child): Use clone.
20452 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20453
75f83163
JB
204542007-10-31 Joel Brobecker <brobecker@adacore.com>
20455
20456 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20457
da5898ce
DJ
204582007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20459
20460 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20461
24a09b5f
DJ
204622007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20463
20464 * inferiors.c (change_inferior_id): Delete.
20465 (add_pid_to_list, pull_pid_from_list): New.
20466 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20467 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20468 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20469 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20470 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20471 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20472 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20473 (using_threads): Always set to 1.
20474 (handle_extended_wait): New.
20475 (add_process): Do not set TID.
20476 (linux_create_inferior): Set must_set_ptrace_flags.
20477 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20478 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20479 (linux_thread_alive): Rename TID argument to LWPID.
20480 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20481 (linux_wait_for_event): Do not use TID or check using_threads. Update
20482 call to dead_thread_notify. Call handle_extended_wait.
20483 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20484 (send_sigstop): Delete sigstop_sent.
20485 (wait_for_sigstop): Avoid TID.
20486 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20487 (linux_test_for_tracefork): New.
20488 (linux_lookup_signals): Use thread_db_active and
20489 linux_supports_tracefork_flag.
20490 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20491 * linux-low.h (get_process_thread): Avoid TID.
20492 (struct process_ifo): Move thread_known and tid to the end. Remove
20493 sigstop_sent.
20494 (linux_attach_lwp, thread_db_init): Update prototypes.
20495 * server.h (change_inferior_id): Delete prototype.
20496 (add_pid_to_list, pull_pid_from_list): New prototypes.
20497 * thread-db.c (thread_db_use_events): New.
20498 (find_first_thread): Rename to...
20499 (find_one_thread): ...this. Update callers and messages. Do not
20500 call fatal. Check thread_db_use_events. Do not call
20501 change_inferior_id or new_thread_notify.
20502 (maybe_attach_thread): Update. Do not call new_thread_notify.
20503 (thread_db_init): Set thread_db_use_events. Check use_events.
20504 * utils.c (fatal, warning): Correct message prefix.
20505
30ed0a8f
DJ
205062007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20507
20508 * Makefile.in (clean): Remove new files.
20509 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20510 (powerpc-64.o, powerpc-64.c): New rules.
20511 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20512 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20513 with SPE.
20514 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20515 SPE targets.
20516 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20517 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20518 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20519 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20520 (target_regsets): Add AltiVec and SPE register sets.
20521 * configure.ac: Check for AltiVec and SPE.
20522 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20523 (ppc_fill_vrregset, ppc_store_vrregset): New.
20524 (target_regsets): Add AltiVec register set.
20525 * configure: Regenerated.
20526
fd462a61
DJ
205272007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20528
20529 * linux-low.c (O_LARGEFILE): Define.
20530 (linux_read_memory): Use /proc/PID/mem.
20531 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20532 * configure, config.in: Regenerated.
20533
69f223ed
DJ
205342007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20535
20536 * linux-low.c (linux_wait_for_event): Do not pass signals while
20537 single-stepping.
20538
aec18585
PA
205392007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20540
20541 * win32-low.c (create_process): New.
20542 (win32_create_inferior): Use create_process instead of
20543 CreateProcess. If create_process failed retry appending an ".exe"
20544 suffix. Store the GetLastError result immediatelly after
20545 create_process calls and use it on the call to error.
20546
34d86ddd
PA
205472007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20548
20549 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20550
5a0e3bd0
JB
205512007-08-23 Joel Brobecker <brobecker@adacore.com>
20552
20553 * configure.ac: Switch license to GPLv3.
20554
f88c79e6
MS
205552007-08-01 Michael Snyder <msnyder@access-company.com>
20556
20557 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20558
6b3d9b83
PA
205592007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20560
20561 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20562 typedef.
20563 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20564 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20565 CloseToolhelp32Snapshot.
20566 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20567 CloseToolhelp32Snapshot.
20568
c588c53c
MS
205692007-07-27 Michael Snyder <michael.snyder@access-company.com>
20570
20571 * server.c (main): Check for inferior exit before main loop.
20572
aa0403d9
PA
205732007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20574
20575 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20576 instead of on tmp_desc.
20577
255e7678
DJ
205782007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20579 Daniel Jacobowitz <dan@codesourcery.com>
20580
20581 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20582 (add_thread): Minor cleanups.
20583 (clear_inferiors): Move lower in the file. Clear the DLL
20584 list.
20585 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20586 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20587 (xml_escape_text): New.
20588 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20589 for qSupported.
20590 (handle_v_cont): Report errors.
20591 (gdbserver_version): Update.
20592 (main): Correct size of own_buf. Do not report initial DLL events.
20593 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20594 (unloaded_dll, xml_escape_text): New.
20595 * win32-low.c (enum target_waitkind): Update comments.
20596 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20597 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20598 (win32_EnumProcessModules, win32_GetModuleInformation)
20599 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20600 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20601 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20602 (win32_Module32First, win32_Module32Next, load_toolhelp)
20603 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20604 (get_child_debug_event): Handle DLL events.
20605 (win32_wait): Likewise.
20606
0d37add9
DJ
206072007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20608
20609 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20610 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20611
45e2715e
PA
206122007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20613
20614 * win32-low.c (handle_output_debug_string): Ignore event if not
20615 waiting.
20616
c5674cf1
PA
206172007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20618
20619 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20620
2bbe3cc1
DJ
206212007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20622
20623 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20624
ae13219e
DJ
206252007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20626
20627 * inferiors.c (change_inferior_id): Add comment.
20628 * linux-low.c (check_removed_breakpoint): Add an early
20629 prototype. Improve debug output.
20630 (linux_attach): Doc update.
20631 (linux_detach_one_process, linux_detach): Clean up before releasing
20632 each process.
20633 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20634 * linux-low.h (struct process_info): Doc improvement.
20635 * mem-break.c (delete_all_breakpoints): New.
20636 * mem-break.h (delete_all_breakpoints): New prototype.
20637 * thread-db.c (find_first_thread): New.
20638 (thread_db_create_event): Call it instead of
20639 thread_db_find_new_threads. Clean up unused variables.
20640 (maybe_attach_thread): Remove first thread handling.
20641 (thread_db_find_new_threads): Use find_first_thread.
20642 (thread_db_get_tls_address): Likewise.
20643
4105de34
DJ
206442007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20645
20646 * thread-db.c (thread_db_find_new_threads): Add prototype.
20647 (thread_db_create_event): Check for the main thread before adding
20648 a new thread.
20649 (maybe_attach_thread): Only enable event reporting if TID == 0.
20650 (thread_db_get_tls_address): Check for new threads.
20651
2b876972
DJ
206522007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20653
20654 * linux-low.c (linux_create_inferior): Try execv before execvp.
20655 * spu-low.c (spu_create_inferior): Likewise.
20656
7a245884
DJ
206572007-06-13 Mike Frysinger <vapier@gentoo.org>
20658
20659 * linux-low.c (linux_create_inferior): Change execv to execvp.
20660 * spu-low.c (spu_create_inferior): Likewies.
20661
117ce543
DJ
206622007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20663
20664 * Makefile.in (clean): Clean new files instead of deleted ones.
20665 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20666 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20667 rules.
20668 * configure.srv: Specify XML files and new regformats for MIPS and
20669 MIPS64 GNU/Linux.
20670 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20671 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20672 an entry for the restart register.
20673 (mips_cannot_fetch_register, mips_cannot_store_register)
20674 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20675 register names to match the XML descriptions.
20676 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20677 restart register instead of $0.
20678
0e7f50da
UW
206792007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20680 Markus Deuling <deuling@de.ibm.com>
20681
20682 * remote-utils.c (decode_xfer_write): New function.
20683 * server.h (decode_xfer_write): Add prototype.
20684 * server.c (handle_query): Add PACKET_LEN argument. Support
20685 qXfer:spu:read and qXfer:spu:write packets.
20686 (main): Pass packet_len to handle_query.
20687 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20688 * target.h (target_ops): Add qxfer_spu.
20689
374c1d38
UW
206902007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20691
20692 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20693 accessing non-seekable spufs files.
20694
bb63802a
UW
206952007-05-16 Markus Deuling <deuling@de.ibm.com>
20696
889bf7c5 20697 * server.c (handle_query): Add reply for qC packet.
bb63802a 20698
7390519e
PA
206992007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20700 Leo Zayas <lerele@champenstudios@com>
20701
20702 * server.h (check_remote_input_interrupt_request): New function.
20703 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20704 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20705 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20706 (check_remote_input_interrupt_request): New function.
20707 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20708 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20709 winapi_GenerateConsoleCtrlEvent): New typedefs.
20710 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20711 to 250 ms.
20712 (win32_wait): Check for remote interrupt request
20713 with check_remote_input_interrupt_request.
20714 (win32_request_interrupt): New function.
20715 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20716
34b34921
PA
207172007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20718
20719 * win32-low.c (debug_registers_changed,
20720 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20721 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20722 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20723 (thread_rec): Get context using the low target.
20724 (child_add_thread): Call thread_added on the low target,
20725 which does the same thing.
20726 (regptr): Delete.
20727 (do_initial_child_stuff): Remove debug registers references.
20728 Set context using the low target. Resume threads after
20729 setting the contexts.
20730 (child_continue): Remove dead variable. Remove debug
20731 registers references.
20732 (child_fetch_inferior_registers): Go through the low target.
20733 (do_child_store_inferior_registers): Remove.
20734 (child_store_inferior_registers): Go through the low target.
20735 (win32_resume): Remove debug registers references.
20736 Set context using the low target.
20737 (handle_exception): Change return type to void. Don't record
20738 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20739 first chance exception.
889bf7c5 20740 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20741 goto loop. Always return after waiting for debug event.
20742 (win32_wait): Convert to switch statement. Handle spurious
20743 events.
20744
20745 * win32-i386-low.c (debug_registers_changed,
20746 debug_registers_used): New.
20747 (initial_stuff): Rename to ...
20748 (i386_initial_stuff): ... this. Clear debug registers
20749 state variables.
20750 (store_debug_registers): Delete.
20751 (i386_get_thread_context): New.
20752 (load_debug_registers): Delete.
20753 (i386_set_thread_context): New.
20754 (i386_thread_added): New.
20755 (single_step): Rename to ...
20756 (i386_single_step): ... this.
20757 (do_fetch_inferior_registers): Rename to ...
20758 (i386_fetch_inferior_register): ... this.
20759 (i386_store_inferior_register): New.
20760 (the_low_target): Adapt to new interface.
20761
20762 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20763 (arm_get_thread_context): New.
20764 (arm_set_thread_context): New.
20765 (regptr): New.
20766 (do_fetch_inferior_registers): Rename to ...
20767 (arm_fetch_inferior_register): ... this.
20768 (arm_store_inferior_register): New.
20769 (arm_wince_breakpoint): Reimplement as unsigned long.
20770 (arm_wince_breakpoint_len): Define.
20771 (the_low_target): Adapt to new interface.
20772
20773 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20774 load_debug_registers. Add get_thread_context, set_thread_context,
20775 thread_added and store_inferior_register. Rename
20776 fetch_inferior_registers to fetch_inferior_register.
20777 (regptr): Remove declaration.
20778
dd6953e1
PA
207792007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20780
20781 * linux-low.c (linux_detach): Change return type to int. Return 0.
20782 * spu-low.c (spu_detach): Likewise.
20783
444d6139
PA
207842007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20785
20786 * target.h (target_ops): Change return type of detach to int.
20787 Add join.
20788 (join_inferior): New.
20789 * server.c (main): Don't skip detach support on mingw32.
20790 If the inferior doesn't support detaching return error.
20791 Call join_inferior instead of using waitpid.
20792 * linux-low.c (linux_join): New.
20793 (linux_target_op): Add linux_join.
20794 * spu-low.c (spu_join): New.
20795 (spu_target_ops): Add spu_join.
20796 * win32-low.c (win32_detach): Adapt to new interface.
20797 Reopen current_process_handle before detaching. Issue a child
20798 resume before detaching.
20799 (win32_join): New.
20800 (win32_target_op): Add win32_join.
20801
1d5315fe
PA
208022007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20803
20804 * win32-low.c (win32-attach): Fix return value.
20805 * target.h (target_ops): Describe ATTACH return values.
20806
bf914831
PA
208072007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20808
20809 * win32-low.c (GETPROCADDRESS): Define.
20810 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20811 (winapi_DebugSetProcessKillOnExit): Likewise.
20812 (win32_create_inferior): Force usage of ansi CreateProcessA.
20813 (win32_attach): Use GETPROCADDRESS.
20814 (win32_detach): Likewise.
20815
f72f3e60
PA
208162007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20817
20818 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20819
ed50f18f
PA
208202007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20821
20822 * win32-low.c: Commit leftover changes from 2007-03-29.
20823
0c2ead7e
DJ
208242007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20825
20826 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20827 fields short instead of int. Add explicit padding.
20828 (i387_cache_to_fsave): Remove unnecessary casts.
20829 (i387_fsave_to_cache): Doc fix.
20830 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20831
73725ff3
DJ
208322007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20833
20834 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20835 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20836
d99f33d8
PA
208372007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20838
20839 * configure.srv (arm*-*-mingw32ce*): Move near the other
20840 arm targets.
20841
68070c10
PA
208422007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20843
2482afc6 20844 * configure.ac: Add errno checking.
68070c10
PA
20845 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20846 sys/file.h and malloc.h.
20847 (AC_CHECK_DECLS): Add perror.
20848 (srv_mingwce): Handle.
2482afc6 20849 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20850 win32-i386-low.o to srv_tgtobj.
20851 (i[34567]86-*-mingw*): Likewise.
20852 (arm*-*-mingw32ce*): Add case.
20853 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20854 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20855 [__MINGW32CE__] (strerror): New function.
20856 [__MINGW32CE__] (errno): Define to GetLastError.
20857 [__MINGW32CE__] (COUNTOF): New macro.
20858 (remote_open): Remove extra close call.
20859 * mem-break.c (delete_breakpoint_at): New function.
20860 * mem-break.h (delete_breakpoint_at): Declare.
20861 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20862 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20863 [USE_WIN32API] (read, write): Add char* casts.
20864 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20865 * server.h: Include wincecompat.h on Windows CE.
20866 [HAVE_ERRNO_H]: Check.
20867 (perror): Declare if not declared.
20868 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20869 (perror_with_name): Remove errno declaration.
20870 * wincecompat.h: New.
20871 * wincecompat.c: New.
20872 * win32-low.h: New.
20873 * win32-arm-low.c: New.
20874 * win32-i386-low.c: New.
20875 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20876 (OUTMSG2): Make it safe.
20877 (_T): New macro.
20878 (COUNTOF): New macro.
20879 (NUM_REGS): Get it from the low target.
20880 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20881 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20882 (thread_rec): Let low target handle debug registers.
20883 (child_add_thread): Likewise.
20884 (child_init_thread_list): Likewise.
20885 (continue_one_thread): Likewise.
20886 (regptr): New.
20887 (do_child_fetch_inferior_registers): Move to ...
20888 * win32-i386-low.c: ... here, and rename to ...
20889 (do_fetch_inferior_registers): ... this.
889bf7c5 20890 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20891 Go through the low target.
20892 (do_child_store_inferior_registers): Use regptr.
20893 (strwinerror): New function.
20894 (win32_create_inferior): Handle Windows CE.
20895 Use strwinerror instead of strerror on Windows error
20896 codes. Add program to the error output.
20897 Don't close the main thread handle on Windows CE.
20898 (win32_attach): Use coredll.dll on Windows CE.
20899 (win32_kill): Close current process and current
20900 thread handles.
20901 (win32_detach): Use coredll.dll on Windows CE.
20902 (win32_resume): Let low target handle debug registers, and
20903 step request.
20904 (handle_exception): Add/Remove initial breakpoint. Avoid
20905 non-existant WSTOPSIG on Windows CE.
20906 (win32_read_inferior_memory): Cast to remove warning.
20907 (win32_arch_string): Go through the low target.
20908 (initialize_low): Call set_breakpoint_data with the low
20909 target's breakpoint.
20910 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20911 FOP_REGNUM, mappings): Move to ...
20912 * win32-i386-low.c: ... here.
20913 * win32-low.c (win32_thread_info): Move to ...
20914 * win32-low.h: ... here.
20915 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20916 win32-arm-low.c and wincecompat.c.
20917 (all:): Add $EXEEXT.
20918 (install-only:): Likewise.
20919 (gdbserver:): Likewise.
20920 (gdbreplay:): Likewise.
20921 * config.in: Regenerate.
20922 * configure: Regenerate.
20923
41093d81
PA
209242007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20925
20926 * win32-low.c: Rename typedef thread_info to
20927 win32_thread_info throughout.
20928
544afa54
PA
209292007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20930
20931 * win32-i386-low.c: Rename to ...
20932 * win32-low.c: ... this.
20933 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20934 * Makefile.in: Likewise.
20935
bce7165d
PA
209362007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20937
20938 * remote-utils.c (monitor_output): Constify msg parameter.
20939 * server.h (monitor_output): Likewise.
20940 * win32-i386-low.c (handle_output_debug_string): New.
20941 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20942 handle_output_debug_string.
20943 (get_child_debug_event): Likewise.
20944
506c7aa0
DJ
209452007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20946
20947 * server.c (main): Correct strtoul check.
20948
42c81e2a
DJ
209492007-03-27 Jon Ringle <jon@ringle.org>
20950
20951 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20952
9453113a
DJ
209532007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20954
20955 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20956
64a69107
DJ
209572007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20958
20959 * terminal.h: Check HAVE_SGTTY_H.
20960
209612007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20962
20963 * remote-utils.c (remote_open): Print out the assigned port number.
20964
c74d0ad8
DJ
209652007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20966
20967 * remote-utils.c (monitor_output): New function.
20968 * server.c (debug_threads): Define here.
20969 (monitor_show_help): New function.
20970 (handle_query): Handle qRcmd.
20971 (main): Do not handle 'd' packet.
20972 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20973 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20974 of debug_threads.
20975
de7c3b4a
PA
209762007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20977
20978 * Makefile.in (EXEEXT): New.
20979 (clean): Use $(EXEEXT).
20980
ef57601b
PA
209812007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20982
20983 * target.h (target_ops): Rename send_signal to request_interrupt,
20984 and remove enum target_signal parameter.
20985 * linux-low.c (linux_request_interrupt): Rename from
20986 linux_send_signal, and always send SIGINT.
20987 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20988 and always send SIGINT.
20989 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20990 of send_signal.
20991 (input_interrupt): Likewise.
20992
820f2bda
PA
209932007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20994
20995 * server.c (get_features_xml): Check if target implemented
20996 arch_string.
20997 * win32-i386-low.c (win32_arch_string): New.
20998 (win32_target_ops): Add win32_arch_string as arch_string member.
20999
ab39bf24
UW
210002007-02-22 Markus Deuling <deuling@de.ibm.com>
21001
21002 * spu-low.c (spu_arch_string): New.
21003 (spu_target_ops): Add spu_arch_string.
21004
61ff6e04
DJ
210052007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21006
21007 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21008 * configure.ac: Do not check for terminal.h.
21009 * configure, config.in: Regenerated.
21010
fb1e4ffc
DJ
210112007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21012
21013 * Makefile.in (OBS): Add $(XML_BUILTIN).
21014 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21015 (clean): Update.
21016 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21017 (arm-with-iwmmxt.c): New.
21018 * config.in, configure: Regenerate.
21019 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21020 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21021 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21022 (arm*-*-linux*): Add iWMMXt and regset support.
21023 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21024 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21025 (arm_store_wmmxregset, target_regsets): New.
21026 * server.c (get_features_xml): Take annex argument. Check builtin
21027 XML documents.
21028 (handle_query): Handle multiple annexes.
21029
0f48aa01
DJ
210302007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21031
21032 * remote-utils.c [USE_WIN32API] (read, write): Define.
21033 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21034 write.
21035
23181151
DJ
210362007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21037
21038 * linux-i386-low.c (the_low_target): Set arch_string.
21039 * linux-x86-64-low.c (the_low_target): Likewise.
21040 * linux-low.c (linux_arch_string): New.
21041 (linux_target_ops): Add it.
21042 * linux-low.h (struct linux_target_ops): Add arch_string.
21043 * server.c (write_qxfer_response): Use const void * for DATA.
21044 (get_features_xml): New.
21045 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21046 * target.h (struct target_ops): Add arch_string method.
21047
9d606399
DJ
210482007-01-03 Denis Pilat <denis.pilat@st.com>
21049 Daniel Jacobowitz <dan@codesourcery.com>
21050
21051 * linux-low.c (linux_kill): Handle being called with no threads.
21052 * win32-i386-low.c (win32_kill): Likewise.
21053 (get_child_debug_event): Clear current_process_handle.
21054
210552006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21056 Daniel Jacobowitz <dan@codesourcery.com>
21057
21058 * remote-utils.c (remote_open): Check the type of specified
21059 serial port devices before opening them.
21060 * server.c (main): Kill the inferior if an error occurs during
21061 the first remote_open.
21062
a5e13d24
DJ
210632006-12-05 Markus Deuling <deuling@de.ibm.com>
21064
21065 * README: Update supported targets.
21066
186947f7
DJ
210672006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21068
21069 * Makefile.in (clean): Remove reg-mips64.c.
21070 (reg-mips64.c, reg-mips64.o): New rules.
21071 * configure.srv: Handle mips64. Include regset support for mips.
21072 * linux-mips-low.c (union mips_register): New.
21073 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21074 (mips_breakpoint, mips_breakpoint_at): Use int.
21075 (mips_collect_register, mips_supply_register)
21076 (mips_collect_register_32bit, mips_supply_register_32bit)
21077 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21078 (mips_store_fpregset, target_regsets): New.
21079 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21080
a13e2c95
UW
210812006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21082
21083 * configure.srv: Add target "spu*-*-*".
21084 * Makefile.in (clean): Remove reg-spu.c.
21085 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21086 * spu-low.c: New file.
21087
cb7283db
DJ
210882006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21089
21090 * configure.ac: Correct td_thr_tls_get_addr test.
21091 * configure: Regenerated.
21092
89be2091
DJ
210932006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21094
21095 * linux-low.c (linux_wait_for_event): Reformat. Use the
21096 pass_signals array.
21097 * remote-utils.c (decode_address_to_semicolon): New.
21098 * server.c (pass_signals, handle_general_set): New.
21099 (handle_query): Mention QPassSignals for qSupported.
21100 (main): Call handle_general_set.
21101 * server.h (pass_signals, decode_address_to_semicolon): New.
21102
000ef4f0
DJ
211032006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21104
21105 * server.c (handle_query): Correct error handling for read_auxv.
21106
b7149293
UW
211072005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21108
21109 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21110 and srv_linux_thread_db to yes.
21111 * linux-s390-low.c (s390_fill_gregset): New function.
21112 (target_regsets): Define data structure.
21113
dae5f5cf
DJ
211142006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21115
21116 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21117 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21118 * config.in, configure: Regenerated.
21119 * inferiors.c (gdb_id_to_thread): New function.
21120 (gdb_id_to_thread_id): Use it.
21121 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21122 * linux-low.h (struct process_info): Add th member.
21123 (thread_db_get_tls_address): New prototype.
21124 * remote-utils.c (decode_address): Make non-static.
21125 * server.c (handle_query): Handle qGetTLSAddr.
21126 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21127 * target.h (struct target_ops): Add get_tls_address.
21128 * thread-db.c (maybe_attach_thread): Save the thread handle.
21129 (thread_db_get_tls_address): New.
21130
32ca6d61
DJ
211312006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21132
21133 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21134 (linux_resume_one_process): Take a siginfo_t *. Update all
21135 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21136 (struct pending_signals): Add a siginfo_t.
21137 (linux_wait_for_process): Always set last_status.
21138 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21139 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21140 * linux-low.h (struct process_info): Add last_status.
21141
5ffff7c1
DJ
211422006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21143
21144 * remote-utils.c (try_rle): New function.
21145 (putpkt_binary): Use it.
21146
8695c747
DJ
211472006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21148
21149 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21150 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21151 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21152 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21153 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21154 point registers.
21155
290fadea
RS
211562006-08-08 Richard Sandiford <richard@codesourcery.com>
21157
21158 * server.c (terminal_fd): New variable.
21159 (old_foreground_pgrp): Likewise.
21160 (restore_old_foreground_pgrp): New function.
21161 (start_inferior): Record the terminal file descriptor in terminal_fd
21162 and its original foreground group in old_foreground_pgrp. Register
21163 restore_old_foreground_pgrp with atexit().
21164
9f2e1e63
DJ
211652006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21166
21167 * server.c (handle_query): Correct qPart to qXfer.
21168
b80864fb
DJ
211692006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21170
21171 * configure.ac: Check for more headers which are missing on
21172 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21173 * configure.srv: Add Cygwin and mingw32.
21174 * remote-utils.c: Don't include headers unconditionally which
21175 are missing on mingw32. Include <winsock.h> for mingw32.
21176 (remote_open): Adjust for mingw32 support. Flush
21177 standard error after writing to it.
21178 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21179 (unblock_async_io, enable_async_io, disable_async_io)
21180 (readchar, getpkt): Update for Winsock support.
21181 (prepare_resume_reply): Expect a protocol signal number.
21182 * server.c: Disable <sys/wait.h> on mingw32.
21183 (start_inferior): Adjust for mingw32 support. Flush
21184 standard error after writing to it.
21185 (attach_inferior): Likewise. Use protocol signal
21186 numbers.
21187 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21188 and names.
21189 * win32-i386-low.c: New file.
21190 * Makefile.in (XM_CLIBS): Set.
21191 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21192 (win32-i386-low.o): New dependency rule.
21193 * linux-low.c (linux_wait): Use target signal numbers.
21194 * target.h (struct target_ops): Doc fix.
21195 * server.h (target_signal_to_name): New prototype.
21196 * gdbreplay.c: Don't include headers unconditionally which
21197 are missing on mingw32. Include <winsock.h> for mingw32.
21198 (remote_close, remote_open): Adjust for Winsock support.
21199 * configure, config.in: Regenerated.
21200
0876f84a
DJ
212012006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21202
21203 * server.c (decode_xfer_read, write_qxfer_response): New.
21204 (handle_query): Take a packet length argument. Handle
21205 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21206 the qSupported response.
21207 (main): Update call to handle_query.
21208
01f9e8fa
DJ
212092006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21210
21211 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21212 (putpkt_binary): Renamed from putpkt and adjusted for binary
21213 data.
21214 (putpkt): New wrapper for putpkt_binary.
21215 (readchar): Don't mask off the high bit.
21216 (decode_X_packet): New function.
21217 * server.c (main): Call putpkt_binary if a handler sets the packet
21218 length. Save the length of the incoming packet. Handle 'X'.
21219 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21220
be2a5f71
DJ
212212006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21222
21223 * server.c (handle_query): Handle qSupported.
21224
ea025f5f
DJ
212252006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21226
21227 * remote-utils.c (all_symbols_looked_up): New variable.
21228 (look_up_one_symbol): Check it.
21229 * server.h (look_up_one_symbol): New declaration.
21230 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21231
9308fc88
DJ
212322006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21233
21234 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21235 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21236 (PTRACE_GET_THREAD_AREA): Define.
21237 (ps_get_thread_area): New function.
21238
52fb6437
NS
212392006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21240
21241 * configure.srv (m68k*-*-uclinux*): New target.
21242 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21243 (linux_resume_one_process): Remove extraneous cast.
21244 (linux_read_offsets): New.
21245 (linux_target_op): Add linux_read_offsets on mmuless systems.
21246 * server.c (handle_query): Add qOffsets logic.
21247 * target.h (struct target_ops): Add read_offsets.
21248
21b0f40c
DJ
212492006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21250
21251 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21252 (PTRACE_GET_THREAD_AREA): Define.
21253 (ps_get_thread_area): New function.
21254 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21255 (linux-x86-64-low.o): Update.
21256
0050a760
DJ
212572006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21258
21259 * configure.ac: Remove checks for prfpregset_t.
21260 * gdb_proc_service.h: New file.
21261 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21262 new "gdb_proc_service.h".
21263 * proc-service.c: Likewise.
21264 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21265 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21266 * Makefile.in (gdb_proc_service_h): Updated.
21267 * configure, config.in: Regenerated.
21268
b92a518e
DJ
212692006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21270
21271 * remote-utils.c (prepare_resume_reply): Move declaration
21272 of gdb_id_from_wait to the top of the block.
21273
545587ee
DJ
212742006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21275
21276 * linux-low.c (regsets_store_inferior_registers): Read the regset
21277 from the target before filling it.
21278
9db87ebd
DJ
212792006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21280
21281 * server.c (attach_inferior): Return SIGTRAP for a successful
21282 attach.
21283
dd24457d
DJ
212842006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21285
21286 * Makefile.in (OBS): Add version.o.
21287 (STAGESTUFF): Delete.
21288 (version.o): Add dependencies.
21289 (version.c): Replace rule.
21290 (clean): Remove version.c.
21291 * server.c (gdbserver_version): New.
21292 (gdbserver_usage): Use printf.
21293 (main): Handle --version and --help.
21294 * server.h (version, host_name): Add declarations.
21295
6f0f660e
EZ
212962005-12-23 Eli Zaretskii <eliz@gnu.org>
21297
889bf7c5
PA
21298 * linux-arm-low.c:
21299 * linux-arm-low.c:
21300 * inferiors.c:
21301 * i387-fp.h:
21302 * i387-fp.c:
21303 * gdbreplay.c:
21304 * regcache.c:
21305 * proc-service.c:
21306 * mem-break.h:
21307 * mem-break.c:
21308 * linux-x86-64-low.c:
21309 * linux-sh-low.c:
21310 * linux-s390-low.c:
21311 * linux-ppc64-low.c:
21312 * linux-ppc-low.c:
21313 * linux-mips-low.c:
21314 * linux-m68k-low.c:
21315 * linux-m32r-low.c:
21316 * linux-low.h:
21317 * linux-low.c:
21318 * linux-ia64-low.c:
21319 * linux-i386-low.c:
21320 * linux-crisv32-low.c:
21321 * thread-db.c:
21322 * terminal.h:
21323 * target.h:
21324 * target.c:
21325 * server.h:
21326 * server.c:
21327 * remote-utils.c:
21328 * regcache.h:
21329 * utils.c:
21330 * Makefile.in:
21331 * configure.ac:
6f0f660e
EZ
21332 * gdbserver.1: Add (C) after Copyright. Update the FSF
21333 address.
21334
9d1fb177
DJ
213352005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21336
21337 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21338 (arm_breakpoint_at): Recognize both breakpoints.
21339 (the_low_target): Use the correct breakpoint instruction.
21340
011a70c2
DJ
213412005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21342
21343 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21344 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21345 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21346 (the_low_target): Update.
21347
7fb85e41
AS
213482005-10-25 Andreas Schwab <schwab@suse.de>
21349
21350 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21351
21352 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21353 (ia64_num_regs): Reduce to 462.
21354
3db0444b
DJ
213552005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21356
21357 * acinclude.m4: Correct quoting.
21358 * aclocal.m4: Regenerated.
21359
21360 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21361 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21362 (thread_db_init): Call thread_db_err_str.
21363 * configure.ac: Check for TD_VERSION.
21364 * config.in, configure: Regenerated.
21365
bee0189a
DJ
213662005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21367
21368 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21369
e9d25b98
DJ
213702005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21371
21372 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21373 is not available. Define HAVE_PTRACE_GETREGS if it is.
21374 * config.in, configure: Regenerated.
21375 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21376 * linux-i386-low.c, linux-m68k-low.c: Update to use
21377 HAVE_PTRACE_GETREGS.
21378 * linux-low.c (regsets_fetch_inferior_registers)
21379 (regsets_store_inferior_registers): Only return 0 if we processed
21380 GENERAL_REGS.
21381 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21382 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21383
a06660f7
DJ
213842005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21385
21386 * inferiors.c (struct thread_info): Add gdb_id.
21387 (add_thread): Add gdb_id argument.
21388 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21389 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21390 calls to add_thread.
21391 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21392 * server.c (handle_query): Use thread_to_gdb_id.
21393 (handle_v_cont, main): Use gdb_id_to_thread_id.
21394 * server.h (add_thread): Update prototype.
21395 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21396 prototypes.
21397
5a1f5858
DJ
213982005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21399
21400 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21401 left-padded registers.
21402 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21403 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21404
e122f1f5
SE
214052005-07-01 Steve Ellcey <sje@cup.hp.com>
21406
21407 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21408 * configure: Regenerate.
21409 * config.in: Regenerate.
21410 * server.h (NEED_DECLARATION_STRERROR):
21411 Replace with !HAVE_DECL_STRERROR.
21412
d592fa2f
DJ
214132005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21414
21415 * linux-low.c (linux_wait, linux_send_signal): Don't test
21416 an unsigned long variable for > 0 if it could be MAX_ULONG.
21417 * server.c (myresume): Likewise.
21418 * target.c (set_desired_inferior): Likewise.
21419
ccbd4912
MK
214202005-06-13 Mark Kettenis <kettenis@gnu.org>
21421
21422 * configure.ac: Simplify and improve check for socklen_t.
21423 * configure, config.in: Regenerate.
21424
f450004a
DJ
214252005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21426
21427 * acconfig.h: Remove.
21428 * configure.ac: Add a test for socklen_t. Use three-argument
21429 AC_DEFINE throughout.
21430 * config.in: Regenerated using autoheader 2.59.
21431 * configure: Regenerated.
21432
21433 * gdbreplay.c (socklen_t): Provide a default.
21434 (remote_open): Use socklen_t.
21435 * remote-utils.c (socklen_t): Provide a default.
21436 (remote_open): Use socklen_t.
21437 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21438 unsigned char.
21439
21440 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21441 char for buffers.
21442 * linux-low.c (linux_read_memory, linux_write_memory)
21443 (linux_read_auxv): Likewise.
21444 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21445 (check_mem_write): Likewise.
21446 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21447 Likewise.
21448 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21449 (registers_from_string, register_data): Likewise.
21450 * server.c (handle_query, main): Likewise.
21451 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21452 (decode_M_packet): Likewise.
21453 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21454 * target.h (struct target_ops): Update read_memory, write_memory,
21455 and read_auxv.
21456 (read_inferior_memory, write_inferior_memory): Update.
21457 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21458 to unsigned char *.
21459 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21460 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21461 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21462 linux-s390-low.c, linux-sh-low.c: Update for changes in
21463 read_inferior_memory and the_low_target->breakpoint.
21464
eee84df1
DJ
214652005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21466
21467 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21468 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21469 * configure.srv: Add powerpc64-*-linux*.
21470 * linux-ppc64-low.c: New file.
21471
45b134e5
OF
214722005-05-23 Orjan Friberg <orjanf@axis.com>
21473
21474 * linux-cris-low.c: New file with support for CRIS.
21475 * linux-crisv32-low.c: Ditto for CRISv32.
21476 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21477 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21478 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21479 reg-crisv32.o, and reg-crisv32.c to make rules.
21480 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21481 recognized targets.
21482
48d93c75
UW
214832005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21484
21485 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21486 of sizeof (PTRACE_XFER_TYPE).
21487 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21488
e013ee27
OF
214892005-05-12 Orjan Friberg <orjanf@axis.com>
21490
889bf7c5 21491 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21492 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21493 pointers for hardware watchpoint support.
21494 * linux-low.h (struct linux_target_ops): Ditto.
21495 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21496 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21497 to linux_target_ops.
21498 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21499 reply packet.
21500 * server.c (main): Recognize 'Z' and 'z' packets.
21501
b0ded00b
UW
215022005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21503
21504 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21505 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21506 (the_low_target): Add new members.
21507
8643e2ad
DJ
215082005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21509
21510 * proc-service.c (ps_lgetregs): Search all_processes instead of
21511 all_threads.
21512
fc620387
DJ
215132005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21514
21515 * server.c (start_inferior): Change return type to int.
21516 (attach_inferior): Change sigptr to int *.
21517 (handle_v_cont, handle_v_requests): Change signal to int *.
21518 (main): Change signal to int.
21519
215202005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21521
21522 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21523 * configure.srv: Add m32r*-*-linux*.
21524 * linux-m32r-low.c: New file.
21525
e0e76420
DJ
215262005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21527
21528 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21529
a1928bad
DJ
215302005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21531
21532 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21533 Take unsigned long arguments for PIDs.
21534 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21535 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21536 (wait_for_sigstop, linux_resume_one_process)
21537 (regsets_fetch_inferior_registers, linux_send_signal)
21538 (linux_read_auxv): Likewise. Update the types of variables holding
21539 PIDs. Update format string specifiers.
21540 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21541 * remote-utils.c (prepare_resume_reply): Likewise.
21542 * server.c (cont_thread, general_thread, step_thread)
21543 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21544 unsigned long.
21545 (handle_query): Update format specifiers.
21546 (handle_v_cont, main): Use strtoul for thread IDs.
21547 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21548 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21549 (general_thread, step_thread, thread_from_wait)
21550 (old_thread_from_wait): Update.
21551 * target.h (struct thread_resume): Use unsigned long for THREAD.
21552 (struct target_ops): Use unsigned long for arguments to attach and
21553 thread_alive.
21554
dcdb98d2
DJ
215552005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21556
21557 * acinclude.m4: Include bfd/bfd.m4 directly.
21558 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21559 <agriffis@toolchain.org>.
21560 * aclocal.m4, configure: Regenerated.
21561
bec39cab
AC
215622005-01-07 Andrew Cagney <cagney@gnu.org>
21563
21564 * configure.ac: Rename configure.in, require autoconf 2.59.
21565 * configure: Re-generate.
21566
434c4c77
DJ
215672004-12-08 Daniel Jacobowitz <dan@debian.org>
21568
21569 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21570 LIBS when finished.
21571 * aclocal.m4: Regenerated.
21572 * configure: Regenerated.
21573
db1d3e1b
AS
215742004-11-21 Andreas Schwab <schwab@suse.de>
21575
21576 * linux-m68k-low.c (m68k_num_gregs): Define.
21577 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21578 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21579 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21580 (m68k_breakpoint_at): New. Add to the_low_target.
21581
21582 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21583 srv_linux_thread_db to yes.
21584
43360365
JB
215852004-10-20 Joel Brobecker <brobecker@gnat.com>
21586
21587 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21588 (ARCH_SET_FS): Likewise.
21589 (ARCH_GET_FS): Likewise.
21590 (ARCH_GET_GS): Likewise.
21591
fd500816
DJ
215922004-10-16 Daniel Jacobowitz <dan@debian.org>
21593
21594 * linux-i386-low.c (ps_get_thread_area): New.
21595 * linux-x86-64-low.c (ps_get_thread_area): New.
21596 * linux-low.c: Include <sys/syscall.h>.
21597 (linux_kill_one_process): Don't kill the first thread here.
21598 (linux_kill): Kill the first thread here.
21599 (kill_lwp): New function.
21600 (send_sigstop, linux_send_signal): Use it.
21601 * proc-service.c: Clean up #ifdefs.
21602 (fpregset_info): Delete.
21603 (ps_lgetregs): Update and enable implementation.
21604 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21605 implementations.
21606 * remote-utils.c (struct sym_cache, symbol_cache): New.
21607 (input_interrupt): Print a clearer message.
21608 (async_io_enabled): New variable.
21609 (enable_async_io, disable_async_io): Use it. Update comments.
21610 (look_up_one_symbol): Use the symbol cache.
21611 * thread-db.c (thread_db_look_up_symbols): New function.
21612 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21613
f6de3c42
DJ
216142004-10-16 Daniel Jacobowitz <dan@debian.org>
21615
21616 * configure.in: Test for -rdynamic.
21617 * configure: Regenerated.
21618 * Makefile (INTERNAL_LDFLAGS): New.
21619 (gdbserver, gdbreplay): Use it.
21620
2c0fc042
AC
216212004-09-02 Andrew Cagney <cagney@gnu.org>
21622
21623 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21624
075b3282
DJ
216252004-03-23 Daniel Jacobowitz <drow@mvista.com>
21626
21627 * linux-low.c (linux_wait): Clear all_processes list also.
21628
fa6a77dc
DJ
216292004-03-12 Daniel Jacobowitz <drow@mvista.com>
21630
21631 * linux-low.c: Include <errno.h>. Remove extern declaration of
21632 errno.
21633
6d782a97
DJ
216342004-03-12 Daniel Jacobowitz <drow@mvista.com>
21635
21636 * gdbreplay.c, server.h, utils.c: Update copyright years.
21637
3a7fb99b
DJ
216382004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21639
21640 * server.c (main): Print child status or termination signal from
21641 variable 'signal', not 'sig'.
21642
c3e735a6
DJ
216432004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21644
21645 * linux-low.c (linux_read_memory): Change return type to
21646 int. Check for and return error from ptrace().
21647 * target.c (read_inferior_memory): Change return type to int. Pass
21648 back return status from the_target->read_memory().
21649 * target.h (struct target_ops): Adapt *read_memory() prototype.
21650 Update comment.
21651 (read_inferior_memory): Adapt prototype.
21652 * server.c (main): Return an error packet if
21653 read_inferior_memory() returns an error.
21654
a59d1c82
DJ
216552004-03-04 Daniel Jacobowitz <drow@mvista.com>
21656
21657 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21658 Unify with other clean targets.
21659
dc3f8883
DJ
216602004-02-29 Daniel Jacobowitz <drow@mvista.com>
21661
21662 * server.c (handle_v_cont): Call set_desired_inferior.
21663
89a208da
DJ
216642004-02-29 Daniel Jacobowitz <drow@mvista.com>
21665
21666 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21667
62ea82f5
DJ
216682004-02-29 Daniel Jacobowitz <drow@mvista.com>
21669
21670 * linux-low.c (linux_wait): Unblock async I/O.
21671 (linux_resume): Block and enable async I/O.
21672 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21673 * server.h (block_async_io, unblock_async_io): Add prototypes.
21674
6910d122
DJ
216752004-02-29 Daniel Jacobowitz <drow@mvista.com>
21676
21677 * remote-utils.c (remote_open): Print a status notice after
21678 opening a TCP port.
21679 * server.c (attach_inferior): Print a status notice after
21680 attaching.
21681
216822004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21683
21684 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21685
c89dc5d4
DJ
216862004-02-26 Daniel Jacobowitz <drow@mvista.com>
21687
21688 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21689 error packet.
21690 * server.c, target.h: Update copyright years.
21691
4b8dad4a
RM
216922004-02-25 Roland McGrath <roland@redhat.com>
21693
21694 * target.h (struct target_ops): New member `read_auxv'.
21695 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21696 * linux-low.c (linux_read_auxv): New function.
21697 (linux_target_ops): Initialize `read_auxv' member to that.
21698
d7446758
JB
216992004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21700
21701 Committed by Jim Blandy <jimb@redhat.com>.
21702
21703 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21704 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21705 instead of GPR_SIZE to distiguish s390 and s390x targets.
21706
5544ad89
DJ
217072004-01-31 Daniel Jacobowitz <drow@mvista.com>
21708
21709 * linux-low.c: Update copyright year.
21710 (check_removed_breakpoint): Clear pending_is_breakpoint.
21711 (linux_set_resume_request, linux_queue_one_thread)
21712 (resume_status_pending_p): New functions.
21713 (linux_continue_one_thread): Use process->resume.
21714 (linux_resume): Only resume threads if there are no pending events.
21715 * linux-low.h (struct process_info): Add resume request
21716 pointer.
21717
2a68b70e
DJ
217182004-01-30 Daniel Jacobowitz <drow@mvista.com>
21719
21720 * regcache.c (new_register_cache): Clear the allocated register
21721 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21722
64386c31
DJ
217232003-10-13 Daniel Jacobowitz <drow@mvista.com>
21724
21725 * linux-low.c (linux_resume): Take a struct thread_resume *
21726 argument.
21727 (linux_wait): Update call.
21728 (resume_ptr): New static variable.
21729 (linux_continue_one_thread): Renamed from
21730 linux_continue_one_process. Use resume_ptr.
21731 (linux_resume): Use linux_continue_one_thread.
21732 * server.c (handle_v_cont, handle_v_requests): New functions.
21733 (myresume): New function.
21734 (main): Handle 'v' case.
21735 * target.h (struct thread_resume): New type.
21736 (struct target_ops): Change argument of "resume" to struct
21737 thread_resume *.
21738 (myresume): Delete macro.
21739
c938e9b0
L
217402003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21741
21742 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21743 (uninstall): Support DESTDIR.
21744
7f313d07
BC
21745Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21746
21747 * configure.srv: Add xscale*linux copy of arm*linux entry.
21748
3b2fc2ea
DJ
217492003-07-24 Daniel Jacobowitz <drow@mvista.com>
21750
21751 * linux-arm-low.c (arm_reinsert_addr): New function.
21752 (the_low_target): Add arm_reinsert_addr.
21753
1c0a559e
MK
217542003-07-08 Mark Kettenis <kettenis@gnu.org>
21755
21756 * mem-break.c: Remove whitespace at end of file.
21757
43d5792c
DJ
217582003-06-28 Daniel Jacobowitz <drow@mvista.com>
21759
21760 * configure.in: Check whether we need to prototype strerror.
21761 * server.h: Optionally prototype strerror.
21762 * gdbreplay.c (perror_with_name): Use strerror.
21763 * linux-low.c (linux_attach_lwp): Use strerror.
21764 * utils.c (perror_with_name): Use strerror.
21765 * config.in, configure: Regenerated.
21766
c8a86edf
DJ
217672003-06-28 Daniel Jacobowitz <drow@mvista.com>
21768
21769 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21770 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21771
73d37363
DJ
217722003-06-20 Daniel Jacobowitz <drow@mvista.com>
21773
21774 * Makefile.in (SFILES): Update.
21775 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21776 low-sun3.c: Remove files.
21777
6ad8ae5c
DJ
217782003-06-17 Daniel Jacobowitz <drow@mvista.com>
21779
21780 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21781 (linux_detach_one_process, linux_detach): New functions.
21782 (linux_target_ops): Add linux_detach.
21783 * server.c (main): Handle 'D' packet.
21784 * target.h (struct target_ops): Add "detach" member.
21785 (detach_inferior): Define.
21786
1581182a
MK
217872003-06-13 Mark Kettenis <kettenis@gnu.org>
21788
21789 From Kelley Cook <kelleycook@wideopenwest.com>:
21790 * configure.srv: Accept i[34567]86 variants.
21791
e5379b03
DJ
217922003-06-05 Daniel Jacobowitz <drow@mvista.com>
21793
21794 * linux-low.c (linux_wait_for_event): Correct comment typos.
21795 (linux_resume_one_process): Call check_removed_breakpoint.
21796 (linux_send_signal): New function.
21797 (linux_target_ops): Add linux_send_signal.
21798 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21799 of kill.
21800 * target.h (struct target_ops): Add send_signal.
21801
2ff29de4
JB
218022003-05-29 Jim Blandy <jimb@redhat.com>
21803
21804 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21805 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21806 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21807 away part of the register's value.
21808
254787d4
DJ
218092003-03-26 Daniel Jacobowitz <drow@mvista.com>
21810
21811 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21812 (linux_wait_for_event, linux_init_signals): Likewise.
21813
94e10508
DJ
218142003-03-17 Daniel Jacobowitz <drow@mvista.com>
21815
21816 * configure.in: Check for stdlib.h.
21817 * configure: Regenerated.
21818 * config.in: Regenerated.
21819
4c0711e0
DJ
218202003-01-04 Andreas Schwab <schwab@suse.de>
21821
21822 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21823
ef66e766
AC
218242003-01-02 Andrew Cagney <ac131313@redhat.com>
21825
21826 * Makefile.in: Remove obsolete code.
21827
a1358604
DJ
218282002-11-20 Daniel Jacobowitz <drow@mvista.com>
21829
21830 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21831 defined(PT_FPR0_HI).
21832
23ce3b1c
DJ
218332002-11-17 Stuart Hughes <seh@zee2.com>
21834
21835 * linux-arm-low.c (arm_num_regs): Increase.
21836 (arm_regmap): Include status register.
21837
218382002-11-17 Daniel Jacobowitz <drow@mvista.com>
21839
21840 * linux-low.c (register_addr): Remove incorrect -1 check.
21841
a9fa9f7d
DJ
218422002-08-29 Daniel Jacobowitz <drow@mvista.com>
21843
21844 * linux-low.c (linux_create_inferior): Call setpgid. Return
21845 the new PID.
21846 (unstopped_p, linux_signal_pid): Remove.
21847 (linux_target_ops): Remove linux_signal_pid.
21848 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21849 global instead of target method.
21850 * target.h (struct target_ops): Remove signal_pid. Update comment
21851 for create_inferior.
21852 * server.c (signal_pid): New variable.
21853 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21854 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21855 (attach_inferior): Set signal_pid.
21856
17574093
DJ
218572002-08-23 Daniel Jacobowitz <drow@mvista.com>
21858
21859 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21860
218612002-08-20 Jim Blandy <jimb@redhat.com>
21862
21863 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21864 default for this.
21865
218662002-08-01 Andrew Cagney <cagney@redhat.com>
21867
21868 * Makefile.in: Make chill references obsolete.
21869
218702002-07-24 Kevin Buettner <kevinb@redhat.com>
21871
21872 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21873 * configure: Regenerate.
21874 * config.in: Regenerate.
21875
218762002-07-09 David O'Brien <obrien@FreeBSD.org>
21877
21878 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21879 (perror_with_name, remote_close, remote_open, expect, play): Static.
21880
218812002-07-04 Michal Ludvig <mludvig@suse.cz>
21882
4b8dad4a 21883 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21884 byte offsets instead of an array of indexes.
21885 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21886
218872002-06-13 Daniel Jacobowitz <drow@mvista.com>
21888
21889 * regcache.c: Add comment.
21890
218912002-06-11 Daniel Jacobowitz <drow@mvista.com>
21892
21893 * thread-db.c: New file.
21894 * proc-service.c: New file.
21895 * acinclude.m4: New file.
21896 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21897 proc-service.o, and thread-db.o.
21898 (linux-low.o): Add USE_THREAD_DB.
21899 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21900 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21901 * aclocal.m4: Regenerated.
21902 * config.in: Regenerated.
21903 * configure: Regenerated.
21904 * configure.in: Check for proc_service.h, sys/procfs.h,
21905 thread_db.h, and linux/elf.h headrs.
21906 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21907 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21908 Check for -lthread_db and thread support.
21909 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21910 PowerPC, and SuperH.
21911 * i387-fp.c: Constify arguments.
21912 * i387-fp.h: Likewise.
21913 * inferiors.c: (struct thread_info): Renamed from
21914 `struct inferior_info'. Remove PID member. Use generic inferior
21915 list header. All uses updated.
21916 (inferiors, signal_pid): Removed.
21917 (all_threads): New variable.
21918 (get_thread): Define.
21919 (add_inferior_to_list): New function.
21920 (for_each_inferior): New function.
21921 (change_inferior_id): New function.
21922 (add_inferior): Removed.
21923 (remove_inferior): New function.
21924 (add_thread): New function.
21925 (free_one_thread): New function.
21926 (remove_thread): New function.
21927 (clear_inferiors): Use for_each_inferior and free_one_thread.
21928 (find_inferior): New function.
21929 (find_inferior_id): New function.
21930 (inferior_target_data): Update argument type.
21931 (set_inferior_target_data): Likewise.
21932 (inferior_regcache_data): Likewise.
21933 (set_inferior_regcache_data): Likewise.
21934 * linux-low.c (linux_bp_reinsert): Remove.
21935 (all_processes, stopping_threads, using_thrads)
21936 (struct pending_signals, debug_threads, pid_of): New.
21937 (inferior_pid): Replace with macro.
21938 (struct inferior_linux_data): Remove.
21939 (get_stop_pc, add_process): New functions.
21940 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21941 Use add_process and add_thread.
21942 (linux_attach_lwp): New function, based on old linux_attach. Use
21943 add_process and add_thread. Set stop_expected for new threads.
21944 (linux_attach): New function.
21945 (linux_kill_one_process): New function.
21946 (linux_kill): Kill all LWPs.
21947 (linux_thread_alive): Use find_inferior_id.
21948 (check_removed_breakpoints, status_pending_p): New functions.
21949 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21950 Update. Use WNOHANG. Wait for cloned processes also. Update process
21951 struct for the found process.
21952 (linux_wait_for_event): New function.
21953 (linux_wait): Use it. Support LWPs.
21954 (send_sigstop, wait_for_sigstop, stop_all_processes)
21955 (linux_resume_one_process, linux_continue_one_process): New functions.
21956 (linux_resume): Support LWPs.
21957 (REGISTER_RAW_SIZE): Remove.
21958 (fetch_register): Use register_size instead. Call supply_register.
21959 (usr_store_inferior_registers): Likewise. Call collect_register.
21960 Fix recursive case.
21961 (regsets_fetch_inferior_registers): Improve error message.
21962 (regsets_store_inferior_registers): Add debugging.
21963 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21964 (unstopped_p, linux_signal_pid): New functions.
21965 (linux_target_ops): Add linux_signal_pid.
21966 (linux_init_signals): New function.
21967 (initialize_low): Call it. Initialize using_threads.
21968 * regcache.c (inferior_regcache_data): Add valid
21969 flag.
21970 (get_regcache): Fetch registers lazily. Add fetch argument
21971 and update all callers.
21972 (regcache_invalidate_one, regcache_invalidate): New
21973 functions.
21974 (new_register_cache): Renamed from create_register_cache.
21975 Return the new regcache.
21976 (free_register_cache): Change argument to a void *.
21977 (registers_to_string, registers_from_string): Call get_regcache
21978 with fetch flag set.
21979 (register_data): Make static. Pass fetch flag to get_regcache.
21980 (supply_register): Call get_regcache with fetch flag clear.
21981 (collect_register): Call get_regcache with fetch flag set.
21982 (collect_register_as_string): New function.
21983 * regcache.h: Update.
21984 * remote-utils.c (putpkt): Flush after debug output and use
21985 stderr.
21986 Handle input interrupts while waiting for an ACK.
21987 (input_interrupt): Use signal_pid method.
21988 (getpkt): Flush after debug output and use stderr.
21989 (outreg): Use collect_register_as_string.
21990 (new_thread_notify, dead_thread_notify): New functions.
21991 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21992 and general_thread.
21993 (look_up_one_symbol): Flush after debug output.
21994 * server.c (step_thread, server_waiting): New variables.
21995 (start_inferior): Don't use signal_pid. Update call to mywait.
21996 (attach_inferior): Update call to mywait.
21997 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21998 (main): Don't fetch/store registers explicitly. Use
21999 set_desired_inferior. Support proposed ``Hs'' packet. Update
22000 calls to mywait.
22001 * server.h: Update.
22002 (struct inferior_list, struct_inferior_list_entry): New.
22003 * target.c (set_desired_inferior): New.
22004 (write_inferior_memory): Constify.
22005 (mywait): New function.
22006 * target.h: Update.
22007 (struct target_ops): New signal_pid method.
22008 (mywait): Removed macro, added prototype.
22009
22010 * linux-low.h (regset_func): Removed.
22011 (regset_fill_func, regset_store_func): New.
22012 (enum regset_type): New.
22013 (struct regset_info): Add type field. Use new operation types.
22014 (struct linux_target_ops): stop_pc renamed to get_pc.
22015 Add decr_pc_after_break and breakpoint_at.
22016 (get_process, get_thread_proess, get_process_thread)
22017 (strut process_info, all_processes, linux_attach_lwp)
22018 (thread_db_init): New.
22019
22020 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22021 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22022 (the_low_target): Add new members.
22023 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22024 (i386_store_fpxregset): Constify.
22025 (target_regsets): Add new kind identifier.
22026 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22027 (i386_set_pc): Add debugging.
22028 (i386_breakpoint_at): New function.
22029 (the_low_target): Add new members.
22030 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22031 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22032 (mips_breakpoint_at): New.
22033 (the_low_target): Add new members.
22034 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22035 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22036 (the_low_target): Add new members.
22037 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22038 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22039 (the_low_target): Add new members.
22040 * linux-x86-64-low.c (target_regsets): Add new kind
22041 identifier.
22042
220432002-05-15 Daniel Jacobowitz <drow@mvista.com>
22044
22045 From Martin Pool <mbp@samba.org>:
22046 * server.c (gdbserver_usage): New function.
22047 (main): Call it.
22048
220492002-05-14 Daniel Jacobowitz <drow@mvista.com>
22050
22051 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22052 stop_at -> stop_pc.
22053
220542002-05-04 Andrew Cagney <ac131313@redhat.com>
22055
22056 * Makefile.in: Remove obsolete code.
22057
220582002-04-24 Michal Ludvig <mludvig@suse.cz>
22059
22060 * linux-low.c (regsets_fetch_inferior_registers),
22061 (regsets_store_inferior_registers): Removed cast to int from
22062 ptrace() calls.
22063 * regcache.h: Added declaration of struct inferior_info.
22064
220652002-04-20 Daniel Jacobowitz <drow@mvista.com>
22066
22067 * inferiors.c (struct inferior_info): Add regcache_data.
22068 (add_inferior): Call create_register_cache.
22069 (clear_inferiors): Call free_register_cache.
22070 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22071 * regcache.c (struct inferior_regcache_data): New.
22072 (registers): Remove.
22073 (get_regcache): New function.
22074 (create_register_cache, free_register_cache): New functions.
22075 (set_register_cache): Don't initialize the register cache here.
22076 (registers_to_string, registers_from_string, register_data): Call
22077 get_regcache.
22078 * regcache.h: Add prototypes.
22079 * server.h: Likewise.
22080
220812002-04-20 Daniel Jacobowitz <drow@mvista.com>
22082
22083 * mem-break.c: New file.
22084 * mem-break.h: New file.
22085 * Makefile.in: Add mem-break.o rule; update server.h
22086 dependencies.
22087 * inferiors.c (struct inferior_info): Add target_data
22088 member.
22089 (clear_inferiors): Free target_data member if set.
22090 (inferior_target_data, set_inferior_target_data): New functions.
22091 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22092 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22093 * linux-low.c (linux_bp_reinsert): New variable.
22094 (struct inferior_linux_data): New.
22095 (linux_create_inferior): Use set_inferior_target_data.
22096 (linux_attach): Likewise. Call add_inferior.
22097 (linux_wait_for_one_inferior): New function.
22098 (linux_wait): Call it.
22099 (linux_write_memory): Add const.
22100 (initialize_low): Call set_breakpoint_data.
22101 * linux-low.h (struct linux_target_ops): Add breakpoint
22102 handling members.
22103 * server.c (attach_inferior): Remove extra add_inferior
22104 call.
22105 * server.h: Include mem-break.h. Update inferior.c
22106 prototypes.
22107 * target.c (read_inferior_memory)
22108 (write_inferior_memory): New functions.
22109 * target.h (read_inferior_memory)
22110 (write_inferior_memory): Change macros to prototypes.
22111 (struct target_ops): Update comments. Add const to write_memory
22112 definition.
22113
221142002-04-11 Daniel Jacobowitz <drow@mvista.com>
22115
22116 * linux-low.c (usr_store_inferior_registers): Support
22117 registers which are allowed to fail to store.
22118 * linux-low.h (linux_target_ops): Likewise.
22119 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22120 (ppc_cannot_store_register): FPSCR may not be storable.
22121
221222002-04-09 Daniel Jacobowitz <drow@mvista.com>
22123
22124 * server.h: Include <string.h> if HAVE_STRING_H.
22125 * ChangeLog: Correct paths in last ChangeLog entry.
22126
221272002-04-09 Daniel Jacobowitz <drow@mvista.com>
22128
22129 * linux-low.h: Remove obsolete prototypes.
22130 (struct linux_target_ops): New.
22131 (extern the_low_target): New.
22132 * linux-low.c (num_regs, regmap): Remove declarations.
22133 (register_addr): Use the_low_target explicitly.
22134 (fetch_register): Likewise.
22135 (usr_fetch_inferior_registers): Likewise.
22136 (usr_store_inferior_registers): Likewise.
22137 * linux-arm-low.c (num_regs): Remove.
22138 (arm_num_regs): Define.
22139 (arm_regmap): Renamed from regmap, made static.
22140 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22141 made static.
22142 (arm_cannot_store_register): Renamed from cannot_store_register,
22143 made static.
22144 (the_low_target): New.
22145 * linux-i386-low.c (num_regs): Remove.
22146 (i386_num_regs): Define.
22147 (i386_regmap): Renamed from regmap, made static.
22148 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22149 made static.
22150 (i386_cannot_store_register): Renamed from cannot_store_register,
22151 made static.
22152 (the_low_target): New.
22153 * linux-ia64-low.c (num_regs): Remove.
22154 (ia64_num_regs): Define.
22155 (ia64_regmap): Renamed from regmap, made static.
22156 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22157 made static.
22158 (ia64_cannot_store_register): Renamed from cannot_store_register,
22159 made static.
22160 (the_low_target): New.
22161 * linux-m68k-low.c (num_regs): Remove.
22162 (m68k_num_regs): Define.
22163 (m68k_regmap): Renamed from regmap, made static.
22164 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22165 made static.
22166 (m68k_cannot_store_register): Renamed from cannot_store_register,
22167 made static.
22168 (the_low_target): New.
22169 * linux-mips-low.c (num_regs): Remove.
22170 (mips_num_regs): Define.
22171 (mips_regmap): Renamed from regmap, made static.
22172 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22173 made static.
22174 (mips_cannot_store_register): Renamed from cannot_store_register,
22175 made static.
22176 (the_low_target): New.
22177 * linux-ppc-low.c (num_regs): Remove.
22178 (ppc_num_regs): Define.
22179 (ppc_regmap): Renamed from regmap, made static.
22180 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22181 made static.
22182 (ppc_cannot_store_register): Renamed from cannot_store_register,
22183 made static.
22184 (the_low_target): New.
22185 * linux-s390-low.c (num_regs): Remove.
22186 (s390_num_regs): Define.
22187 (s390_regmap): Renamed from regmap, made static.
22188 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22189 made static.
22190 (s390_cannot_store_register): Renamed from cannot_store_register,
22191 made static.
22192 (the_low_target): New.
22193 * linux-sh-low.c (num_regs): Remove.
22194 (sh_num_regs): Define.
22195 (sh_regmap): Renamed from regmap, made static.
22196 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22197 made static.
22198 (sh_cannot_store_register): Renamed from cannot_store_register,
22199 made static.
22200 (the_low_target): New.
22201 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22202 (the_low_target): New.
22203
222042002-04-09 Daniel Jacobowitz <drow@mvista.com>
22205
22206 * Makefile.in: Add stamp-h target.
22207 * configure.in: Create stamp-h.
22208 * configure: Regenerated.
22209
222102002-04-09 Daniel Jacobowitz <drow@mvista.com>
22211
22212 * inferiors.c: New file.
22213 * target.c: New file.
22214 * target.h: New file.
22215 * Makefile.in: Add target.o and inferiors.o. Update
22216 dependencies.
22217 * linux-low.c (inferior_pid): New static variable,
22218 moved from server.c.
22219 (linux_create_inferior): Renamed from create_inferior.
22220 Call add_inferior. Return 0 on success instead of a PID.
22221 (linux_attach): Renamed from myattach.
22222 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22223 (linux_thread_alive): Renamed from mythread_alive.
22224 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22225 child dies.
22226 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22227 (regsets_store_inferior_registers): Correct error message.
22228 Add missing ``return 0''.
22229 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22230 (linux_store_registers): Renamed from store_inferior_registers.
22231 (linux_read_memory): Renamed from read_inferior_memory.
22232 (linux_write_memory): Renamed from write_inferior_memory.
22233 (linux_target_ops): New structure.
22234 (initialize_low): Call set_target_ops ().
22235 * remote-utils.c (unhexify): New function.
22236 (hexify): New function.
22237 (input_interrupt): Send signals to ``signal_pid''.
22238 * server.c (inferior_pid): Remove.
22239 (start_inferior): Update create_inferior call.
22240 (attach_inferior): Call add_inferior.
22241 (handle_query): New function.
22242 (main): Call handle_query for `q' packets.
22243 * server.h: Include "target.h". Remove obsolete prototypes.
22244 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22245
222462002-04-09 Daniel Jacobowitz <drow@mvista.com>
22247
22248 * Makefile.in: Add WARN_CFLAGS. Update configury
22249 dependencies.
22250 * configure.in: Check for <string.h>
22251 * configure: Regenerate.
22252 * config.in: Regenerate.
22253 * gdbreplay.c: Include needed system headers.
22254 (remote_open): Remove strchr prototype.
22255 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22256 * regcache.c (supply_register): Change buf argument to const void *.
22257 (supply_register_by_name): Likewise.
22258 (collect_register): Change buf argument to void *.
22259 (collect_register_by_name): Likewise.
22260 * regcache.h: Add missing prototypes.
22261 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22262 * server.c (handle_query): New function.
22263 (attached): New static variable, moved out of main.
22264 (main): Quiet longjmp clobber warnings.
22265 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22266 * utils.c (error): Remove NORETURN.
22267 (fatal): Likewise.