]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
[gdb/testsuite] Add gdb.base/valgrind-infcall-2.exp
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
b315b67d
SM
12020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * server.cc (handle_query): Use std::vector of
4 std::string for `qsupported` vector. Use separate
5 vector for unknowns.
6 * target.h (class process_stratum_target) <process_qsupported>:
7 Change parameters to array_view of const char *.
8 (target_process_qsupported): Remove `count` parameter.
9 * target.cc (process_stratum_target::process_qsupported): Change
10 parameters to array_view of const char *.
11 * linux-x86-low.cc (class x86_target) <process_qsupported>:
12 Likewise.
13
f638ed73
TV
142020-06-29 Tom de Vries <tdevries@suse.de>
15
16 * ax.h: Include gdbsupport/debug_agent.h.
17
fbf42f4e
AB
182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
19
20 * tdesc.cc (struct tdesc_compatible_info): New struct.
21 (tdesc_compatible_info_list): New function.
22 (tdesc_compatible_info_arch_name): New function.
23
013e3554
TBA
242020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
25
26 Use std::list to stop pending signal instead of manually-created
27 linked list.
28 * linux-low.h: Include <list>.
29 (struct pending_signal): Move here from linux-low.cc.
30 (struct lwp_info) <pending_signals>
31 <pending_signals_to_report>: Update the type.
32 * linux-low.cc (struct pending_signals): Remove.
33 (linux_process_target::delete_lwp)
34 (linux_process_target::add_lwp)
35 (enqueue_one_deferred_signal)
36 (dequeue_one_deferred_signal)
37 (enqueue_pending_signal)
38 (linux_process_target::resume_one_lwp_throw)
39 (linux_process_target::thread_needs_step_over)
40 (linux_process_target::resume_one_thread)
41 (linux_process_target::proceed_one_lwp): Update the use of pending
42 signal list.
43
7d458ea5
SM
442020-06-17 Simon Marchi <simon.marchi@efficios.com>
45
46 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
47 Remove.
48
84b300de
SM
492020-06-12 Simon Marchi <simon.marchi@efficios.com>
50
51 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
52 * configure.srv: Remove mingw32ce cases.
53 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
54 * win32-low.h (to_back_slashes): Remove.
55 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
56
96c16e2b
SM
572020-06-12 Simon Marchi <simon.marchi@efficios.com>
58
59 * Makefile.in (SFILES): linux-tile-low.cc.
60 * configure.srv: Remove tilegx case.
61 * linux-tile-low.cc: Remove.
62
bd1467ae
SM
632020-06-12 Simon Marchi <simon.marchi@efficios.com>
64
65 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
66 * configure.srv: Remove m32r case.
67 * linux-m32r-low.cc: Remove.
68
7b46bf6f
SM
692020-06-12 Simon Marchi <simon.marchi@efficios.com>
70
71 * Makefile.in (SFILES): Remove linux-cris-low.c.
72 * configure.srv: Remove cris cases.
73 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
74
1fa29f56
SM
752020-06-12 Simon Marchi <simon.marchi@efficios.com>
76
77 * Makefile.in (SFILES): Remove linux-bfin-low.c.
78 * configure.srv: Remove bfin case.
79 * linux-bfin-low.cc: Remove.
80 * linux-low.cc: Remove BFIN-conditional code.
81
613f149a
SM
822020-06-12 Simon Marchi <simon.marchi@efficios.com>
83
84 * configure: Re-generate.
85 * configure.ac: Remove srv_qnx test.
86 * configure.srv: Remove nto case.
87 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
88 * remote-utils.c: Remove __QNX__-guarded code.
89
fdb95bf5
SM
902020-06-12 Simon Marchi <simon.marchi@efficios.com>
91
92 * configure: Re-generate.
93 * configure.ac: Remove srv_lynxos test.
94 * configure.srv: Remove lynxos cases.
95 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
96 Remove.
97
c00094dc
SM
982020-06-12 Simon Marchi <simon.marchi@efficios.com>
99
100 * README: Fix a few outdated or incoherent things.
101
6479bf85
HD
1022020-05-27 Hannes Domani <ssbssa@yahoo.de>
103
104 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
105 (win32_clear_inferiors): Use open_process_used.
106 (get_child_debug_event): Likewise.
107
bea571eb
MW
1082020-05-25 Michael Weghorn <m.weghorn@posteo.de>
109
110 PR gdbserver/25893
111 * linux-low.cc (linux_process_target::create_inferior),
112 lynx-low.cc (lynx_process_target::create_inferior),
113 win32-low.cc (win32_process_target::create_inferior): Use
114 construct_inferior_arguments instead of stringify_argv
115 to get string representation which properly escapes
116 special characters.
117 * server.cc (handle_v_run): Just pass empty program arg
118 as such, since any further processing is now handled via
119 construct_inferior_arguments.
120
ace6b919
MW
1212020-05-25 Michael Weghorn <m.weghorn@posteo.de>
122
123 * nto-low.cc (nto_process_target::create_inferior): Pass
124 argv to spawnp function as char **.
125
b69ca137
MW
1262020-05-25 Michael Weghorn <m.weghorn@posteo.de>
127
128 * server.cc (captured_main), (handle_v_run): No longer
129 insert extra NULL element to args vector.
130
51e2cfa2
PA
1312020-05-23 Pedro Alves <palves@redhat.com>
132
133 * gdb-safe-ctype.h: New.
134
8bbf0394
TBA
1352020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
136
137 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
138 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
139 (ia64_target::low_breakpoint_at): Ditto.
140
01370779
HD
1412020-05-15 Hannes Domani <ssbssa@yahoo.de>
142
143 * win32-i386-low.cc (i386_supports_z_point_type): Handle
144 Z_PACKET_HW_BP z_type.
145 (i386_insert_point): Handle raw_bkpt_type type.
146 (i386_remove_point): Likewise.
147
7d186bc0
HD
1482020-04-30 Hannes Domani <ssbssa@yahoo.de>
149
150 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
151 Add arch/i386.o.
152 * win32-arm-low.cc (arm_num_regs): New function.
153 (struct win32_target_ops): Use arm_num_regs.
154 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
155 processes.
156 (i386_get_thread_context): Likewise.
157 (i386_prepare_to_resume): Likewise.
158 (i386_thread_added): Likewise.
159 (i386_single_step): Likewise.
160 (i386_fetch_inferior_register): Likewise.
161 (i386_store_inferior_register): Likewise.
162 (i386_arch_setup): Likewise.
163 (i386_win32_num_regs): New function.
164 (struct win32_target_ops): Use i386_win32_num_regs.
165 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
166 processes.
167 (win32_require_context): Likewise.
168 (child_add_thread): Likewise.
169 (do_initial_child_stuff): Likewise.
170 (continue_one_thread): Likewise.
171 (win32_process_target::resume): Likewise.
172 (load_psapi): Likewise.
173 (win32_add_all_dlls): Likewise.
174 (maybe_adjust_pc): Likewise.
175 (win32_process_target::qxfer_siginfo): Likewise.
176 (initialize_low): Likewise.
177 * win32-low.h (struct win32_target_ops): Change num_regs to
178 callback function.
179
1eb39914
SM
1802020-04-27 Simon Marchi <simon.marchi@efficios.com>
181
182 * configure.ac: Remove check for fs_base/gs_base in
183 user_regs_struct.
184 * configure: Re-generate.
185 * config.in: Re-generate.
186 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
187 x86_store_gregset): Adjust.
188
51ac8e22
HD
1892020-04-22 Hannes Domani <ssbssa@yahoo.de>
190
191 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
192 comparison.
193
a010605f
TT
1942020-04-16 Tom Tromey <tromey@adacore.com>
195
196 * win32-low.cc (windows_nat::handle_access_violation): New
197 function.
198
e2275c6e
SM
1992020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
200
201 * win32-low.cc (get_child_debug_event): Fix format string warning.
202
73944e9f
TT
2032020-04-13 Tom Tromey <tom@tromey.com>
204
205 * server.h (gdb_fildes_t): Remove typedef.
206 * remote-utils.c (remote_desc, list_desc): Now int.
207 (INVALID_DESCRIPTOR): Remove.
208 (gdb_connected, remote_close)
209 (check_remote_input_interrupt_request): Update.
210 * utils.h (pfildes): Don't declare.
211 * utils.c (pfildes): Remove.
212
55d7aec8
TT
2132020-04-13 Tom Tromey <tom@tromey.com>
214
215 * server.h (handle_serial_event, handle_target_event): Update.
216 * server.c: Don't call initialize_event_loop.
217 (keep_processing_events): New global.
218 (handle_serial_event): Return void. Set keep_processing_events.
219 (handle_target_event): Return void.
220 (start_event_loop): Move from event-loop.c. Rewrite.
221 * remote-utils.c (handle_accept_event): Return void.
222 (reset_readchar): Use delete_timer.
223 (process_remaining): Return void.
224 (reschedule): Use create_timer.
225 * event-loop.h: Remove.
226 * event-loop.cc: Remove.
227 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
228
e487f994
TT
2292020-04-13 Tom Tromey <tom@tromey.com>
230
231 * server.c (invoke_async_signal_handlers)
232 (check_async_event_handlers, flush_streams, gdb_select): New
233 functions.
234
8ae8e197
TT
2352020-04-13 Tom Tromey <tom@tromey.com>
236
237 * configure: Rebuild.
238 * config.in: Rebuild.
239
360ad8b3
TT
2402020-04-08 Tom Tromey <tromey@adacore.com>
241
242 PR gdb/22992
243 * win32-low.c (child_continue): Call matching_pending_stop.
244 (get_child_debug_event): Call fetch_pending_stop. Push pending
245 stop when needed.
246
523d4f80
TT
2472020-04-08 Tom Tromey <tromey@adacore.com>
248
249 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
250 (win32_process_target::supports_stopped_by_sw_breakpoint):
251 Declare.
252 * win32-low.c (win32_supports_z_point_type): Always handle
253 Z_PACKET_SW_BP.
254 (win32_insert_point): Call insert_memory_breakpoint when needed.
255 (win32_remove_point): Call remove_memory_breakpoint when needed.
256 (win32_process_target::stopped_by_sw_breakpoint)
257 (win32_process_target::supports_stopped_by_sw_breakpoint): New
258 methods.
259 (win32_target_ops): Update.
260 (maybe_adjust_pc): New function.
261 (win32_wait): Call maybe_adjust_pc.
262
e54e5929
TT
2632020-04-08 Tom Tromey <tromey@adacore.com>
264
265 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
266 field.
267 * win32-i386-low.c (the_low_target): Update.
268 * win32-arm-low.c (the_low_target): Update.
269
d6225aff
TT
2702020-04-08 Tom Tromey <tromey@adacore.com>
271
272 * win32-low.h (win32_process_target::read_pc)
273 (win32_process_target::write_pc): Declare.
274 * win32-low.c (win32_process_target::read_pc)
275 (win32_process_target::write_pc): New methods.
276 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
277 functions.
278 (the_low_target): Update.
279 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
280 functions.
281 (the_low_target): Update.
282
2c1d95e8
TT
2832020-04-08 Tom Tromey <tromey@adacore.com>
284
285 * win32-low.c (win32_kill, get_child_debug_event): Use
286 wait_for_debug_event.
287
e758e19c
TT
2882020-04-08 Tom Tromey <tromey@adacore.com>
289
290 * win32-low.c (child_continue): Call continue_last_debug_event.
291
8d30e395
TT
2922020-04-08 Tom Tromey <tromey@adacore.com>
293
294 * win32-low.c (handle_exception): Remove.
295 (windows_nat::handle_ms_vc_exception): New function.
296 (get_child_debug_event): Add "continue_status" parameter.
297 Update.
298 (win32_wait): Update.
299
a816ba18
TT
3002020-04-08 Tom Tromey <tromey@adacore.com>
301
302 * win32-low.c (windows_nat::handle_load_dll): Rename from
303 handle_load_dll. No longer static.
304 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
305 No longer static.
306
d41b524f
TT
3072020-04-08 Tom Tromey <tromey@adacore.com>
308
309 * win32-low.c (handle_output_debug_string): Add parameter. Change
310 return type.
311 (win32_kill, get_child_debug_event): Update.
312
3c76026d
TT
3132020-04-08 Tom Tromey <tromey@adacore.com>
314
315 * win32-low.c (current_process_handle, current_process_id)
316 (main_thread_id, last_sig, current_event, siginfo_er): Move to
317 nat/windows-nat.c.
318
9d8679cc
TT
3192020-04-08 Tom Tromey <tromey@adacore.com>
320
321 * win32-low.c (get_image_name): Remove.
322 (handle_load_dll): Update.
323
28688adf
TT
3242020-04-08 Tom Tromey <tromey@adacore.com>
325
326 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
327 No longer static. Change parameters.
328 (child_add_thread, child_fetch_inferior_registers)
329 (child_store_inferior_registers, win32_resume)
330 (win32_get_tib_address): Update.
331
4834dad0
TT
3322020-04-08 Tom Tromey <tromey@adacore.com>
333
334 * win32-low.h (struct win32_target_ops): Use qualified names where
335 needed.
336 * win32-i386-low.c: Add "using namespace".
337 * win32-low.c: Add "using namespace".
338 * win32-arm-low.c: Add "using namespace".
339
65bafd5b
TT
3402020-04-08 Tom Tromey <tromey@adacore.com>
341
342 * win32-low.c (delete_thread_info): Don't call CloseHandle.
343
98a03287
TT
3442020-04-08 Tom Tromey <tromey@adacore.com>
345
346 * win32-low.c (win32_require_context, suspend_one_thread): Use
347 windows_thread_info::suspend.
348 (continue_one_thread): Use windows_thread_info::resume.
349 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
350
62fe396b
TT
3512020-04-08 Tom Tromey <tromey@adacore.com>
352
353 * win32-i386-low.c (update_debug_registers)
354 (i386_prepare_to_resume, i386_thread_added): Update.
355
e9534bd2
TT
3562020-04-08 Tom Tromey <tromey@adacore.com>
357
358 * win32-low.c (child_add_thread): Use new.
359 (delete_thread_info): Use delete.
360
ae1f8880
TT
3612020-04-08 Tom Tromey <tromey@adacore.com>
362
363 * win32-low.h (struct windows_thread_info): Remove.
364
e56f8ccb
TT
3652020-04-08 Tom Tromey <tromey@adacore.com>
366
367 * win32-low.h (struct windows_thread_info): Rename from
368 win32_thread_info. Remove typedef.
369 (struct win32_target_ops, win32_require_context): Update.
370 * win32-low.c (win32_get_thread_context)
371 (win32_set_thread_context, win32_prepare_to_resume)
372 (win32_require_context, thread_rec, child_add_thread)
373 (delete_thread_info, continue_one_thread)
374 (child_fetch_inferior_registers, child_store_inferior_registers)
375 (win32_resume, suspend_one_thread, win32_get_tib_address):
376 Update.
377 * win32-i386-low.c (update_debug_registers)
378 (win32_get_current_dr, i386_get_thread_context)
379 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
380 (i386_fetch_inferior_register, i386_store_inferior_register):
381 Update.
382 * win32-arm-low.c (arm_get_thread_context)
383 (arm_fetch_inferior_register, arm_store_inferior_register):
384 Update.
385
0dd7b52e
TBA
3862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
387
388 * linux-low.h (struct linux_target_ops): Remove.
389 (the_low_target): Remove.
390 * linux-x86-low.cc (the_low_target): Remove.
391 * linux-aarch64-low.cc (the_low_target): Ditto.
392 * linux-arm-low.cc (the_low_target): Ditto.
393 * linux-bfin-low.cc (the_low_target): Ditto.
394 * linux-cris-low.cc (the_low_target): Ditto.
395 * linux-crisv32-low.cc (the_low_target): Ditto.
396 * linux-ia64-low.cc (the_low_target): Ditto.
397 * linux-m32r-low.cc (the_low_target): Ditto.
398 * linux-m68k-low.cc (the_low_target): Ditto.
399 * linux-mips-low.cc (the_low_target): Ditto.
400 * linux-nios2-low.cc (the_low_target): Ditto.
401 * linux-ppc-low.cc (the_low_target): Ditto.
402 * linux-riscv-low.cc (the_low_target): Ditto.
403 * linux-s390-low.cc (the_low_target): Ditto.
404 * linux-sh-low.cc (the_low_target): Ditto.
405 * linux-sparc-low.cc (the_low_target): Ditto.
406 * linux-tic6x-low.cc (the_low_target): Ditto.
407 * linux-tile-low.cc (the_low_target): Ditto.
408 * linux-xtensa-low.cc (the_low_target): Ditto.
409
fc5ecdb6
TBA
4102020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
411
412 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
413 linux target define the op by overriding the declaration in
414 process_stratum_target.
415
416 * linux-low.h (struct linux_target_ops): Remove the op.
417 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
418 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
419 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
420 (x86_get_ipa_tdesc_idx): Turn into...
421 (x86_target::get_ipa_tdesc_idx): ...this.
422 (the_low_target): Remove the op field.
423 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
424 (ppc_get_ipa_tdesc_idx): Turn into...
425 (ppc_target::get_ipa_tdesc_idx): ...this.
426 (the_low_target): Remove the op field.
427 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
428 (s390_get_ipa_tdesc_idx): Turn into...
429 (s390_target::get_ipa_tdesc_idx): ...this.
430 (the_low_target): Remove the op field.
431
9eedd27d
TBA
4322020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
433
434 Turn the 'get_syscall_trapinfo' linux target op into a method
435 of process_stratum_target.
436
437 * linux-low.h (struct linux_target_ops): Remove the op.
438 (class linux_process_target) <get_syscall_trapinfo>
439 <gdb_catch_this_syscall>
440 <low_supports_catch_syscall>
441 <low_get_syscall_trapinfo>: Declare.
442 * linux-low.cc (get_syscall_trapinfo): Turn into...
443 (linux_process_target::get_syscall_trapinfo): ...this.
444 (linux_process_target::low_get_syscall_trapinfo): Define.
445 (gdb_catch_this_syscall_p): Turn into...
446 (linux_process_target::gdb_catch_this_syscall): ...this.
447 (linux_process_target::low_supports_catch_syscall): Define.
448
449 Update the callers below.
450
451 (linux_process_target::wait_1)
452 (linux_process_target::supports_catch_syscall)
453
454 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
455 <low_get_syscall_trapinfo>: Declare.
456 (x86_target::low_supports_catch_syscall): Define.
457 (x86_get_syscall_trapinfo): Turn into...
458 (x86_target::low_get_syscall_trapinfo): ...this.
459 (the_low_target): Remove the op field.
460 * linux-aarch64-low.cc (class aarch64_target)
461 <low_supports_catch_syscall>
462 <low_get_syscall_trapinfo>: Declare.
463 (aarch64_target::low_supports_catch_syscall): Define.
464 (aarch64_get_syscall_trapinfo): Turn into...
465 (aarch64_target::low_get_syscall_trapinfo): ...this.
466 (the_low_target): Remove the op field.
467 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
468 <low_get_syscall_trapinfo>: Declare.
469 (arm_target::low_supports_catch_syscall): Define.
470 (arm_get_syscall_trapinfo): Turn into...
471 (arm_target::low_get_syscall_trapinfo): ...this.
472 (the_low_target): Remove the op field.
473 * linux-ppc-low.cc (the_low_target): Remove the op field.
474 * linux-s390-low.cc (the_low_target): Remove the op field.
475
b31cdfa6
TBA
4762020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
477
478 Remove the 'supports_hardware_single_step' linux target op and
479 override the process_stratum_target's op definition in
480 linux_process_target to return true.
481
482 * linux-low.h (struct linux_target_ops): Remove the op.
483 (class linux_process_target) <finish_step_over>
484 <maybe_hw_step>: Declare.
485 * linux-low.cc (can_hardware_single_step): Remove.
486 (maybe_hw_step): Turn into...
487 (linux_process_target::maybe_hw_step): ...this.
488 (finish_step_over): Turn into...
489 (linux_process_target::finish_step_over): ...this.
490 (linux_process_target::supports_hardware_single_step): Update
491 to return true.
492
493 Update the callers below.
494
495 (linux_process_target::single_step)
496 (linux_process_target::resume_one_lwp_throw)
497
498 * linux-arm-low.cc (class arm_target)
499 <supports_hardware_single_step>: Declare.
500 (arm_supports_hardware_single_step): Turn into...
501 (arm_target::supports_hardware_single_step): ...this.
502 (the_low_target): Remove the op field.
503 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
504 (the_low_target): Remove the op field.
505 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
506 Remove.
507 (the_low_target): Remove the op field.
508 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
509 (the_low_target): Remove the op field.
510 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
511 (the_low_target): Remove the op field.
512 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
513 (the_low_target): Remove the op field.
514 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
515 (the_low_target): Remove the op field.
516 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
517 (the_low_target): Remove the op field.
518 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
519 (the_low_target): Remove the op field.
520 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
521 (the_low_target): Remove the op field.
522 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
523 (the_low_target): Remove the op field.
524 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
525 (the_low_target): Remove the op field.
526 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
527 Remove.
528 (the_low_target): Remove the op field.
529
9cfd8715
TBA
5302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
531
532 Turn the 'supports_range_stepping' linux target op into a method
533 of linux_process_target.
534
535 * linux-low.h (struct linux_target_ops): Remove the op.
536 (class linux_process_target) <low_supports_range_stepping>: Declare.
537 * linux-low.cc (linux_process_target::low_supports_range_stepping):
538 Define.
539 (linux_process_target::supports_range_stepping): Update the call
540 site.
541 * linux-x86-low.cc (class x86_target)
542 <low_supports_range_stepping>: Declare.
543 (x86_supports_range_stepping): Turn into...
544 (x86_target::low_supports_range_stepping): ...this.
545 (the_low_target): Remove the op field.
546 * linux-aarch64-low.cc (class aarch64_target)
547 <low_supports_range_stepping>: Declare.
548 (aarch64_supports_range_stepping): Turn into...
549 (aarch64_target::low_supports_range_stepping): ...this.
550 (the_low_target): Remove the op field.
551 * linux-arm-low.cc (the_low_target): Remove the op field.
552 * linux-bfin-low.cc (the_low_target): Ditto.
553 * linux-crisv32-low.cc (the_low_target): Ditto.
554 * linux-m32r-low.cc (the_low_target): Ditto.
555 * linux-m68k-low.cc (the_low_target): Ditto.
556 * linux-ppc-low.cc (the_low_target): Ditto.
557 * linux-s390-low.cc (the_low_target): Ditto.
558 * linux-sh-low.cc (the_low_target): Ditto.
559 * linux-tic6x-low.cc (the_low_target): Ditto.
560 * linux-tile-low.cc (the_low_target): Ditto.
561 * linux-xtensa-low.cc (the_low_target): Ditto.
562
ab64c999
TBA
5632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
564
565 Remove the 'emit_ops' linux target ops and let the concrete
566 linux target define the op by overriding the declaration of
567 process_stratum_target.
568
569 * linux-low.h (struct linux_target_ops): Remove the op.
570 (class linux_process_target) <emit_ops>: Remove.
571 * linux-low.cc (linux_process_target::emit_ops): Remove.
572 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
573 (x86_emit_ops): Turn into...
574 (x86_target::emit_ops): ...this.
575 (the_low_target): Remove the op field.
576 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
577 (aarch64_emit_ops): Turn into...
578 (aarch64_target::emit_ops): ...this.
579 (the_low_target): Remove the op field.
580 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
581 (ppc_emit_ops): Turn into...
582 (ppc_target::emit_ops): ...this.
583 (the_low_target): Remove the op field.
584 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
585 (s390_emit_ops): Turn into...
586 (s390_target::emit_ops): ...this.
587 (the_low_target): Remove the op field.
588 * linux-arm-low.cc (the_low_target): Remove the op field.
589 * linux-bfin-low.cc (the_low_target): Ditto.
590 * linux-crisv32-low.cc (the_low_target): Ditto.
591 * linux-m32r-low.cc (the_low_target): Ditto.
592 * linux-m68k-low.cc (the_low_target): Ditto.
593 * linux-sh-low.cc (the_low_target): Ditto.
594 * linux-tic6x-low.cc (the_low_target): Ditto.
595 * linux-tile-low.cc (the_low_target): Ditto.
596 * linux-xtensa-low.cc (the_low_target): Ditto.
597
809a0c35
TBA
5982020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
599
600 Remove the 'install_fast_tracepoint_jump_pad' and
601 'get_min_fast_tracepoint_insn_len' linux target ops to let the
602 concrete linux target define the ops by overriding the declarations
603 of process_stratum_target.
604
605 * linux-low.h (struct linux_target_ops): Remove the ops.
606 (class linux_process_target) <supports_fast_tracepoints>
607 <install_fast_tracepoint_jump_pad>
608 <get_min_fast_tracepoint_insn_len>: Remove.
609 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
610 (linux_process_target::install_fast_tracepoint_jump_pad)
611 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
612 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
613 <install_fast_tracepoint_jump_pad>
614 <get_min_fast_tracepoint_insn_len>: Declare.
615 (x86_target::supports_fast_tracepoints): Define.
616 (x86_install_fast_tracepoint_jump_pad): Turn into...
617 (x86_target::install_fast_tracepoint_jump_pad): ...this.
618 (x86_get_min_fast_tracepoint_insn_len): Turn into...
619 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
620 (the_low_target): Remove the op fields.
621 * linux-aarch64-low.cc (class aarch64_target)
622 <supports_fast_tracepoints>
623 <install_fast_tracepoint_jump_pad>
624 <get_min_fast_tracepoint_insn_len>: Declare.
625 (aarch64_target::supports_fast_tracepoints): Define.
626 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
627 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
628 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
629 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
630 (the_low_target): Remove the op fields.
631 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
632 <install_fast_tracepoint_jump_pad>
633 <get_min_fast_tracepoint_insn_len>: Declare.
634 (ppc_target::supports_fast_tracepoints): Define.
635 (ppc_install_fast_tracepoint_jump_pad): Turn into...
636 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
637 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
638 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
639 (the_low_target): Remove the op fields.
640 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
641 <install_fast_tracepoint_jump_pad>
642 <get_min_fast_tracepoint_insn_len>: Declare.
643 (s390_target::supports_fast_tracepoints): Define.
644 (s390_install_fast_tracepoint_jump_pad): Turn into...
645 (s390_target::install_fast_tracepoint_jump_pad): ...this.
646 (s390_get_min_fast_tracepoint_insn_len): Turn into...
647 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
648 (the_low_target): Remove the op fields.
649 * linux-arm-low.cc (the_low_target): Remove the op fields.
650 * linux-bfin-low.cc (the_low_target): Ditto.
651 * linux-crisv32-low.cc (the_low_target): Ditto.
652 * linux-m32r-low.cc (the_low_target): Ditto.
653 * linux-m68k-low.cc (the_low_target): Ditto.
654 * linux-sh-low.cc (the_low_target): Ditto.
655 * linux-tic6x-low.cc (the_low_target): Ditto.
656 * linux-tile-low.cc (the_low_target): Ditto.
657 * linux-xtensa-low.cc (the_low_target): Ditto.
658
13e567af
TBA
6592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
660
661 Turn the 'get_thread_area' linux target op into a method of
662 process_stratum_target.
663
664 * linux-low.h (struct linux_target_ops): Remove the op.
665 (class linux_process_target) <stuck_in_jump_pad>
666 <linux_fast_tracepoint_collecting>
667 <low_get_thread_area>: Declare.
668 * linux-low.cc (supports_fast_tracepoints): Remove.
669 (linux_fast_tracepoint_collecting): Turn into...
670 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
671 (linux_process_target::low_get_thread_area): Define.
672 (stuck_in_jump_pad_callback): Turn into...
673 (linux_process_target::stuck_in_jump_pad): ...this.
674
675 Update the caller below.
676
677 (linux_process_target::stabilize_threads)
678
679 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
680 Declare.
681 (x86_get_thread_area): Turn into...
682 (x86_target::low_get_thread_area): ...this.
683 (the_low_target): Remove the op field.
684 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
685 Declare.
686 (aarch64_get_thread_area): Turn into...
687 (aarch64_target::low_get_thread_area): ...this.
688 (the_low_target): Remove the op field.
689 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
690 Declare.
691 (ppc_get_thread_area): Turn into...
692 (ppc_target::low_get_thread_area): ...this.
693 (the_low_target): Remove the op field.
694 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
695 Declare.
696 (s390_get_thread_area): Turn into...
697 (s390_target::low_get_thread_area): ...this.
698 (the_low_target): Remove the op field.
699 * linux-arm-low.cc (the_low_target): Remove the op field.
700 * linux-bfin-low.cc (the_low_target): Ditto.
701 * linux-crisv32-low.cc (the_low_target): Ditto.
702 * linux-m32r-low.cc (the_low_target): Ditto.
703 * linux-m68k-low.cc (the_low_target): Ditto.
704 * linux-sh-low.cc (the_low_target): Ditto.
705 * linux-tic6x-low.cc (the_low_target): Ditto.
706 * linux-tile-low.cc (the_low_target): Ditto.
707 * linux-xtensa-low.cc (the_low_target): Ditto.
708
47f70aa7
TBA
7092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
710
711 Remote the 'supports_tracepoints' linux target op and let the
712 concrete linux target define it by overriding the op declared in
713 process_stratum_target.
714
715 * linux-low.h (struct linux_target_ops): Remove the op.
716 (class linux_process_target) <supports_tracepoints>: Remove.
717 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
718 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
719 Declare.
720 (x86_supports_tracepoints): Turn into...
721 (x86_target::supports_tracepoints): ...this.
722 (the_low_target): Remove the op field.
723 * linux-aarch64-low.cc (class aarch64_target)
724 <supports_tracepoints>: Declare.
725 (aarch64_supports_tracepoints): Turn into...
726 (aarch64_target::supports_tracepoints): ...this.
727 (the_low_target): Remove the op field.
728 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
729 Declare.
730 (ppc_supports_tracepoints): Turn into...
731 (ppc_target::supports_tracepoints): ...this.
732 (the_low_target): Remove the op field.
733 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
734 Declare.
735 (s390_supports_tracepoints): Turn into...
736 (s390_target::supports_tracepoints): ...this.
737 (the_low_target): Remove the op field.
738 * linux-arm-low.cc (the_low_target): Remove the op field.
739 * linux-bfin-low.cc (the_low_target): Ditto.
740 * linux-crisv32-low.cc (the_low_target): Ditto.
741 * linux-m32r-low.cc (the_low_target): Ditto.
742 * linux-m68k-low.cc (the_low_target): Ditto.
743 * linux-sh-low.cc (the_low_target): Ditto.
744 * linux-tic6x-low.cc (the_low_target): Ditto.
745 * linux-tile-low.cc (the_low_target): Ditto.
746 * linux-xtensa-low.cc (the_low_target): Ditto.
747
a5b5da92
TBA
7482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
749
750 Remove the 'process_qsupported' linux target op and let a concrete
751 linux target define the op by overriding the op declaration in
752 process_stratum_target.
753
754 * linux-low.h (struct linux_target_ops): Remove the op.
755 (class linux_process_target) <process_qsupported>: Remove.
756 * linux-low.cc (linux_process_target::process_qsupported): Remove.
757 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
758 (x86_linux_process_qsupported): Turn into...
759 (x86_target::process_qsupported): ...this.
760 (the_low_target): Remove the op field.
761 * linux-aarch64-low.cc (the_low_target): Remove the op
762 field.
763 * linux-arm-low.cc (the_low_target): Ditto.
764 * linux-bfin-low.cc (the_low_target): Ditto.
765 * linux-crisv32-low.cc (the_low_target): Ditto.
766 * linux-m32r-low.cc (the_low_target): Ditto.
767 * linux-m68k-low.cc (the_low_target): Ditto.
768 * linux-ppc-low.cc (the_low_target): Ditto.
769 * linux-s390-low.cc (the_low_target): Ditto.
770 * linux-sh-low.cc (the_low_target): Ditto.
771 * linux-tic6x-low.cc (the_low_target): Ditto.
772 * linux-tile-low.cc (the_low_target): Ditto.
773 * linux-xtensa-low.cc (the_low_target): Ditto.
774
d7599cc0
TBA
7752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
776
777 Turn the 'prepare_to_resume' linux target op into a method of
778 linux_process_target.
779
780 * linux-low.h (struct linux_target_ops): Remove the op.
781 (class linux_process_target) <low_prepare_to_resume>: Declare.
782 * linux-low.cc (linux_process_target::low_prepare_to_resume):
783 Define.
784
785 Update the callers below:
786
787 (linux_process_target::resume_one_lwp_throw)
788 (linux_process_target::low_prepare_to_resume)
789
790 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
791 Declare.
792 (x86_target::low_prepare_to_resume): Define.
793 (the_low_target): Remove the op field.
794 * linux-aarch64-low.cc (class aarch64_target)
795 <low_prepare_to_resume>: Declare.
796 (aarch64_target::low_prepare_to_resume): Define.
797 (the_low_target): Remove the op field.
798 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
799 Declare.
800 (arm_prepare_to_resume): Turn into...
801 (arm_target::low_prepare_to_resume): ...this.
802 (the_low_target): Remove the op field.
803 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
804 Declare.
805 (mips_linux_prepare_to_resume): Turn into...
806 (mips_target::low_prepare_to_resume): ...this.
807 (the_low_target): Remove the op field.
808 * linux-bfin-low.cc (the_low_target): Remove the op field.
809 * linux-crisv32-low.cc (the_low_target): Ditto.
810 * linux-m32r-low.cc (the_low_target): Ditto.
811 * linux-m68k-low.cc (the_low_target): Ditto.
812 * linux-ppc-low.cc (the_low_target): Ditto.
813 * linux-s390-low.cc (the_low_target): Ditto.
814 * linux-sh-low.cc (the_low_target): Ditto.
815 * linux-tic6x-low.cc (the_low_target): Ditto.
816 * linux-tile-low.cc (the_low_target): Ditto.
817 * linux-xtensa-low.cc (the_low_target): Ditto.
818
fd000fb3
TBA
8192020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
820
821 Turn the 'new_process', 'delete_process', 'new_thread',
822 'delete_thread', and 'new_fork' linux target ops into methods
823 of linux_process_target.
824
825 * linux-low.h (struct linux_target_ops): Remove the ops.
826 (class linux_process_target) <add_linux_process>
827 <add_lwp>
828 <delete_lwp>
829 <attach_lwp>
830 <detach_one_lwp>
831 <check_zombie_leaders>
832 <filter_exit_event>
833 <low_new_process>
834 <low_delete_process>
835 <low_new_thread>
836 <low_delete_thread>
837 <low_new_fork>: Declare.
838 * linux-low.cc (delete_lwp): Turn into...
839 (linux_process_target::delete_lwp): ...this.
840 (linux_process_target::low_delete_thread): Define.
841 (linux_add_process): Turn into...
842 (linux_process_target::add_linux_process): ...this.
843 (linux_process_target::low_new_process): Define.
844 (linux_process_target::low_delete_process): Define.
845 (linux_process_target::low_new_fork): Define.
846 (add_lwp): Turn into...
847 (linux_process_target::add_lwp): ...this.
848 (linux_process_target::low_new_thread): Define.
849 (linux_attach_lwp): Turn into...
850 (linux_process_target::attach_lwp): ...this.
851 (linux_detach_one_lwp): Turn into...
852 (linux_process_target::detach_one_lwp): ...this.
853 (linux_detach_lwp_callback): Remove and inline...
854 (linux_process_target::detach): ...here.
855 (check_zombie_leaders): Turn into...
856 (linux_process_target::check_zombie_leaders): ...this.
857 (filter_exit_event): Turn into...
858 (linux_process_target::filter_exit_event): ...this.
859
860 Update the callers below.
861
862 (linux_process_target::handle_extended_wait)
863 (linux_process_target::create_inferior)
864 (attach_proc_task_lwp_callback)
865 (linux_process_target::attach)
866 (linux_process_target::detach)
867 (linux_process_target::mourn)
868 * thread-db.cc (attach_thread)
869
870 * linux-x86-low.cc (class x86_target) <low_new_process>
871 <low_delete_process>
872 <low_new_thread>
873 <low_delete_thread>
874 <low_new_fork>: Declare.
875 (x86_linux_new_process): Turn into...
876 (x86_target::low_new_process): ...this.
877 (x86_linux_delete_process): Turn into...
878 (x86_target::low_delete_process): ...this.
879 (x86_target::low_new_thread): Define.
880 (x86_target::low_delete_thread): Define.
881 (x86_linux_new_fork): Turn into...
882 (x86_target::low_new_fork): ...this.
883 (the_low_target): Remove the op fields.
884 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
885 <low_delete_process>
886 <low_new_thread>
887 <low_delete_thread>
888 <low_new_fork>: Declare.
889 (aarch64_linux_new_process): Turn into...
890 (aarch64_target::low_new_process): ...this.
891 (aarch64_linux_delete_process): Turn into...
892 (aarch64_target::low_delete_process): ...this.
893 (aarch64_target::low_new_thread): Define.
894 (aarch64_target::low_delete_thread): Define.
895 (aarch64_linux_new_fork): Turn into...
896 (aarch64_target::low_new_fork): ...this.
897 (the_low_target): Remove the op fields.
898 * linux-arm-low.cc (class arm_target) <low_new_process>
899 <low_delete_process>
900 <low_new_thread>
901 <low_delete_thread>
902 <low_new_fork>: Declare.
903 (arm_new_process): Turn into...
904 (arm_target::low_new_process): ...this.
905 (arm_delete_process): Turn into...
906 (arm_target::low_delete_process): ...this.
907 (arm_new_thread): Turn into...
908 (arm_target::low_new_thread): ...this.
909 (arm_delete_thread): Turn into...
910 (arm_target::low_delete_thread): ...this.
911 (arm_new_fork): Turn into...
912 (arm_target::low_new_fork): ...this.
913 (the_low_target): Remove the op fields.
914 * linux-mips-low.cc (class mips_target) <low_new_process>
915 <low_delete_process>
916 <low_new_thread>
917 <low_delete_thread>
918 <low_new_fork>: Declare.
919 (mips_linux_new_process): Turn into...
920 (mips_target::low_new_process): ...this.
921 (mips_linux_delete_process): Turn into...
922 (mips_target::low_delete_process): ...this.
923 (mips_linux_new_thread): Turn into...
924 (mips_target::low_new_thread): ...this.
925 (mips_linux_delete_thread): Turn into...
926 (mips_target::low_delete_thread): ...this.
927 (mips_linux_new_fork): Turn into...
928 (mips_target::low_new_fork): ...this.
929 (the_low_target): Remove the op fields.
930 * linux-bfin-low.cc (the_low_target): Remove the op fields.
931 * linux-crisv32-low.cc (the_low_target): Ditto.
932 * linux-m32r-low.cc (the_low_target): Ditto.
933 * linux-m68k-low.cc (the_low_target): Ditto.
934 * linux-ppc-low.cc (the_low_target): Ditto.
935 * linux-s390-low.cc (the_low_target): Ditto.
936 * linux-sh-low.cc (the_low_target): Ditto.
937 * linux-tic6x-low.cc (the_low_target): Ditto.
938 * linux-tile-low.cc (the_low_target): Ditto.
939 * linux-xtensa-low.cc (the_low_target): Ditto.
940
cb63de7c
TBA
9412020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
942
943 Turn the 'siginfo_fixup' linux target op into a method of
944 linux_process_target.
945
946 * linux-low.h (struct linux_target_ops): Remove the op.
947 (class linux_process_target) <siginfo_fixup>
948 <low_siginfo_fixup>: Declare.
949 * linux-low.cc (siginfo_fixup): Turn into...
950 (linux_process_target::siginfo_fixup): ...this.
951 (linux_process_target::low_siginfo_fixup): Define.
952 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
953 (x86_siginfo_fixup): Turn into...
954 (x86_target::low_siginfo_fixup): ...this.
955 (the_low_target): Remove the op field.
956 * linux-aarch64-low.cc (class aarch64_target):
957 <low_siginfo_fixup>: Declare.
958 (aarch64_linux_siginfo_fixup): Turn into...
959 (aarch64_target::low_siginfo_fixup): ...this.
960 (the_low_target): Remove the op field.
961 * linux-arm-low.cc (the_low_target): Remove the op field.
962 * linux-bfin-low.cc (the_low_target): Ditto.
963 * linux-crisv32-low.cc (the_low_target): Ditto.
964 * linux-m32r-low.cc (the_low_target): Ditto.
965 * linux-m68k-low.cc (the_low_target): Ditto.
966 * linux-mips-low.cc (the_low_target): Ditto.
967 * linux-ppc-low.cc (the_low_target): Ditto.
968 * linux-s390-low.cc (the_low_target): Ditto.
969 * linux-sh-low.cc (the_low_target): Ditto.
970 * linux-tic6x-low.cc (the_low_target): Ditto.
971 * linux-tile-low.cc (the_low_target): Ditto.
972 * linux-xtensa-low.cc (the_low_target): Ditto.
973
b35db733
TBA
9742020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
975
976 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
977 linux target ops into methods of linux_process_target.
978
979 * linux-low.h (struct linux_target_ops): Remove the ops.
980 (class linux_process_target) <low_collect_ptrace_register>
981 <low_store_ptrace_register>: Declare.
982 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
983 (linux_process_target::low_supply_ptrace_register): Define.
984
985 Update the callers below.
986
987 (linux_process_target::fetch_register)
988 (linux_process_target::store_register)
989
990 * linux-x86-low.cc (the_low_target): Remove the op fields.
991 * linux-aarch64-low.cc (the_low_target): Ditto.
992 * linux-arm-low.cc (the_low_target): Ditto.
993 * linux-bfin-low.cc (the_low_target): Ditto.
994 * linux-crisv32-low.cc (the_low_target): Ditto.
995 * linux-m32r-low.cc (the_low_target): Ditto.
996 * linux-m68k-low.cc (the_low_target): Ditto.
997 * linux-sh-low.cc (the_low_target): Ditto.
998 * linux-sparc-low.cc (the_low_target): Ditto.
999 * linux-tic6x-low.cc (the_low_target): Ditto.
1000 * linux-tile-low.cc (the_low_target): Ditto.
1001 * linux-xtensa-low.cc (the_low_target): Ditto.
1002 * linux-mips-low.cc (class mips_target)
1003 <low_collect_ptrace_register>
1004 <low_supply_ptrace_register>: Declare.
1005 (mips_collect_ptrace_register): Turn into ...
1006 (mips_target::low_collect_ptrace_register): ...this.
1007 (mips_supply_ptrace_register): Turn into...
1008 (mips_target::low_supply_ptrace_register): ...this.
1009 (the_low_target): Remove the op fields.
1010 * linux-ppc-low.cc (class ppc_target)
1011 <low_collect_ptrace_register>
1012 <low_supply_ptrace_register>: Declare.
1013 (ppc_collect_ptrace_register): Turn into ...
1014 (ppc_target::low_collect_ptrace_register): ...this.
1015 (ppc_supply_ptrace_register): Turn into ...
1016 (ppc_target::low_supply_ptrace_register): ...this.
1017 (ppc_fill_gregset): Update for the calls to
1018 low_collect_ptrace_register.
1019 (the_low_target): Remove the op fields.
1020 * linux-s390-low.cc (class s390_target)
1021 <low_collect_ptrace_register>
1022 <low_supply_ptrace_register>: Declare.
1023 (s390_collect_ptrace_register): Turn into ...
1024 (s390_target::low_collect_ptrace_register): ...this.
1025 (s390_supply_ptrace_register): Turn into ...
1026 (s390_target::low_supply_ptrace_register): ...this.
1027 (s390_fill_gregset): Update for the calls to
1028 low_collect_ptrace_register.
1029 (the_low_target): Remove the op fields.
1030
ac1bbaca
TBA
10312020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1032
1033 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1034 target ops into methods of linux_process_target.
1035
1036 * linux-low.h (struct linux_target_ops): Remove the ops.
1037 (class linux_process_target) <check_stopped_by_watchpoint>
1038 <low_stopped_by_watchpoint>
1039 <low_stopped_data_address>: Declare.
1040 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1041 (linux_process_target::check_stopped_by_watchpoint): ...this.
1042 (linux_process_target::low_stopped_by_watchpoint): Define.
1043 (linux_process_target::low_stopped_data_address): Define.
1044 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1045 <low_stopped_data_address>: Declare.
1046 (x86_stopped_by_watchpoint): Turn into...
1047 (x86_target::low_stopped_by_watchpoint): ...this.
1048 (x86_stopped_data_address): Turn into...
1049 (x86_target::low_stopped_data_address): ...this.
1050 (the_low_target): Remove the op fields.
1051 * linux-aarch64-low.cc (class aarch64_target)
1052 <low_stopped_by_watchpoint>
1053 <low_stopped_data_address>: Declare.
1054 (aarch64_stopped_by_watchpoint): Turn into...
1055 (aarch64_target::low_stopped_by_watchpoint): ...this.
1056 (aarch64_stopped_data_address): Turn into...
1057 (aarch64_target::low_stopped_data_address): ...this.
1058 (the_low_target): Remove the op fields.
1059 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1060 <low_stopped_data_address>: Declare.
1061 (arm_stopped_by_watchpoint): Turn into...
1062 (arm_target::low_stopped_by_watchpoint): ...this.
1063 (arm_stopped_data_address): Turn into...
1064 (arm_target::low_stopped_data_address): ...this.
1065 (the_low_target): Remove the op fields.
1066 * linux-crisv32-low.cc (class crisv32_target)
1067 <low_stopped_by_watchpoint>
1068 <low_stopped_data_address>: Declare.
1069 (cris_stopped_by_watchpoint): Turn into...
1070 (crisv32_target::low_stopped_by_watchpoint): ...this.
1071 (cris_stopped_data_address): Turn into...
1072 (crisv32_target::low_stopped_data_address): ...this.
1073 (the_low_target): Remove the op fields.
1074 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1075 <low_stopped_data_address>: Declare.
1076 (mips_stopped_by_watchpoint): Turn into...
1077 (mips_target::low_stopped_by_watchpoint): ...this.
1078 (mips_stopped_data_address): Turn into...
1079 (mips_target::low_stopped_data_address): ...this.
1080 (the_low_target): Remove the op fields.
1081 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1082 * linux-m32r-low.cc (the_low_target): Ditto.
1083 * linux-m68k-low.cc (the_low_target): Ditto.
1084 * linux-ppc-low.cc (the_low_target): Ditto.
1085 * linux-s390-low.cc (the_low_target): Ditto.
1086 * linux-sh-low.cc (the_low_target): Ditto.
1087 * linux-sparc-low.cc (the_low_target): Ditto.
1088 * linux-tic6x-low.cc (the_low_target): Ditto.
1089 * linux-tile-low.cc (the_low_target): Ditto.
1090 * linux-xtensa-low.cc (the_low_target): Ditto.
1091
9db9aa23
TBA
10922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1093
1094 Turn the 'insert_point' and 'remove_point' linux target ops into
1095 methods of linux_process_target.
1096
1097 * linux-low.h (struct linux_target_ops): Remove the ops.
1098 (class linux_process_target) <low_insert_point>
1099 <low_remove_point>: Declare.
1100 * linux-low.cc (linux_process_target::low_insert_point)
1101 (linux_process_target::low_remove_point): Define.
1102 (linux_process_target::insert_point)
1103 (linux_process_target::remove_point): Update for calls to
1104 low_insert_point and low_remove_point.
1105 * linux-x86-low.cc (class x86_target) <low_insert_point>
1106 <low_remove_point>: Declare.
1107 (x86_insert_point): Turn into...
1108 (x86_target::low_insert_point): ...this.
1109 (x86_remove_point): Turn into...
1110 (x86_target::low_remove_point): ...this.
1111 (the_low_target): Remove the op fields.
1112 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1113 <low_remove_point>: Declare.
1114 (aarch64_insert_point): Turn into...
1115 (aarch64_target::low_insert_point): ...this.
1116 (aarch64_remove_point): Turn into...
1117 (aarch64_target::low_remove_point): ...this.
1118 (the_low_target): Remove the op fields.
1119 * linux-arm-low.cc (class arm_target) <low_insert_point>
1120 <low_remove_point>: Declare.
1121 (arm_insert_point): Turn into...
1122 (arm_target::low_insert_point): ...this.
1123 (arm_remove_point): Turn into...
1124 (arm_target::low_remove_point): ...this.
1125 (the_low_target): Remove the op fields.
1126 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1127 <low_remove_point>: Declare.
1128 (crisv32_insert_point): Turn into...
1129 (crisv32_target::low_insert_point): ...this.
1130 (crisv32_remove_point): Turn into...
1131 (crisv32_target::low_remove_point): ...this.
1132 (the_low_target): Remove the op fields.
1133 * linux-mips-low.cc (class mips_target) <low_insert_point>
1134 <low_remove_point>: Declare.
1135 (mips_insert_point): Turn into...
1136 (mips_target::low_insert_point): ...this.
1137 (mips_remove_point): Turn into...
1138 (mips_target::low_remove_point): ...this.
1139 (the_low_target): Remove the op fields.
1140 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1141 <low_remove_point>: Declare.
1142 (ppc_insert_point): Turn into...
1143 (ppc_target::low_insert_point): ...this.
1144 (ppc_remove_point): Turn into...
1145 (ppc_target::low_remove_point): ...this.
1146 (the_low_target): Remove the op fields.
1147 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1148 * linux-m32r-low.cc (the_low_target): Ditto.
1149 * linux-m68k-low.cc (the_low_target): Ditto.
1150 * linux-s390-low.cc (the_low_target): Ditto.
1151 * linux-sh-low.cc (the_low_target): Ditto.
1152 * linux-sparc-low.cc (the_low_target): Ditto.
1153 * linux-tic6x-low.cc (the_low_target): Ditto.
1154 * linux-tile-low.cc (the_low_target): Ditto.
1155 * linux-xtensa-low.cc (the_low_target): Ditto.
1156
007c9b97
TBA
11572020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1158
1159 Remove the 'supports_z_point_type' linux target op and let the
1160 concrete linux target define it by overriding the op declared in
1161 process_stratum_target.
1162
1163 * linux-low.cc (linux_process_target::supports_z_point_type):
1164 Remove.
1165 * linux-low.h (struct linux_target_ops): Remove the op.
1166 (class linux_process_target) <supports_z_point_type>: Remove.
1167 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1168 Declare.
1169 (x86_supports_z_point_type): Turn into...
1170 (x86_target::supports_z_point_type): ...this.
1171 (the_low_target): Remove the op field.
1172 * linux-aarch64-low.cc (class aarch64_target)
1173 <supports_z_point_type>: Declare.
1174 (aarch64_supports_z_point_type): Turn into...
1175 (aarch64_target::supports_z_point_type): ...this.
1176 (the_low_target): Remove the op field.
1177 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1178 Declare.
1179 (arm_supports_z_point_type): Turn into...
1180 (arm_target::supports_z_point_type): ...this.
1181 (the_low_target): Remove the op field.
1182 * linux-crisv32-low.cc (class crisv32_target)
1183 <supports_z_point_type>: Declare.
1184 (cris_supports_z_point_type): Turn into...
1185 (crisv32_target::supports_z_point_type): ...this.
1186 (the_low_target): Remove the op field.
1187 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1188 Declare.
1189 (mips_supports_z_point_type): Turn into...
1190 (mips_target::supports_z_point_type): ...this.
1191 (the_low_target): Remove the op field.
1192 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1193 Declare.
1194 (ppc_supports_z_point_type): Turn into...
1195 (ppc_target::supports_z_point_type): ...this.
1196 (the_low_target): Remove the op field.
1197 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1198 Declare.
1199 (s390_supports_z_point_type): Turn into...
1200 (s390_target::supports_z_point_type): ...this.
1201 (the_low_target): Remove the op field.
1202 * linux-bfin-low.cc (the_low_target): Remove the op field.
1203 * linux-m32r-low.cc (the_low_target): Ditto.
1204 * linux-m68k-low.cc (the_low_target): Ditto.
1205 * linux-sh-low.cc (the_low_target): Ditto.
1206 * linux-sparc-low.cc (the_low_target): Ditto.
1207 * linux-tic6x-low.cc (the_low_target): Ditto.
1208 * linux-tile-low.cc (the_low_target): Ditto.
1209 * linux-xtensa-low.cc (the_low_target): Ditto.
1210
d7146cda
TBA
12112020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1212
1213 Turn the 'breakpoint_at' linux target op into a method of
1214 linux_process_target.
1215
1216 * linux-low.h (struct linux_target_ops): Remove the op.
1217 (class linux_process_target) <low_breakpoint_at>: Declare.
1218
1219 Update the callers below:
1220
1221 * linux-low.cc (linux_process_target::save_stop_reason)
1222 (linux_process_target::thread_still_has_status_pending)
1223 (linux_process_target::wait_1)
1224
1225 * linux-x86-low.cc (class x86_target)
1226 <low_breakpoint_at>: Declare.
1227 (x86_breakpoint_at): Turn into...
1228 (x86_target::low_breakpoint_at): ...this.
1229 (the_low_target): Remove the op field.
1230 * linux-aarch64-low.cc (class aarch64_target)
1231 <low_breakpoint_at>: Declare.
1232 (aarch64_breakpoint_at): Turn into...
1233 (aarch64_target::low_breakpoint_at): ...this.
1234 (the_low_target): Remove the op field.
1235 * linux-arm-low.cc (class arm_target)
1236 <low_breakpoint_at>: Declare.
1237 (arm_target::low_breakpoint_at): Define.
1238 (the_low_target): Remove the op field.
1239 * linux-bfin-low.cc (class bfin_target)
1240 <low_breakpoint_at>: Declare.
1241 (bfin_breakpoint_at): Turn into...
1242 (bfin_target::low_breakpoint_at): ...this.
1243 (the_low_target): Remove the op field.
1244 * linux-cris-low.cc (class cris_target)
1245 <low_breakpoint_at>: Declare.
1246 (cris_breakpoint_at): Turn into...
1247 (cris_target::low_breakpoint_at): ...this.
1248 (the_low_target): Remove the op field.
1249 * linux-crisv32-low.cc (class crisv32_target)
1250 <low_breakpoint_at>: Declare.
1251 (crisv32_breakpoint_at): Turn into...
1252 (crisv32_target::low_breakpoint_at): ...this.
1253 (the_low_target): Remove the op field.
1254 * linux-ia64-low.cc (class ia64_target)
1255 <low_breakpoint_at>: Declare.
1256 (ia64_target::low_breakpoint_at): Define.
1257 * linux-m32r-low.cc (class m32r_target)
1258 <low_breakpoint_at>: Declare.
1259 (m32r_breakpoint_at): Turn into...
1260 (m32r_target::low_breakpoint_at): ...this.
1261 (the_low_target): Remove the op field.
1262 * linux-m68k-low.cc (class m68k_target)
1263 <low_breakpoint_at>: Declare.
1264 (m68k_breakpoint_at): Turn into...
1265 (m68k_target::low_breakpoint_at): ...this.
1266 (the_low_target): Remove the op field.
1267 * linux-mips-low.cc (class mips_target)
1268 <low_breakpoint_at>: Declare.
1269 (mips_breakpoint_at): Turn into...
1270 (mips_target::low_breakpoint_at): ...this.
1271 (the_low_target): Remove the op field.
1272 * linux-nios2-low.cc (class nios2_target)
1273 <low_breakpoint_at>: Declare.
1274 (nios2_breakpoint_at): Turn into...
1275 (nios2_target::low_breakpoint_at): ...this.
1276 (the_low_target): Remove the op field.
1277 * linux-ppc-low.cc (class ppc_target)
1278 <low_breakpoint_at>: Declare.
1279 (ppc_breakpoint_at): Turn into...
1280 (ppc_target::low_breakpoint_at): ...this.
1281 (the_low_target): Remove the op field.
1282 * linux-riscv-low.cc (class riscv_target)
1283 <low_breakpoint_at>: Declare.
1284 (riscv_breakpoint_at): Turn into...
1285 (riscv_target::low_breakpoint_at): ...this.
1286 (the_low_target): Remove the op field.
1287 * linux-s390-low.cc (class s390_target)
1288 <low_breakpoint_at>: Declare.
1289 (s390_breakpoint_at): Turn into...
1290 (s390_target::low_breakpoint_at): ...this.
1291 (the_low_target): Remove the op field.
1292 * linux-sh-low.cc (class sh_target)
1293 <low_breakpoint_at>: Declare.
1294 (sh_breakpoint_at): Turn into...
1295 (sh_target::low_breakpoint_at): ...this.
1296 (the_low_target): Remove the op field.
1297 * linux-sparc-low.cc (class sparc_target)
1298 <low_breakpoint_at>: Declare.
1299 (sparc_breakpoint_at): Turn into...
1300 (sparc_target::low_breakpoint_at): ...this.
1301 (the_low_target): Remove the op field.
1302 * linux-tic6x-low.cc (class tic6x_target)
1303 <low_breakpoint_at>: Declare.
1304 (tic6x_breakpoint_at): Turn into...
1305 (tic6x_target::low_breakpoint_at): ...this.
1306 (the_low_target): Remove the op field.
1307 * linux-tile-low.cc (class tile_target)
1308 <low_breakpoint_at>: Declare.
1309 (tile_breakpoint_at): Turn into...
1310 (tile_target::low_breakpoint_at): ...this.
1311 (the_low_target): Remove the op field.
1312 * linux-xtensa-low.cc (class xtensa_target)
1313 <low_breakpoint_at>: Declare.
1314 (xtensa_breakpoint_at): Turn into...
1315 (xtensa_target::low_breakpoint_at): ...this.
1316 (the_low_target): Remove the op field.
1317
d4807ea2
TBA
13182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1319
1320 Turn the 'decr_pc_after_break' linux_target_ops field into
1321 a method of linux_process_target.
1322
1323 * linux-low.h (struct linux_target_ops)
1324 <decr_pc_after_break>: Remove.
1325 (class linux_process_target) <low_decr_pc_after_break>: New method
1326 declaration.
1327 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1328 New method implementation.
1329
1330 Update the users below.
1331
1332 (linux_process_target::save_stop_reason)
1333 (linux_process_target::wait_1)
1334 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1335 New declaration.
1336 (x86_target::low_decr_pc_after_break): New method implementation.
1337 (the_low_target): Remove the field.
1338 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1339 New declaration.
1340 (bfin_target::low_decr_pc_after_break): New method implementation.
1341 (the_low_target): Remove the field.
1342 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1343 New declaration.
1344 (m68k_target::low_decr_pc_after_break): New method implementation.
1345 (the_low_target): Remove the field.
1346 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1347 New declaration.
1348 (s390_target::low_decr_pc_after_break): New method implementation.
1349 (the_low_target): Remove the field.
1350 * linux-aarch64-low.cc (the_low_target): Remove the field.
1351 * linux-arm-low.cc (the_low_target): Remove the field.
1352 * linux-cris-low.cc (the_low_target): Remove the field.
1353 * linux-crisv32-low.cc (the_low_target): Remove the field.
1354 * linux-m32r-low.cc (the_low_target): Remove the field.
1355 * linux-mips-low.cc (the_low_target): Remove the field.
1356 * linux-nios2-low.cc (the_low_target): Remove the field.
1357 * linux-ppc-low.cc (the_low_target): Remove the field.
1358 * linux-riscv-low.cc (the_low_target): Remove the field.
1359 * linux-sh-low.cc (the_low_target): Remove the field.
1360 * linux-sparc-low.cc (the_low_target): Remove the field.
1361 * linux-tic6x-low.cc (the_low_target): Remove the field.
1362 * linux-tile-low.cc (the_low_target): Remove the field.
1363 * linux-xtensa-low.cc (the_low_target): Remove the field.
1364
7582c77c
TBA
13652020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1366
1367 Remove the 'supports_software_single_step' linux target op and let
1368 the concrete linux target define it by overriding the op in
1369 process_stratum_target.
1370 Turn the 'get_next_pcs' linux target op into a method of
1371 linux_process_target.
1372
1373 * linux-low.h (struct linux_target_ops): Remove the ops.
1374 (class linux_process_target) <supports_software_single_step>:
1375 Remove.
1376 <low_get_next_pcs>: Declare.
1377 * linux-low.cc (can_software_single_step): Remove.
1378 (linux_process_target::low_get_next_pcs): Define.
1379 (linux_process_target::supports_software_single_step): Remove.
1380
1381 Update the callers below.
1382
1383 (linux_process_target::handle_extended_wait)
1384 (linux_process_target::wait_1)
1385 (linux_process_target::install_software_single_step_breakpoints)
1386 (linux_process_target::single_step)
1387 (linux_process_target::thread_needs_step_over)
1388 (linux_process_target::proceed_one_lwp)
1389 (linux_process_target::supports_range_stepping)
1390
1391 * linux-x86-low.cc (the_low_target): Remove the op field.
1392 * linux-aarch64-low.cc (the_low_target): Ditto.
1393 * linux-bfin-low.cc (the_low_target): Ditto.
1394 * linux-cris-low.cc (the_low_target): Ditto.
1395 * linux-crisv32-low.cc (the_low_target): Ditto.
1396 * linux-m32r-low.cc (the_low_target): Ditto.
1397 * linux-m68k-low.cc (the_low_target): Ditto.
1398 * linux-mips-low.cc (the_low_target): Ditto.
1399 * linux-nios2-low.cc (the_low_target): Ditto.
1400 * linux-ppc-low.cc (the_low_target): Ditto.
1401 * linux-riscv-low.cc (the_low_target): Ditto.
1402 * linux-s390-low.cc (the_low_target): Ditto.
1403 * linux-sh-low.cc (the_low_target): Ditto.
1404 * linux-sparc-low.cc (the_low_target): Ditto.
1405 * linux-tic6x-low.cc (the_low_target): Ditto.
1406 * linux-tile-low.cc (the_low_target): Ditto.
1407 * linux-xtensa-low.cc (the_low_target): Ditto.
1408 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1409 <supports_software_single_step>: Declare.
1410 (arm_target::supports_software_single_step): Define.
1411 (arm_gdbserver_get_next_pcs): Turn into...
1412 (arm_target::low_get_next_pcs): ...this.
1413 (the_low_target): Remove the op field.
1414
3ca4edb6
TBA
14152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1416
1417 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1418 the concrete linux target define it by overriding the op
1419 in process_stratum_target.
1420
1421 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1422 Remove.
1423 * linux-low.h (struct linux_target_ops): Remove the op.
1424 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1425 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1426 Declare.
1427 (x86_sw_breakpoint_from_kind): Turn into...
1428 (x86_target::sw_breakpoint_from_kind): ...this.
1429 (the_low_target): Remove the op field.
1430 * linux-aarch64-low.cc (class aarch64_target)
1431 <sw_breakpoint_from_kind>: Declare.
1432 (aarch64_sw_breakpoint_from_kind): Turn into...
1433 (aarch64_target::sw_breakpoint_from_kind): ...this.
1434 (the_low_target): Remove the op field.
1435 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1436 Declare.
1437 (arm_target::sw_breakpoint_from_kind): Define.
1438 (the_low_target): Remove the op field.
1439 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1440 Declare.
1441 (bfin_sw_breakpoint_from_kind): Turn into...
1442 (bfin_target::sw_breakpoint_from_kind): ...this.
1443 (the_low_target): Remove the op field.
1444 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1445 Declare.
1446 (cris_sw_breakpoint_from_kind): Turn into...
1447 (cris_target::sw_breakpoint_from_kind): ...this.
1448 (the_low_target): Remove the op field.
1449 * linux-crisv32-low.cc (class crisv32_target)
1450 <sw_breakpoint_from_kind>: Declare.
1451 (cris_sw_breakpoint_from_kind): Turn into...
1452 (crisv32_target::sw_breakpoint_from_kind): ...this.
1453 (the_low_target): Remove the op field.
1454 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1455 Declare.
1456 (ia64_target::sw_breakpoint_from_kind): Define.
1457 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1458 Declare.
1459 (m32r_sw_breakpoint_from_kind): Turn into...
1460 (m32r_target::sw_breakpoint_from_kind): ...this.
1461 (the_low_target): Remove the op field.
1462 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1463 Declare.
1464 (m68k_sw_breakpoint_from_kind): Turn into...
1465 (m68k_target::sw_breakpoint_from_kind): ...this.
1466 (the_low_target): Remove the op field.
1467 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1468 Declare.
1469 (mips_sw_breakpoint_from_kind): Turn into...
1470 (mips_target::sw_breakpoint_from_kind): ...this.
1471 (the_low_target): Remove the op field.
1472 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1473 Declare.
1474 (nios2_sw_breakpoint_from_kind): Turn into...
1475 (nios2_target::sw_breakpoint_from_kind): ...this.
1476 (the_low_target): Remove the op field.
1477 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1478 Declare.
1479 (ppc_sw_breakpoint_from_kind): Turn into...
1480 (ppc_target::sw_breakpoint_from_kind): ...this.
1481 (the_low_target): Remove the op field.
1482 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1483 Declare.
1484 (riscv_sw_breakpoint_from_kind): Turn into...
1485 (riscv_target::sw_breakpoint_from_kind): ...this.
1486 (the_low_target): Remove the op field.
1487 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1488 Declare.
1489 (s390_sw_breakpoint_from_kind): Turn into...
1490 (s390_target::sw_breakpoint_from_kind): ...this.
1491 (the_low_target): Remove the op field.
1492 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1493 Declare.
1494 (sh_sw_breakpoint_from_kind): Turn into...
1495 (sh_target::sw_breakpoint_from_kind): ...this.
1496 (the_low_target): Remove the op field.
1497 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1498 Declare.
1499 (sparc_sw_breakpoint_from_kind): Turn into...
1500 (sparc_target::sw_breakpoint_from_kind): ...this.
1501 (the_low_target): Remove the op field.
1502 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1503 Declare.
1504 (tic6x_sw_breakpoint_from_kind): Turn into...
1505 (tic6x_target::sw_breakpoint_from_kind): ...this.
1506 (the_low_target): Remove the op field.
1507 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1508 Declare.
1509 (tile_sw_breakpoint_from_kind): Turn into...
1510 (tile_target::sw_breakpoint_from_kind): ...this.
1511 (the_low_target): Remove the op field.
1512 * linux-xtensa-low.cc (class xtensa_target)
1513 <sw_breakpoint_from_kind>: Declare.
1514 (xtensa_sw_breakpoint_from_kind): Turn into...
1515 (xtensa_target::sw_breakpoint_from_kind): ...this.
1516 (the_low_target): Remove the op field.
1517
06250e4e
TBA
15182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1519
1520 Remove the 'breakpoint_kind_from_pc' and
1521 'breakpoint_kind_from_current_state' linux target ops, and let the
1522 concrete linux target define them by overriding the ops of
1523 process_stratum_target.
1524
1525 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1526 Remove.
1527 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1528 * linux-low.h (struct linux_target_ops): Remove ops.
1529 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1530 <breakpoint_kind_from_current_state>: Remove.
1531 * linux-x86-low.cc (the_low_target): Remove the op fields.
1532 * linux-bfin-low.cc (the_low_target): Ditto.
1533 * linux-cris-low.cc (the_low_target): Ditto.
1534 * linux-crisv32-low.cc (the_low_target): Ditto.
1535 * linux-m32r-low.cc (the_low_target): Ditto.
1536 * linux-m68k-low.cc (the_low_target): Ditto.
1537 * linux-mips-low.cc (the_low_target): Ditto.
1538 * linux-nios2-low.cc (the_low_target): Ditto.
1539 * linux-ppc-low.cc (the_low_target): Ditto.
1540 * linux-s390-low.cc (the_low_target): Ditto.
1541 * linux-sh-low.cc (the_low_target): Ditto.
1542 * linux-sparc-low.cc (the_low_target): Ditto.
1543 * linux-tic6x-low.cc (the_low_target): Ditto.
1544 * linux-tile-low.cc (the_low_target): Ditto.
1545 * linux-xtensa-low.cc (the_low_target): Ditto.
1546 * linux-aarch64-low.cc (class aarch64_target)
1547 <breakpoint_kind_from_pc>
1548 <breakpoint_kind_from_current_state>: Declare.
1549 (aarch64_breakpoint_kind_from_pc): Turn into...
1550 (aarch64_target::breakpoint_kind_from_pc): ...this.
1551 (aarch64_breakpoint_kind_from_current_state): Turn into...
1552 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1553 (the_low_target): Remove the op fields.
1554 * linux-arm-low.cc (class arm_target):
1555 <breakpoint_kind_from_pc>
1556 <breakpoint_kind_from_current_state>: Declare.
1557 (arm_target::breakpoint_kind_from_pc): Define.
1558 (arm_target::breakpoint_kind_from_current_state): Define.
1559 (the_low_target): Remove the op fields.
1560 * linux-riscv-low.cc (class riscv_target):
1561 <breakpoint_kind_from_pc>: Declare.
1562 (riscv_breakpoint_kind_from_pc): Turn into...
1563 (riscv_target::breakpoint_kind_from_pc): ...this.
1564 (the_low_target): Remove the op fields.
1565
bf9ae9d8
TBA
15662020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1567
1568 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1569 of linux_process_target.
1570
1571 * linux-low.h (struct linux_target_ops): Remove the ops.
1572 (class linux_process_target) <low_supports_breakpoints>
1573 <low_get_pc>
1574 <low_set_pc>: Declare.
1575 * linux-low.cc (supports_breakpoints): Turn into...
1576 (linux_process_target::low_supports_breakpoints): ...this.
1577 (linux_process_target::low_get_pc): Define.
1578 (linux_process_target::low_set_pc): Define.
1579
1580 Update the callers below.
1581
1582 (linux_process_target::get_pc)
1583 (linux_process_target::save_stop_reason)
1584 (linux_process_target::maybe_move_out_of_jump_pad)
1585 (linux_process_target::wait_1)
1586 (linux_process_target::resume_one_lwp_throw)
1587 (linux_process_target::resume)
1588 (linux_process_target::proceed_all_lwps)
1589 (linux_process_target::read_pc)
1590 (linux_process_target::write_pc)
1591
1592 * linux-x86-low.cc (class linux_process_target)
1593 <low_supports_breakpoints>
1594 <low_get_pc>
1595 <low_set_pc>: Declare.
1596 (x86_target::low_supports_breakpoints): Define.
1597 (x86_get_pc): Turn into...
1598 (x86_target::low_get_pc): ...this.
1599 (x86_set_pc): Turn into...
1600 (x86_target::low_set_pc): ...this.
1601 (the_low_target): Remove the op fields.
1602 * linux-arm-low.cc (class arm_target)
1603 <low_supports_breakpoints>
1604 <low_get_pc>
1605 <low_set_pc>: Declare.
1606 (arm_target::low_supports_breakpoints)
1607 (arm_target::low_get_pc)
1608 (arm_target::low_set_pc): Define.
1609 (the_low_target): Remove the op fields.
1610 * linux-bfin-low.cc (class bfin_target)
1611 <low_supports_breakpoints>
1612 <low_get_pc>
1613 <low_set_pc>: Declare.
1614 (bfin_target::low_supports_breakpoints)
1615 (bfin_target::low_get_pc)
1616 (bfin_target::low_set_pc): Define.
1617 (the_low_target): Remove the op fields.
1618 * linux-cris-low.cc (class cris_target)
1619 <low_supports_breakpoints>
1620 <low_get_pc>
1621 <low_set_pc>: Declare.
1622 (cris_target::low_supports_breakpoints)
1623 (cris_target::low_get_pc)
1624 (cris_target::low_set_pc): Define.
1625 (the_low_target): Remove the op fields.
1626 * linux-crisv32-low.cc (class crisv32_target)
1627 <low_supports_breakpoints>
1628 <low_get_pc>
1629 <low_set_pc>: Declare.
1630 (crisv32_target::low_supports_breakpoints)
1631 (crisv32_target::low_get_pc)
1632 (crisv32_target::low_set_pc): Define.
1633 (the_low_target): Remove the op fields.
1634 * linux-m32r-low.cc (class m32r_target)
1635 <low_supports_breakpoints>
1636 <low_get_pc>
1637 <low_set_pc>: Declare.
1638 (m32r_target::low_supports_breakpoints)
1639 (m32r_target::low_get_pc)
1640 (m32r_target::low_set_pc): Define.
1641 (the_low_target): Remove the op fields.
1642 * linux-m68k-low.cc (class m68k_target)
1643 <low_supports_breakpoints>
1644 <low_get_pc>
1645 <low_set_pc>: Declare.
1646 (m68k_target::low_supports_breakpoints)
1647 (m68k_target::low_get_pc)
1648 (m68k_target::low_set_pc): Define.
1649 (the_low_target): Remove the op fields.
1650 * linux-nios2-low.cc (class nios2_target)
1651 <low_supports_breakpoints>
1652 <low_get_pc>
1653 <low_set_pc>: Declare.
1654 (nios2_target::low_supports_breakpoints)
1655 (nios2_target::low_get_pc)
1656 (nios2_target::low_set_pc): Define.
1657 (the_low_target): Remove the op fields.
1658 * linux-sh-low.cc (class sh_target)
1659 <low_supports_breakpoints>
1660 <low_get_pc>
1661 <low_set_pc>: Declare.
1662 (sh_target::low_supports_breakpoints)
1663 (sh_target::low_get_pc)
1664 (sh_target::low_set_pc): Define.
1665 (the_low_target): Remove the op fields.
1666 * linux-xtensa-low.cc (class xtensa_target)
1667 <low_supports_breakpoints>
1668 <low_get_pc>
1669 <low_set_pc>: Declare.
1670 (xtensa_target::low_supports_breakpoints)
1671 (xtensa_target::low_get_pc)
1672 (xtensa_target::low_set_pc): Define.
1673 (the_low_target): Remove the op fields.
1674 * linux-sparc-low.cc (class sparc_target)
1675 <low_supports_breakpoints>
1676 <low_get_pc>: Declare.
1677 (sparc_target::low_supports_breakpoints)
1678 (sparc_target::low_get_pc): Define.
1679 (the_low_target): Remove the op fields.
1680 * linux-tile-low.cc (class tile_target)
1681 <low_supports_breakpoints>
1682 <low_get_pc>
1683 <low_set_pc>: Declare.
1684 (tile_target::low_supports_breakpoints)
1685 (tile_target::low_get_pc)
1686 (tile_target::low_set_pc): Define.
1687 (the_low_target): Remove the op fields.
1688 * linux-aarch64-low.cc (class aarch64_target)
1689 <low_supports_breakpoints>
1690 <low_get_pc>
1691 <low_set_pc>: Declare.
1692 (aarch64_target::low_supports_breakpoints): Define.
1693 (aarch64_get_pc): Turn into...
1694 (aarch64_target::low_get_pc): ...this.
1695 (aarch64_set_pc): Turn into...
1696 (aarch64_target::low_set_pc): ...this.
1697 (the_low_target): Remove the op fields.
1698 * linux-mips-low.cc (class mips_target)
1699 <low_supports_breakpoints>
1700 <low_get_pc>
1701 <low_set_pc>: Declare.
1702 (mips_target::low_supports_breakpoints): Define.
1703 (mips_get_pc): Turn into...
1704 (mips_target::low_get_pc): ...this.
1705 (mips_set_pc): Turn into...
1706 (mips_target::low_set_pc): ...this.
1707 (the_low_target): Remove the op fields.
1708 * linux-ppc-low.cc (class ppc_target)
1709 <low_supports_breakpoints>
1710 <low_get_pc>
1711 <low_set_pc>: Declare.
1712 (ppc_target::low_supports_breakpoints): Define.
1713 (ppc_get_pc): Turn into...
1714 (ppc_target::low_get_pc): ...this.
1715 (ppc_set_pc): Turn into...
1716 (ppc_target::low_set_pc): ...this.
1717 (the_low_target): Remove the op fields.
1718 * linux-riscv-low.cc (class riscv_target)
1719 <low_supports_breakpoints>
1720 <low_get_pc>
1721 <low_set_pc>: Declare.
1722 (riscv_target::low_supports_breakpoints): Define.
1723 (riscv_get_pc): Turn into...
1724 (riscv_target::low_get_pc): ...this.
1725 (riscv_set_pc): Turn into...
1726 (riscv_target::low_set_pc): ...this.
1727 (the_low_target): Remove the op fields.
1728 * linux-s390-low.cc (class s390_target)
1729 <low_supports_breakpoints>
1730 <low_get_pc>
1731 <low_set_pc>: Declare.
1732 (s390_target::low_supports_breakpoints): Define.
1733 (s390_get_pc): Turn into...
1734 (s390_target::low_get_pc): ...this.
1735 (s390_set_pc): Turn into...
1736 (s390_target::low_set_pc): ...this.
1737 (the_low_target): Remove the op fields.
1738 * linux-tic6x-low.cc (class tic6x_target)
1739 <low_supports_breakpoints>
1740 <low_get_pc>
1741 <low_set_pc>: Declare.
1742 (tic6x_target::low_supports_breakpoints): Define.
1743 (tic6x_get_pc): Turn into...
1744 (tic6x_target::low_get_pc): ...this.
1745 (tic6x_set_pc): Turn into...
1746 (tic6x_target::low_set_pc): ...this.
1747 (the_low_target): Remove the op fields.
1748
df95181f
TBA
17492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1750
1751 Turn some more static methods in linux-low into private methods
1752 of linux_process_target.
1753
1754 * linux-low.cc (get_pc): Turn into...
1755 (linux_process_target::get_pc): ...this.
1756 (save_stop_reason): Turn into...
1757 (linux_process_target::save_stop_reason): ...this.
1758 (thread_still_has_status_pending_p): Turn into...
1759 (linux_process_target::thread_still_has_status_pending): ...this.
1760 (status_pending_p_callback): Turn into...
1761 (linux_process_target::status_pending_p_callback): ...this.
1762 (resume_stopped_resumed_lwps): Turn into...
1763 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1764 (install_software_single_step_breakpoints): Turn into...
1765 (linux_process_target::install_software_single_step_breakpoints):
1766 ...this.
1767 (single_step): Turn into...
1768 (linux_process_target::single_step): ...this.
1769 (linux_resume_one_lwp_throw): Turn into...
1770 (linux_process_target::resume_one_lwp_throw): ...this.
1771 (linux_resume_one_lwp): Turn into...
1772 (linux_process_target::resume_one_lwp): ...this.
1773 (resume_status_pending_p): Turn into...
1774 (linux_process_target::resume_status_pending): ...this.
1775 (need_step_over_p): Turn into...
1776 (linux_process_target::thread_needs_step_over): ...this.
1777 (linux_resume_one_thread): Turn into...
1778 (linux_process_target::resume_one_thread): ...this.
1779 (proceed_one_lwp): Turn into...
1780 (linux_process_target::proceed_one_lwp): ...this.
1781 (unsuspend_and_proceed_one_lwp): Turn into...
1782 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1783
1784 Update the calls/references to the above functions below.
1785
1786 (linux_process_target::handle_extended_wait)
1787 (linux_process_target::filter_event)
1788 (linux_process_target::wait_for_event_filtered)
1789 (linux_process_target::wait_1)
1790 (linux_process_target::move_out_of_jump_pad)
1791 (linux_process_target::start_step_over)
1792 (linux_process_target::resume)
1793 (linux_process_target::proceed_all_lwps)
1794 (regsets_store_inferior_registers)
1795 (linux_process_target::store_register)
1796
1797 * linux-low.h (class linux_process_target)
1798 <get_pc>
1799 <save_stop_reason>
1800 <thread_still_has_status_pending>
1801 <status_pending_p_callback>
1802 <resume_stopped_resumed_lwps>
1803 <install_software_single_step_breakpoints>
1804 <single_step>
1805 <resume_one_lwp_throw>
1806 <resume_one_lwp>
1807 <resume_status_pending>
1808 <thread_needs_step_over>
1809 <resume_one_thread>
1810 <proceed_one_lwp>
1811 <unsuspend_and_proceed_one_lwp>: Declare.
1812
bd70b1f2
TBA
18132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1814
1815 Turn the 'fetch_register' linux target op into a method of
1816 linux_process_target.
1817
1818 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1819 (class linux_process_target) <low_fetch_register>: Declare.
1820 * linux-x86-low.cc (the_low_target)
1821 * linux-aarch64-low.cc (the_low_target)
1822 * linux-arm-low.cc (the_low_target)
1823 * linux-bfin-low.cc (the_low_target)
1824 * linux-cris-low.cc (the_low_target)
1825 * linux-crisv32-low.cc (the_low_target)
1826 * linux-m32r-low.cc (the_low_target)
1827 * linux-m68k-low.cc (the_low_target)
1828 * linux-nios2-low.cc (the_low_target)
1829 * linux-ppc-low.cc (the_low_target)
1830 * linux-s390-low.cc (the_low_target)
1831 * linux-sh-low.cc (the_low_target)
1832 * linux-sparc-low.cc (the_low_target)
1833 * linux-tic6x-low.cc (the_low_target)
1834 * linux-tile-low.cc (the_low_target)
1835 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1836 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1837 Declare.
1838 (ia64_fetch_register): Turn into...
1839 (ia64_target::low_fetch_register): ...this.
1840 (the_low_target): Remove the op field.
1841 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1842 Declare.
1843 (mips_fetch_register): Turn into...
1844 (mips_target::low_fetch_register): ...this.
1845 (the_low_target): Remove the op field.
1846 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1847 Declare.
1848 (riscv_fetch_register): Turn into...
1849 (riscv_target::low_fetch_register): ...this.
1850 (the_low_target): Remove the op field.
1851
1852 Update the callers below.
1853
1854 * linux-low.cc (linux_process_target::fetch_registers)
1855 (linux_process_target::low_fetch_register)
1856
daca57a7
TBA
18572020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1858
1859 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1860 linux target ops into methods of linux_process_target.
1861
1862 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1863 (class linux_process_target) <fetch_register>
1864 <store_register>
1865 <usr_fetch_inferior_registers>
1866 <usr_store_inferior_registers>
1867 <low_cannot_fetch_register>
1868 <low_cannot_fetch_register> Declare.
1869 * linux-low.cc (fetch_register): Turn into...
1870 (linux_process_target::fetch_register): ...this.
1871 (store_register): Turn into ...
1872 (linux_process_target::store_register): ...this.
1873 (usr_fetch_inferior_registers): Turn into...
1874 (linux_process_target::usr_fetch_inferior_registers): ...this.
1875 (usr_store_inferior_registers): Turn into...
1876 (linux_process_target::usr_store_inferior_registers): ...this.
1877 * linux-x86-low.cc (class x86_target)
1878 <low_cannot_fetch_register>
1879 <low_cannot_store_register>: Declare.
1880 (x86_cannot_store_register): Turn into...
1881 (x86_target::low_cannot_store_register): ...this.
1882 (x86_cannot_fetch_register): Turn into...
1883 (x86_target::low_cannot_fetch_register): ...this.
1884 (the_low_target): Remove the target op fields.
1885 * linux-aarch64-low.cc (class aarch64_target)
1886 <low_cannot_fetch_register>
1887 <low_cannot_store_register>: Declare.
1888 (aarch64_target::low_cannot_fetch_register)
1889 (aarch64_target::low_cannot_store_register): Define.
1890 (the_low_target): Remove the op fields.
1891 * linux-arm-low.cc (class arm_target)
1892 <low_cannot_fetch_register>
1893 <low_cannot_store_register>: Declare.
1894 (arm_cannot_fetch_register): Turn into...
1895 (arm_target::low_cannot_fetch_register): ...this.
1896 (arm_cannot_store_register): Turn into...
1897 (arm_target::low_cannot_store_register): ...this.
1898 (the_low_target): Remove the op fields.
1899 * linux-bfin-low.cc (class bfin_target)
1900 <low_cannot_fetch_register>
1901 <low_cannot_store_register>: Declare.
1902 (bfin_cannot_fetch_register): Turn into...
1903 (bfin_target::low_cannot_fetch_register): ...this.
1904 (bfin_cannot_store_register): Turn into...
1905 (bfin_target::low_cannot_store_register): ...this.
1906 (the_low_target): Remove the op fields.
1907 * linux-cris-low.cc (class cris_target)
1908 <low_cannot_fetch_register>
1909 <low_cannot_store_register>: Declare.
1910 (cris_cannot_fetch_register): Turn into...
1911 (cris_target::low_cannot_fetch_register): ...this.
1912 (cris_cannot_store_register): Turn into...
1913 (cris_target::low_cannot_store_register): ...this.
1914 (the_low_target): Remove the op fields.
1915 * linux-crisv32-low.cc (class crisv32_target)
1916 <low_cannot_fetch_register>
1917 <low_cannot_store_register>: Declare.
1918 (crisv32_target::low_cannot_fetch_register)
1919 (crisv32_target::low_cannot_store_register): Define.
1920 (the_low_target): Remove the op fields.
1921 * linux-ia64-low.cc (class ia64_target)
1922 <low_cannot_fetch_register>
1923 <low_cannot_store_register>: Declare.
1924 (ia64_cannot_fetch_register): Turn into...
1925 (ia64_target::low_cannot_fetch_register): ...this.
1926 (ia64_cannot_store_register): Turn into...
1927 (ia64_target::low_cannot_store_register): ...this.
1928 (the_low_target): Remove the op fields.
1929 * linux-m32r-low.cc (class m32r_target)
1930 <low_cannot_fetch_register>
1931 <low_cannot_store_register>: Declare.
1932 (m32r_cannot_fetch_register): Turn into...
1933 (m32r_target::low_cannot_fetch_register): ...this.
1934 (m32r_cannot_store_register): Turn into...
1935 (m32r_target::low_cannot_store_register): ...this.
1936 (the_low_target): Remove the op fields.
1937 * linux-m68k-low.cc (class m68k_target)
1938 <low_cannot_fetch_register>
1939 <low_cannot_store_register>: Declare.
1940 (m68k_cannot_fetch_register): Turn into...
1941 (m68k_target::low_cannot_fetch_register): ...this.
1942 (m68k_cannot_store_register): Turn into...
1943 (m68k_target::low_cannot_store_register): ...this.
1944 (the_low_target): Remove the op fields.
1945 * linux-mips-low.cc (class mips_target)
1946 <low_cannot_fetch_register>
1947 <low_cannot_store_register>: Declare.
1948 (mips_cannot_fetch_register): Turn into...
1949 (mips_target::low_cannot_fetch_register): ...this.
1950 (mips_cannot_store_register): Turn into...
1951 (mips_target::low_cannot_store_register): ...this.
1952 (get_usrregs_info): Inline at the call sites in
1953 low_cannot_fetch_register and low_cannot_store_register,
1954 and remove.
1955 (the_low_target): Remove the op fields.
1956 * linux-nios2-low.cc (class nios2_target)
1957 <low_cannot_fetch_register>
1958 <low_cannot_store_register>: Declare.
1959 (nios2_cannot_fetch_register): Turn into...
1960 (nios2_target::low_cannot_fetch_register): ...this.
1961 (nios2_cannot_store_register): Turn into...
1962 (nios2_target::low_cannot_store_register): ...this.
1963 (the_low_target): Remove the op fields.
1964 * linux-ppc-low.cc (class ppc_target)
1965 <low_cannot_fetch_register>
1966 <low_cannot_store_register>: Declare.
1967 (ppc_cannot_fetch_register): Turn into...
1968 (ppc_target::low_cannot_fetch_register): ...this.
1969 (ppc_cannot_store_register): Turn into...
1970 (ppc_target::low_cannot_store_register): ...this.
1971 (the_low_target): Remove the op fields.
1972 * linux-riscv-low.cc (class riscv_target)
1973 <low_cannot_fetch_register>
1974 <low_cannot_store_register>: Declare.
1975 (riscv_target::low_cannot_fetch_register)
1976 (riscv_target::low_cannot_store_register): Define.
1977 (the_low_target): Remove the op fields.
1978 * linux-s390-low.cc (class s390_target)
1979 <low_cannot_fetch_register>
1980 <low_cannot_store_register>: Declare.
1981 (s390_cannot_fetch_register): Turn into...
1982 (s390_target::low_cannot_fetch_register): ...this.
1983 (s390_cannot_store_register): Turn into...
1984 (s390_target::low_cannot_store_register): ...this.
1985 (the_low_target): Remove the op fields.
1986 * linux-sh-low.cc (class sh_target)
1987 <low_cannot_fetch_register>
1988 <low_cannot_store_register>: Declare.
1989 (sh_cannot_fetch_register): Turn into...
1990 (sh_target::low_cannot_fetch_register): ...this.
1991 (sh_cannot_store_register): Turn into...
1992 (sh_target::low_cannot_store_register): ...this.
1993 (the_low_target): Remove the op fields.
1994 * linux-sparc-low.cc (class sparc_target)
1995 <low_cannot_fetch_register>
1996 <low_cannot_store_register>: Declare.
1997 (sparc_cannot_fetch_register): Turn into...
1998 (sparc_target::low_cannot_fetch_register): ...this.
1999 (sparc_cannot_store_register): Turn into...
2000 (sparc_target::low_cannot_store_register): ...this.
2001 (the_low_target): Remove the op fields.
2002 * linux-tic6x-low.cc (class tic6x_target)
2003 <low_cannot_fetch_register>
2004 <low_cannot_store_register>: Declare.
2005 (tic6x_cannot_fetch_register): Turn into...
2006 (tic6x_target::low_cannot_fetch_register): ...this.
2007 (tic6x_cannot_store_register): Turn into...
2008 (tic6x_target::low_cannot_store_register): ...this.
2009 (the_low_target): Remove the op fields.
2010 * linux-tile-low.cc (class tile_target)
2011 <low_cannot_fetch_register>
2012 <low_cannot_store_register>: Declare.
2013 (tile_cannot_fetch_register): Turn into...
2014 (tile_target::low_cannot_fetch_register): ...this.
2015 (tile_cannot_store_register): Turn into...
2016 (tile_target::low_cannot_store_register): ...this.
2017 (the_low_target): Remove the op fields.
2018 * linux-xtensa-low.cc (class xtensa_target)
2019 <low_cannot_fetch_register>
2020 <low_cannot_store_register>: Declare.
2021 (xtensa_target::low_cannot_fetch_register)
2022 (xtensa_target::low_cannot_store_register): Define.
2023 (the_low_target): Remove the op fields.
2024
aa8d21c9
TBA
20252020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2026
2027 Turn the 'regs_info' linux target op into a method of
2028 linux_process_target.
2029
2030 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2031 (class linux_process_target) <get_regs_info>: Define.
2032
2033 Update the callers below.
2034
2035 * linux-low.cc (linux_process_target::fetch_registers)
2036 (linux_process_target::store_registers)
2037 * proc-service.cc (gregset_info)
2038
2039 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2040 (x86_linux_regs_info): Turn into ...
2041 (x86_target::get_regs_info): ...this.
2042 (the_low_target): Remove the op field.
2043 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2044 Declare.
2045 (aarch64_regs_info): Turn into ...
2046 (aarch64_target::get_regs_info): ...this.
2047 (the_low_target): Remove the op field.
2048 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2049 (arm_regs_info): Turn into ...
2050 (arm_target::get_regs_info): ...this.
2051 (the_low_target): Remove the op field.
2052 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2053 (bfin_regs_info): Turn into ...
2054 (bfin_target::get_regs_info): ...this.
2055 (the_low_target): Remove the op field.
2056 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2057 (cris_regs_info): Turn into ...
2058 (cris_target::get_regs_info): ...this.
2059 (the_low_target): Remove the op field.
2060 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2061 Declare.
2062 (crisv32_regs_info): Turn into ...
2063 (crisv32_target::get_regs_info): ...this.
2064 (the_low_target): Remove the op field.
2065 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2066 (ia64_regs_info): Turn into ...
2067 (ia64_target::get_regs_info): ...this.
2068 (the_low_target): Remove the op field.
2069 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2070 (m32r_regs_info): Turn into ...
2071 (m32r_target::get_regs_info): ...this.
2072 (the_low_target): Remove the op field.
2073 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2074 (m68k_regs_info): Turn into ...
2075 (m68k_target::get_regs_info): ...this.
2076 (the_low_target): Remove the op field.
2077 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2078 (mips_regs_info): Turn into ...
2079 (mips_target::get_regs_info): ...this.
2080 (the_low_target): Remove the op field.
2081 (get_usrregs_info): Update the call to the op.
2082 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2083 (nios2_regs_info): Turn into ...
2084 (nios2_target::get_regs_info): ...this.
2085 (the_low_target): Remove the op field.
2086 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2087 (ppc_regs_info): Turn into ...
2088 (ppc_target::get_regs_info): ...this.
2089 (the_low_target): Remove the op field.
2090 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2091 (riscv_regs_info): Turn into ...
2092 (riscv_target::get_regs_info): ...this.
2093 (the_low_target): Remove the op field.
2094 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2095 (s390_regs_info): Turn into ...
2096 (s390_target::get_regs_info): ...this.
2097 (the_low_target): Remove the op field.
2098 (s390_collect_ptrace_register)
2099 (s390_supply_ptrace_register)
2100 (s390_fill_gregset): Update the call to the op.
2101 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2102 (sh_regs_info): Turn into ...
2103 (sh_target::get_regs_info): ...this.
2104 (the_low_target): Remove the op field.
2105 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2106 (sparc_regs_info): Turn into ...
2107 (sparc_target::get_regs_info): ...this.
2108 (the_low_target): Remove the op field.
2109 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2110 (tic6x_regs_info): Turn into ...
2111 (tic6x_target::get_regs_info): ...this.
2112 (the_low_target): Remove the op field.
2113 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2114 (tile_regs_info): Turn into ...
2115 (tile_target::get_regs_info): ...this.
2116 (the_low_target): Remove the op field.
2117 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2118 Declare.
2119 (xtensa_regs_info): Turn into ...
2120 (xtensa_target::get_regs_info): ...this.
2121 (the_low_target): Remove the op field.
2122
797bcff5
TBA
21232020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2124
2125 Turn the 'arch_setup' linux target op into a method of
2126 linux_process_target.
2127
2128 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2129 (class linux_process_target) <arch_setup_thread>
2130 <low_arch_setup>: New declarations.
2131 * linux-low.cc (linux_arch_setup): Delete.
2132 (linux_arch_setup_thread): Turn into...
2133 (linux_process_target::arch_setup_thread): ... this.
2134
2135 Update the callers below.
2136
2137 (linux_process_target::handle_extended_wait)
2138 (linux_process_target::post_create_inferior)
2139 (linux_process_target::filter_event)
2140
2141 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2142 declaration.
2143 (x86_linux_update_xmltarget): Turn into...
2144 (x86_target::update_xmltarget): ...this.
2145 (x86_linux_process_qsupported): Update the call to
2146 x86_linux_update_xmltarget.
2147 (x86_arch_setup): Turn into ...
2148 (x86_target::low_arch_setup): ...this.
2149 (the_low_target): Remove the op field.
2150 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2151 declaration.
2152 (aarch64_arch_setup): Turn into ...
2153 (aarch64_target::low_arch_setup): ...this.
2154 (the_low_target): Remove the op field.
2155 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2156 declaration.
2157 (arm_arch_setup): Turn into ...
2158 (arm_target::low_arch_setup): ...this.
2159 (the_low_target): Remove the op field.
2160 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2161 declaration.
2162 (bfin_arch_setup): Turn into ...
2163 (bfin_target::low_arch_setup): ...this.
2164 (the_low_target): Remove the op field.
2165 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2166 declaration.
2167 (cris_arch_setup): Turn into ...
2168 (cris_target::low_arch_setup): ...this.
2169 (the_low_target): Remove the op field.
2170 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2171 declaration.
2172 (crisv32_arch_setup): Turn into ...
2173 (crisv32_target::low_arch_setup): ...this.
2174 (the_low_target): Remove the op field.
2175 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2176 declaration.
2177 (ia64_arch_setup): Turn into ...
2178 (ia64_target::low_arch_setup): ...this.
2179 (the_low_target): Remove the op field.
2180 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2181 declaration.
2182 (m32r_arch_setup): Turn into ...
2183 (m32r_target::low_arch_setup): ...this.
2184 (the_low_target): Remove the op field.
2185 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2186 declaration.
2187 (m68k_arch_setup): Turn into ...
2188 (m68k_target::low_arch_setup): ...this.
2189 (the_low_target): Remove the op field.
2190 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2191 declaration.
2192 (mips_arch_setup): Turn into ...
2193 (mips_target::low_arch_setup): ...this.
2194 (the_low_target): Remove the op field.
2195 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2196 declaration.
2197 (nios2_arch_setup): Turn into ...
2198 (nios2_target::low_arch_setup): ...this.
2199 (the_low_target): Remove the op field.
2200 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2201 declaration.
2202 (ppc_arch_setup): Turn into ...
2203 (ppc_target::low_arch_setup): ...this.
2204 (the_low_target): Remove the op field.
2205 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2206 declaration.
2207 (riscv_arch_setup): Turn into ...
2208 (riscv_target::low_arch_setup): ...this.
2209 (the_low_target): Remove the op field.
2210 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2211 declaration.
2212 (s390_arch_setup): Turn into ...
2213 (s390_target::low_arch_setup): ...this.
2214 (the_low_target): Remove the op field.
2215 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2216 declaration.
2217 (sh_arch_setup): Turn into ...
2218 (sh_target::low_arch_setup): ...this.
2219 (the_low_target): Remove the op field.
2220 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2221 declaration.
2222 (sparc_arch_setup): Turn into ...
2223 (sparc_target::low_arch_setup): ...this.
2224 (the_low_target): Remove the op field.
2225 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2226 declaration.
2227 (tic6x_arch_setup): Turn into ...
2228 (tic6x_target::low_arch_setup): ...this.
2229 (the_low_target): Remove the op field.
2230 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2231 declaration.
2232 (tile_arch_setup): Turn into ...
2233 (tile_target::low_arch_setup): ...this.
2234 (the_low_target): Remove the op field.
2235 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2236 declaration.
2237 (xtensa_arch_setup): Turn into ...
2238 (xtensa_target::low_arch_setup): ...this.
2239 (the_low_target): Remove the op field.
2240
ef0478f6
TBA
22412020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2242
2243 * linux-low.h (the_linux_target): New extern declaration.
2244 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2245 'the_target'.
2246 (the_linux_target): Remove.
2247 * linux-x86-low.cc (class x86_target): New class.
2248 (the_x86_target): New static object.
2249 (the_linux_target): Define as pointer to the_x86_target.
2250 * linux-aarch64-low.cc (class aarch64_target): New class.
2251 (the_aarch64_target): New static object.
2252 (the_linux_target): Define as pointer to the_aarch64_target.
2253 * linux-arm-low.cc (class arm_target): New class.
2254 (the_arm_target): New static object.
2255 (the_linux_target): Define as pointer to the_arm_target.
2256 * linux-bfin-low.cc (class bfin_target): New class.
2257 (the_bfin_target): New static object.
2258 (the_linux_target): Define as pointer to the_bfin_target.
2259 * linux-cris-low.cc (class cris_target): New class.
2260 (the_cris_target): New static object.
2261 (the_linux_target): Define as pointer to the_cris_target.
2262 * linux-crisv32-low.cc (class crisv32_target): New class.
2263 (the_crisv32_target): New static object.
2264 (the_linux_target): Define as pointer to the_crisv32_target.
2265 * linux-ia64-low.cc (class ia64_target): New class.
2266 (the_ia64_target): New static object.
2267 (the_linux_target): Define as pointer to the_ia64_target.
2268 * linux-m32r-low.cc (class m32r_target): New class.
2269 (the_m32r_target): New static object.
2270 (the_linux_target): Define as pointer to the_m32r_target.
2271 * linux-m68k-low.cc (class m68k_target): New class.
2272 (the_m68k_target): New static object.
2273 (the_linux_target): Define as pointer to the_m68k_target.
2274 * linux-mips-low.cc (class mips_target): New class.
2275 (the_mips_target): New static object.
2276 (the_linux_target): Define as pointer to the_mips_target.
2277 * linux-nios2-low.cc (class nios2_target): New class.
2278 (the_nios2_target): New static object.
2279 (the_linux_target): Define as pointer to the_nios2_target.
2280 * linux-ppc-low.cc (class ppc_target): New class.
2281 (the_ppc_target): New static object.
2282 (the_linux_target): Define as pointer to the_ppc_target.
2283 * linux-riscv-low.cc (class riscv_target): New class.
2284 (the_riscv_target): New static object.
2285 (the_linux_target): Define as pointer to the_riscv_target.
2286 * linux-s390-low.cc (class s390_target): New class.
2287 (the_s390_target): New static object.
2288 (the_linux_target): Define as pointer to the_s390_target.
2289 * linux-sh-low.cc (class sh_target): New class.
2290 (the_sh_target): New static object.
2291 (the_linux_target): Define as pointer to the_sh_target.
2292 * linux-sparc-low.cc (class sparc_target): New class.
2293 (the_sparc_target): New static object.
2294 (the_linux_target): Define as pointer to the_sparc_target.
2295 * linux-tic6x-low.cc (class tic6x_target): New class.
2296 (the_tic6x_target): New static object.
2297 (the_linux_target): Define as pointer to the_tic6x_target.
2298 * linux-tile-low.cc (class tile_target): New class.
2299 (the_tile_target): New static object.
2300 (the_linux_target): Define as pointer to the_tile_target.
2301 * linux-xtensa-low.cc (class xtensa_target): New class.
2302 (the_xtensa_target): New static object.
2303 (the_linux_target): Define as pointer to the_xtensa_target.
2304
d16f3f6c
TBA
23052020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2306
2307 Turn some static functions in linux-low.cc into private methods of
2308 linux_process_target.
2309
2310 * linux-low.cc (handle_extended_wait): Turn into ...
2311 (linux_process_target::handle_extended_wait): ...this. Call
2312 'mourn' on 'this' object instead of 'the_target'.
2313 (maybe_move_out_of_jump_pad): Turn into...
2314 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2315 (linux_low_filter_event): Turn into...
2316 (linux_process_target::filter_event): ...this.
2317 (linux_wait_for_event_filtered): Turn into...
2318 (linux_process_target::wait_for_event_filtered): ...this.
2319 (linux_wait_for_event): Turn into...
2320 (linux_process_target::wait_for_event): ...this.
2321 (linux_wait_1): Turn into...
2322 (linux_process_target::wait_1): ...this.
2323 (wait_for_sigstop): Turn into...
2324 (linux_process_target::wait_for_sigstop): ...this.
2325 (move_out_of_jump_pad_callback): Turn into...
2326 (linux_process_target::move_out_of_jump_pad): ...this.
2327 (stop_all_lwps): Turn into...
2328 (linux_process_target::stop_all_lwps): ...this.
2329 (start_step_over): Turn into...
2330 (linux_process_target::start_step_over): ...this.
2331 (complete_ongoing_step_over): Turn into...
2332 (linux_process_target::complete_ongoing_step_over): ...this.
2333 (proceed_all_lwps): Turn into...
2334 (linux_process_target::proceed_all_lwps): ...this.
2335 (unstop_all_lwps): Turn into...
2336 (linux_process_target::unstop_all_lwps): ...this.
2337
2338 * linux-low.h (class linux_process_target)
2339 <handle_extended_wait>
2340 <maybe_move_out_of_jump_pad>
2341 filter_event>
2342 <wait_for_event_filtered>
2343 <wait_for_event>
2344 <wait_1>
2345 <wait_for_sigstop>
2346 <move_out_of_jump_pad>
2347 <stop_all_lwps>
2348 <start_step_over>
2349 <complete_ongoing_step_over>
2350 <proceed_all_lwps>
2351 <unstop_all_lwps>: Declare.
2352
2353 Update the callers below.
2354
2355 * linux-low.cc (linux_process_target::attach): Update.
2356 (linux_process_target::stabilize_threads): Ditto.
2357 (linux_process_target::wait): Ditto.
2358
a5863204
TBA
23592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2360
2361 * linux-low.h (struct linux_target_ops): Update the comment for
2362 'cannot_store_register' to return 0 or 1.
2363 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2364 of 2.
2365
c884cc46
SM
23662020-03-20 Simon Marchi <simon.marchi@efficios.com>
2367
2368 * config.in: Re-generate.
2369 * configure: Re-generate.
2370
5a82b8a1
KR
23712020-03-17 Kamil Rytarowski <n54@gmx.com>
2372
2373 * regcache.cc (find_register_by_number): Update.
2374 * tdesc.cc (init_target_desc): Likewise.
2375 * tdesc.h (target_desc::reg_defs): Likewise.
2376
4635ff97
TT
23772020-03-12 Tom Tromey <tom@tromey.com>
2378
2379 * configure: Rebuild.
2380 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2381 (WIN32APILIBS): New subst.
2382 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2383 gdbsupport files.
2384 (gdbsupport/%.o): Remove target.
2385 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2386 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2387 (WIN32APILIBS): New variable.
2388 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2389 (gdbreplay$(EXEEXT)): Likewise.
2390
9a665d62
TT
23912020-03-12 Tom Tromey <tom@tromey.com>
2392
2393 * config.in, configure: Rebuild.
2394 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2395 * acinclude.m4: Include gettext-sister.m4.
2396 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2397 variables.
2398 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2399 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2400
272cd5a3
SM
24012020-03-12 Simon Marchi <simon.marchi@efficios.com>
2402
2403 * acinclude.m4: Update path to selftest.m4.
2404
db6878ac
SM
24052020-03-12 Simon Marchi <simon.marchi@efficios.com>
2406
2407 * configure.ac: Don't source bfd/development.sh, move
2408 GDB_AC_COMMON higher.
2409 * configure: Re-generate.
2410
4d696a5c
SM
24112020-03-12 Simon Marchi <simon.marchi@efficios.com>
2412
2413 * configure: Re-generate.
2414
a0761e34
SM
24152020-03-11 Simon Marchi <simon.marchi@efficios.com>
2416
2417 * configure: Re-generate.
2418
20ea4a60
AB
24192020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2420
2421 * .dir-locals.el: New file.
2422
842806cb
TBA
24232020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2424
2425 * .gitattributes: New file.
2426
442131c1
AB
24272020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2428
2429 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2430 reply into an S reply.
2431 * server.cc (disable_packet_T): New global.
2432 (captured_main): Set new global when appropriate.
2433 * server.h (disable_packet_T): Declare.
2434
dda42c0b
TT
24352020-02-21 Tom Tromey <tom@tromey.com>
2436
2437 * Makefile.in (mostlyclean): New target.
2438
52405d85
TBA
24392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2440
2441 * target.h (struct process_stratum_target): Remove.
2442 (class process_target): Rename to ...
2443 (class process_stratum_target): ... this.
2444 * linux-low.h (class linux_process_target): Derive from
2445 'process_stratum_target'.
2446 * linux-low.cc (linux_target_ops): Remove.
2447 (initialize_low): Set the_target to the singleton instance of
2448 linux_process_target.
2449 * lynx-low.h (class lynx_process_target): Derive from
2450 'process_stratum_target'.
2451 * lynx-low.cc (lynx_target_ops): Remove.
2452 (initialize_low): Set the_target to the singleton instance of
2453 lynx_process_target.
2454 * nto-low.h (class nto_process_target): Derive from
2455 'process_stratum_target'.
2456 * nto-low.cc (nto_target_ops): Remove.
2457 (initialize_low): Set the_target to the singleton instance of
2458 nto_process_target.
2459 * win32-low.h (class win32_process_target): Derive from
2460 'process_stratum_target'.
2461 * win32-low.cc (win32_target_ops): Remove.
2462 (initialize_low): Set the_target to the singleton instance of
2463 win32_process_target.
2464
2465 Replace 'the_target->pt' with 'the_target' in the uses below.
2466
2467 * hostio.cc (hostio_error)
2468 (handle_setfs)
2469 (handle_open)
2470 (handle_unlink)
2471 (handle_readlink)
2472 * linux-aarch32-low.cc (arm_breakpoint_at)
2473 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2474 * linux-arm-low.cc (arm_sigreturn_next_pc)
2475 (arm_get_hwcap)
2476 (arm_get_syscall_trapinfo)
2477 * linux-cris-low.cc (cris_breakpoint_at)
2478 * linux-crisv32-low.cc (cris_breakpoint_at)
2479 * linux-low.cc (handle_extended_wait)
2480 (linux_wait_1)
2481 (linux_read_memory)
2482 (linux_process_target::breakpoint_kind_from_pc)
2483 (linux_get_auxv)
2484 * linux-m32r-low.cc (m32r_breakpoint_at)
2485 * linux-mips-low.cc (mips_breakpoint_at)
2486 * linux-nios2-low.cc (nios2_breakpoint_at)
2487 * linux-ppc-low.cc (ppc_breakpoint_at)
2488 * linux-s390-low.cc (s390_get_hwcap)
2489 * linux-sh-low.cc (sh_breakpoint_at)
2490 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2491 (sparc_store_gregset_from_stack)
2492 (sparc_breakpoint_at)
2493 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2494 * linux-tile-low.cc (tile_breakpoint_at)
2495 * linux-x86-low.cc (x86_breakpoint_at)
2496 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2497 * mem-break.cc (bp_size)
2498 (bp_opcode)
2499 (insert_memory_breakpoint)
2500 (set_raw_breakpoint_at)
2501 (delete_raw_breakpoint)
2502 (z_type_supported)
2503 (uninsert_raw_breakpoint)
2504 (reinsert_raw_breakpoint)
2505 (validate_inserted_breakpoint)
2506 * regcache.cc (regcache_read_pc)
2507 (regcache_write_pc)
2508 * remote-utils.cc (putpkt_binary_1)
2509 (input_interrupt)
2510 (getpkt)
2511 (prepare_resume_reply)
2512 * server.cc (handle_general_set)
2513 (handle_detach)
2514 (handle_qxfer_auxv)
2515 (handle_qxfer_exec_file)
2516 (handle_qxfer_libraries_svr4)
2517 (handle_qxfer_osdata)
2518 (handle_qxfer_siginfo)
2519 (handle_qxfer_fdpic)
2520 (handle_query)
2521 (resume)
2522 (handle_v_requests)
2523 (queue_stop_reply_callback)
2524 (captured_main)
2525 * target.cc (prepare_to_access_memory)
2526 (done_accessing_memory)
2527 (read_inferior_memory)
2528 (target_write_memory)
2529 (target_stop_and_wait)
2530 (target_wait)
2531 (target_mourn_inferior)
2532 (target_continue_no_signal)
2533 (target_continue)
2534 (target_supports_multi_process)
2535 (kill_inferior)
2536 * target.h
2537 (target_create_inferior)
2538 (target_post_create_inferior)
2539 (myattach)
2540 (target_supports_fork_events)
2541 (target_supports_vfork_events)
2542 (target_supports_exec_events)
2543 (target_handle_new_gdb_connection)
2544 (detach_inferior)
2545 (mythread_alive)
2546 (fetch_inferior_registers)
2547 (store_inferior_registers)
2548 (join_inferior)
2549 (target_supports_non_stop)
2550 (target_async)
2551 (target_process_qsupported)
2552 (target_supports_catch_syscall)
2553 (target_get_ipa_tdesc_idx)
2554 (target_supports_tracepoints)
2555 (target_supports_fast_tracepoints)
2556 (target_get_min_fast_tracepoint_insn_len)
2557 (target_thread_stopped)
2558 (target_pause_all)
2559 (target_unpause_all)
2560 (target_stabilize_threads)
2561 (target_install_fast_tracepoint_jump_pad)
2562 (target_emit_ops)
2563 (target_supports_disable_randomization)
2564 (target_supports_agent)
2565 (target_enable_btrace)
2566 (target_disable_btrace)
2567 (target_read_btrace)
2568 (target_read_btrace_conf)
2569 (target_supports_range_stepping)
2570 (target_supports_stopped_by_sw_breakpoint)
2571 (target_stopped_by_sw_breakpoint)
2572 (target_supports_stopped_by_hw_breakpoint)
2573 (target_supports_hardware_single_step)
2574 (target_stopped_by_hw_breakpoint)
2575 (target_breakpoint_kind_from_pc)
2576 (target_breakpoint_kind_from_current_state)
2577 (target_supports_software_single_step)
2578 (target_core_of_thread)
2579 (target_thread_name)
2580 (target_thread_handle)
2581 * win32-low.cc (do_initial_child_stuff)
2582
2583 Rename target op default definitions listed below.
2584
2585 * target.cc (process_target::post_create_inferior): Rename as ...
2586 (process_stratum_target::post_create_inferior): ... this.
2587 (process_target::prepare_to_access_memory): Rename as ...
2588 (process_stratum_target::prepare_to_access_memory): ... this.
2589 (process_target::done_accessing_memory): Rename as ...
2590 (process_stratum_target::done_accessing_memory): ... this.
2591 (process_target::look_up_symbols): Rename as ...
2592 (process_stratum_target::look_up_symbols): ... this.
2593 (process_target::supports_read_auxv): Rename as ...
2594 (process_stratum_target::supports_read_auxv): ... this.
2595 (process_target::read_auxv): Rename as ...
2596 (process_stratum_target::read_auxv): ... this.
2597 (process_target::supports_z_point_type): Rename as ...
2598 (process_stratum_target::supports_z_point_type): ... this.
2599 (process_target::insert_point): Rename as ...
2600 (process_stratum_target::insert_point): ... this.
2601 (process_target::remove_point): Rename as ...
2602 (process_stratum_target::remove_point): ... this.
2603 (process_target::stopped_by_sw_breakpoint): Rename as ...
2604 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2605 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2606 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2607 (process_target::stopped_by_hw_breakpoint): Rename as ...
2608 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2609 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2610 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2611 (process_target::supports_hardware_single_step): Rename as ...
2612 (process_stratum_target::supports_hardware_single_step): ... this.
2613 (process_target::stopped_by_watchpoint): Rename as ...
2614 (process_stratum_target::stopped_by_watchpoint): ... this.
2615 (process_target::stopped_data_address): Rename as ...
2616 (process_stratum_target::stopped_data_address): ... this.
2617 (process_target::supports_read_offsets): Rename as ...
2618 (process_stratum_target::supports_read_offsets): ... this.
2619 (process_target::read_offsets): Rename as ...
2620 (process_stratum_target::read_offsets): ... this.
2621 (process_target::supports_get_tls_address): Rename as ...
2622 (process_stratum_target::supports_get_tls_address): ... this.
2623 (process_target::get_tls_address): Rename as ...
2624 (process_stratum_target::get_tls_address): ... this.
2625 (process_target::hostio_last_error): Rename as ...
2626 (process_stratum_target::hostio_last_error): ... this.
2627 (process_target::supports_qxfer_osdata): Rename as ...
2628 (process_stratum_target::supports_qxfer_osdata): ... this.
2629 (process_target::qxfer_osdata): Rename as ...
2630 (process_stratum_target::qxfer_osdata): ... this.
2631 (process_target::supports_qxfer_siginfo): Rename as ...
2632 (process_stratum_target::supports_qxfer_siginfo): ... this.
2633 (process_target::qxfer_siginfo): Rename as ...
2634 (process_stratum_target::qxfer_siginfo): ... this.
2635 (process_target::supports_non_stop): Rename as ...
2636 (process_stratum_target::supports_non_stop): ... this.
2637 (process_target::async): Rename as ...
2638 (process_stratum_target::async): ... this.
2639 (process_target::start_non_stop): Rename as ...
2640 (process_stratum_target::start_non_stop): ... this.
2641 (process_target::supports_multi_process): Rename as ...
2642 (process_stratum_target::supports_multi_process): ... this.
2643 (process_target::supports_fork_events): Rename as ...
2644 (process_stratum_target::supports_fork_events): ... this.
2645 (process_target::supports_vfork_events): Rename as ...
2646 (process_stratum_target::supports_vfork_events): ... this.
2647 (process_target::supports_exec_events): Rename as ...
2648 (process_stratum_target::supports_exec_events): ... this.
2649 (process_target::handle_new_gdb_connection): Rename as ...
2650 (process_stratum_target::handle_new_gdb_connection): ... this.
2651 (process_target::handle_monitor_command): Rename as ...
2652 (process_stratum_target::handle_monitor_command): ... this.
2653 (process_target::core_of_thread): Rename as ...
2654 (process_stratum_target::core_of_thread): ... this.
2655 (process_target::supports_read_loadmap): Rename as ...
2656 (process_stratum_target::supports_read_loadmap): ... this.
2657 (process_target::read_loadmap): Rename as ...
2658 (process_stratum_target::read_loadmap): ... this.
2659 (process_target::process_qsupported): Rename as ...
2660 (process_stratum_target::process_qsupported): ... this.
2661 (process_target::supports_tracepoints): Rename as ...
2662 (process_stratum_target::supports_tracepoints): ... this.
2663 (process_target::read_pc): Rename as ...
2664 (process_stratum_target::read_pc): ... this.
2665 (process_target::write_pc): Rename as ...
2666 (process_stratum_target::write_pc): ... this.
2667 (process_target::supports_thread_stopped): Rename as ...
2668 (process_stratum_target::supports_thread_stopped): ... this.
2669 (process_target::thread_stopped): Rename as ...
2670 (process_stratum_target::thread_stopped): ... this.
2671 (process_target::supports_get_tib_address): Rename as ...
2672 (process_stratum_target::supports_get_tib_address): ... this.
2673 (process_target::get_tib_address): Rename as ...
2674 (process_stratum_target::get_tib_address): ... this.
2675 (process_target::pause_all): Rename as ...
2676 (process_stratum_target::pause_all): ... this.
2677 (process_target::unpause_all): Rename as ...
2678 (process_stratum_target::unpause_all): ... this.
2679 (process_target::stabilize_threads): Rename as ...
2680 (process_stratum_target::stabilize_threads): ... this.
2681 (process_target::supports_fast_tracepoints): Rename as ...
2682 (process_stratum_target::supports_fast_tracepoints): ... this.
2683 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2684 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2685 (process_target::emit_ops): Rename as ...
2686 (process_stratum_target::emit_ops): ... this.
2687 (process_target::supports_disable_randomization): Rename as ...
2688 (process_stratum_target::supports_disable_randomization): ... this.
2689 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2690 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2691 (process_target::qxfer_libraries_svr4): Rename as ...
2692 (process_stratum_target::qxfer_libraries_svr4): ... this.
2693 (process_target::supports_agent): Rename as ...
2694 (process_stratum_target::supports_agent): ... this.
2695 (process_target::enable_btrace): Rename as ...
2696 (process_stratum_target::enable_btrace): ... this.
2697 (process_target::disable_btrace): Rename as ...
2698 (process_stratum_target::disable_btrace): ... this.
2699 (process_target::read_btrace): Rename as ...
2700 (process_stratum_target::read_btrace): ... this.
2701 (process_target::read_btrace_conf): Rename as ...
2702 (process_stratum_target::read_btrace_conf): ... this.
2703 (process_target::supports_range_stepping): Rename as ...
2704 (process_stratum_target::supports_range_stepping): ... this.
2705 (process_target::supports_pid_to_exec_file): Rename as ...
2706 (process_stratum_target::supports_pid_to_exec_file): ... this.
2707 (process_target::pid_to_exec_file): Rename as ...
2708 (process_stratum_target::pid_to_exec_file): ... this.
2709 (process_target::supports_multifs): Rename as ...
2710 (process_stratum_target::supports_multifs): ... this.
2711 (process_target::multifs_open): Rename as ...
2712 (process_stratum_target::multifs_open): ... this.
2713 (process_target::multifs_unlink): Rename as ...
2714 (process_stratum_target::multifs_unlink): ... this.
2715 (process_target::multifs_readlink): Rename as ...
2716 (process_stratum_target::multifs_readlink): ... this.
2717 (process_target::breakpoint_kind_from_pc): Rename as ...
2718 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2719 (process_target::breakpoint_kind_from_current_state): Rename as ...
2720 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2721 (process_target::thread_name): Rename as ...
2722 (process_stratum_target::thread_name): ... this.
2723 (process_target::thread_handle): Rename as ...
2724 (process_stratum_target::thread_handle): ... this.
2725 (process_target::supports_software_single_step): Rename as ...
2726 (process_stratum_target::supports_software_single_step): ... this.
2727 (process_target::supports_catch_syscall): Rename as ...
2728 (process_stratum_target::supports_catch_syscall): ... this.
2729 (process_target::get_ipa_tdesc_idx): Rename as ...
2730 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2731
478f9adf
PA
27322020-02-20 Pedro Alves <palves@redhat.com>
2733
2734 * target.cc (set_target_ops): Simply copy the given target pointer
2735 instead of creating a copy of the pointed object.
2736
d633e831
TBA
27372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2738
2739 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2740 of process_target.
2741
2742 * target.h (struct process_stratum_target): Remove the target op.
2743 (class process_target): Add the target op.
2744 (target_get_ipa_tdesc_idx): Update the macro.
2745 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2746
2747 Update the derived classes and callers below.
2748
2749 * linux-low.cc (linux_target_ops): Update.
2750 (linux_get_ipa_tdesc_idx): Turn into ...
2751 (linux_process_target::get_ipa_tdesc_idx): ... this.
2752 * linux-low.h (class linux_process_target): Update.
2753 * lynx-low.cc (lynx_target_ops): Update.
2754 * nto-low.cc (nto_target_ops): Update.
2755 * win32-low.cc (win32_target_ops): Update.
2756
bc8d3ae4
TBA
27572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2758
2759 Turn process_stratum_target's supports_catch_syscall op into a
2760 method of process_target.
2761
2762 * target.h (struct process_stratum_target): Remove the target op.
2763 (class process_target): Add the target op.
2764 (target_supports_catch_syscall): Update the macro.
2765 * target.cc (process_target::supports_catch_syscall): Define.
2766
2767 Update the derived classes and callers below.
2768
2769 * linux-low.cc (linux_target_ops): Update.
2770 (linux_supports_catch_syscall): Turn into ...
2771 (linux_process_target::supports_catch_syscall): ... this.
2772 * linux-low.h (class linux_process_target): Update.
2773 * lynx-low.cc (lynx_target_ops): Update.
2774 * nto-low.cc (nto_target_ops): Update.
2775 * win32-low.cc (win32_target_ops): Update.
2776
5303a34f
TBA
27772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2778
2779 Turn process_stratum_target's supports_software_single_step op
2780 into a method of process_target.
2781
2782 * target.h (struct process_stratum_target): Remove the target op.
2783 (class process_target): Add the target op.
2784 (target_supports_software_single_step): Update the macro.
2785 * target.cc (process_target::supports_software_single_step): Define.
2786
2787 Update the derived classes and callers below.
2788
2789 * linux-low.cc (linux_target_ops): Update.
2790 (linux_supports_software_single_step): Turn into ...
2791 (linux_process_target::supports_software_single_step): ... this.
2792 * linux-low.h (class linux_process_target): Update.
2793 * lynx-low.cc (lynx_target_ops): Update.
2794 * nto-low.cc (nto_target_ops): Update.
2795 * win32-low.cc (win32_target_ops): Update.
2796
7f63b89b
TBA
27972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2798
2799 Turn process_stratum_target's thread_name and thread_handle ops
2800 into methods of process_target.
2801
2802 * target.h (struct process_stratum_target): Remove the target ops.
2803 (class process_target): Add the target ops.
2804 (target_thread_name): Update the macro.
2805 (target_thread_handle): Update the macro.
2806 * target.cc (process_target::thread_name): Define.
2807 (process_target::thread_handle): Define.
2808
2809 Update the derived classes and callers below.
2810
2811 * linux-low.cc (linux_target_ops): Update.
2812 (linux_process_target::thread_name): Define.
2813 (linux_process_target::thread_handle): Define.
2814 * linux-low.h (class linux_process_target): Update.
2815 * lynx-low.cc (lynx_target_ops): Update.
2816 * nto-low.cc (nto_target_ops): Update.
2817 * win32-low.cc (win32_target_ops): Update.
2818
d367006f
TBA
28192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2820
2821 Turn process_stratum_target's breakpoint_kind_from_pc,
2822 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2823 ops into methods of process_target.
2824
2825 * target.h (struct process_stratum_target): Remove the target op.
2826 (class process_target): Add the target op.
2827 (target_breakpoint_kind_from_pc): Update the macro.
2828 (target_breakpoint_kind_from_current_state): Update the macro.
2829 (default_breakpoint_kind_from_pc): Remove declaration.
2830 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2831 (process_target::breakpoint_kind_from_pc): ... this.
2832 (process_target::breakpoint_kind_from_current_state): Define.
2833
2834 Update the derived classes and callers below.
2835
2836 * mem-break.cc (bp_size): Update.
2837 (bp_opcode): Update.
2838 * linux-low.cc (linux_target_ops): Update.
2839 (linux_wait_1): Update.
2840 (linux_breakpoint_kind_from_pc): Turn into ...
2841 (linux_process_target::breakpoint_kind_from_pc): ... this.
2842 (linux_sw_breakpoint_from_kind): Turn into ...
2843 (linux_process_target::sw_breakpoint_from_kind): ... this.
2844 (linux_breakpoint_kind_from_current_state): Turn into ...
2845 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2846 * linux-low.h (class linux_process_target): Update.
2847 * lynx-low.cc (lynx_target_ops): Update.
2848 (lynx_process_target::sw_breakpoint_from_kind): Define.
2849 * lynx-low.h (class lynx_process_target): Update.
2850 * nto-low.cc (nto_target_ops): Update.
2851 (nto_sw_breakpoint_from_kind): Turn into ...
2852 (nto_process_target::sw_breakpoint_from_kind): ... this.
2853 * nto-low.h (class nto_process_target): Update.
2854 * win32-low.cc (win32_target_ops): Update.
2855 (win32_sw_breakpoint_from_kind): Turn into ...
2856 (win32_process_target::sw_breakpoint_from_kind): ... this.
2857 * win32-low.h (class win32_process_target): Update.
2858
c9b7b804
TBA
28592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2860
2861 Turn process_stratum_target's multifs_open, multifs_readlink,
2862 multifs_unlink ops into methods of process_target.
2863
2864 * target.h (struct process_stratum_target): Remove the target ops.
2865 (class process_target): Add the target ops. Also add
2866 'supports_multifs'.
2867 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2868 "sys/stat.h".
2869 (process_target::supports_multifs): Define.
2870 (process_target::multifs_open): Define.
2871 (process_target::multifs_readlink): Define.
2872 (process_target::multifs_unlink): Define.
2873
2874 Update the derived classes and callers below.
2875
2876 * hostio.cc (handle_setfs): Update.
2877 (handle_open): Update.
2878 (handle_unlink): Update.
2879 (handle_readlink): Update.
2880 * linux-low.cc (linux_target_ops): Update.
2881 (linux_process_target::supports_multifs): Define.
2882 (linux_process_target::multifs_open): Define.
2883 (linux_process_target::multifs_readlink): Define.
2884 (linux_process_target::multifs_unlink): Define.
2885 * linux-low.h (class linux_process_target): Update.
2886 * lynx-low.cc (lynx_target_ops): Update.
2887 * nto-low.cc (nto_target_ops): Update.
2888 * win32-low.cc (win32_target_ops): Update.
2889
8247b823
TBA
28902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2891
2892 Turn process_stratum_target's pid_to_exec_file op into a method
2893 of process_target.
2894
2895 * target.h (struct process_stratum_target): Remove the target op.
2896 (class process_target): Add the target op. Also add
2897 'supports_pid_to_exec_file'.
2898 * target.cc (process_target::pid_to_exec_file): Define.
2899 (process_target::supports_pid_to_exec_file): Define.
2900
2901 Update the derived classes and callers below.
2902
2903 * server.cc (handle_qxfer_exec_file): Update.
2904 (handle_query): Update.
2905 * linux-low.cc (linux_target_ops): Update.
2906 (linux_process_target::supports_pid_to_exec_file): Define.
2907 (linux_process_target::pid_to_exec_file): Define.
2908 * linux-low.h (class linux_process_target): Update.
2909 * lynx-low.cc (lynx_target_ops): Update.
2910 * nto-low.cc (nto_target_ops): Update.
2911 * win32-low.cc (win32_target_ops): Update.
2912
2526e0cd
TBA
29132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2914
2915 Turn process_stratum_target's supports_range_stepping op into a
2916 method of process_target.
2917
2918 * target.h (struct process_stratum_target): Remove the target op.
2919 (class process_target): Add the target op.
2920 (target_supports_range_stepping): Update the macro.
2921 * target.cc (process_target::supports_range_stepping): Define.
2922
2923 Update the derived classes and callers below.
2924
2925 * linux-low.cc (linux_target_ops): Update.
2926 (linux_supports_range_stepping): Turn into ...
2927 (linux_process_target::supports_range_stepping): ... this.
2928 * linux-low.h (class linux_process_target): Update.
2929 * lynx-low.cc (lynx_target_ops): Update.
2930 * nto-low.cc (nto_target_ops): Update.
2931 * win32-low.cc (win32_target_ops): Update.
2932
79597bdd
TBA
29332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2934
2935 Turn process_stratum_target's btrace-related ops (enable_btrace,
2936 disable_btrace, read_btrace, read_btrace_conf) into methods of
2937 process_target.
2938
2939 * target.h (struct process_stratum_target): Remove the target ops.
2940 (class process_target): Add the target ops.
2941 (target_enable_btrace): Update.
2942 (target_disable_btrace): Update.
2943 (target_read_btrace): Update.
2944 (target_read_btrace_conf): Update.
2945 * target.cc (process_target::enable_btrace): Define.
2946 (process_target::disable_btrace): Define.
2947 (process_target::read_btrace): Define.
2948 (process_target::read_btrace_conf): Define.
2949
2950 Update the derived classes and callers below.
2951
2952 * linux-low.cc (linux_target_ops): Update.
2953 (linux_process_target:enable_btrace): Define as a wrapper around
2954 linux_enable_btrace.
2955 (linux_low_disable_btrace): Turn into ...
2956 (linux_process_target::disable_btrace): ... this.
2957 (linux_low_read_btrace): Turn into ...
2958 (linux_process_target::read_btrace): ... this.
2959 (linux_low_btrace_conf): Turn into ...
2960 (linux_process_target::read_btrace_conf): ... this.
2961 * linux-low.h (class linux_process_target): Update.
2962 * lynx-low.cc (lynx_target_ops): Update.
2963 * nto-low.cc (nto_target_ops): Update.
2964 * win32-low.cc (win32_target_ops): Update.
2965
c0245cb9
TBA
29662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2967
2968 Turn process_stratum_target's supports_agent op into a method of
2969 process_target.
2970
2971 * target.h (struct process_stratum_target): Remove the target op.
2972 (class process_target): Add the target op.
2973 (target_supports_agent): Update the macro.
2974 * target.cc (process_target::supports_agent): Define.
2975
2976 Update the derived classes and callers below.
2977
2978 * linux-low.cc (linux_target_ops): Update.
2979 (linux_supports_agent): Turn into ...
2980 (linux_process_target::supports_agent): ... this.
2981 * linux-low.h (class linux_process_target): Update.
2982 * lynx-low.cc (lynx_target_ops): Update.
2983 * nto-low.cc (nto_target_ops): Update.
2984 * win32-low.cc (win32_target_ops): Update.
2985
974387bb
TBA
29862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2987
2988 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2989 method of process_target.
2990
2991 * target.h (struct process_stratum_target): Remove the target op.
2992 (class process_target): Add the target op. Also add
2993 'supports_qxfer_libraries_svr4'.
2994 * target.cc (process_target::qxfer_libraries_svr4): Define.
2995 (process_target::supports_qxfer_libraries_svr4): Define.
2996
2997 Update the derived classes and callers below.
2998
2999 * server.cc (handle_qxfer_libraries_svr4): Update.
3000 (handle_query): Update.
3001 * linux-low.cc (linux_target_ops): Update.
3002 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3003 (linux_qxfer_libraries_svr4): Turn into ...
3004 (linux_process_target::qxfer_libraries_svr4): ... this.
3005 * linux-low.h (class linux_process_target): Update.
3006 * lynx-low.cc (lynx_target_ops): Update.
3007 * nto-low.cc (nto_target_ops): Update.
3008 * win32-low.cc (win32_target_ops): Update.
3009
c756403b
TBA
30102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3011
3012 Turn process_stratum_target's supports_disable_randomization op
3013 into a method of process_target.
3014
3015 * target.h (struct process_stratum_target): Remove the target op.
3016 (class process_target): Add the target op.
3017 (target_supports_disable_randomization): Update the macro.
3018 * target.cc (process_target::supports_disable_randomization): Define.
3019
3020 Update the derived classes and callers below.
3021
3022 * linux-low.cc (linux_target_ops): Update.
3023 (linux_supports_disable_randomization): Turn into ...
3024 (linux_process_target::supports_disable_randomization): ... this.
3025 * linux-low.h (class linux_process_target): Update.
3026 * lynx-low.cc (lynx_target_ops): Update.
3027 * nto-low.cc (nto_target_ops): Update.
3028 * win32-low.cc (win32_target_ops): Update.
3029
345dafad
TBA
30302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3031
3032 Turn process_stratum_target's emit_ops op into a method of
3033 process_target.
3034
3035 * target.h (struct process_stratum_target): Remove the target op.
3036 (class process_target): Add the target op.
3037 (target_emit_ops): Update the macro.
3038 * target.cc (process_target::emit_ops): Define.
3039
3040 Update the derived classes and callers below.
3041
3042 * linux-low.cc (linux_target_ops): Update.
3043 (linux_emit_ops): Turn into ...
3044 (linux_process_target::emit_ops): ... this.
3045 * linux-low.h (class linux_process_target): Update.
3046 * lynx-low.cc (lynx_target_ops): Update.
3047 * nto-low.cc (nto_target_ops): Update.
3048 * win32-low.cc (win32_target_ops): Update.
3049
c23c9391
TBA
30502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3051
3052 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3053 and get_min_fast_tracepoint_insn_len ops into methods of
3054 process_target.
3055
3056 * target.h (struct process_stratum_target): Remove the target ops.
3057 (class process_target): Add the target ops. Also add
3058 'supports_fast_tracepoints'.
3059 (target_supports_fast_tracepoints): Update the macro.
3060 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3061 (install_fast_tracepoint_jump_pad): Update and rename the macro
3062 to ...
3063 (target_install_fast_tracepoint_jump_pad): ... this.
3064 * target.cc (process_target::supports_fast_tracepoints): Define.
3065 (process_target::install_fast_tracepoint_jump_pad): Define.
3066 (process_target::get_min_fast_tracepoint_insn_len): Define.
3067
3068 Update the derived classes and callers below.
3069
3070 * tracepoint.cc (install_fast_tracepoint): Update.
3071 * linux-low.cc (linux_target_ops): Update.
3072 (linux_process_target::supports_fast_tracepoints): Define.
3073 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3074 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3075 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3076 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3077 * linux-low.h (class linux_process_target): Update.
3078 * lynx-low.cc (lynx_target_ops): Update.
3079 * nto-low.cc (nto_target_ops): Update.
3080 * win32-low.cc (win32_target_ops): Update.
3081
5c9eb2f2
TBA
30822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3083
3084 Turn process_stratum_target's stabilize_threads op into a
3085 method of process_target.
3086
3087 * target.h (struct process_stratum_target): Remove the target op.
3088 (class process_target): Add the target op.
3089 (target_stabilize_threads): Update the macro.
3090 * target.cc (process_target::stabilize_threads): Define.
3091
3092 Update the derived classes and callers below.
3093
3094 * server.cc (handle_status): Update.
3095 * tracepoint.cc (cmd_qtdp): Update.
3096 (cmd_qtstart): Update.
3097 * linux-low.cc (linux_target_ops): Update.
3098 (linux_stabilize_threads): Turn into ...
3099 (linux_process_target::stabilize_threads): ... this.
3100 (linux_wait_1): Update.
3101 * linux-low.h (class linux_process_target): Update.
3102 * lynx-low.cc (lynx_target_ops): Update.
3103 * nto-low.cc (nto_target_ops): Update.
3104 * win32-low.cc (win32_target_ops): Update.
3105
29e8dc09
TBA
31062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3107
3108 Turn process_stratum_target's pause_all and unpause_all ops
3109 into methods of process_target.
3110
3111 * target.h (struct process_stratum_target): Remove the target ops.
3112 (class process_target): Add the target ops.
3113 (pause_all): Update the macro and rename to...
3114 (target_pause_all): ... this.
3115 (unpause_all): Update the macro and rename to...
3116 (target_unpause_all): ... this.
3117 * target.cc (process_target::pause_all): Define.
3118 (process_target::unpause_all): Define.
3119
3120 Update the derived classes and callers below.
3121
3122 * server.cc (handle_status): Update.
3123 * tracepoint.cc (clear_installed_tracepoints): Update.
3124 (cmd_qtdp): Update.
3125 (cmd_qtstart): Update.
3126 (stop_tracing): Update.
3127 (cmd_qtstatus): Update.
3128 (upload_fast_traceframes): Update.
3129 (run_inferior_command): Update.
3130 * linux-low.cc (linux_target_ops): Update.
3131 (linux_pause_all): Turn into ...
3132 (linux_process_target::pause_all): ... this.
3133 (linux_unpause_all): Turn into ...
3134 (linux_process_target::unpause_all): ... this.
3135 (linux_process_target::prepare_to_access_memory): Update.
3136 (linux_process_target::done_accessing_memory): Update.
3137 * linux-low.h (class linux_process_target): Update.
3138 * lynx-low.cc (lynx_target_ops): Update.
3139 * nto-low.cc (nto_target_ops): Update.
3140 * win32-low.cc (win32_target_ops): Update.
3141
4e2e869c
TBA
31422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3143
3144 Turn process_stratum_target's get_tib_address op into a method of
3145 process_target.
3146
3147 * target.h (struct process_stratum_target): Remove the target op.
3148 (class process_target): Add the target op. Also add
3149 'supports_get_tib_address'.
3150 * target.cc (process_target::get_tib_address): Define.
3151 (process_target::supports_get_tib_address): Define.
3152
3153 Update the derived classes and callers below.
3154
3155 * server.cc (handle_query): Update.
3156 * linux-low.cc (win32_target_ops): Update.
3157 * lynx-low.cc (lynx_target_ops): Update.
3158 * nto-low.cc (nto_target_ops): Update.
3159 * win32-low.cc (win32_target_ops): Update.
3160 (win32_process_target::supports_get_tib_address): Define.
3161 (win32_get_tib_address): Turn into ...
3162 (win32_process_target::get_tib_address): ... this.
3163 * win32-low.h (class win32_process_target): Update.
3164
68119632
TBA
31652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3166
3167 Turn process_stratum_target's thread_stopped op into a method of
3168 process_target.
3169
3170 * target.h (struct process_stratum_target): Remove the target op.
3171 (class process_target): Add the target op. Also add
3172 'supports_thread_stopped'.
3173 (target_thread_stopped): Update the macro.
3174 * target.cc (process_target::thread_stopped): Define.
3175 (process_target::supports_thread_stopped): Define.
3176 (prepare_to_access_memory): Update.
3177
3178 Update the derived classes and callers below.
3179
3180 * server.cc (queue_stop_reply_callback): Update.
3181 * linux-low.cc (linux_target_ops): Update.
3182 (linux_process_target::supports_thread_stopped): Define.
3183 (linux_thread_stopped): Turn into ...
3184 (linux_process_target::thread_stopped): ... this.
3185 * linux-low.h (class linux_process_target): Update.
3186 * lynx-low.cc (lynx_target_ops): Update.
3187 * nto-low.cc (nto_target_ops): Update.
3188 * win32-low.cc (win32_target_ops): Update.
3189
770d8f6a
TBA
31902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3191
3192 Turn process_stratum_target's read_pc and write_pc ops into
3193 methods of process_target.
3194
3195 * target.h (struct process_stratum_target): Remove the target ops.
3196 (class process_target): Add the target ops.
3197 * target.cc (process_target::read_pc): Define.
3198 (process_target::write_pc): Define.
3199
3200 Update the derived classes and callers below.
3201
3202 * regcache.cc (regcache_read_pc): Update.
3203 (regcache_write_pc): Update.
3204 * linux-low.cc (linux_target_ops): Update.
3205 (linux_read_pc): Turn into ...
3206 (linux_process_target::read_pc): ... this.
3207 (linux_write_pc): Turn into ...
3208 (linux_process_target::write_pc): ... this.
3209 * linux-low.h (class linux_process_target): Update.
3210 * lynx-low.cc (lynx_target_ops): Update.
3211 * nto-low.cc (nto_target_ops): Update.
3212 * win32-low.cc (win32_target_ops): Update.
3213
290732bf
TBA
32142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3215
3216 Turn process_stratum_target's supports_tracepoints op into a
3217 method of process_target.
3218
3219 * target.h (struct process_stratum_target): Remove the target op.
3220 (class process_target): Add the target op.
3221 (target_supports_tracepoints): Update the macro.
3222 * target.cc (process_target::supports_tracepoints): Define.
3223
3224 Update the derived classes and callers below.
3225
3226 * linux-low.cc (linux_target_ops): Update.
3227 (linux_supports_tracepoints): Turn into ...
3228 (linux_process_target::supports_tracepoints): ... this.
3229 * linux-low.h (class linux_process_target): Update.
3230 * lynx-low.cc (lynx_target_ops): Update.
3231 * nto-low.cc (nto_target_ops): Update.
3232 * win32-low.cc (win32_target_ops): Update.
3233
0df28b1b
TBA
32342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3235
3236 Turn process_stratum_target's process_qsupported op into a method
3237 of process_target.
3238
3239 * target.h (struct process_stratum_target): Remove the target op.
3240 (class process_target): Add the target op.
3241 (target_process_qsupported): Update the macro.
3242 * target.cc (process_target::process_qsupported): Define.
3243
3244 Update the derived classes and callers below.
3245
3246 * linux-low.cc (linux_target_ops): Update.
3247 (linux_process_qsupported): Turn into ...
3248 (linux_process_target::process_qsupported): ... this.
3249 * linux-low.h (class linux_process_target): Update.
3250 * lynx-low.cc (lynx_target_ops): Update.
3251 * nto-low.cc (nto_target_ops): Update.
3252 * win32-low.cc (win32_target_ops): Update.
3253
9da41fda
TBA
32542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3255
3256 Turn process_stratum_target's read_loadmap op into a method of
3257 process_target.
3258
3259 * target.h (struct process_stratum_target): Remove the target op.
3260 (class process_target): Add the target op. Also add
3261 'supports_read_loadmap'.
3262 * target.cc (process_target::read_loadmap): Define.
3263 (process_target::supports_read_loadmap): Define.
3264
3265 Update the derived classes and callers below.
3266
3267 * server.cc (handle_qxfer_fdpic): Update.
3268 (handle_query): Update.
3269 * linux-low.cc (linux_target_ops): Update.
3270 (linux_process_target::supports_read_loadmap): Define.
3271 (linux_read_loadmap): Turn into ...
3272 (linux_process_target::read_loadmap): ... this.
3273 * linux-low.h (class linux_process_target): Update.
3274 * lynx-low.cc (lynx_target_ops): Update.
3275 * nto-low.cc (nto_target_ops): Update.
3276 * win32-low.cc (win32_target_ops): Update.
3277
95a45fc1
TBA
32782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3279
3280 Turn process_stratum_target's core_of_thread op into a method of
3281 process_target.
3282
3283 * target.h (struct process_stratum_target): Remove the target op.
3284 (class process_target): Add the target op.
3285 (target_core_of_thread): Update the macro.
3286 * target.cc (process_target::core_of_thread): Define.
3287
3288 Update the derived classes and callers below.
3289
3290 * linux-low.cc (linux_target_ops): Update.
3291 (linux_process_target::core_of_thread): Define.
3292 * linux-low.h (class linux_process_target): Update.
3293 * lynx-low.cc (lynx_target_ops): Update.
3294 * nto-low.cc (nto_target_ops): Update.
3295 * win32-low.cc (win32_target_ops): Update.
3296
55cf3021
TBA
32972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3298
3299 Turn process_stratum_target's handle_monitor_command op into a
3300 method of process_target.
3301
3302 * target.h (struct process_stratum_target): Remove the target op.
3303 (class process_target): Add the target op.
3304 (target_handle_monitor_command): Update the macro.
3305 * target.cc (process_target::handle_monitor_command): Define.
3306
3307 Update the derived classes and callers below.
3308
3309 * server.cc (handle_query): Update.
3310 * linux-low.cc (linux_target_ops): Update.
3311 (linux_process_target::handle_monitor_command): Define.
3312 * linux-low.h (class linux_process_target): Update.
3313 * lynx-low.cc (lynx_target_ops): Update.
3314 * nto-low.cc (nto_target_ops): Update.
3315 * win32-low.cc (win32_target_ops): Update.
3316
fb00dfce
TBA
33172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3318
3319 Turn process_stratum_target's handle_new_gdb_connection op into a
3320 method of process_target.
3321
3322 * target.h (struct process_stratum_target): Remove the target op.
3323 (class process_target): Add the target op.
3324 (target_handle_new_gdb_connection): Update the macro.
3325 * target.cc (process_target::handle_new_gdb_connection): Define.
3326
3327 Update the derived classes and callers below.
3328
3329 * linux-low.cc (linux_target_ops): Update.
3330 (linux_handle_new_gdb_connection): Turn into ...
3331 (linux_process_target::handle_new_gdb_connection): ... this.
3332 * linux-low.h (class linux_process_target): Update.
3333 * lynx-low.cc (lynx_target_ops): Update.
3334 * nto-low.cc (nto_target_ops): Update.
3335 * win32-low.cc (win32_target_ops): Update.
3336
9690a72a
TBA
33372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3338
3339 Turn process_stratum_target's supports_fork_events,
3340 supports_vfork_events, and supports_exec_events ops into methods
3341 of process_target.
3342
3343 * target.h (struct process_stratum_target): Remove the target ops.
3344 (class process_target): Add the target ops.
3345 (target_supports_fork_events): Update the macro.
3346 (target_supports_vfork_events): Update the macro.
3347 (target_supports_exec_events): Update the macro.
3348 * target.cc (process_target::supports_fork_events): Define.
3349 (process_target::supports_vfork_events): Define.
3350 (process_target::supports_exec_events): Define.
3351
3352 Update the derived classes and callers below.
3353
3354 * linux-low.cc (linux_target_ops): Update.
3355 (linux_supports_fork_events): Turn into ...
3356 (linux_process_target::supports_fork_events): ... this.
3357 (linux_supports_vfork_events): Turn into ...
3358 (linux_process_target::supports_vfork_events): ... this.
3359 (linux_supports_exec_events): Turn into ...
3360 (linux_process_target::supports_exec_events): ... this.
3361 * linux-low.h (class linux_process_target): Update.
3362 * lynx-low.cc (lynx_target_ops): Update.
3363 * nto-low.cc (nto_target_ops): Update.
3364 * win32-low.cc (win32_target_ops): Update.
3365
652aef77
TBA
33662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3367
3368 Turn process_stratum_target's supports_multi_process op into a
3369 method of process_target.
3370
3371 * target.h (struct process_stratum_target): Remove the target op.
3372 (class process_target): Add the target op.
3373 * target.cc (process_target::supports_multi_process): Define.
3374 (target_supports_multi_process): Update.
3375
3376 Update the derived classes and callers below.
3377
3378 * linux-low.cc (linux_target_ops): Update.
3379 (linux_supports_multi_process): Turn into ...
3380 (linux_process_target::supports_multi_process): ... this.
3381 * linux-low.h (class linux_process_target): Update.
3382 * lynx-low.cc (lynx_target_ops): Update.
3383 * nto-low.cc (nto_target_ops): Update.
3384 * win32-low.cc (win32_target_ops): Update.
3385
0dc587d4
TBA
33862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3387
3388 Turn process_stratum_target's supports_non_stop, async, and
3389 start_non_stop ops into methods of process_target.
3390
3391 * target.h (struct process_stratum_target): Remove the target ops.
3392 (class process_target): Add the target ops.
3393 (target_supports_non_stop): Update the macro.
3394 (target_async): Update the macro.
3395 (start_non_stop): Remove declaration.
3396 * target.cc (process_target::supports_non_stop): Define.
3397 (process_target::async): Define.
3398 (process_target::start_non_stop): Define.
3399 (start_non_stop): Remove.
3400
3401 Update the derived classes and callers below.
3402
3403 * server.cc (handle_qxfer_siginfo): Update.
3404 (handle_query): Update.
3405 * linux-low.cc (linux_target_ops): Update.
3406 (linux_supports_non_stop): Turn into ...
3407 (linux_process_target::supports_non_stop): ... this.
3408 (linux_async): Turn into ...
3409 (linux_process_target::async): ... this.
3410 (linux_start_non_stop): Turn into ...
3411 (linux_process_target::start_non_stop): ... this.
3412 * linux-low.h (class linux_process_target): Update.
3413 * lynx-low.cc (lynx_target_ops): Update.
3414 * nto-low.cc (nto_target_ops): Update.
3415 (nto_supports_non_stop): Remove; rely on the default behavior
3416 instead.
3417 * win32-low.cc (win32_target_ops): Update.
3418
d7abedf7
TBA
34192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3420
3421 Turn process_stratum_target's qxfer_siginfo op into a method of
3422 process_target.
3423
3424 * target.h (struct process_stratum_target): Remove the target op.
3425 (class process_target): Add the target op. Also add
3426 'supports_qxfer_siginfo'.
3427 * target.cc (process_target::qxfer_siginfo): Define.
3428 (process_target::supports_qxfer_siginfo): Define.
3429
3430 Update the derived classes and callers below.
3431
3432 * server.cc (handle_qxfer_siginfo): Update.
3433 (handle_query): Update.
3434 * linux-low.cc (linux_target_ops): Update.
3435 (linux_process_target::supports_qxfer_siginfo): Define.
3436 (linux_xfer_siginfo): Turn into ...
3437 (linux_process_target::qxfer_siginfo): ... this.
3438 * linux-low.h (class linux_process_target): Update.
3439 * lynx-low.cc (lynx_target_ops): Update.
3440 * nto-low.cc (nto_target_ops): Update.
3441 * win32-low.cc (win32_target_ops): Update.
3442
2d0795ee
TBA
34432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3444
3445 Turn process_stratum_target's qxfer_osdata op into a method of
3446 process_target.
3447
3448 * target.h (struct process_stratum_target): Remove the target op.
3449 (class process_target): Add the target op. Also add
3450 'supports_qxfer_osdata'.
3451 * target.cc (process_target::qxfer_osdata): Define.
3452 (process_target::supports_qxfer_osdata): Define.
3453
3454 Update the derived classes and callers below.
3455
3456 * server.cc (handle_qxfer_osdata): Update.
3457 (handle_query): Update.
3458 * linux-low.cc (linux_target_ops): Update.
3459 (linux_process_target::supports_qxfer_osdata): Define.
3460 (linux_qxfer_osdata): Turn into ...
3461 (linux_process_target::qxfer_osdata): ... this.
3462 * linux-low.h (class linux_process_target): Update.
3463 * lynx-low.cc (lynx_target_ops): Update.
3464 * nto-low.cc (nto_target_ops): Update.
3465 * win32-low.cc (win32_target_ops): Update.
3466
ea06bbaa
TBA
34672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3468
3469 Turn process_stratum_target's hostio_last_error op into a
3470 method of process_target.
3471
3472 * target.h (struct process_stratum_target): Remove the target op.
3473 (class process_target): Add the target op.
3474 * target.cc: Add "hostio.h" to includes.
3475 (process_target::hostio_last_error): Define.
3476
3477 Update the derived classes and callers below.
3478
3479 * hostio.cc (hostio_error): Update.
3480 * linux-low.cc: Remove "hostio.h" from includes.
3481 (linux_target_ops): Update.
3482 * lynx-low.cc (lynx_target_ops): Update.
3483 * nto-low.cc (nto_target_ops): Update.
3484 * win32-low.h (class win32_process_target): Update.
3485 * win32-low.cc (win32_target_ops): Update.
3486 (wince_hostio_last_error): Turn into ...
3487 (win32_process_target::hostio_last_error): ... this.
3488
6e3fd7e9
TBA
34892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3490
3491 Turn process_stratum_target's get_tls_address op into a method of
3492 process_target.
3493
3494 * target.h (struct process_stratum_target): Remove the target op.
3495 (class process_target): Add the target op. Also add
3496 'supports_get_tls_address'.
3497 * target.cc (process_target::get_tls_address): Define.
3498 (process_target::supports_get_tls_address): Define.
3499
3500 Update the derived classes and callers below.
3501
3502 * server.cc (handle_query): Update.
3503 * linux-low.cc (linux_target_ops): Update.
3504 (linux_process_target::supports_get_tls_address): Define.
3505 (linux_process_target::get_tls_address): Define.
3506 * linux-low.h (class linux_process_target): Update.
3507 * lynx-low.cc (lynx_target_ops): Update.
3508 * nto-low.cc (nto_target_ops): Update.
3509 * win32-low.cc (win32_target_ops): Update.
3510
5203ae1e
TBA
35112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3512
3513 Turn process_stratum_target's read_offsets op into a method of
3514 process_target.
3515
3516 * target.h (struct process_stratum_target): Remove the target op.
3517 (class process_target): Add the target op. Also add
3518 'supports_read_offsets'.
3519 * target.cc (process_target::read_offsets): Define.
3520 (process_target::supports_read_offsets): Define.
3521
3522 Update the derived classes and callers below.
3523
3524 * server.cc (handle_query): Update.
3525 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3526 (linux_target_ops): Update.
3527 (linux_process_target::supports_read_offsets): Define.
3528 (linux_read_offsets): Turn into ...
3529 (linux_process_target::read_offsets): ... this.
3530 * linux-low.h (class linux_process_target): Update.
3531 * lynx-low.cc (lynx_target_ops): Update.
3532 * nto-low.cc (nto_target_ops): Update.
3533 * win32-low.cc (win32_target_ops): Update.
3534
6eeb5c55
TBA
35352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3536
3537 Turn process_stratum_target's stopped_by_watchpoint and
3538 stopped_data_address ops into methods of process_target.
3539
3540 * target.h (struct process_stratum_target): Remove the target ops.
3541 (class process_target): Add the target ops.
3542 * target.cc (process_target::stopped_by_watchpoint): Define.
3543 (process_target::stopped_data_address): Define.
3544
3545 Update the derived classes and callers below.
3546
3547 * remote-utils.cc (prepare_resume_reply): Update.
3548 * linux-low.cc (linux_target_ops): Update.
3549 (linux_stopped_by_watchpoint): Turn into ...
3550 (linux_process_target::stopped_by_watchpoint): ... this.
3551 (linux_stopped_data_address): Turn into ...
3552 (linux_process_target::stopped_data_address): ... this.
3553 * linux-low.h (class linux_process_target): Update.
3554 * lynx-low.cc (lynx_target_ops): Update.
3555 * nto-low.cc (nto_target_ops): Update.
3556 (nto_stopped_by_watchpoint): Turn into ...
3557 (nto_process_target::stopped_by_watchpoint): ... this.
3558 (nto_stopped_data_address): Turn into ...
3559 (nto_process_target::stopped_data_address): ... this.
3560 * nto-low.h (class nto_process_target): Update.
3561 * win32-low.cc (win32_target_ops): Update.
3562 (win32_stopped_by_watchpoint): Turn into ...
3563 (win32_process_target::stopped_by_watchpoint): ... this.
3564 (win32_stopped_data_address): Turn into ...
3565 (win32_process_target::stopped_data_address): ... this.
3566 * win32-low.h (class win32_process_target): Update.
3567
22aa6223
TBA
35682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3569
3570 Turn process_stratum_target's supports_hardware_single_step op into
3571 a method of process_target.
3572
3573 * target.h (struct process_stratum_target): Remove the target op.
3574 (class process_target): Add the target op.
3575 (target_supports_hardware_single_step): Update the macro.
3576 (target_can_do_hardware_single_step): Remove declaration.
3577 * target.cc (process_target::supports_hardware_single_step): Define.
3578 (target_can_do_hardware_single_step): Remove.
3579
3580 Update the derived classes and callers below.
3581
3582 * linux-low.h (class linux_process_target): Update.
3583 * linux-low.cc (linux_target_ops): Update.
3584 (linux_supports_hardware_single_step): Turn into ...
3585 (linux_process_target::supports_hardware_single_step): ... this.
3586 * lynx-low.h (class lynx_process_target): Update.
3587 * lynx-low.cc (lynx_target_ops): Update.
3588 (lynx_process_target::supports_hardware_single_step): Define.
3589 * nto-low.h (class nto_process_target): Update.
3590 * nto-low.cc (nto_target_ops): Update.
3591 (nto_process_target::supports_hardware_single_step): Define.
3592 * win32-low.h (class win32_process_target): Update.
3593 * win32-low.cc (win32_target_ops): Update.
3594 (win32_process_target::supports_hardware_single_step): Define.
3595
93fe88b2
TBA
35962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3597
3598 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3599 ops into methods of process_target.
3600
3601 * target.h (struct process_stratum_target): Remove the target ops.
3602 (class process_target): Add the target ops.
3603 (target_stopped_by_hw_breakpoint): Update the macro.
3604 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3605 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3606 (process_target::supports_stopped_by_hw_breakpoint): Define.
3607
3608 Update the derived classes and callers below.
3609
3610 * linux-low.cc (linux_target_ops): Update.
3611 (linux_stopped_by_hw_breakpoint): Turn into ...
3612 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3613 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3614 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3615 * linux-low.h (class linux_process_target): Update.
3616 * lynx-low.cc (lynx_target_ops): Update.
3617 * nto-low.cc (nto_target_ops): Update.
3618 * win32-low.cc (win32_target_ops): Update.
3619
84320c4e
TBA
36202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3621
3622 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3623 ops into methods of process_target.
3624
3625 * target.h (struct process_stratum_target): Remove the target ops.
3626 (class process_target): Add the target ops.
3627 (target_stopped_by_sw_breakpoint): Update the macro.
3628 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3629 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3630 (process_target::supports_stopped_by_sw_breakpoint): Define.
3631
3632 Update the derived classes and callers below.
3633
3634 * linux-low.cc (linux_target_ops): Update.
3635 (linux_stopped_by_sw_breakpoint): Turn into ...
3636 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3637 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3638 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3639 * linux-low.h (class linux_process_target): Update.
3640 * lynx-low.cc (lynx_target_ops): Update.
3641 * nto-low.cc (nto_target_ops): Update.
3642 * win32-low.cc (win32_target_ops): Update.
3643
7e0bde70
TBA
36442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3645
3646 Turn process_stratum_target's insert_point and remove_point ops
3647 into methods of process_target.
3648
3649 * target.h (struct process_stratum_target): Remove the target ops.
3650 (class process_target): Add the target ops.
3651 * target.cc (process_target::insert_point): Define.
3652 (process_target::remove_point): Define.
3653
3654 Update the derived classes and callers below.
3655
3656 * mem-break.cc (set_raw_breakpoint_at): Update.
3657 (delete_raw_breakpoint): Update.
3658 (uninsert_raw_breakpoint): Update.
3659 (reinsert_raw_breakpoint): Update.
3660 * linux-low.cc (linux_target_ops): Update.
3661 (linux_insert_point): Turn into ...
3662 (linux_process_target::insert_point): ... this.
3663 (linux_remove_point): Turn into ...
3664 (linux_process_target::remove_point): ... this.
3665 * linux-low.h (class linux_process_target): Update.
3666 * lynx-low.cc (lynx_target_ops): Update.
3667 * nto-low.cc (nto_target_ops): Update.
3668 (nto_insert_point): Turn into ...
3669 (nto_process_target::insert_point): ... this.
3670 (nto_remove_point): Turn into ...
3671 (nto_process_target::remove_point): ... this.
3672 * nto-low.h (class nto_process_target): Update.
3673 * win32-low.cc (win32_target_ops): Update.
3674 (win32_insert_point): Turn into ...
3675 (win32_process_target::insert_point): ... this.
3676 (win32_remove_point): Turn into ...
3677 (win32_process_target::remove_point): ... this.
3678 * win32-low.h (class win32_process_target): Update.
3679
a2b2297a
TBA
36802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3681
3682 Turn process_stratum_target's supports_z_point_type op into a
3683 method of process_target.
3684
3685 * target.h (struct process_stratum_target): Remove the target op.
3686 (class process_target): Add the target op.
3687 * target.cc (process_target::supports_z_point_type): Define.
3688
3689 Update the derived classes and callers below.
3690
3691 * mem-break.cc (z_type_supported): Update.
3692 * linux-low.cc (linux_target_ops): Update.
3693 (linux_supports_z_point_type): Turn into ...
3694 (linux_process_target::supports_z_point_type): ... this.
3695 * linux-low.h (class linux_process_target): Update.
3696 * lynx-low.cc (lynx_target_ops): Update.
3697 * nto-low.cc (nto_target_ops): Update.
3698 (nto_supports_z_point_type): Turn into ...
3699 (nto_process_target::supports_z_point_type): ... this.
3700 * nto-low.h (class nto_process_target): Update.
3701 * win32-low.cc (win32_target_ops): Update.
3702 (win32_supports_z_point_type): Turn into ...
3703 (win32_process_target::supports_z_point_type): ... this.
3704 * win32-low.h (class win32_process_target): Update.
3705
eac215cc
TBA
37062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3707
3708 Turn process_stratum_target's read_auxv op into a method of
3709 process_target.
3710
3711 * target.h (class process_stratum_target): Remove the target op.
3712 (struct process_target): Add the target op. Also add
3713 'supports_read_auxv'.
3714 * target.cc (process_target::read_auxv): Define.
3715 (process_target::supports_read_auxv): Define.
3716
3717 Update the derived classes and callers below.
3718
3719 * server.cc (handle_qxfer_auxv): Update.
3720 (handle_query): Update.
3721 * linux-low.cc (linux_target_ops): Update.
3722 (linux_process_target::supports_read_auxv): Define.
3723 (linux_read_auxv): Turn into ...
3724 (linux_process_target::read_auxv): ... this.
3725 * linux-low.h (class linux_process_target): Update.
3726 * lynx-low.cc (lynx_target_ops): Update.
3727 * nto-low.cc (nto_target_ops): Update.
3728 (nto_process_target::supports_read_auxv): Define.
3729 (nto_read_auxv): Turn into ...
3730 (nto_process_target::read_auxv): ... this.
3731 * nto-low.h (class nto_process_target): Update.
3732 * win32-low.cc (win32_target_ops): Update.
3733
eb497a2a
TBA
37342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3735
3736 Turn process_stratum_target's request_interrupt op into a method of
3737 process_target.
3738
3739 * target.h (struct process_stratum_target): Remove the target op.
3740 (class process_target): Add the target op.
3741
3742 Update the derived classes and callers below.
3743
3744 * remote-utils.cc (putpkt_binary_1): Update.
3745 (input_interrupt): Update.
3746 (getpkt): Update.
3747 * server.cc (handle_v_requests): Update.
3748 * linux-low.cc (linux_target_ops): Update.
3749 (linux_request_interrupt): Turn into ...
3750 (linux_process_target::request_interrupt): ... this.
3751 * linux-low.h (class linux_process_target): Update.
3752 * lynx-low.cc (lynx_target_ops): Update.
3753 (lynx_request_interrupt): Turn into ...
3754 (lynx_process_target::request_interrupt): ... this.
3755 * lynx-low.h (class lynx_process_target): Update.
3756 * nto-low.cc (nto_target_ops): Update.
3757 (nto_request_interrupt): Turn into ...
3758 (nto_process_target::request_interrupt): ... this.
3759 * nto-low.h (class nto_process_target): Update.
3760 * win32-low.cc (win32_target_ops): Update.
3761 (win32_request_interrupt): Turn into ...
3762 (win32_process_target::request_interrupt): ... this.
3763 * win32-low.h (class win32_process_target): Update.
3764
2a31c7aa
TBA
37652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3766
3767 Turn process_stratum_target's look_up_symbols op into a method of
3768 process_target.
3769
3770 * target.h (struct process_stratum_target): Remove the target op.
3771 (class process_target): Add the target op.
3772 * target.cc (process_target::look_up_symbols): Define.
3773
3774 Update the derived classes and callers below.
3775
3776 * server.cc (handle_query): Update.
3777 * linux-low.cc (linux_target_ops): Update.
3778 (linux_look_up_symbols): Turn into ...
3779 (linux_process_target::look_up_symbols): ... this.
3780 * linux-low.h (class linux_process_target): Update.
3781 * lynx-low.cc (lynx_target_ops): Update.
3782 * nto-low.cc (nto_target_ops): Update.
3783 * win32-low.cc (win32_target_ops): Update.
3784
e2558df3
TBA
37852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3786
3787 Turn process_stratum_target's read_memory and write_memory
3788 ops into methods of process_target.
3789
3790 * target.h (struct process_stratum_target): Remove the target ops.
3791 (class process_target): Add the target ops.
3792
3793 Update the derived classes and callers below.
3794
3795 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3796 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3797 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3798 (arm_get_syscall_trapinfo): Update.
3799 * linux-cris-low.cc (cris_breakpoint_at): Update.
3800 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3801 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3802 * linux-mips-low.cc (mips_breakpoint_at): Update.
3803 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3804 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3805 * linux-sh-low.cc (sh_breakpoint_at): Update.
3806 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3807 (sparc_store_gregset_from_stack): Update.
3808 (sparc_breakpoint_at): Update.
3809 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3810 * linux-tile-low.cc (tile_breakpoint_at): Update.
3811 * linux-x86-low.cc (x86_breakpoint_at): Update.
3812 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3813 * mem-brea.cc (insert_memory_breakpoint): Update.
3814 (validate_inserted_breakpoint): Update.
3815 * target.cc (read_inferior_memory): Update.
3816 (target_write_memory): Update.
3817 * linux-low.cc (linux_target_ops): Update.
3818 (linux_read_memory): Make a wrapper around the read_memory target
3819 op call.
3820 (linux_process_target::read_memory): Rename from linux_read_memory.
3821 (linux_write_memory): Turn into ...
3822 (linux_process_target::write_memory): ... this.
3823 * linux-low.h (class linux_process_target): Update.
3824 * lynx-low.cc (lynx_target_ops): Update.
3825 (lynx_read_memory): Turn into ...
3826 (lynx_process_target::read_memory): ... this.
3827 (lynx_write_memory): Turn into ...
3828 (lynx_process_target::write_memory): ... this.
3829 * lynx-low.h (class lynx_process_target): Update.
3830 * nto-low.cc (nto_target_ops): Update.
3831 (nto_read_memory): Turn into ...
3832 (nto_process_target::read_memory): ... this.
3833 (nto_write_memory): Turn into ...
3834 (nto_process_target::write_memory): ... this.
3835 * nto-low.h (class nto_process_target): Update.
3836 * win32-low.cc (win32_target_ops): Update.
3837 (win32_read_inferior_memory): Turn into ...
3838 (win32_process_target::read_memory): ... this.
3839 (win32_write_inferior_memory): Turn into ...
3840 (win32_process_target::write_memory): ... this.
3841 * win32-low.h (class win32_process_target): Update.
3842
79b44087
TBA
38432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3844
3845 Turn process_stratum_target's prepare_to_access_memory and
3846 done_accessing_memory ops into methods of process_target.
3847
3848 * target.h (struct process_stratum_target): Remove the target ops.
3849 (class process_target): Add the target ops.
3850 * target.cc (process_target::prepare_to_access_memory): Define.
3851 (process_target::done_accessing_memory): Define.
3852 (prepare_to_access_memory): Update.
3853 (done_accessing_memory): Update.
3854
3855 Update the derived classes and callers below.
3856
3857 * linux-low.cc (linux_target_ops): Update.
3858 (linux_prepare_to_access_memory): Turn into ...
3859 (linux_process_target::prepare_to_access_memory): ... this.
3860 (linux_done_accessing_memory): Turn into ...
3861 (linux_process_target::done_accessing_memory): ... this.
3862 * linux-low.h (class linux_process_target): Update.
3863 * lynx-low.cc (lynx_target_ops): Update.
3864 * nto-low.cc (nto_target_ops): Update.
3865 * win32-low.cc (win32_target_ops): Update.
3866
a5a4d4cd
TBA
38672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3868
3869 Turn process_stratum_target's fetch_registers and store_registers
3870 ops into methods of process_target.
3871
3872 * target.h (struct process_stratum_target): Remove the target ops.
3873 (class process_target): Add the target ops.
3874 (fetch_inferior_registers): Update the macro.
3875 (store_inferior_registers): Update the macro.
3876
3877 Update the derived classes and callers below.
3878
3879 * linux-low.cc (linux_target_ops): Update.
3880 (linux_fetch_registers): Turn into ...
3881 (linux_process_target::fetch_registers): ... this.
3882 (linux_store_registers): Turn into ...
3883 (linux_process_target::store_registers): ... this.
3884 * linux-low.h (class linux_process_target): Update.
3885 * lynx-low.cc (lynx_target_ops): Update.
3886 (lynx_fetch_registers): Turn into ...
3887 (lynx_process_target::fetch_registers): ... this.
3888 (lynx_store_registers): Turn into ...
3889 (lynx_process_target::store_registers): ... this.
3890 * lynx-low.h (class lynx_process_target): Update.
3891 * nto-low.cc (nto_target_ops): Update.
3892 (nto_fetch_registers): Turn into ...
3893 (nto_process_target::fetch_registers): ... this.
3894 (nto_store_registers): Turn into ...
3895 (nto_process_target::store_registers): ... this.
3896 * nto-low.h (class nto_process_target): Update.
3897 * win32-low.cc (win32_target_ops): Update.
3898 (win32_fetch_inferior_registers): Turn into ...
3899 (win32_process_target::fetch_registers): ... this.
3900 (win32_store_inferior_registers): Turn into ...
3901 (win32_process_target::store_registers): ... this.
3902 * win32-low.h (class win32_process_target): Update.
3903
6532e7e3
TBA
39042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3905
3906 Turn process_stratum_target's wait op into a method of
3907 process_target.
3908
3909 * target.h (struct process_stratum_target): Remove the target op.
3910 (class process_target): Add the target op.
3911
3912 Update the derived classes and callers below.
3913
3914 * target.cc (target_wait): Update.
3915 * linux-low.cc (linux_target_ops): Update.
3916 (linux_wait): Turn into ...
3917 (linux_process_target::wait): ... this.
3918 * linux-low.h (class linux_process_target): Update.
3919 * lynx-low.cc (lynx_target_ops): Update.
3920 (lynx_wait): Turn into ...
3921 (lynx_process_target::wait): ... this.
3922 * lynx-low.h (class lynx_process_target): Update.
3923 * nto-low.cc (nto_target_ops): Update.
3924 (nto_wait): Turn into ...
3925 (nto_process_target::wait): ... this.
3926 * nto-low.h (class nto_process_target): Update.
3927 * win32-low.cc (win32_target_ops): Update.
3928 (win32_wait): Turn into ...
3929 (win32_process_target::wait): ... this.
3930 (do_initial_child_stuff): Update.
3931 * win32-low.h (class win32_process_target): Update.
3932
0e4d7e35
TBA
39332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3934
3935 Turn process_stratum_target's resume op into a method of
3936 process_target.
3937
3938 * target.h (struct process_stratum_target): Remove the target op.
3939 (class process_target): Add the target op.
3940
3941 Update the derived classes and callers below.
3942
3943 * server.cc (resume): Update.
3944 * target.cc (target_stop_and_wait): Update.
3945 (target_continue_no_signal): Update.
3946 (target_continue): Update.
3947 * linux-low.cc (linux_target_ops): Update.
3948 (linux_resume): Turn into ...
3949 (linux_process_target::resume): ... this.
3950 * linux-low.h (class linux_process_target): Update.
3951 * lynx-low.cc (lynx_target_ops): Update.
3952 (lynx_resume): Turn into ...
3953 (lynx_process_target::resume): ... this.
3954 * lynx-low.h (class lynx_process_target): Update.
3955 * nto-low.cc (nto_target_ops): Update.
3956 (nto_resume): Turn into ...
3957 (nto_process_target::resume): ... this.
3958 * nto-low.h (class nto_process_target): Update.
3959 * win32-low.cc (win32_target_ops): Update.
3960 (win32_resume): Turn into ...
3961 (win32_process_target::resume): ... this.
3962 (win32_process_target::detach): Update.
3963 (do_initial_child_stuff): Update.
3964 * win32-low.h (class win32_process_target): Update.
3965
13d3d99b
TBA
39662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3967
3968 Turn process_stratum_target's thread_alive op into a method of
3969 process_target.
3970
3971 * target.h (struct process_stratum_target): Remove the target op.
3972 (class process_target): Add the target op.
3973 (mythread_alive): Update the macro.
3974
3975 Update the derived classes and callers below.
3976
3977 * linux-low.cc (linux_target_ops): Update.
3978 (linux_thread_alive): Turn into ...
3979 (linux_process_target::thread_alive): ... this.
3980 (wait_for_sigstop): Update.
3981 * linux-low.h (class linux_process_target): Update.
3982 * lynx-low.cc (lynx_target_ops): Update.
3983 (lynx_thread_alive): Turn into ...
3984 (lynx_process_target::thread_alive): ... this.
3985 * lynx-low.h (class lynx_process_target): Update.
3986 * nto-low.cc (nto_target_ops): Update.
3987 (nto_thread_alive): Turn into ...
3988 (nto_process_target::thread_alive): ... this.
3989 * nto-low.h (class nto_process_target): Update.
3990 * win32-low.cc (win32_target_ops): Update.
3991 (win32_thread_alive): Turn into ...
3992 (win32_process_target::thread_alive): ... this.
3993 * win32-low.h (class win32_process_target): Update.
3994
95a49a39
TBA
39952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3996
3997 Turn process_stratum_target's join op into a method of
3998 process_target.
3999
4000 * target.h (struct process_stratum_target): Remove the target op.
4001 (class process_target): Add the target op.
4002 (join_inferior): Update the macro.
4003
4004 Update the derived classes and callers below.
4005
4006 * linux-low.cc (linux_target_ops): Update.
4007 (linux_join): Turn into ...
4008 (linux_process_target::join): ... this.
4009 * linux-low.h (class linux_process_target): Update.
4010 * lynx-low.cc (lynx_target_ops): Update.
4011 (lynx_join): Turn into ...
4012 (lynx_process_target::join): ... this.
4013 * lynx-low.h (class lynx_process_target): Update.
4014 * nto-low.cc (nto_target_ops): Update.
4015 (nto_process_target::join): Define.
4016 * nto-low.h (class nto_process_target): Update.
4017 * win32-low.cc (win32_target_ops): Update.
4018 (win32_join): Turn into ...
4019 (win32_process_target::join): ... this.
4020 * win32-low.h (class win32_process_target): Update.
4021
8adb37b9
TBA
40222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4023
4024 Turn process_stratum_target's mourn op into a method of
4025 process_target.
4026
4027 * target.h (struct process_stratum_target): Remove the target op.
4028 (class process_target): Add the target op.
4029
4030 Update the derived classes and callers below.
4031
4032 * target.cc (target_mourn_inferior): Update.
4033 * linux-low.cc (linux_target_ops): Update.
4034 (linux_mourn): Turn into ...
4035 (linux_process_target::mourn): ... this.
4036 (handle_extended_wait): Update.
4037 (linux_process_target::kill): Update.
4038 (linux_process_target::detach): Update.
4039 * linux-low.h (class linux_process_target): Update.
4040 * lynx-low.cc (lynx_target_ops): Update.
4041 (lynx_mourn): Turn into ...
4042 (lynx_process_target::mourn): ... this.
4043 * lynx-low.h (class lynx_process_target): Update.
4044 * nto-low.cc (nto_target_ops): Update.
4045 (nto_mourn): Turn into ...
4046 (nto_process_target::mourn): ... this.
4047 * nto-low.h (class nto_process_target): Update.
4048 * win32-low.cc (win32_target_ops): Update.
4049 (win32_mourn): Turn into ...
4050 (win32_process_target::mourn): ... this.
4051 * win32-low.h (class win32_process_target): Update.
4052
9061c9cf
TBA
40532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4054
4055 Turn process_stratum_target's detach op into a method of
4056 process_target.
4057
4058 * target.h (struct process_stratum_target): Remove the target op.
4059 (class process_target): Add the target op.
4060 (detach_inferior): Update the macro.
4061
4062 Update the derived classes and callers below.
4063
4064 * linux-low.cc (linux_target_ops): Update.
4065 (linux_detach): Turn into ...
4066 (linux_process_target::detach): ... this.
4067 * linux-low.h (class linux_process_target): Update.
4068 * lynx-low.cc (lynx_target_ops): Update.
4069 (lynx_detach): Turn into ...
4070 (lynx_process_target::detach): ... this.
4071 * lynx-low.h (class lynx_process_target): Update.
4072 * nto-low.cc (nto_target_ops): Update.
4073 (nto_detach): Turn into ...
4074 (nto_process_target::detach): ... this.
4075 * nto-low.h (class nto_process_target): Update.
4076 * win32-low.cc (win32_target_ops): Update.
4077 (win32_detach): Turn into ...
4078 (win32_process_target::detach): ... this.
4079 * win32-low.h (class win32_process_target): Update.
4080
c6885a57
TBA
40812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4082
4083 Turn process_stratum_target's kill op into a method of
4084 process_target.
4085
4086 * target.h (struct process_stratum_target): Remove the target op.
4087 (class process_target): Add the target op.
4088
4089 Update the derived classes and callers below.
4090
4091 * target.cc (kill_inferior): Update.
4092 * linux-low.cc (linux_target_ops): Update.
4093 (linux_kill): Turn into ...
4094 (linux_process_target::kill): ... this.
4095 * linux-low.h (class linux_process_target): Update.
4096 * lynx-low.cc (lynx_target_ops): Update.
4097 (lynx_kill): Turn into ...
4098 (lynx_process_target::kill): ... this.
4099 * lynx-low.h (class lynx_process_target): Update.
4100 * nto-low.cc (nto_target_ops): Update.
4101 (nto_kill): Turn into ...
4102 (nto_process_target::kill): ... this.
4103 * nto-low.h (class nto_process_target): Update.
4104 * win32-low.cc (win32_target_ops): Update.
4105 (win32_kill): Turn into ...
4106 (win32_process_target::kill): ... this.
4107 * win32-low.h (class win32_process_target): Update.
4108
ef03dad8
TBA
41092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4110
4111 Turn process_stratum_target's attach op into a method of
4112 process_target.
4113
4114 * target.h (struct process_stratum_target): Remove the target op.
4115 (class process_target): Add the target op.
4116 (myattach): Update the macro.
4117
4118 Update the derived classes and callers below.
4119
4120 * linux-low.cc (linux_target_ops): Update.
4121 (linux_attach): Turn into ...
4122 (linux_process_target::attach): ... this.
4123 * linux-low.h (class linux_process_target): Update.
4124 * lynx-low.cc (lynx_target_ops): Update.
4125 (lynx_attach): Turn into ...
4126 (lynx_process_target::attach): ... this.
4127 * lynx-low.h (class lynx_process_target): Update.
4128 * nto-low.cc (nto_target_ops): Update.
4129 (nto_attach): Turn into ...
4130 (nto_process_target::attach): ... this.
4131 * nto-low.h (class nto_process_target): Update.
4132 * win32-low.cc (win32_target_ops): Update.
4133 (win32_attach): Turn into ...
4134 (win32_process_target::attach): ... this.
4135 * win32-low.h (class win32_process_target): Update.
4136
6dee9afb
TBA
41372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4138
4139 Turn process_stratum_target's post_create_inferior op into a method
4140 of process_target.
4141
4142 * target.h (struct process_stratum_target): Remove the target op.
4143 (class process_target): Add the target op.
4144 (target_post_create_inferior): Update the macro.
4145 * target.cc (process_target::post_create_inferior): Define.
4146
4147 Update the derived classes and callers below.
4148
4149 * linux-low.cc (linux_target_ops): Update.
4150 (linux_post_create_inferior): Turn into ...
4151 (linux_process_target::post_create_inferior): ... this.
4152 * linux-low.h (class linux_process_target): Update.
4153 * lynx-low.cc (lynx_target_ops): Update.
4154 * nto-low.cc (nto_target_ops): Update.
4155 * win32-low.cc (win32_target_ops): Update.
4156
15295543
TBA
41572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4158
4159 Turn process_stratum_target's create_inferior op into a method of
4160 process_target.
4161
4162 * target.h (struct process_stratum_target): Remove the target op.
4163 (class process_target): Add the target op.
4164 (create_inferior): Rename the macro to ...
4165 (target_create_inferior): ... this.
4166
4167 Update the derived classes and callers below.
4168
4169 * server.cc (handle_v_run): Update.
4170 (captured_main): Update.
4171 (process_serial_event): Update.
4172 * linux-low.cc (linux_target_ops): Update.
4173 (linux_create_inferior): Turn into ...
4174 (linux_process_target::create_inferior): ... this.
4175 * linux-low.h (class linux_process_target): Update.
4176 * lynx-low.cc (lynx_target_ops): Update.
4177 (lynx_create_inferior): Turn into ...
4178 (lynx_process_target::create_inferior): ... this.
4179 * lynx-low.h (class lynx_process_target): Update.
4180 * nto-low.cc (nto_target_ops): Update.
4181 (nto_create_inferior): Turn into ...
4182 (nto_process_target::create_inferior): ... this.
4183 * nto-low.h (class nto_process_target): Update.
4184 * win32-low.cc (win32_target_ops): Update.
4185 (win32_create_inferior): Turn into ...
4186 (win32_process_target::create_inferior): ... this.
4187 * win32-low.h (class win32_process_target): Update.
4188
5ef9273d
TBA
41892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4190
4191 * target.h (class process_target): New class definition.
4192 (struct process_stratum_target) <pt>: New field with type
4193 'process_target*'.
4194 * linux-low.h (class linux_process_target): Define as a derived
4195 class of 'process_target'.
4196 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4197 as the 'pt' field.
4198 * lynx-low.h (class lynx_process_target): Define as a derived
4199 class of 'process_target'.
4200 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4201 as the 'pt' field.
4202 * nto-low.h (class nto_process_target): Define as a derived
4203 class of 'process_target'.
4204 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4205 as the 'pt' field.
4206 * win32-low.h (class win32_process_target): Define as a derived
4207 class of 'process_target'.
4208 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4209 as the 'pt' field.
4210
9f1528a1
AB
42112020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4212
4213 * configure: Regenerate.
4214
bf84f706
MR
42152020-02-19 Maciej W. Rozycki <macro@wdc.com>
4216 Andrew Burgess <andrew.burgess@embecosm.com>
4217
4218 * linux-riscv-low.cc: New file.
4219 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4220 and nat/riscv-linux-tdesc.c.
4221 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4222 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4223 Define.
4224
1a627e7e
TT
42252020-02-14 Tom Tromey <tom@tromey.com>
4226
4227 * acinclude.m4: Don't include acx_configure_dir.m4.
4228 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4229 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4230 (all, install-only, uninstall, clean-info, clean)
4231 (maintainer-clean): Don't recurse.
4232 (subdir_do, all-lib): Remove.
4233 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4234 (GNULIB_H): Remove.
4235 (generated_files): Update.
4236 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4237 * configure: Rebuild.
4238 * configure.ac: Don't configure gnulib or libiberty.
4239 (GNULIB): Update.
4240
a9b34532
EZ
42412020-02-14 Eli Zaretskii <eliz@gnu.org>
4242
4243 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4244 preparing the command line for CreateProcess.
4245 (win32_create_inferior): Reflect the program name in debugging
4246 output that shows the process and its command line.
4247
feacfcac
SM
42482020-02-13 Simon Marchi <simon.marchi@efficios.com>
4249
4250 * Makefile.in: Rename source files from .c to .cc.
4251 * %.c: Rename to %.cc.
4252 * configure.ac: Rename server.c to server.cc.
4253 * configure: Re-generate.
4254
06b3c5bd
SM
42552020-02-13 Simon Marchi <simon.marchi@efficios.com>
4256
4257 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4258
052793ad
HD
42592020-02-12 Hannes Domani <ssbssa@yahoo.de>
4260
4261 * win32-low.c (win32_create_inferior): Set signal_pid.
4262
f20e3e82
MR
42632020-02-12 Maciej W. Rozycki <macro@wdc.com>
4264 Pedro Alves <palves@redhat.com>
4265
4266 Skip building gdbserver in a cross-configuration.
4267 * configure.srv: Set $gdbserver_host depending on whether $target
4268 is $host. Use $gdbserver_host instead of $host.
4269
8ddd8e0e
SM
42702020-02-11 Simon Marchi <simon.marchi@efficios.com>
4271
4272 * configure: Re-generate.
4273
898e7f60
SM
42742020-02-11 Simon Marchi <simon.marchi@efficios.com>
4275
4276 * configure: Re-generate.
4277
58df732b
SM
42782020-02-11 Simon Marchi <simon.marchi@efficios.com>
4279
4280 * acinclude.m4: Update warning.m4 path.
4281
7928d571
HD
42822020-02-09 Hannes Domani <ssbssa@yahoo.de>
4283
4284 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4285 (handle_exception): Set siginfo_er.
4286 (win32_xfer_siginfo): New function.
4287
919adfe8
TT
42882020-02-07 Tom Tromey <tom@tromey.com>
4289 Pedro Alves <palves@redhat.com>
4290
4291 * README: Update build documentation.
4292 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4293 host, not target.
4294 * configure.ac: Update paths.
4295 * configure: Rebuild.
4296 * acinclude.m4: Update paths.
4297 * Makefile.in: Update include paths.
4298 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4299 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4300 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4301 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4302 (%-generated.c): Update paths.
4303 * Move entire directory from ../gdb/gdbserver.
4304
287c844a
MR
43052020-01-29 Maciej W. Rozycki <macro@wdc.com>
4306
4307 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4308
548a204f
PFC
43092020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4310
4311 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4312 assignment instead of srv_linux_obj.
4313
a2236a08
HD
43142020-01-28 Hannes Domani <ssbssa@yahoo.de>
4315
4316 * server.c (handle_qxfer_libraries): Write segment-address with
4317 paddress.
4318
bdaed379
HD
43192020-01-24 Hannes Domani <ssbssa@yahoo.de>
4320
4321 * Makefile.in (install-strip): New target.
4322 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4323 * aclocal.m4: Regenerate.
4324 * configure: Regenerate.
4325 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4326
42cd72aa
MR
43272020-01-24 Maciej W. Rozycki <macro@wdc.com>
4328
4329 * Makefile.in (SFILES): Adjust paths to point to real files.
4330 (OBS): Move waitstatus.o to target/waitstatus.o.
4331 (TAGS): Transform paths appropriately.
4332 (%.o): Rename to...
4333 (nat/%.o): ... this pattern rule.
4334 (%.o): Rename to...
4335 (target/%.o): ... this pattern rule.
4336 * configure.srv: Adjust paths throughout to include nat/ prefix
4337 with the revant files.
4338 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4339 * configure: Regenerate.
4340
42ba50ec
MR
43412020-01-24 Maciej W. Rozycki <macro@wdc.com>
4342
4343 * Makefile.in (TAGS): Remove config files from the recipe.
4344
05ea2a05
TT
43452020-01-14 Tom Tromey <tom@tromey.com>
4346
4347 * configure: Rebuild.
4348 * configure.ac: Remove any checks that were added to common.m4.
4349 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4350 lib-link.m4.
4351
01027315
TT
43522020-01-14 Tom Tromey <tom@tromey.com>
4353
4354 * server.h: Include config.h.
4355 * gdbreplay.c: Include config.h.
4356 * configure: Rebuild.
4357 * configure.ac: Don't source common.host.
4358 * acinclude.m4: Update path.
4359 * Makefile.in (INCSUPPORT): New variable.
4360 (INCLUDE_CFLAGS): Add INCSUPPORT.
4361 (SFILES): Update paths.
4362 (version-generated.c): Update path to create-version.sh.
4363 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4364
b2ceabe8
TT
43652020-01-14 Tom Tromey <tom@tromey.com>
4366
4367 * configure.ac (LIBS): Use WIN32APILIBS.
4368 (USE_WIN32API): Don't define.
4369 * configure: Rebuild.
4370
25c51f71
TT
43712020-01-14 Tom Tromey <tom@tromey.com>
4372
4373 * configure: Rebuild.
4374
c0bd321d
SM
43752020-01-13 Simon Marchi <simon.marchi@efficios.com>
4376
4377 * Makefile.in (%-generated.c): Remove rule for files from
4378 regformats/i386.
4379
bb564c58
SM
43802020-01-13 Simon Marchi <simon.marchi@efficios.com>
4381
4382 * configure: Re-generate.
4383
6e37c371
SM
43842020-01-13 Simon Marchi <simon.marchi@efficios.com>
4385
4386 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4387 Define to static.
4388 * tracepoint.c (stop_tracing, flush_trace_buffer,
4389 about_to_request_buffer_space, get_trace_state_variable_value,
4390 set_trace_state_variable_value, gdb_collect): Add declaration.
4391
df4a0200
SM
43922020-01-13 Simon Marchi <simon.marchi@efficios.com>
4393
4394 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4395 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4396 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4397 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4398 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4399 static.
4400
89e94ec9
SM
44012020-01-13 Simon Marchi <simon.marchi@efficios.com>
4402
4403 * inferiors.c: Include gdbsupport/common-inferior.h.
4404
2552728a
SM
44052020-01-13 Simon Marchi <simon.marchi@efficios.com>
4406
4407 * hostio-errno.c: Include hostio.h.
4408
4025fa09
SM
44092020-01-13 Simon Marchi <simon.marchi@efficios.com>
4410
4411 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4412 prerequisite.
4413
c0b0a142
SM
44142020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4415
4416 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4417 * linux-arm-tdesc.h: Include arch/arm.h.
4418
bb1183e2
SM
44192020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4420
4421 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4422
f5df0b5f
SM
44232020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4424
4425 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4426 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4427
5b6d1e4f
PA
44282020-01-10 Pedro Alves <palves@redhat.com>
4429
4430 * fork-child.c (post_fork_inferior): Pass target down to
4431 startup_inferior.
4432 * inferiors.c (switch_to_thread): Add process_stratum_target
4433 parameter.
4434 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4435 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4436 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4437 * remote-utils.c (prepare_resume_reply): Pass the target to
4438 switch_to_thread.
4439 * target.c (the_target): Now a process_stratum_target.
4440 (done_accessing_memory): Pass the target to switch_to_thread.
4441 (set_target_ops): Ajust to use process_stratum_target.
4442 * target.h (struct target_ops): Rename to ...
4443 (struct process_stratum_target): ... this.
4444 (the_target, set_target_ops): Adjust.
4445 (prepare_to_access_memory): Adjust comment.
4446 * win32-low.c (child_xfer_memory): Adjust to use
4447 process_stratum_target.
4448 (win32_target_ops): Now a process_stratum_target.
4449
559e7e50
EZ
44502020-01-06 Eli Zaretskii <eliz@gnu.org>
4451 Pedro Alves <palves@redhat.com>
4452
4453 * win32-low.c (get_child_debug_event): Extract the fatal exception
4454 from the exit status and convert to the equivalent Posix signal
4455 number.
4456 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4457 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4458
48189bec
HD
44592020-01-01 Hannes Domani <ssbssa@yahoo.de>
4460
4461 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4462
5dd8bf88
JB
44632020-01-01 Joel Brobecker <brobecker@adacore.com>
4464
4465 * server.c (gdbserver_version): Change copyright year to 2020.
4466 * gdbreplay.c (gdbreplay_version): Likewise.
4467
0ad6b8ee
CB
44682019-12-19 Christian Biesinger <cbiesinger@google.com>
4469
4470 * configure: Regenerate.
4471 * configure.ac: Quote variable arguments of test.
4472
1ee7b812
BE
44732019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4474
4475 * Makefile.in: Fix build with GNU Make 3.81
4476
d9fa87f4
TT
44772019-12-16 Tom Tromey <tromey@adacore.com>
4478
4479 * server.c (get_exec_file): Constify result.
4480
ab7d13f0
CB
44812019-12-10 Christian Biesinger <cbiesinger@google.com>
4482
4483 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4484 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4485 * config.in: Regenerate.
4486 * configure: Regenerate.
4487 * configure.ac: Don't check for strerror.
4488 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4489 Call safe_strerror instead of strerror.
4490 * server.h (strerror): Remove this now-unnecessary declaration.
4491 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4492 strerror.
4493 (gdb_agent_helper_thread): Likewise.
4494 * utils.c (perror_with_name): Likewise.
4495
4da8c3a8
TT
44962019-11-26 Tom Tromey <tom@tromey.com>
4497
4498 * configure, config.in: Rebuild.
4499
21987b9c
TT
45002019-11-26 Tom Tromey <tom@tromey.com>
4501
4502 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4503 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4504 gdb_sigmask.
4505 * configure, config.in: Rebuild.
4506
5e030278
TT
45072019-11-26 Tom Tromey <tom@tromey.com>
4508
4509 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4510 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4511 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4512 * acinclude.m4: Include ax_pthread.m4.
4513 * config.in, configure: Rebuild.
4514
6d91ce9a
CB
45152019-11-26 Christian Biesinger <cbiesinger@google.com>
4516
4517 * debug.c (debug_set_output): Call safe_strerror instead of
4518 strerror.
4519 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4520 (linux_kill_one_lwp): Likewise.
4521 (linux_detach_one_lwp): Likewise.
4522 (linux_wait_for_event_filtered): Likewise.
4523 (store_register): Likewise.
4524 * lynx-low.c (lynx_attach): Likewise.
4525 * mem-break.c (insert_memory_breakpoint): Likewise.
4526 (remove_memory_breakpoint): Likewise.
4527 (delete_fast_tracepoint_jump): Likewise.
4528 (set_fast_tracepoint_jump): Likewise.
4529 (uninsert_fast_tracepoint_jumps_at): Likewise.
4530 (reinsert_fast_tracepoint_jumps_at): Likewise.
4531 * nto-low.c (nto_xfer_memory): Likewise.
4532 (nto_resume): Likewise.
4533
6cdd651f
LM
45342019-11-20 Luis Machado <luis.machado@linaro.org>
4535
4536 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4537 instead of register count.
4538 * tdesc.c (tdesc_contains_feature): New function.
4539 * tdesc.h (tdesc_contains_feature): New prototype.
4540
cd850b40
CB
45412019-11-15 Christian Biesinger <cbiesinger@google.com>
4542
4543 * Makefile.in: Add safe-strerror.c.
4544 * configure: Regenerate.
4545 * configure.ac: Don't source common.host.
4546
5abebf3c
CB
45472019-11-15 Christian Biesinger <cbiesinger@google.com>
4548
4549 * config.in: Regenerate.
4550 * configure: Regenerate.
4551
e06f3d6e
AB
45522019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4553
4554 * ax.c (ax_printf): Handle size_t_arg.
4555
ca3a04f6
CB
45562019-11-06 Christian Biesinger <cbiesinger@google.com>
4557
4558 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4559 * mi/mi-main.c (output_cores): Likewise.
4560 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4561 (linux_xfer_osdata_modules): Likewise.
4562 * remote.c (register_remote_support_xml): Likewise.
4563 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4564 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4565
e48f6033
CB
45662019-11-01 Christian Biesinger <cbiesinger@google.com>
4567
4568 * configure: Regenerate.
4569 * configure.ac: Remove check for strerror_r.
4570
e7e97a2e
CB
45712019-10-31 Christian Biesinger <cbiesinger@google.com>
4572
4573 * config.in: Regenerate.
4574 * configure: Regenerate.
4575 * configure.ac: Also check for strerror_r.
4576
75cafaa6
CB
45772019-10-31 Christian Biesinger <cbiesinger@google.com>
4578
4579 * ax.h (debug_agent): Remove duplicate declaration.
4580
30baf67b
TV
45812019-10-26 Tom de Vries <tdevries@suse.de>
4582
4583 * linux-aarch64-low.c: Fix typos in comments.
4584 * linux-arm-low.c: Same.
4585 * linux-low.c: Same.
4586 * linux-ppc-low.c: Same.
4587 * proc-service.c: Same.
4588 * regcache.h: Same.
4589 * server.c: Same.
4590 * tracepoint.c: Same.
4591 * win32-low.c: Same.
4592
52c64cf7
TT
45932019-10-25 Tom Tromey <tromey@adacore.com>
4594
4595 * utils.c (xstrdup): Remove.
4596
c12d372d
TT
45972019-10-23 Tom Tromey <tom@tromey.com>
4598
4599 * configure, config.in: Rebuild.
4600
4d0b984b
TT
46012019-10-23 Tom Tromey <tom@tromey.com>
4602
4603 * configure: Rebuild.
4604 * acinclude.m4: Use m4_include, not sinclude.
4605
c5adaa19
TT
46062019-10-17 Tom Tromey <tromey@adacore.com>
4607
4608 * configure: Rebuild.
4609 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4610 in AC_CONFIG_FILES invocation.
4611 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4612 invocation.
4613
fec4e896
CB
46142019-10-16 Christian Biesinger <cbiesinger@google.com>
4615
4616 * server.c: Include xml-builtin.h.
4617 (get_xml_features): Don't declare xml_builtins here.
4618
00975ff6
AB
46192019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4620
4621 * Makefile.in: Remove references to vec-ipa.o.
4622
0dc32745
AB
46232019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4624
4625 * Makefile.in: Remove references to vec.c.
4626
3e6ec53a
CB
46272019-10-02 Christian Biesinger <cbiesinger@google.com>
4628
4629 * server.c (server_waiting): Change to bool.
4630 (extended_protocol): Likewise.
4631 (response_needed): Likewise.
4632 (exit_requested): Likewise.
4633 (run_once): Likewise.
4634 (report_no_resumed): Likewise.
4635 (non_stop): Likewise.
4636 (disable_packet_vCont): Likewise.
4637 (disable_packet_Tthread): Likewise.
4638 (disable_packet_qC): Likewise.
4639 (disable_packet_qfThreadInfo): Likewise.
4640 (handle_general_set): Update.
4641 (handle_detach): Update.
4642 (handle_monitor_command): Update.
4643 (handle_query): Update.
4644 (captured_main): Update.
4645 (process_serial_event): Update.
4646 * server.h (server_waiting): Change to bool.
4647 (disable_packet_vCont): Likewise.
4648 (disable_packet_Tthread): Likewise.
4649 (disable_packet_qC): Likewise.
4650 (disable_packet_qfThreadInfo): Likewise.
4651 (run_once): Likewise.
4652 (non_stop): Likewise.
4653 * target.c (target_stop_and_wait): Update.
4654
80fd2826
TT
46552019-10-02 Tom Tromey <tromey@adacore.com>
4656
4657 * Makefile.in (SFILES): Add common-inferior.c.
4658 (OBS): Add common-inferior.o.
4659 * server.c (startup_with_shell): Don't define.
4660
46f29a9a
AB
46612019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4662
4663 * linux-low.c (linux_low_read_btrace): Update for change to
4664 std::vector.
4665
f9d949fb
CB
46662019-09-20 Christian Biesinger <cbiesinger@google.com>
4667
4668 * debug.c (debug_threads): Remove comment in favor of the header.
4669 * debug.h (using_threads): Add declaration.
4670 (debug_threads): Add comment.
4671 * linux-aarch64-low.c: Include debug.h and remove declaration of
4672 debug_threads.
4673 * nto-low.c: Likewise.
4674 * remote-utils.c: Likewise.
4675 * thread-db.c: Likewise.
4676
abf516c6
UW
46772019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4678
4679 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4680 and powerpc-cell64l-ipa.o.
4681 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4682 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4683 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4684 (spu*-*-*): Remove.
4685
4686 * spu-low.c: Remove file.
4687
4688 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4689 (parse_spufs_run): Remove.
4690 (ppc_get_pc): Remove Cell/B.E. support.
4691 (ppc_set_pc): Likewise.
4692 (ppc_breakpoint_at): Likewise.
4693 (ppc_arch_setup): Likewise.
4694 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4695 tdesc_powerpc_cell32l.
4696 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4697 or init_registers_powerpc_cell32l.
4698 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4699 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4700 or init_registers_powerpc_cell32l.
4701 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4702 (init_registers_powerpc_cell32l): Remove prototype.
4703 (init_registers_powerpc_cell64l): Likewise.
4704
4705 * target.h (struct target_ops): Remove qxfer_spu member.
4706 * server.c (handle_qxfer_spu): Remove.
4707 (qxfer_packets): Remove entry for "spu".
4708 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4709 * linux-low.c (SPUFS_MAGIC): Remove.
4710 (spu_enumerate_spu_ids): Remove.
4711 (linux_qxfer_spu): Remove.
4712 (linux_target_ops): Remove qxfer_spu member.
4713 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4714 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4715 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4716
2d41fa11
SDJ
47172019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4718
4719 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4720 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4721 * config.in: Regenerate.
4722 * configure: Regenerate.
4723
d59b55f0
TT
47242019-08-15 Tom Tromey <tromey@adacore.com>
4725
4726 * target.c (target_write_memory): Use gdb::byte_vector.
4727
4196ab2a
TT
47282019-08-15 Tom Tromey <tromey@adacore.com>
4729
4730 * tracepoint.c (write_inferior_data_pointer)
4731 (write_inferior_integer, write_inferior_int8)
4732 (write_inferior_uinteger, m_tracepoint_action_download)
4733 (r_tracepoint_action_download, x_tracepoint_action_download)
4734 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4735 (download_agent_expr, download_tracepoint_1)
4736 (download_trace_state_variables, upload_fast_traceframes): Update.
4737 * server.c (gdb_write_memory): Update.
4738 * remote-utils.c (relocate_instruction): Update.
4739 * proc-service.c (ps_pdwrite): Update.
4740 * mem-break.c (remove_memory_breakpoint)
4741 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4742 (uninsert_fast_tracepoint_jumps_at)
4743 (reinsert_fast_tracepoint_jumps_at): Update.
4744 * linux-x86-low.c (append_insns)
4745 (i386_install_fast_tracepoint_jump_pad)
4746 (amd64_write_goto_address, i386_write_goto_address): Update.
4747 * linux-s390-low.c (append_insns, s390_write_goto_address):
4748 Update.
4749 * linux-ppc-low.c (ppc_relocate_instruction)
4750 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4751 (ppc_write_goto_address): Update.
4752 * linux-aarch64-low.c (append_insns): Update.
4753 * target.h (struct target_ops): Update.
4754 (write_inferior_memory): Don't declare.
4755 * target.c (target_write_memory): Rename from
4756 write_inferior_memory. Remove old target_write_memory.
4757
c6778d00
TT
47582019-08-15 Tom Tromey <tromey@adacore.com>
4759
4760 * target.c (write_inferior_memory): Use std::vector.
4761
404f2902
FCE
47622019-08-06 Frank Ch. Eigler <fche@redhat.com>
4763
4764 PR build/24886
4765 * configure.ac: Drop enable-libmcheck support.
4766 * configure, config.in: Rebuild.
4767 * acinclude.m4: Don't include it.
4768
4c5aa8e0
AH
47692019-07-19 Alan Hayward <alan.hayward@arm.com>
4770
4771 * configure.srv: Remove Arm xml files.
4772
7cc17433
AH
47732019-07-19 Alan Hayward <alan.hayward@arm.com>
4774
4775 * configure.srv: Add new files. Remove xml generated files.
4776 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4777 registers.
4778 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4779 * linux-aarch32-tdesc.c: New file.
4780 * linux-aarch32-tdesc.h: New file.
4781 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4782 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4783 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4784 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4785 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4786 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4787 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4788 (arm_read_description): Call arm_linux_read_description.
4789 (initialize_low_arch): Don't init registers.
4790 * linux-arm-tdesc.c: New file.
4791 * linux-arm-tdesc.h: New file.
4792
166a82be
AH
47932019-07-10 Alan Hayward <alan.hayward@arm.com>
4794
4795 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4796 Move counter inside for.
4797 (arm_read_description): Check ptrace earlier.
4798 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4799
268a13a5
TT
48002019-07-09 Tom Tromey <tom@tromey.com>
4801
4802 * configure: Rebuild.
4803 * configure.ac: Change common to gdbsupport.
4804 * acinclude.m4: Change common to gdbsupport.
4805 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4806 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4807 common to gdbsupport.
4808 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4809 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4810 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4811 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4812 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4813 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4814 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4815 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4816 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4817 common to gdbsupport.
4818
350fab54
AH
48192019-07-04 Alan Hayward <alan.hayward@arm.com>
4820
4821 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4822 defines.
4823 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4824
2b40fda7
AH
48252019-07-04 Alan Hayward <alan.hayward@arm.com>
4826
4827 * configure.srv: Remove legacy xml.
4828 * linux-aarch64-low.c (initialize_low_arch): Remove
4829 initialize_low_tdesc call.
4830 * linux-aarch64-tdesc-selftest.c: Remove file.
4831 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4832 * linux-x86-low.c (initialize_low_arch): Remove
4833 initialize_low_tdesc call.
4834 * linux-x86-tdesc-selftest.c: Remove file.
4835 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4836
7d10623d
TV
48372019-06-20 Tom de Vries <tdevries@suse.de>
4838
4839 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4840 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4841
8d6a48df
TV
48422019-06-19 Tom de Vries <tdevries@suse.de>
4843
4844 * debug.h (debug_write): Change return type to ssize_t.
4845 * debug.c (debug_write): Same.
4846
73cc7272
TT
48472019-06-14 Tom Tromey <tom@tromey.com>
4848
4849 * configure.ac: Use new path to gnulib.
4850 * configure: Rebuild.
4851 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4852 to gnulib.
4853
08f10e02
TT
48542019-06-11 Tom Tromey <tom@tromey.com>
4855
4856 * Makefile.in (SFILES): Add alloc.c.
4857 (OBS): Add alloc.o.
4858 (IPA_OBJS): Add alloc-ipa.o.
4859 (alloc-ipa.o): New target.
4860 (%.o: ../%.c): New pattern rule.
4861
422186a9
TT
48622019-06-10 Tom Tromey <tromey@adacore.com>
4863
4864 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4865 end warning with a newline.
4866 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4867 newline.
4868 * thread-db.c (attach_thread): Don't end warning with a newline.
4869 (thread_db_notice_clone): Likewise.
4870 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4871 newline.
4872 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4873 end warning with a newline.
4874
b02f78f9
PA
48752019-06-04 Pedro Alves <palves@redhat.com>
4876
4877 * server.c (captured_main): Use make_unique_xstrdup.
4878
88ed7edb
TT
48792019-06-02 Tom Tromey <tom@tromey.com>
4880
4881 * gdbreplay.c (fromhex): Remove.
4882 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4883
33a6bc35
TT
48842019-05-29 Tom Tromey <tromey@adacore.com>
4885
4886 * configure: Rebuild.
4887
e90a813d
KB
48882019-05-06 Kevin Buettner <kevinb@redhat.com>
4889
4890 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4891 sign extension code on 32-bit builds.
4892
353ea2d1
EZ
48932019-05-03 Eli Zaretskii <eliz@gnu.org>
4894
4895 * remote-utils.c:
4896 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4897
b494cdff
TT
48982019-04-19 Tom Tromey <tom@tromey.com>
4899
4900 * server.c (struct vstop_notif): Derive from notif_event.
4901 <base>: Remove.
4902 (queue_stop_reply): Update.
4903 (remove_all_on_match_ptid): Change type. Rewrite.
4904 (discard_queued_stop_replies): Rewrite.
4905 (in_queued_stop_replies_ptid): Change type.
4906 (in_queued_stop_replies): Rewrite.
4907 (notif_stop): Update.
4908 (queue_stop_reply_callback): Update.
4909 (captured_main): Don't call initialize_notif.
4910 (push_stop_notification): Update.
4911 * notif.c (notif_write_event, handle_notif_ack)
4912 (notif_event_enque, notif_push): Update.
4913 (notif_event_xfree, initialize_notif): Remove.
4914 * notif.h (struct notif_event): Include <list>, not
4915 "common/queue.h".
4916 (struct notif_server) <queue>: Now a std::list.
4917 (notif_event_p): Remove typedef.
4918 (initialize_notif): Don't declare.
4919 (struct notif_event): Add virtual destructor.
4920
a7e559cc
AH
49212019-04-17 Alan Hayward <alan.hayward@arm.com>
4922
4923 * ax.c (ax_vdebug): Call debug_printf.
4924 * debug.c (debug_write): New function.
4925 * debug.h (debug_write): New declaration.
4926 * linux-low.c (sigchld_handler): Call debug_write.
4927
aeb2e706
AH
49282019-04-17 Alan Hayward <alan.hayward@arm.com>
4929
4930 * debug.c (debug_set_output): New function.
4931 (debug_vprintf): Send output to debug_file.
4932 (debug_flush): Likewise.
4933 * debug.h (debug_set_output): New declaration.
4934 * server.c (handle_monitor_command): Add debug-file option.
4935 (captured_main): Likewise.
4936
c1bc0935
AH
49372019-04-17 Alan Hayward <alan.hayward@arm.com>
4938
4939 * debug.c (remote_debug): Add definition.
4940 * debug.h (remote_debug): Add declaration.
4941 * hostio.c (remote_debug): Remove declaration.
4942 * remote-utils.c (struct ui_file): Likewise.
4943 (remote_debug): Likewise.
4944 * remote-utils.h (remote_debug): Likewise,
4945 * server.c (remote_debug): Remove definition.
4946
3f52fdbc
KB
49472019-04-10 Kevin Buettner <kevinb@redhat.com>
4948
4949 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4950 when using a 64-bit gdbserver.
4951
b0319eaa
TT
49522019-04-09 Tom Tromey <tromey@adacore.com>
4953
4954 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4955
eedc3f4f
TT
49562019-04-08 Tom Tromey <tom@tromey.com>
4957
4958 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4959 throw.
4960 (linux_resume_one_lwp): Likewise.
4961
230d2906
TT
49622019-04-08 Tom Tromey <tom@tromey.com>
4963
4964 * gdbreplay.c: Update.
4965 * linux-low.c: Update.
4966 * server.c: Update.
4967
a70b8144
TT
49682019-04-08 Tom Tromey <tom@tromey.com>
4969
4970 * server.c: Use C++ exception handling.
4971 * linux-low.c: Use C++ exception handling.
4972 * gdbreplay.c: Use C++ exception handling.
4973
3d6e9d23
TT
49742019-04-08 Tom Tromey <tom@tromey.com>
4975
4976 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4977 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4978 (captured_main, main): Update.
4979 * gdbreplay.c (main): Update.
4980
0570503d
PFC
49812019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4982
4983 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4984 value in argument pointer, return 1 if the entry is found and 0
4985 otherwise. Move comment.
4986 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4987 * linux-low.h (linux_get_auxv): Declare.
4988 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4989
227a9e65
TT
49902019-04-05 Tom Tromey <tromey@adacore.com>
4991
4992 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4993 variables.
4994
69f4c9cc
AH
49952019-03-28 Alan Hayward <alan.hayward@arm.com>
4996
4997 * linux-low.c (AT_HWCAP2): Add define if not already included.
4998
974c89e0
AH
49992019-03-26 Alan Hayward <alan.hayward@arm.com>
5000
5001 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5002 (aarch64_arch_setup): Call linux_get_hwcap.
5003 * linux-arm-low.c (arm_get_hwcap): Remove function.
5004 (arm_read_description): Call linux_get_hwcap.
5005 * linux-low.c (linux_get_auxv): New function.
5006 (linux_get_hwcap): Likewise.
5007 (linux_get_hwcap2): Likewise.
5008 * linux-low.h (linux_get_hwcap): New declaration.
5009 (linux_get_hwcap2): Likewise.
5010 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5011 (ppc_arch_setup): Call linux_get_hwcap.
5012 * linux-s390-low.c (s390_get_hwcap): Remove function.
5013 (s390_arch_setup): Call linux_get_hwcap.
5014
1ef53e6b
AH
50152019-03-22 Alan Hayward <alan.hayward@arm.com>
5016 Jiong Wang <jiong.wang@arm.com>
5017
5018 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5019 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5020 to fail.
5021 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5022
ee4fbcfa
AH
50232019-03-22 Alan Hayward <alan.hayward@arm.com>
5024 Jiong Wang <jiong.wang@arm.com>
5025
5026 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5027 (aarch64_get_hwcap): New function.
5028 (aarch64_arch_setup): Read APIA hwcap.
5029
6dc0ebde
AH
50302019-03-22 Alan Hayward <alan.hayward@arm.com>
5031 Jiong Wang <jiong.wang@arm.com>
5032
5033 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5034 (initialize_low_tracepoint): Likewise.
5035 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5036 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5037 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5038 (aarch64_linux_read_description): Likewise.
5039 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5040
1163a4b7
JB
50412019-03-12 John Baldwin <jhb@FreeBSD.org>
5042
5043 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5044 i386_create_target_description for 'segments' parameter.
5045 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5046 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5047 * win32-i386-low.c (i386_arch_setup): Likewise.
5048
d3a70e03
TT
50492019-03-12 Tom Tromey <tromey@adacore.com>
5050
5051 * linux-low.c (iterate_over_lwps): Update.
5052
37991b4f
TT
50532019-03-06 Tom Tromey <tom@tromey.com>
5054
5055 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5056 (captured_main): Use SCOPE_EXIT.
5057
45950eb6
SDJ
50582019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5059
5060 * configure.srv: Use '$enable_unittest' instead of '$development'
5061 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5062 case.
5063
43ac54fc
TT
50642019-02-27 Tom Tromey <tromey@adacore.com>
5065
5066 * gdbreplay.c (logchar): Handle \r\n.
5067
df0da8a2
AH
50682019-02-07 Alan Hayward <alan.hayward@arm.com>
5069
5070 * linux-low.c (linux_attach): Add process before lwp.
5071 * server.c (attach_inferior): Check if already attached.
5072
1a5c2598
TT
50732019-02-07 Tom Tromey <tom@tromey.com>
5074
5075 * x86-tdesc.h: Rename include guard.
5076 * x86-low.h: Add include guard.
5077 * wincecompat.h: Rename include guard.
5078 * win32-low.h: Add include guard.
5079 * utils.h: Rename include guard.
5080 * tracepoint.h: Rename include guard.
5081 * tdesc.h: Rename include guard.
5082 * target.h: Rename include guard.
5083 * server.h: Rename include guard.
5084 * remote-utils.h: Rename include guard.
5085 * regcache.h: Rename include guard.
5086 * nto-low.h: Rename include guard.
5087 * notif.h: Add include guard.
5088 * mem-break.h: Rename include guard.
5089 * lynx-low.h: Add include guard.
5090 * linux-x86-tdesc.h: Add include guard.
5091 * linux-s390-tdesc.h: Add include guard.
5092 * linux-ppc-tdesc-init.h: Add include guard.
5093 * linux-low.h: Add include guard.
5094 * linux-aarch64-tdesc.h: Add include guard.
5095 * linux-aarch32-low.h: Add include guard.
5096 * inferiors.h: Rename include guard.
5097 * i387-fp.h: Rename include guard.
5098 * hostio.h: Rename include guard.
5099 * gdbthread.h: Rename include guard.
5100 * gdb_proc_service.h: Rename include guard.
5101 * event-loop.h: Rename include guard.
5102 * dll.h: Rename include guard.
5103 * debug.h: Rename include guard.
5104 * ax.h: Rename include guard.
5105
956cc47c
SN
51062018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5107
5108 PR gdb/23985
5109 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5110 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5111
a0707f3c
TT
51122019-01-25 Tom Tromey <tom@tromey.com>
5113
5114 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5115
0747795c
TT
51162019-01-25 Tom Tromey <tom@tromey.com>
5117
5118 * win32-low.c: Fix common/ includes.
5119 * win32-i386-low.c: Fix common/ includes.
5120 * tracepoint.c: Fix common/ includes.
5121 * thread-db.c: Fix common/ includes.
5122 * target.h: Fix common/ includes.
5123 * symbol.c: Fix common/ includes.
5124 * spu-low.c: Fix common/ includes.
5125 * server.h: Fix common/ includes.
5126 * server.c: Fix common/ includes.
5127 * remote-utils.c: Fix common/ includes.
5128 * regcache.h: Fix common/ includes.
5129 * regcache.c: Fix common/ includes.
5130 * nto-x86-low.c: Fix common/ includes.
5131 * notif.h: Fix common/ includes.
5132 * mem-break.h: Fix common/ includes.
5133 * lynx-low.c: Fix common/ includes.
5134 * lynx-i386-low.c: Fix common/ includes.
5135 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5136 * linux-x86-low.c: Fix common/ includes.
5137 * linux-low.c: Fix common/ includes.
5138 * inferiors.h: Fix common/ includes.
5139 * i387-fp.c: Fix common/ includes.
5140 * hostio.c: Fix common/ includes.
5141 * hostio-errno.c: Fix common/ includes.
5142 * gdbthread.h: Fix common/ includes.
5143 * gdbreplay.c: Fix common/ includes.
5144 * fork-child.c: Fix common/ includes.
5145 * event-loop.c: Fix common/ includes.
5146 * ax.c:
5147 (enum gdb_agent_op): Fix common/ includes.
5148
be6d4f74
TT
51492019-01-21 Tom Tromey <tom@tromey.com>
5150
5151 * tracepoint.c: Fix includes.
5152 * remote-utils.c: Fix includes.
5153 * linux-x86-low.c: Fix includes.
5154
66d91b39
JB
51552019-01-01 Joel Brobecker <brobecker@adacore.com>
5156
5157 * gdbreplay.c (gdbreplay_version): Update copyright year in
5158 version message.
5159 * server.c (gdbserver_version): Likewise.
5160
754e3168
AH
51612018-12-05 Alan Hayward <alan.hayward@arm.com>
5162
5163 * linux-low.c (add_lwp): Switch ordering.
5164
d105de22
TT
51652018-11-29 Tom Tromey <tom@tromey.com>
5166
5167 * win32-low.c (win32_join): Take pid, not process.
5168 * target.h (struct target_ops) <join>: Change argument type.
5169 (join_inferior): Change argument name.
5170 * spu-low.c (spu_join): Take pid, not process.
5171 * server.c (handle_detach): Preserve pid before destroying
5172 process.
5173 * lynx-low.c (lynx_join): Take pid, not process.
5174 * linux-low.c (linux_join): Take pid, not process.
5175
50138245
AH
51762018-11-23 Alan Hayward <alan.hayward@arm.com>
5177
5178 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5179 (aarch64_cannot_fetch_register): Likewise.
5180 (struct linux_target_ops): Update references.
5181
64f57f3d
PFC
51822018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5183
5184 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5185
8d619c01
EBM
51862018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5187
5188 * configure.srv (ipa_ppc_linux_regobj): Add
5189 powerpc-isa207-htm-vsx32l-ipa.o and
5190 powerpc-isa207-htm-vsx64l-ipa.o.
5191 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5192 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5193 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5194 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5195 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5196 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5197 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5198 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5199 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5200 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5201 (init_registers_powerpc_isa207_htm_vsx32l)
5202 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5203 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5204 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5205 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5206 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5207 (ppc_store_tm_ctarregset): New functions.
5208 (ppc_regsets): Add entries for HTM regsets.
5209 (ppc_arch_setup): Set htm in features struct when needed. Set
5210 sizes for the HTM regsets.
5211 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5212 (initialize_low_arch): Call
5213 init_registers_powerpc_isa207_htm_vsx32l and
5214 init_registers_powerpc_isa207_htm_vsx64l.
5215 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5216 PPC_TDESC_ISA207_HTM_VSX.
5217 (initialize_low_tracepoint): Call
5218 init_registers_powerpc_isa207_htm_vsx32l and
5219 init_registers_powerpc_isa207_htm_vsx64l.
5220
232bfb86
EBM
52212018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5222
5223 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5224 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5225 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5226 (ppc_store_pmuregset): New functions.
5227 (ppc_regsets): Add entries for ebb and pmu regsets.
5228 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5229 pmu regsets are available. Set sizes for these regsets.
5230
f2cf6173
EBM
52312018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5232
5233 * configure.srv (ipa_ppc_linux_regobj): Add
5234 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5235 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5236 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5237 rs6000/powerpc-isa207-vsx32l.xml, and
5238 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5239 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5240 <PPC_TDESC_ISA207_VSX>: New enum value.
5241 (init_registers_powerpc_isa207_vsx32l): Declare.
5242 (init_registers_powerpc_isa207_vsx64l): Declare.
5243 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5244 (ppc_store_tarregset): New function.
5245 (ppc_regsets): Add entry for the TAR regset.
5246 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5247 size for the TAR regsets.
5248 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5249 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5250 and init_registers_powerpc_isa207_vsx64l.
5251 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5252 (initialize_low_tracepoint): Call
5253 init_registers_powerpc_isa207_vsx32l and
5254 init_registers_powerpc_isa207_vsx64l.
5255
7ca18ed6
EBM
52562018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5257 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5258
5259 * configure.srv (ipa_ppc_linux_regobj): Add
5260 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5261 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5262 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5263 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5264 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5265 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5266 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5267 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5268 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5269 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5270 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5271 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5272 (ppc_hwcap): Add comment.
5273 (ppc_hwcap2): New global.
5274 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5275 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5276 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5277 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5278 when needed. Set sizes for the the DSCR and PPR regsets.
5279 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5280 (initialize_low_arch): Call
5281 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5282 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5283 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5284 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5285 (initialize_low_tracepoint): Call
5286 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5287 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5288
5c849b22
PFC
52892018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5290
5291 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5292
8ecfd7bd
SDJ
52932018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5294 Simon Marchi <simark@simark.ca>
5295
5296 * acinclude.m4: Include "../selftest.m4".
5297 * configure: Regenerate.
5298 * configure.ac: Use "GDB_AC_SELFTEST".
5299 * configure.srv: Use "$enable_unittests" instead of
5300 "$development" when checking whether unit tests have been
5301 enabled.
5302 * server.c (captured_main): Update message informing that
5303 selftests have been disabled.
5304
96643e35
TT
53052018-10-04 Tom Tromey <tom@tromey.com>
5306
5307 * configure: Rebuild.
5308
da4ae14a
TT
53092018-10-04 Tom Tromey <tom@tromey.com>
5310
5311 * server.c (handle_status): Rename inner "thread".
5312 (process_serial_event): Declare "res" in 'm' case.
5313 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5314 (iterate_over_lwps): Rename inner "thread".
5315 (linux_qxfer_libraries_svr4): Rename inner "len".
5316 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5317
7c619dbd
GB
53182018-10-01 Gary Benson <gbenson@redhat.com>
5319
5320 * gdb_proc_service.h: Moved common code to
5321 common/gdb_proc_service.h.
5322
3795e814
GB
53232018-10-01 Gary Benson <gbenson@redhat.com>
5324
5325 * gdb_proc_service.h: Synchronize comments and whitespace with
5326 GDB's version of this file.
5327
49b036f1
TT
53282018-09-25 Tom Tromey <tom@tromey.com>
5329
5330 * configure: Rebuild.
5331 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5332
8ff03f0b
SM
53332018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5334
5335 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5336 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5337 ($(IPA_LIB)): Sort IPA_OBJS.
5338
a1cd91dc
SM
53392018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5340
5341 * Makefile.in: Remove references to $(ADD_DEPS).
5342
752312ba
TT
53432018-09-16 Tom Tromey <tom@tromey.com>
5344
5345 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5346 variables.
5347 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5348 variables.
5349
f1628857
TT
53502018-09-05 Tom Tromey <tom@tromey.com>
5351
5352 * configure: Rebuild.
5353
ad202fcc
SM
53542018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5355
5356 PR build/23399
5357 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5358
d3d8724a
TT
53592018-08-27 Tom Tromey <tom@tromey.com>
5360
5361 PR build/23087:
5362 * configure: Rebuild.
5363
b4f183d2
TT
53642018-08-27 Tom Tromey <tom@tromey.com>
5365
5366 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5367 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5368 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5369 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5370 (s390x_emit_stack_adjust): Add casts to unsigned char.
5371
4e2aa472
SM
53722018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5373
5374 PR gdb/23374
5375 PR gdb/23375
5376 * server.h (struct client_state) <disable_randomization>:
5377 Initialize to 1.
5378
cf4088a9
SM
53792018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5380
5381 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5382 variable.
5383 (mips_supply_ptrace_register): Likewise.
5384
a0de763e
TT
53852018-07-22 Tom Tromey <tom@tromey.com>
5386
5387 * configure: Rebuild.
5388
b0a7723d
TT
53892018-07-22 Tom Tromey <tom@tromey.com>
5390
5391 * win32-low.c (win32_create_inferior): Remove unused variables.
5392 * gdbreplay.c (remote_open): Remove unused variable.
5393 * remote-utils.c (remote_prepare): Remove unused variable.
5394 * x86-tdesc.h (X86_TDESC_H): Define.
5395 (amd64_expedite_regs): Define conditionally.
5396 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5397 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5398 * remote-utils.c (readchar): Remove unused variable.
5399
a780ef4f
PA
54002018-07-13 Pedro Alves <palves@redhat.com>
5401
5402 * linux-low.c (linux_kill): Change parameter to process_info
5403 pointer instead of pid. Adjust.
5404 * lynx-low.c (lynx_kill): Likewise.
5405 * nto-low.c (nto_kill): Likewise.
5406 * spu-low.c (spu_kill): Likewise.
5407 * win32-low.c (win32_kill): Likewise.
5408 * server.c (handle_v_kill, kill_inferior_callback)
5409 (detach_or_kill_for_exit): Adjust.
5410 * target.c (kill_inferior): Change parameter to process_info
5411 pointer instead of pid. Adjust.
5412 * target.h (struct target_ops) <kill>: Change parameter to
5413 process_info pointer instead of pid. Adjust all implementations
5414 and callers.
5415 (kill_inferior): Likewise.
5416
ef2ddb33
PA
54172018-07-13 Pedro Alves <palves@redhat.com>
5418
5419 * linux-low.c (linux_detach, linux_join): Change parameter to
5420 process_info pointer instead of pid. Adjust.
5421 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5422 * nto-low.c (nto_detach): Likewise.
5423 * spu-low.c (spu_detach, spu_join): Likewise.
5424 * win32-low.c (win32_detach, win32_join): Likewise.
5425 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5426 * target.h (struct target_ops) <detach, join>: Change parameter to
5427 process_info pointer instead of pid. Adjust all implementations
5428 and callers.
5429 (detach_inferior, join_inferior): Rename 'pid' parameter to
5430 'proc'.
5431
c7ab0aef
SDJ
54322018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5433 Jan Kratochvil <jan.kratochvil@redhat.com>
5434 Paul Fertser <fercerpav@gmail.com>
5435 Tsutomu Seki <sekiriki@gmail.com>
5436
5437 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5438 (OBS): Add 'common/netstuff.o'.
5439 (GDBREPLAY_OBS): Likewise.
5440 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5441 (remote_open): Implement support for IPv6
5442 connections.
5443 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5444 and 'wspiapi.h'.
5445 (handle_accept_event): Accept connections from IPv6 sources.
5446 (remote_prepare): Handle IPv6-style hostnames; implement
5447 support for IPv6 connections.
5448 (remote_open): Implement support for printing connections from
5449 IPv6 sources.
5450
31445d10
PA
54512018-07-11 Pedro Alves <palves@redhat.com>
5452
5453 PR gdb/23377
5454 * mem-break.c (any_persistent_commands): Add process_info
5455 parameter and use it instead of relying on the current process.
5456 Change return type to bool.
5457 * mem-break.h (any_persistent_commands): Add process_info
5458 parameter and change return type to bool.
5459 * server.c (handle_detach): Remove require_running_or_return call.
5460 Look up the process_info for the process we're about to detach.
5461 If not found, return back error to GDB. Adjust
5462 any_persistent_commands call to pass down a process pointer.
5463
cb197132
PA
54642018-07-11 Pedro Alves <palves@redhat.com>
5465
5466 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5467 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5468 instead of collect_register_by_name.
5469 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5470 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5471
1b919490
VB
54722018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5473 Pedro Alves <palves@redhat.com>
5474
5475 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5476
d7e15655
TT
54772018-07-03 Tom Tromey <tom@tromey.com>
5478
5479 * linux-low.c: Update.
5480 * lynx-low.c: Update.
5481 * mem-break.c: Update.
5482 * nto-low.c: Update.
5483 * remote-utils.c: Update.
5484 * server.c: Update.
5485 * spu-low.c: Update.
5486 * target.c: Update.
5487 * win32-low.c: Update.
5488
26a57c92
TT
54892018-07-03 Tom Tromey <tom@tromey.com>
5490
5491 * server.c: Update.
5492
0e998d96
TT
54932018-07-03 Tom Tromey <tom@tromey.com>
5494
5495 * linux-low.c: Update.
5496
cc6bcb54
TT
54972018-07-03 Tom Tromey <tom@tromey.com>
5498
5499 * target.c: Update.
5500
e38504b3
TT
55012018-07-03 Tom Tromey <tom@tromey.com>
5502
5503 * linux-low.c: Update.
5504 * linux-mips-low.c: Update.
5505 * lynx-low.c: Update.
5506 * nto-low.c: Update.
5507 * remote-utils.c: Update.
5508 * server.c: Update.
5509 * spu-low.c: Update.
5510 * target.c: Update.
5511 * thread-db.c: Update.
5512
e99b03dc
TT
55132018-07-03 Tom Tromey <tom@tromey.com>
5514
5515 * linux-low.c: Update.
5516 * linux-mips-low.c: Update.
5517 * lynx-low.c: Update.
5518 * mem-break.c: Update.
5519 * nto-low.c: Update.
5520 * remote-utils.c: Update.
5521 * server.c: Update.
5522 * spu-low.c: Update.
5523 * target.c: Update.
5524 * tracepoint.c: Update.
5525
f2907e49
TT
55262018-07-03 Tom Tromey <tom@tromey.com>
5527
5528 * linux-low.c: Update.
5529 * linux-ppc-low.c: Update.
5530 * linux-x86-low.c: Update.
5531 * proc-service.c: Update.
5532 * server.c: Update.
5533 * spu-low.c: Update.
5534 * thread-db.c: Update.
5535 * win32-low.c: Update.
5536
fd79271b
TT
55372018-07-03 Tom Tromey <tom@tromey.com>
5538
5539 * linux-low.c: Update.
5540 * lynx-low.c: Update.
5541 * nto-low.c: Update.
5542 * remote-utils.c: Update.
5543 * spu-low.c: Update.
5544 * thread-db.c: Update.
5545 * win32-low.c: Update.
5546
c0867626
SDJ
55472018-06-29 Joel Brobecker <brobecker@adacore.com>
5548
5549 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5550 parameter in call to 'amd64_create_target_description'.
5551
2512d7ef
JK
55522018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5553
5554 * x86-tdesc.h: Remove executable permission flag.
5555
d0ac1c44
SM
55562018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5557
5558 * configure.ac: Remove AC_PREREQ, add missing quoting.
5559 * configure: Re-generate.
5560 * config.in: Re-generate.
5561 * aclocal.m4: Re-generate.
5562
c4eb05ff
SM
55632018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5564
5565 * tracepoint.h (current_traceframe): Remove declaration.
5566
02895270
AH
55672018-06-18 Alan Hayward <alan.hayward@arm.com>
5568
5569 * linux-aarch64-low.c (is_sve_tdesc): New function.
5570 (aarch64_sve_regs_copy_to_regcache): Likewise.
5571 (aarch64_sve_regs_copy_from_regcache): Likewise.
5572 (aarch64_regs_info): Add SVE checks.
5573 (initialize_low_arch): Initialize SVE.
5574
e9902bfc
AH
55752018-06-18 Alan Hayward <alan.hayward@arm.com>
5576
5577 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5578
fefa175e
AH
55792018-06-11 Alan Hayward <alan.hayward@arm.com>
5580
5581 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5582 (initialize_low_tracepoint): Likewise
5583 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5584 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5585 param.
5586 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5587 checks.
5588 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5589
b91ad3ff
AH
55902018-06-11 Alan Hayward <alan.hayward@arm.com>
5591
5592 * server.h (PBUFSIZ): Increase size
5593
f868386e
AH
55942018-06-11 Alan Hayward <alan.hayward@arm.com>
5595
5596 * regcache.c (regcache::raw_compare): New function.
5597 * regcache.h (regcache::raw_compare): New declaration.
5598
9c861883
AH
55992018-06-11 Alan Hayward <alan.hayward@arm.com>
5600
5601 * regcache.c (new_register_cache): Use new.
5602 (free_register_cache): Use delete.
5603 (register_data): Use const.
5604 (supply_register): Move body inside regcache.
5605 (regcache::raw_supply): New override function.
5606 (collect_register): Move body inside regcache.
5607 (regcache::raw_collect): New override function.
5608 (regcache::get_register_status): New override function.
5609 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5610
40591844
TT
56112018-06-09 Tom Tromey <tom@tromey.com>
5612
5613 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5614 declare queue.
5615 (event_queue): Use std::queue.
5616 (gdb_event_xfree): Remove.
5617 (initialize_event_loop, process_event, wait_for_event): Update.
5618
6341380d
SC
56192018-06-08 Stan Cox <scox@redhat.com>
5620
5621 * win32-low.c (win32_create_inferior): last_ptid and last_status
5622 moved to client_state.
5623
03349c93
PA
56242018-06-08 Pedro Alves <palves@redhat.com>
5625
5626 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5627 common/common-exceptions.o, common/common-utils.o,
5628 common/errors.o, common/print-utils.o and utils.o.
5629 * gdbreplay.c: Include "common-defs.h" instead of the two
5630 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5631 string.h or alloca.h.
5632 (perror_with_name): Delete.
5633 (remote_open): Use xstrdup instead of strdup.
5634 (main): Rename to ...
5635 (captured_main): ... this.
5636 (main): New.
5637
8dcc53b3
TT
56382018-06-08 Tom Tromey <tom@tromey.com>
5639
5640 * linux-low.c (linux_low_read_btrace): Update.
5641
c12a5089
SC
56422018-06-04 Stan Cox <scox@redhat.com>
5643
5644 * server.h (struct client_state): New.
5645 * server.c (cont_thread, general_thread, multi_process)
5646 (report_fork_events, report_vfork_events, report_exec_events)
5647 (report_thread_events, swbreak_feature, hwbreak_feature)
5648 (vCont_supported, disable_randomization, pass_signals)
5649 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5650 Moved to client_state.
5651 * remote-utils.c (remote_debug, noack_mode)
5652 (transport_is_reliable): Moved to client_state.
5653 * tracepoint.c (current_traceframe): Moved to client_state.
5654
5655 Update all callers.
5656 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5657 linux-low.c, remote-utils.h, target.c: Use client_state.
5658
122394f1
AH
56592018-05-31 Alan Hayward <alan.hayward@arm.com>
5660
5661 * configure.srv: Add new c/h file.
5662
95228a0d
AH
56632018-05-31 Alan Hayward <alan.hayward@arm.com>
5664
5665 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5666 null VQ.
5667
d8dab6c3
MR
56682018-05-25 Maciej W. Rozycki <macro@mips.com>
5669
5670 * gdb.arch/mips-fpregset-core.exp: New test.
5671 * gdb.arch/mips-fpregset-core.c: New test source.
5672
81e25b7c
EK
56732018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5674
5675 PR server/23198
5676 * hostio.c (require_int): Do not report overflow for integers
5677 between 0xfffffff and 0x7fffffff.
5678
7e947ad3
MR
56792018-05-22 Maciej W. Rozycki <macro@mips.com>
5680
5681 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5682 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5683 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5684 functions.
5685 (the_low_target): Wire them.
5686
1d75a658
PFC
56872018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5688
5689 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5690 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5691 mode. Call collect_register_by_name with vscr using
5692 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5693 (ppc_store_vrregset): Add and set vscr_offset variable as in
5694 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5695 vscr_offset.
5696
d078308a
PFC
56972018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5698
5699 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5700 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5701 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5702
7273b5fc
PFC
57032018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5704
5705 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5706 (ppc_store_vsxregset): Likewise.
5707 (ppc_fill_vrregset): Likewise.
5708 (ppc_store_vrregset): Likewise.
5709 (ppc_fill_evrregset): Likewise.
5710 (ppc_store_evrregset): Likewise.
5711 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5712 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5713 needed.
5714
2e077f5e
PFC
57152018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5716
5717 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5718 wordsize of the inferior. Call ppc_linux_target_wordsize.
5719
bd64614e
PFC
57202018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5721
5722 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5723 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5724 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5725 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5726 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5727 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5728 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5729 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5730 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5731 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5732 (tdesc_powerpc_e500l): Remove.
5733 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5734 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5735 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5736 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5737 linux-ppc-tdesc.h.
5738 (ppc_arch_setup): Remove target description matching code. Fill a
5739 ppc_linux_features struct and call ppc_linux_match_description
5740 with it.
5741
75d74cca
MR
57422018-05-22 Maciej W. Rozycki <macro@mips.com>
5743
5744 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5745 width of the requested register exceeds the width of the
5746 `ptrace' data type.
5747 (mips_cannot_store_register): Likewise.
5748
e4439e43
MR
57492018-05-21 Maciej W. Rozycki <macro@mips.com>
5750
5751 * linux-mips-low.c (mips_fetch_register): New function. Update
5752 preceding comment.
5753 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5754 (the_low_target): Wire `mips_fetch_register'.
5755
55271bf9
JB
57562018-05-10 Joel Brobecker <brobecker@adacore.com>
5757
5758 * lynx-i386-low.c (LYNXOS_178): New macro.
5759 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5760 the layout on LynxOS-178.
5761 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5762 handle floating point registers that are not supported by
5763 LynxOS-178.
5764
1a34f210
TT
57652018-05-10 Tom Tromey <tom@tromey.com>
5766
5767 * configure: Rebuild.
5768
190852c8
JB
57692018-05-10 Joel Brobecker <brobecker@adacore.com>
5770
5771 PR server/23158:
5772 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5773 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5774 Use it to set the expedite_regs field in the given tdesc.
5775 * x86-tdesc.h: New file.
5776 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5777 Adjust following the addition of the new expedite_regs parameter
5778 to init_target_desc.
5779 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5780 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5781 (i386_linux_read_description, amd64_linux_read_description):
5782 Adjust following the addition of the new expedite_regs parameter
5783 to init_target_desc.
5784 * lynx-i386-low.c: #include "x86-tdesc.h".
5785 (lynx_i386_arch_setup): Adjust following the addition of the new
5786 expedite_regs parameter to init_target_desc.
5787 * nto-x86-low.c: #include "x86-tdesc.h".
5788 (nto_x86_arch_setup): Adjust following the addition of the new
5789 expedite_regs parameter to init_target_desc.
5790 * win32-i386-low.c: #include "x86-tdesc.h".
5791 (i386_arch_setup): Adjust following the addition of the new
5792 expedite_regs parameter to init_target_desc.
5793
7dbac825
JB
57942018-05-10 Joel Brobecker <brobecker@adacore.com>
5795
5796 PR server/23158:
5797 * win32-low.c (win32_create_inferior): Add call to my_wait
5798 setting last_status global.
5799
906994d9
JB
58002018-05-10 Joel Brobecker <brobecker@adacore.com>
5801
5802 PR server/23158:
5803 * win32-low.c (create_process): Only call gdb_tilde_expand if
5804 inferior_cwd is not NULL.
5805
8ee22052
AB
58062018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5807
5808 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5809 registers to the cache if their values have changed.
5810 (i387_xsave_to_cache): Provide default values for x87 control
5811 registers when these features are available, but disabled.
5812 * regcache.c (supply_register_by_name_zeroed): New function.
5813 * regcache.h (supply_register_by_name_zeroed): Declare new
5814 function.
5815
aff689d3
TT
58162018-05-07 Tom Tromey <tom@tromey.com>
5817
5818 * configure: Rebuild.
5819
85e26832
TT
58202018-05-04 Tom Tromey <tom@tromey.com>
5821
5822 * configure: Rebuild.
5823
a3b60e45
JK
58242018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5825 Pedro Alves <palves@redhat.com>
5826
5827 * linux-aarch64-low.c (aarch64_stopped_data_address):
5828 Likewise.
5829
632e107b
TT
58302018-04-27 Tom Tromey <tom@tromey.com>
5831
5832 * configure: Rebuild.
5833
458412c3
TT
58342018-04-23 Tom Tromey <tom@tromey.com>
5835
5836 * configure: Rebuild.
5837
f31c089e
SM
58382018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5839
5840 * Makefile.in (depcomp): Add "..".
5841 (all_deps_files): New and use it.
5842
b319b098
AH
58432018-04-18 Alan Hayward <alan.hayward@arm.com>
5844
5845 * configure.srv (aarch64*-*-linux*): Don't include xml.
5846 (i[34567]86-*-cygwin*): Likewise.
5847 (i[34567]86-*-linux*): Likewise.
5848 (i[34567]86-*-lynxos*): Likewise.
5849 (i[34567]86-*-mingw32ce*): Likewise.
5850 (i[34567]86-*-mingw*): Likewise.
5851 (i[34567]86-*-nto*): Likewise.
5852 (tic6x-*-uclinux): Likewise.
5853 (x86_64-*-linux*): Likewise.
5854 (x86_64-*-mingw*): Likewise.
5855 (x86_64-*-cygwin*): Likewise.
5856
3b74854b
AH
58572018-04-18 Alan Hayward <alan.hayward@arm.com>
5858
5859 * tdesc.c: Remove xml parameter.
5860
e98577a9
AH
58612018-04-18 Alan Hayward <alan.hayward@arm.com>
5862
5863 * server.c (get_features_xml): Remove cast.
5864 * tdesc.c (void target_desc::accept): Fill in function.
5865 (tdesc_get_features_xml): Remove old xml creation.
5866 (print_xml_feature::visit_pre): Add xml vistor.
5867 * tdesc.h (struct target_desc): Make xmltarget mutable.
5868 (tdesc_get_features_xml): Remove declaration.
5869
d278f585
AH
58702018-04-18 Alan Hayward <alan.hayward@arm.com>
5871
5872 * tdesc.c (tdesc_architecture_name): Add new function.
5873 (tdesc_osabi_name): Likewise.
5874 (tdesc_get_features_xml): Use new functions.
5875
eee8a18d
AH
58762018-04-18 Alan Hayward <alan.hayward@arm.com>
5877
5878 * tdesc.c (tdesc_create_flags): Remove.
5879 (tdesc_add_flag): Likewise.
5880 (tdesc_named_type): Likewise.
5881 (tdesc_create_union): Likewise.
5882 (tdesc_create_struct): Likewise.
5883 (tdesc_create_vector): Likewise.
5884 (tdesc_add_bitfield): Likewise.
5885 (tdesc_add_field): Likewise.
5886 (tdesc_set_struct_size): Likewise.
5887
82ec9bc7
AH
58882018-04-18 Alan Hayward <alan.hayward@arm.com>
5889
5890 * tdesc.c (~target_desc): Remove implictly deleted items.
5891 (init_target_desc): Iterate all features.
5892 (tdesc_get_features_xml): Use vector.
5893 (tdesc_create_feature): Create feature.
5894 * tdesc.h (tdesc_feature) Remove
5895 (target_desc): Add features.
5896
ea3e7d71
AH
58972018-04-18 Alan Hayward <alan.hayward@arm.com>
5898
5899 * Makefile.in: Add common/tdesc.c
5900 * tdesc.c (init_target_desc): init all reg_defs from register
5901 vector.
5902 (tdesc_create_reg): Create tdesc_reg.
5903 * tdesc.h (tdesc_feature): Add register vector.
5904
17d08cd4
SM
59052018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5906
5907 * tdesc.h (struct target_desc) <features>: Change type to
5908 std::vector<std::string>.
5909 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5910 changes.
5911 (tdesc_get_features_xml): Likewise.
5912 (tdesc_create_feature): Likewise.
5913
5cd3e386
AH
59142018-03-26 Alan Hayward <alan.hayward@arm.com>
5915
5916 * regcache.c (find_register_by_number): Return a ref.
5917 (find_regno): Use references.
5918 (register_size): Likewise.
5919 (register_data): Likewise.
5920 * tdesc.c (target_desc::~target_desc): Remove free calls.
5921 (target_desc::operator==): Use std::vector compare.
5922 (init_target_desc): Use reference.
5923 (tdesc_create_reg): Use reg constructors.
5924 * tdesc.h (struct target_desc): Replace pointer with object.
5925
dff7492c
AH
59262018-03-23 Alan Hayward <alan.hayward@arm.com>
5927
5928 * regcache.c (find_register_by_number): Make static.
5929 (find_regno): Use find_register_by_number
5930 * regcache.h (struct reg): Remove declaration.
5931
d80e5242
AH
59322018-03-23 Alan Hayward <alan.hayward@arm.com>
5933
5934 * tdesc.c (target_desc::~target_desc): Move to here.
5935 (target_desc::operator==): Likewise.
5936 * tdesc.h (target_desc::~target_desc): Move from here.
5937 (target_desc::operator==): Likewise.
5938
f69c5afb
AA
59392018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5940
5941 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5942
ce29f843
AA
59432018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5944
5945 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5946 S390_TDESC_GS.
5947 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5948 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5949 and init_registers_s390_gs_linux64.
5950
c49bd90b
AA
59512018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5952
5953 * linux-s390-low.c (s390_fill_gs): Remove function.
5954 (s390_fill_gsbc): Remove function.
5955 (s390_regsets): Set fill functions for the guarded storage regsets
5956 to NULL.
5957
7edb9bd3
AA
59582018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5959
5960 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5961 the word size. Add comment.
5962 (s390_get_wordsize): New function.
5963 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5964 pswm with it. Instead, use s390_get_wordsize to determine the
5965 word size first and derive the correct tdesc from that directly.
5966
39be3c7e
SM
59672018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5968
5969 * Makefile.in: Include silent-rules.mk.
5970 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5971 (COMPILE): Add ECHO_CXX.
5972 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5973 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5974 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5975 (version-generated.c): Add ECHO_GEN.
5976 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5977 (IPAGENT_COMPILE): Add ECHO_CXX.
5978 (%-generated.c): Add ECHO_REGDAT.
5979
3ae9ce5d
TT
59802018-03-14 Tom Tromey <tom@tromey.com>
5981
5982 PR cli/14977:
5983 * ax.c (ax_printf): Special case for NULL.
5984
e6a58aa8
SM
59852018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5986
5987 * linux-low.c (linux_qxfer_libraries_svr4): Use
5988 xml_escape_text_append.
5989
f6e8a41e
SM
59902018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5991
5992 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5993
b9671caf
SM
59942018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5995
5996 * server.c (handle_general_set): Remove unnecessary xstrdup.
5997
e80aaf61
SM
59982018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5999
6000 * server.c (parse_debug_format_options): Adjust to
6001 delim_string_to_char_ptr_vec changes.
6002 * thread-db.c (thread_db_load_search): Adjust to
6003 dirnames_to_char_ptr_vec changes.
6004
b1223e78
MM
60052018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6006
6007 * target.h (target_enable_btrace, target_disable_btrace)
6008 (target_read_btrace, target_read_btrace_conf): Turn macro into
6009 inline function. Throw error if target method is not defined.
6010 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6011 check for btrace target method. Be prepared to handle exceptions
6012 from btrace target methods.
6013
81561546
SDJ
60142018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6015
6016 * server.c (captured_main): Change order of error message printed
6017 when the current working directory cannot be found.
6018
25e3c82c
SDJ
60192018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6020
6021 * server.c: Include "filenames.h" and "pathstuff.h".
6022 (program_name): Delete variable.
6023 (program_path): New anonymous class.
6024 (get_exec_wrapper): Use "program_path" instead of
6025 "program_name".
6026 (handle_v_run): Likewise.
6027 (captured_main): Likewise.
6028 (process_serial_event): Likewise.
6029
b4987c95
SDJ
60302018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6031
6032 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6033 (OBJS): Add "pathstuff.o".
6034 * server.c (current_directory): New global variable.
6035 (captured_main): Initialize "current_directory".
6036
f46cd62a
AH
60372018-02-26 Alan Hayward <alan.hayward@arm.com>
6038
6039 * tdesc.c: Use common/tdesc.h.
6040 * tdesc.h: Likewise.
6041
a543c5ca
AH
60422018-02-20 Alan Hayward <alan.hayward@arm.com>
6043 Simon Marchi <simon.marchi@ericsson.com>
6044
6045 * Makefile.in: Switch order of make rules.
6046
b5884fa7
AH
60472018-02-19 Alan Hayward <alan.hayward@arm.com>
6048
6049 * Makefile.in: Add common directory in build.
6050 * configure.ac: Add common reference.
6051 * configure: Regenerate.
6052
de6242d3
MM
60532018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6054
6055 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6056 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6057 * spu-low.c (spu_target_ops): Likewise.
6058 * win32-low.c (win32_target_ops): Likewise.
6059 * server.c (supported_btrace_packets): Report packets unconditionally.
6060 * target.h (target_ops) <supports_btrace>: Remove.
6061 (target_supports_btrace): Remove.
6062
9ee23a85
MM
60632018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6064
6065 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6066 (handle_btrace_disable): Change return type to void. Use exceptions
6067 to report errors.
6068 (handle_btrace_general_set): Catch exception and copy message to
6069 return message.
6070
8ce47547
TT
60712018-02-08 Tom Tromey <tom@tromey.com>
6072
6073 * linux-low.c (install_software_single_step_breakpoints): Use
6074 make_scoped_restore.
6075 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6076 (do_restore_current_thread_cleanup): Remove.
6077 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6078 declare.
6079
45dd3607
TT
60802018-02-08 Tom Tromey <tom@tromey.com>
6081
6082 * mem-break.c (set_raw_breakpoint_at): Use
6083 gdb::unique_xmalloc_ptr.
6084
e671cd59
PA
60852018-01-30 Pedro Alves <palves@redhat.com>
6086
6087 PR gdb/13211
6088 * target.c (target_terminal::terminal_state): Rename to ...
6089 (target_terminal::m_terminal_state): ... this.
6090
a0aad537
JC
60912018-01-19 James Clarke <jrtc27@jrtc27.com>
6092
6093 * linux-low.c (handle_extended_wait): Surround call to
6094 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6095
4d9b86e1
SM
60962018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6097
6098 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6099 linux_ptrace_attach_fail_reason_string now returning an
6100 std::string.
6101 (linux_attach): Likewise.
6102 * thread-db.c (attach_thread): Likewise.
6103
f517c180
EA
61042018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6105
6106 PR gdb/21559
6107 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6108 checking for fs_base/gs_base fields in struct user_regs_struct.
6109 * configure: Regenerate.
6110
9a70f35c
YQ
61112018-01-16 Yao Qi <yao.qi@linaro.org>
6112
6113 PR gdb/18749
6114 * linux-low.c (fetch_register): Call supply_register instead of
6115 error.
6116
605fd3c6
YQ
61172018-01-08 Yao Qi <yao.qi@linaro.org>
6118 Simon Marchi <simon.marchi@ericsson.com>
6119
6120 * Makefile.in (OBS): Remove selftest.o.
6121 * configure.ac: Set srv_selftest_objs if $development is true.
6122 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6123 * configure: Re-generated.
6124 * server.c (captured_main): Wrap variable selftest_filter with
6125 GDB_SELF_TEST.
6126
2cc05030
SM
61272018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6128
6129 * server.c (parse_debug_format_options): Return std::string.
6130 (handle_monitor_command, captured_main): Adjust.
6131
e379cee6
PA
61322018-01-05 Pedro Alves <palves@redhat.com>
6133
6134 PR gdb/18653
6135 * server.c (captured_main): Pass quiet=false to
6136 save_original_signals_state.
6137
82e1e79a
JB
61382018-01-01 Joel Brobecker <brobecker@adacore.com>
6139
6140 * gdbreplay.c (gdbreplay_version): Update copyright year in
6141 version message.
6142 * server.c (gdbserver_version): Likewise.
6143
8e481c3b
TT
61442017-12-08 Tom Tromey <tom@tromey.com>
6145
6146 * ax.c (ax_printf): Update.
6147
a8806230
YQ
61482017-12-07 Yao Qi <yao.qi@linaro.org>
6149
6150 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6151 aarch64_linux_read_description.
6152 * linux-amd64-ipa.c (idx2mask): New array.
6153 (get_ipa_tdesc): Move idx2mask out.
6154 (initialize_low_tracepoint): Initialize target descriptions.
6155 * linux-i386-ipa.c (idx2mask): New array.
6156 (get_ipa_tdesc): Move idx2mask out.
6157 (initialize_low_tracepoint): Initialize target descriptions.
6158
d4a0e8b5
SM
61592017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6160
6161 * tdesc.c (struct tdesc_type): Change return type.
6162 (tdesc_add_flag): Change parameter type.
6163 (tdesc_add_bitfield): Likewise.
6164 (tdesc_add_field): Likewise.
6165 (tdesc_set_struct_size): Likewise.
6166
798a7429
SM
61672017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6168
6169 * regcache.c (registers_to_string): Remove unused variable.
6170
c0e15c9b
SM
61712017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6172
6173 * inferiors.c (for_each_inferior_with_data): Remove.
6174 * inferiors.h (for_each_inferior_with_data): Remove.
6175 * server.c (handle_qxfer_threads_worker): Change parameter type.
6176 (handle_qxfer_threads_proper): Use for_each_thread.
6177
f0045347
SM
61782017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6179
6180 * inferiors.c (for_each_inferior): Remove.
6181 (clear_inferiors): Use for_each_thread.
6182 * inferiors.h (for_each_inferior): Remove.
6183 * linux-low.c (linux_wait_for_event_filtered): Use
6184 for_each_thread.
6185 (linux_stabilize_threads): Likewise.
6186 * regcache.c (regcache_release): Likewise.
6187 * server.c (gdb_wants_all_threads_stopped): Likewise.
6188 (clear_pending_status_callback): Remove.
6189 (handle_status): Use for_each_thread.
6190 (captured_main): Likewise.
6191 * win32-low.c (child_init_thread_list): Likewise.
6192 (win32_clear_inferiors): Likewise.
6193 (fake_breakpoint_event): Likewise.
6194
9521758b
SM
61952017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6196
6197 * inferiors.h (find_inferior): Remove.
6198 * inferiors.c (find_inferior): Remove.
6199
8f86d7aa
SM
62002017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6201
6202 * linux-low.c (resume_status_pending_p): Update comment.
6203 (need_step_over_p): Update comment.
6204
e2b44075
SM
62052017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6206
6207 * linux-low.c (proceed_one_lwp): Return void, change parameter
6208 type.
6209 (unsuspend_and_proceed_one_lwp): Likewise.
6210 (proceed_all_lwps): Use for_each_thread.
6211 (unstop_all_lwps): Likewise.
6212
c80825ff
SM
62132017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6214
6215 * linux-low.c (linux_resume_one_thread): Return void, take
6216 parameter directly.
6217 (linux_resume): Use for_each_thread.
6218
df3e4dbe
SM
62192017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6220
6221 * linux-low.c (send_sigstop_callback): Return void, change
6222 parameter type. Rename to...
6223 (send_sigstop): ... this.
6224 (suspend_and_send_sigstop_callback): Return void, change parameter
6225 type. Rename to...
6226 (suspend_and_send_sigstop): ... this.
6227 (stop_all_lwps): Use for_each_thread.
6228
5a6b0a41
SM
62292017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6230
6231 * linux-low.c (lwp_running): Return bool, remove unused
6232 argument.
6233 (linux_stabilize_threads): Use find_thread.
6234
39a64da5
SM
62352017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6236
6237 * linux-low.c (select_singlestep_lwp_callback): Remove.
6238 (count_events_callback): Remove.
6239 (select_event_lwp_callback): Remove.
6240 (select_event_lwp): Use find_thread/for_each_thread.
6241
a1385b7b
SM
62422017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6243
6244 * linux-low.c (not_stopped_callback): Return bool, take filter
6245 argument directly.
6246 (linux_wait_for_event_filtered): Use find_thread.
6247 (linux_wait_1): Likewise.
6248
454296a2
SM
62492017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6250
6251 * linux-low.c (same_lwp): Remove.
6252 (find_lwp_pid): Use find_thread.
6253
6b2a85da
SM
62542017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6255
6256 * linux-low.c (delete_lwp_callback): Remove.
6257 (linux_mourn): Use for_each_thread.
6258
798a38e8
SM
62592017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6260
6261 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6262 args parameter, don't check for pid.
6263 (linux_detach): Use for_each_thread.
6264
e4eb0dec
SM
62652017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6266
6267 * linux-low.c (struct counter): Remove.
6268 (second_thread_of_pid_p): Remove.
6269 (last_thread_of_process_p): Use find_thread.
6270
83e1b6c1
SM
62712017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6272
6273 * inferiors.c (find_inferior_in_random): Remove.
6274 * inferiors.h (find_inferior_in_random): Remove.
6275 * linux-low.c (status_pending_p_callback): Return bool, accept
6276 parameter ptid directly.
6277 (linux_wait_for_event_filtered): Use find_thread_in_random.
6278 (linux_wait_1): Likewise.
6279
8dc7b443
SM
62802017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6281
6282 * inferiors.c (find_inferior_id): Remove.
6283 (find_thread_ptid): Move implemention from find_inferior_id to
6284 here.
6285 * inferiors.h (find_inferior_id): Remove.
6286 * server.c (handle_status): Use find_thread_ptid.
6287 (process_serial_event): Likewise.
6288 * thread-db.c (find_one_thread): Likewise.
6289 (thread_db_thread_handle): Likewise.
6290 * win32-low.c (thread_rec): Likewise.
6291 (child_delete_thread): Likewise.
6292 (win32_thread_alive): Likewise.
6293 (get_child_debug_event): Likewise.
6294
da25033c
SM
62952017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6296
6297 * linux-mips-low.c (update_watch_registers_callback): Return
6298 void, remove pid_p parameter, don't check for pid.
6299 (mips_insert_point, mips_remove_point): Use for_each_thread.
6300
c91bb56b
SM
63012017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6302
6303 * lynx.low (lynx_delete_thread_callback): Remove.
6304 (lynx_mourn): Use for_each_thread.
6305
634a3254
SM
63062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6307
6308 * regcache.c (regcache_invalidate_one): Remove.
6309 (regcache_invalidate_pid): use for_each_thread.
6310
41272101
TT
63112017-11-26 Tom Tromey <tom@tromey.com>
6312
6313 * linux-low.c (linux_create_inferior): Update.
6314
f5291a6f
UW
63152017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6316
6317 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6318
6654d750
AH
63192017-11-24 Alan Hayward <alan.hayward@arm.com>
6320
6321 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6322 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6323 * linux-aarch64-tdesc-selftest.c: New file.
6324 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6325
63262017-11-24 Alan Hayward <alan.hayward@arm.com>
6327
6328 * configure.srv: Add new file.
6329 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6330 * linux-aarch64-tdesc-selftest.c: New file.
6331 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6332
49bdb7ee
AH
63332017-11-24 Alan Hayward <alan.hayward@arm.com>
6334
6335 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6336 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6337 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6338
d6d7ce56
AH
63392017-11-24 Alan Hayward <alan.hayward@arm.com>
6340
6341 * configure.srv: Add new files.
6342 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6343 aarch64_linux_read_description.
6344 * linux-aarch64-low.c (aarch64_linux_read_description):
6345 Merge with aarch64_arch_setup.
6346 (aarch64_arch_setup): Call aarch64_linux_read_description.
6347 * linux-aarch64-tdesc.c: New file.
6348 * linux-aarch64-tdesc.h: New file.
6349
506fe5f4
YQ
63502017-11-24 Yao Qi <yao.qi@linaro.org>
6351
6352 * configure.srv: Set $srv_regobj for tic6x-linux.
6353 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6354 (tic6x_read_description): Move some code to tic6x_arch_setup.
6355 (tic6x_tdesc_test): New function.
6356 (initialize_low_arch): Call selftests::register_test.
6357
29f9a567
YQ
63582017-11-22 Yao Qi <yao.qi@linaro.org>
6359
6360 * remote-utils.c (prepare_resume_reply): Use memcpy.
6361
578290ec
SM
63622017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6363
6364 * linux-low.c (kill_one_lwp_callback): Return void, take
6365 argument directly, don't filter on pid.
6366 (linux_kill): Use for_each_thread.
6367
eca55aec
SM
63682017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6369
6370 * linux-low.c (need_step_over_p): Return bool, remove dummy
6371 argument.
6372 (linux_resume, proceed_all_lwps): Use find_thread.
6373
25c28b4d
SM
63742017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6375
6376 * linux-low.c (resume_status_pending_p): Return bool, remove
6377 flag_p argument.
6378 (linux_resume): Use find_thread.
6379
5fdda392
SM
63802017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6381
6382 * linux-low.c (struct thread_resume_array): Remove.
6383 (linux_set_resume_request): Return void, take arguments
6384 directly.
6385 (linux_resume): Use for_each_thread.
6386
fcb056a5
SM
63872017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6388
6389 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6390 return bool, remove data argument.
6391 (linux_stabilize_threads): Use find_thread.
6392
139720c5
SM
63932017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6394
6395 * linux-low.c (unsuspend_one_lwp): Remove.
6396 (unsuspend_all_lwps): Use for_each_thread, inline code from
6397 unsuspend_one_lwp.
6398
6d1e5673
SM
63992017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6400
6401 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6402 * linux-low.c (struct iterate_over_lwps_args): Remove.
6403 (iterate_over_lwps_filter): Remove.
6404 (iterate_over_lwps): Use find_thread.
6405
bbf550d5
SM
64062017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6407
6408 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6409 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6410 code from reset_lwp_ptrace_options_callback.
6411
00192f77
SM
64122017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6413
6414 * linux-arm-low.c (struct update_registers_data): Remove.
6415 (update_registers_callback): Return void, take arguments
6416 directly, don't check thread's pid.
6417 (arm_insert_point, arm_remove_point): Use for_each_thread.
6418
2bee2b6c
SM
64192017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6420
6421 * win32-low.c (continue_one_thread): Return void, take argument
6422 directly.
6423 (child_continue): Use for_each_thread.
6424
0b360f19
SM
64252017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6426
6427 * win32-i386-low.c (update_debug_registers_callback): Rename
6428 to ...
6429 (update_debug_registers): ... this, return void, remove pid_p arg.
6430 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6431
f27866ba
SM
64322017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6433
6434 * inferiors.h (struct process_info): Add constructor, initialize
6435 fields..
6436 <syscalls_to_catch>: Change type to std::vector<int>.
6437 * inferiors.c (add_process): Allocate process_info with new.
6438 (remove_process): Free process_info with delete.
6439 * linux-low.c (handle_extended_wait): Adjust.
6440 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6441 * server.c (handle_general_set): Adjust.
6442
e849ea89
PA
64432017-11-16 Pedro Alves <palves@redhat.com>
6444
6445 * remote-utils.c (remote_close): Block SIGIO signals instead of
6446 uninstalling the SIGIO handler.
6447
1d0aa65c
AH
64482017-11-16 Alan Hayward <alan.hayward@arm.com>
6449
6450 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6451
3491a34c
YQ
64522017-11-16 Yao Qi <yao.qi@linaro.org>
6453
6454 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6455 (tic6x_store_gregset): Likewise.
6456 (tic6x_usrregs_info): Move it up.
6457
a602f924
AH
64582017-11-15 Alan Hayward <alan.hayward@arm.com>
6459
6460 * Makefile.in: Update arch rules.
6461 * configure.srv: Explicitly mark arch/ files.
6462
5616b6c3
AS
64632017-11-13 Andreas Schwab <schwab@suse.de>
6464
6465 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6466 function.
6467 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6468
d1928160
PA
64692017-11-06 Pedro Alves <palves@redhat.com>
6470
6471 * config.in, configure: Regenerate.
6472
bac608e7
SM
64732017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6474
6475 * target.c (struct thread_search): Remove.
6476 (thread_search_callback): Remove.
6477 (prepare_to_access_memory): Use for_each_thread instead of
6478 find_inferior. Inline code from thread_search_callback.
6479
eaddb425
SM
64802017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6481
6482 * server.c (struct visit_actioned_threads_data): Remove.
6483 (visit_actioned_threads): Change prototype to take arguments
6484 directly.
6485 (resume): Use find_thread instead of find_inferior.
6486
99078d34
SM
64872017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6488
6489 * server.c (queue_stop_reply_callback): Change prototype, return
6490 void.
6491 (find_status_pending_thread_callback): Remove.
6492 (handle_status): Replace find_inferior with find_thread and
6493 for_each_thread.
6494
cc628f3d
AH
64952017-10-25 Alan Hayward <alan.hayward@arm.com>
6496
6497 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6498 with REGNO.
6499 (aarch64_store_gregset): Likewise.
6500 (aarch64_fill_fpregset): Likewise.
6501 (aarch64_store_fpregset): Likewise.
6502
4d3bb80e
SM
65032017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6504
6505 * gdbthread.h (find_thread, for_each_thread): New functions.
6506 * inferiors.c (thread_of_pid): Remove.
6507 (find_any_thread_of_pid): Use find_thread.
6508 * linux-low.c (num_lwps): Use for_each_thread.
6509
7a7cdfa0
YQ
65102017-10-17 Yao Qi <yao.qi@linaro.org>
6511
6512 * Makefile.in: Remove one rule.
6513 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6514
e675d170
YQ
65152017-10-17 Yao Qi <yao.qi@linaro.org>
6516
6517 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6518 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6519
7eb4e0f9
YQ
65202017-10-17 Yao Qi <yao.qi@linaro.org>
6521
6522 * configure.srv: Rename arm.o with arch/arm.o.
6523
60d6cfc9
YQ
65242017-10-17 Yao Qi <yao.qi@linaro.org>
6525
6526 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6527 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6528 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6529 (arch-i386.o, arch-amd64.o): Remove rules.
6530 (arch/%.o): New rule.
6531 Update POSTCOMPILE and COMPILE.pre.
6532 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6533 * configure: Re-generated.
6534 * configure.srv: Replace arch-i386.o with arch/i386.o.
6535 Replace arch-amd64.o with arch/amd64.o.
6536
5bfda255
YQ
65372017-10-16 Yao Qi <yao.qi@linaro.org>
6538
6539 * configure: Regenerated.
6540
9c80ecd6
SM
65412017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6542
6543 * inferiors.h: (struct inferior_list): Remove.
6544 (struct inferior_list_entry); Remove.
6545 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6546 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6547 get_first_inferior): Remove.
6548 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6549 find_inferior_id, find_inferior_in_random): Change signature.
6550 * inferiors.c (all_threads): Change type to
6551 std::list<thread_info *>.
6552 (get_thread): Remove macro.
6553 (find_inferior, find_inferior_id): Change signature, implement
6554 using find_thread.
6555 (find_inferior_in_random): Change signature, implement using
6556 find_thread_in_random.
6557 (for_each_inferior, for_each_inferior_with_data): Change
6558 signature, implement using for_each_thread.
6559 (add_inferior_to_list, remove_inferior): Remove.
6560 (add_thread, get_first_thread, thread_of_pid,
6561 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6562 (get_first_inferior, one_inferior_p, clear_inferior_list):
6563 Remove.
6564 (clear_inferiors, get_thread_process): Update.
6565 * gdbthread.h: Include <list>.
6566 (struct thread_info) <entry>: Remove field.
6567 <id>: New field.
6568 (all_threads): Change type to std::list<thread_info *>.
6569 (get_first_inferior): Add doc.
6570 (find_thread, for_each_thread, find_thread_in_random): New
6571 functions.
6572 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6573 * linux-arm-low.c (update_registers_callback): Update.
6574 * linux-low.c (second_thread_of_pid_p): Update.
6575 (kill_one_lwp_callback, linux_detach_lwp_callback,
6576 delete_lwp_callback, status_pending_p_callback, same_lwp,
6577 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6578 iterate_over_lwps, not_stopped_callback,
6579 resume_stopped_resumed_lwps, count_events_callback,
6580 select_singlestep_lwp_callback, select_event_lwp_callback,
6581 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6582 suspend_and_send_sigstop_callback, wait_for_sigstop,
6583 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6584 lwp_running, linux_set_resume_request, resume_status_pending_p,
6585 need_step_over_p, start_step_over, linux_resume_one_thread,
6586 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6587 reset_lwp_ptrace_options_callback): Update.
6588 * linux-mips-low.c (update_watch_registers_callback): Update.
6589 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6590 Update.
6591 (free_register_cache_thread_one): Remove.
6592 (regcache_release): Update.
6593 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6594 handle_qxfer_threads_worker): Update.
6595 (handle_query): Update, use list iterator.
6596 (visit_actioned_threads, handle_pending_status,
6597 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6598 clear_pending_status_callback, set_pending_status_callback,
6599 find_status_pending_thread_callback, handle_status,
6600 process_serial_event): Update.
6601 * target.c (thread_search_callback): Update.
6602 * thread-db.c (thread_db_get_tls_address): Update.
6603 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6604 Update.
6605 * win32-i386-low.c (update_debug_registers_callback): Update.
6606 * win32-low.c (delete_thread_info, child_delete_thread,
6607 continue_one_thread, suspend_one_thread,
6608 get_child_debug_event): Adjust.
6609
9179355e
SM
66102017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6611
6612 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6613 * inferiors.h: Include <list>.
6614 (struct process_info) <entry>: Remove field.
6615 <pid>: New field.
6616 (pid_of): Change macro to function.
6617 (ptid_of, lwpid_of): Remove macro.
6618 (all_processes): Change type to std::list<process_info *>.
6619 (ALL_PROCESSES): Remove macro.
6620 (for_each_process, find_process): New function.
6621 * inferiors.c (all_processes): Change type to
6622 std::list<process_info *>.
6623 (find_thread_process): Adjust.
6624 (add_process): Likewise.
6625 (remove_process): Likewise.
6626 (find_process_pid): Likewise.
6627 (get_first_process): Likewise.
6628 (started_inferior_callback): Remove.
6629 (have_started_inferiors_p): Adjust.
6630 (attached_inferior_callback): Remove.
6631 (have_attached_inferiors_p): Adjust.
6632 * linux-low.c (check_zombie_leaders): Likewise.
6633 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6634 (x86_linux_update_xmltarget): Adjust.
6635 * server.c (handle_query): Likewise.
6636 (gdb_reattached_process): Remove.
6637 (handle_status): Adjust.
6638 (kill_inferior_callback): Likewise.
6639 (detach_or_kill_inferior): Remove.
6640 (print_started_pid): Likewise.
6641 (print_attached_pid): Likewise.
6642 (detach_or_kill_for_exit): Update.
6643 (process_serial_event): Likewise.
6644 * linux-arm-low.c (arm_new_fork): Likewise.
6645
c9cb8905
SM
66462017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6647
6648 * dll.h: Include <list>.
6649 (struct dll_info): Add constructor.
6650 <entry>: Remove field.
6651 (all_dlls): Change type to std::list<dll_info>.
6652 * dll.c: Include <algorithm>.
6653 (get_dll): Remove macro.
6654 (all_dlls): Change type to std::list<dll_info *>.
6655 (free_one_dll): Remove.
6656 (match_dll): Likewise.
6657 (loaded_dll): Adjust.
6658 (unloaded_dll): Adjust to all_dlls type change, use
6659 std::find_if. Inline code from match_dll.
6660 (clear_dlls): Adjust to all_dlls type change.
6661 * server.c (emit_dll_description): Remove.
6662 (handle_qxfer_libraries): Adjust to all_dlls type change,
6663 integrate emit_dll_description's functionality.
6664
04ec7890
SM
66652017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6666
6667 * linux-low.h (struct linux_target_ops) <delete_process>: New
6668 field.
6669 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6670 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6671 (struct linux_target_ops): Add delete_process callback.
6672 * linux-arm-low.c (arm_delete_process): New.
6673 (struct linux_target_ops): Add delete_process callback.
6674 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6675 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6676 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6677 * linux-mips-low.c (mips_linux_delete_process): New.
6678 (struct linux_target_ops): Add delete_process callback.
6679 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6680 * linux-s390-low.c (struct linux_target_ops): Likewise.
6681 * linux-sh-low.c (struct linux_target_ops): Likewise.
6682 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6683 * linux-tile-low.c (struct linux_target_ops): Likewise.
6684 * linux-x86-low.c (x86_linux_delete_process): New.
6685 (struct linux_target_ops): Add delete_process callback.
6686 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6687
466eecee
SM
66882017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6689
6690 * linux-aarch64-low.c (the_low_target): Add thread delete
6691 callback.
6692 * linux-arm-low.c (arm_delete_thread): New function.
6693 (the_low_target): Add thread delete callback.
6694 * linux-bfin-low.c (the_low_target): Likewise.
6695 * linux-crisv32-low.c (the_low_target): Likewise.
6696 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6697 set.
6698 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6699 field.
6700 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6701 * linux-mips-low.c (mips_linux_delete_thread): New function.
6702 (the_low_target): Add thread delete callback.
6703 * linux-ppc-low.c (the_low_target): Likewise.
6704 * linux-s390-low.c (the_low_target): Likewise.
6705 * linux-sh-low.c (the_low_target): Likewise.
6706 * linux-tic6x-low.c (the_low_target): Likewise.
6707 * linux-tile-low.c (the_low_target): Likewise.
6708 * linux-x86-low.c (the_low_target): Likewise.
6709 * linux-xtensa-low.c (the_low_target): Likewise.
6710
b79f7801
YZ
67112017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6712
6713 * win32-low.c: Include "common-inferior.h".
6714
bc3b087d
SDJ
67152017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6716
6717 * inferiors.c (set_inferior_cwd): New function.
6718 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6719 (handle_query): Inform that QSetWorkingDir is supported.
6720 * win32-low.c (create_process): Pass the inferior's cwd to
6721 CreateProcess.
6722
d092c5a2
SDJ
67232017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6724
6725 * inferiors.c (current_inferior_cwd): New global variable.
6726 (get_inferior_cwd): New function.
6727 * inferiors.h (struct process_info) <cwd>: New field.
6728
7da0a886
SDJ
67292017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6730
6731 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6732 (OBS): Add gdb_tilde_expand.o.
6733
289a6840
SM
67342017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6735
6736 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6737 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6738
256642e8
PA
67392017-09-29 Pedro Alves <palves@redhat.com>
6740
6741 * ax.c (gdb_parse_agent_expr): Constify.
6742 * ax.h (gdb_parse_agent_expr): Constify.
6743 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6744 Constify.
6745 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6746 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6747 * remote-utils.h (read_ptid): Constify.
6748 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6749 (process_point_options, process_serial_event): Constify.
6750 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6751 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6752 (cmd_qtbuffer): Constify.
6753
5b9ca4d4
PA
67542017-09-29 Pedro Alves <palves@redhat.com>
6755
6756 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6757 fails.
6758
94c207e0
PA
67592017-09-29 Pedro Alves <palves@redhat.com>
6760
6761 * linux-low.c (handle_extended_wait): Pass parent thread instead
6762 of process to thread_db_notice_clone.
6763 * linux-low.h (thread_db_notice_clone): Replace parent process
6764 parameter with parent thread parameter.
6765 * thread-db.c (find_one_thread): Add comment.
6766 (thread_db_notice_clone): Replace parent process parameter with
6767 parent thread parameter. Temporarily switch to the parent thread.
6768
75352e28
SDJ
67692017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6770
6771 * gdbthread.h: Include "common-gdbthread.h".
6772 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6773 "if" when validating the ptid.
6774 * remote-utils.c: Include "gdbthread.h".
6775 (prepare_resume_reply): Use "switch_to_thread".
6776 * target.c (done_accessing_memory): Likewise.
6777
ad339634
AA
67782017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6779
6780 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6781 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6782 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6783 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6784 s390x-gs-linux64-ipa.o to ipa_obj.
6785 * linux-s390-low.c (HWCAP_S390_GS): New define.
6786 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6787 New functions.
6788 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6789 (s390_arch_setup): Check for guarded-storage support and choose
6790 appropriate tdesc.
6791 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6792 init_registers_s390x_gs_linux64.
6793 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6794 enum value.
6795 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6796 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6797
cc4d742f
SM
67982017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6799
6800 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6801
f6327dcb
KB
68022017-09-21 Kevin Buettner <kevinb@redhat.com>
6803
6804 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6805 (thread_db_thread_handle): Declare.
6806 * linux-low.c (linux_target_ops): Initialize thread_handle.
6807 * server.c (handle_qxfer_threads_worker): Add support for
6808 "handle" attribute.
6809 * target.h (struct target_ops): Add new function pointer,
6810 thread_handle.
6811 (target_thread_handle): Define.
6812 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6813 field in lwp.
6814 (thread_db_thread_handle): New function.
6815
86299109
KB
68162017-09-21 Kevin Buettner <kevinb@redhat.com>
6817
6818 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6819 * linux-low.h (thread_db_notice_clone): Declare.
6820 * thread-db.c (thread_db_notice_clone): New function.
6821
f557a88a
PA
68222017-09-21 Pedro Alves <palves@redhat.com>
6823
6824 * server.c (gdb_read_memory, handle_status, process_serial_event)
6825 (handle_serial_event, handle_target_event): Adjust to
6826 set_desired_thread prototype change.
6827 * target.c (set_desired_thread): Remove 'use_general' parameter
6828 and adjust.
6829 * target.h (set_desired_thread): Remove 'use_general' parameter.
6830
223ffa71
TT
68312017-09-20 Tom Tromey <tom@tromey.com>
6832
6833 * target.c (target_terminal::terminal_state): Define.
6834 (target_terminal::init): Rename from target_terminal_init.
6835 (target_terminal::inferior): Rename from
6836 target_terminal_inferior.
6837 (target_terminal::ours): Rename from target_terminal_ours.
6838 (target_terminal::ours_for_output, target_terminal::info): New.
6839
04fd3ba9
SM
68402017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6841
6842 * server.c (accumulate_file_name_length): Remove.
6843 (emit_dll_description): Adjust to std::string change.
6844 (handle_qxfer_libraries): Use std::string to hold document.
6845
5e187554
SM
68462017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6847
6848 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6849 return type of xml_escape_text.
6850 * server.c (emit_dll_description): Likewise.
6851
1526853e
SM
68522017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6853
6854 * server.c (captured_main): Accept argument for --selftest.
6855 Update run_tests call.
6856 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6857 when registering selftests.
6858
c4dfafab
SDJ
68592017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6860
6861 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6862 instead of "VEC" for "target_desc.reg_defs".
6863 (regcache_cpy): Likewise.
6864 (registers_to_string): Likewise.
6865 (registers_from_string): Likewise.
6866 (find_regno): Likewise.
6867 (supply_regblock): Likewise.
6868 (regcache_raw_read_unsigned): Likewise.
6869 * tdesc.c (init_target_desc): Likewise.
6870 (tdesc_create_reg): Likewise.
6871 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6872 (struct target_desc) <reg_defs>: Convert to "std::vector".
6873 (target_desc): Do not initialize "reg_defs".
6874 (~target_desc): Update code to use "std::vector" instead of "VEC"
6875 for "target_desc.reg_defs".
6876 (operator==): Likewise.
6877
124aceb4
SM
68782017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6879
6880 * inferiors.h (thread_to_gdb_id): Remove.
6881 * inferiors.c (thread_to_gdb_id): Remove.
6882 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6883 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6884 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6885 Likewise.
6886 * nto-low.c (nto_fetch_registers, nto_store_registers,
6887 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6888
96cde54f
SM
68892017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6890
6891 * inferiors.h (gdb_id_to_thread_id): Remove.
6892 * inferiors.c (gdb_id_to_thread_id): Remove.
6893 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6894 removal. Move pid declaration closer to where it's used.
6895
e8ca139e
SM
68962017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6897
6898 * server.c (handle_detach): New function.
6899 (process_serial_event): Move code out, call handle_detach.
6900
f8a4e119
SM
69012017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6902
6903 * server.c (require_running): Rename to ...
6904 (require_running_or_return): ... this ...
6905 (require_running_or_break): ... and this.
6906 (handle_query, process_serial_event): Adjust.
6907
0eb0a407
SM
69082017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6909
6910 * linux-low.c (linux_set_resume_request): Remove unused
6911 variables.
6912
785922a5
SM
69132017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6914
6915 * server.c (first_thread_of): Remove.
6916 (process_serial_event): Replace usage of first_thread_of with
6917 find_any_thread_of_pid.
6918 * tracepoint.c (same_process_p): Remove.
6919 (gdb_agent_about_to_close): Replace usage of same_process_p with
6920 find_any_thread_of_pid.
6921 * linux-x86-low.c (same_process_callback): Remove.
6922 (x86_arch_setup_process_callback): Replace usage of
6923 same_process_callback with find_any_thread_of_pid.
6924 * thread-db.c (any_thread_of): Remove.
6925 (switch_to_process): Replace usage of any_thread_of with
6926 find_any_thread_of_pid.
6927 * inferiors.c (thread_pid_matches_callback): Remove.
6928 (find_thread_process): Adjust to use find_any_thread_of_pid.
6929
a059f00c
SDJ
69302017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6931
6932 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6933 with "!VEC_empty".
a059f00c 6934
cc397f3a
SDJ
69352017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6936
6937 * linux-low.c (handle_extended_wait): Use
6938 "allocate_target_description" instead of "XNEW".
6939 * linux-x86-low.c (initialize_low_arch): Likewise.
6940
22916b07
YQ
69412017-09-05 Yao Qi <yao.qi@linaro.org>
6942
6943 * configure.srv (srv_i386_regobj): Remove.
6944 (srv_amd64_regobj): Remove.
6945 (srv_regobj): Set it to "" for x86 non-linux targets.
6946 * linux-x86-tdesc.c (i386_linux_read_description):
6947 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6948 (init_registers_i386): Remove the declaration.
6949 (tdesc_i386): Remove the declaration.
6950 (lynx_i386_arch_setup): Call i386_create_target_description.
6951 * nto-x86-low.c: Likewise.
6952 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6953 [!__x86_64__]: include arch/i386.h.
6954 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6955
38602d55
YQ
69562017-09-05 Yao Qi <yao.qi@linaro.org>
6957
6958 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6959 i386/amd64-XXX-linux from it.
6960
44b886ff
YQ
69612017-09-05 Yao Qi <yao.qi@linaro.org>
6962
6963 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6964 false.
6965 (ipa_amd64_linux_regobj): Remove.
6966 (ipa_x32_linux_regobj): Remove.
6967
b4570e4b
YQ
69682017-09-05 Yao Qi <yao.qi@linaro.org>
6969
6970 * Makefile.in (arch-amd64.o): New rule.
6971 * configure.srv: Append arch-amd64.o.
6972 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6973 (get_ipa_tdesc): Call amd64_linux_read_description.
6974 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6975 and init_registers_amd64_XXX.
6976 * linux-x86-low.c (x86_linux_read_description): Call
6977 amd64_linux_read_description.
6978 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6979 (initialize_low_arch): Don't call init_registers_x32_XXX and
6980 init_registers_amd64_XXX.
6981 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6982 and tdesc_amd64_XXX.
6983 [__x86_64__] (amd64_tdesc_test): New function.
6984 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6985 and init_registers_amd64_XXX.
6986 * linux-x86-tdesc.c: Include arch/amd64.h.
6987 (xcr0_to_tdesc_idx): New function.
6988 (i386_linux_read_description): New function.
6989 (amd64_get_ipa_tdesc_idx): New function.
6990 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6991 (amd64_get_ipa_tdesc): Declare.
6992
d1f28ea2
YQ
69932017-09-05 Yao Qi <yao.qi@linaro.org>
6994
6995 * configure.srv (srv_i386_linux_xmlfiles): Remove
6996 i386/i386-XXX-linux.xml from it.
6997
25a93583
YQ
69982017-09-05 Yao Qi <yao.qi@linaro.org>
6999
7000 * configure.srv: Set srv_i386_linux_regobj empty if $development
7001 is false.
7002 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7003 initialize_low_tdesc.
7004 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7005 with #if initialize_low_tdesc.
7006 * linux-x86-tdesc-selftest.c: New file.
7007 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7008
5f035c07
YQ
70092017-09-05 Yao Qi <yao.qi@linaro.org>
7010
7011 * Makefile.in (arch-i386.o): New rule.
7012 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7013 (x86_64-*-linux*): Likewise.
7014 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7015 include arch/i386.h.
7016 (i386_linux_read_description): Remove code and call
7017 i386_create_target_description.
7018 * tdesc.c (allocate_target_description): New function.
7019 * tdesc.h (set_tdesc_architecture): Remove declaration.
7020 (set_tdesc_osabi): Likewise.
7021
0abe8a89
YQ
70222017-09-05 Yao Qi <yao.qi@linaro.org>
7023
7024 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7025 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7026 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7027 .xmltarget.
7028 * server.c (get_features_xml): Call tdesc_get_features_xml.
7029 * tdesc.c (set_tdesc_architecture): New function.
7030 (set_tdesc_osabi): New function.
7031 (tdesc_get_features_xml): New function.
7032 (tdesc_create_feature): Add an argument.
7033 * tdesc.h (struct target_desc) <features>: New field.
7034 <arch, osabi>: New field.
7035 (~target_desc): xfree features, arch, and osabi.
7036 (target_desc::oerator==): Don't compare .xmltarget.
7037 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7038 (set_tdesc_osabi): Likewise.
7039 (tdesc_get_features_xml): Likewise.
7040
0a188386
YQ
70412017-09-05 Yao Qi <yao.qi@linaro.org>
7042
7043 * linux-x86-tdesc.c: Include selftest.h.
7044 (i386_tdesc_test): New function.
7045 (initialize_low_tdesc): Call selftests::register_test.
7046 * tdesc.h: Include regdef.h.
7047 (target_desc): Override operator == and !=.
7048
f49ff000
YQ
70492017-09-05 Yao Qi <yao.qi@linaro.org>
7050
7051 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7052 (ipa_obj): Likewise.
7053 * linux-i386-ipa.c: Include common/x86-xstate.h
7054 (get_ipa_tdesc): Call i386_linux_read_description.
7055 (initialize_low_tracepoint): Don't call init_registers_XXX
7056 functions, call initialize_low_tdesc instead.
7057 * linux-x86-low.c (x86_linux_read_description): Call
7058 i386_linux_read_description.
7059 (initialize_low_arch): Don't call init_registers_i386_XXX
7060 functions, call initialize_low_tdesc.
7061 * linux-x86-tdesc.c: New file.
7062 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7063 (i386_get_ipa_tdesc_idx): Declare.
7064 (i386_get_ipa_tdesc): Declare.
7065 (initialize_low_tdesc): Declare.
7066
2b68ef2f
YQ
70672017-09-05 Yao Qi <yao.qi@linaro.org>
7068
7069 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7070 instead of 0.
7071
f7000548
YQ
70722017-09-05 Yao Qi <yao.qi@linaro.org>
7073
7074 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7075 * regcache.c (get_thread_regcache): Use VEC_length.
7076 (init_register_cache): Likewise.
7077 (regcache_cpy): Likewise.
7078 (registers_to_string): Iterate reg_defs via VEC_iterate.
7079 (find_regno): Likewise.
7080 (find_register_by_number): Use VEC_index.
7081 (register_size): Call find_register_by_number.
7082 (register_data): Call find_register_by_number.
7083 (supply_regblock): Use VEC_length.
7084 (regcache_raw_read_unsigned): Likewise.
7085 * tdesc.c (init_target_desc): Iterate reg_defs via
7086 VEC_iterate.
7087 (default_description): Update initializer.
7088 (copy_target_description): Don't update field num_registers.
7089 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7090 <num_registers>: Remove.
7091
50a421ac
SM
70922017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7093
7094 * Makefile.in (.SECONDARY): Define target.
7095
23fdd69e
SM
70962017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7097
7098 * linux-low.c (linux_wait_1): Adjust.
7099 * server.c (queue_stop_reply_callback): Adjust.
7100
0a2dde4a
SDJ
71012017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7102
7103 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7104 QEnvironmentUnset and QEnvironmentReset packets.
7105 (handle_query): Inform remote that QEnvironmentHexEncoded,
7106 QEnvironmentUnset and QEnvironmentReset are supported.
7107
6afd337d
SM
71082017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7109
7110 * inferiors.h (inferior_target_data): Rename to ...
7111 (thread_target_data): ... this.
7112 (inferior_regcache_data): Rename to ...
7113 (thread_regcache_data): ... this.
7114 (set_inferior_regcache_data): Rename to ...
7115 (set_thread_regcache_data): ... this.
7116 * inferiors.c (inferior_target_data): Rename to ...
7117 (thread_target_data): ... this.
7118 (inferior_regcache_data): Rename to ...
7119 (thread_regcache_data): ... this.
7120 (set_inferior_regcache_data): Rename to ...
7121 (set_thread_regcache_data): ... this.
7122 (free_one_thread): Update.
7123 * linux-low.h (get_thread_lwp): Update.
7124 * regcache.c (get_thread_regcache): Update.
7125 (regcache_invalidate_thread): Update.
7126 (free_register_cache_thread): Update.
7127 * win32-i386-low.c (update_debug_registers_callback): Update.
7128 (win32_get_current_dr): Update.
7129 * win32-low.c (thread_rec): Update.
7130 (delete_thread_info): Update.
7131 (continue_one_thread): Update.
7132 (suspend_one_thread): Update.
7133
a160cc46
SM
71342017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7135
7136 * inferiors.c (set_inferior_target_data): Remove.
7137 * inferiors.h (set_inferior_target_data): Remove.
7138
6d580b63
YQ
71392017-08-18 Yao Qi <yao.qi@linaro.org>
7140
7141 * Makefile.in (OBS): Add selftest.o.
7142 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7143 * configure, config.in: Re-generated.
7144 * server.c: Include common/sefltest.h.
7145 (captured_main): Handle option --selftest.
7146
f5a29eb0
YQ
71472017-08-09 Yao Qi <yao.qi@linaro.org>
7148
7149 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7150 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7151 i386-avx-mpx.o and i386-mmx.o.
7152 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7153 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7154 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7155 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7156 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7157 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7158 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7159 i386/amd64-avx-mpx.xml.
7160
57757c2f
YQ
71612017-08-09 Yao Qi <yao.qi@linaro.org>
7162
7163 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7164 and x32-avx-avx512.o.
7165 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7166 i386/x32-avx-avx512.xml.
7167
229d26fc
SM
71682017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7169
7170 * tracepoint.h (enum class fast_tpoint_collect_result): New
7171 enumeration.
7172 (fast_tracepoint_collecting): Change return type to
7173 fast_tpoint_collect_result.
7174 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7175 * linux-low.h: Include tracepoint.h.
7176 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7177 fast_tpoint_collect_result.
7178 * linux-low.c (handle_tracepoints): Adjust.
7179 (linux_fast_tracepoint_collecting): Change return type to
7180 fast_tpoint_collect_result.
7181 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7182 linux_wait_1, stuck_in_jump_pad_callback,
7183 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7184 proceed_one_lwp): Adjust to type change.
7185
2e1e43e1
YQ
71862017-07-10 Yao Qi <yao.qi@linaro.org>
7187
7188 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7189
adc764e7
YQ
71902017-06-29 Yao Qi <yao.qi@linaro.org>
7191
7192 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7193 Remove.
7194 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7195
a206891a
SM
71962017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7197
7198 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7199
9a6c7d9c
SDJ
72002017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7201
7202 * linux-low.c (linux_create_inferior): Adjust code to access the
7203 environment information via 'gdb_environ' class.
7204 * lynx-low.c (lynx_create_inferior): Likewise.
7205 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7206 (get_environ): Return a pointer to 'our_environ'.
7207 (captured_main): Initialize 'our_environ'.
7208 * server.h (get_environ): Adjust prototype.
7209 * spu-low.c (spu_create_inferior): Adjust code to access the
7210 environment information via 'gdb_environ' class.
7211
ae3e2ccf
SM
72122017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7213
7214 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7215 usage of "register" keyword.
7216
3e019bdc
SM
72172017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7218
7219 * configure: Re-generate.
7220
8465943a
SM
72212017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7222
7223 * configure: Re-generate.
7224
cf0dd6f0
SM
72252017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7226
7227 * Makefile.in (COMPILE.pre): Add "-x c++".
7228
9845682b
SDJ
72292017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7230
7231 * fork-child.c: Conditionally include <signal.h>.
7232
aefd8b33
SDJ
72332017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7234
7235 * server.c (handle_general_set): Handle new packet
7236 "QStartupWithShell".
7237 (handle_query): Add "QStartupWithShell" to the list of supported
7238 packets.
7239 (gdbserver_usage): Add help text explaining the
7240 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7241 options.
7242 (captured_main): Recognize and act upon the presence of the new
7243 CLI options.
7244
2090129c
SDJ
72452017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7246 Pedro Alves <palves@redhat.com>
7247
7248 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7249 * configure: Regenerate.
7250 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7251 "fork-inferior.o".
7252 (i[34567]86-*-lynxos*): Likewise.
7253 (spu*-*-*): Likewise.
7254 * fork-child.c: New file.
7255 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7256 and "environ.h".
7257 (linux_ptrace_fun): New function.
7258 (linux_create_inferior): Adjust function prototype to reflect
7259 change on "target.h". Adjust function code to use
7260 "fork_inferior".
7261 (linux_request_interrupt): Delete "signal_pid".
7262 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7263 (lynx_ptrace_fun): New function.
7264 (lynx_create_inferior): Adjust function prototype to reflect
7265 change on "target.h". Adjust function code to use
7266 "fork_inferior".
7267 * nto-low.c (nto_create_inferior): Adjust function prototype and
7268 code to reflect change on "target.h". Update comments.
7269 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7270 "common-terminal.h" and "environ.h".
7271 (terminal_fd): Moved to fork-child.c.
7272 (old_foreground_pgrp): Likewise.
7273 (restore_old_foreground_pgrp): Likewise.
7274 (last_status): Make it global.
7275 (last_ptid): Likewise.
7276 (our_environ): New variable.
7277 (startup_with_shell): Likewise.
7278 (program_name): Likewise.
7279 (program_argv): Rename to...
7280 (program_args): ...this.
7281 (wrapper_argv): New variable.
7282 (start_inferior): Delete function.
7283 (get_exec_wrapper): New function.
7284 (get_exec_file): Likewise.
7285 (get_environ): Likewise.
7286 (prefork_hook): Likewise.
7287 (post_fork_inferior): Likewise.
7288 (postfork_hook): Likewise.
7289 (postfork_child_hook): Likewise.
7290 (handle_v_run): Update code to deal with arguments coming from the
7291 remote host. Update calls from "start_inferior" to
7292 "create_inferior".
7293 (captured_main): Likewise. Initialize environment variable. Call
7294 "have_job_control".
7295 * server.h (post_fork_inferior): New prototype.
7296 (get_environ): Likewise.
7297 (last_status): Declare.
7298 (last_ptid): Likewise.
7299 (signal_pid): Likewise.
7300 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7301 (spu_ptrace_fun): New function.
7302 (spu_create_inferior): Adjust function prototype to reflect change
7303 on "target.h". Adjust function code to use "fork_inferior".
7304 * target.c (target_terminal_init): New function.
7305 (target_terminal_inferior): Likewise.
7306 (target_terminal_ours): Likewise.
7307 * target.h: Include <vector>.
7308 (struct target_ops) <create_inferior>: Update prototype.
7309 (create_inferior): Update macro.
7310 * utils.c (gdb_flush_out_err): New function.
7311 * win32-low.c (win32_create_inferior): Adjust function prototype
7312 and code to reflect change on "target.h".
7313
043a4934
SDJ
73142017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7315
7316 * inferiors.c (switch_to_thread): New function.
7317
15652511
SDJ
73182017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7319
7320 * Makefile.in (SFILE): Add "common/job-control.c".
7321 (OBS): Add "job-control.o".
7322
21ea5acd
SDJ
73232017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7324
7325 * Makefile: Remove "@host_makefile_frag@".
7326
e13cb306
PA
73272017-05-05 Pedro Alves <palves@redhat.com>
7328
7329 * configure: Regenerate.
7330
c94fee56
SDJ
73312017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7332
7333 * configure: Regenerate.
7334
a0ff9e1a
SM
73352017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7336
7337 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7338 software_single_step change of return type to
7339 std::vector<CORE_ADDR>.
7340 * linux-low.c (install_software_single_step_breakpoints):
7341 Likewise.
7342 * linux-low.h (install_software_single_step_breakpoints):
7343 Likewise.
7344
be628ab8
SDJ
73452017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7346
7347 * remote-utils.c: Include "gdb_termios.h" instead of
7348 "terminal.h".
7349 * terminal.h: Delete file.
7350
7c5ded6a
SDJ
73512017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7352
7353 * server.c: Include <vector>.
7354 <program_argv, wrapper_argv>: Convert to std::vector.
7355 (start_inferior): Rewrite function to use C++.
7356 (handle_v_run): Likewise. Update code that calculates the argv
7357 based on the vRun packet; use C++.
7358 (captured_main): Likewise.
7359
436252de
SM
73602017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7361
7362 * server.c (handle_v_cont): Initialize thread_resume::thread
7363 with null_ptid.
7364
9bf2a700
PA
73652017-04-05 Pedro Alves <palves@redhat.com>
7366
7367 * configure: Regenerate.
7368
a121b7c1
PA
73692017-04-05 Pedro Alves <palves@redhat.com>
7370
7371 * gdbreplay.c (sync_error): Constify.
7372 * linux-x86-low.c (push_opcode): Constify.
7373
21c8a587
PA
73742017-04-05 Pedro Alves <palves@redhat.com>
7375
7376 * win32-low.c (get_child_debug_event)
7377 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7378 Report TARGET_WAITKIND_SPURIOUS instead.
7379
fb32b4f7
PA
73802017-04-05 Pedro Alves <palves@redhat.com>
7381
e79be6e5
SM
7382 * remote-utils.c (remote_prepare, remote_open): Constify.
7383 * remote-utils.h (remote_prepare, remote_open): Constify.
7384 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7385
65dd1e59
SM
73862017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7387
7388 * Makefile.in (clean): Clear .deps.
7389
8fa5b777
SM
73902017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7391
7392 * .gitignore: Remove generated files, replace with wildcard.
7393 * (clean): Replace removal of generated files with wildcard.
7394 (version.c): Replace with...
7395 (version-generated.c): ...this.
7396 (xml-builtin.c): Replace with...
7397 (xml-builtin-generated.c): ...this.
7398 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7399 (%.c: *regformats*): Replace with...
7400 (%-generated.c: *regformats*): ...this.
7401
a12e714b
MF
74022017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7403
7404 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7405 (xtensa_fill_gregset): Call collect_register_by_name for
7406 threadptr register.
7407 (xtensa_store_gregset): Call supply_register_by_name for
7408 threadptr register.
7409
1a09b50a
MF
74102017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7411
7412 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7413 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7414 (xtensa_store_gregset): Call supply_register for all registers in
7415 a0_regnum..a0_regnum + C0_NREGS range.
7416
1a01e7c6
SM
74172017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7418
7419 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7420 (ax-ipa.o: ax.c): Remove.
7421 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7422 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7423 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7424 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7425 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7426
36bc18a8
SM
74272017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7428
7429 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7430 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7431 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7432 (errors-ipa.o: ../common/errors.c): Remove.
7433 (format-ipa.o: ../common/format.c): Remove.
7434 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7435
a8ebe3d5
SM
74362017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7437
7438 * Makefile.in (%-ipa.o: %.c): New rule.
7439 (tracepoint-ipa.o: tracepoint.c): Remove.
7440 (utils-ipa.o: utils.c): Remove.
7441 (remote-utils-ipa.o: remote-utils.c): Remove.
7442 (regcache-ipa.o: regcache.c): Remove.
7443 (i386-linux-ipa.o: i386-linux.c): Remove.
7444 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7445 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7446 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7447 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7448 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7449 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7450 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7451 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7452 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7453 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7454 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7455 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7456 (aarch64-ipa.o: aarch64.c): Remove.
7457 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7458 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7459 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7460 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7461 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7462 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7463 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7464 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7465 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7466 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7467 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7468 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7469 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7470 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7471 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7472 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7473 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7474 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7475 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7476 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7477 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7478 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7479 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7480 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7481 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7482 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7483 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7484 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7485 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7486 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7487 (tdesc-ipa.o: tdesc.c): Remove.
7488 (x32-linux-ipa.o: x32-linux.c): Remove.
7489 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7490 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7491
50cfacb7
SM
74922017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7493
7494 * Makefile.in (%.o: ../arch/%.c): New rule.
7495 (arm.o: ../arch/arm.c): Remove.
7496 (arm-linux.o: ../arch/arm-linux.c): Remove.
7497 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7498 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7499
c5a22423
SM
75002017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7501
7502 * Makefile.in (%.o: ../nat/%.c): New rule.
7503 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7504 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7505 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7506 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7507 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7508 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7509 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7510 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7511 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7512 (linux-personality.o: ../nat/linux-personality.c): Remove.
7513 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7514 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7515 (x86-linux.o: ../nat/x86-linux.c): Remove.
7516 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7517 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7518
6bda016b
SM
75192017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7520
7521 * Makefile.in (%.o: ../common/%.c): New rule.
7522 (signals.o: ../common/signals.c): Remove.
7523 (print-utils.o: ../common/print-utils.c): Remove.
7524 (rsp-low.o: ../common/rsp-low.c): Remove.
7525 (common-utils.o: ../common/common-utils.c): Remove.
7526 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7527 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7528 (vec.o: ../common/vec.c): Remove.
7529 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7530 (xml-utils.o: ../common/xml-utils.c): Remove.
7531 (ptid.o: ../common/ptid.c): Remove.
7532 (buffer.o: ../common/buffer.c): Remove.
7533 (format.o: ../common/format.c): Remove.
7534 (filestuff.o: ../common/filestuff.c): Remove.
7535 (agent.o: ../common/agent.c): Remove.
7536 (errors.o: ../common/errors.c): Remove.
7537 (environ.o: ../common/environ.c): Remove.
7538 (common-debug.o: ../common/common-debug.c): Remove.
7539 (cleanups.o: ../common/cleanups.c): Remove.
7540 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7541 (fileio.o: ../common/fileio.c): Remove.
7542 (common-regcache.o: ../common/common-regcache.c): Remove.
7543 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7544 (new-op.o: ../common/new-op.c): Remove.
7545 (btrace-common.o: ../common/btrace-common.c): Remove.
7546
21122961
SM
75472017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7548
7549 * Makefile.in (%.o: ../target/%.c): New rule.
7550 (waitstatus.o: ../target/waitstatus.c): Remove.
7551
c362e621
SM
75522017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7553
7554 * Makefile.in
7555 (%.c: ../regformats/%.dat,
7556 (%.c: ../regformats/arm/%.dat,
7557 (%.c: ../regformats/i386/%.dat,
7558 (%.c: ../regformats/rs6000/%.dat): New rules.
7559 (aarch64.c): Remove.
7560 (reg-arm.c): Remove.
7561 (arm-with-iwmmxt.c): Remove.
7562 (arm-with-vfpv2.c): Remove.
7563 (arm-with-vfpv3.c): Remove.
7564 (arm-with-neon.c): Remove.
7565 (reg-bfin.c): Remove.
7566 (reg-cris.c): Remove.
7567 (reg-crisv32.c): Remove.
7568 (i386.c): Remove.
7569 (i386-linux.c): Remove.
7570 (i386-avx.c): Remove.
7571 (i386-avx-linux.c): Remove.
7572 (i386-avx-avx512.c): Remove.
7573 (i386-avx-avx512-linux.c): Remove.
7574 (i386-mpx.c): Remove.
7575 (i386-mpx-linux.c): Remove.
7576 (i386-avx-mpx-avx512-pku.c): Remove.
7577 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7578 (i386-avx-mpx.c): Remove.
7579 (i386-avx-mpx-linux.c): Remove.
7580 (i386-mmx.c): Remove.
7581 (i386-mmx-linux.c): Remove.
7582 (reg-ia64.c): Remove.
7583 (reg-m32r.c): Remove.
7584 (reg-m68k.c): Remove.
7585 (reg-cf.c): Remove.
7586 (mips-linux.c): Remove.
7587 (mips-dsp-linux.c): Remove.
7588 (mips64-linux.c): Remove.
7589 (mips64-dsp-linux.c): Remove.
7590 (nios2-linux.c): Remove.
7591 (powerpc-32.c): Remove.
7592 (powerpc-32l.c): Remove.
7593 (powerpc-altivec32l.c): Remove.
7594 (powerpc-cell32l.c): Remove.
7595 (powerpc-vsx32l.c): Remove.
7596 (powerpc-isa205-32l.c): Remove.
7597 (powerpc-isa205-altivec32l.c): Remove.
7598 (powerpc-isa205-vsx32l.c): Remove.
7599 (powerpc-e500l.c): Remove.
7600 (powerpc-64l.c): Remove.
7601 (powerpc-altivec64l.c): Remove.
7602 (powerpc-cell64l.c): Remove.
7603 (powerpc-vsx64l.c): Remove.
7604 (powerpc-isa205-64l.c): Remove.
7605 (powerpc-isa205-altivec64l.c): Remove.
7606 (powerpc-isa205-vsx64l.c): Remove.
7607 (s390-linux32.c): Remove.
7608 (s390-linux32v1.c): Remove.
7609 (s390-linux32v2.c): Remove.
7610 (s390-linux64.c): Remove.
7611 (s390-linux64v1.c): Remove.
7612 (s390-linux64v2.c): Remove.
7613 (s390-te-linux64.c): Remove.
7614 (s390-vx-linux64.c): Remove.
7615 (s390-tevx-linux64.c): Remove.
7616 (s390x-linux64.c): Remove.
7617 (s390x-linux64v1.c): Remove.
7618 (s390x-linux64v2.c): Remove.
7619 (s390x-te-linux64.c): Remove.
7620 (s390x-vx-linux64.c): Remove.
7621 (s390x-tevx-linux64.c): Remove.
7622 (tic6x-c64xp-linux.c): Remove.
7623 (tic6x-c64x-linux.c): Remove.
7624 (tic6x-c62x-linux.c): Remove.
7625 (reg-sh.c): Remove.
7626 (reg-sparc64.c): Remove.
7627 (reg-spu.c): Remove.
7628 (amd64.c): Remove.
7629 (amd64-linux.c): Remove.
7630 (amd64-avx.c): Remove.
7631 (amd64-avx-linux.c): Remove.
7632 (amd64-avx-avx512.c): Remove.
7633 (amd64-avx-avx512-linux.c): Remove.
7634 (amd64-mpx.c): Remove.
7635 (amd64-mpx-linux.c): Remove.
7636 (amd64-avx-mpx-avx512-pku.c): Remove.
7637 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7638 (amd64-avx-mpx.c): Remove.
7639 (amd64-avx-mpx-linux.c): Remove.
7640 (x32.c): Remove.
7641 (x32-linux.c): Remove.
7642 (x32-avx.c): Remove.
7643 (x32-avx-linux.c): Remove.
7644 (x32-avx-avx512.c): Remove.
7645 (x32-avx-avx512-linux.c): Remove.
7646 (reg-xtensa.c): Remove.
7647 (reg-tilegx.c): Remove.
7648 (reg-tilegx32.c): Remove.
7649
1672e0d9
SDJ
76502017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7651
7652 * Makefile.in (SFILES): Add "common/environ.c".
7653 (OBJS): Add "common/environ.h".
7654
239b6d10
WT
76552017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7656
7657 * configure.ac: Check if the fs_base and gs_base members of
7658 `struct user_regs_struct' exist.
7659 * config.in: Regenerated.
7660 * configure: Likewise.
7661
694b382c
AT
76622017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7663
7664 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7665 target_read_memory.
7666 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7667 (get_next_pcs_syscall_next_pc): Likewise.
7668
7dc53023
LM
76692016-12-23 Luis Machado <lgustavo@codesourcery.com>
7670
7671 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7672 * nto-x86-low.c: Likewise.
7673
ad02e4fe
SM
76742016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7675
7676 * Makefile.in: Include disable-implicit-rules.mk.
7677
dcb07cfa
PA
76782016-11-23 Pedro Alves <palves@redhat.com>
7679
7680 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7681 (debug_vprintf): Use std::chrono::steady_clock instead of
7682 gettimeofday. Use '.' instead of ':'.
7683 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7684 (get_timestamp): Use std::chrono::steady_clock instead of
7685 gettimeofday.
7686
8629c02c
SM
76872016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7688
7689 * Makefile.in: Fix whitespace formatting.
7690
b593ecca
SM
76912016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7692
7693 * Makefile.in (SFILES, OBS): Flatten list and order
7694 alphabetically.
7695
9986ba08
PA
76962016-11-23 Pedro Alves <palves@redhat.com>
7697
7698 * event-loop.c (handle_file_event): Use warning.
7699 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7700 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7701 Use warning.
7702
4eefa7bc
PA
77032016-11-23 Pedro Alves <palves@redhat.com>
7704
7705 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7706 output.
7707 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7708 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7709 debug_printf and debug_flush for debug output.
7710 * server.c (handle_general_set): Likewise.
7711 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7712 output.
7713
5443506e
SM
77142016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7715
7716 * Makefile.in (.c.o): Replace rule with ...
7717 (%.o: %.c): ... this one.
7718
3b165252
SM
77192016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7720
7721 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7722 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7723 make.
7724 * configure.ac: Remove checks for the make program.
7725 * configure: Re-generate.
7726
0bcda685
PA
77272016-10-28 Pedro Alves <palves@redhat.com>
7728
7729 * Makefile.in (CXX_DIALECT): Get from configure.
7730 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7731 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7732 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7733 * config.in: Regenerate.
7734 * configure: Regenerate.
7735
c3805894
YQ
77362016-10-27 Yao Qi <yao.qi@linaro.org>
7737
7738 * linux-low.c (linux_supports_range_stepping): Return true if
7739 can_software_single_step return true.
7740
89342618
YQ
77412016-10-27 Yao Qi <yao.qi@linaro.org>
7742
7743 * inferiors.c (find_inferior_in_random): New function.
7744 * inferiors.h (find_inferior_in_random): Declare.
7745 * linux-low.c (linux_wait_for_event_filtered): Call
7746 find_inferior_in_random instead of find_inferior.
7747
e3652c84
YQ
77482016-10-27 Yao Qi <yao.qi@linaro.org>
7749
7750 * linux-low.c (linux_wait_1): If single-step breakpoints are
7751 inserted, remove them.
7752
5a04c4cf
PA
77532016-10-26 Pedro Alves <palves@redhat.com>
7754
7755 * linux-low.c (handle_extended_wait): Link parent/child fork
7756 threads.
7757 (linux_wait_1): Unlink them.
7758 (linux_set_resume_request): Ignore resume requests for
7759 already-resumed and unhandled fork child threads.
7760 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7761 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7762 New functions.
7763 (handle_v_requests) <vCont>: Don't call require_running.
7764 * server.h (in_queued_stop_replies): New declaration.
7765
cb93dc7f
YQ
77662016-10-24 Yao Qi <yao.qi@linaro.org>
7767
7768 PR server/20733
7769 * linux-aarch64-low.c (append_insns): Cast the return value to
7770 'uint32_t *'.
7771
a1078bea
YQ
77722016-10-10 Yao Qi <yao.qi@linaro.org>
7773
7774 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7775
1fb77080
SDJ
77762016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7777
7778 * target.c (target_supports_multi_process): New function, moved
7779 from...
7780 * target.h (target_supports_multi_process): ... here. Remove
7781 macro.
7782
39b5a3b9
TT
77832016-10-05 Tom Tromey <tom@tromey.com>
7784
7785 PR remote/20655:
7786 * tracepoint.c (handle_tracepoint_bkpts): Check
7787 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7788
c1d0b70a
YQ
77892016-10-05 Yao Qi <yao.qi@linaro.org>
7790
7791 * configure.srv: Update the path of arm-*.xml files.
7792
0a69eedb
YQ
77932016-10-05 Terry Guo <terry.guo@arm.com>
7794 Yao Qi <yao.qi@linaro.org>
7795
7796 * Makefile.in: Adjust the path of rules.
7797 * configure.srv: Update the path of xml files.
7798 * regformats/arm-with-iwmmxt.dat: Regenerated.
7799 * regformats/arm-with-neon.dat: Likewise.
7800 * regformats/arm-with-vfpv2.dat: Likewise.
7801 * regformats/arm-with-vfpv3.dat Likewise.
7802
17e16485
YQ
78032016-09-30 Yao Qi <yao.qi@linaro.org>
7804
7805 PR gdbserver/20627
7806 * target.c (target_stop_and_wait): Don't call
7807 target_continue_no_signal, use resume_stop instead.
7808
edeeb602
YQ
78092016-09-26 Yao Qi <yao.qi@linaro.org>
7810
7811 * linux-low.c (linux_wait_1): Call debug_exit.
7812
503b1c39
PA
78132016-09-23 Pedro Alves <palves@redhat.com>
7814
7815 * Makefile.in (SFILES): Add common/new-op.c.
7816 (OBS): Add common/new-op.o.
7817 (new-op.o): New rule.
7818
74172ecf
SM
78192016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7820
7821 * .gitinore: Ignore more files.
7822
fc6cda2e
YQ
78232016-09-21 Yao Qi <yao.qi@linaro.org>
7824
7825 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7826 23.
7827
bc1e6c81
SDJ
78282016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7829
7830 * server.c (start_inferior): Call target_mourn_inferior instead of
7831 mourn_inferior; pass ptid_t argument to it.
7832 (resume): Likewise.
7833 (handle_target_event): Likewise.
7834 * target.c (target_mourn_inferior): New function.
7835 * target.h (mourn_inferior): Delete macro.
7836
0e00e962
AA
78372016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7838
7839 * linux-low.c (lwp_is_stepping): New function.
7840
1d8cb77d
CL
78412016-09-06 Carl Love <cel@us.ibm.com>
7842
7843 * server.c (start_inferior): Fixed comment, requested comment change
7844 didn't get updated correctly. Removed reference to ptrace () call as
7845 it is only true on Linux systems.
7846
7313bced
CL
78472016-09-06 Carl Love <cel@us.ibm.com>
7848
7849 * server.c (start_inferior): Do not call
7850 function target_post_create_inferior () if the
7851 inferior process has already exited.
7852
cf6de44d
PA
78532016-09-05 Pedro Alves <palves@redhat.com>
7854
7855 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7856 (COMPILE.pre, CC_LD): Use CXX directly.
7857 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7858 * acinclude.m4: Don't include build-with-cxx.m4.
7859 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7860 * configure: Regenerate.
7861
c1da6748
AT
78622016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7863
7864 PR gdb/19495
7865 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7866 call writing data to own_buf.
7867
f2b9e3df
SDJ
78682016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7869
7870 * target.c (mywait): Call target_wait instead of
7871 the_target->wait.
7872 (target_wait): New function.
7873
049a8570
SDJ
78742016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7875
7876 * server.c (start_inferior): New variable 'ptid'. Replace calls
7877 to the_target->resume by target_continue{,_no_signal}, depending
7878 on the case.
7879 * target.c (target_stop_and_wait): Call target_continue_no_signal
7880 instead of the_target->resume.
7881 (target_continue): New function.
7882
3aa5cfa0
AT
78832016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7884
7885 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7886
754653a7
AZ
78872016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7888
7889 PR server/20491
7890 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7891 ps_prochandle.
7892 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7893 * linux-arm-low.c (ps_get_thread_area): Likewise.
7894 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7895 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7896 * linux-mips-low.c (ps_get_thread_area): Likewise.
7897 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7898 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7899 * linux-x86-low.c (ps_get_thread_area): Likewise.
7900 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7901
ed036b40
PA
79022016-08-19 Pedro Alves <palves@redhat.com>
7903
7904 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7905
c8ef42ee
PA
79062016-08-19 Pedro Alves <palves@redhat.com>
7907
7908 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7909 comment. Use memcpy instead of casting through unsigned long.
7910
9c235a72
PA
79112016-08-19 Pedro Alves <palves@redhat.com>
7912
7913 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7914 allocating around 0x80000000.
7915
201506da
PA
79162016-08-19 Pedro Alves <palves@redhat.com>
7917
7918 PR gdb/20415
7919 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7920 (x32-avx512-linux-ipa.o): New rules.
7921 * configure.ac (x86_64-*-linux*): New x32 check.
7922 * configure.srv (ipa_x32_linux_regobj): New.
7923 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7924 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7925 descriptions.
7926 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7927 descriptions.
7928 * configure: Regenerate.
7929
f348d89a
PA
79302016-08-09 Pedro Alves <palves@redhat.com>
7931
7932 PR gdb/18653
7933 * Makefile.in (OBS): Add signals-state-save-restore.o.
7934 (signals-state-save-restore.o): New rule.
7935 * config.in: Regenerate.
7936 * configure: Regenerate.
7937 * linux-low.c: Include "signals-state-save-restore.h".
7938 (linux_create_inferior): Call
7939 restore_original_signals_state.
7940 * server.c: Include "dispositions-save-restore.h".
7941 (captured_main): Call save_original_signals_state.
7942
1baf5149
PA
79432016-08-05 Pedro Alves <palves@redhat.com>
7944
7945 * configure: Regenerate.
7946
fcd4a73d
YQ
79472016-08-04 Yao Qi <yao.qi@linaro.org>
7948
7949 * linux-low.c (regsets_fetch_inferior_registers): Check
7950 errno is ESRCH or not.
7951
979659d0
YQ
79522016-08-02 Yao Qi <yao.qi@linaro.org>
7953
7954 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7955 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7956 (thread_db_load_search): Update.
7957 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7958 td_ta_set_event and td_ta_event_getmsg.
7959
6598661d
PA
79602016-07-26 Pedro Alves <palves@redhat.com>
7961
7962 PR server/20414
7963 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7964 of unsigned long for 64-bit registers and use uint32_t instead of
7965 unsigned int for 32-bit registers.
7966
9cf12d57
PA
79672016-07-26 Pedro Alves <palves@redhat.com>
7968
7969 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7970 to 'ptrace'.
7971
305450ed
TT
79722016-07-21 Tom Tromey <tom@tromey.com>
7973
7974 * configure: Rebuild.
7975
2583da7c
YQ
79762016-07-21 Yao Qi <yao.qi@linaro.org>
7977
7978 * mem-break.c (find_gdb_breakpoint): Cast bp to
7979 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7980
21536b36
YQ
79812016-07-21 Yao Qi <yao.qi@linaro.org>
7982
7983 * server.c (handle_v_requests): Support s and S actions
7984 if target_supports_software_single_step return true.
7985
8901d193
YQ
79862016-07-21 Yao Qi <yao.qi@linaro.org>
7987
7988 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7989 is resume_step, call maybe_hw_step.
7990 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7991 and unstop them.
7992 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7993 breakpoints or not.
7994 (proceed_one_lwp): If resume request is resume_step, install
7995 reinsert breakpoints and call maybe_hw_step.
7996
0e9a339e
YQ
79972016-07-21 Yao Qi <yao.qi@linaro.org>
7998
7999 * linux-low.c (proceed_one_lwp): Declare.
8000 (linux_resume_one_thread): Remove local variable 'step'.
8001 Lift code enqueue signal. Call proceed_one_lwp instead of
8002 linux_resume_one_lwp.
8003
4281b351
YQ
80042016-07-21 Yao Qi <yao.qi@linaro.org>
8005
8006 * linux-low.c (linux_resume_one_thread): Call
8007 enqueue_pending_signal.
8008
984a2c04
YQ
80092016-07-21 Yao Qi <yao.qi@linaro.org>
8010
8011 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8012 * inferiors.c (do_restore_current_thread_cleanup): New function.
8013 (make_cleanup_restore_current_thread): Likewise.
8014 * linux-low.c (install_software_single_step_breakpoints): Call
8015 make_cleanup_restore_current_thread. Switch current_thread to
8016 thread.
8017
bec903c9
YQ
80182016-07-21 Yao Qi <yao.qi@linaro.org>
8019
8020 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8021 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8022 (clone_one_breakpoint): Likewise.
8023 (delete_reinsert_breakpoints): Change parameter to thread.
8024 Callers updated.
8025 (has_reinsert_breakpoints): Likewise.
8026 (uninsert_reinsert_breakpoints): Likewise.
8027 (reinsert_reinsert_breakpoints): Likewise.
8028 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8029 (delete_reinsert_breakpoints): Likewise.
8030 (reinsert_reinsert_breakpoints): Likewise.
8031 (uninsert_reinsert_breakpoints): Likewise.
8032 (has_reinsert_breakpoints): Likewise.
8033
63c40ec7
YQ
80342016-07-21 Yao Qi <yao.qi@linaro.org>
8035
8036 * inferiors.c (get_thread_process): Make parameter const.
8037 * inferiors.h (get_thread_process): Update declaration.
8038 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8039 Add new parameters child_thread and parent_thread. Callers
8040 updated.
8041 * mem-break.h (clone_all_breakpoints): Update declaration.
8042
9aa76cd0
YQ
80432016-07-21 Yao Qi <yao.qi@linaro.org>
8044
8045 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8046 <command_list, handler>: Remove.
8047 (struct gdb_breakpoint): New.
8048 (struct other_breakpoint): New.
8049 (struct reinsert_breakpoint): New.
8050 (is_gdb_breakpoint): New function.
8051 (any_persistent_commands): Update command_list if
8052 is_gdb_breakpoint returns true.
8053 (set_breakpoint): Create breakpoints according to their types.
8054 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8055 (set_gdb_breakpoint_1): Likewise.
8056 (set_gdb_breakpoint): Likewise.
8057 (clear_breakpoint_conditions): Change parameter type to
8058 'struct gdb_breakpoint *'.
8059 (clear_breakpoint_commands): Likewise.
8060 (clear_breakpoint_conditions_and_commands): Likewise.
8061 (add_condition_to_breakpoint): Likewise.
8062 (add_breakpoint_condition): Likewise.
8063 (add_commands_to_breakpoint): Likewise.
8064 (check_breakpoints): Check other_breakpoint.
8065 (clone_one_breakpoint): Clone breakpopint according to its type.
8066 * mem-break.h (struct gdb_breakpoint): Declare.
8067 (set_gdb_breakpoint): Update declaration.
8068 (clear_breakpoint_conditions_and_commands): Likewise.
8069 (add_breakpoint_condition): Likewise.
8070 (add_breakpoint_commands): Likewise.
8071 * server.c (process_point_options): Change parameter type to
8072 'struct gdb_breakpoint *'.
8073
811f8301
YQ
80742016-07-21 Yao Qi <yao.qi@linaro.org>
8075
8076 * mem-break.c (set_breakpoint_at): Rename it to ...
8077 (set_breakpoint_type_at): ... it.
8078 (set_breakpoint_at): Call set_breakpoint_type_at.
8079 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8080 * mem-break.h (set_breakpoint_at): Update comments.
8081
b1c51e36
CLT
80822016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8083
8084 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8085 to buf parameter.
8086 (nios2_store_gregset): Likewise.
8087
ced2dffb
PA
80882016-07-01 Pedro Alves <palves@redhat.com>
8089 Antoine Tremblay <antoine.tremblay@ericsson.com>
8090
8091 * linux-low.c: Change interface to take the target lwp_info
8092 pointer directly and return void. Handle detaching from a zombie
8093 thread.
8094 (linux_detach_lwp_callback): New function.
8095 (linux_detach): Detach from the leader thread after detaching from
8096 the clone threads.
8097
2ac09a5b
YQ
80982016-06-28 Yao Qi <yao.qi@linaro.org>
8099
8100 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8101 for variable new_offset.
8102 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8103 (aarch64_ftrace_insn_reloc_cb): Likewise.
8104 (aarch64_ftrace_insn_reloc_tb): Likewise.
8105 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8106 PRIx64 instead of PRIx32.
8107
79e7fd4f
YQ
81082016-06-28 Yao Qi <yao.qi@linaro.org>
8109
8110 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8111 (the_low_target): Install arm_get_syscall_trapinfo.
8112
061fc021
YQ
81132016-06-28 Yao Qi <yao.qi@linaro.org>
8114
8115 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8116 function.
8117 (the_low_target): Install aarch64_get_syscall_trapinfo.
8118
4cc32bec
YQ
81192016-06-28 Yao Qi <yao.qi@linaro.org>
8120
8121 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8122 Callers updated.
8123 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8124 Remove parameter sysno.
8125 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8126 sysret.
8127
782c1122
AA
81282016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8129
8130 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8131 (s390_emit_ne_goto): Likewise.
8132 (s390_emit_lt_goto): Likewise.
8133 (s390_emit_le_goto): Likewise.
8134 (s390_emit_gt_goto): Likewise.
8135 (s390_emit_ge_goto): Likewise.
8136 (s390x_emit_eq_goto): Likewise.
8137 (s390x_emit_ne_goto): Likewise.
8138 (s390x_emit_lt_goto): Likewise.
8139 (s390x_emit_le_goto): Likewise.
8140 (s390x_emit_gt_goto): Likewise.
8141 (s390x_emit_ge_goto): Likewise.
8142 (s390_emit_ops_impl): Mark variable static.
8143 (s390x_emit_ops): Likewise.
8144
2e7b624b
YQ
81452016-06-17 Yao Qi <yao.qi@linaro.org>
8146
8147 * linux-low.c (handle_extended_wait): Call
8148 uninsert_reinsert_breakpoints for the parent process. Remove
8149 reinsert breakpoints from the child process. Reinsert them to
8150 the parent process when vfork is done.
8151 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8152 (reinsert_reinsert_breakpoints): New function.
8153 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8154 (reinsert_reinsert_breakpoints): Declare.
8155
8a81c5d7
YQ
81562016-06-17 Yao Qi <yao.qi@linaro.org>
8157
8158 * linux-low.c (handle_extended_wait): If the parent is doing
8159 step-over, remove the reinsert breakpoints from the forked child.
8160
f50bf8e5
YQ
81612016-06-17 Yao Qi <yao.qi@linaro.org>
8162
8163 * linux-low.c (unsuspend_all_lwps): Declare.
8164 (linux_low_filter_event): If thread exited, call finish_step_over.
8165 If step-over is finished, unsuspend other threads.
8166
8376a3cb
YQ
81672016-06-17 Yao Qi <yao.qi@linaro.org>
8168
8169 * linux-low.c (linux_resume_one_lwp_throw): Assert
8170 has_reinsert_breakpoints returns false.
8171 * mem-break.c (delete_disabled_breakpoints): Assert
8172 bp type isn't reinsert_breakpoint.
8173
f79b145d
YQ
81742016-06-17 Yao Qi <yao.qi@linaro.org>
8175
8176 * linux-low.c (maybe_hw_step): New function.
8177 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8178 (finish_step_over): Switch current_thread to lwp temporarily,
8179 and assert has_reinsert_breakpoints returns true.
8180 (proceed_one_lwp): Call maybe_hw_step.
8181 * mem-break.c (has_reinsert_breakpoints): New function.
8182 * mem-break.h (has_reinsert_breakpoints): Declare.
8183
0ae534d2
JT
81842016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8185
8186 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8187
fcdad592
YQ
81882016-05-17 Yao Qi <yao.qi@linaro.org>
8189
8190 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8191 instead of find_inferior.
8192
9e784964
YQ
81932016-05-05 Yao Qi <yao.qi@linaro.org>
8194
8195 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8196 Initialize res to zero.
8197
cf2ebb6e
YQ
81982016-05-05 Yao Qi <yao.qi@linaro.org>
8199
8200 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8201 to uint32_t.
8202
c1aebf87
UW
82032016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8204
8205 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8206 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8207 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8208
35fd2deb 82092016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8210 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8211
8212 * tracepoint.c (write_inferior_int8): New function.
8213 (cmd_qtenable_disable): Write enable flag using
8214 write_inferior_int8.
8215
484b3c32
YQ
82162016-04-25 Yao Qi <yao.qi@linaro.org>
8217
8218 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8219 (need_step_over_p): Return zero if the LWP has pending signals
8220 can be delivered on software single step target.
8221
85ba7d86
YQ
82222016-04-25 Yao Qi <yao.qi@linaro.org>
8223
8224 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8225 return instead of error.
8226
3539aa13
YQ
82272016-04-22 Yao Qi <yao.qi@linaro.org>
8228
8229 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8230 to 23.
8231
5b061e98
YQ
82322016-04-22 Yao Qi <yao.qi@linaro.org>
8233
8234 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8235 signal when stepping over breakpoint with software single
8236 step.
8237
3451269c
PA
82382016-04-21 Pedro Alves <palves@redhat.com>
8239
8240 * linux-s390-low.c (s390_collect_ptrace_register)
8241 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8242 add casts.
8243 (s390_check_regset): Use void * instead of gdb_byte *.
8244
a2358508
PA
82452016-04-20 Pedro Alves <palves@redhat.com>
8246
8247 * configure: Renegerate.
8248
6885166d
YQ
82492016-04-20 Yao Qi <yao.qi@linaro.org>
8250
8251 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8252 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8253 number 16.
8254 (arm_store_gregset): Likewise.
8255
2b863f51
WT
82562016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8257
8258 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8259 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8260 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8261 (amd64-avx-mpx-linux.c): New rules.
8262 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8263 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8264 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8265 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8266 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8267 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8268 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8269 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8270 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8271 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8272 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8273 * linux-x86-low.c (x86_linux_read_description): Add case for
8274 X86_XSTATE_AVX_MPX_MASK.
8275 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8276 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8277 init_registers_i386_avx_mpx_linux.
8278 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8279 (initialize_low_tracepoint): Call
8280 init_registers_i386_avx_mpx_linux.
8281 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8282 (initialize_low_tracepoint): Call
8283 init_registers_amd64_avx_mpx_linux.
8284 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8285 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8286 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8287 declarations.
8288
9b30624b
PA
82892016-04-18 Pedro Alves <palves@redhat.com>
8290
8291 * configure: Regenerate.
8292
45e3745e
AT
82932016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8294
8295 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8296 (aarch64_emit_sub): Likewise.
8297
2afc13ff
PA
82982016-04-12 Pedro Alves <palves@redhat.com>
8299
8300 * utils.c (prepare_to_throw_exception): Delete.
8301
6e774b13
SM
83022016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8303
8304 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8305
4dca19f8
MK
83062016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8307
8308 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8309
d0a9981f
MK
83102016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8311
8312 * linux-aarch64-ipa.c: Add <elf.h> include.
8313 * linux-ppc-ipa.c: Add <elf.h> include.
8314 * linux-s390-ipa.c: Add <elf.h> include.
8315
252db07e
MK
83162016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8317
8318 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8319 (get_raw_reg_ptr): Likewise.
8320 (get_trace_state_variable_value_ptr): Likewise.
8321 (set_trace_state_variable_value_ptr): Likewise.
8322 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8323 char *.
8324
14e2b6d9
MK
83252016-03-31 Wei-cheng Wang <cole945@gmail.com>
8326 Marcin Kościelnicki <koriakin@0x04.net>
8327
8328 PR/17221
8329 * linux-ppc-low.c (emit_insns): New function.
8330 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8331 (ppc_emit_prologue): New function.
8332 (ppc_emit_epilogue): New function.
8333 (ppc_emit_add): New function.
8334 (ppc_emit_sub): New function.
8335 (ppc_emit_mul): New function.
8336 (ppc_emit_lsh): New function.
8337 (ppc_emit_rsh_signed): New function.
8338 (ppc_emit_rsh_unsigned): New function.
8339 (ppc_emit_ext): New function.
8340 (ppc_emit_zero_ext): New function.
8341 (ppc_emit_log_not): New function.
8342 (ppc_emit_bit_and): New function.
8343 (ppc_emit_bit_or): New function.
8344 (ppc_emit_bit_xor): New function.
8345 (ppc_emit_bit_not): New function.
8346 (ppc_emit_equal): New function.
8347 (ppc_emit_less_signed): New function.
8348 (ppc_emit_less_unsigned): New function.
8349 (ppc_emit_ref): New function.
8350 (ppc_emit_const): New function.
8351 (ppc_emit_reg): New function.
8352 (ppc_emit_pop): New function.
8353 (ppc_emit_stack_flush): New function.
8354 (ppc_emit_swap): New function.
8355 (ppc_emit_stack_adjust): New function.
8356 (ppc_emit_call): New function.
8357 (ppc_emit_int_call_1): New function.
8358 (ppc_emit_void_call_2): New function.
8359 (ppc_emit_if_goto): New function.
8360 (ppc_emit_goto): New function.
8361 (ppc_emit_eq_goto): New function.
8362 (ppc_emit_ne_goto): New function.
8363 (ppc_emit_lt_goto): New function.
8364 (ppc_emit_le_goto): New function.
8365 (ppc_emit_gt_goto): New function.
8366 (ppc_emit_ge_goto): New function.
8367 (ppc_write_goto_address): New function.
8368 (ppc_emit_ops_impl): New static variable.
8369 (ppc64v1_emit_prologue): New function.
8370 (ppc64v2_emit_prologue): New function.
8371 (ppc64_emit_epilogue): New function.
8372 (ppc64_emit_add): New function.
8373 (ppc64_emit_sub): New function.
8374 (ppc64_emit_mul): New function.
8375 (ppc64_emit_lsh): New function.
8376 (ppc64_emit_rsh_signed): New function.
8377 (ppc64_emit_rsh_unsigned): New function.
8378 (ppc64_emit_ext): New function.
8379 (ppc64_emit_zero_ext): New function.
8380 (ppc64_emit_log_not): New function.
8381 (ppc64_emit_bit_and): New function.
8382 (ppc64_emit_bit_or): New function.
8383 (ppc64_emit_bit_xor): New function.
8384 (ppc64_emit_bit_not): New function.
8385 (ppc64_emit_equal): New function.
8386 (ppc64_emit_less_signed): New function.
8387 (ppc64_emit_less_unsigned): New function.
8388 (ppc64_emit_ref): New function.
8389 (ppc64_emit_const): New function.
8390 (ppc64v1_emit_reg): New function.
8391 (ppc64v2_emit_reg): New function.
8392 (ppc64_emit_pop): New function.
8393 (ppc64_emit_stack_flush): New function.
8394 (ppc64_emit_swap): New function.
8395 (ppc64v1_emit_call): New function.
8396 (ppc64v2_emit_call): New function.
8397 (ppc64v1_emit_int_call_1): New function.
8398 (ppc64v2_emit_int_call_1): New function.
8399 (ppc64v1_emit_void_call_2): New function.
8400 (ppc64v2_emit_void_call_2): New function.
8401 (ppc64_emit_if_goto): New function.
8402 (ppc64_emit_eq_goto): New function.
8403 (ppc64_emit_ne_goto): New function.
8404 (ppc64_emit_lt_goto): New function.
8405 (ppc64_emit_le_goto): New function.
8406 (ppc64_emit_gt_goto): New function.
8407 (ppc64_emit_ge_goto): New function.
8408 (ppc64v1_emit_ops_impl): New static variable.
8409 (ppc64v2_emit_ops_impl): New static variable.
8410 (ppc_emit_ops): New function.
8411 (linux_low_target): Wire in ppc_emit_ops.
8412
a2174ba4
MK
84132016-03-31 Wei-cheng Wang <cole945@gmail.com>
8414 Marcin Kościelnicki <koriakin@0x04.net>
8415
8416 PR/17221
8417 * Makefile.in: Add powerpc-*-ipa.o
8418 * configure.srv: Add ipa_obj for powerpc*-linux.
8419 * linux-ppc-ipa.c: New file.
8420 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8421 includes.
8422 (PPC_FIELD): New macro.
8423 (PPC_SEXT): New macro.
8424 (PPC_OP6): New macro.
8425 (PPC_BO): New macro.
8426 (PPC_LI): New macro.
8427 (PPC_BD): New macro.
8428 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8429 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8430 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8431 (ppc_get_thread_area): New function.
8432 (is_elfv2_inferior): New function.
8433 (gen_ds_form): New function.
8434 (GEN_STD): New macro.
8435 (GEN_STDU): New macro.
8436 (GEN_LD): New macro.
8437 (GEN_LDU): New macro.
8438 (gen_d_form): New function.
8439 (GEN_ADDI): New macro.
8440 (GEN_ADDIS): New macro.
8441 (GEN_LI): New macro.
8442 (GEN_LIS): New macro.
8443 (GEN_ORI): New macro.
8444 (GEN_ORIS): New macro.
8445 (GEN_LWZ): New macro.
8446 (GEN_STW): New macro.
8447 (GEN_STWU): New macro.
8448 (gen_xfx_form): New function.
8449 (GEN_MFSPR): New macro.
8450 (GEN_MTSPR): New macro.
8451 (GEN_MFCR): New macro.
8452 (GEN_MTCR): New macro.
8453 (GEN_SYNC): New macro.
8454 (GEN_LWSYNC): New macro.
8455 (gen_x_form): New function.
8456 (GEN_OR): New macro.
8457 (GEN_MR): New macro.
8458 (GEN_LWARX): New macro.
8459 (GEN_STWCX): New macro.
8460 (GEN_CMPW): New macro.
8461 (gen_md_form): New function.
8462 (GEN_RLDICL): New macro.
8463 (GEN_RLDICR): New macro.
8464 (gen_i_form): New function.
8465 (GEN_B): New macro.
8466 (GEN_BL): New macro.
8467 (gen_b_form): New function.
8468 (GEN_BNE): New macro.
8469 (GEN_LOAD): New macro.
8470 (GEN_STORE): New macro.
8471 (gen_limm): New function.
8472 (gen_atomic_xchg): New function.
8473 (gen_call): New function.
8474 (ppc_relocate_instruction): New function.
8475 (ppc_install_fast_tracepoint_jump_pad): New function.
8476 (ppc_get_min_fast_tracepoint_insn_len): New function.
8477 (ppc_get_ipa_tdesc_idx): New function.
8478 (the_low_target): Wire in the new functions.
8479 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8480 tdescs.
8481 * linux-ppc-tdesc.h: New file.
8482
a13c4696
MK
84832016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8484
8485 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8486 (alloc_jump_pad_buffer): New function.
8487 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8488 (alloc_jump_pad_buffer): New function.
8489 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8490 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8491 (alloc_jump_pad_buffer): New function.
8492 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8493 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8494 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8495 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8496
1cda1512
MK
84972016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8498
8499 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8500 * linux-amd64-ipa.c: Likewise.
8501 * linux-i386-ipa.c: Likewise.
8502 * linux-s390-ipa.c: Likewise.
8503 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8504 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8505 set_trace_state_variable_value_ptr.
8506 (struct ipa_sym_addresses): Likewise.
8507 (symbol_list): Likewise.
8508 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8509 accessing gdb_collect directly.
8510 (gdb_collect_ptr_type): New typedef.
8511 (get_raw_reg_ptr_type): New typedef.
8512 (get_trace_state_variable_value_ptr_type): New typedef.
8513 (set_trace_state_variable_value_ptr_type): New typedef.
8514 (gdb_collect_ptr): New global.
8515 (get_raw_reg_ptr): New global.
8516 (get_trace_state_variable_value_ptr): New global.
8517 (set_trace_state_variable_value_ptr): New global.
8518 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8519 accessing get_raw_reg directly.
8520 (get_get_tsv_func_addr): Likewise for
8521 get_trace_state_variable_value_ptr.
8522 (get_set_tsv_func_addr): Likewise for
8523 set_trace_state_variable_value_ptr.
8524 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8525
72fb5488
SM
85262016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8527
8528 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8529
28170b88
MK
85302016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8531
8532 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8533 packets.
8534 (relocate_instruction): Remove own_buf.
8535 * server.c (own_buf): Make global.
8536 (handle_v_requests): Make global.
8537 * server.h (own_buf): New declaration.
8538 (handle_v_requests): New prototype.
8539
f39e8743
MK
85402016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8541
8542 PR 18377
8543 * linux-s390-low.c (add_insns): New function.
8544 (s390_emit_prologue): New function.
8545 (s390_emit_epilogue): New function.
8546 (s390_emit_add): New function.
8547 (s390_emit_sub): New function.
8548 (s390_emit_mul): New function.
8549 (s390_emit_lsh): New function.
8550 (s390_emit_rsh_signed): New function.
8551 (s390_emit_rsh_unsigned): New function.
8552 (s390_emit_ext): New function.
8553 (s390_emit_log_not): New function.
8554 (s390_emit_bit_and): New function.
8555 (s390_emit_bit_or): New function.
8556 (s390_emit_bit_xor): New function.
8557 (s390_emit_bit_not): New function.
8558 (s390_emit_equal): New function.
8559 (s390_emit_less_signed): New function.
8560 (s390_emit_less_unsigned): New function.
8561 (s390_emit_ref): New function.
8562 (s390_emit_if_goto): New function.
8563 (s390_emit_goto): New function.
8564 (s390_write_goto_address): New function.
8565 (s390_emit_litpool): New function.
8566 (s390_emit_const): New function.
8567 (s390_emit_call): New function.
8568 (s390_emit_reg): New function.
8569 (s390_emit_pop): New function.
8570 (s390_emit_stack_flush): New function.
8571 (s390_emit_zero_ext): New function.
8572 (s390_emit_swap): New function.
8573 (s390_emit_stack_adjust): New function.
8574 (s390_emit_set_r2): New function.
8575 (s390_emit_int_call_1): New function.
8576 (s390_emit_void_call_2): New function.
8577 (s390_emit_eq_goto): New function.
8578 (s390_emit_ne_goto): New function.
8579 (s390_emit_lt_goto): New function.
8580 (s390_emit_le_goto): New function.
8581 (s390_emit_gt_goto): New function.
8582 (s390_emit_ge_goto): New function.
8583 (s390x_emit_prologue): New function.
8584 (s390x_emit_epilogue): New function.
8585 (s390x_emit_add): New function.
8586 (s390x_emit_sub): New function.
8587 (s390x_emit_mul): New function.
8588 (s390x_emit_lsh): New function.
8589 (s390x_emit_rsh_signed): New function.
8590 (s390x_emit_rsh_unsigned): New function.
8591 (s390x_emit_ext): New function.
8592 (s390x_emit_log_not): New function.
8593 (s390x_emit_bit_and): New function.
8594 (s390x_emit_bit_or): New function.
8595 (s390x_emit_bit_xor): New function.
8596 (s390x_emit_bit_not): New function.
8597 (s390x_emit_equal): New function.
8598 (s390x_emit_less_signed): New function.
8599 (s390x_emit_less_unsigned): New function.
8600 (s390x_emit_ref): New function.
8601 (s390x_emit_if_goto): New function.
8602 (s390x_emit_const): New function.
8603 (s390x_emit_call): New function.
8604 (s390x_emit_reg): New function.
8605 (s390x_emit_pop): New function.
8606 (s390x_emit_stack_flush): New function.
8607 (s390x_emit_zero_ext): New function.
8608 (s390x_emit_swap): New function.
8609 (s390x_emit_stack_adjust): New function.
8610 (s390x_emit_int_call_1): New function.
8611 (s390x_emit_void_call_2): New function.
8612 (s390x_emit_eq_goto): New function.
8613 (s390x_emit_ne_goto): New function.
8614 (s390x_emit_lt_goto): New function.
8615 (s390x_emit_le_goto): New function.
8616 (s390x_emit_gt_goto): New function.
8617 (s390x_emit_ge_goto): New function.
8618 (s390_emit_ops): New function.
8619 (struct linux_target_ops): Fill in emit_ops hook.
8620
abd9baf9
MK
86212016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8622
8623 PR 18377
8624 * Makefile.in: Add s390 IPA files.
8625 * configure.srv: Build IPA for s390.
8626 * linux-s390-ipa.c: New file.
8627 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8628 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8629 (tdesc_s390_linux32): Likewise.
8630 (init_registers_s390_linux32v1): Likewise.
8631 (tdesc_s390_linux32v1): Likewise.
8632 (init_registers_s390_linux32v2): Likewise.
8633 (tdesc_s390_linux32v2): Likewise.
8634 (init_registers_s390_linux64): Likewise.
8635 (tdesc_s390_linux64): Likewise.
8636 (init_registers_s390_linux64v1): Likewise.
8637 (tdesc_s390_linux64v1): Likewise.
8638 (init_registers_s390_linux64v2): Likewise.
8639 (tdesc_s390_linux64v2): Likewise.
8640 (init_registers_s390_te_linux64): Likewise.
8641 (tdesc_s390_te_linux64): Likewise.
8642 (init_registers_s390_vx_linux64): Likewise.
8643 (tdesc_s390_vx_linux64): Likewise.
8644 (init_registers_s390_tevx_linux64): Likewise.
8645 (tdesc_s390_tevx_linux64): Likewise.
8646 (init_registers_s390x_linux64): Likewise.
8647 (tdesc_s390x_linux64): Likewise.
8648 (init_registers_s390x_linux64v1): Likewise.
8649 (tdesc_s390x_linux64v1): Likewise.
8650 (init_registers_s390x_linux64v2): Likewise.
8651 (tdesc_s390x_linux64v2): Likewise.
8652 (init_registers_s390x_te_linux64): Likewise.
8653 (tdesc_s390x_te_linux64): Likewise.
8654 (init_registers_s390x_vx_linux64): Likewise.
8655 (tdesc_s390x_vx_linux64): Likewise.
8656 (init_registers_s390x_tevx_linux64): Likewise.
8657 (tdesc_s390x_tevx_linux64): Likewise.
8658 (have_hwcap_s390_vx): New static variable.
8659 (s390_arch_setup): Fill have_hwcap_s390_vx.
8660 (s390_get_thread_area): New function.
8661 (s390_ft_entry_gpr_esa): New const.
8662 (s390_ft_entry_gpr_zarch): New const.
8663 (s390_ft_entry_misc): New const.
8664 (s390_ft_entry_fr): New const.
8665 (s390_ft_entry_vr): New const.
8666 (s390_ft_main_31): New const.
8667 (s390_ft_main_64): New const.
8668 (s390_ft_exit_fr): New const.
8669 (s390_ft_exit_vr): New const.
8670 (s390_ft_exit_misc): New const.
8671 (s390_ft_exit_gpr_esa): New const.
8672 (s390_ft_exit_gpr_zarch): New const.
8673 (append_insns): New function.
8674 (s390_relocate_instruction): New function.
8675 (s390_install_fast_tracepoint_jump_pad): New function.
8676 (s390_get_min_fast_tracepoint_insn_len): New function.
8677 (s390_get_ipa_tdesc_idx): New function.
8678 (struct linux_target_ops): Wire in the above functions.
8679 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8680 * linux-s390-tdesc.h: New file.
8681
a4105d04
MK
86822016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8683
8684 * linux-s390-low.c (s390_supports_tracepoints): New function.
8685 (struct linux_target_ops): Fill supports_tracepoints hook.
8686
35ac8b3e
YQ
86872016-03-18 Yao Qi <yao.qi@linaro.org>
8688
8689 * linux-low.c (lwp_signal_can_be_delivered): New function.
8690 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8691
94610ec4
YQ
86922016-03-18 Yao Qi <yao.qi@linaro.org>
8693
8694 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8695 0 if signal is enqueued. Remove 'signal' from one debugging
8696 message. Move one debugging message to some lines below.
8697 Remove code setting 'signal' to 0.
8698
80aea927
YQ
86992016-03-18 Yao Qi <yao.qi@linaro.org>
8700
8701 * linux-low.c (linux_low_filter_event): Remove redundant
8702 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8703
b04fd3be
MK
87042016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8705
8706 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8707 (struct linux_target_ops): Wire in the above.
8708
c40c8d4b
YQ
87092016-03-03 Yao Qi <yao.qi@linaro.org>
8710
8711 * linux-low.c: Update comments to start_step_over.
8712
0f8288ae
YQ
87132016-03-03 Yao Qi <yao.qi@linaro.org>
8714
8715 PR server/19736
8716 * linux-low.c (handle_extended_wait): Set child suspended
8717 if event_lwp->bp_reinsert isn't zero.
8718
fdbd04a8
YQ
87192016-03-02 Yao Qi <yao.qi@linaro.org>
8720
8721 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8722 enqueue_pending_signal.
8723
6896a8fa
MK
87242016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8725
8726 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8727 is actually loaded.
8728
ab503087
MK
87292016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8730
8731 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8732 (s390_regmap_3264) [!__s390x__]: New global.
8733 (s390_collect_ptrace_register): Skip map entries containing -1.
8734 (s390_supply_ptrace_register): Ditto.
8735 (s390_fill_gprs_high): New function.
8736 (s390_store_gprs_high): New function.
8737 (s390_regsets): Add NT_S390_HIGH_GPRS.
8738 (s390_get_hwcap): Enable on 31-bit.
8739 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8740 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8741 Detect NT_S390_HIGH_GPRS.
8742 (s390_usrregs_info_3264): Enable on 31-bit.
8743 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8744 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8745
ae91f625
MK
87462016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8747
8748 PR gdb/13808
8749 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8750 * configure.srv: Ditto.
8751 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8752 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8753 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8754 (init_registers_amd64_linux): Remove prototype.
8755 (tdesc_amd64_linux): Remove declaration.
8756 (get_ipa_tdesc): New function.
8757 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8758 initialize remaining tdescs.
8759 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8760 (init_registers_i386_linux): Remove prototype.
8761 (tdesc_i386_linux): Remove declaration.
8762 (get_ipa_tdesc): New function.
8763 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8764 initialize remaining tdescs.
8765 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8766 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8767 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8768 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8769 (x86_get_ipa_tdesc_idx): New function.
8770 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8771 * linux-x86-tdesc.h: New file.
8772 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8773 (target_get_ipa_tdesc_idx): New macro.
8774 * tracepoint.c (ipa_tdesc_idx): New macro.
8775 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8776 (symbol_list): Add ipa_tdesc_idx.
8777 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8778 (ipa_tdesc): Remove.
8779 (ipa_tdesc_idx): New variable.
8780 (get_context_regcache): Use get_ipa_tdesc.
8781 (gdb_collect): Ditto.
8782 (gdb_probe): Ditto.
8783 * tracepoint.h (get_ipa_tdesc): New prototype.
8784 (ipa_tdesc): Remove.
8785
e7ad2f14
PA
87862016-02-24 Pedro Alves <palves@redhat.com>
8787
8788 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8789 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8790 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8791 Factor out common code between the USE_SIGTRAP_SIGINFO and
8792 !USE_SIGTRAP_SIGINFO blocks.
8793 (linux_low_filter_event): Call save_stop_reason instead of
8794 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8795 Update comments.
8796 (linux_wait_1): Update comments.
8797
657f9cde
WW
87982016-02-24 Wei-cheng Wang <cole945@gmail.com>
8799
8800 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8801 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8802 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8803 ppc_insert_point, ppc_remove_point.
8804
b00b61e1
MK
88052016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8806
8807 * linux-s390-low.c (s390_supports_z_point_type): New function.
8808 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8809
553cb527
YQ
88102016-02-16 Yao Qi <yao.qi@linaro.org>
8811
8812 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8813 PC. Get pc from regcache_read_pc.
8814
a5652c21
YQ
88152016-02-12 Yao Qi <yao.qi@linaro.org>
8816
8817 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8818 or linux_get_pc_32bit.
8819 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8820
ed443b61
YQ
88212016-02-12 Yao Qi <yao.qi@linaro.org>
8822
8823 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8824 arm_linux_get_next_pcs_fixup.
8825
020ecd38
MK
88262016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8827
8828 * tracepoint.c (x_tracepoint_action_download): Change
8829 write_inferior_data_ptr to write_inferior_data_pointer.
8830 (cmd_qtstart): Likewise.
8831 (write_inferior_data_ptr): Remove.
8832 (download_agent_expr): Change write_inferior_data_ptr to
8833 write_inferior_data_pointer.
8834 (download_tracepoint_1): Likewise.
8835 (download_tracepoint): Likewise.
8836 (download_trace_state_variables): Likewise.
8837
7cae9051
WW
88382016-02-11 Wei-cheng Wang <cole945@gmail.com>
8839 Marcin Kościelnicki <koriakin@0x04.net>
8840
8841 * tracepoint.c (struct tracepoint_action_ops): Remove.
8842 (struct tracepoint_action): Remove ops.
8843 (m_tracepoint_action_download, r_tracepoint_action_download)
8844 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8845 size and offset accordingly.
8846 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8847 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8848 (tracepoint_action_send, tracepoint_action_download): New functions.
8849 Helpers for trace action handlers.
8850 (add_tracepoint_action): Remove setup actions ops.
8851 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8852
9f6a71b4
YQ
88532016-02-10 Yao Qi <yao.qi@linaro.org>
8854
8855 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8856
1e94266c
SM
88572016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8858
8859 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8860 to AC_OUTPUT.
8861 * configure: Regenerate.
8862
8adce034
SM
88632016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8864
8865 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8866 void * to gdb_byte *.
8867 * linux-low.c (siginfo_fixup): Likewise.
8868 (linux_xfer_siginfo): Likewise.
8869 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8870 Likewise.
8871 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8872
93813b37
WT
88732016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8874
8875 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8876 to srv_tgtobj.
8877 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8878 to srv_tgtobj.
8879 * linux-x86-low.c [__x86_64__]: Include
8880 "nat/amd64-linux-siginfo.h".
8881 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8882 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8883 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8884 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8885 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8886 (cpt_si_fd, si_timerid, si_overrun): Move from
8887 nat/amd64-linux-siginfo.c.
8888 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8889
8424cc97
SM
88902016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8891
8892 * server.c (skip_to_semicolon): Remove.
8893 (process_point_options): Use strchrnul instead of
8894 skip_to_semicolon.
8895
4d18591b
YQ
88962016-01-26 Yao Qi <yao.qi@linaro.org>
8897
8898 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8899 * linux-low.c (install_software_single_step_breakpoints): Don't
8900 call regcache_read_pc.
8901 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8902 argument pc.
8903
d8020970
YQ
89042016-01-26 Yao Qi <yao.qi@linaro.org>
8905
8906 * linux-low.c (install_software_single_step_breakpoints): Call
8907 regcache_read_pc instead of get_pc.
8908
8b207339
YQ
89092016-01-26 Yao Qi <yao.qi@linaro.org>
8910
8911 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8912 (unblock_async_io): Rename to ...
8913 (block_unblock_async_io): ... it. New function.
8914 (enable_async_io): Don't install SIGIO handler. Unblock it
8915 instead.
8916 (disable_async_io): Don't ignore SIGIO. Block it instead.
8917 (initialize_async_io): Install SIGIO handler. Don't call
8918 unblock_async_io.
8919
18879fef
YQ
89202016-01-26 Yao Qi <yao.qi@linaro.org>
8921
8922 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8923 first character is '\003', call *the_target->request_interrupt.
8924
a0f8e08a
YQ
89252016-01-25 Yao Qi <yao.qi@linaro.org>
8926
8927 * remote-utils.c (new_thread_notify): Remove.
8928 (dead_thread_notify): Likewise.
8929 * remote-utils.h (new_thread_notify): Remove declaration.
8930 (dead_thread_notify): Likewise.
8931
cc5fd9ab
MK
89322016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8933
8934 * gdb.trace/pending.exp: Fix expected message on continue.
8935
99e8eb11
MK
89362016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8937
8938 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8939 it works properly on big-endian machines where sizeof (CORE_ADDR)
8940 != sizeof (void *).
8941
a994041d
PA
89422016-01-21 Pedro Alves <palves@redhat.com>
8943
8944 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8945 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8946 * configure: Regenerate.
8947
f7a6a40d
YQ
89482016-01-21 Yao Qi <yao.qi@linaro.org>
8949
8950 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8951 is_thumb and set it according to CPSR saved on the stack.
8952 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8953 arm_sigreturn_next_pc.
8954
6f69e520
YQ
89552016-01-18 Yao Qi <yao.qi@linaro.org>
8956
8957 * linux-low.c (linux_set_pc_64bit): New function.
8958 (linux_get_pc_64bit): New function.
8959 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8960 Declare.
8961 * linux-sparc-low.c (debug_threads): Remove declaration.
8962 (sparc_get_pc): Remove.
8963 (the_low_target): Use linux_get_pc_64bit instead of
8964 sparc_get_pc.
8965 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8966 (the_low_target): Use linux_get_pc_64bit and
8967 linux_set_pc_64bit.
8968
276d4552
YQ
89692016-01-18 Yao Qi <yao.qi@linaro.org>
8970
8971 * linux-arm-low.c (debug_threads): Remove declaration.
8972 (arm_get_pc, arm_set_pc): Remove.
8973 (the_low_target): Use linux_get_pc_32bit and
8974 linux_set_pc_32bit.
8975 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8976 (the_low_target): Use linux_get_pc_32bit and
8977 linux_set_pc_32bit.
8978 * linux-cris-low.c (debug_threads): Remove declaration.
8979 (cris_get_pc, cris_set_pc,): Remove.
8980 (the_low_target): Use linux_get_pc_32bit and
8981 linux_set_pc_32bit.
8982 * linux-crisv32-low.c (debug_threads): Remove declaration.
8983 (cris_get_pc, cris_set_pc): Remove.
8984 (the_low_target): Use linux_get_pc_32bit and
8985 linux_set_pc_32bit.
8986 * linux-low.c: Include inttypes.h.
8987 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8988 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8989 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8990 (the_low_target): Use linux_get_pc_32bit and
8991 linux_set_pc_32bit.
8992 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8993 (the_low_target): Use linux_get_pc_32bit and
8994 linux_set_pc_32bit.
8995 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8996 (the_low_target): Use linux_get_pc_32bit and
8997 linux_set_pc_32bit.
8998 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8999 (the_low_target): Use linux_get_pc_32bit and
9000 linux_set_pc_32bit.
9001 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9002 (the_low_target): Use linux_get_pc_32bit and
9003 linux_set_pc_32bit.
9004
eb0edac8
GB
90052016-01-18 Gary Benson <gbenson@redhat.com>
9006
9007 * configure.ac (AC_FUNC_FORK): New check.
9008 * config.in: Regenerate.
9009 * configure: Likewise.
9010
1b451dda
YQ
90112016-01-14 Yao Qi <yao.qi@linaro.org>
9012
9013 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9014 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9015 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9016 arm_get_next_pcs_ctor.
9017
82075af2
JS
90182016-01-12 Josh Stone <jistone@redhat.com>
9019 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9020
9021 * inferiors.h: Include "gdb_vecs.h".
9022 (struct process_info): Add syscalls_to_catch.
9023 * inferiors.c (remove_process): Free syscalls_to_catch.
9024 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9025 syscall_return stops.
9026 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9027 * server.c (handle_general_set): Handle QCatchSyscalls.
9028 (handle_query): Report support for QCatchSyscalls.
9029 * target.h (struct target_ops): Add supports_catch_syscall.
9030 (target_supports_catch_syscall): New macro.
9031 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9032 (struct lwp_info): Add syscall_state.
9033 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9034 Maintain syscall_state and syscalls_to_catch across exec.
9035 (get_syscall_trapinfo): New function, proxy to the_low_target.
9036 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9037 (linux_low_filter_event): Toggle syscall_state entry/return for
9038 syscall traps, and set it ignored for all others.
9039 (gdb_catching_syscalls_p): New function.
9040 (gdb_catch_this_syscall_p): New function.
9041 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9042 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9043 (linux_supports_catch_syscall): New function.
9044 (linux_target_ops): Install it.
9045 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9046 (the_low_target): Install it.
9047
8f13a3ce
MF
90482016-01-12 Mike Frysinger <vapier@gentoo.org>
9049
9050 * acinclude.m4: Include new ../warning.m4 file.
9051 * configure: Regenerated.
9052 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9053
5b3da067
MF
90542016-01-12 Mike Frysinger <vapier@gentoo.org>
9055
9056 * ax.c (is_goto_target): Mark static.
9057 * linux-low.c (register_addr): Likewise.
9058 (linux_fetch_registers, linux_store_registers): Likewise.
9059 * mem-break.c (any_persistent_commands): Fix old prototype.
9060 (add_commands_to_breakpoint): Mark static.
9061 * regcache.c (find_register_by_name): Delete unused func.
9062 * remote-utils.c (hex_or_minus_one): Mark static.
9063 * server.c (monitor_show_help): Mark static.
9064 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9065 handle_v_requests): Likewise.
9066
bc504a31
PA
90672016-01-12 Pedro Alves <palves@redhat.com>
9068
9069 Remove use of the registered trademark symbol throughout.
9070
5a0dd67a
YQ
90712016-01-08 Yao Qi <yao.qi@linaro.org>
9072
9073 * remote-utils.c (getpkt): If c is '\003', call target hook
9074 request_interrupt.
9075
b2ca446f
YQ
90762016-01-06 Yao Qi <yao.qi@linaro.org>
9077
9078 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9079 linux-aarch32-low.c.
9080 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9081 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9082 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9083 (thumb2_breakpoint): Declare.
9084 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9085 linux-aarch32-low.h.
9086 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9087 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9088 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9089
edd88788
JB
90902016-01-01 Joel Brobecker <brobecker@adacore.com>
9091
9092 * gdbreplay.c (gdbreplay_version): Change copyright year in
9093 version message.
9094 * server.c (gdbserver_version): Likewise.
9095
65da7f14
PP
90962015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9097
9098 * server.c (crc32_table): Delete.
9099 (crc32): Use libiberty's xcrc32 function.
9100
4abd5ed2
JB
91012015-12-22 Joel Brobecker <brobecker@adacore.com>
9102
9103 * lynx-low.c (lynx_delete_thread_callback): New function.
9104 (lynx_mourn): Properly delete our process and all of its
9105 threads. Remove call to clear_inferiors.
9106
0e50fe5c
JB
91072015-12-22 Joel Brobecker <brobecker@adacore.com>
9108
9109 * target.c (thread_search_callback): Add check that
9110 the thread_stopped target callback is not NULL before
9111 calling it.
9112
35adc03f
YQ
91132015-12-21 Yao Qi <yao.qi@linaro.org>
9114
9115 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9116 arm breakpoint.
9117
bd2b2909
AT
91182015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9119
9120 * server.c (handle_query): Call target_supports_software_single_step.
9121
7fe5e27e
AT
91222015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9123
9124 * linux-low.c (single_step): New function.
9125 (linux_resume_one_lwp_throw): Call single_step.
9126 (start_step_over): Likewise.
9127
d9311bfa
AT
91282015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9129
9130 * Makefile.in (SFILES): Append arch/arm-linux.c,
9131 arch/arm-get-next-pcs.c.
9132 (arm-linux.o): New rule.
9133 (arm-get-next-pcs.o): New rule.
9134 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9135 arm-linux.o.
9136 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9137 to linux-aarch32-low.c.
9138 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9139 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9140 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9141 (thumb2_breakpoint_len): Likewise.
9142 (arm_is_thumb_mode): Make non-static.
9143 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9144 from linux-aarch32-low.c.
9145 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9146 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9147 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9148 (thumb2_breakpoint_len): Likewise.
9149 (arm_is_thumb_mode): New declaration.
9150 * linux-arm-low.c: Include arch/arm-linux.h
9151 aarch/arm-get-next-pcs.h, sys/syscall.h.
9152 (get_next_pcs_ops): New struct.
9153 (get_next_pcs_addr_bits_remove): New function.
9154 (get_next_pcs_is_thumb): New function.
9155 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9156 (arm_sigreturn_next_pc): Likewise.
9157 (get_next_pcs_syscall_next_pc): Likewise.
9158 (arm_gdbserver_get_next_pcs): Likewise.
9159 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9160 Initialize.
9161 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9162 * server.h: Include gdb_vecs.h.
9163
68ce2059
AT
91642015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9165
9166 * Makefile.in (SFILES): Append common/common-regcache.c.
9167 (OBS): Append common-regcache.o.
9168 (common-regcache.o): New rule.
9169 * regcache.c (init_register_cache): Initialize cache to
9170 REG_UNAVAILABLE.
9171 (regcache_raw_read_unsigned): New function.
9172 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9173 register_status enum.
9174
fa5308bd
AT
91752015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9176
9177 * linux-aarch64-low.c (the_low_targets): Rename
9178 breakpoint_reinsert_addr to get_next_pcs.
9179 * linux-arm-low.c (the_low_targets): Likewise.
9180 * linux-bfin-low.c (the_low_targets): Likewise.
9181 * linux-cris-low.c (the_low_targets): Likewise.
9182 * linux-crisv32-low.c (the_low_targets): Likewise.
9183 * linux-low.c (can_software_single_step): Likewise.
9184 (install_software_single_step_breakpoints): New function.
9185 (start_step_over): Use install_software_single_step_breakpoints.
9186 * linux-low.h: New CORE_ADDR vector.
9187 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9188 get_next_pcs.
9189 * linux-mips-low.c (the_low_targets): Likewise.
9190 * linux-nios2-low.c (the_low_targets): Likewise.
9191 * linux-sparc-low.c (the_low_targets): Likewise.
9192
4a6ed09b
PA
91932015-12-17 Pedro Alves <palves@redhat.com>
9194
9195 * linux-low.c (linux_kill_one_lwp): Remove references to
9196 LinuxThreads.
9197 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9198 to 'kill'.
9199 (linux_init_signals): Delete.
9200 (initialize_low): Adjust.
9201 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9202
7544db95
PA
92032015-12-16 Pedro Alves <palves@redhat.com>
9204
9205 * configure.ac (compiler warning flags): When testing a
9206 -Wno-foo option, check whether -Wfoo works instead.
9207 * configure: Regenerate.
9208
8020350c
DB
92092015-12-11 Don Breazeal <donb@codesourcery.com>
9210
9211 * server.c (process_serial_event): Don't exit from gdbserver
9212 in remote mode if there are still active inferiors.
9213
db91f502
YQ
92142015-12-11 Yao Qi <yao.qi@linaro.org>
9215
9216 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9217 arm_breakpoint_at if the process is 32-bit.
9218
b37a6290
YQ
92192015-12-11 Yao Qi <yao.qi@linaro.org>
9220
9221 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9222 arm breakpoint.
9223
17b1509a
YQ
92242015-12-07 Yao Qi <yao.qi@linaro.org>
9225
9226 * configure.srv: Append arm.o to srv_tgtobj for
9227 aarch64*-*-linux* target.
9228 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9229 from linux-arm-low.c.
9230 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9231 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9232 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9233 (thumb2_breakpoint_len): Likewise.
9234 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9235 (arm_breakpoint_kinds): Likewise.
9236 (arm_breakpoint_kind_from_pc): Likewise.
9237 (arm_sw_breakpoint_from_kind): Likewise.
9238 (arm_breakpoint_kind_from_current_state): Likewise.
9239 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9240 (arm_sw_breakpoint_from_kind): Declare.
9241 (arm_breakpoint_kind_from_current_state): Declare.
9242 (arm_breakpoint_at): Declare.
9243 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9244 arm_sw_breakpoint_from_kind if process is 32-bit.
9245 (aarch64_breakpoint_kind_from_pc): New function.
9246 (aarch64_breakpoint_kind_from_current_state): New function.
9247 (the_low_target): Initialize fields breakpoint_kind_from_pc
9248 and breakpoint_kind_from_current_state.
9249 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9250 linux-aarch32-low.c.
9251 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9252 (arm_breakpoint, arm_breakpoint_len): Likewise.
9253 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9254 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9255 (arm_is_thumb_mode): Likewise.
9256 (arm_breakpoint_at): Likewise.
9257 (arm_breakpoint_kind_from_pc): Likewise.
9258 (arm_sw_breakpoint_from_kind): Likewise.
9259 (arm_breakpoint_kind_from_current_state): Likewise.
9260
9261 Revert:
9262 2015-08-04 Yao Qi <yao.qi@linaro.org>
9263
9264 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9265 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9266 * server.c (extended_protocol): Remove "static".
9267 * server.h (extended_protocol): Declare it.
9268
ece66d65
JS
92692015-12-04 Josh Stone <jistone@redhat.com>
9270
9271 * target.h (struct target_ops) <arch_setup>: Rename to ...
9272 (struct target_ops) <post_create_inferior>: ... this.
9273 (target_arch_setup): Rename to ...
9274 (target_post_create_inferior): ... this, calling post_create_inferior.
9275 * server.c (start_inferior): Update target_arch_setup calls to
9276 target_post_create_inferior.
9277 * linux-low.c (linux_low_ptrace_options): Forward declare.
9278 (linux_arch_setup): Update its comment for general use.
9279 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9280 (struct linux_target_ops): Use linux_post_create_inferior.
9281 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9282 to post_create_inferior.
9283 * nto-low.c (struct nto_target_ops): Likewise.
9284 * spu-low.c (struct spu_target_ops): Likewise.
9285 * win32-low.c (struct win32_target_ops): Likewise.
9286
e58c48b4
AT
92872015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9288
9289 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9290
fbec8956
AT
92912015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9292
9293 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9294 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9295 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9296 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9297 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9298 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9299 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9300 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9301 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9302 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9303 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9304 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9305
9b4c5f87
AT
93062015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9307
9308 * linux-low.c (linux_look_up_symbols): Don't call
9309 linux_supports_traceclone.
9310 * linux-low.h (thread_db_init): Remove use_events argument.
9311 * thread-db.c (thread_db_use_event): Remove global variable.
9312 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9313 (struct thread_db) <td_create_bp>: Remove field.
9314 (thread_db_create_event): Remove function.
9315 (thread_db_enable_reporting): Likewise.
9316 (find_one_thread): Don't check for thread_db_use_events.
9317 (attach_thread): Likewise.
9318 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9319 (try_thread_db_load_1): Don't check for thread_db_use_events.
9320 (thread_db_init): Remove use_events argument and thread events
9321 handling.
9322 (remove_thread_event_breakpoints): Remove function.
9323 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9324
7d00775e
AT
93252015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9326
9327 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9328 New function.
9329 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9330 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9331 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9332 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9333 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9334 Initialize.
9335 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9336 New function.
9337 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9338 * linux-low.c (can_hardware_single_step): Use
9339 supports_hardware_single_step.
9340 (can_software_single_step): New function.
9341 (start_step_over): Call can_software_single_step.
9342 (linux_supports_hardware_single_step): New function.
9343 (struct target_ops) <supports_software_single_step>: Initialize.
9344 * linux-low.h (struct linux_target_ops)
9345 <supports_hardware_single_step>: Initialize.
9346 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9347 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9348 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9349 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9350 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9351 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9352 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9353 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9354 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9355 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9356 Initialize.
9357 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9358 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9359 Initialize.
9360 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9361 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9362 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9363 New function.
9364 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9365 * target.h (struct target_ops): <supports_software_single_step>:
9366 New field.
9367 (target_supports_software_single_step): New macro.
9368
2d97cd35
AT
93692015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9370
9371 * linux-low.c (linux_wait_1): Fix pc advance condition.
9372 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9373 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9374
769ef81f
AT
93752015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9376
9377 * linux-arm-low.c (arm_is_thumb_mode): New function.
9378 (arm_breakpoint_at): Use arm_is_thumb_mode.
9379 (arm_breakpoint_kind_from_current_state): New function.
9380 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9381 Initialize.
9382 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9383 (linux_breakpoint_kind_from_current_state): New function.
9384 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9385 * linux-low.h (struct linux_target_ops)
9386 <breakpoint_kind_from_current_state>: New field.
9387 * target.h (struct target_ops): Likewise.
9388 (target_breakpoint_kind_from_current_state): New macro.
9389
1bebeeca
PA
93902015-11-30 Pedro Alves <palves@redhat.com>
9391
9392 * linux-low.c (linux_resume): Wake up the event loop before
9393 returning.
9394
a67a9fae
PA
93952015-11-30 Pedro Alves <palves@redhat.com>
9396
9397 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9398 check.
9399 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9400 to -1.
9401 * target.c (struct thread_search): New structure.
9402 (thread_search_callback): New function.
9403 (prev_general_thread): New global.
9404 (prepare_to_access_memory, done_accessing_memory): New functions.
9405 * target.h (prepare_to_access_memory, done_accessing_memory):
9406 Replace macros with function declarations.
9407
f2faf941
PA
94082015-11-30 Pedro Alves <palves@redhat.com>
9409
9410 PR 14618
9411 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9412 report TARGET_WAITKIND_NO_RESUMED.
9413 * remote-utils.c (prepare_resume_reply): Handle
9414 TARGET_WAITKIND_NO_RESUMED.
9415 * server.c (report_no_resumed): New global.
9416 (handle_query) <qSupported>: Handle "no-resumed+". Report
9417 "no-resumed+" support.
9418 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9419 return error if the client doesn't support no-resumed events.
9420 (push_stop_notification): New function.
9421 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9422 events if the client supports them.
9423
a681f9c9
PA
94242015-11-30 Pedro Alves <palves@redhat.com>
9425
9426 * linux-low.c (thread_still_has_status_pending_p): Don't check
9427 vCont;t here.
9428 (lwp_resumed): New function.
9429 (status_pending_p_callback): Return early if the LWP is not
9430 supposed to be resumed.
9431
65706a29
PA
94322015-11-30 Pedro Alves <palves@redhat.com>
9433
9434 * linux-low.c (handle_extended_wait): Assert that the LWP's
9435 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9436 thread create events, leave the new child's status pending.
9437 (linux_low_filter_event): If GDB wants to hear about thread exit
9438 events, leave the LWP marked dead and don't delete it.
9439 (linux_wait_for_event_filtered): Don't check for thread exit.
9440 (filter_exit_event): New function.
9441 (linux_wait_1): Use it, when returning an exit event.
9442 (linux_resume_one_lwp_throw): Assert that the LWP's
9443 waitstatus is TARGET_WAITKIND_IGNORE.
9444 * remote-utils.c (prepare_resume_reply): Handle
9445 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9446 * server.c (report_thread_events): New global.
9447 (handle_general_set): Handle QThreadEvents.
9448 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9449 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9450 TARGET_WAITKIND_THREAD_EXITED.
9451 * server.h (report_thread_events): Declare.
9452
56cf4bed
PA
94532015-11-30 Pedro Alves <palves@redhat.com>
9454
9455 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9456 the thread's last_resume_kind was resume_stop.
9457
500c1d85
PA
94582015-11-30 Pedro Alves <palves@redhat.com>
9459
9460 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9461 before returning.
9462
de979965
PA
94632015-11-30 Pedro Alves <palves@redhat.com>
9464
9465 * server.c (handle_v_requests): Handle vCtrlC.
9466
34c65914
PA
94672015-11-30 Pedro Alves <palves@redhat.com>
9468
9469 * gdbthread.h (find_any_thread_of_pid): Declare.
9470 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9471 functions.
9472 * server.c (handle_query): If current_thread is NULL, look for
9473 another thread of the selected process.
9474
79efa585 94752015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9476 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9477
9478 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9479 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9480 name in reply.
9481 * target.h (struct target_ops) <thread_name>: New field.
9482 (target_thread_name): New macro.
9483
80d82c19
JB
94842015-11-23 Joel Brobecker <brobecker@adacore.com>
9485
9486 * regcache.h (regcache_invalidate_pid): Add declaration.
9487 * regcache.c (regcache_invalidate_pid): New function, extracted
9488 from regcache_invalidate.
9489 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9490 Add trivial documentation comment.
9491 * lynx-low.c: Use regcache_invalidate_pid instead of
9492 regcache_invalidate.
9493
64da5dd5
JB
94942015-11-23 Joel Brobecker <brobecker@adacore.com>
9495
9496 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9497 and Elf64_auxv_t if the target is Android.
9498
37ce4055
DE
94992015-11-22 Doug Evans <xdje42@gmail.com>
9500
9501 * target.h: #include <sys/types.h>.
9502
06e03fff
PA
95032015-11-19 Pedro Alves <palves@redhat.com>
9504
9505 * linux-low.c (linux_process_qsupported): Change prototype.
9506 Adjust.
9507 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9508 Change prototype.
9509 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9510 and adjust to loop over all features.
9511 * server.c (handle_query) <qSupported>: Adjust to call
9512 target_process_qsupported once, passing it a vector of unprocessed
9513 features.
9514 * target.h (struct target_ops) <process_qsupported>: Change
9515 prototype.
9516 (target_process_qsupported): Adjust.
9517
9a084706
PA
95182015-11-19 Pedro Alves <palves@redhat.com>
9519
9520 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9521 mode.
9522 * configure: Regenerate.
9523
dad44a1f
PA
95242015-11-19 Pedro Alves <palves@redhat.com>
9525
9526 * configure: Regenerate.
9527
231c0592
YQ
95282015-11-19 Yao Qi <yao.qi@linaro.org>
9529
9530 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9531 type to uint32_t.
9532
6c1c9a8b
YQ
95332015-11-19 Yao Qi <yao.qi@linaro.org>
9534
9535 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9536 (struct aarch64_operand): Move enum out.
9537
9caa3311
YQ
95382015-11-19 Yao Qi <yao.qi@linaro.org>
9539
9540 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9541 struct user_fpsimd_state *.
9542 (aarch64_store_fpregset): Likewise.
9543
6a69a054
YQ
95442015-11-19 Yao Qi <yao.qi@linaro.org>
9545
9546 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9547 struct user_pt_regs *.
9548 (aarch64_store_gregset): Likewise.
9549
1798301e
PA
95502015-11-18 Pedro Alves <palves@redhat.com>
9551
9552 * Makefile.in (all_object_files): Add $IPA_OBJS.
9553
ce7715e2
PA
95542015-11-17 Pedro Alves <palves@redhat.com>
9555
9556 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9557 GDB_SIGNAL_0 and gdb_signal_to_string.
9558
c0879059
PA
95592015-11-17 Pedro Alves <palves@redhat.com>
9560
9561 * win32-low.c (handle_output_debug_string): Remove parameter.
9562 (win32_kill): Remove our_status local and adjust call to
9563 handle_output_debug_string.
9564 (get_child_debug_event): Adjust call to
9565 handle_output_debug_string.
9566
1996e237
SM
95672015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9568
9569 * linux-mips-low.c (mips_fill_gregset): Add cast.
9570 (mips_store_gregset): Likewise.
9571 (mips_fill_fpregset): Likewise.
9572 (mips_store_fpregset): Likewise.
9573
cbec665b
SM
95742015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9575
9576 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9577 priv.
9578
eb3e3c67
SM
95792015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9580
9581 * linux-mips-low.c (mips_linux_new_thread): Change type of
9582 watch_type to enum target_hw_bp_type.
9583
171de4b8
SM
95842015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9585
9586 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9587 Change return type to arm_hwbp_type.
9588
04248ead
SM
95892015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9590
9591 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9592 (arm_store_gregset): Likewise.
9593 * linux-arm-low.c (arm_get_hwcap): Likewise.
9594 (arm_read_description): Likewise.
9595
04b3479c
SM
95962015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9597
9598 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9599
2bc84e8a
SM
96002015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9601
9602 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9603 (ppc_fill_vsxregset): Likewise.
9604 (ppc_store_vsxregset): Likewise.
9605 (ppc_fill_vrregset): Likewise.
9606 (ppc_store_vrregset): Likewise.
9607 (ppc_fill_evrregset): Likewise.
9608 (ppc_store_evrregset): Likewise.
9609
e6c5bb05
SM
96102015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9611
9612 * linux-ppc-low.c (ppc_usrregs_info): Remove
9613 forward-declaration.
9614 (ppc_arch_setup): Move lower in file.
9615
7ea45d72
SM
96162015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9617
9618 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9619 (ps_pdwrite): Likewise.
9620
69291610
HW
96212015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9622
9623 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9624 to after assert checks.
9625
b42945fd
SM
96262015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9627
9628 * proc-service.c (ps_pdread): Add/adjust casts.
9629 (ps_pdwrite): Add/adjust casts.
9630
d6f85c84
SM
96312015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9632
9633 * server.c (handle_search_memory_1): Cast return value of
9634 memmem.
9635
f98cd059
SM
96362015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9637
9638 * server.c (write_qxfer_response): Change type of data to
9639 gdb_byte *.
9640
d2412fa5
PA
96412015-10-29 Pedro Alves <palves@redhat.com>
9642
9643 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9644
c17414a2
PA
96452015-10-29 Pedro Alves <palves@redhat.com>
9646
9647 * tracepoint.c (clear_installed_tracepoints): Add casts.
9648
e053fbc4
PA
96492015-10-29 Pedro Alves <palves@redhat.com>
9650
9651 * server.c (handle_v_cont, process_serial_event): Add enum
9652 gdb_signal casts to signal parsing code.
9653
add67df8
PA
96542015-10-29 Pedro Alves <palves@redhat.com>
9655
9656 * linux-low.h (NULL_REGSET): Define.
9657 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9658 * linux-arm-low.c (arm_regsets): Likewise.
9659 * linux-crisv32-low.c (cris_regsets): Likewise.
9660 * linux-m68k-low.c (m68k_regsets): Likewise.
9661 * linux-mips-low.c (mips_regsets): Likewise.
9662 * linux-nios2-low.c (nios2_regsets): Likewise.
9663 * linux-ppc-low.c (ppc_regsets): Likewise.
9664 * linux-s390-low.c (s390_regsets): Likewise.
9665 * linux-sh-low.c (sh_regsets): Likewise.
9666 * linux-sparc-low.c (sparc_regsets): Likewise.
9667 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9668 * linux-tile-low.c (tile_regsets): Likewise.
9669 * linux-x86-low.c (x86_regsets): Likewise.
9670 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9671
50bc912a
PA
96722015-10-29 Pedro Alves <palves@redhat.com>
9673
9674 * linux-low.h (NULL_REGSET): Define.
9675 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9676 * linux-arm-low.c (arm_regsets): Likewise.
9677 * linux-crisv32-low.c (cris_regsets): Likewise.
9678 * linux-m68k-low.c (m68k_regsets): Likewise.
9679 * linux-mips-low.c (mips_regsets): Likewise.
9680 * linux-nios2-low.c (nios2_regsets): Likewise.
9681 * linux-ppc-low.c (ppc_regsets): Likewise.
9682 * linux-s390-low.c (s390_regsets): Likewise.
9683 * linux-sh-low.c (sh_regsets): Likewise.
9684 * linux-sparc-low.c (sparc_regsets): Likewise.
9685 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9686 * linux-tile-low.c (tile_regsets): Likewise.
9687 * linux-x86-low.c (x86_regsets): Likewise.
9688 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9689
682b2546
DE
96902015-10-26 Doug Evans <dje@google.com>
9691
9692 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9693
963843d4
DE
96942015-10-26 Doug Evans <dje@google.com>
9695
9696 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9697
d41401ac
DE
96982015-10-26 Doug Evans <dje@google.com>
9699
9700 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9701 for debug_printf.
9702 (attach_thread, find_new_threads_callback): Ditto.
9703
3db28855
AT
97042015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9705
9706 * mem-break.h (set_breakpoint_data): Remove.
9707
fb78e89c
AT
97082015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9709
9710 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9711 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9712 (initialize_low): Remove set_breakpoint_data call.
9713 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9714 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9715 (initialize_low): Remove set_breakpoint_data call.
9716 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9717 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9718 (initialize_low): Remove set_breakpoint_data call.
9719
2e6ee069
AT
97202015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9721
9722 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9723 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9724 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9725 * target.h (target_breakpoint_kind_from_pc): New macro.
9726
1652a986
AT
97272015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9728
9729 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9730 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9731 the default breakpoint kind.
9732
abeead09
AT
97332015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9734
9735 * linux-arm-low.c (arm_supports_z_point_type): Add software
9736 breakpoint support.
9737
b0b4b501
AT
97382015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9739
9740 * linux-arm-low.c: Refactor breakpoint definitions.
9741 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9742 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9743
8689682c
AT
97442015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9745
9746 * Makefile.in: Add arm.c/o.
9747 * configure.srv: Likewise.
9748 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9749 (arm_breakpoint_kind_from_pc): New function.
9750 (arm_sw_breakpoint_from_kind): Return proper kind.
9751 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9752
27165294
AT
97532015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9754
9755 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9756 removal.
9757 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9758 (struct raw_breakpoint) <size>: Remove.
9759 (struct raw_breakpoint) <kind>: Add.
9760 (bp_size): New function.
9761 (bp_opcode): Likewise.
9762 (find_raw_breakpoint_at): Adjust for kind.
9763 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9764 (remove_memory_breakpoint): Adjust for kind call bp_size.
9765 (set_raw_breakpoint_at): Adjust for kind.
9766 (set_breakpoint): Likewise.
9767 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9768 (delete_raw_breakpoint): Adjust for kind.
9769 (delete_breakpoint): Likewise.
9770 (find_gdb_breakpoint): Likewise.
9771 (set_gdb_breakpoint_1): Likewise.
9772 (set_gdb_breakpoint): Likewise.
9773 (delete_gdb_breakpoint_1): Likewise.
9774 (delete_gdb_breakpoint): Likewise.
9775 (uninsert_raw_breakpoint): Likewise.
9776 (reinsert_raw_breakpoint): Likewise.
9777 (set_breakpoint_data): Remove.
9778 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9779 (check_mem_read): Adjust for kind call bp_size.
9780 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9781 (clone_one_breakpoint): Adjust for kind.
9782 * mem-break.h (set_gdb_breakpoint): Likewise.
9783 (delete_gdb_breakpoint): Likewise.
9784 * server.c (process_serial_event): Likewise.
9785
dd373349
AT
97862015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9787
9788 * linux-aarch64-low.c (aarch64_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-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9794 (arm_sw_breakpoint_from_kind): New function.
9795 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9796 (struct linux_target_ops) <breakpoint>: Remove.
9797 (struct linux_target_ops) <breakpoint_len>: Remove.
9798 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9799 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9800 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9801 (struct linux_target_ops) <breakpoint>: Remove.
9802 (struct linux_target_ops) <breakpoint_len>: Remove.
9803 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9804 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9805 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9806 (struct linux_target_ops) <breakpoint>: Remove.
9807 (struct linux_target_ops) <breakpoint_len>: Remove.
9808 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9809 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9810 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9811 and sw_breakpoint_from_kind to increment the pc.
9812 (linux_breakpoint_kind_from_pc): New function.
9813 (linux_sw_breakpoint_from_kind): New function.
9814 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9815 (initialize_low): Call breakpoint_kind_from_pc and
9816 sw_breakpoint_from_kind to replace breakpoint_data/len.
9817 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9818 New field.
9819 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9820 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9821 (struct linux_target_ops) <breakpoint>: Remove.
9822 (struct linux_target_ops) <breakpoint_len>: Remove.
9823 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9824 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9825 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9826 (struct linux_target_ops) <breakpoint>: Remove.
9827 (struct linux_target_ops) <breakpoint_len>: Remove.
9828 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9829 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9830 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9831 (struct linux_target_ops) <breakpoint>: Remove.
9832 (struct linux_target_ops) <breakpoint_len>: Remove.
9833 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9834 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9835 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9836 (struct linux_target_ops) <breakpoint>: Remove.
9837 (struct linux_target_ops) <breakpoint_len>: Remove.
9838 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9839 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9840 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9841 (struct linux_target_ops) <breakpoint>: Remove.
9842 (struct linux_target_ops) <breakpoint_len>: Remove.
9843 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9844 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9845 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9846 (struct linux_target_ops) <breakpoint>: Remove.
9847 (struct linux_target_ops) <breakpoint_len>: Remove.
9848 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9849 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9850 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9851 (struct linux_target_ops) <breakpoint>: Remove.
9852 (struct linux_target_ops) <breakpoint_len>: Remove.
9853 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9854 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9855 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9856 (struct linux_target_ops) <breakpoint>: Remove.
9857 (struct linux_target_ops) <breakpoint_len>: Remove.
9858 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9859 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9860 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9861 (struct linux_target_ops) <breakpoint>: Remove.
9862 (struct linux_target_ops) <breakpoint_len>: Remove.
9863 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9864 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9865 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9866 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9867 (struct linux_target_ops) <breakpoint>: Remove.
9868 (struct linux_target_ops) <breakpoint_len>: Remove.
9869 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9870 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9871 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9872 (struct linux_target_ops) <breakpoint>: Remove.
9873 (struct linux_target_ops) <breakpoint_len>: Remove.
9874 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9875 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9876
4cd98a19
AT
98772015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9878
9879 * linux-cris-low.c (cris_get_pc): Remove void arg.
9880
774ee6d2
AR
98812015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9882
9883 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9884 variable name.
9885
833dcd29
AR
98862015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9887
9888 * inferiors.c (thread_pid_matches_callback): New function.
9889 (find_thread_process): New function.
9890 (remove_thread): Reset current_thread.
9891 (remove_process): Assert threads have been removed first.
9892
8d689ee5
YQ
98932015-10-15 Yao Qi <yao.qi@linaro.org>
9894
9895 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9896 if it is 3.
9897 (aarch64_remove_point): Likewise.
9898 * regcache.c (regcache_register_size): New function.
9899
1c2e1515
YQ
99002015-10-12 Yao Qi <yao.qi@linaro.org>
9901
9902 * linux-aarch64-low.c: Update all callers as emit_load_store
9903 is renamed to aarch64_emit_load_store.
9904
e1c587c3
YQ
99052015-10-12 Yao Qi <yao.qi@linaro.org>
9906
9907 * linux-aarch64-low.c: Update all callers of function renaming
9908 from emit_insn to aarch64_emit_insn.
9909
b6542f81
YQ
99102015-10-12 Yao Qi <yao.qi@linaro.org>
9911
9912 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9913 arch/aarch64-insn.h.
9914 (struct aarch64_memory_operand): Likewise.
9915 (ENCODE): Likewise.
9916 (emit_insn): Move to arch/aarch64-insn.c.
9917 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9918 (emit_load_store): Move to arch/aarch64-insn.c.
9919 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9920 (can_encode_int32): Remove.
9921
246994ce
YQ
99222015-10-12 Yao Qi <yao.qi@linaro.org>
9923
9924 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9925 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9926 (aarch64_relocate_instruction): Likewise.
9927 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9928 (struct aarch64_insn_visitor): Likewise.
9929
0badd99f
YQ
99302015-10-12 Yao Qi <yao.qi@linaro.org>
9931
9932 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9933 (struct aarch64_insn_visitor): New.
9934 (struct aarch64_insn_relocation_data): New.
9935 (aarch64_ftrace_insn_reloc_b): New function.
9936 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9937 (aarch64_ftrace_insn_reloc_cb): Likewise.
9938 (aarch64_ftrace_insn_reloc_tb): Likewise.
9939 (aarch64_ftrace_insn_reloc_adr): Likewise.
9940 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9941 (aarch64_ftrace_insn_reloc_others): Likewise.
9942 (visitor): New.
9943 (aarch64_relocate_instruction): Use visitor.
9944
dfaffe9d
YQ
99452015-10-12 Yao Qi <yao.qi@linaro.org>
9946
9947 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9948 int. Add argument buf.
9949 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9950 aarch64_relocate_instruction.
9951
70b439f0
YQ
99522015-10-12 Yao Qi <yao.qi@linaro.org>
9953
9954 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9955 argument insn. Remove local variable insn. Don't call
9956 target_read_uint32.
9957 (aarch64_install_fast_tracepoint_jump_pad): Call
9958 target_read_uint32.
9959
7781c06f
YQ
99602015-09-30 Yao Qi <yao.qi@linaro.org>
9961
9962 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9963 (emit_load_store_pair): Likewise.
9964
9a3c8263
SM
99652015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9966
9967 * dll.c (match_dll): Add cast(s).
9968 (unloaded_dll): Likewise.
9969 * linux-low.c (second_thread_of_pid_p): Likewise.
9970 (delete_lwp_callback): Likewise.
9971 (count_events_callback): Likewise.
9972 (select_event_lwp_callback): Likewise.
9973 (linux_set_resume_request): Likewise.
9974 * server.c (accumulate_file_name_length): Likewise.
9975 (emit_dll_description): Likewise.
9976 (handle_qxfer_threads_worker): Likewise.
9977 (visit_actioned_threads): Likewise.
9978 * thread-db.c (any_thread_of): Likewise.
9979 * tracepoint.c (same_process_p): Likewise.
9980 (match_blocktype): Likewise.
9981 (build_traceframe_info_xml): Likewise.
9982
224c3ddb
SM
99832015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9984
9985 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9986 assignment.
9987 (gdb_unparse_agent_expr): Likewise.
9988 * hostio.c (require_data): Likewise.
9989 (handle_pread): Likewise.
9990 * linux-low.c (disable_regset): Likewise.
9991 (fetch_register): Likewise.
9992 (store_register): Likewise.
9993 (get_dynamic): Likewise.
9994 (linux_qxfer_libraries_svr4): Likewise.
9995 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9996 (set_fast_tracepoint_jump): Likewise.
9997 (uninsert_fast_tracepoint_jumps_at): Likewise.
9998 (reinsert_fast_tracepoint_jumps_at): Likewise.
9999 (validate_inserted_breakpoint): Likewise.
10000 (clone_agent_expr): Likewise.
10001 * regcache.c (init_register_cache): Likewise.
10002 * remote-utils.c (putpkt_binary_1): Likewise.
10003 (decode_M_packet): Likewise.
10004 (decode_X_packet): Likewise.
10005 (look_up_one_symbol): Likewise.
10006 (relocate_instruction): Likewise.
10007 (monitor_output): Likewise.
10008 * server.c (handle_search_memory): Likewise.
10009 (handle_qxfer_exec_file): Likewise.
10010 (handle_qxfer_libraries): Likewise.
10011 (handle_qxfer): Likewise.
10012 (handle_query): Likewise.
10013 (handle_v_cont): Likewise.
10014 (handle_v_run): Likewise.
10015 (captured_main): Likewise.
10016 * target.c (write_inferior_memory): Likewise.
10017 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10018 * tracepoint.c (init_trace_buffer): Likewise.
10019 (add_tracepoint_action): Likewise.
10020 (add_traceframe): Likewise.
10021 (add_traceframe_block): Likewise.
10022 (cmd_qtdpsrc): Likewise.
10023 (cmd_qtdv): Likewise.
10024 (cmd_qtstatus): Likewise.
10025 (response_source): Likewise.
10026 (response_tsv): Likewise.
10027 (cmd_qtnotes): Likewise.
10028 (gdb_collect): Likewise.
10029 (initialize_tracepoint): Likewise.
10030
afbe19f8
PL
100312015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10032
10033 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10034 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10035 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10036 <NOP>: New.
10037 (enum aarch64_condition_codes): New enum.
10038 (w0): New static global.
10039 (fp): Likewise.
10040 (lr): Likewise.
10041 (struct aarch64_memory_operand) <type>: New
10042 MEMORY_OPERAND_POSTINDEX type.
10043 (postindex_memory_operand): New helper function.
10044 (emit_ret): New function.
10045 (emit_load_store_pair): New function, factored out of emit_stp
10046 with support for MEMORY_OPERAND_POSTINDEX.
10047 (emit_stp): Rewrite using emit_load_store_pair.
10048 (emit_ldp): New function.
10049 (emit_load_store): Likewise.
10050 (emit_ldr): Mention post-index instruction in comment.
10051 (emit_ldrh): New function.
10052 (emit_ldrb): New function.
10053 (emit_ldrsw): Mention post-index instruction in comment.
10054 (emit_str): Likewise.
10055 (emit_subs): New function.
10056 (emit_cmp): Likewise.
10057 (emit_and): Likewise.
10058 (emit_orr): Likewise.
10059 (emit_orn): Likewise.
10060 (emit_eor): Likewise.
10061 (emit_mvn): Likewise.
10062 (emit_lslv): Likewise.
10063 (emit_lsrv): Likewise.
10064 (emit_asrv): Likewise.
10065 (emit_mul): Likewise.
10066 (emit_sbfm): Likewise.
10067 (emit_sbfx): Likewise.
10068 (emit_ubfm): Likewise.
10069 (emit_ubfx): Likewise.
10070 (emit_csinc): Likewise.
10071 (emit_cset): Likewise.
10072 (emit_nop): Likewise.
10073 (emit_ops_insns): New helper function.
10074 (emit_pop): Likewise.
10075 (emit_push): Likewise.
10076 (aarch64_emit_prologue): New function.
10077 (aarch64_emit_epilogue): Likewise.
10078 (aarch64_emit_add): Likewise.
10079 (aarch64_emit_sub): Likewise.
10080 (aarch64_emit_mul): Likewise.
10081 (aarch64_emit_lsh): Likewise.
10082 (aarch64_emit_rsh_signed): Likewise.
10083 (aarch64_emit_rsh_unsigned): Likewise.
10084 (aarch64_emit_ext): Likewise.
10085 (aarch64_emit_log_not): Likewise.
10086 (aarch64_emit_bit_and): Likewise.
10087 (aarch64_emit_bit_or): Likewise.
10088 (aarch64_emit_bit_xor): Likewise.
10089 (aarch64_emit_bit_not): Likewise.
10090 (aarch64_emit_equal): Likewise.
10091 (aarch64_emit_less_signed): Likewise.
10092 (aarch64_emit_less_unsigned): Likewise.
10093 (aarch64_emit_ref): Likewise.
10094 (aarch64_emit_if_goto): Likewise.
10095 (aarch64_emit_goto): Likewise.
10096 (aarch64_write_goto_address): Likewise.
10097 (aarch64_emit_const): Likewise.
10098 (aarch64_emit_call): Likewise.
10099 (aarch64_emit_reg): Likewise.
10100 (aarch64_emit_pop): Likewise.
10101 (aarch64_emit_stack_flush): Likewise.
10102 (aarch64_emit_zero_ext): Likewise.
10103 (aarch64_emit_swap): Likewise.
10104 (aarch64_emit_stack_adjust): Likewise.
10105 (aarch64_emit_int_call_1): Likewise.
10106 (aarch64_emit_void_call_2): Likewise.
10107 (aarch64_emit_eq_goto): Likewise.
10108 (aarch64_emit_ne_goto): Likewise.
10109 (aarch64_emit_lt_goto): Likewise.
10110 (aarch64_emit_le_goto): Likewise.
10111 (aarch64_emit_gt_goto): Likewise.
10112 (aarch64_emit_ge_got): Likewise.
10113 (aarch64_emit_ops_impl): New static global variable.
10114 (aarch64_emit_ops): New target function, return
10115 &aarch64_emit_ops_impl.
10116 (struct linux_target_ops): Install it.
10117
bb903df0
PL
101182015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10119
10120 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10121 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10122 aarch64-ipa.o.
10123 * linux-aarch64-ipa.c: New file.
10124 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10125 and endian.h.
10126 (aarch64_get_thread_area): New target method.
10127 (extract_signed_bitfield): New helper function.
10128 (aarch64_decode_ldr_literal): New function.
10129 (enum aarch64_opcodes): New enum.
10130 (struct aarch64_register): New struct.
10131 (struct aarch64_operand): New struct.
10132 (x0): New static global.
10133 (x1): Likewise.
10134 (x2): Likewise.
10135 (x3): Likewise.
10136 (x4): Likewise.
10137 (w2): Likewise.
10138 (ip0): Likewise.
10139 (sp): Likewise.
10140 (xzr): Likewise.
10141 (aarch64_register): New helper function.
10142 (register_operand): Likewise.
10143 (immediate_operand): Likewise.
10144 (struct aarch64_memory_operand): New struct.
10145 (offset_memory_operand): New helper function.
10146 (preindex_memory_operand): Likewise.
10147 (enum aarch64_system_control_registers): New enum.
10148 (ENCODE): New macro.
10149 (emit_insn): New helper function.
10150 (emit_b): New function.
10151 (emit_bcond): Likewise.
10152 (emit_cb): Likewise.
10153 (emit_tb): Likewise.
10154 (emit_blr): Likewise.
10155 (emit_stp): Likewise.
10156 (emit_ldp_q_offset): Likewise.
10157 (emit_stp_q_offset): Likewise.
10158 (emit_load_store): Likewise.
10159 (emit_ldr): Likewise.
10160 (emit_ldrsw): Likewise.
10161 (emit_str): Likewise.
10162 (emit_ldaxr): Likewise.
10163 (emit_stxr): Likewise.
10164 (emit_stlr): Likewise.
10165 (emit_data_processing_reg): Likewise.
10166 (emit_data_processing): Likewise.
10167 (emit_add): Likewise.
10168 (emit_sub): Likewise.
10169 (emit_mov): Likewise.
10170 (emit_movk): Likewise.
10171 (emit_mov_addr): Likewise.
10172 (emit_mrs): Likewise.
10173 (emit_msr): Likewise.
10174 (emit_sevl): Likewise.
10175 (emit_wfe): Likewise.
10176 (append_insns): Likewise.
10177 (can_encode_int32_in): New helper function.
10178 (aarch64_relocate_instruction): New function.
10179 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10180 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10181 (struct linux_target_ops): Install aarch64_get_thread_area,
10182 aarch64_install_fast_tracepoint_jump_pad and
10183 aarch64_get_min_fast_tracepoint_insn_len.
10184
787749ea
PL
101852015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10186
10187 * Makefile.in (aarch64-insn.o): New rule.
10188 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10189
9812b2e6
YQ
101902015-09-21 Yao Qi <yao.qi@linaro.org>
10191
10192 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10193
18fe412b
YQ
101942015-09-21 Yao Qi <yao.qi@linaro.org>
10195
10196 * tracepoint.c (max_jump_pad_size): Remove.
10197
a0cc84cd
YQ
101982015-09-18 Yao Qi <yao.qi@linaro.org>
10199
10200 * linux-aarch64-low.c: Don't include sys/uio.h.
10201 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10202
d78908cf
WW
102032015-09-16 Wei-cheng Wang <cole945@gmail.com>
10204
10205 * tracepoint.c (eval_result_type): Change prototype.
10206 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10207
d57e0d50
PA
102082015-09-15 Pedro Alves <palves@redhat.com>
10209
10210 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10211 Check whether to report exec events instead of checking whether
10212 multiprocess is enabled.
10213
5a676acc
PA
102142015-09-15 Pedro Alves <palves@redhat.com>
10215
10216 PR remote/18965
10217 * remote-utils.c (prepare_resume_reply): Merge
10218 TARGET_WAITKIND_VFORK_DONE switch case with the
10219 TARGET_WAITKIND_FORKED case.
10220
7c5d0fad
YQ
102212015-09-15 Yao Qi <yao.qi@linaro.org>
10222
10223 * server.c (handle_query): Check string comparison using
10224 "else if" instead of "if".
10225
750ce8d1
YQ
102262015-09-15 Yao Qi <yao.qi@linaro.org>
10227
10228 * server.c (vCont_supported): New global variable.
10229 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10230 matches. Append ";vContSupported+" to own_buf.
10231 (handle_v_requests): Append ";s;S" to own_buf if target supports
10232 hardware single step or vCont_supported is false.
10233 (capture_main): Set vCont_supported to zero.
10234
70b90b91
YQ
102352015-09-15 Yao Qi <yao.qi@linaro.org>
10236
10237 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10238 it to ...
10239 (linux_supports_hardware_single_step): ... New function.
10240 (linux_target_ops): Update.
10241 * lynx-low.c (lynx_target_ops): Set field
10242 supports_hardware_single_step to target_can_do_hardware_single_step.
10243 * nto-low.c (nto_target_ops): Likewise.
10244 * spu-low.c (spu_target_ops): Likewise.
10245 * win32-low.c (win32_target_ops): Likewise.
10246 * target.c (target_can_do_hardware_single_step): New function.
10247 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10248 Remove. <supports_hardware_single_step>: New field.
10249 (target_supports_conditional_breakpoints): Remove.
10250 (target_supports_hardware_single_step): New macro.
10251 (target_can_do_hardware_single_step): Declare.
10252 * server.c (handle_query): Use target_supports_hardware_single_step
10253 instead of target_supports_conditional_breakpoints.
10254
ade90bde
YQ
102552015-09-15 Yao Qi <yao.qi@linaro.org>
10256
10257 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10258 function.
10259 (struct linux_target_ops the_low_target): Install
10260 aarch64_linux_siginfo_fixup.
10261
94585166
DB
102622015-09-11 Don Breazeal <donb@codesourcery.com>
10263 Luis Machado <lgustavo@codesourcery.com>
10264
10265 * linux-low.c (linux_mourn): Static declaration.
10266 (linux_arch_setup): Move in front of
10267 handle_extended_wait.
10268 (linux_arch_setup_thread): New function.
10269 (handle_extended_wait): Handle exec events. Call
10270 linux_arch_setup_thread. Make event_lwp argument a
10271 pointer-to-a-pointer.
10272 (check_zombie_leaders): Do not check stopped threads.
10273 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10274 (linux_low_filter_event): Add lwp and thread for exec'ing
10275 non-leader thread if leader thread has been deleted.
10276 Refactor code into linux_arch_setup_thread and call it.
10277 Pass child lwp pointer by reference to handle_extended_wait.
10278 (linux_wait_for_event_filtered): Update comment.
10279 (linux_wait_1): Prevent clobbering exec event status.
10280 (linux_supports_exec_events): New function.
10281 (linux_target_ops) <supports_exec_events>: Initialize new member.
10282 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10283 new member.
10284 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10285 * server.c (report_exec_events): New global variable.
10286 (handle_query): Handle qSupported query for exec-events feature.
10287 (captured_main): Initialize report_exec_events.
10288 * server.h (report_exec_events): Declare new global variable.
10289 * target.h (struct target_ops) <supports_exec_events>: New
10290 member.
10291 (target_supports_exec_events): New macro.
10292 * win32-low.c (win32_target_ops) <supports_exec_events>:
10293 Initialize new member.
10294
0568462b
MM
102952015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10296
10297 * linux-low.c (linux_low_enable_btrace): Remove.
10298 (linux_target_ops): Replace linux_low_enable_btrace with
10299 linux_enable_btrace.
10300
39edd165
YQ
103012015-09-03 Yao Qi <yao.qi@linaro.org>
10302
10303 * linux-aarch64-low.c (aarch64_insert_point): Call
10304 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10305 returns true.
10306
1db33b5a
UW
103072015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10308
10309 * linux-low.c (check_stopped_by_breakpoint): Use
10310 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10311
ab290430
PA
103122015-08-27 Pedro Alves <palves@redhat.com>
10313
10314 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10315
8d749320
SM
103162015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10317
6711b7f8
SM
10318 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10319 the XNEW-family equivalent.
8d749320
SM
10320 (compile_bytecodes): Likewise.
10321 * dll.c (loaded_dll): Likewise.
10322 * event-loop.c (append_callback_event): Likewise.
10323 (create_file_handler): Likewise.
10324 (create_file_event): Likewise.
10325 * hostio.c (handle_open): Likewise.
10326 * inferiors.c (add_thread): Likewise.
10327 (add_process): Likewise.
10328 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10329 * linux-arm-low.c (arm_new_process): Likewise.
10330 (arm_new_thread): Likewise.
10331 * linux-low.c (add_to_pid_list): Likewise.
10332 (linux_add_process): Likewise.
10333 (handle_extended_wait): Likewise.
10334 (add_lwp): Likewise.
10335 (enqueue_one_deferred_signal): Likewise.
10336 (enqueue_pending_signal): Likewise.
10337 (linux_resume_one_lwp_throw): Likewise.
10338 (linux_resume_one_thread): Likewise.
10339 (linux_read_memory): Likewise.
10340 (linux_write_memory): Likewise.
10341 * linux-mips-low.c (mips_linux_new_process): Likewise.
10342 (mips_linux_new_thread): Likewise.
10343 (mips_add_watchpoint): Likewise.
10344 * linux-x86-low.c (initialize_low_arch): Likewise.
10345 * lynx-low.c (lynx_add_process): Likewise.
10346 * mem-break.c (set_raw_breakpoint_at): Likewise.
10347 (set_breakpoint): Likewise.
10348 (add_condition_to_breakpoint): Likewise.
10349 (add_commands_to_breakpoint): Likewise.
10350 (clone_agent_expr): Likewise.
10351 (clone_one_breakpoint): Likewise.
10352 * regcache.c (new_register_cache): Likewise.
10353 * remote-utils.c (look_up_one_symbol): Likewise.
10354 * server.c (queue_stop_reply): Likewise.
10355 (start_inferior): Likewise.
10356 (queue_stop_reply_callback): Likewise.
10357 (handle_target_event): Likewise.
10358 * spu-low.c (fetch_ppc_memory): Likewise.
10359 (store_ppc_memory): Likewise.
10360 * target.c (set_target_ops): Likewise.
10361 * thread-db.c (thread_db_load_search): Likewise.
10362 (try_thread_db_load_1): Likewise.
10363 * tracepoint.c (add_tracepoint): Likewise.
10364 (add_tracepoint_action): Likewise.
10365 (create_trace_state_variable): Likewise.
10366 (cmd_qtdpsrc): Likewise.
10367 (cmd_qtro): Likewise.
10368 (add_while_stepping_state): Likewise.
10369 * win32-low.c (child_add_thread): Likewise.
10370 (get_image_name): Likewise.
10371
ed8b7b42
YQ
103722015-08-25 Yao Qi <yao.qi@linaro.org>
10373
10374 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10375
db3cb7cb
YQ
103762015-08-25 Yao Qi <yao.qi@linaro.org>
10377
10378 * Makefile.in (aarch64-linux.o): New rule.
10379 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10380 srv_tgtobj.
10381 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10382 (aarch64_init_debug_reg_state): Make it extern.
10383 (aarch64_linux_prepare_to_resume): Remove.
10384
f6011a1c
YQ
103852015-08-25 Yao Qi <yao.qi@linaro.org>
10386
10387 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10388 lwp_arch_private_info and ptid_of_lwp.
10389
88e2cf7e
YQ
103902015-08-25 Yao Qi <yao.qi@linaro.org>
10391
10392 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10393 Find proc_info by find_process_pid. All callers updated.
10394
5e35436e
YQ
103952015-08-25 Yao Qi <yao.qi@linaro.org>
10396
10397 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10398 Remove.
10399 (debug_reg_change_callback): Remove.
10400 (aarch64_notify_debug_reg_change): Remove.
10401
4a8a7965
YQ
104022015-08-25 Yao Qi <yao.qi@linaro.org>
10403
10404 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10405 Call current_lwp_ptid.
10406
32a271ee
YQ
104072015-08-25 Yao Qi <yao.qi@linaro.org>
10408
10409 * linux-aarch64-low.c (debug_reg_change_callback): Use
10410 debug_printf.
10411
0d51c8d7
YQ
104122015-08-25 Yao Qi <yao.qi@linaro.org>
10413
10414 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10415
31a43dd5
YQ
104162015-08-25 Yao Qi <yao.qi@linaro.org>
10417
10418 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10419
8ee52567
YQ
104202015-08-25 Yao Qi <yao.qi@linaro.org>
10421
10422 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10423 the code.
10424
ff3f0f45
YQ
104252015-08-25 Yao Qi <yao.qi@linaro.org>
10426
10427 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10428 Remove.
10429 (debug_reg_change_callback): Remove argument entry and add argument
10430 lwp. Remove local variable thread. Don't print thread id in the
10431 debugging output. Don't check whether pid of thread equals to pid.
10432 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10433 iterate_over_lwps instead find_inferior.
10434
3d40fbb5
PA
104352015-08-24 Pedro Alves <palves@redhat.com>
10436
10437 * inferiors.c (get_first_process): New function.
10438 * inferiors.h (get_first_process): New declaration.
10439 * remote-utils.c (read_ptid): Default to the first process in the
10440 list, instead of to the current thread's process.
10441
438e1e42
PA
104422015-08-24 Pedro Alves <palves@redhat.com>
10443
10444 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10445 * event-loop.c: Likewise.
10446 * remote-utils.c: Likewise.
10447 * tracepoint.c: Likewise.
10448
a8c6d4fc
PA
104492015-08-24 Pedro Alves <palves@redhat.com>
10450
10451 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10452 ptid_get_lwp.
10453
99b0bb12
PA
104542015-08-21 Pedro Alves <palves@redhat.com>
10455
10456 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10457 instead of literal 1.
10458
f8904751
PA
104592015-08-21 Pedro Alves <palves@redhat.com>
10460
10461 * tdesc.c (default_description): Explicitly zero-initialize.
10462
465a859e
PA
104632015-08-21 Pedro Alves <palves@redhat.com>
10464
10465 PR gdb/18749
10466 * inferiors.c (remove_thread): Discard any pending stop reply for
10467 this thread.
10468 * server.c (remove_all_on_match_pid): Rename to ...
10469 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10470 instead of a pid.
10471 (discard_queued_stop_replies): Change parameter to a ptid. Now
10472 extern.
10473 (handle_v_kill, kill_inferior_callback, captured_main)
10474 (process_serial_event): Adjust.
10475 * server.h (discard_queued_stop_replies): Declare.
10476
f0db101d
PA
104772015-08-21 Pedro Alves <palves@redhat.com>
10478
10479 * linux-low.c (wait_for_sigstop): Always switch to no thread
10480 selected if the previously current thread dies.
10481 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10482 process instead of the current thread's.
10483 * remote-utils.c (input_interrupt): Don't check if there's no
10484 current thread.
10485 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10486 current thread to the general thread fails, error out.
10487 (handle_qxfer_auxv, handle_qxfer_libraries)
10488 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10489 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10490 (handle_query): Check if there's a thread selected instead of
10491 checking whether there's any thread in the thread list.
10492 (handle_qxfer_threads, handle_qxfer_btrace)
10493 (handle_qxfer_btrace_conf): Don't error out early if there's no
10494 thread in the thread list.
10495 (handle_v_cont, myresume): Don't set the current thread to the
10496 continue thread.
10497 (process_serial_event) <Hg handling>: Also set thread_id if the
10498 previous general thread is still alive.
10499 (process_serial_event) <g/G handling>: If setting the current
10500 thread to the general thread fails, error out.
10501 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10502 thread's lwp instead of the current thread's.
10503 * target.c (set_desired_thread): If the desired thread was not
10504 found, leave the current thread pointing to NULL. Return an int
10505 (boolean) indicating success.
10506 * target.h (set_desired_thread): Change return type to int.
10507
40045d91
MF
105082015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10509
10510 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10511 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10512 #includes.
10513 (ps_get_thread_area): New function.
10514
45face3b
GB
105152015-08-19 Gary Benson <gbenson@redhat.com>
10516
10517 * hostio.c (handle_pread): Do not attempt to read more data
10518 than hostio_reply_with_data can fit in a packet.
10519
16d5f642
JB
105202015-08-18 Joel Brobecker <brobecker@adacore.com>
10521
10522 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10523
a738da3a
MF
105242015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10525
10526 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10527
33ebda9d
PA
105282015-08-06 Pedro Alves <palves@redhat.com>
10529
10530 * tracepoint.c (expr_eval_result): Now an int.
10531
a44892be
PA
105322015-08-06 Pedro Alves <palves@redhat.com>
10533
10534 * gdbthread.h (struct regcache): Forward declare.
10535 (struct thread_info) <regcache_data>: Now a struct regcache
10536 pointer.
10537 * inferiors.c (inferior_regcache_data)
10538 (set_inferior_regcache_data): Now work with struct regcache
10539 pointers.
10540 * inferiors.h (struct regcache): Forward declare.
10541 (inferior_regcache_data, set_inferior_regcache_data): Now work
10542 with struct regcache pointers.
10543 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10544 (free_register_cache_thread): Remove struct regcache pointer
10545 casts.
10546
608a1e46
PA
105472015-08-06 Pedro Alves <palves@redhat.com>
10548
10549 * server.c (captured_main): On error, print the exception message
10550 to stderr, and if run_once is set, throw a quit.
10551
f0ce0d3a
PA
105522015-08-06 Pedro Alves <palves@redhat.com>
10553
10554 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10555 the current thread.
10556
bf47e248
PA
105572015-08-06 Pedro Alves <palves@redhat.com>
10558
10559 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10560 reading beyond the passed in buffer length.
10561
b6b9ffcc
PL
105622015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10563
10564 * tracepoint.c (symbol_list) <required>: Remove.
10565
863d01bd
PA
105662015-08-06 Pedro Alves <palves@redhat.com>
10567
10568 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10569 count if stopping and suspending threads.
10570 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10571 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10572 (linux_detach): Complete an ongoing step-over.
10573 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10574 throughout.
10575 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10576 (linux_wait_1): If passing a signal to the inferior after
10577 finishing a step-over, unsuspend and re-resume all lwps. If we
10578 see a single-step event but the thread should be continuing, don't
10579 pass the trap to gdb.
10580 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10581 internal_error instead of gdb_assert.
10582 (enqueue_pending_signal): New function.
10583 (check_ptrace_stopped_lwp_gone): Add debug output.
10584 (start_step_over): Use internal_error instead of gdb_assert.
10585 (complete_ongoing_step_over): New function.
10586 (linux_resume_one_thread): Don't resume a suspended thread.
10587 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10588 it stepping.
10589
00db26fa
PA
105902015-08-06 Pedro Alves <palves@redhat.com>
10591
10592 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10593 (linux_thread_alive): Use lwp_is_marked_dead.
10594 (extended_event_reported): Delete.
10595 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10596 instead of extended_event_reported.
10597 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10598 as well.
10599 (lwp_is_marked_dead): New function.
10600 (lwp_running): Use lwp_is_marked_dead.
10601 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10602 comment.
10603
ad071a30
PA
106042015-08-06 Pedro Alves <palves@redhat.com>
10605
10606 * linux-low.c (linux_wait_1): Move fork event output out of the
10607 !report_to_gdb check. Pass event_child->waitstatus to
10608 target_waitstatus_to_string instead of ourstatus.
10609
524b57e6
YQ
106102015-08-04 Yao Qi <yao.qi@linaro.org>
10611
10612 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10613 if current_thread is 32 bit.
10614
6085d6f6
YQ
106152015-08-04 Yao Qi <yao.qi@linaro.org>
10616
10617 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10618 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10619 * server.c (extended_protocol): Remove "static".
10620 * server.h (extended_protocol): Declare it.
10621
8a7e4587
YQ
106222015-08-04 Yao Qi <yao.qi@linaro.org>
10623
10624 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10625 both aarch64 and aarch32.
10626 (aarch64_set_pc): Likewise.
10627
3b53ae99
YQ
106282015-08-04 Yao Qi <yao.qi@linaro.org>
10629
10630 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10631 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10632 arm-with-neon.xml to srv_xmlfiles.
10633 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10634 (is_64bit_tdesc): New function.
10635 (aarch64_linux_read_description): New function.
10636 (aarch64_arch_setup): Call aarch64_linux_read_description.
10637 (regs_info): Rename to regs_info_aarch64.
10638 (aarch64_regs_info): Return right regs_info.
10639 (initialize_low_arch): Call initialize_low_arch_aarch32.
10640
bd9e6534
YQ
106412015-08-04 Yao Qi <yao.qi@linaro.org>
10642
10643 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10644 * linux-aarch32-low.c: New file.
10645 * linux-aarch32-low.h: New file.
10646 * linux-arm-low.c (arm_fill_gregset): Move it to
10647 linux-aarch32-low.c.
10648 (arm_store_gregset): Likewise.
10649 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10650 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10651 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10652 (regs_info): Rename to regs_info_arm.
10653 (arm_regs_info): Return regs_info_aarch32 if
10654 have_ptrace_getregset is 1 and target description is
10655 arm_with_neon or arm_with_vfpv3.
10656 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10657 Call initialize_low_arch_aarch32 instead.
10658
ded48a5e
YQ
106592015-08-04 Yao Qi <yao.qi@linaro.org>
10660
10661 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10662 * linux-low.c: ... here.
10663 * linux-low.h (have_ptrace_getregset): Declare it.
10664
96e9210f
PA
106652015-08-04 Pedro Alves <palves@redhat.com>
10666
10667 * thread-db.c (struct thread_db): Use new typedefs.
10668 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10669 CHK calls.
10670 (disable_thread_event_reporting): Cast result of dlsym to
10671 destination function pointer type.
10672 (thread_db_mourn): Use td_ta_delete_ftype.
10673
af60a1ef
SL
106742015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10675
10676 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10677 arch variant.
10678 (CDX_BREAKPOINT): Define for R2.
10679 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10680 (the_low_target): Add comments.
10681
e8b41681
YQ
106822015-07-30 Yao Qi <yao.qi@linaro.org>
10683
10684 * linux-arm-low.c (arm_hwcap): Remove it.
10685 (arm_read_description): New local variable arm_hwcap. Don't
10686 set arm_hwcap to zero.
10687
89abb039
YQ
106882015-07-30 Yao Qi <yao.qi@linaro.org>
10689
10690 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10691 Use regcache->tdesc instead.
10692 (arm_store_wmmxregset): Likewise.
10693 (arm_fill_vfpregset): Likewise.
10694 (arm_store_vfpregset): Likewise.
10695
deca266c
YQ
106962015-07-30 Yao Qi <yao.qi@linaro.org>
10697
10698 * linux-arm-low.c: Include arch/arm.h.
10699 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10700 (arm_store_gregset): Likewise.
10701
aa58a496
SM
107022015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10703
10704 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10705 ptrace's 4th parameter.
10706
50904b25
YQ
107072015-07-27 Yao Qi <yao.qi@linaro.org>
10708
10709 * configure.srv (case aarch64*-*-linux*): Don't set
10710 srv_linux_usrregs.
10711
5826e159
PA
107122015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10713
10714 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10715 sys/ptrace.h.
10716 * linux-arm-low.c: Likewise.
10717 * linux-cris-low.c: Likewise.
10718 * linux-crisv32-low.c: Likewise.
10719 * linux-low.c: Likewise.
10720 * linux-m68k-low.c: Likewise.
10721 * linux-mips-low.c: Likewise.
10722 * linux-nios2-low.c: Likewise.
10723 * linux-s390-low.c: Likewise.
10724 * linux-sparc-low.c: Likewise.
10725 * linux-tic6x-low.c: Likewise.
10726 * linux-tile-low.c: Likewise.
10727 * linux-x86-low.c: Likewise.
10728
54019719
PA
107292015-07-24 Pedro Alves <palves@redhat.com>
10730
10731 * config.in: Regenerate.
10732 * configure: Regenerate.
10733
eb7aa561
PA
107342015-07-24 Pedro Alves <palves@redhat.com>
10735
10736 * acinclude.m4: Include ../ptrace.m4.
10737 * configure.ac: Call GDB_AC_PTRACE.
10738 * config.in, configure: Regenerate.
10739
55d7b841
YQ
107402015-07-24 Yao Qi <yao.qi@linaro.org>
10741
10742 * linux-low.c (linux_create_inferior): Remove setting to
10743 proc->priv->new_inferior.
10744 (linux_attach): Likewise.
10745 (linux_low_filter_event): Likewise.
10746 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10747
c06cbd92
YQ
107482015-07-24 Yao Qi <yao.qi@linaro.org>
10749
10750 * linux-low.c (linux_arch_setup): New function.
10751 (linux_low_filter_event): If proc->tdesc is NULL and
10752 proc->attached is true, call the_low_target.arch_setup.
10753 Otherwise, keep status pending, and return.
10754 (linux_resume_one_lwp_throw): Don't call get_pc if
10755 thread->while_stepping isn't NULL. Don't call
10756 get_thread_regcache if proc->tdesc is NULL.
10757 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10758 (linux_target_ops): Install arch_setup.
10759 * server.c (start_inferior): Call the_target->arch_setup.
10760 * target.h (struct target_ops) <arch_setup>: New field.
10761 (target_arch_setup): New marco.
10762 * lynx-low.c (lynx_target_ops): Update.
10763 * nto-low.c (nto_target_ops): Update.
10764 * spu-low.c (spu_target_ops): Update.
10765 * win32-low.c (win32_target_ops): Update.
10766
5ae3ebba
YQ
107672015-07-24 Yao Qi <yao.qi@linaro.org>
10768
10769 * linux-low.c (linux_add_process): Don't set
10770 proc->priv->new_inferior.
10771 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10772 (linux_attach): Likewise.
10773
eb97750b
YQ
107742015-07-24 Yao Qi <yao.qi@linaro.org>
10775
10776 * server.c (start_inferior): Code refactor.
10777
51aee833
YQ
107782015-07-24 Yao Qi <yao.qi@linaro.org>
10779
10780 * server.c (process_serial_event): Set general_thread.
10781
af1b22f3
YQ
107822015-07-21 Yao Qi <yao.qi@linaro.org>
10783
10784 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10785 aarch64_linux_get_debug_reg_capacity.
10786
554717a3
YQ
107872015-07-17 Yao Qi <yao.qi@linaro.org>
10788
10789 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10790 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10791 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10792 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10793 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10794 (AARCH64_HWP_ALIGNMENT): Likewise.
10795 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10796 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10797 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10798 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10799 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10800 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10801 (struct aarch64_debug_reg_state): Likewise.
10802 (struct arch_lwp_info): Likewise.
10803 (aarch64_align_watchpoint): Likewise.
10804 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10805 (aarch64_watchpoint_length): Likewise.
10806 (aarch64_point_encode_ctrl_reg): Likewise
10807 (aarch64_point_is_aligned): Likewise.
10808 (aarch64_align_watchpoint): Likewise.
10809 (aarch64_linux_set_debug_regs):
10810 (aarch64_dr_state_insert_one_point): Likewise.
10811 (aarch64_dr_state_remove_one_point): Likewise.
10812 (aarch64_handle_breakpoint): Likewise.
10813 (aarch64_handle_aligned_watchpoint): Likewise.
10814 (aarch64_handle_unaligned_watchpoint): Likewise.
10815 (aarch64_handle_watchpoint): Likewise.
10816
c67ca4de
YQ
108172015-07-17 Yao Qi <yao.qi@linaro.org>
10818
10819 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10820 and don't aarch64_get_debug_reg_state. All callers update.
10821 (aarch64_handle_aligned_watchpoint): Likewise.
10822 (aarch64_handle_unaligned_watchpoint): Likewise.
10823 (aarch64_handle_watchpoint): Likewise.
10824 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10825 (aarch64_remove_point): Likewise.
10826
25abf979
YQ
108272015-07-17 Yao Qi <yao.qi@linaro.org>
10828
10829 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10830 debug_printf.
10831 (aarch64_handle_unaligned_watchpoint): Likewise.
10832
db1ff28b
JK
108332015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10834
10835 Revert the previous 3 commits:
10836 Move gdb_regex* to common/
10837 Move linux_find_memory_regions_full & co.
10838 gdbserver build-id attribute generator
10839
700ca40f
JK
108402015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10841 Jan Kratochvil <jan.kratochvil@redhat.com>
10842
10843 gdbserver build-id attribute generator.
10844 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10845 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10846 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10847 (find_phdr): New.
10848 (get_dynamic): Use find_pdhr to traverse program headers.
10849 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10850 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10851 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10852 (get_hex_build_id): New.
10853 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10854 to reply XML document.
10855
9904185c
JK
108562015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10857 Jan Kratochvil <jan.kratochvil@redhat.com>
10858
10859 * target.c: Include target/target-utils.h and fcntl.h.
10860 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10861 (target_fileio_read_stralloc): New functions.
10862
6e5b4429
JK
108632015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10864
10865 * Makefile.in (OBS): Add gdb_regex.o.
10866 (gdb_regex.o): New.
10867 * config.in: Rebuilt.
10868 * configure: Rebuilt.
10869
ddc98fbf
JK
108702015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10871 Jan Kratochvil <jan.kratochvil@redhat.com>
10872
10873 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10874 * Makefile.in (OBS): Add target-utils.o.
10875 (linux-maps.o, target-utils.o): New.
10876 * configure.srv (srv_linux_obj): Add linux-maps.o.
10877
e57bb7a0
PL
108782015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10879
10880 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10881 function, return 1.
10882 (the_low_target): Install it.
10883
586b02a9
PA
108842015-07-14 Pedro Alves <palves@redhat.com>
10885
10886 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10887 Instead, ignore ECHILD, and throw an error for other errnos.
10888
58c1b36c
PA
108892015-07-10 Pedro Alves <palves@redhat.com>
10890
10891 * event-loop.c (struct callback_event) <data>: Change type to
10892 gdb_client_data instance instead of gdb_client_data pointer.
10893 (append_callback_event): Adjust.
10894
421530db
PL
108952015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10896
10897 * linux-aarch64-low.c: Add comments for each linux_target_ops
10898 method. Remove comments already covered in target_ops and
10899 linux_target_ops definitions.
10900 (the_low_target): Add comments for each unimplemented method.
10901
c2d65f38
YQ
109022015-07-09 Yao Qi <yao.qi@linaro.org>
10903
10904 * linux-aarch64-low.c (aarch64_regmap): Remove.
10905 (aarch64_usrregs_info): Remove.
10906 (regs_info): Set field usrregs to NULL.
10907
b20a6524
MM
109082015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10909
10910 * linux-low.c: Include "rsp-low.h"
10911 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10912 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10913 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10914 (handle_btrace_enable_pt): New.
10915 (handle_btrace_general_set): Support "pt".
10916 (handle_btrace_conf_general_set): Support "pt:size".
10917
96c97461
PL
109182015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10919
10920 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10921 Z_PACKET_SW_BP.
10922
37d66942
PL
109232015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10924
10925 * linux-aarch64-low.c: Remove comment about endianness.
10926 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10927 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10928 memcmp.
10929
dc06243f
GB
109302015-06-24 Gary Benson <gbenson@redhat.com>
10931
10932 * linux-i386-ipa.c (stdint.h): Do not include.
10933 * lynx-i386-low.c (stdint.h): Likewise.
10934 * lynx-ppc-low.c (stdint.h): Likewise.
10935 * mem-break.c (stdint.h): Likewise.
10936 * thread-db.c (stdint.h): Likewise.
10937 * tracepoint.c (stdint.h): Likewise.
10938 * win32-low.c (stdint.h): Likewise.
10939
124e13d9
SM
109402015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10941
10942 * server.c (write_qxfer_response): Update call to
10943 remote_escape_output.
10944
909c2cda
JK
109452015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10946 Jan Kratochvil <jan.kratochvil@redhat.com>
10947
10948 Merge multiple hex conversions.
10949 * gdbreplay.c (tohex): Rename to 'fromhex'.
10950 (logchar): Use fromhex.
10951
24c05f46
JK
109522015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10953
10954 * server.c (handle_qxfer_libraries): Set `version' attribute for
10955 <library-list>.
10956
14d2069a
GB
109572015-06-10 Gary Benson <gbenson@redhat.com>
10958
10959 * target.h (struct target_ops) <multifs_open>: New field.
10960 <multifs_unlink>: Likewise.
10961 <multifs_readlink>: Likewise.
10962 * linux-low.c (nat/linux-namespaces.h): New include.
10963 (linux_target_ops): Initialize the_target->multifs_open,
10964 the_target->multifs_unlink and the_target->multifs_readlink.
10965 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10966 * hostio.c (hostio_fs_pid): New static variable.
10967 (hostio_handle_new_gdb_connection): New function.
10968 (handle_setfs): Likewise.
10969 (handle_open): Use the_target->multifs_open as appropriate.
10970 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10971 (handle_readlink): Use the_target->multifs_readlink as
10972 appropriate.
10973 (handle_vFile): Handle vFile:setfs packets.
10974 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10975 after target_handle_new_gdb_connection.
10976
4b8b5e72
GB
109772015-06-10 Gary Benson <gbenson@redhat.com>
10978
10979 * configure.ac (AC_CHECK_FUNCS): Add setns.
10980 * config.in: Regenerate.
10981 * configure: Likewise.
10982 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10983 (linux-namespaces.o): New rule.
10984 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10985
3ac2e371
GB
109862015-06-09 Gary Benson <gbenson@redhat.com>
10987
10988 * hostio.c (handle_open): Process mode argument with
10989 fileio_to_host_mode.
10990
ca9b78ce
YQ
109912015-06-01 Yao Qi <yao.qi@linaro.org>
10992
10993 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10994 * linux-x86-low.c: Likewise.
10995
bfacd19d
DB
109962015-05-28 Don Breazeal <donb@codesourcery.com>
10997
10998 * linux-low.c (handle_extended_wait): Initialize
10999 thread_info.last_resume_kind for new fork children.
11000
452003ef
PA
110012015-05-15 Pedro Alves <palves@redhat.com>
11002
11003 * target.h (target_handle_new_gdb_connection): Rewrite using if
11004 wrapped in do/while.
11005
1041a03c
JB
110062015-05-14 Joel Brobecker <brobecker@adacore.com>
11007
11008 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11009 * configure, config.in: Regenerate.
11010 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11011 Declare typedef.
11012
c269dbdb
DB
110132015-05-12 Don Breazeal <donb@codesourcery.com>
11014
11015 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11016 PTRACE_EVENT_VFORK_DONE.
11017 (linux_low_ptrace_options, extended_event_reported): Add vfork
11018 events.
11019 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11020 and "vforkdone" for RSP 'T' Stop Reply Packet.
11021 * server.h (report_vfork_events): Declare
11022 global variable.
11023
3a8a0396
DB
110242015-05-12 Don Breazeal <donb@codesourcery.com>
11025
11026 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11027 (the_low_target) <new_fork>: Initialize new member.
11028 * linux-arm-low.c (arm_new_fork): New function.
11029 (the_low_target) <new_fork>: Initialize new member.
11030 * linux-low.c (handle_extended_wait): Call new target function
11031 new_fork.
11032 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11033 * linux-mips-low.c (mips_add_watchpoint): New function
11034 extracted from mips_insert_point.
11035 (the_low_target) <new_fork>: Initialize new member.
11036 (mips_linux_new_fork): New function.
11037 (mips_insert_point): Call mips_add_watchpoint.
11038 * linux-x86-low.c (x86_linux_new_fork): New function.
11039 (the_low_target) <new_fork>: Initialize new member.
11040
de0d863e
DB
110412015-05-12 Don Breazeal <donb@codesourcery.com>
11042
11043 * linux-low.c (handle_extended_wait): Implement return value,
11044 rename argument 'event_child' to 'event_lwp', handle
11045 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11046 (linux_low_ptrace_options): New function.
11047 (linux_low_filter_event): Call linux_low_ptrace_options,
11048 use different argument fo linux_enable_event_reporting,
11049 use return value from handle_extended_wait.
11050 (extended_event_reported): New function.
11051 (linux_wait_1): Call extended_event_reported and set
11052 status to report fork events.
11053 (linux_write_memory): Add pid to debug message.
11054 (reset_lwp_ptrace_options_callback): New function.
11055 (linux_handle_new_gdb_connection): New function.
11056 (linux_target_ops): Initialize new structure member.
11057 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11058 * lynx-low.c: Initialize new structure member.
11059 * remote-utils.c (prepare_resume_reply): Implement stop reason
11060 "fork" for "T" stop message.
11061 * server.c (handle_query): Call handle_new_gdb_connection.
11062 * server.h (report_fork_events): Declare global flag.
11063 * target.h (struct target_ops) <handle_new_gdb_connection>:
11064 New member.
11065 (target_handle_new_gdb_connection): New macro.
11066 * win32-low.c: Initialize new structure member.
11067
ddcbc397
DB
110682015-05-12 Don Breazeal <donb@codesourcery.com>
11069
11070 * mem-break.c (APPEND_TO_LIST): Define macro.
11071 (clone_agent_expr): New function.
11072 (clone_one_breakpoint): New function.
11073 (clone_all_breakpoints): New function.
11074 * mem-break.h: Declare new functions.
11075
89245bc0
DB
110762015-05-12 Don Breazeal <donb@codesourcery.com>
11077
11078 * linux-low.c (linux_supports_fork_events): New function.
11079 (linux_supports_vfork_events): New function.
11080 (linux_target_ops): Initialize new structure members.
11081 (initialize_low): Call linux_check_ptrace_features.
11082 * lynx-low.c (lynx_target_ops): Initialize new structure
11083 members.
11084 * server.c (report_fork_events, report_vfork_events):
11085 New global flags.
11086 (handle_query): Add new features to qSupported packet and
11087 response.
11088 (captured_main): Initialize new global variables.
11089 * target.h (struct target_ops) <supports_fork_events>:
11090 New member.
11091 <supports_vfork_events>: New member.
11092 (target_supports_fork_events): New macro.
11093 (target_supports_vfork_events): New macro.
11094 * win32-low.c (win32_target_ops): Initialize new structure
11095 members.
11096
835205d0
GB
110972015-05-12 Gary Benson <gbenson@redhat.com>
11098
11099 * server.c (handle_qxfer_exec_file): Use current process
11100 if annex is empty.
11101
21e94bd9
SL
111022015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11103
11104 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11105 Remove HAVE_PTRACE_GETREGS conditionals.
11106 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11107 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11108
45614f15
YQ
111092015-05-08 Yao Qi <yao.qi@linaro.org>
11110
11111 * linux-low.c (linux_supports_conditional_breakpoints): New
11112 function.
11113 (linux_target_ops): Install new target method.
11114 * lynx-low.c (lynx_target_ops): Install NULL hook for
11115 supports_conditional_breakpoints.
11116 * nto-low.c (nto_target_ops): Likewise.
11117 * spu-low.c (spu_target_ops): Likewise.
11118 * win32-low.c (win32_target_ops): Likewise.
11119 * server.c (handle_query): Check
11120 target_supports_conditional_breakpoints.
11121 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11122 New field.
11123 (target_supports_conditional_breakpoints): New macro.
11124
80ad801e
PA
111252015-05-06 Pedro Alves <palves@redhat.com>
11126
11127 PR server/18081
11128 * server.c (start_inferior): If the process exits, mourn it.
11129
819843c7
GB
111302015-04-21 Gary Benson <gbenson@redhat.com>
11131
11132 * hostio.c (fileio_open_flags_to_host): Factored out to
11133 fileio_to_host_openflags in common/fileio.c. Single use
11134 updated.
11135
a2d5a9d7
MF
111362015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11137
11138 * linux-xtensa-low.c (xtensa_fill_gregset)
11139 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11140 XCHAL_HAVE_LOOP.
11141
deb44829
MF
111422015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11143
11144 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11145 (regs_info): Replace usrregs pointer with NULL.
11146
e57f1de3
GB
111472015-04-17 Gary Benson <gbenson@redhat.com>
11148
11149 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11150 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11151 * server.c (handle_qxfer_exec_file): New function.
11152 (qxfer_packets): Add exec-file entry.
11153 (handle_query): Report qXfer:exec-file:read as supported packet.
11154
62828379
RN
111552015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11156
11157 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11158
b88bb450
GB
111592015-04-09 Gary Benson <gbenson@redhat.com>
11160
11161 * hostio-errno.c (errno_to_fileio_error): Remove function.
11162 Update caller to use remote_fileio_to_fio_error.
11163
c8f4bfdd
YQ
111642015-04-09 Yao Qi <yao.qi@linaro.org>
11165
11166 * linux-low.c (linux_insert_point): Call
11167 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11168 (linux_remove_point): Call remove_memory_breakpoint if type is
11169 raw_bkpt_type_sw.
11170 * linux-x86-low.c (x86_insert_point): Don't call
11171 insert_memory_breakpoint.
11172 (x86_remove_point): Don't call remove_memory_breakpoint.
11173
41f98f02
PA
111742015-04-01 Pedro Alves <palves@redhat.com>
11175 Cleber Rosa <crosa@redhat.com>
11176
11177 * server.c (gdbserver_usage): Reorganize and extend the usage
11178 message.
11179
2bf6fb9d
PA
111802015-03-24 Pedro Alves <palves@redhat.com>
11181
11182 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11183 output. Also dump TRAP_TRACE.
11184 (linux_low_filter_event): In debug output, distinguish a
11185 resume_stop SIGSTOP from a delayed SIGSTOP.
11186
369f6daa
GB
111872015-03-24 Gary Benson <gbenson@redhat.com>
11188
11189 * linux-x86-low.c (x86_linux_new_thread): Moved to
11190 nat/x86-linux.c.
11191 (x86_linux_prepare_to_resume): Likewise.
11192
8e5d4070
GB
111932015-03-24 Gary Benson <gbenson@redhat.com>
11194
11195 * Makefile.in (x86-linux-dregs.o): New rule.
11196 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11197 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11198 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11199 (x86_linux_dr_get): Likewise.
11200 (x86_linux_dr_set): Likewise.
11201 (update_debug_registers_callback): Likewise.
11202 (x86_linux_dr_set_addr): Likewise.
11203 (x86_linux_dr_get_addr): Likewise.
11204 (x86_linux_dr_set_control): Likewise.
11205 (x86_linux_dr_get_control): Likewise.
11206 (x86_linux_dr_get_status): Likewise.
11207 (x86_linux_update_debug_registers): Likewise.
11208
2b95d440
GB
112092015-03-24 Gary Benson <gbenson@redhat.com>
11210
11211 * linux-x86-low.c (x86_linux_update_debug_registers):
11212 New function, factored out from...
11213 (x86_linux_prepare_to_resume): ...this.
11214
14b0bc68
GB
112152015-03-24 Gary Benson <gbenson@redhat.com>
11216
11217 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11218 (x86_linux_dr_set): Likewise.
11219 (update_debug_registers_callback): Likewise.
11220 (x86_linux_dr_set_addr): Likewise.
11221 (x86_linux_dr_get_addr): Likewise.
11222 (x86_linux_dr_set_control): Likewise.
11223 (x86_linux_dr_get_control): Likewise.
11224 (x86_linux_dr_get_status): Likewise.
11225 (x86_linux_prepare_to_resume): Likewise.
11226
5dfe6ca8
GB
112272015-03-24 Gary Benson <gbenson@redhat.com>
11228
11229 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11230 Use perror_with_name. Pass string through gettext.
11231 (x86_linux_dr_set): Likewise.
11232
d33472ad
GB
112332015-03-24 Gary Benson <gbenson@redhat.com>
11234
11235 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11236 (x86_linux_dr_set_addr): ...this.
11237 (x86_dr_low_get_addr): Rename to...
11238 (x86_linux_dr_get_addr): ...this.
11239 (x86_dr_low_set_control): Rename to...
11240 (x86_linux_dr_set_control): ...this.
11241 (x86_dr_low_get_control): Rename to...
11242 (x86_linux_dr_get_control): ...this.
11243 (x86_dr_low_get_status): Rename to...
11244 (x86_linux_dr_get_status): ...this.
11245 (x86_dr_low): Update with new function names.
11246
4b134ca1
GB
112472015-03-24 Gary Benson <gbenson@redhat.com>
11248
11249 * Makefile.in (x86-linux.o): New rule.
11250 * configure.srv: Add x86-linux.o to relevant targets.
11251 * linux-low.c (lwp_set_arch_private_info): New function.
11252 (lwp_arch_private_info): Likewise.
11253 * linux-x86-low.c: Include nat/x86-linux.h.
11254 (arch_lwp_info): Removed structure.
11255 (update_debug_registers_callback):
11256 Use lwp_set_debug_registers_changed.
11257 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11258 and lwp_set_debug_registers_changed.
11259 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11260
34c703da
GB
112612015-03-24 Gary Benson <gbenson@redhat.com>
11262
11263 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11264 * linux-arm-low.c (arm_new_thread): Likewise.
11265 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11266 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11267 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11268 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11269
cff068da
GB
112702015-03-24 Gary Benson <gbenson@redhat.com>
11271
11272 * linux-low.c (ptid_of_lwp): New function.
11273 (lwp_is_stopped): Likewise.
11274 (lwp_stop_reason): Likewise.
11275 * linux-x86-low.c (update_debug_registers_callback):
11276 Use lwp_is_stopped.
11277 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11278 lwp_stop_reason.
11279
b2f7c7e8
GB
112802015-03-24 Gary Benson <gbenson@redhat.com>
11281
11282 * linux-low.h (linux_stop_lwp): Remove declaration.
11283
6d4ee8c6
GB
112842015-03-24 Gary Benson <gbenson@redhat.com>
11285
11286 * linux-low.h: Include nat/linux-nat.h.
11287 * linux-low.c (iterate_over_lwps_args): New structure.
11288 (iterate_over_lwps_filter): New function.
11289 (iterate_over_lwps): Likewise.
11290 * linux-x86-low.c (update_debug_registers_callback):
11291 Update signature to what iterate_over_lwps expects.
11292 Remove PID check that iterate_over_lwps now performs.
11293 (x86_dr_low_set_addr): Use iterate_over_lwps.
11294 (x86_dr_low_set_control): Likewise.
11295
70a0bb6b
GB
112962015-03-24 Gary Benson <gbenson@redhat.com>
11297
11298 * linux-x86-low.c (x86_debug_reg_state): New function.
11299 (x86_linux_prepare_to_resume): Use the above.
11300
7b669087
GB
113012015-03-24 Gary Benson <gbenson@redhat.com>
11302
11303 * linux-low.c (current_lwp_ptid): New function.
11304 * linux-x86-low.c: Include nat/linux-nat.h.
11305 (x86_dr_low_get_addr): Use current_lwp_ptid.
11306 (x86_dr_low_get_control): Likewise.
11307 (x86_dr_low_get_status): Likewise.
11308
eef49a3d
PA
113092015-03-20 Pedro Alves <palves@redhat.com>
11310
11311 * tracepoint.c (cmd_qtstatus): Make "str" const.
11312
b2333d22
PA
113132015-03-20 Pedro Alves <palves@redhat.com>
11314
11315 * server.c (handle_general_set): Make "req_str" const.
11316
23f238d3
PA
113172015-03-19 Pedro Alves <palves@redhat.com>
11318
11319 * linux-low.c (linux_resume_one_lwp): Rename to ...
11320 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11321 instead call perror_with_name.
11322 (check_ptrace_stopped_lwp_gone): New function.
11323 (linux_resume_one_lwp): Reimplement as wrapper around
11324 linux_resume_one_lwp_throw that swallows errors if the LWP is
11325 gone.
11326
91baf43f
PA
113272015-03-19 Pedro Alves <palves@redhat.com>
11328
11329 * linux-low.c (count_events_callback, select_event_lwp_callback):
11330 No longer check whether the thread has resume_stop as last resume
11331 kind.
11332
8bf3b159
PA
113332015-03-19 Pedro Alves <palves@redhat.com>
11334
11335 * linux-low.c (count_events_callback, select_event_lwp_callback):
11336 Use the lwp's status_pending_p field, not the thread's.
11337
b90fc188
PA
113382015-03-19 Pedro Alves <palves@redhat.com>
11339
11340 * linux-low.c (select_event_lwp_callback): Update comments to
11341 no longer mention SIGTRAP.
11342
464b0089
GB
113432015-03-18 Gary Benson <gbenson@redhat.com>
11344
11345 * server.c (handle_query): Do not report vFile:fstat as supported.
11346
aa9e327f
GB
113472015-03-11 Gary Benson <gbenson@redhat.com>
11348
11349 * hostio.c (sys/types.h): New include.
11350 (sys/stat.h): Likewise.
11351 (common-remote-fileio.h): Likewise.
11352 (handle_fstat): New function.
11353 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11354
791c0056
GB
113552015-03-11 Gary Benson <gbenson@redhat.com>
11356
11357 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11358 struct stat.st_blocks and struct stat.st_blksize.
11359 * configure: Regenerate.
11360 * config.in: Likewise.
11361 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11362 (OBS): Add common-remote-fileio.o.
11363 (common-remote-fileio.o): New rule.
11364
9a9df970
PA
113652015-03-09 Pedro Alves <palves@redhat.com>
11366
11367 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11368 'struct sockaddr' pointer in 'accept' call.
11369
9eb1356e
PA
113702015-03-09 Pedro Alves <palves@redhat.com>
11371
11372 Revert:
11373 2015-03-07 Pedro Alves <palves@redhat.com>
11374 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11375 or <winsock2.h> here. Instead include "gdb_socket.h".
11376 (remote_open): Use union gdb_sockaddr_u.
11377 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11378 or <winsock2.h> here. Instead include "gdb_socket.h".
11379 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11380 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11381 or <sys/un.h>.
11382 (init_named_socket, gdb_agent_helper_thread): Use union
11383 gdb_sockaddr_u.
11384
aac331e4
PA
113852015-03-07 Pedro Alves <palves@redhat.com>
11386
11387 * configure.ac (build_warnings): Move
11388 -Wdeclaration-after-statement to the C-specific set.
11389 * configure: Regenerate.
11390
366c75fc
PA
113912015-03-07 Pedro Alves <palves@redhat.com>
11392
11393 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11394 or <winsock2.h> here. Instead include "gdb_socket.h".
11395 (remote_open): Use union gdb_sockaddr_u.
11396 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11397 or <winsock2.h> here. Instead include "gdb_socket.h".
11398 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11399 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11400 or <sys/un.h>.
11401 (init_named_socket, gdb_agent_helper_thread): Use union
11402 gdb_sockaddr_u.
11403
492d29ea
PA
114042015-03-07 Pedro Alves <palves@redhat.com>
11405
11406 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11407 instead.
11408
60a191ed
YQ
114092015-03-06 Yao Qi <yao.qi@linaro.org>
11410
11411 * linux-aarch64-low.c (aarch64_insert_point): Use
11412 show_debug_regs as a boolean.
11413 (aarch64_remove_point): Likewise.
11414
f5771b1d
PA
114152015-03-05 Pedro Alves <palves@redhat.com>
11416
11417 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11418 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11419 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11420 * nto-low.c (nto_target_ops): Likewise.
11421 * spu-low.c (spu_target_ops): Likewise.
11422 * win32-low.c (win32_target_ops): Likewise.
11423
3e572f71
PA
114242015-03-04 Pedro Alves <palves@redhat.com>
11425
72f4393d 11426 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11427 Decide whether a breakpoint triggered based on the SIGTRAP's
11428 siginfo.si_code.
72f4393d
L
11429 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11430 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11431 (linux_low_filter_event): Check for breakpoints before checking
11432 watchpoints.
11433 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11434 siginfo.si_code.
72f4393d
L
11435 (linux_stopped_by_sw_breakpoint)
11436 (linux_supports_stopped_by_sw_breakpoint)
11437 (linux_stopped_by_hw_breakpoint)
11438 (linux_supports_stopped_by_hw_breakpoint): New functions.
11439 (linux_target_ops): Install new target methods.
3e572f71 11440
1ec68e26
PA
114412015-03-04 Pedro Alves <palves@redhat.com>
11442
11443 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11444 * server.c (swbreak_feature, hwbreak_feature): New globals.
11445 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11446 (captured_main): Clear swbreak_feature and hwbreak_feature.
11447 * server.h (swbreak_feature, hwbreak_feature): Declare.
11448 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11449 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11450 supports_stopped_by_hw_breakpoint>: New fields.
11451 (target_supports_stopped_by_sw_breakpoint)
11452 (target_stopped_by_sw_breakpoint)
11453 (target_supports_stopped_by_hw_breakpoint)
11454 (target_stopped_by_hw_breakpoint): Declare.
11455
15c66dd6
PA
114562015-03-04 Pedro Alves <palves@redhat.com>
11457
11458 enum lwp_stop_reason -> enum target_stop_reason
11459 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11460 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11461 (linux_wait_1, stuck_in_jump_pad_callback)
11462 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11463 (linux_stopped_by_watchpoint):
11464 * linux-low.h (enum lwp_stop_reason): Delete.
11465 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11466 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11467
98fc70d6
YQ
114682015-03-04 Yao Qi <yao.qi@linaro.org>
11469
11470 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11471
dd2ac174
GB
114722015-03-03 Gary Benson <gbenson@redhat.com>
11473
11474 * hostio.c (handle_vFile): Fix prefix lengths.
11475
d68e53f4
MM
114762015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11477
11478 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11479 ptr_bits.
11480
bf2d68ab
AA
114812015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11482
11483 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11484 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11485 (clean): Add "rm -f" for above C files.
11486 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11487 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11488 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11489 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11490 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11491 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11492 (init_registers_s390x_vx_linux64)
11493 (init_registers_s390x_tevx_linux64)
11494 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11495 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11496 declarations.
11497 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11498 (s390_store_vxrs_high): New functions.
11499 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11500 NT_S390_VXRS_HIGH.
11501 (s390_arch_setup): Add logic for selecting one of the new target
11502 descriptions. Activate the new vector regsets if applicable.
11503 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11504 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11505 and init_registers_s390x_tevx_linux64.
11506
c966a859
PA
115072015-03-01 Pedro Alves <palves@redhat.com>
11508
11509 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11510 parameter.
11511
4180215b
PA
115122015-02-27 Pedro Alves <palves@redhat.com>
11513
11514 * linux-x86-low.c (u_debugreg_offset): New function.
11515 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11516
749bab01
PA
115172015-02-27 Pedro Alves <palves@redhat.com>
11518
11519 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11520 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11521 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11522 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11523 (ps_lsetfpregs, ps_getpid)
11524 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11525 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11526 (ps_lsetxregs, ps_plog): Declare.
11527
3c14e5a3
PA
115282015-02-27 Pedro Alves <palves@redhat.com>
11529
11530 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11531 IP_AGENT_EXPORT_FUNC.
11532 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11533 IP_AGENT_EXPORT_FUNC.
11534 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11535 (IP_AGENT_EXPORT): Delete.
11536 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11537 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11538 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11539 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11540 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11541 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11542 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11543 (traceframe_read_count, traceframe_write_count)
11544 (traceframes_created, trace_state_variables, get_raw_reg)
11545 (get_trace_state_variable_value, set_trace_state_variable_value)
11546 (ust_loaded, helper_thread_id, cmd_buf): Use
11547 IPA_SYM_EXPORTED_NAME.
11548 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11549 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11550 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11551 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11552 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11553 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11554 EXTERN_C_PUSH/EXTERN_C_POP.
11555 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11556 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11557 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11558 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11559 (traceframe_write_count, traceframe_read_count)
11560 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11561 (about_to_request_buffer_space, get_trace_state_variable_value)
11562 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11563 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11564 EXTERN_C_PUSH/EXTERN_C_POP.
11565 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11566 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11567 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11568 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11569 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11570 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11571 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11572 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11573 Define.
11574 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11575 (IP_AGENT_EXPORT_VAR_DECL): Define.
11576 (tracing): Declare.
11577 (gdb_agent_get_raw_reg): Declare.
11578
fe978cb0
PA
115792015-02-27 Tom Tromey <tromey@redhat.com>
11580 Pedro Alves <palves@redhat.com>
11581
11582 Rename symbols whose names are reserved C++ keywords throughout.
11583
3bc3d82a
PA
115842015-02-27 Pedro Alves <palves@redhat.com>
11585
11586 * Makefile.in (COMPILER): New, get it from autoconf.
11587 (CXX): Get from autoconf instead.
11588 (COMPILE.pre): Use COMPILER.
11589 (CC-LD): Rename to ...
11590 (CC_LD): ... this. Use COMPILER.
11591 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11592 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11593 * acinclude.m4: Include build-with-cxx.m4.
11594 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11595 Disable -Werror by default if building in C++ mode.
11596 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11597 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11598 the C++ compiler. Save/restore CXXFLAGS too.
11599 * configure: Regenerate.
11600
07697489
PA
116012015-02-27 Pedro Alves <palves@redhat.com>
11602
11603 * acinclude.m4: Include libiberty.m4.
11604 * configure.ac: Call libiberty_INIT.
11605 * config.in, configure: Regenerate.
11606
9beb7c4e
PA
116072015-02-26 Pedro Alves <palves@redhat.com>
11608
11609 * linux-low.c (linux_wait_1): When incrementing the PC past a
11610 program breakpoint always use the_low_target.breakpoint_len as
11611 increment, rather than the maximum between that and
11612 the_low_target.decr_pc_after_break.
11613
8090aef2
PA
116142015-02-23 Pedro Alves <palves@redhat.com>
11615
11616 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11617 thread was doing a step-over; always adjust the PC if
11618 we stepped over a permanent breakpoint.
11619 (linux_wait_1): If we stepped over breakpoint that was on top of a
11620 permanent breakpoint, manually advance the PC past it.
11621
bc9540e8
PA
116222015-02-23 Pedro Alves <palves@redhat.com>
11623
11624 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11625 modes.
11626 (x86_fill_gregset, x86_store_gregset): Use it when handling
11627 $orig_eax.
11628
2db9a427
PA
116292015-02-20 Pedro Alves <palves@redhat.com>
11630
11631 * thread-db.c: Include "nat/linux-procfs.h".
11632 (thread_db_init): Skip listing new threads if the kernel supports
11633 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11634
afa8d396
PA
116352015-02-20 Pedro Alves <palves@redhat.com>
11636
11637 * linux-low.c (status_pending_p_callback): Use ptid_match.
11638
c9587f88
AT
116392015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11640
11641 PR breakpoints/16812
11642 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11643 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11644 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11645
b05ec7a5
AT
116462015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11647
11648 PR breakpoints/15956
11649 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11650
d33501a5
MM
116512015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11652
11653 * linux-low.c (linux_low_btrace_conf): Print size.
11654 * server.c (handle_btrace_conf_general_set): New.
11655 (hanle_general_set): Call handle_btrace_conf_general_set.
11656 (handle_query): Report Qbtrace-conf:bts:size as supported.
11657
f4abbc16
MM
116582015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11659
11660 * linux-low.c (linux_low_enable_btrace): Update parameters.
11661 (linux_low_btrace_conf): New.
11662 (linux_target_ops)<to_btrace_conf>: Initialize.
11663 * server.c (current_btrace_conf): New.
11664 (handle_btrace_enable): Rename to ...
11665 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11666 to target_enable_btrace. Update comment. Update users.
11667 (handle_qxfer_btrace_conf): New.
11668 (qxfer_packets): Add btrace-conf entry.
11669 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11670 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11671 (target_ops)<read_btrace_conf>: New.
11672 (target_enable_btrace): Update parameters.
11673 (target_read_btrace_conf): New.
11674
043c3577
MM
116752015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11676
11677 * server.c (handle_btrace_general_set): Remove call to
11678 target_supports_btrace.
11679 (supported_btrace_packets): New.
11680 (handle_query): Call supported_btrace_packets.
11681 * target.h: include btrace-common.h.
11682 (btrace_target_info): Removed.
11683 (supports_btrace, target_supports_btrace): Update parameters.
11684
734b0e4b
MM
116852015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11686
11687 * Makefile.in (SFILES): Add common/btrace-common.c.
11688 (OBS): Add common/btrace-common.o.
11689 (btrace-common.o): Add build rules.
11690 * linux-low: Include btrace-common.h.
11691 (linux_low_read_btrace): Use struct btrace_data. Call
11692 btrace_data_init and btrace_data_fini.
11693
d6c146e9
PA
116942015-02-06 Pedro Alves <palves@redhat.com>
11695
11696 * thread-db.c (find_new_threads_callback): Add debug output.
11697
20ba1ce6
PA
116982015-02-04 Pedro Alves <palves@redhat.com>
11699
11700 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11701 (resume_stopped_resumed_lwps): New function.
11702 (linux_wait_for_event_filtered): Use it.
11703
8cc73a39
SDJ
117042015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11705
11706 * Makefile.in (SFILES): Add linux-personality.c.
11707 (linux-personality.o): New rule.
11708 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11709 list of objects to be built.
11710 * linux-low.c: Include nat/linux-personality.h.
11711 (linux_create_inferior): Remove code to disable address space
11712 randomization (moved to ../nat/linux-personality.c). Create
11713 cleanup to disable address space randomization.
11714
fb23d554
SDJ
117152015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11716
11717 * Makefile.in (posix-strerror.o): New rule.
11718 (mingw-strerror.o): Likewise.
11719 * configure: Regenerated.
11720 * configure.ac: Source file ../common/common.host. Initialize new
11721 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11722
cdf43629
YQ
117232015-01-14 Yao Qi <yao@codesourcery.com>
11724
11725 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11726 (ppc-linux.o): New rule.
11727 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11728 * configure.ac: AC_CHECK_FUNCS(getauxval).
11729 * config.in: Re-generated.
11730 * configure: Re-generated.
11731 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11732 ppc64_64bit_inferior_p
11733
514c5338
YQ
117342015-01-14 Yao Qi <yao@codesourcery.com>
11735
11736 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11737 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11738 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11739 (PT_ORIG_R3, PT_TRAP): Likewise.
11740 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11741 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11742 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11743
3368c1e5
JB
117442015-01-10 Joel Brobecker <brobecker@adacore.com>
11745
11746 * i387-fp.c (i387_cache_to_xsave): In look over
11747 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11748 zmmh_low_space field by use of zmmh_high_space.
11749
582511be
PA
117502015-01-09 Pedro Alves <palves@redhat.com>
11751
11752 * linux-low.c (step_over_bkpt): Move higher up in the file.
11753 (handle_extended_wait): Don't store the stop_pc here.
11754 (get_stop_pc): Adjust comments and rename to ...
11755 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11756 stopped for a software breakpoint or hardware breakpoint.
11757 (thread_still_has_status_pending_p): New function.
11758 (status_pending_p_callback): Use
11759 thread_still_has_status_pending_p. If the event is no longer
11760 interesting, resume the LWP.
11761 (handle_tracepoints): Add assert.
11762 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11763 (wstatus_maybe_breakpoint): New function.
11764 (cancel_breakpoint): Delete function.
11765 (check_stopped_by_watchpoint): New function, factored out from
11766 linux_low_filter_event.
11767 (lp_status_maybe_breakpoint): Delete function.
11768 (linux_low_filter_event): Remove filter_ptid argument.
11769 Leave thread group exits pending here. Store the LWP's stop PC.
11770 Always leave events pending.
11771 (linux_wait_for_event_filtered): Pull all events out of the
11772 kernel, and leave them all pending.
11773 (count_events_callback, select_event_lwp_callback): Consider all
11774 events.
11775 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11776 (select_event_lwp): Only give preference to the stepping LWP in
11777 all-stop mode. Adjust comments.
11778 (ignore_event): New function.
11779 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11780 references to cancel_breakpoints. Adjust to renames. Also give
11781 equal priority to all LWPs that have had events in non-stop mode.
11782 If reporting a software breakpoint event, unadjust the LWP's PC.
11783 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11784 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11785 Adjust.
11786 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11787 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11788 (linux_stopped_by_watchpoint): Adjust.
11789 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11790 * linux-low.h (enum lwp_stop_reason): New.
11791 (struct lwp_info) <stop_pc>: Adjust comment.
11792 <stopped_by_watchpoint>: Delete field.
11793 <stop_reason>: New field.
11794 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11795 * mem-break.c (software_breakpoint_inserted_here)
11796 (hardware_breakpoint_inserted_here): New function.
11797 * mem-break.h (software_breakpoint_inserted_here)
11798 (hardware_breakpoint_inserted_here): Declare.
11799 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11800 (cancel_breakpoints): Delete.
11801 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11802 (upload_fast_traceframes): Remove references to
11803 cancel_breakpoints.
11804
a33e3959
PA
118052015-01-09 Pedro Alves <palves@redhat.com>
11806
11807 * thread-db.c (find_new_threads_callback): Ignore thread if the
11808 kernel thread ID is -1.
11809
8784d563
PA
118102015-01-09 Pedro Alves <palves@redhat.com>
11811
11812 * linux-low.c (linux_attach_fail_reason_string): Move to
11813 nat/linux-ptrace.c, and rename.
11814 (linux_attach_lwp): Update comment.
11815 (attach_proc_task_lwp_callback): New function.
11816 (linux_attach): Adjust to rename and use
11817 linux_proc_attach_tgid_threads.
11818 (linux_attach_fail_reason_string): Delete declaration.
11819
76f2b779
JB
118202015-01-01 Joel Brobecker <brobecker@adacore.com>
11821
11822 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11823 * server.c (gdbserver_version): Likewise.
11824
fafcc06a
SDJ
118252014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11826
11827 * remote-utils.c: Include ctype.h.
11828 (input_interrupt): Explicitly handle the case when the char
11829 received is the NUL byte. Improve the printing of non-ASCII
11830 characters.
11831
beed38b8
JB
118322014-12-16 Joel Brobecker <brobecker@adacore.com>
11833
11834 * linux-low.c (linux_low_filter_event): Update call to
11835 linux_enable_event_reporting following the addition of
11836 a new parameter to that function.
11837
bf330350
CU
118382014-12-16 Catalin Udma <catalin.udma@freescale.com>
11839
11840 PR server/17457
11841 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11842 (AARCH64_FPCR_REGNO): Likewise.
11843 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11844 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11845 (aarch64_store_fpregset): Likewise.
11846
5227d625
JB
118472014-12-15 Joel Brobecker <brobecker@adacore.com>
11848
11849 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11850 Remove FIXME comment about assumption about N.
11851
f93b65a0
JB
118522014-12-13 Joel Brobecker <brobecker@adacore.com>
11853
11854 * configure.ac: If large-file support is disabled in GDBserver,
11855 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11856 * configure: Regenerate.
11857
e5a9158d
AA
118582014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11859
11860 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11861 warning upon ENODATA from ptrace.
11862 * linux-s390-low.c (s390_store_tdb): New.
11863 (s390_regsets): Add regset for NT_S390_TDB.
11864
feea5f36
AA
118652014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11866
11867 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11868 without a fill_function.
11869 * linux-s390-low.c (s390_fill_last_break): Remove.
11870 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11871 (s390_arch_setup): Use regset's size instead of fill_function for
11872 loop end condition.
11873
098dbe61
AA
118742014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11875
11876 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11877 the regset's store function when ptrace returned an error.
11878 * regcache.c (get_thread_regcache): Invalidate register cache
11879 before fetching inferior's registers.
11880
28eef672
AA
118812014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11882
11883 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11884 while-loop as for-loop.
11885 (regsets_store_inferior_registers): Likewise.
11886
bdca27a2
YQ
118872014-11-28 Yao Qi <yao@codesourcery.com>
11888
11889 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11890 * config.in, configure: Re-generate.
11891 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11892 is defined.
11893
9c232dda
YQ
118942014-11-21 Yao Qi <yao@codesourcery.com>
11895
11896 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11897 (AC_CHECK_HEADERS): Remove malloc.h.
11898 * configure: Re-generated.
11899 * config.in: Re-generated.
11900 * server.h: Don't include alloca.h and malloc.h.
11901 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11902 Don't include malloc.h.
11903
43968415
JB
119042014-11-17 Joel Brobecker <brobecker@adacore.com>
11905
11906 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11907 corresponding ERRNO check in same block.
11908
40e91bc7
PA
119092014-11-12 Pedro Alves <palves@redhat.com>
11910
11911 * server.c (cont_thread): Update comment.
11912 (start_inferior, attach_inferior): No longer clear cont_thread.
11913 (handle_v_cont): No longer set cont_thread.
11914 (captured_main): Clear cont_thread each time a GDB connects.
11915
c2c118cf
PA
119162014-11-12 Pedro Alves <palves@redhat.com>
11917
11918 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11919 thread, and don't resume all threads if the Hc thread has exited.
11920
78708b7c
PA
119212014-11-12 Pedro Alves <palves@redhat.com>
11922
11923 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11924 the process group instead of to a specific LWP.
11925
a2abc7de
PA
119262014-10-15 Pedro Alves <palves@redhat.com>
11927
11928 PR server/17487
11929 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11930 parameter.
11931 (arm_set_thread_context): Delete.
11932 (the_low_target): Adjust.
11933 * win32-i386-low.c (debug_registers_changed)
11934 (debug_registers_used): Delete.
11935 (update_debug_registers_callback): New function.
11936 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11937 needing to update their debug registers.
11938 (win32_get_current_dr): New function.
11939 (x86_dr_low_get_addr, x86_dr_low_get_control)
11940 (x86_dr_low_get_status): Fetch the debug register from the thread
11941 record's context.
11942 (i386_initial_stuff): Adjust.
11943 (i386_get_thread_context): Remove current_event parameter. Don't
11944 clear debug_registers_changed nor copy DR values to
11945 debug_reg_state.
11946 (i386_set_thread_context): Delete.
11947 (i386_prepare_to_resume): New function.
11948 (i386_thread_added): Mark the thread as needing to update irs
11949 debug registers.
11950 (the_low_target): Remove i386_set_thread_context and install
11951 i386_prepare_to_resume.
11952 * win32-low.c (win32_get_thread_context): Adjust.
11953 (win32_set_thread_context): Use SetThreadContext
11954 directly.
11955 (win32_prepare_to_resume): New function.
11956 (win32_require_context): New function, factored out from ...
11957 (thread_rec): ... this.
11958 (continue_one_thread): Call win32_prepare_to_resume on each thread
11959 we're about to continue.
11960 (win32_resume): Call win32_prepare_to_resume on the event thread.
11961 * win32-low.h (struct win32_thread_info)
11962 <debug_registers_changed>: New field.
11963 (struct win32_target_ops): Change prototype of set_thread_context,
11964 delete set_thread_context and add prepare_to_resume.
11965 (win32_require_context): New declaration.
11966
a442d071
GB
119672014-10-08 Gary Benson <gbenson@redhat.com>
11968
11969 * server.h: Do not include common-exceptions.h.
11970
6f1947e8
GB
119712014-10-08 Gary Benson <gbenson@redhat.com>
11972
11973 * server.h: Do not include cleanups.h.
11974
63b434a4
JH
119752014-09-30 James Hogan <james.hogan@imgtec.com>
11976
11977 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11978 mips64-dsp-linux.c.
11979
c4d9ceb6
YQ
119802014-09-23 Yao Qi <yao@codesourcery.com>
11981
11982 * linux-low.c (lp_status_maybe_breakpoint): New function.
11983 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11984 (count_events_callback): Likewise.
11985 (select_event_lwp_callback): Likewise.
11986 (cancel_breakpoints_callback): Likewise.
11987
89a5711c
DB
119882014-09-19 Don Breazeal <donb@codesourcery.com>
11989
11990 * linux-low.c (handle_extended_wait): Call
11991 linux_ptrace_get_extended_event.
11992 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11993 linux_is_extended_waitstatus.
11994
bffc0964
JB
119952014-09-16 Joel Brobecker <brobecker@adacore.com>
11996
11997 * Makefile.in (CPPFLAGS): Define.
11998 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11999 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12000
0bfdf32f
GB
120012014-09-16 Gary Benson <gbenson@redhat.com>
12002
12003 * inferiors.h (current_inferior): Renamed as...
12004 (current_thread): New variable. All uses updated.
12005 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12006 (maybe_move_out_of_jump_pad): Likewise.
12007 (cancel_breakpoint): Likewise.
12008 (linux_low_filter_event): Likewise.
12009 (wait_for_sigstop): Likewise.
12010 (linux_resume_one_lwp): Likewise.
12011 (need_step_over_p): Likewise.
12012 (start_step_over): Likewise.
12013 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12014 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12015 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12016 and save_inferior as saved_thread.
12017 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12018 saved_thread.
12019 (regcache_invalidate_thread): Likewise.
12020 * remote-utils.c (prepare_resume_reply): Likewise.
12021 * thread-db.c (thread_db_get_tls_address): Likewise.
12022 (disable_thread_event_reporting): Likewise.
12023 (remove_thread_event_breakpoints): Likewise.
12024 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12025 as saved_thread.
12026 * target.h (set_desired_inferior): Renamed as...
12027 (set_desired_thread): New declaration. All uses updated.
12028 * server.c (myresume): Updated comment to reference thread instead
12029 of inferior.
12030 (handle_serial_event): Likewise.
12031 (handle_target_event): Likewise.
12032
361c8ade
GB
120332014-09-12 Tom Tromey <tromey@redhat.com>
12034 Gary Benson <gbenson@redhat.com>
12035
12036 * regcache.h: Include common-regcache.h.
12037 (regcache_read_pc): Don't declare.
12038 * regcache.c (get_thread_regcache_for_ptid): New function.
12039
bd9269f7
GB
120402014-09-11 Tom Tromey <tromey@redhat.com>
12041 Gary Benson <gbenson@redhat.com>
12042
12043 * symbol.c: New file.
12044 * Makefile.in (SFILES): Add symbol.c.
12045 (OBS): Add symbol.o.
12046
f8c1d06b
GB
120472014-09-11 Gary Benson <gbenson@redhat.com>
12048
12049 * target.c (target_stop_ptid, target_continue_ptid): New
12050 functions.
12051
721ec300
GB
120522014-09-11 Tom Tromey <tromey@redhat.com>
12053 Gary Benson <gbenson@redhat.com>
12054
12055 * target.h: Include target/target.h.
12056 * target.c (target_read_memory, target_read_uint32)
12057 (target_write_memory): New functions.
12058
c5e92cca
GB
120592014-09-11 Gary Benson <gbenson@redhat.com>
12060
12061 * server.h (debug_hw_points): Don't declare.
12062 * server.c (debug_hw_points): Don't define. Replace all uses
12063 with show_debug_regs.
12064 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12065 all uses with show_debug_regs.
12066
2e4bb98a
EBM
120672014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12068
12069 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12070 endianness into account.
12071 (ppc_supply_ptrace_register): Likewise.
12072
ac740bc7
JH
120732014-09-03 James Hogan <james.hogan@imgtec.com>
12074
12075 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12076 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12077
97ea6506
GB
120782014-09-03 Gary Benson <gbenson@redhat.com>
12079
12080 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12081 ALL_DEBUG_ADDRESS_REGISTERS.
12082
df7e5265
GB
120832014-09-02 Gary Benson <gbenson@redhat.com>
12084
12085 * i386-low.h: Renamed as...
12086 * x86-low.h: New file. All type, function and variable name
12087 prefixes changed from "i386_" to "x86_". All references updated.
12088 * i386-low.c: Renamed as...
12089 * x86-low.c: New file. All type, function and variable name
12090 prefixes changed from "i386_" to "x86_". All references updated.
12091
ed859da7
GB
120922014-09-02 Gary Benson <gbenson@redhat.com>
12093
12094 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12095 (x86_linux_new_thread): Likewise.
12096
860789c7
GB
120972014-08-29 Gary Benson <gbenson@redhat.com>
12098
12099 * server.h (setjmp.h): Do not include.
12100 (toplevel): Do not declare.
12101 (common-exceptions.h): Include.
12102 (cleanups.h): Likewise.
12103 * server.c (toplevel): Do not define.
12104 (exit_code): New static global.
12105 (detach_or_kill_for_exit_cleanup): New function.
12106 (main): New function. Original main renamed to...
12107 (captured_main): New function.
12108 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12109
ff55e1b5
GB
121102014-08-29 Gary Benson <gbenson@redhat.com>
12111
12112 * Makefile.in (SFILES): Add common/common-exceptions.c.
12113 (OBS): Add common-exceptions.o.
12114 (common-exceptions.o): New rule.
12115 * utils.c (prepare_to_throw_exception): New function.
12116
e9bcb658
GB
121172014-08-29 Gary Benson <gbenson@redhat.com>
12118
12119 * config.in: Regenerate.
12120 * configure: Likewise.
12121
e3180625
GB
121222014-08-29 Gary Benson <gbenson@redhat.com>
12123
12124 * Makefile.in (SFILES): Add common/cleanups.c.
12125 (OBS): cleanups.o.
12126 (cleanups.o): New rule.
12127
e3d6ba5d
GB
121282014-08-29 Gary Benson <gbenson@redhat.com>
12129
12130 * utils.c (internal_vwarning): New function.
12131
7096e886
GB
121322014-08-28 Gary Benson <gbenson@redhat.com>
12133
12134 * utils.h (fatal): Remove declaration.
12135 * utils.c (fatal): Remove function.
12136
14ce3192
GB
121372014-08-28 Gary Benson <gbenson@redhat.com>
12138
12139 * tracepoint.c (gdb_agent_init): Replace fatal with
12140 perror_with_name.
12141 (initialize_tracepoint): Likewise.
12142
50278d59
GB
121432014-08-28 Gary Benson <gbenson@redhat.com>
12144
12145 * remote-utils.c (remote_prepare): Replace fatal with error.
12146
aa96c426
GB
121472014-08-28 Gary Benson <gbenson@redhat.com>
12148
12149 * linux-low.c (linux_async): Replace fatal with warning.
12150 Tidy up and return.
12151 (linux_start_non_stop): Return -1 if linux_async failed.
12152
f7160e97
GB
121532014-08-28 Gary Benson <gbenson@redhat.com>
12154
12155 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12156 gdb_assert.
12157 (i386_dr_low_get_addr): Remove vague comment.
12158 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12159 gdb_assert.
12160
38e08fca
GB
121612014-08-28 Gary Benson <gbenson@redhat.com>
12162
12163 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12164 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12165 internal_error.
12166 (linux_resume_one_lwp): Likewise.
12167 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12168 gdb_assert.
12169 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12170 with internal_error.
12171 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12172 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12173 (find_register_by_name): Replace fatal with internal_error.
12174 (find_regno): Likewise.
12175 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12176 * thread-db.c (thread_db_create_event): Likewise.
12177 (thread_db_load_search): Likewise.
12178 (try_thread_db_load_1): Likewise.
12179 * tracepoint.c (get_jump_space_head): Replace fatal with
12180 internal_error.
12181 (claim_trampoline_space): Likewise.
12182 (have_fast_tracepoint_trampoline_buffer): Likewise.
12183 (cmd_qtstart): Likewise.
12184 (stop_tracing): Likewise.
12185 (fast_tracepoint_collecting): Likewise.
12186 (target_malloc): Likewise.
12187 (download_tracepoint): Likewise.
12188 (download_trace_state_variables): Replace check with gdb_assert.
12189 (upload_fast_traceframes): Replace fatal with internal_error.
12190
34abf635
GB
121912014-08-19 Tom Tromey <tromey@redhat.com>
12192 Gary Benson <gbenson@redhat.com>
12193
12194 * Makefile.in (SFILES): Add common/common-debug.c.
12195 (OBS): Add common-debug.o.
12196 (common-debug.o): New rule.
12197 * debug.h (debug_printf): Don't declare.
12198 * debug.c (debug_printf): Renamed and rewritten as...
12199 (debug_vprintf): New function.
12200
f6e94d78
GB
122012014-08-19 Gary Benson <gbenson@redhat.com>
12202
12203 * utils.h: Do not include print-utils.h.
12204
9239eeab
GB
122052014-08-19 Tom Tromey <tromey@redhat.com>
12206 Gary Benson <gbenson@redhat.com>
12207
12208 * server.h: Add static assertion.
12209 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12210
ef87c8bb
GB
122112014-08-19 Tom Tromey <tromey@redhat.com>
12212 Gary Benson <gbenson@redhat.com>
12213
12214 * Makefile.in (SFILES): Add common/errors.c.
12215 (OBS): Add errors.o.
12216 (IPA_OBS): Add errors-ipa.o.
12217 (errors.o): New rule.
12218 (errors-ipa.o): Likewise.
12219 * utils.h (perror_with_name, error, warning): Don't declare.
12220 * utils.c (warning): Renamed and rewritten as...
12221 (vwarning): New function.
12222 (error): Renamed and rewritten as...
12223 (verror): New function.
12224 (internal_error): Renamed and rewritten as...
12225 (internal_verror): New function.
12226
bb974a24
GB
122272014-08-07 Gary Benson <gbenson@redhat.com>
12228
12229 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12230 * configure: Regenerate.
12231 * config.in: Likewise.
12232 * server.h: Do not include errno.h.
12233 * event-loop.c: Likewise.
12234 * hostio-errno.c: Likewise.
12235 * linux-low.c: Likewise.
12236 * remote-utils.c: Likewise.
12237 * spu-low.c: Likewise.
12238 * utils.c: Likewise.
12239 * gdbreplay.c: Unconditionally include errno.h.
12240
6d3d12eb
GB
122412014-08-07 Gary Benson <gbenson@redhat.com>
12242
12243 * server.h: Do not include string.h.
12244 * event-loop.c: Likewise.
12245 * linux-low.c: Likewise.
12246 * regcache.c: Likewise.
12247 * remote-utils.c: Likewise.
12248 * spu-low.c: Likewise.
12249 * utils.c: Likewise.
12250
dccbb609
GB
122512014-08-07 Gary Benson <gbenson@redhat.com>
12252
12253 * server.h: Do not include gdb_assert.h.
12254
e76df0d0
GB
122552014-08-07 Gary Benson <gbenson@redhat.com>
12256
12257 * server.h: Do not include common-utils.h.
12258
4cb9c816
GB
122592014-08-07 Gary Benson <gbenson@redhat.com>
12260
12261 * server.h: Do not include ptid.h.
12262 * notif.h: Likewise.
12263
3995eeee
GB
122642014-08-07 Gary Benson <gbenson@redhat.com>
12265
12266 * server.h: Do not include gdb_locale.h.
12267
cb9f1a9b
GB
122682014-08-07 Gary Benson <gbenson@redhat.com>
12269
12270 * server.h: Do not include gdb/signals.h.
12271 * win32-low.c: Likewise.
12272
a5fceff8
GB
122732014-08-07 Gary Benson <gbenson@redhat.com>
12274
12275 * server.h: Do not include pathmax.h.
12276
b9391142
GB
122772014-08-07 Gary Benson <gbenson@redhat.com>
12278
12279 * server.h: Do not include libiberty.h.
12280 * linux-bfin-low.c: Likewise.
12281
0e443c87
GB
122822014-08-07 Gary Benson <gbenson@redhat.com>
12283
12284 * server.h: Do not include ansidecl.h.
12285
8ebb3f56
GB
122862014-08-07 Gary Benson <gbenson@redhat.com>
12287
12288 * linux-x86-low.c: Do not include stddef.h.
12289 * lynx-ppc-low.c: Likewise.
12290 * tracepoint.c: Likewise.
12291
8980bdf6
GB
122922014-08-07 Gary Benson <gbenson@redhat.com>
12293
12294 * server.h: Do not include stdarg.h.
12295 * nto-low.c: Likewise.
12296
d7096f71
GB
122972014-08-07 Gary Benson <gbenson@redhat.com>
12298
12299 * server.h: Do not include stdlib.h.
12300 * inferiors.c: Likewise.
12301 * linux-low.c: Likewise.
12302 * regcache.c: Likewise.
12303 * spu-low.c: Likewise.
12304 * tracepoint.c: Likewise.
12305 * utils.c: Likewise.
12306
d02f550d
GB
123072014-08-07 Gary Benson <gbenson@redhat.com>
12308
12309 * server.h: Do not include stdio.h.
12310 * linux-low.c: Likewise.
12311 * remote-utils.c: Likewise.
12312 * spu-low.c: Likewise.
12313 * utils.c: Likewise.
12314 * wincecompat.c: Likewise.
12315
87f6c4e3
GB
123162014-08-06 Gary Benson <gbenson@redhat.com>
12317
12318 * regcache.c (init_register_cache): Move conditionals inside if.
12319
7089dca4
GB
123202014-08-06 Gary Benson <gbenson@redhat.com>
12321
12322 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12323
462f517e
GB
123242014-07-31 Gary Benson <gbenson@redhat.com>
12325
12326 * ax.h: Do not include server.h.
12327 * gdbthread.h: Likewise.
12328 * lynx-low.h: Likewise.
12329 * notif.h: Likewise.
12330
976411d6
GB
123312014-07-30 Gary Benson <gbenson@redhat.com>
12332
12333 * server.h: Include common-defs.h.
12334 Do not include config.h or build-gnulib-gdbserver/config.h.
12335
d41f6d8e
GB
123362014-07-30 Gary Benson <gbenson@redhat.com>
12337
12338 * hostio-errno.c: Move server.h to top of includes list.
12339 * inferiors.c: Likewise.
12340 * linux-x86-low.c: Likewise.
12341 * notif.c: Include server.h.
12342
314c6a35
TT
123432014-07-24 Tom Tromey <tromey@redhat.com>
12344 Gary Benson <gbenson@redhat.com>
12345
12346 * server.h (CORE_ADDR): Now unsigned.
12347
69ff6be5
PA
123482014-07-16 Pedro Alves <palves@redhat.com>
12349
12350 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12351
ce9e3fe7
PA
123522014-07-15 Pedro Alves <palves@redhat.com>
12353
12354 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12355 copy.
12356
e76126e8
PA
123572014-07-11 Pedro Alves <palves@redhat.com>
12358
12359 * linux-low.c (kill_wait_lwp): New function, based on
12360 kill_one_lwp_callback, but use my_waitpid directly.
12361 (kill_one_lwp_callback, linux_kill): Use it.
12362
8e9db26e
PA
123632014-06-23 Pedro Alves <palves@redhat.com>
12364
12365 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12366 before setting DR0..DR3.
12367
698b3e08
GB
123682014-06-20 Gary Benson <gbenson@redhat.com>
12369
12370 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12371 * configure: Regenerated.
12372 * config.in: Likewise.
12373
125f8a3d
GB
123742014-06-20 Gary Benson <gbenson@redhat.com>
12375
12376 * Makefile.in (SFILES): Update locations for files moved
12377 from common to nat.
12378 (object file files): Reordered.
12379
42995dbd
GB
123802014-06-20 Gary Benson <gbenson@redhat.com>
12381
12382 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12383 (i386_dr_low_set_addr): Likewise.
12384 (i386_dr_low_get_addr): Likewise.
12385 (i386_dr_low_can_set_control): Likewise.
12386 (i386_dr_low_set_control): Likewise.
12387 (i386_dr_low_get_control): Likewise.
12388 (i386_dr_low_get_status): Likewise.
12389 (i386_get_debug_register_length): Likewise.
12390 * linux-x86-low.c (i386_dr_low_set_addr):
12391 Changed signature. Made static.
12392 (i386_dr_low_get_addr): Likewise.
12393 (i386_dr_low_set_control): Likewise.
12394 (i386_dr_low_get_control): Likewise.
12395 (i386_dr_low_get_status): Likewise.
12396 (i386_dr_low): New global variable.
12397 * win32-i386-low.c (i386_dr_low_set_addr):
12398 Changed signature. Made static.
12399 (i386_dr_low_get_addr): Likewise.
12400 (i386_dr_low_set_control): Likewise.
12401 (i386_dr_low_get_control): Likewise.
12402 (i386_dr_low_get_status): Likewise.
12403 (i386_dr_low): New global variable.
12404
e1d2394b
MS
124052014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12406
12407 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12408 * Makefile.in (AR, AR_FLAGS): Define.
12409 * configure: Regenerate.
12410
3a8ee006
GB
124112014-06-19 Gary Benson <gbenson@redhat.com>
12412
12413 * Makefile.in (i386-dregs.o): New rule.
12414 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12415 * i386-low.c (target.h): Remove include.
12416 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12417 (DR_CONTROL_SHIFT): Likewise.
12418 (DR_CONTROL_SIZE): Likewise.
12419 (DR_RW_EXECUTE): Likewise.
12420 (DR_RW_WRITE): Likewise.
12421 (DR_RW_READ): Likewise.
12422 (DR_RW_IORW): Likewise.
12423 (DR_LEN_1): Likewise.
12424 (DR_LEN_2): Likewise.
12425 (DR_LEN_4): Likewise.
12426 (DR_LEN_8): Likewise.
12427 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12428 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12429 (DR_ENABLE_SIZE): Likewise.
12430 (DR_LOCAL_SLOWDOWN): Likewise.
12431 (DR_GLOBAL_SLOWDOWN): Likewise.
12432 (DR_CONTROL_RESERVED): Likewise.
12433 (I386_DR_CONTROL_MASK): Likewise.
12434 (I386_DR_VACANT): Likewise.
12435 (I386_DR_LOCAL_ENABLE): Likewise.
12436 (I386_DR_GLOBAL_ENABLE): Likewise.
12437 (I386_DR_DISABLE): Likewise.
12438 (I386_DR_SET_RW_LEN): Likewise.
12439 (I386_DR_GET_RW_LEN): Likewise.
12440 (I386_DR_WATCH_HIT): Likewise.
12441 (i386_wp_op_t): Likewise.
12442 (i386_show_dr): Likewise.
12443 (i386_length_and_rw_bits): Likewise.
12444 (i386_insert_aligned_watchpoint): Likewise.
12445 (i386_remove_aligned_watchpoint): Likewise.
12446 (i386_handle_nonaligned_watchpoint): Likewise.
12447 i386_update_inferior_debug_regs(): Likewise.
12448 (i386_dr_insert_watchpoint): Likewise.
12449 (i386_dr_remove_watchpoint): Likewise.
12450 (i386_dr_region_ok_for_watchpoint): Likewise.
12451 (i386_dr_stopped_data_address): Likewise.
12452 (i386_dr_stopped_by_watchpoint): Likewise.
12453
8f26655c
GB
124542014-06-19 Gary Benson <gbenson@redhat.com>
12455
12456 * i386-low.c (i386_dr_show): Renamed to
12457 i386_show_dr and made static. All uses updated.
12458 (i386_dr_length_and_rw_bits): Renamed to
12459 i386_length_and_rw_bits and made static.
12460 All uses updated.
12461 (i386_dr_insert_aligned_watchpoint): Renamed to
12462 i386_insert_aligned_watchpoint and made static.
12463 All uses updated.
12464 (i386_dr_remove_aligned_watchpoint): Renamed to
12465 i386_remove_aligned_watchpoint and made static.
12466 All uses updated.
12467 (i386_dr_update_inferior_debug_regs): Renamed to
12468 i386_update_inferior_debug_regs and made static.
12469 All uses updated.
12470
b9228891
GB
124712014-06-18 Gary Benson <gbenson@redhat.com>
12472
5171def3
GB
12473 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12474 (i386_dr_low_can_set_control): Likewise.
12475 (i386_get_debug_register_length): Likewise.
12476 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12477 (i386_dr_low_can_set_control): Likewise.
12478 (i386_get_debug_register_length): Likewise.
12479
124802014-06-17 Gary Benson <gbenson@redhat.com>
12481
b9228891
GB
12482 * i386-low.h (i386-dregs.h): New include.
12483 (DR_FIRSTADDR): Now in i386-dregs.h.
12484 (DR_LASTADDR): Likewise.
12485 (DR_NADDR): Likewise.
12486 (DR_STATUS): Likewise.
12487 (DR_CONTROL): Likewise.
12488 (i386_debug_reg_state): Likewise.
12489 (i386_dr_insert_watchpoint): Likewise.
12490 (i386_dr_remove_watchpoint): Likewise.
12491 (i386_dr_region_ok_for_watchpoint): Likewise.
12492 (i386_dr_stopped_data_address): Likewise.
12493 (i386_dr_stopped_by_watchpoint): Likewise.
12494 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12495
4be83cc2
GB
124962014-06-18 Gary Benson <gbenson@redhat.com>
12497
12498 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12499 i386_dr_insert_watchpoint.
12500 (i386_low_remove_watchpoint): Renamed to
12501 i386_dr_remove_watchpoint.
12502 (i386_low_region_ok_for_watchpoint): Renamed to
12503 i386_dr_region_ok_for_watchpoint.
12504 (i386_low_stopped_data_address): Renamed to
12505 i386_dr_stopped_data_address.
12506 (i386_low_stopped_by_watchpoint): Renamed to
12507 i386_dr_stopped_by_watchpoint.
12508 * i386-low.c (i386_show_dr): Renamed to
12509 i386_dr_show and made nonstatic. All uses updated.
12510 (i386_length_and_rw_bits): Renamed to
12511 i386_dr_length_and_rw_bits and made nonstatic.
12512 All uses updated.
12513 (i386_insert_aligned_watchpoint): Renamed to
12514 i386_dr_insert_aligned_watchpoint and made nonstatic.
12515 All uses updated.
12516 (i386_remove_aligned_watchpoint): Renamed to
12517 i386_dr_remove_aligned_watchpoint and made nonstatic.
12518 All uses updated.
12519 (i386_update_inferior_debug_regs): Renamed to
12520 i386_dr_update_inferior_debug_regs and made nonstatic.
12521 All uses updated.
12522 (i386_low_insert_watchpoint): Renamed to
12523 i386_dr_insert_watchpoint. All uses updated.
12524 (i386_low_remove_watchpoint): Renamed to
12525 i386_dr_remove_watchpoint. All uses updated.
12526 (i386_low_region_ok_for_watchpoint): Renamed to
12527 i386_dr_region_ok_for_watchpoint. All uses updated.
12528 (i386_low_stopped_data_address): Renamed to
12529 i386_dr_stopped_data_address. All uses updated.
12530 (i386_low_stopped_by_watchpoint): Renamed to
12531 i386_dr_stopped_by_watchpoint. All uses updated.
12532
131aa0d4
GB
125332014-06-18 Gary Benson <gbenson@redhat.com>
12534
12535 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12536 (i386_dr_low_can_set_control): Likewise.
12537 (i386_insert_aligned_watchpoint): New check.
12538
d9305f7f
GB
125392014-06-18 Gary Benson <gbenson@redhat.com>
12540
12541 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12542 Renamed to state.
12543
e927c9fc
GB
125442014-06-18 Gary Benson <gbenson@redhat.com>
12545
12546 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12547 instead of fatal and error.
12548 (i386_handle_nonaligned_watchpoint): Likewise.
12549
1b6d4134
GB
125502014-06-18 Gary Benson <gbenson@redhat.com>
12551
12552 * i386-low.c (i386_get_debug_register_length): New macro.
12553 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12554 (i386_show_dr): Use debug_printf instead of fprintf. Use
12555 phex to format values.
12556
6e62758f
GB
125572014-06-18 Gary Benson <gbenson@redhat.com>
12558
12559 * i386-low.h: Comment changes.
12560 * i386-low.c: Likewise.
12561
fc6e2f03
GB
125622014-06-18 Gary Benson <gbenson@redhat.com>
12563
12564 * i386-low.c: Whitespace changes.
12565
f9d1eeed
TT
125662014-06-12 Tom Tromey <tromey@redhat.com>
12567
12568 * utils.c (freeargv): Remove.
12569
0b04e523
TT
125702014-06-12 Tom Tromey <tromey@redhat.com>
12571
12572 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12573 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12574 (parse_debug_format_options): Likewise.
12575 (gdbserver_usage): Likewise.
12576 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12577 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12578 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12579 against libiberty.
12580 ($(LIBGNU)): Depend on libiberty.
12581 (all-lib): Recurse into all subdirs.
12582 (install-only): Invoke "install" target in subdirs.
12583 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12584 targets.
12585 * configure: Rebuild.
12586 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12587 for vasprintf, vsnprintf, or gettimeofday.
12588 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12589 srv_tgtobj.
12590
270c9937
JB
125912014-06-05 Joel Brobecker <brobecker@adacore.com>
12592
12593 * development.sh: Delete.
12594 * Makefile.in (config.status): Adjust dependency on development.sh.
12595 * configure.ac: Adjust development.sh source call.
12596 * configure: Regenerate.
12597
0a261ed8
PA
125982014-06-02 Pedro Alves <palves@redhat.com>
12599
12600 * ax.c (gdb_free_agent_expr): New function.
12601 * ax.h (gdb_free_agent_expr): New declaration.
12602 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12603 list.
12604 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12605 static.
12606 (clear_breakpoint_conditions_and_commands): New function.
12607 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12608 (clear_breakpoint_conditions_and_commands): New declaration.
12609
e9dae05e
RR
126102014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12611
12612 * linux-aarch64-low.c (asm/ptrace.h): Include.
12613
5876f503
JK
126142014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12615
12616 Fix TLS access for -static -pthread.
12617 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12618 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12619 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12620
802e8e6d
PA
126212014-05-20 Pedro Alves <palves@redhat.com>
12622
12623 * linux-aarch64-low.c (aarch64_insert_point)
12624 (aarch64_remove_point): No longer check whether the type is
12625 supported here. Adjust to new interface.
12626 (the_low_target): Install aarch64_supports_z_point_type as
12627 supports_z_point_type method.
12628 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12629 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12630 instead of a Z packet char. Adjust.
12631 (arm_supports_z_point_type): New function.
12632 (arm_insert_point, arm_remove_point): Adjust to new interface.
12633 (the_low_target): Install arm_supports_z_point_type.
12634 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12635 (cris_insert_point, cris_remove_point): Adjust to new interface.
12636 Don't check whether the type is supported here.
12637 (the_low_target): Install cris_supports_z_point_type.
12638 * linux-low.c (linux_supports_z_point_type): New function.
12639 (linux_insert_point, linux_remove_point): Adjust to new interface.
12640 * linux-low.h (struct linux_target_ops) <insert_point,
12641 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12642 raw_breakpoint pointer parameter.
12643 <supports_z_point_type>: New method.
12644 * linux-mips-low.c (mips_supports_z_point_type): New function.
12645 (mips_insert_point, mips_remove_point): Adjust to new interface.
12646 Use mips_supports_z_point_type.
12647 (the_low_target): Install mips_supports_z_point_type.
12648 * linux-ppc-low.c (the_low_target): Install NULL as
12649 supports_z_point_type method.
12650 * linux-s390-low.c (the_low_target): Install NULL as
12651 supports_z_point_type method.
12652 * linux-sparc-low.c (the_low_target): Install NULL as
12653 supports_z_point_type method.
12654 * linux-x86-low.c (x86_supports_z_point_type): New function.
12655 (x86_insert_point): Adjust to new insert_point interface. Use
12656 insert_memory_breakpoint. Adjust to new
12657 i386_low_insert_watchpoint interface.
12658 (x86_remove_point): Adjust to remove_point interface. Use
12659 remove_memory_breakpoint. Adjust to new
12660 i386_low_remove_watchpoint interface.
12661 (the_low_target): Install x86_supports_z_point_type.
12662 * lynx-low.c (lynx_target_ops): Install NULL as
12663 supports_z_point_type callback.
12664 * nto-low.c (nto_supports_z_point_type): New.
12665 (nto_insert_point, nto_remove_point): Adjust to new interface.
12666 (nto_target_ops): Install nto_supports_z_point_type.
12667 * mem-break.c: Adjust intro comment.
12668 (struct raw_breakpoint) <raw_type, size>: New fields.
12669 <inserted>: Update comment.
12670 <shlib_disabled>: Delete field.
12671 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12672 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12673 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12674 (raw_bkpt_type_to_target_hw_bp_type): New function.
12675 (find_enabled_raw_code_breakpoint_at): New function.
12676 (find_raw_breakpoint_at): New type and size parameters. Use them.
12677 (insert_memory_breakpoint): New function, based off
12678 set_raw_breakpoint_at.
12679 (remove_memory_breakpoint): New function.
12680 (set_raw_breakpoint_at): Reimplement.
12681 (set_breakpoint): New, based on set_breakpoint_at.
12682 (set_breakpoint_at): Reimplement.
12683 (delete_raw_breakpoint): Go through the_target->remove_point
12684 instead of assuming memory breakpoints.
12685 (find_gdb_breakpoint_at): Delete.
12686 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12687 (find_gdb_breakpoint): New function.
12688 (set_gdb_breakpoint_at): Delete.
12689 (z_type_supported): New function.
12690 (set_gdb_breakpoint_1): New function, loosely based off
12691 set_gdb_breakpoint_at.
12692 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12693 (delete_gdb_breakpoint_at): Delete.
12694 (delete_gdb_breakpoint_1): New function, loosely based off
12695 delete_gdb_breakpoint_at.
12696 (delete_gdb_breakpoint): New function.
12697 (clear_gdb_breakpoint_conditions): Rename to ...
12698 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12699 breakpoint.
12700 (add_condition_to_breakpoint): Make static.
12701 (add_breakpoint_condition): Take a struct breakpoint pointer
12702 instead of an address. Adjust.
12703 (gdb_condition_true_at_breakpoint): Rename to ...
12704 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12705 z_type parameter.
12706 (gdb_condition_true_at_breakpoint): Reimplement.
12707 (add_breakpoint_commands): Take a struct breakpoint pointer
12708 instead of an address. Adjust.
12709 (gdb_no_commands_at_breakpoint): Rename to ...
12710 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12711 parameter. Return true if no breakpoint was found. Change debug
12712 output.
12713 (gdb_no_commands_at_breakpoint): Reimplement.
12714 (run_breakpoint_commands): Rename to ...
12715 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12716 and change return type to boolean.
12717 (run_breakpoint_commands): New function.
12718 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12719 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12720 breakpoint. Go through the_target->remove_point instead of
12721 assuming memory breakpoint.
12722 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12723 software and hardware breakpoints.
12724 (reinsert_raw_breakpoint): Go through the_target->insert_point
12725 instead of assuming memory breakpoint.
12726 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12727 software and hardware breakpoints.
12728 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12729 Check both software and hardware breakpoints.
12730 (validate_inserted_breakpoint): Assert the breakpoint is a
12731 software breakpoint. Set the inserted flag to -1 instead of
12732 setting shlib_disabled.
12733 (delete_disabled_breakpoints): Adjust.
12734 (validate_breakpoints): Only validate software breakpoints.
12735 Adjust to inserted flag change.
12736 (check_mem_read, check_mem_write): Skip breakpoint types other
12737 than software breakpoints. Adjust to inserted flag change.
12738 * mem-break.h (enum raw_bkpt_type): New enum.
12739 (raw_breakpoint, struct process_info): Forward declare.
12740 (Z_packet_to_target_hw_bp_type): Delete declaration.
12741 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12742 (set_gdb_breakpoint, delete_gdb_breakpoint)
12743 (clear_breakpoint_conditions): New declarations.
12744 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12745 (breakpoint_inserted_here): Update comment.
12746 (add_breakpoint_condition, add_breakpoint_commands): Replace
12747 address parameter with a breakpoint pointer parameter.
12748 (gdb_breakpoint_here): Update comment.
12749 (delete_gdb_breakpoint_at): Delete.
12750 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12751 * server.c (process_point_options): Take a struct breakpoint
12752 pointer instead of an address. Adjust.
12753 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12754 delete_gdb_breakpoint.
12755 * spu-low.c (spu_target_ops): Install NULL as
12756 supports_z_point_type method.
12757 * target.h: Include mem-break.h.
12758 (struct target_ops) <prepare_to_access_memory>: Update comment.
12759 <supports_z_point_type>: New field.
12760 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12761 instead of a char. Also take a raw breakpoint pointer.
12762 * win32-arm-low.c (the_low_target): Install NULL as
12763 supports_z_point_type.
12764 * win32-i386-low.c (i386_supports_z_point_type): New function.
12765 (i386_insert_point, i386_remove_point): Adjust to new interface.
12766 (the_low_target): Install i386_supports_z_point_type.
12767 * win32-low.c (win32_supports_z_point_type): New function.
12768 (win32_insert_point, win32_remove_point): Adjust to new interface.
12769 (win32_target_ops): Install win32_supports_z_point_type.
12770 * win32-low.h (struct win32_target_ops):
12771 <supports_z_point_type>: New method.
12772 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12773 instead of a char. Also take a raw breakpoint pointer.
12774
932539e3
PA
127752014-05-20 Pedro Alves <palves@redhat.com>
12776
12777 * mem-break.h: Include break-common.h.
12778 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12779 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12780 (Z_packet_to_target_hw_bp_type): New declaration.
12781 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12782 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12783 (Z_PACKET_ACCESS_WP): Delete macros.
12784 (Z_packet_to_hw_type): Delete function.
12785 * i386-low.h: Don't include break-common.h here.
12786 (Z_packet_to_hw_type): Delete declaration.
12787 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12788 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12789 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12790 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12791 * linux-aarch64-low.c: Don't include break-common.h here.
12792 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12793 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12794 (Z_packet_to_target_hw_bp_type): Delete function.
12795 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12796 function.
12797 (mips_insert_point, mips_remove_point): Use
12798 Z_packet_to_target_hw_bp_type.
12799
4ff0d3d8
PA
128002014-05-20 Pedro Alves <palves@redhat.com>
12801
12802 * linux-aarch64-low.c: Include break-common.h.
12803 (enum target_point_type): Delete.
12804 (Z_packet_to_point_type): Rename to ...
12805 (Z_packet_to_target_hw_bp_type): ... this, and return a
12806 target_hw_bp_type instead.
12807 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12808 instead of an enum target_point_type.
12809 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12810 breakpoint type.
12811 (aarch64_dr_state_insert_one_point)
12812 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12813 (aarch64_handle_aligned_watchpoint)
12814 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12815 Take an enum target_hw_bp_type instead of an enum
12816 target_point_type.
12817 (aarch64_supports_z_point_type): New function.
12818 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12819 use Z_packet_to_target_hw_bp_type.
12820
786dc519
JB
128212014-05-20 Joel Brobecker <brobecker@adacore.com>
12822
12823 * configure.ac: Only use -Werror by default when DEVELOPMENT
12824 is true.
12825 * configure: Regenerate.
12826
9e0aa64f
JK
128272014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12828
12829 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12830 * linux-x86-low.c (X86_64_USER_REGS): New.
12831 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12832
2b577b92
YQ
128332014-04-28 Yao Qi <yao@codesourcery.com>
12834
12835 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12836 name.
12837
94611da2
PA
128382014-04-25 Pedro Alves <palves@redhat.com>
12839
12840 PR server/16255
12841 * linux-low.c (linux_attach_fail_reason_string): New function.
12842 (linux_attach_lwp): Delete.
12843 (linux_attach_lwp_1): Rename to ...
12844 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12845 argument. Remove "initial" parameter. Return int instead of
12846 void. Don't error or warn here.
12847 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12848 failure to attach to the tgid. Call warning when failing to
12849 attach to an lwp.
12850 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12851 argument. Remove "initial" parameter. Return int instead of
12852 void. Don't error or warn here.
12853 (linux_attach_fail_reason_string): New declaration.
12854 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12855 interface change. Use linux_attach_fail_reason_string.
12856
01f9f808
MS
128572014-04-24 Michael Sturm <michael.sturm@mintel.com>
12858 Walfred Tedeschi <walfred.tedeschi@intel.com>
12859
12860 * Makefile.in: Added rules to handle new files
12861 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12862 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12863 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12864 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12865 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12866 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12867 x32-avx512-linux.o.
12868 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12869 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12870 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12871 i386/x32-avx512.xml.
12872 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12873 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12874 i386/x32-avx512-linux.xml.
12875 * i387-fp.c (num_avx512_k_registers): New constant for number
12876 of K registers.
12877 (num_avx512_zmmh_low_registers): New constant for number of
12878 lower ZMM registers (0-15).
12879 (num_avx512_zmmh_high_registers): New constant for number of
12880 higher ZMM registers (16-31).
12881 (num_avx512_ymmh_registers): New contant for number of higher
12882 YMM registers (ymm16-31 added by avx521 on x86_64).
12883 (num_avx512_xmm_registers): New constant for number of higher
12884 XMM registers (xmm16-31 added by AVX512 on x86_64).
12885 (struct i387_xsave): Add space for AVX512 registers.
12886 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12887 Add code to handle AVX512 registers.
12888 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12889 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12890 prototypei from generated file.
12891 (tdesc_amd64_avx512_linux): Likewise.
12892 (init_registers_x32_avx512_linux): Likewise.
12893 (tdesc_x32_avx512_linux): Likewise.
12894 (init_registers_i386_avx512_linux): Likewise.
12895 (tdesc_i386_avx512_linux): Likewise.
12896 (x86_64_regmap): Add AVX512 registers.
12897 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12898 mask.
12899 (initialize_low_arch): Add code to initialize AVX512 registers.
12900
51aa91f9
PA
129012014-04-23 Pedro Alves <palves@redhat.com>
12902
12903 * mem-break.c (find_gdb_breakpoint_at): Make static.
12904 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12905
a4165e94
PA
129062014-04-23 Pedro Alves <palves@redhat.com>
12907
12908 * i386-low.c: Don't include break-common.h here.
12909 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12910 prototype to take target_hw_bp_type as argument instead of a Z
12911 packet char.
12912 * i386-low.h: Include break-common.h here.
12913 (Z_packet_to_hw_type): Declare.
12914 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12915 prototypes.
12916 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12917 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12918 (x86_remove_point): Convert the packet number to a
12919 target_hw_bp_type before calling i386_low_remove_watchpoint.
12920 * win32-i386-low.c (i386_insert_point): Convert the packet number
12921 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12922 (i386_remove_point): Convert the packet number to a
12923 target_hw_bp_type before calling i386_low_remove_watchpoint.
12924
b8acf843
PA
129252014-04-23 Pedro Alves <palves@redhat.com>
12926
12927 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12928
d708bcd1
PA
129292014-04-10 Pedro Alves <palves@redhat.com>
12930
12931 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12932 Check if the condition or command is NULL before checking if the
12933 breakpoint is known. On success, return true.
12934 * mem-break.h (add_breakpoint_condition): Document return.
12935 (add_breakpoint_commands): Add describing comment.
12936 * server.c (skip_to_semicolon): New function.
12937 (process_point_options): Use it.
12938
2eec7d5b
PA
129392014-04-09 Pedro Alves <palves@redhat.com>
12940
12941 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12942 to lwpid_of.
12943
fa96cb38
PA
129442014-02-27 Pedro Alves <palves@redhat.com>
12945
12946 PR 12702
12947 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12948 macros.
12949 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12950 output.
12951 (last_thread_of_process_p): Take a PID argument instead of a
12952 thread pointer.
12953 (linux_wait_for_lwp): Delete.
12954 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12955 functions.
12956 (linux_low_filter_event): New function, party factored out from
12957 linux_wait_for_event.
12958 (linux_wait_for_event): Rename to ...
12959 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12960 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12961 sigsuspend. Check for zombie leaders.
12962 (linux_wait_for_event): Reimplement as wrapper around
12963 linux_wait_for_event_filtered.
12964 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12965 a normal or signal exit is seen, it's the whole process exiting.
12966 (wait_for_sigstop): No longer a for_each_inferior callback.
12967 Rewrite on top of linux_wait_for_event_filtered.
12968 (stop_all_lwps): Call wait_for_sigstop directly.
12969 * server.c (resume, handle_target_event): Handle
12970 TARGET_WAITKIND_NO_RESUMED.
12971
d763de10
JB
129722014-02-26 Joel Brobecker <brobecker@adacore.com>
12973
12974 * win32-low.c (psapi_get_dll_name,
12975 * win32_CreateToolhelp32Snapshot): Delete.
12976 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12977 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12978 Delete.
12979 (handle_load_dll): Add function description.
12980 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12981
850a0f76
JB
129822014-02-26 Joel Brobecker <brobecker@adacore.com>
12983
12984 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12985 Add comment.
12986 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12987 base address when calling win32_add_one_solib.
12988 (handle_load_dll): Delete local variable load_addr.
12989 Remove 0x1000 offset applied to DLL base address when calling
12990 win32_add_one_solib.
12991 (handle_unload_dll): Add comment.
12992
f25b3fc3
JB
129932014-02-26 Joel Brobecker <brobecker@adacore.com>
12994
12995 * win32-low.c (win32_add_all_dlls): Renames
12996 win32_ensure_ntdll_loaded. Rewrite function documentation.
12997 Adjust implementation to always load all DLLs.
12998 Add 0x1000 offset to DLL base address when calling
12999 win32_add_one_solib.
13000 (child_initialization_done): New static global.
13001 (do_initial_child_stuff): Set child_initialization_done to
13002 zero during child initialization, and 1 after. Replace call
13003 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13004 Add comment.
13005 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13006 (handle_unload_dll): Add function documentation.
13007 (get_child_debug_event): Ignore load and unload DLL events
13008 during child initialization.
13009
d86d4aaf
DE
130102014-02-20 Doug Evans <dje@google.com>
13011
3bc32da3 13012 Remove global all_lwps.
d86d4aaf
DE
13013 * inferiors.h (ptid_of): Move here from linux-low.h.
13014 (pid_of, lwpid_of): Ditto.
13015 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13016 parameter is a struct thread_info * now.
13017 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13018 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13019 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13020 directly.
13021 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13022 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13023 * linux-arm-low.c (update_registers_callback): Update, "entry"
13024 parameter is a struct thread_info * now.
13025 Fetch lwpid from current_inferior directly.
13026 (arm_insert_point): Pass &all_threads to find_inferior instead of
13027 &all_lwps.
13028 (arm_remove_point): Ditto.
13029 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13030 (arm_prepare_to_resume): Fetch pid from thread.
13031 (arm_read_description): Fetch lwpid from current_inferior directly.
13032 * linux-low.c (all_lwps): Delete.
13033 (delete_lwp): Delete call to remove_inferior.
13034 (handle_extended_wait): Fetch lwpid from thread.
13035 (add_lwp): Don't set lwp->entry.id. Remove call to
13036 add_inferior_to_list.
13037 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13038 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13039 (kill_one_lwp_callback): Ditto.
13040 (linux_kill): Don't dereference NULL pointer.
13041 Fetch ptid,lwpid from thread.
13042 (get_detach_signal): Fetch ptid from thread.
13043 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13044 Simplify call to regcache_invalidate_thread.
13045 (delete_lwp_callback): Update, "entry" parameter is a
13046 struct thread_info * now. Fetch pid from thread.
13047 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13048 (status_pending_p_callback): Update, "entry" parameter is a
13049 struct thread_info * now. Fetch ptid from thread.
13050 (find_lwp_pid): Update, "entry" parameter is a
13051 struct thread_info * now.
13052 (linux_wait_for_lwp): Fetch pid from thread.
13053 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13054 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13055 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13056 (dequeue_one_deferred_signal): Ditto.
13057 (cancel_breakpoint): Fetch ptid from current_inferior.
13058 (linux_wait_for_event): Pass &all_threads to find_inferior,
13059 not &all_lwps. Fetch ptid, lwpid from thread.
13060 (count_events_callback): Update, "entry" parameter is a
13061 struct thread_info * now.
13062 (select_singlestep_lwp_callback): Ditto.
13063 (select_event_lwp_callback): Ditto.
13064 (cancel_breakpoints_callback): Ditto.
13065 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13066 not &all_lwps.
13067 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13068 (unsuspend_one_lwp): Update, "entry" parameter is a
13069 struct thread_info * now.
13070 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13071 not &all_lwps.
13072 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13073 Fetch lwpid from thread, not lwp.
13074 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13075 Pass &all_threads to find_inferior, not &all_lwps.
13076 (send_sigstop): Fetch lwpid from thread, not lwp.
13077 (send_sigstop_callback): Update, "entry" parameter is a
13078 struct thread_info * now.
13079 (suspend_and_send_sigstop_callback): Ditto.
13080 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13081 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13082 struct thread_info * now.
13083 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13084 from thread, lwp.
13085 (lwp_running): Update, "entry" parameter is a
13086 struct thread_info * now.
13087 (stop_all_lwps): Fetch ptid from thread.
13088 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13089 (linux_resume_one_lwp): Fetch lwpid from thread.
13090 (linux_set_resume_request): Update, "entry" parameter is a
13091 struct thread_info * now. Fetch pid, lwpid from thread.
13092 (resume_status_pending_p): Update, "entry" parameter is a
13093 struct thread_info * now.
13094 (need_step_over_p): Ditto. Fetch lwpid from thread.
13095 (start_step_over): Fetch lwpid from thread.
13096 (linux_resume_one_thread): Update, "entry" parameter is a
13097 struct thread_info * now. Fetch lwpid from thread.
13098 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13099 (proceed_one_lwp): Update, "entry" parameter is a
13100 struct thread_info * now. Fetch lwpid from thread.
13101 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13102 struct thread_info * now.
13103 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13104 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13105 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13106 directly.
13107 (regsets_store_inferior_registers): Ditto.
13108 (fetch_register, store_register): Ditto.
13109 (linux_read_memory, linux_write_memory): Ditto.
13110 (linux_request_interrupt): Ditto.
13111 (linux_read_auxv): Ditto.
13112 (linux_xfer_siginfo): Ditto.
13113 (linux_qxfer_spu): Ditto.
13114 (linux_qxfer_libraries_svr4): Ditto.
13115 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13116 moved to inferiors.h.
13117 (get_lwp): Delete.
13118 (get_thread_lwp): Update.
13119 (struct lwp_info): Delete member "entry". Simplify comment for
13120 member "thread".
13121 (all_lwps): Delete.
13122 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13123 current_inferior directly.
13124 (update_watch_registers_callback): Update, "entry" parameter is a
13125 struct thread_info * now. Fetch pid from thread.
13126 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13127 (mips_insert_point): Fetch lwpid from current_inferior.
13128 Pass &all_threads to find_inferior, not &all_lwps.
13129 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13130 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13131 directly.
13132 (mips_stopped_data_address): Ditto.
13133 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13134 directly.
13135 * linux-tile-low.c (tile_arch_setup): Ditto.
13136 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13137 (update_debug_registers_callback): Update, "entry" parameter is a
13138 struct thread_info * now. Fetch pid from thread.
13139 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13140 Pass &all_threads to find_inferior, not &all_lwps.
13141 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13142 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13143 Pass &all_threads to find_inferior, not &all_lwps.
13144 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13145 (i386_dr_low_get_status): Ditto.
13146 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13147 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13148 (x86_linux_read_description): Ditto.
13149 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13150
3b8361aa
DE
131512014-02-20 Doug Evans <dje@google.com>
13152
13153 * inferiors.c (get_first_inferior): Fix buglet.
13154
f7667f0d
DE
131552014-02-19 Doug Evans <dje@google.com>
13156
13157 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13158 * inferiors.c (add_thread): Change result type to struct thread_info *.
13159 All callers updated.
13160 (add_lwp): Call add_thread here instead of in callers.
13161 All callers updated.
13162 * linux-low.h (get_lwp_thread): Rewrite.
13163 (struct lwp_info): New member "thread".
13164
b3312d80
DE
131652014-02-19 Doug Evans <dje@google.com>
13166
13167 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13168 All callers updated.
13169
ecc6f45c
DE
131702014-02-19 Doug Evans <dje@google.com>
13171
13172 * inferiors.c (add_thread): Fix whitespace.
13173
649ebbca
DE
131742014-02-19 Doug Evans <dje@google.com>
13175
13176 * dll.c (clear_dlls): Replace accessing list implemention details
13177 with API function.
13178 * gdbthread.h (get_first_thread): Declare.
13179 * inferiors.c (for_each_inferior_with_data): New function.
13180 (get_first_thread): New function.
13181 (find_thread_ptid): Simplify.
13182 (get_first_inferior): New function.
13183 (clear_list): Delete.
13184 (one_inferior_p): New function.
13185 (clear_inferior_list): New function.
13186 (clear_inferiors): Update.
13187 * inferiors.h (for_each_inferior_with_data): Declare.
13188 (clear_inferior_list): Declare.
13189 (one_inferior_p): Declare.
13190 (get_first_inferior): Declare.
13191 * linux-low.c (linux_wait_for_event): Replace accessing list
13192 implemention details with API function.
13193 * server.c (target_running): Ditto.
13194 (accumulate_file_name_length): New function.
13195 (emit_dll_description): New function.
13196 (handle_qxfer_libraries): Replace accessing list implemention
13197 details with API function.
13198 (handle_qxfer_threads_worker): New function.
13199 (handle_qxfer_threads_proper): Replace accessing list implemention
13200 details with API function.
13201 (handle_query): Ditto.
13202 (visit_actioned_threads_callback_ftype): New typedef.
13203 (visit_actioned_threads_data): New struct.
13204 (visit_actioned_threads): Rewrite to be find_inferior callback.
13205 (resume): Call find_inferior.
13206 (handle_status): Replace accessing list implemention
13207 details with API function.
13208 (process_serial_event): Replace accessing list implemention details
13209 with API function.
13210 * target.c (set_desired_inferior): Replace accessing list implemention
13211 details with API function.
13212 * tracepoint.c (same_process_p): New function.
13213 (gdb_agent_about_to_close): Replace accessing list implemention
13214 details with API function.
13215 * win32-low.c (child_delete_thread): Replace accessing list
13216 implemention details with API function.
13217 (match_dll_by_basename): New function.
13218 (dll_is_loaded_by_basename): New function.
13219 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13220 details call to dll_is_loaded_by_basename.
13221
80894984
DE
132222014-02-19 Doug Evans <dje@google.com>
13223
13224 * dll.h (struct dll_info): Add comment.
13225 * gdbthread.h (struct thread_info): Add comment.
13226 (current_ptid): Simplify.
13227 * inferiors.c (add_process): Update.
13228 (remove_process): Update.
13229 * inferiors.h (struct process_info): Rename member "head" to "entry".
13230 * linux-low.c (delete_lwp): Update.
13231 (add_lwp): Update.
13232 (last_thread_of_process_p): Update.
13233 (kill_one_lwp_callback, linux_kill): Update.
13234 (status_pending_p_callback): Update.
13235 (wait_for_sigstop): Update. Simplify read of ptid.
13236 (start_step_over): Update.
13237 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13238 (get_lwp_thread): Update.
13239 (struct lwp_info): Rename member "head" to "entry".
13240 * regcache.h (inferior_list_entry): Delete.
13241 * server.c (kill_inferior_callback): Update.
13242 (detach_or_kill_inferior_callback): Update.
13243 (print_started_pid): Update.
13244 (print_attached_pid): Update.
13245 (process_serial_event): Simplify read of ptid.
13246 * thread-db.c (thread_db_create_event): Update.
13247 (thread_db_get_tls_address): Update.
13248 * win32-low.c (current_inferior_ptid): Simplify.
13249
46917d26
TT
132502014-02-19 Tom Tromey <tromey@redhat.com>
13251
13252 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13253 argument.
13254 (target_supports_btrace): Update.
13255
0759a81e
YQ
132562014-02-14 Yao Qi <yao@codesourcery.com>
13257
13258 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13259 (rsp-low-ipa.o): New target.
13260
a7191e8b
TT
132612014-02-12 Tom Tromey <tromey@redhat.com>
13262
13263 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13264 convert_ascii_to_int.
13265 * regcache.c (registers_to_string): Likewise.
13266 * remote-utils.c (decode_M_packet): Likewise.
13267 * server.c (process_serial_event): Likewise.
13268
ff0e980e
TT
132692014-02-12 Tom Tromey <tromey@redhat.com>
13270
13271 * server.c (handle_query, handle_v_run): Use hex2bin, not
13272 unhexify.
13273 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13274
e9371aff
TT
132752014-02-12 Tom Tromey <tromey@redhat.com>
13276
13277 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13278 convert_int_to_ascii.
13279 * regcache.c (registers_to_string, collect_register_as_string):
13280 Likewise.
13281 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13282 Likewise.
13283 * server.c (process_serial_event): Likewise.
13284 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13285 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13286
971dc0b8
TT
132872014-02-12 Tom Tromey <tromey@redhat.com>
13288
13289 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13290 bin2hex, not hexify.
13291 * tracepoint.c (cmd_qtstatus): Likewise.
13292
0a822afb
TT
132932014-02-12 Tom Tromey <tromey@redhat.com>
13294
13295 * remote-utils.c (monitor_output): Pass explicit length to
13296 hexify.
13297
9c3d6531
TT
132982014-02-12 Tom Tromey <tromey@redhat.com>
13299
13300 * tracepoint.c: Include rsp-low.h.
13301 * server.c: Include rsp-low.h.
13302 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13303 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13304 declare.
13305 * remote-utils.c: Include rsp-low.h.
13306 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13307 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13308 (convert_int_to_ascii, convert_ascii_to_int): Move to
13309 common/rsp-low.c.
13310 * regcache.c: Include rsp-low.h.
13311 * ax.c: Include rsp-low.h.
13312 * Makefile.in (SFILES): Add common/rsp-low.c.
13313 (OBS): Add rsp-low.o.
13314 (rsp-low.o): New target.
13315
01fd3ea5
TT
133162014-02-12 Tom Tromey <tromey@redhat.com>
13317
13318 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13319 Include print-utils.h.
13320 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13321 (plongest, thirty_two, phex_nz): Remove.
13322 * Makefile.in (SFILES): Add common/print-utils.c.
13323 (OBS): Add print-utils.o.
13324 (print-utils-ipa.o): New target.
13325 (print-utils.o): New target.
13326 (IPA_OBJS): Add print-utils-ipa.o.
13327
e99dc820
TT
133282014-02-06 Tom Tromey <tromey@redhat.com>
13329
13330 * Makefile.in (SFILES): Fix indentation.
13331
ee1e2d4f
DE
133322014-02-05 Doug Evans <dje@google.com>
13333
13334 * linux-low.c (linux_wait_for_event): Improve comment.
13335 (linux_wait_1): Keep current_inferior in sync with event_child.
13336
f5a02773
DE
133372014-01-22 Doug Evans <dje@google.com>
13338
13339 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13340
87ce2a04
DE
133412014-01-22 Doug Evans <dje@google.com>
13342
13343 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13344 * configure: Regenerate.
13345 * config.in: Regenerate.
13346 * Makefile.in (SFILES): Add debug.c.
13347 (OBS): Add debug.o.
13348 * debug.c: New file.
13349 * debug.h: New file.
13350 * linux-aarch64-low.c (*): Update all debugging printfs to use
13351 debug_printf instead of fprintf.
13352 * linux-arm-low.c (*): Ditto.
13353 * linux-cris-low.c (*): Ditto.
13354 * linux-crisv32-low.c (*): Ditto.
13355 * linux-m32r-low.c (*): Ditto.
13356 * linux-sparc-low.c (*): Ditto.
13357 * linux-x86.c (*): Ditto.
13358 * linux-low.c (*): Ditto.
13359 (linux_wait_1): Add calls to debug_enter, debug_exit.
13360 (linux_wait): Remove redundant debugging printf.
13361 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13362 (linux_resume, unstop_all_lwps): Ditto.
13363 * mem-break.c (*): Update all debugging printfs to use
13364 debug_printf instead of fprintf.
13365 * remote-utils.c (*): Ditto.
13366 * thread-db.c (*): Ditto.
13367 * server.c #include <ctype.h>, "gdb_vecs.h".
13368 (debug_threads): Moved to debug.c.
13369 (*): Update all debugging printfs to use debug_printf instead of
13370 fprintf.
13371 (start_inferior): Replace call to fflush with call to debug_flush.
13372 (monitor_show_help): Mention set debug-format.
13373 (parse_debug_format_options): New function.
13374 (handle_monitor_command): Handle "monitor set debug-format".
13375 (gdbserver_usage): Mention --debug-format.
13376 (main): Parse --debug-format.
13377 * server.h (debug_threads): Declaration moved to debug.h.
13378 #include "debug.h".
13379 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13380 trace_debug_1 that uses debug_printf.
13381 (tracepoint_look_up_symbols): Update all debugging printfs to use
13382 debug_printf instead of fprintf.
13383
e671835b
BS
133842014-01-20 Baruch Siach <baruch@tkos.co.il>
13385
13386 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13387 sys/ptrace.h.
13388
b5737fa9
PA
133892014-01-17 Pedro Alves <palves@redhat.com>
13390
ea38d2a9 13391 PR build/16445
c7faa97a
PA
13392 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13393 defined after including gdb_proc_service.h.
b5737fa9 13394
40ed484e
DE
133952014-01-16 Doug Evans <dje@google.com>
13396
13397 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13398 (match_dll): Use it.
13399
969c39fb
MM
134002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13401
13402 * target.h (target_ops) <read_btrace>: Change parameters and
13403 return type to allow error reporting.
13404 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13405 trace reading errors on.
13406 * linux-low.c (linux_low_read_btrace): Pass trace reading
13407 errors on.
13408 (linux_low_disable_btrace): New.
13409
ab7f45ba
DE
134102014-01-15 Doug Evans <dje@google.com>
13411
13412 * inferiors.c (thread_id_to_gdb_id): Delete.
13413 * inferiors.h (thread_id_to_gdb_id): Delete.
13414
66af0f44
EZ
134152014-01-13 Eli Zaretskii <eliz@gnu.org>
13416
13417 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13418 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13419 versions.
13420
9939e131
PA
134212014-01-08 Pedro Alves <palves@redhat.com>
13422
13423 * server.c (handle_status): Don't discard previous queued stop
13424 replies or thread's pending status here.
13425 (main) <disconnection>: Do it here instead.
13426
b7ea362b
PA
134272014-01-08 Pedro Alves <palves@redhat.com>
13428
13429 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13430 * server.c (visit_actioned_threads, handle_pending_status): New
13431 function.
13432 (handle_v_cont): Factor out parts to ...
13433 (resume): ... this new function. If in all-stop, and a thread
13434 being resumed has a pending status, report it without actually
13435 resuming.
13436 (myresume): Adjust to use the new 'resume' function.
13437 (clear_pending_status_callback, set_pending_status_callback)
13438 (find_status_pending_thread_callback): New functions.
13439 (handle_status): Handle the case of multiple threads having
13440 interesting statuses to report. Report threads' real last signal
13441 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13442 with an interesting thread to report the status for, instead of
13443 always reporting the status of the first thread.
13444
28498c42
JB
134452014-01-01 Joel Brobecker <brobecker@adacore.com>
13446
13447 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13448 * gdbreplay.c (gdbreplay_version): Likewise.
13449
f45c82da
YZ
134502013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13451
13452 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13453 iov.iov_len with the real length in use.
13454
379a5e2d
JB
134552013-12-13 Joel Brobecker <brobecker@adacore.com>
13456
13457 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13458 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13459 for all targets that use win32-low.c.
13460 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13461 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13462
4210d83e
PA
134632013-12-13 Pedro Alves <palves@redhat.com>
13464
13465 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13466 if equal to TARGET_WAITKIND_LOADED.
13467 * win32-low.c (cached_status): New static global.
13468 (win32_wait): Add declaration.
13469 (do_initial_child_stuff): Flush all initial pending debug events
13470 up to the initial breakpoint.
13471 (win32_wait): If CACHED_STATUS was set, return that instead
13472 of doing a real wait. Remove the code resuming the execution
13473 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13474 during the initial phase. Also remove the code changing
13475 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13476 TARGET_WAITKIND_STOPPED.
13477
e7f0d979
YQ
134782013-12-11 Yao Qi <yao@codesourcery.com>
13479
13480 * notif.c (handle_notif_ack): Return 0 if no notification
13481 matches.
13482
ebcf782c
DE
134832013-11-20 Doug Evans <dje@google.com>
13484
13485 * linux-low.c (linux_set_resume_request): Fix comment.
13486
20ad9378
DE
134872013-11-20 Doug Evans <dje@google.com>
13488
13489 * linux-low.c (resume_status_pending_p): Tweak comment.
13490
a196ebeb
WT
134912013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13492
13493 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13494 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13495 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13496 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13497 (srv_amd64_regobj): Add amd64-mpx.o.
13498 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13499 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13500 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13501 * i387-fp.c (num_pl_bnd_register) Added constant.
13502 (num_pl_bnd_cfg_registers) Added constant.
13503 (struct i387_xsave) Added reserved area and MPX fields.
13504 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13505 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13506 function.
13507 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13508 (init_registers_amd64_mpx_linux): Declare new function.
13509 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13510 (x86_64_regmap): Add MPX registers.
13511 (x86_linux_read_description): Add MPX case.
13512 (initialize_low_arch): Initialize MPX targets.
13513
0080a2f6
TT
135142013-11-18 Tom Tromey <tromey@redhat.com>
13515
13516 * configure: Rebuild.
13517 * configure.ac: Don't check for stdlib.h.
13518 * gdbreplay.c: Unconditionally include stdlib.h.
13519
2978b111
TT
135202013-11-18 Tom Tromey <tromey@redhat.com>
13521
13522 * config.in: Rebuild.
13523 * configure: Rebuild.
13524 * configure.ac: Don't use AC_HEADER_DIRENT.
13525
a3d08894
TT
135262013-11-18 Tom Tromey <tromey@redhat.com>
13527
13528 * server.h: Don't check HAVE_STRING_H.
13529 * gdbreplay.c: Don't check HAVE_STRING_H.
13530 * configure: Rebuild.
13531
0a5dd17d
TT
135322013-11-18 Tom Tromey <tromey@redhat.com>
13533
13534 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13535 LIBGNU.
13536
1bd2f0ba
TT
135372013-11-08 Tom Tromey <tromey@redhat.com>
13538
13539 * configure, config.in: Rebuild.
13540 * configure.ac: Remove unused configury.
13541
3266f10b
TT
135422013-11-08 Tom Tromey <tromey@redhat.com>
13543
13544 * acinclude.m4: Include common.m4, codeset.m4.
13545 * configure, config.in: Rebuild.
13546 * configure.ac: Use GDB_AC_COMMON.
13547
6682d959
AA
135482013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13549
13550 * linux-s390-low.c (HWCAP_S390_TE): New define.
13551 (s390_arch_setup): Consider the TE field in the HWCAP for
13552 determining 'have_regset_tdb'.
13553
fd0a4d76
SDJ
135542013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13555
13556 PR gdb/16014
13557 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13558 call to sizeof.
13559
1a3d890b
PA
135602013-10-02 Pedro Alves <palves@redhat.com>
13561
13562 * server.c (process_serial_event): Don't output "GDBserver
13563 exiting" if GDB is connected through stdio.
13564 * target.c (mywait): Likewise, be silent if GDB is connected
13565 through stdio.
13566
97ad4581
JB
135672013-10-01 Joel Brobecker <brobecker@adacore.com>
13568
13569 * lynx-low.c (lynx_add_threads_after_attach): New function.
13570 (lynx_attach): Remove call to add_thread. Add call to
13571 lynx_add_threads_after_attach instead.
13572
5b4e221c
MF
135732013-09-28 Mike Frysinger <vapier@gentoo.org>
13574
13575 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13576 * config.in, configure: Regenerated.
13577
ee47b2f8
YQ
135782013-09-18 Yao Qi <yao@codesourcery.com>
13579
13580 PR server/15959
13581 * server.c (start_inferior): Clear 'resume_info'.
13582
d6707650 135832013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13584
d6707650
JW
13585 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13586 for each register.
13587
9243dd0e 135882013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13589
9243dd0e
JW
13590 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13591 linux-tile-low.o to srv_tgtobj.
13592
c623a6ef
WN
135932013-09-16 Will Newton <will.newton@linaro.org>
13594
13595 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13596 out regs.
13597
fb71d39e
PA
135982013-09-06 Pedro Alves <palves@redhat.com>
13599
13600 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13601 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13602 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13603 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13604 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13605 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13606
8e7e9910
PA
136072013-09-06 Pedro Alves <palves@redhat.com>
13608
13609 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13610 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13611
7c3a12ca
PA
136122013-09-06 Pedro Alves <palves@redhat.com>
13613
13614 * linux-amd64-ipa.c: Include tracepoint.h.
13615 * linux-i386-ipa.c: Include tracepoint.h.
13616
8eb3d7b6
RW
136172013-09-06 Ricard Wanderlof <ricardw@axis.com>
13618
13619 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13620 (ps_get_thread_area): New function.
13621
eddddb9d
RW
136222013-09-06 Ricard Wanderlof <ricardw@axis.com>
13623
13624 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13625 (initialize_low_arch): Call init_registers_crisv32 rather than
13626 init_register_crisv32.
13627
533b0600
PA
136282013-09-05 Pedro Alves <palves@redhat.com>
13629
13630 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13631 to ...
13632 * hostio.h: ... this new file.
13633 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13634 win32-low.c: Include hostio.h.
13635
0ce3d3b5
PA
136362013-09-05 Pedro Alves <palves@redhat.com>
13637
13638 * server.h (gdb_client_data, handler_func, callback_handler_func)
13639 (delete_file_handler, add_file_handler, append_callback_event)
13640 (delete_callback_event, start_event_loop, initialize_event_loop):
13641 Move to event-loop.h and include it.
13642 * event-loop.h: New file.
13643
799cdc37
PA
136442013-09-05 Pedro Alves <palves@redhat.com>
13645
13646 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13647 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13648 (loaded_dll, unloaded_dll): Move to ...
13649 * dll.h: ... this new file.
13650 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13651
6a6bbd9d
PA
136522013-09-05 Pedro Alves <palves@redhat.com>
13653
13654 * server.h (current_process, get_thread_process, all_processes)
13655 (add_inferior_to_list, for_each_inferior, current_inferior)
13656 (remove_inferior, add_process, remove_process, find_process_pid)
13657 (have_started_inferiors_p, have_attached_inferiors_p)
13658 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13659 (clear_inferiors, find_inferior, find_inferior_id)
13660 (inferior_target_data, set_inferior_target_data)
13661 (inferior_regcache_data, set_inferior_regcache_data): Move to
13662 inferiors.h, and include it.
13663 * inferiors.h: New file.
13664
f699aaba
PA
136652013-09-05 Pedro Alves <palves@redhat.com>
13666
13667 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13668 Move ...
72f4393d 13669 * ax.h: ... here.
f699aaba 13670
c144c7a0
PA
136712013-09-05 Pedro Alves <palves@redhat.com>
13672
13673 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13674 tracepoint.h.
13675 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13676 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13677 (handle_tracepoint_general_set, handle_tracepoint_query)
13678 (tracepoint_finished_step, tracepoint_was_hit)
13679 (release_while_stepping_state_list, current_traceframe)
13680 (in_readonly_region, traceframe_read_mem)
13681 (fetch_traceframe_registers, traceframe_read_sdata)
13682 (traceframe_read_info, struct fast_tpoint_collect_status)
13683 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13684 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13685 (supply_fast_tracepoint_registers)
13686 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13687 (ipa_tdesc, claim_trampoline_space)
13688 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13689 (agent_mem_read, agent_get_trace_state_variable_value)
13690 (agent_set_trace_state_variable_value, agent_tsv_read)
13691 (agent_mem_read_string, get_raw_reg_func_addr)
13692 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13693 * tracepoint.h: ... this new file.
13694
ff42e6ab
PA
136952013-09-05 Pedro Alves <palves@redhat.com>
13696
13697 * server.h (perror_with_name, error, fatal, warning, paddress)
13698 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13699 include it.
13700 * utils.h: New file.
13701
541af0f4
PA
137022013-09-05 Pedro Alves <palves@redhat.com>
13703
13704 * server.h (remote_debug, noack_mode, transport_is_reliable)
13705 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13706 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13707 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13708 (write_enn, initialize_async_io, enable_async_io)
13709 (disable_async_io, check_remote_input_interrupt_request)
13710 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13711 (dead_thread_notify, prepare_resume_reply)
13712 (decode_address_to_semicolon, decode_address, decode_m_packet)
13713 (decode_M_packet, decode_X_packet, decode_xfer_write)
13714 (decode_search_memory_packet, unhexify, hexify)
13715 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13716 (look_up_one_symbol, relocate_instruction)
13717 (monitor_output): Move to remote-utils.h, and include it.
13718 * remote-utils.h: New file.
13719
eebdf26b
PA
137202013-09-05 Pedro Alves <palves@redhat.com>
13721
13722 * server.h (_): Delete.
13723
3aafd2ff
PA
137242013-09-02 Pedro Alves <palves@redhat.com>
13725
13726 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13727 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13728 allocated.
13729 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13730
cee83bcb
PM
137312013-09-02 Pierre Muller <muller@sourceware.org>
13732
13733 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13734 or WriteProcessMemory complete successfully and handle
13735 ERROR_PARTIAL_COPY error.
13736
9a13b2fa
PA
137372013-09-02 Pedro Alves <palves@redhat.com>
13738
13739 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13740 error instead of EIO.
13741
602e3198
JK
137422013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13743
13744 PR server/15604
13745 * linux-low.c: Include filestuff.h.
13746 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13747 * lynx-low.c: Include filestuff.h.
13748 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13749 * server.c: Include filestuff.h.
13750 (main): Call notice_open_fds.
13751 * spu-low.c: Include filestuff.h.
13752 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13753
96d7229d
LM
137542013-08-22 Luis Machado <lgustavo@codesourcery.com>
13755
13756 * Makefile.in: Explain why ../target and ../nat are not
13757 listed as include file search paths.
13758 (linux-waitpid.o): New object file rule.
13759 * configure.srv (srv_native_linux_obj): New variable.
13760 Replace all occurrences of linux native object files with
13761 $srv_native_linux_obj.
13762 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13763 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13764 (linux_enable_event_reporting): Remove declaration.
13765 (my_waitpid): Moved to common/linux-waitpid.c.
13766 (linux_wait_for_event): Pass ptid when calling
13767 linux_enable_event_reporting.
13768 (linux_supports_tracefork_flag): Remove.
13769 (linux_enable_event_reporting): Likewise.
13770 (linux_tracefork_grandchild): Remove.
13771 (STACK_SIZE): Moved to common/linux-ptrace.c.
13772 (linux_tracefork_child): Remove.
13773 (linux_test_for_tracefork): Remove.
13774 (linux_look_up_symbols): Call linux_supports_traceclone.
13775 (initialize_low): Remove call to linux_test_for_tracefork.
13776 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13777 common/linux-ptrace.h.
13778 (PTRACE_TYPE_ARG4): Likewise.
13779 Include linux-ptrace.h.
13780
32940073
PA
137812013-08-21 Pedro Alves <palves@redhat.com>
13782
13783 * config.in: Renegerate.
13784
33b60d58 137852013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13786
33b60d58
LM
13787 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13788 (SFILES): Remove $(srcdir)/common/target-common.c and
13789 add $(srcdir)/target/waitstatus.c.
13790 (OBS): Remove target-common.o and add waitstatus.o.
13791 (server_h): Remove $(srcdir)/../common/target-common.h and
13792 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13793 and $(srcdir)/../target/waitstatus.h.
13794 (target-common.o): Remove.
13795 (waitstatus.o): New target object file.
13796 * target.h: Do not include target-common.h and
13797 include target/resume.h, target/wait.h and
13798 target/waitstatus.h.
13799
b8e1b30e
LM
138002013-08-13 Luis Machado <lgustavo@codesourcery.com>
13801
13802 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13803 to PTRACE_TYPE_ARG3.
13804 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13805 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13806 PTRACE_TYPE_ARG4.
13807 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13808 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13809
7a60ad40
YQ
138102013-07-27 Jie Zhang <jie@codesourcery.com>
13811 Daniel Jacobowitz <dan@codesourcery.com>
13812 Yao Qi <yao@codesourcery.com>
13813
13814 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13815 (mips-linux-watch.o): New rule.
13816 (mips_linux_watch_h): New variable.
13817 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13818 srv_tgtobj.
13819 * linux-mips-low.c: Include mips-linux-watch.h.
13820 (struct arch_process_info, struct arch_lwp_info): New.
13821 (update_watch_registers_callback): New function.
13822 (mips_linux_new_process, mips_linux_new_thread) New functions.
13823 (mips_linux_prepare_to_resume, mips_insert_point): New
13824 functions.
13825 (mips_remove_point, mips_stopped_by_watchpoint): New
13826 functions.
13827 (rsp_bp_type_to_target_hw_bp_type): New function.
13828 (mips_stopped_data_address): New function.
13829 (the_low_target): Add watchpoint support functions.
13830
de6f69ad
YQ
138312013-07-27 Yao Qi <yao@codesourcery.com>
13832
13833 * i386-low.c: Include break-common.h.
13834 (enum target_hw_bp_type): Remove.
13835
3360c0bf
LM
138362013-07-24 Luis Machado <lgustavo@codesourcery.com>
13837
13838 * Makefile.in (SFILES): /common/target-common.c.
13839 (OBS): Add target-common.o.
13840 (server_h): Add $(srcdir)/../common/target-common.h.
13841 (target-common.o): New target.
13842 * server.c (queue_stop_reply_callback): Free
13843 status string after use.
13844 * target.c (target_waitstatus_to_string): Remove.
13845 * target.h: Include target-common.h.
13846 (resume_kind): Likewise.
13847 (target_waitkind): Likewise.
13848 (target_waitstatus): Likewise.
13849 (TARGET_WNOHANG): Likewise.
13850
bd885420
YQ
138512013-07-04 Yao Qi <yao@codesourcery.com>
13852
13853 * Makefile.in (host_alias): Use @host_noncanonical@.
13854 (target_alias): Use @target_noncanonical@.
13855 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13856 ACX_NONCANONICAL_HOST.
13857 * configure: Regenerated.
13858
13859 Revert:
13860 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13861
13862 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13863 * configure: Rebuild.
13864 * Makefile.in (version_host, version_target): Get from configure.
13865 (version.c): Use $(version_host) and $(version_target).
13866
17ef446e
PA
138672013-07-03 Pedro Alves <palves@redhat.com>
13868
13869 * Makefile.in (config.status): Depend on development.sh.
13870 * acinclude.m4: Include libmcheck.m4.
13871 * configure: Regenerate.
13872
7a9a7487
MG
138732013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13874
13875 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13876 attribute inside the parentheses.
13877 (winapi_DebugSetProcessKillOnExit): Ditto.
13878 (winapi_DebugBreakProcess): Ditto.
13879 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13880
49b64de6
MG
138812013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13882
13883 * notif.h (notif_event): Add a dummy member to avoid compiler
13884 errors.
13885
d5749ee7
PA
138862013-07-01 Pedro Alves <palves@redhat.com>
13887
13888 * hostio.c (HOSTIO_PATH_MAX): Define.
13889 (require_filename, handle_open, handle_unlink, handle_readlink):
13890 Use it.
13891
d8d2a3ee
PA
138922013-07-01 Pedro Alves <palves@redhat.com>
13893
13894 * server.h: Include "pathmax.h".
13895 * linux-low.c: Don't include sys/param.h.
13896 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13897 MAXPATHLEN.
13898 * win32-low.c: Don't include sys/param.h.
13899 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13900
bc7dea8d
PA
139012013-07-01 Pedro Alves <palves@redhat.com>
13902
13903 * event-loop.c: Don't check HAVE_UNISTD_H before including
13904 <unistd.h>.
13905 * gdbreplay.c: Likewise.
13906 * remote-utils.c: Likewise.
13907 * server.c: Likewise.
13908 * configure.ac: Don't check for unistd.h.
13909 * configure: Regenerate.
13910
d6c2da54
TT
139112013-06-28 Tom Tromey <tromey@redhat.com>
13912
13913 * Makefile.in (version.c): Use version.in, not
13914 common/version.in.
13915
257b6bec
MG
139162013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13917
13918 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13919 * configure: Rebuild.
13920 * Makefile.in (version_host, version_target): Get from configure.
13921 (version.c): Use $(version_host) and $(version_target).
13922
86ebe149
DK
139232013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13924
13925 Fix trace-status to output user name without trailing colon.
13926 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13927
f30aa5af
DK
139282013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13929
13930 Fix trace-status to output proper start-time and stop-time.
13931 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13932 output start time and stop time in hex as gdb expects.
13933
28a93511
YQ
139342013-06-26 Pedro Alves <pedro@codesourcery.com>
13935
13936 * tracepoint.c (build_traceframe_info_xml): Output trace state
13937 variables present in the trace buffer.
13938
01208463
TT
139392013-06-24 Tom Tromey <tromey@redhat.com>
13940
13941 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13942 create-version.sh.
13943 (version.o): Remove.
13944 * gdbreplay.c: Include version.h.
13945 (version, host_name): Don't declare.
13946 * server.h: Include version.h.
13947 (version, host_name): Don't declare.
13948
760256f9
PA
139492013-06-12 Pedro Alves <palves@redhat.com>
13950
13951 * linux-x86-low.c (linux_is_elf64): Delete global.
13952 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13953 with local linux_pid_exe_is_elf_64_file use.
13954
030031ee
PA
139552013-06-11 Pedro Alves <palves@redhat.com>
13956
13957 * linux-low.c (regset_disabled, disable_regset): New functions.
13958 (regsets_fetch_inferior_registers)
13959 (regsets_store_inferior_registers): Use them.
13960 (initialize_regsets_info); Don't allocate the disabled_regsets
13961 array here.
13962 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13963 comment.
13964
5da6eb0a
PA
139652013-06-11 Pedro Alves <palves@redhat.com>
13966
13967 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13968 xmalloc.
13969
7e5aaa09
PA
139702013-06-11 Pedro Alves <palves@redhat.com>
13971
13972 * linux-x86-low.c (initialize_low_arch): Call
13973 init_registers_x32_avx_linux.
13974
d878444c
JK
139752013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13976
13977 Fix compatibility with Android Bionic.
13978 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13979 it is not empty.
13980
3aee8918
PA
139812013-06-07 Pedro Alves <palves@redhat.com>
13982
5f2b57b5 13983 PR server/14823
3aee8918
PA
13984 * Makefile.in (OBS): Add tdesc.o.
13985 (IPA_OBJS): Add tdesc-ipa.o.
13986 (tdesc-ipa.o): New rule.
13987 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13988 interface.
13989 * linux-low.c (new_inferior): Delete.
13990 (disabled_regsets, num_regsets): Delete.
13991 (linux_add_process): Adjust to set the new per-process
13992 new_inferior flag.
13993 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13994 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13995 was a stop. When calling arch_setup, switch the current inferior
13996 to the thread that got an event.
13997 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13998 (regsets_fetch_inferior_registers)
13999 (regsets_store_inferior_registers): New regsets_info parameter.
14000 Adjust to use it.
14001 (linux_register_in_regsets): New regs_info parameter. Adjust to
14002 use it.
14003 (register_addr, fetch_register, store_register): New usrregs_info
14004 parameter. Adjust to use it.
14005 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14006 parameter regs_info. Adjust to use it.
14007 (linux_fetch_registers): Get the current inferior's regs_info, and
14008 adjust to use it.
14009 (linux_store_registers): Ditto.
14010 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14011 (initialize_low): Don't initialize the target_regsets here. Call
14012 initialize_low_arch.
14013 * linux-low.h (target_regsets): Delete declaration.
14014 (struct regsets_info): New.
14015 (struct usrregs_info): New.
14016 (struct regs_info): New.
14017 (struct process_info_private) <new_inferior>: New field.
14018 (struct linux_target_ops): Delete the num_regs, regmap, and
14019 regset_bitmap fields. New field regs_info.
14020 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14021 * i387-fp.c (num_xmm_registers): Delete.
14022 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14023 calls to new interface.
14024 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14025 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14026 Infer the number of xmm registers from the regcache's target
14027 description.
14028 * i387-fp.h (num_xmm_registers): Delete.
14029 * inferiors.c (add_thread): Don't install the thread's regcache
14030 here.
14031 * proc-service.c (gregset_info): Fetch the current inferior's
14032 regs_info. Adjust to use it.
14033 * regcache.c: Include tdesc.h.
14034 (register_bytes, reg_defs, num_registers)
14035 (gdbserver_expedite_regs): Delete.
14036 (get_thread_regcache): If the thread doesn't have a regcache yet,
14037 create one, instead of aborting gdbserver.
14038 (regcache_invalidate_one): Rename to ...
14039 (regcache_invalidate_thread): ... this.
14040 (regcache_invalidate_one): New.
14041 (regcache_invalidate): Only invalidate registers of the current
14042 process.
14043 (init_register_cache): Add target_desc parameter, and use it.
14044 (new_register_cache): Ditto. Assert the target description has a
14045 non zero registers_size.
14046 (regcache_cpy): Add assertions. Adjust.
14047 (realloc_register_cache, set_register_cache): Delete.
14048 (registers_to_string, registers_from_string): Adjust.
14049 (find_register_by_name, find_regno, find_register_by_number)
14050 (register_cache_size): Add target_desc parameter, and use it.
14051 (free_register_cache_thread, free_register_cache_thread_one)
14052 (regcache_release, register_cache_size): New.
14053 (register_size): Add target_desc parameter, and use it.
14054 (register_data, supply_register, supply_register_zeroed)
14055 (supply_regblock, supply_register_by_name, collect_register)
14056 (collect_register_as_string, collect_register_by_name): Adjust.
14057 * regcache.h (struct target_desc): Forward declare.
14058 (struct regcache) <tdesc>: New field.
14059 (init_register_cache, new_register_cache): Add target_desc
14060 parameter.
14061 (regcache_invalidate_thread): Declare.
14062 (regcache_invalidate_one): Delete declaration.
14063 (regcache_release): Declare.
14064 (find_register_by_number, register_cache_size, register_size)
14065 (find_regno): Add target_desc parameter.
14066 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14067 declarations.
14068 * remote-utils.c: Include tdesc.h.
14069 (outreg, prepare_resume_reply): Adjust.
14070 * server.c: Include tdesc.h.
14071 (gdbserver_xmltarget): Delete declaration.
14072 (get_features_xml, process_serial_event): Adjust.
14073 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14074 declare.
14075 (struct process_info) <tdesc>: New field.
14076 (ipa_tdesc): Declare.
14077 * tdesc.c: New file.
14078 * tdesc.h: New file.
14079 * tracepoint.c: Include tdesc.h.
14080 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14081 (get_context_regcache): Adjust to pass ipa_tdesc down.
14082 (do_action_at_tracepoint): Adjust to get the register cache size
14083 from the context regcache's description.
14084 (traceframe_walk_blocks): Adjust to get the register cache size
14085 from the current trace frame's description.
14086 (traceframe_get_pc): Adjust to get current trace frame's
14087 description and pass it down.
14088 (gdb_collect): Adjust to get the register cache size from the
14089 IPA's description.
14090 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14091 (gdbserver_xmltarget): Delete.
14092 (initialize_low_tracepoint): Set the ipa's target description.
14093 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14094 (initialize_low_tracepoint): Set the ipa's target description.
14095 * linux-x86-low.c: Include tdesc.h.
14096 [__x86_64__] (is_64bit_tdesc): New.
14097 (ps_get_thread_area, x86_get_thread_area): Use it.
14098 (i386_cannot_store_register): Rename to ...
14099 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14100 (i386_cannot_fetch_register): Rename to ...
14101 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14102 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14103 to new interface.
14104 (target_regsets): Rename to ...
14105 (x86_regsets): ... this.
14106 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14107 interface.
14108 (x86_siginfo_fixup): Use is_64bit_tdesc.
14109 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14110 (tdesc_x32_avx_linux, tdesc_x32_linux)
14111 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14112 Declare.
14113 (x86_linux_update_xmltarget): Delete.
14114 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14115 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14116 (AMD64_LINUX_USER64_CS): New.
14117 (x86_linux_read_description): New, based on
14118 x86_linux_update_xmltarget.
14119 (same_process_callback): New.
14120 (x86_arch_setup_process_callback): New.
14121 (x86_linux_update_xmltarget): New.
14122 (x86_regsets_info): New.
14123 (amd64_linux_regs_info): New.
14124 (i386_linux_usrregs_info): New.
14125 (i386_linux_regs_info): New.
14126 (x86_linux_regs_info): New.
14127 (x86_arch_setup): Reimplement.
14128 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14129 (x86_emit_ops): Ditto.
14130 (the_low_target): Adjust. Install x86_linux_regs_info,
14131 x86_cannot_fetch_register, and x86_cannot_store_register.
14132 (initialize_low_arch): New.
14133 * linux-ia64-low.c (tdesc_ia64): Declare.
14134 (ia64_fetch_register): Adjust.
14135 (ia64_usrregs_info, regs_info): New globals.
14136 (ia64_regs_info): New function.
14137 (the_low_target): Adjust.
14138 (initialize_low_arch): New function.
14139 * linux-sparc-low.c (tdesc_sparc64): Declare.
14140 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14141 Adjust.
14142 (sparc_arch_setup): New function.
14143 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14144 (the_low_target): Adjust.
14145 (initialize_low_arch): New function.
14146 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14147 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14148 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14149 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14150 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14151 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14152 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14153 (tdesc_powerpc_isa205_vsx64l): Declare.
14154 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14155 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14156 (ppc_set_pc, ppc_get_hwcap): Adjust.
14157 (ppc_usrregs_info): Forward declare.
14158 (!__powerpc64__) ppc_regmap_adjusted: New global.
14159 (ppc_arch_setup): Adjust to the current process'es target
14160 description.
14161 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14162 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14163 (ppc_store_evrregset): Adjust.
14164 (target_regsets): Rename to ...
14165 (ppc_regsets): ... this, and make static.
14166 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14167 (ppc_regs_info): New function.
14168 (the_low_target): Adjust.
14169 (initialize_low_arch): New function.
14170 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14171 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14172 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14173 (tdesc_s390x_linux64v2): Declare.
14174 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14175 (s390_fill_gregset, s390_store_last_break): Adjust.
14176 (target_regsets): Rename to ...
14177 (s390_regsets): ... this, and make static.
14178 (s390_get_pc, s390_set_pc): Adjust.
14179 (s390_get_hwcap): New target_desc parameter, and use it.
14180 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14181 (s390_arch_setup): Adjust to set the current process'es target
14182 description. Don't adjust the regmap.
14183 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14184 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14185 (regs_info_3264): New globals.
14186 (s390_regs_info): New function.
14187 (the_low_target): Adjust.
14188 (initialize_low_arch): New function.
14189 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14190 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14191 [__mips64] (init_registers_mips_linux)
14192 (init_registers_mips_dsp_linux): Delete defines.
14193 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14194 (have_dsp): New global.
14195 (mips_read_description): New, based on mips_arch_setup.
14196 (mips_arch_setup): Reimplement.
14197 (get_usrregs_info): New function.
14198 (mips_cannot_fetch_register, mips_cannot_store_register)
14199 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14200 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14201 (target_regsets): Rename to ...
14202 (mips_regsets): ... this, and make static.
14203 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14204 (dsp_regs_info, regs_info): New globals.
14205 (mips_regs_info): New function.
14206 (the_low_target): Adjust.
14207 (initialize_low_arch): New function.
14208 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14209 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14210 Declare.
14211 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14212 (arm_read_description): New, with bits factored from
14213 arm_arch_setup.
14214 (arm_arch_setup): Reimplement.
14215 (target_regsets): Rename to ...
14216 (arm_regsets): ... this, and make static.
14217 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14218 (arm_regs_info): New function.
14219 (the_low_target): Adjust.
14220 (initialize_low_arch): New function.
14221 * linux-m68k-low.c (tdesc_m68k): Declare.
14222 (target_regsets): Rename to ...
14223 (m68k_regsets): ... this, and make static.
14224 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14225 (m68k_regs_info): New function.
14226 (m68k_arch_setup): New function.
14227 (the_low_target): Adjust.
14228 (initialize_low_arch): New function.
14229 * linux-sh-low.c (tdesc_sharch): Declare.
14230 (target_regsets): Rename to ...
14231 (sh_regsets): ... this, and make static.
14232 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14233 (sh_regs_info, sh_arch_setup): New functions.
14234 (the_low_target): Adjust.
14235 (initialize_low_arch): New function.
14236 * linux-bfin-low.c (tdesc_bfin): Declare.
14237 (bfin_arch_setup): New function.
14238 (bfin_usrregs_info, regs_info): New globals.
14239 (bfin_regs_info): New function.
14240 (the_low_target): Adjust.
14241 (initialize_low_arch): New function.
14242 * linux-cris-low.c (tdesc_cris): Declare.
14243 (cris_arch_setup): New function.
14244 (cris_usrregs_info, regs_info): New globals.
14245 (cris_regs_info): New function.
14246 (the_low_target): Adjust.
14247 (initialize_low_arch): New function.
14248 * linux-cris-low.c (tdesc_crisv32): Declare.
14249 (cris_arch_setup): New function.
14250 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14251 (cris_regs_info): New function.
14252 (the_low_target): Adjust.
14253 (initialize_low_arch): New function.
14254 * linux-m32r-low.c (tdesc_m32r): Declare.
14255 (m32r_arch_setup): New function.
14256 (m32r_usrregs_info, regs_info): New globals.
14257 (m32r_regs_info): Adjust.
14258 (initialize_low_arch): New function.
14259 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14260 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14261 (tic6x_usrregs_info): Forward declare.
14262 (tic6x_read_description): New function, based on ...
14263 (tic6x_arch_setup): ... this. Reimplement.
14264 (target_regsets): Rename to ...
14265 (tic6x_regsets): ... this, and make static.
14266 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14267 (tic6x_regs_info): New function.
14268 (the_low_target): Adjust.
14269 (initialize_low_arch): New function.
14270 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14271 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14272 (target_regsets): Rename to ...
14273 (xtensa_regsets): ... this, and make static.
14274 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14275 globals.
14276 (xtensa_arch_setup, xtensa_regs_info): New functions.
14277 (the_low_target): Adjust.
14278 (initialize_low_arch): New function.
14279 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14280 (nios2_arch_setup): Set the current process'es tdesc.
14281 (target_regsets): Rename to ...
14282 (nios2_regsets): ... this.
14283 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14284 (nios2_regs_info): New function.
14285 (the_low_target): Adjust.
14286 (initialize_low_arch): New function.
a261b8f5
PA
14287 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14288 (aarch64_arch_setup): Set the current process'es tdesc.
14289 (target_regsets): Rename to ...
14290 (aarch64_regsets): ... this.
14291 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14292 (aarch64_regs_info): New function.
14293 (the_low_target): Adjust.
14294 (initialize_low_arch): New function.
3aee8918
PA
14295 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14296 globals.
14297 (target_regsets): Rename to ...
14298 (tile_regsets): ... this.
14299 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14300 (tile_regs_info): New function.
14301 (tile_arch_setup): Set the current process'es tdesc.
14302 (the_low_target): Adjust.
14303 (initialize_low_arch): New function.
14304 * spu-low.c (tdesc_spu): Declare.
14305 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14306 * win32-arm-low.c (tdesc_arm): Declare.
14307 (arm_arch_setup): New function.
14308 (the_low_target): Install arm_arch_setup instead of
14309 init_registers_arm.
14310 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14311 (init_windows_x86): Rename to ...
14312 (i386_arch_setup): ... this. Set `win32_tdesc'.
14313 (the_low_target): Adjust.
14314 * win32-low.c (win32_tdesc): New global.
14315 (child_add_thread): Don't create the thread cache here.
14316 (do_initial_child_stuff): Set the new process'es tdesc.
14317 * win32-low.h (struct target_desc): Forward declare.
14318 (win32_tdesc): Declare.
14319 * lynx-i386-low.c (tdesc_i386): Declare global.
14320 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14321 * lynx-low.c (lynx_tdesc): New global.
14322 (lynx_add_process): Set the new process'es tdesc.
14323 * lynx-low.h (struct target_desc): Forward declare.
14324 (lynx_tdesc): Declare global.
14325 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14326 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14327 * nto-low.c (nto_tdesc): New global.
14328 (do_attach): Set the new process'es tdesc.
14329 * nto-low.h (struct target_desc): Forward declare.
14330 (nto_tdesc): Declare.
14331 * nto-x86-low.c (tdesc_i386): Declare.
14332 (nto_x86_arch_setup): Set `nto_tdesc'.
14333
b1fbec62
GB
143342013-06-04 Gary Benson <gbenson@redhat.com>
14335
14336 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14337 to qSupported response when appropriate.
14338 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14339 with nonzero-length annex.
14340 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14341 arguments supplied in annex.
14342
d1ec4ce7
DE
143432013-05-31 Doug Evans <dje@google.com>
14344
ac44adcb 14345 PR server/15594
d1ec4ce7
DE
14346 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14347 64 bits in 64-cross-32 environment.
14348
9b25f2d3
PA
143492013-05-28 Pedro Alves <palves@redhat.com>
14350
14351 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14352 (aarch64-without-fpu.c): Delete rule.
14353 * configure.srv (aarch64*-*-linux*): Remove references to
14354 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14355 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14356 declaration.
14357
6740dc9c
PA
143582013-05-24 Pedro Alves <palves@redhat.com>
14359
14360 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14361 instead of strchr/decode_address. Error if the range isn't split
14362 with a ','. Don't assume there's be a ':' in the action.
14363
c2d6af84
PA
143642013-05-23 Yao Qi <yao@codesourcery.com>
14365 Pedro Alves <palves@redhat.com>
14366
14367 * linux-low.c (lwp_in_step_range): New function.
14368 (linux_wait_1): If the thread was range stepping and stopped
14369 outside the stepping range, report the stop to GDB. Otherwise,
14370 continue stepping. Add range stepping debug output.
14371 (linux_set_resume_request): Copy the step range from the resume
14372 request to the lwp.
14373 (linux_supports_range_stepping): New.
14374 (linux_target_ops) <supports_range_stepping>: Set to
14375 linux_supports_range_stepping.
14376 * linux-low.h (struct linux_target_ops)
14377 <supports_range_stepping>: New field.
14378 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14379 * linux-x86-low.c (x86_supports_range_stepping): New.
14380 (the_low_target) <supports_range_stepping>: Set to
14381 x86_supports_range_stepping.
14382 * server.c (handle_v_cont): Handle 'r' action.
14383 (handle_v_requests): Append ";r" if the target supports range
14384 stepping.
14385 * target.h (struct thread_resume) <step_range_start,
14386 step_range_end>: New fields.
14387 (struct target_ops) <supports_range_stepping>:
14388 New field.
14389 (target_supports_range_stepping): New macro.
14390
58794e1a
JB
143912013-05-17 Joel Brobecker <brobecker@adacore.com>
14392
14393 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14394 confusion in comment.
14395
d631c5a7
JB
143962013-05-17 Joel Brobecker <brobecker@adacore.com>
14397
14398 * lynx-low.c (struct process_info_private): New type.
14399 (lynx_add_process): New function.
14400 (lynx_create_inferior, lynx_attach): Replace calls to
14401 add_process by calls to lynx_add_process.
14402 (lynx_resume): If PTID is null, then try using
14403 current_process()->private->last_wait_event_ptid.
14404 Add comments.
14405 (lynx_clear_inferiors): Delete. The contents of that function
14406 has been inlined in lynx_mourn;
14407 (lynx_wait_1): Save the ptid in the process's private data.
14408 (lynx_mourn): Free the process' private data. Replace call
14409 to lynx_clear_inferiors by call to clear_inferiors.
14410
96f7a20f
YQ
144112013-05-17 Yao Qi <yao@codesourcery.com>
14412
14413 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14414 the right place.
14415
db0dfaa0
LM
144162013-05-16 Luis Machado <lgustavo@codesourcery.com>
14417
14418 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14419 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14420 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14421 PT_TEXT_END_ADDR guards. Update comments.
14422 (linux_target_op) <read_offsets>: Conditionally define to
14423 linux_read_offsets if the target is UCLIBC and if it defines
14424 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14425
68f5f838
SL
144262013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14427 Andrew Jenner <andrew@codesourcery.com>
14428
14429 * Makefile.in (SFILES): Add linux-nios2-low.c.
14430 (clean): Add action to delete nios2-linux.c.
14431 (nios2-linux.c): New rule.
14432 * configure.srv: Add nios2*-*-linux*.
14433 * linux-nios2-low.c: New.
14434
1ebff1fd
HAQ
144352013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14436
14437 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14438
f6150862
HZ
144392013-04-25 Hui Zhu <hui@codesourcery.com>
14440
14441 PR gdb/15186
f6150862
HZ
14442 * ax.c (ax_printf): Add fflush.
14443
614c279d
TT
144442013-04-22 Tom Tromey <tromey@redhat.com>
14445
14446 * Makefile.in (SFILES): Add filestuff.c.
14447 (OBS): Add filestuff.o.
14448 (filestuff.o): New target.
14449 * config.in, configure: Rebuild.
14450 * configure.ac: Check for fdwalk, pipe2.
14451
7d4e5717
PA
144522013-04-17 Pedro Alves <palves@redhat.com>
14453
14454 * configure.ac (USE_THREAD_DB): Delete variable.
14455 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14456 Don't AC_SUBST USE_THREAD_DB.
14457 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14458 * config.in, configure: Regenerate.
14459
d5c93e41
PA
144602013-04-16 Pedro Alves <palves@redhat.com>
14461
14462 * linux-low.h (struct lwp_info) <thread_known>: Move under
14463 the USE_THREAD_DB #ifdef.
14464
04f5fe89
PA
144652013-04-16 Pedro Alves <palves@redhat.com>
14466
14467 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14468 (linux-low.o): Delete rule.
14469 * linux-low.h: Always include "gdb_thread_db.h" instead of
14470 conditionally including thread_db.h.
14471 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14472 HAVE_THREAD_DB_H.
14473
480b27bf
JK
144742013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14475
14476 * Makefile.in (install-only): Fix make install regression.
14477
43662968
JK
144782013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14479
14480 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14481 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14482 installation.
14483 * gdbserver.1: Remove.
14484
3e74e146
PA
144852013-03-22 Pedro Alves <palves@redhat.com>
14486
14487 * linux-low.c (handle_extended_wait): Don't call
14488 linux_enable_event_reporting.
14489
a8347a2a
TT
144902013-03-15 Tony Theodore <tonyt@logyst.com>
14491
14492 PR build/9098:
14493 * Makefile.in (SHELL): Use @SHELL@.
14494
eeb56fa7
SDJ
144952013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14496
14497 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14498 compiler warning.
14499
4fa7e2ff
JB
145002013-03-13 Joel Brobecker <brobecker@adacore.com>
14501
14502 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14503 Remove extraneous NULL element.
14504
8ddb1965
YQ
145052013-03-13 Yao Qi <yao@codesourcery.com>
14506
14507 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14508 'V' block in trace frame.
14509
9accd112
MM
145102013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14511
14512 * target.h (struct target_ops): Add btrace ops.
14513 (target_supports_btrace): New macro.
14514 (target_enable_btrace): New macro.
14515 (target_disable_btrace): New macro.
14516 (target_read_btrace): New macro.
14517 * gdbthread.h (struct thread_info): Add btrace field.
14518 * server.c: Include btrace-common.h.
14519 (handle_btrace_general_set): New function.
14520 (handle_btrace_enable): New function.
14521 (handle_btrace_disable): New function.
14522 (handle_general_set): Call handle_btrace_general_set.
14523 (handle_qxfer_btrace): New function.
14524 (struct qxfer qxfer_packets[]): Add btrace entry.
14525 * inferiors.c (remove_thread): Disable btrace.
14526 * linux-low: Include linux-btrace.h.
14527 (linux_low_enable_btrace): New function.
14528 (linux_low_read_btrace): New function.
14529 (linux_target_ops): Add btrace ops.
14530 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14531 Add srv_linux_btrace=yes.
14532 (x86_64-*-linux*): Add linux-btrace.o.
14533 Add srv_linux_btrace=yes.
14534 * configure.ac: Define HAVE_LINUX_BTRACE.
14535 * config.in: Regenerated.
14536 * configure: Regenerated.
14537
5cc22e4c
MM
145382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14539
14540 * server.c (handle_qxfer): Preserve error message if -3 is
14541 returned.
14542 (qxfer): Document the -3 return value.
14543
7c97f91e
MM
145442013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14545
14546 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14547 (linux_btrace_h): New variable.
14548 (linux-btrace.o): New rule.
14549
be9a119c 145502013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14551 Hafiz Abid Qadeer <abidh@codesourcery.com>
14552
14553 * tracepoint.c (trace_buffer_size): New global.
14554 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14555 (init_trace_buffer): Change to one-argument function. Allocate
14556 trace buffer memory.
14557 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14558 handle QTBuffer:size packet.
14559 (cmd_bigqtbuffer_size): New function.
14560 (initialize_tracepoint): Call init_trace_buffer with
14561 DEFAULT_TRACE_BUFFER_SIZE.
14562 * server.c (handle_query): Add QTBuffer:size in the
14563 supported packets.
14564
e64f7499
YQ
145652013-03-07 Yao Qi <yao@codesourcery.com>
14566
14567 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14568 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14569 of -1.
14570 (cmd_qtsp): Adjust condition. Do post increment.
14571 Set cur_action and cur_step_action back to 0.
14572
f0ae6fc3
PA
145732013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14574
14575 PR server/15236
14576 * linux-low.c (linux_write_memory): Return early success if LEN is
14577 zero.
14578
b5b0b0af
CV
145792013-03-05 Corinna Vinschen <vinschen@redhat.de>
14580
334ad4a8 14581 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14582
589bc927
TT
145832013-02-28 Tom Tromey <tromey@redhat.com>
14584
14585 * configure.ac: Invoke AC_SYS_LARGEFILE.
14586 * configure, config.in: Rebuild.
14587
dfe07582
CV
145882013-02-28 Corinna Vinschen <vinschen@redhat.com>
14589
14590 * win32-low.c: Throughout, fix format strings and casts of
14591 printf-like functions to avoid type related warnings on all
14592 platforms.
14593 (get_child_debug_event): Print dwDebugEventCode as hex since
14594 that's how it's usually documented.
14595
736cd585
YQ
145962013-02-28 Yao Qi <yao@codesourcery.com>
14597
14598 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14599 pulongest.
14600
e1f58301
JW
146012013-02-27 Jiong Wang <jiwang@tilera.com>
14602
14603 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14604 (reg-tilegx32.c): New rule.
14605 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14606 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14607 different register info initializer according to elf class.
14608 (init_registers_tilgx32): New function. The tilegx32 register info
14609 initializer.
14610 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14611 (tile_store_gregset): Likewise.
14612
d171ca78
YQ
146132013-02-27 Yao Qi <yao@codesourcery.com>
14614
14615 * server.c (process_point_options): Print debug message when
14616 debug_threads is true.
14617
282bbdf3
YQ
146182013-02-26 Yao Qi <yao@codesourcery.com>
14619
14620 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14621
aca22551
PA
146222013-02-19 Pedro Alves <palves@redhat.com>
14623 Kai Tietz <ktietz@redhat.com>
14624
14625 PR gdb/15161
14626
14627 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14628 instead of strtoul to extract address from packet.
14629 (process_serial_event) <'z'>: Likewise.
14630
4f3cee1c
YQ
146312013-02-18 Yao Qi <yao@codesourcery.com>
14632
14633 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14634
8e1d55a3
PA
146352013-02-14 Pedro Alves <palves@redhat.com>
14636
14637 Plug memory leak.
14638
14639 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14640 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14641
458820da
PA
146422013-02-14 Pedro Alves <palves@redhat.com>
14643
14644 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14645
baea0dae
PA
146462013-02-14 Pedro Alves <palves@redhat.com>
14647
14648 * tracepoint.c (save_string): Delete.
14649 (add_tracepoint_action): Use savestring instead of save_string.
14650
0b1afbb3
PA
146512013-02-12 Pedro Alves <palves@redhat.com>
14652
14653 * linux-xtensa-low.c: Ditto.
14654 * xtensa-xtregs.c: Ditto.
14655
8a4ac37e
PA
146562013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14657
14658 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14659 thread_db.
14660
148de6bb
MS
146612013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14662
14663 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14664 aarch64_num_wp_regs and aarch64_num_bp_regs to
14665 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14666
55fac6e0
MS
146672013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14668
14669 * linux-aarch64-low.c (ps_get_thread_area): Replace
14670 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14671
176eb98c
MS
146722013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14673 Marcus Shawcroft <marcus.shawcroft@arm.com>
14674 Nigel Stephens <nigel.stephens@arm.com>
14675 Yufeng Zhang <yufeng.zhang@arm.com>
14676
14677 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14678 (aarch64.c, aarch64-without-fpu.c): New targets.
14679 * configure.srv (aarch64*-*-linux*): New.
14680 * linux-aarch64-low.c: New file.
14681
56f7af9c
MS
146822013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14683
43aaf8b6 14684 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14685 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14686 (dequeue_one_deferred_signal, linux_resume_one_thread)
14687 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14688 (linux_tracefork_grandchild, linux_test_for_tracefork)
14689 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14690 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14691 where the argument is 0.
14692
60f662b0
YQ
146932013-01-25 Yao Qi <yao@codesourcery.com>
14694
14695 * event-loop.c: Include "queue.h".
14696 (gdb_event_p): New typedef.
14697 (struct gdb_event) <next_event>: Remove.
14698 (event_queue): Change to QUEUE(gdb_event_p).
14699 (async_queue_event): Remove.
14700 (gdb_event_xfree): New.
14701 (initialize_event_loop): New.
14702 (process_event): Use API from QUEUE.
14703 (wait_for_event): Likewise.
14704 * server.c (main): Call initialize_event_loop.
14705 * server.h (initialize_event_loop): Declare.
14706
5ae4861a
YQ
147072013-01-18 Yao Qi <yao@codesourcery.com>
14708
14709 * ax.h (struct eval_agent_expr_context): New.
14710 (gdb_eval_agent_expr): Update declaration.
14711 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14712 TFRAME. Add new argument CTX.
14713 * server.h (struct eval_agent_expr_context): Declare.
14714 (agent_mem_read, agent_tsv_read): Update declaration.
14715 (agent_mem_read_string): Likewise.
14716 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14717 (add_traceframe_block): Add new argument TPOINT.
14718 Increase TPOINT->traceframe_usage.
14719 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14720 eval_tracepoint_agent_expr.
14721 (condition_true_at_tracepoint): Likewise.
14722 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14723 (agent_mem_read_string, agent_tsv_read): Likewise.
14724
85e00e85
YQ
147252013-01-16 Yao Qi <yao@codesourcery.com>
14726
14727 * linux-low.c (linux_resume_one_lwp): Don't check
14728 'lwp->bp_reinsert != 0'.
14729
4039cf45
JB
147302013-01-07 Joel Brobecker <brobecker@adacore.com>
14731 Pedro Alves <palves@redhat.com>
14732
14733 * lynx-low.c (ptrace_request_to_str): Define a temporary
14734 macro and use it to simplify this function's implementation.
14735
9044dee2
JB
147362013-01-07 Joel Brobecker <brobecker@adacore.com>
14737
14738 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14739 sets errno.
14740
e6352c8f
JB
147412013-01-07 Joel Brobecker <brobecker@adacore.com>
14742
14743 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14744
50681a27
JB
147452013-01-07 Joel Brobecker <brobecker@adacore.com>
14746
14747 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14748
3f6e77ef
JB
147492013-01-07 Joel Brobecker <brobecker@adacore.com>
14750
14751 * lynx-low.c (lynx_resume): Use the resume_info parameter
14752 to determine the ptid for the lynx_ptrace call, unless
14753 it is equal to minus_one_ptid, in which case we use the
14754 ptid of the current_inferior.
14755 (lynx_wait_1): After having received a thread create/exit
14756 event, resume the inferior's execution using the signaling
14757 thread's ptid, rather than the old ptid.
14758
7fda33ae
JB
147592013-01-07 Joel Brobecker <brobecker@adacore.com>
14760
14761 * lynx-low.c (lynx_resume): Delete variable ret.
14762
b9786c74
JB
147632013-01-01 Joel Brobecker <brobecker@adacore.com>
14764
14765 * gdbreplay.c (gdbreplay_version): Update copyright year.
14766 * server.c (gdbserver_version): Likewise.
14767
8b93d60f
JB
147682012-12-17 Joel Brobecker <brobecker@adacore.com>
14769
14770 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14771 new thread.
14772
037335a7
JB
147732012-12-17 Joel Brobecker <brobecker@adacore.com>
14774
14775 * lynx-low.c (ptrace_request_to_str): Add handling for
14776 PTRACE_GETTRACESIG.
14777
52d4cbd8
JB
147782012-12-17 Joel Brobecker <brobecker@adacore.com>
14779
14780 * lynx-low.c (lynx_attach): Delete variable new_process.
14781
ab8f6ca9
JB
147822012-12-17 Joel Brobecker <brobecker@adacore.com>
14783
14784 * lynx-low.c (lynx_create_inferior): Delete variable
14785 new_process.
14786
78cbc024
JB
147872012-12-17 Joel Brobecker <brobecker@adacore.com>
14788
14789 * lynx-low.c (ptrace_request_to_str): Do not handle
14790 PTRACE_GETTHREADLIST if this macro does not exist.
14791
14a00470
YQ
147922012-12-15 Yao Qi <yao@codesourcery.com>
14793
14794 * Makefile.in (OBS): Add notif.o.
14795 * notif.c, notif.h: New.
14796 * server.c: Include "notif.h".
14797 (struct vstop_notif) <next>: Remove.
14798 <base>: New field.
14799 (queue_stop_reply): Update.
14800 (push_event, send_next_stop_reply): Remove.
14801 (discard_queued_stop_replies): Update.
14802 (notif_stop): New variable.
14803 (handle_v_stopped): Remove.
14804 (handle_v_requests): Don't call handle_v_stopped. Call
14805 handle_ack_notif instead.
14806 (queue_stop_reply_callback): Call notif_event_enque instead
14807 of queue_stop_reply.
14808 (handle_status): Don't call send_next_stop_reply, call
14809 notif_write_event instead.
14810 (kill_inferior_callback): Likewise.
14811 (detach_or_kill_inferior_callback): Likewise.
14812 (main): Call initialize_notif.
14813 (process_serial_event): Call QUEUE_is_empty.
14814 (handle_target_event): Call notif_push instead of push event.
14815 * server.h (push_event): Remove declaration.
14816
61c125b9
TT
148172012-12-10 Tom Tromey <tromey@redhat.com>
14818
14819 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14820 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14821 macros.
14822 (.c.o): Rewrite.
14823 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14824 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14825 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14826 (amd64-linux-ipa.o, ax.o): Rewrite.
14827 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14828 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14829 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14830 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14831 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14832 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14833 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14834 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14835 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14836 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14837 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14838 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14839 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14840 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14841 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14842 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14843 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14844 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14845 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14846 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14847 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14848 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14849 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14850 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14851 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14852 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14853 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14854 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14855 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14856 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14857 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14858 (reg-tilegx.o): Remove.
14859 (all_object_files): New macro.
14860 Include .deps files.
14861 * aclocal.m4, configure: Rebuild.
14862 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14863 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14864 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14865
e90e9ad9
TT
148662012-12-05 Tom Tromey <tromey@redhat.com>
14867
14868 PR gdb/14917:
14869 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14870
02d403bf 148712012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14872
14873 * configure.ac: Check for linux/perf_event.h.
14874 * config.in: Regenerated.
14875 * configure: Regenerated.
14876
0270a750
PA
148772012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14878
14879 * hostio.c (handle_readlink): Decrease buffer size
14880 parameter passed to readlink by one byte.
14881
8c29b58e
YQ
148822012-11-26 Yao Qi <yao@codesourcery.com>
14883
14884 * configure.ac (build_warnings): Append '-Wempty-body'.
14885 * configure: Regenerated.
14886 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14887 body.
14888
8bdce1ff
PM
148892012-11-15 Pierre Muller <muller@sourceware.org>
14890
14891 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14892 * config.in: Regenerate.
14893 * configure: Regenerate.
14894 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14895 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14896 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14897 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14898 header.
14899 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14900 instead of <sys/wait.h> header.
14901 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14902
02d403bf 149032012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14904
14905 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14906 (various make rules): Remove -DGDBSERVER
14907
fbd5db48
YQ
149082012-11-09 Yao Qi <yao@codesourcery.com>
14909
14910 * spu-low.c (current_ptid): Move it to ..
14911 * gdbthread.h: ... here. New.
14912 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14913 * server.c (myresume, process_serial_event): Likewise.
14914 * thread-db.c (thread_db_find_new_threads): Likewise.
14915 * tracepoint.c (run_inferior_command): Likewise.
14916
b3dc46ff
AB
149172012-10-01 Andrew Burgess <aburgess@broadcom.com>
14918
14919 * server.c (handle_search_memory_1): Include access length in
14920 warning message.
14921
07c04788
HPN
149222012-09-05 Michael Brandt <michael.brandt@axis.com>
14923
14924 * linux-crisv32-low.c: Fix compile errors.
14925
918d227b
YQ
149262012-09-04 Yao Qi <yao@codesourcery.com>
14927
14928 * tracepoint.c (cmd_qtsv): Adjust debug message.
14929 Don't check CUR_TPOINT.
14930
18c1b81a
YQ
149312012-08-28 Yao Qi <yao@codesourcery.com>
14932
14933 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14934 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14935 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14936 Remove declarations of xmalloc, xreallloc, xstrdup and
14937 freeargv.
14938 * Makefile.in (libiberty_h): New.
14939 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14940 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14941
dc82f37b
YQ
149422012-08-23 Yao Qi <yao@codesourcery.com>
14943
14944 * server.h: Remove declaration of 'xsnprintf'.
14945
406b1477
KS
149462012-08-22 Keith Seitz <keiths@redhat.com>
14947
14948 * server.h: Include build-gnulib-gbserver/config.h.
14949 * gdbreplay.c: Likewise.
14950
e6712ff1
DE
149512012-08-08 Doug Evans <dje@google.com>
14952
14953 * Makefile.in (SFILES): Add gdb_vecs.c.
14954 (OBS): Add gdb_vecs.o.
14955 (gdb_vecs_h, host_defs_h): New variables.
14956 (thread-db.o): Add $(gdb_vecs_h) dependency.
14957 (gdb_vecs.o): New rule.
14958 * thread-db.c: #include "gdb_vecs.h".
14959 (thread_db_load_search): Use a vector to iterate over path elements.
14960 Handle text appearing after "$pdir".
14961
14962 * configure.ac: Add check for strstr.
14963 * config.in: Regenerate.
14964 * configure: Regenerate.
14965
7c3270ae
UW
149662012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14967
14968 * hostio.c (handle_pread): If pread fails, fall back to attempting
14969 lseek/read.
14970 (handle_pwrite): Likewise for pwrite.
14971
b62e2b27
UW
149722012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14973
14974 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14975 between unsupported TYPE and unimplementable ADDR/LEN combination.
14976 (arm_insert_point): Act on new return value.
14977
78a99e91
PA
149782012-07-31 Pedro Alves <palves@redhat.com>
14979
14980 * server.c (process_point_options): Only skip tokens if we find
14981 one that is unrecognized. Don't treat 'X' specially while
14982 skipping unrecognized tokens.
14983
fcf303ab
UW
149842012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14985
14986 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14987 to 4-byte-align HW breakpoint addresses for Thumb.
14988
7255706c
YQ
149892012-07-27 Yao Qi <yao@codesourcery.com>
14990
14991 PR remote/14161.
14992
14993 * server.h: Declare gdb_agent_about_to_close.
14994 * target.c (kill_inferior): Include "agent.h".
14995 New. Send command 'kill'.
14996 * target.h (kill_inferior): Removed macro.
14997 * tracepoint.c (gdb_agent_about_to_close): New.
14998 (gdb_agent_helper_thread): Handle command 'close'.
14999 Wait endlessly until the inferior stops.
15000 Install gdb_agent_remove_socket to atexit hook.
15001 (agent_socket_name): New static variable.
15002 (gdb_agent_socket_init): Replace local variable 'name' with
15003 'agent_socket_name'.
15004 (gdb_agent_remove_socket): New.
15005
5a3f286f
YQ
150062012-07-27 Yao Qi <yao@codesourcery.com>
15007
15008 * server.c (process_point_options): Stop at 'X' when parsing.
15009
961bd387
ME
150102012-07-19 Michael Eager <eager@eagercon.com>
15011
a261b8f5 15012 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15013 to hw_execute.
15014 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15015 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15016 hardware breakpoint.
15017
aa7c7447
JK
150182012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15019
15020 * gdbserver/linux-low.c (initialize_low): Call
15021 linux_ptrace_init_warnings.
15022
7f216e7c
DE
150232012-07-02 Doug Evans <dje@google.com>
15024
15025 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15026 pointer to int.
15027
d3ce09f5
SS
150282012-07-02 Stan Shebs <stan@codesourcery.com>
15029
15030 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15031 (ax.o): Add it to build rule.
15032 (ax-ipa.o): Ditto.
15033 (OBS): Add format.o.
15034 (IPA_OBS): Add format.o.
15035 * server.c (handle_query): Claim support for breakpoint commands.
15036 (process_point_options): Add command case.
15037 (process_serial_event): Leave running if there are printfs in
15038 effect.
15039 * mem-break.h (any_persistent_commands): Declare.
15040 (add_breakpoint_commands): Declare.
15041 (gdb_no_commands_at_breakpoint): Declare.
15042 (run_breakpoint_commands): Declare.
15043 * mem-break.c (struct point_command_list): New struct.
15044 (struct breakpoint): New field command_list.
15045 (any_persistent_commands): New function.
15046 (add_commands_to_breakpoint): New function.
15047 (add_breakpoint_commands): New function.
15048 (gdb_no_commands_at_breakpoint): New function.
15049 (run_breakpoint_commands): New function.
15050 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15051 locally.
15052 * ax.c: Include format.h.
15053 (ax_printf): New function.
15054 (gdb_eval_agent_expr): Add printf opcode.
15055
2f8f6aed
YQ
150562012-06-13 Yao Qi <yao@codesourcery.com>
15057
15058 * server.c (start_inferior): Remove duplicated writes to fields
15059 'last_resume_kind' and 'last_status' of 'current_inferior'.
15060
0c9070b3
YQ
150612012-06-12 Yao Qi <yao@codesourcery.com>
15062 Pedro Alves <palves@redhat.com>
15063
15064 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15065 comment.
15066 * server.c (handle_v_cont): Extend comment.
15067
c52daf70
YQ
150682012-06-11 Yao Qi <yao@codesourcery.com>
15069
15070 * linux-low.c (linux_attach): Add 'static'.
15071
d38bbb0a
YQ
150722012-06-06 Yao Qi <yao@codesourcery.com>
15073
15074 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15075
89dc0afd
JK
150762012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15077
15078 Fix gcc -flto compilation warning.
15079 * server.c (main): Make variable multi_mode and attach volatile.
15080
75f62ce7
TJB
150812012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15082
15083 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15084 if the platform doesn't know about it.
15085
65f479b6
PA
150862012-05-30 Jeff Kenton <jkenton@tilera.com>
15087
15088 * Makefile.in (SFILES): Add linux-tile-low.c.
15089 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15090 * configure.srv: Handle tilegx-*-linux*.
15091 * linux-tile-low.c: New file.
15092
0c5bf5a9
JK
150932012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15094
15095 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15096
a493e3e2
PA
150972012-05-24 Pedro Alves <palves@redhat.com>
15098
15099 PR gdb/7205
15100
43aaf8b6 15101 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15102
2ea28649
PA
151032012-05-24 Pedro Alves <palves@redhat.com>
15104
15105 PR gdb/7205
15106
15107 Replace target_signal with gdb_signal throughout.
15108
8d409d16
MR
151092012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15110
15111 * linux-low.c (linux_store_registers): Avoid the copying sequence
15112 when no data has been retrieved by ptrace.
15113
23512c01
MGD
151142012-05-22 Will Deacon <will.deacon@arm.com>
15115
15116 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15117 Include asm/ptrace.h.
15118 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15119 already defined.
15120
4934b29e
MR
151212012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15122
15123 * linux-low.c (linux_store_registers): Don't re-retrieve data
15124 with ptrace that has already been obtained from /proc. Always
15125 copy any data retrieved with ptrace to the buffer supplied.
15126
bde24c0a
PA
151272012-05-11 Yao Qi <yao@codesourcery.com>
15128 Pedro Alves <palves@redhat.com>
15129
15130 * linux-low.c (enum stopping_threads_kind): New.
15131 (stopping_threads): Change type to `enum stopping_threads_kind'.
15132 (handle_extended_wait): If stopping and suspending threads, leave
15133 the new_lwp suspended too.
15134 (linux_wait_for_event): Adjust.
15135 (stop_all_lwps): Set `stopping_threads' to
15136 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15137 whether we're suspending threads or just stopping them. Assert no
15138 recursion happens.
15139
623b6bdf
YQ
151402012-04-29 Yao Qi <yao@codesourcery.com>
15141
15142 * server.h: Move some code to ...
15143 * gdbthread.h: ... here. New.
15144 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15145 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15146 (nto-low.o, win32-low.o): Likewise.
15147 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15148 * regcache.c, remote-utils.c, server.c: Likewise.
15149 * target.c, tracepoint.c, win32-low.c: Likewise.
15150
f15f9948
TJB
151512012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15152
15153 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15154 (PTRACE_ARG4_TYPE): Likewise.
15155 (PTRACE_XFER_TYPE): Likewise.
15156 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15157 ptrace to PTRACE_ARG3_TYPE.
15158 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15159 (PTRACE_ARG4_TYPE): Likewise.
15160 (PTRACE_XFER_TYPE): Likewise.
15161 (linux_detach_one_lwp): Cast fourth argument of
15162 ptrace to long then PTRACE_ARG4_TYPE.
15163 (regsets_fetch_inferior_registers): Cast third argument of
15164 ptrace to long then PTRACE_ARG3_TYPE.
15165 (regsets_store_inferior_registers): Likewise.
15166
38ea300a
PA
151672012-04-20 Pedro Alves <palves@redhat.com>
15168
15169 * configure: Regenerate.
15170
c971b7fa
PA
151712012-04-19 Pedro Alves <palves@redhat.com>
15172
43aaf8b6 15173 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15174 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15175 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15176 (all, install-only, uninstall, clean-info, all-lib, clean): No
15177 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15178 (maintainer-clean realclean distclean): Use subdir_do.
15179 (subdir_do): New.
15180 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15181 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15182 * acinclude.m4: Include acx_configure_dir.m4.
15183 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15184 calls. Call AC_PROG_RANLIB. Configure gnulib using
15185 ACX_CONFIGURE_DIR.
15186 (GNULIB): New.
15187 (GNULIB_STDINT_H): Adjust.
15188 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15189 * gdbreplay.c: Include build-gnulib/config.h.
15190 * server.h: Likewise.
15191 * aclocal.m4: Regenerate.
15192 * config.in: Regenerate.
15193 * configure: Regenerate.
c971b7fa 15194
809277f8
PA
151952012-04-19 Pedro Alves <palves@redhat.com>
15196
15197 * Makefile.in (LIBGNU, INCGNU): Adjust.
15198 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15199 (all, install-only, uninstall, clean-info, all-lib, clean)
15200 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15201 * configure.ac: Adjust AC_OUTPUT output.
15202 * aclocal.m4: Regenerate.
15203 * configure: Regenerate.
15204
fd9bb8b8
PA
152052012-04-19 Pedro Alves <palves@redhat.com>
15206
15207 * Makefile.in (generated_files): New.
15208 (server_h): Remove the explicit dependency on config.h, and depend
15209 on $generated_files.
15210
1c298c66
PA
152112012-04-19 Pedro Alves <palves@redhat.com>
15212
15213 * Makefile.in (INCGNU): Add -Ignulib.
15214
57c4b50b
PA
152152012-04-19 Pedro Alves <palves@redhat.com>
15216
15217 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15218 (INCGNU): ... this, and spell out -I here.
15219 (GNULIB_LIB): Rename to ...
15220 (LIBGNU): ... this.
15221 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15222
1030e047
PA
152232012-04-19 Pedro Alves <palves@redhat.com>
15224
15225 * config.in: Regenerate.
15226
447d4319
PA
152272012-04-19 Pedro Alves <palves@redhat.com>
15228
15229 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15230 * server.h (memmem): Remove declaration.
15231 * config.in: Regenerate.
15232 * configure: Regenerate.
15233
aad9eab9
YQ
152342012-04-19 Yao Qi <yao@codesourcery.com>
15235
15236 * Makefile.in (SFILES): Add common/vec.c.
15237 (OBS): Add vec.o.
15238 (vec.o): New rule.
15239
3e10640f
YQ
152402012-04-19 Yao Qi <yao@codesourcery.com>
15241
15242 * remote-utils.c (prepare_resume_reply): Replace with macro
15243 target_core_of_thread.
15244 * server.c (handle_qxfer_threads_proper): Likewise.
15245 * target.h (traget_core_of_thread): New macro.
15246
71622373
PA
152472012-04-18 Pedro Alves <palves@redhat.com>
15248
15249 * aclocal.m4: Regenerate.
15250 * configure: Regenerate.
15251
80d26939
YQ
152522012-04-16 Yao Qi <yao@codesourcery.com>
15253
15254 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15255 duplicated on address.
15256
42476b70
YQ
152572012-04-16 Yao Qi <yao@codesourcery.com>
15258
15259 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15260 (struct tracepoint_action_ops) <send>: New field.
15261 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15262 (agent_expr_send, x_tracepoint_action_send): New.
15263 (l_tracepoint_action_send): New.
15264 (cmd_qtdp): Download and install tracepoint
15265 according to `use_agent'.
15266 (run_inferior_command): Add one more parameter `len'.
15267 Update callers.
15268 (tracepoint_send_agent): New.
15269 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15270
7bc83639
YQ
152712012-04-16 Yao Qi <yao@codesourcery.com>
15272
15273 * tracepoint.c (download_tracepoints): Moved to ...
15274 (cmd_qtstart): ... here.
15275
5f18041e
YQ
152762012-04-14 Yao Qi <yao@codesourcery.com>
15277
15278 * tracepoint.c: Include inttypes.h.
15279 (struct collect_memory_action): Use sized types.
15280 (struct tracepoint): Likewise.
15281 (cmd_qtdp, stop_tracing): Update print specifiers.
15282 (cmd_qtp, response_tracepoint): Likewise.
15283 (collect_data_at_tracepoint): Likewise.
15284 (collect_data_at_step): Likewise.
15285
55a8c076
YQ
152862012-04-14 Yao Qi <yao@codesourcery.com>
15287
15288 Import gnulib module inttypes.
15289 * aclocal.m4, config.in, configure: Regenerated.
15290
dc750257
YQ
152912012-04-14 Yao Qi <yao@codesourcery.com>
15292
15293 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15294 Makefile and config.status at last.
15295
0ab5faf9
YQ
152962012-04-13 Yao Qi <yao@codesourcery.com>
15297
15298 * tracepoint.c: Include stdint.h unconditionally.
15299
18f5fd81
TJB
153002012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15301
15302 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15303 on BFD_HAVE_SYS_PROCFS_TYPE.
15304 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15305 * configure: Regenerate.
15306 * config.in: Likewise.
15307
4d47af5c
L
153082012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15309
15310 * Makefile.in (clean): Also remove x32.c x32-linux.c
15311 x32-avx.c x32-avx-linux.c.
15312 (x32.o): New target.
15313 (x32.c): Likewise.
15314 (x32-linux.o): Likewise.
15315 (x32-linux.c): Likewise.
15316 (x32-avx.o): Likewise.
15317 (x32-avx.c): Likewise.
15318 (x32-avx-linux.o): Likewise.
15319 (x32-avx-linux.c): Likewise.
15320
15321 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15322 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15323 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15324 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15325 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15326 i386/x32-avx-linux.xml.
15327
15328 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15329 (init_registers_x32_avx_linux): Likwise.
15330 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15331 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15332
ecedbe58
PA
153332012-04-13 Pedro Alves <palves@redhat.com>
15334
15335 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15336 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15337 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15338 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15339 the sub-make.
15340
c92b5177
L
153412012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15342
15343 * linux-x86-low.c (compat_x32_clock_t): New.
15344 (compat_x32_siginfo_t): Likewise.
15345 (compat_x32_siginfo_from_siginfo): Likewise.
15346 (siginfo_from_compat_x32_siginfo): Likewise.
15347 (linux_is_elf64): Likewise.
15348 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15349 and siginfo_from_compat_x32_siginfo for x32.
15350 (x86_arch_setup): Set linux_is_elf64.
15351
214d508e
L
153522012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15353
15354 PR gdb/13969
15355 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15356 e_machine field.
15357 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15358 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15359 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15360 compatible with process.
15361
c9a1864a
YQ
153622012-04-12 Yao Qi <yao@codesourcery.com>
15363
15364 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15365 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15366 (install-only, install-info, clean): Handle sub dir gnulib.
15367 (all-lib, am--refresh): New targets.
15368 (memmem.o): Remove target.
15369 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15370 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15371 (AC_REPLACE_FUNCS): Remove memmem.
15372 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15373 (AC_OUTPUT): Generate Makefile in gnulib/.
15374 * aclocal.m4, config.in, configure: Regenerated.
15375
367ba2c2
MR
153762012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15377
15378 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15379
9d236627
PA
153802012-04-05 Pedro Alves <palves@redhat.com>
15381
15382 -Werror=strict-aliasing
15383
15384 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15385 pointer.
15386
111217b3
PA
153872012-04-04 Pedro Alves <palves@redhat.com>
15388
15389 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15390 (sparc_store_gregset_from_stack, sparc_store_gregset)
15391 (sparc_breakpoint_at): Fix formatting.
15392
8365dcf5
TJB
153932012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15394
15395 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15396 are available.
15397 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15398 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15399 * config.in: Regenerate.
15400 * configure: Likewise.
15401
689cc2ae
PA
154022012-03-29 Pedro Alves <palves@redhat.com>
15403
15404 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15405 Correct ptrace arguments.
15406
c14dfd32
PA
154072012-03-28 Pedro Alves <palves@redhat.com>
15408
15409 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15410 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15411 (IA64_FR1_REGNUM): New defines.
15412 (ia64_fetch_register): New.
15413 (the_low_target): Install it.
15414 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15415 field.
15416 * linux-low.c (linux_fetch_registers): Try the
15417 the_low_target.fetch_register hook first.
15418
15419 * linux-arm-low.c (the_low_target): Adjust.
15420 * linux-bfin-low.c (the_low_target): Adjust.
15421 * linux-cris-low.c (the_low_target): Adjust.
15422 * linux-crisv32-low.c (the_low_target): Adjust.
15423 * linux-m32r-low.c (the_low_target): Adjust.
15424 * linux-m68k-low.c (the_low_target): Adjust.
15425 * linux-mips-low.c (the_low_target): Adjust.
15426 * linux-ppc-low.c (the_low_target): Adjust.
15427 * linux-s390-low.c (the_low_target): Adjust.
15428 * linux-sh-low.c (the_low_target): Adjust.
15429 * linux-sparc-low.c (the_low_target): Adjust.
15430 * linux-tic6x-low.c (the_low_target): Adjust.
15431 * linux-x86-low.c (the_low_target): Adjust.
15432 * linux-xtensa-low.c (the_low_target): Adjust.
15433
63c88e13
PA
154342012-03-26 Pedro Alves <palves@redhat.com>
15435
15436 * server.c (handle_qxfer_libraries): Don't bail early if
15437 the_target->qxfer_libraries_svr4 is not NULL.
15438
fb723180
PA
154392012-03-26 Pedro Alves <palves@redhat.com>
15440
15441 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15442
0afae3cf
PA
154432012-03-23 Pedro Alves <palves@redhat.com>
15444
15445 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15446 "library-list-svr4" element's start tag when the the DSO list is
15447 empty.
15448
485f1ee4
PA
154492012-03-23 Pedro Alves <palves@redhat.com>
15450
15451 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15452 a variable whose type size is the same as the inferior's pointer
15453 size.
15454
a5362b9a
TS
154552012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15456
15457 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15458 struct siginfo.
15459 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15460 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15461 * linux-low.h: Include <signal.h>.
15462 (struct siginfo): Remove forward declaration.
15463 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15464 struct siginfo.
15465
d226c142
MF
154662012-03-21 Mike Frysinger <vapier@gentoo.org>
15467
15468 * .gitignore: Ignore more files.
15469
122f36ef
PA
154702012-03-19 Pedro Alves <palves@redhat.com>
15471 Jan Kratochvil <jan.kratochvil@redhat.com>
15472
15473 * server.c (cont_thread, general_thread): Add describing comments.
15474 (start_inferior): Clear `cont_thread'.
15475 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15476 of a process.
15477
fc3e5175
YQ
154782012-03-15 Yao Qi <yao@codesourcery.com>
15479
15480 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15481 handling to ...
15482 (cmd_qtdp): ... here.
15483
8d0d92cd
YQ
154842012-03-15 Yao Qi <yao@codesourcery.com>
15485
15486 * tracepoint.c (struct tracepoint_action_ops): New.
15487 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15488 (m_tracepoint_action_download): New.
15489 (r_tracepoint_action_download): New.
15490 (x_tracepoint_action_download): New.
15491 (l_tracepoint_action_download): New.
15492 (add_tracepoint_action): Install `action->ops' according type.
15493 (download_tracepoint_1): Move code `download' function pointer
15494 of various tracepoint_action_ops.
15495
87b0bb13
JK
154962012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15497
15498 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15499 linux_ptrace_attach_warnings.
15500
5f572dec
JK
155012012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15502
15503 * Makefile.in (linux-ptrace.o): New.
15504 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15505 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15506 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15507 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15508 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15509 of these targets.
15510 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15511
f4647387
YQ
155122012-03-08 Yao Qi <yao@codesourcery.com>
15513 Pedro Alves <palves@redhat.com>
15514
15515 Fix PR server/13392.
15516 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15517 offset of JMP insn.
15518 * tracepoint.c (remove_tracepoint): New.
15519 (cmd_qtdp): Call remove_tracepoint when failed to install.
15520
9b224c5e
PA
155212012-03-07 Pedro Alves <palves@redhat.com>
15522
15523 * linux-low.c (get_detach_signal): New.
15524 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15525 Pass on pending signals to PTRACE_DETACH. Check the result of the
15526 ptrace call.
15527 * server.c (program_signals, program_signals_p): New.
15528 (handle_general_set): Handle QProgramSignals.
15529 * server.h (program_signals, program_signals_p): Declare.
15530
e237a7e2
JK
155312012-03-05 Pedro Alves <palves@redhat.com>
15532 Jan Kratochvil <jan.kratochvil@redhat.com>
15533
15534 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15535 New comment why.
15536
5808517f
YQ
155372012-03-03 Yao Qi <yao@codesourcery.com>
15538
15539 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15540 agent_look_up_symbols.
15541
58b4daa5
YQ
155422012-03-03 Yao Qi <yao@codesourcery.com>
15543
15544 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15545 (linux-x86-low.o): Likewise.
15546 * server.h: Remove in_process_agent_loaded.
15547 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15548 common/agent.c.
15549 Update callers.
15550
8ffcbaaf
YQ
155512012-03-03 Yao Qi <yao@codesourcery.com>
15552
15553 * tracepoint.c (gdb_agent_capability): New global.
15554 (in_process_agent_loaded_ust): Renamed to
15555 `in_process_agent_supports_ust'.
15556 Update callers.
15557 (in_process_agent_supports_ust): Call agent_capability_check.
15558 (clear_installed_tracepoints): Assert that agent supports
15559 agent.
15560
d1feda86
YQ
155612012-03-03 Yao Qi <yao@codesourcery.com>
15562
15563 * linux-low.c (linux_supports_agent): New.
15564 (linux_target_ops): Initialize field `supports_agent' with
15565 linux_supports_agent.
15566 * target.h (struct target_ops) <supports_agent>: New.
15567 (target_supports_agent): New macro.
15568 * server.c (handle_general_set): Handle packet 'QAgent'.
15569 (handle_query): Send `QAgent+'.
15570 * Makefile.in (server.o): Depends on agent.h.
15571
2fa291ac
YQ
155722012-03-03 Yao Qi <yao@codesourcery.com>
15573
15574 * Makefile.in (OBS): Add agent.o.
15575 Add new rule for agent.o.
15576 Track dependence of tracepoint.c on agent.h.
15577 * tracepoint.c (run_inferior_command_1):
15578 (run_inferior_command): Call agent_run_command.
15579 (gdb_ust_connect_sync_socket): Deleted. Move it to
15580 common/agent.c.
15581 (resume_thread, stop_thread): Likewise.
15582 (gdb_ust_socket_init): Renamed to ...
15583 (gdb_agent_socket_init): ... New.
15584 (gdb_ust_thread): Renamed to ...
15585 (gdb_agent_helper_thread): ... New.
15586 (gdb_ust_init): Move some code to ...
15587 (gdb_agent_init): ... here. New.
15588 [HAVE_UST]: Call gdb_ust_init.
15589 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15590 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15591 * config.in, configure: Regenerated.
15592
05044653
PA
155932012-03-02 Pedro Alves <palves@redhat.com>
15594
15595 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15596 * linux-low.c (struct simple_pid_list): New.
15597 (stopped_pids): New a struct simple_pid_list pointer.
15598 (add_to_pid_list, pull_pid_from_list): New.
15599 (handle_extended_wait): Don't assume the first signal new children
15600 report is SIGSTOP. Adjust call to pull_pid_from_list.
15601 (linux_wait_for_lwp): Adjust.
15602
8d00225b
YQ
156032012-03-02 Yao Qi <yao@codesourcery.com>
15604
15605 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15606 debug log.
15607
19560ba5
YQ
156082012-03-02 Yao Qi <yao@codesourcery.com>
15609
15610 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15611 `stop_pc' and `tpoint'. Update caller.
15612
1faeff08
MR
156132012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15614
15615 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15616 * linux-low.c (use_linux_regsets): New macro.
15617 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15618 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15619 (linux_register_in_regsets): New function.
15620 (usr_fetch_inferior_registers): Skip registers covered by
15621 regsets.
15622 (usr_store_inferior_registers): Likewise.
15623 (usr_fetch_inferior_registers): New macro.
15624 (usr_store_inferior_registers): Likewise.
15625 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15626 (linux_store_registers): Likewise.
15627 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15628 prototype.
15629 (init_registers_mips64_dsp_linux): Likewise.
15630 (init_registers_mips_linux): New macro.
15631 (init_registers_mips_dsp_linux): Likewise.
15632 (mips_dsp_num_regs): Likewise.
15633 (DSP_BASE, DSP_CONTROL): New fallback macros.
15634 (mips_base_regs): New macro.
15635 (mips_regmap): Use it. Fix the size.
15636 (mips_dsp_regmap): New variable.
15637 (mips_dsp_regset_bitmap): Likewise.
15638 (mips_arch_setup): New function.
15639 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15640 than mips_regmap.
15641 (mips_cannot_store_register): Likewise.
15642 (the_low_target): Update .arch_setup, .num_regs and .regmap
15643 initializers. Add .regset_bitmap initializer.
15644 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15645 initializer.
15646 * linux-bfin-low.c (the_low_target): Likewise.
15647 * linux-cris-low.c (the_low_target): Likewise.
15648 * linux-crisv32-low.c (the_low_target): Likewise.
15649 * linux-ia64-low.c (the_low_target): Likewise.
15650 * linux-m32r-low.c (the_low_target): Likewise.
15651 * linux-m68k-low.c (the_low_target): Likewise.
15652 * linux-ppc-low.c (the_low_target): Likewise.
15653 * linux-s390-low.c (the_low_target): Likewise.
15654 * linux-sh-low.c (the_low_target): Likewise.
15655 * linux-sparc-low.c (the_low_target): Likewise.
15656 * linux-tic6x-low.c (the_low_target): Likewise.
15657 * linux-x86-low.c (the_low_target): Likewise.
15658 * linux-xtensa-low.c (the_low_target): Likewise.
15659 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15660 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15661 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15662 srv_xmlfiles.
15663 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15664 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15665
c03e6ccc
YQ
156662012-02-29 Yao Qi <yao@codesourcery.com>
15667 Pedro Alves <palves@redhat.com>
15668
15669 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15670 `step_over_finished' is true.
15671
644cebc9
PA
156722012-02-27 Pedro Alves <palves@redhat.com>
15673
15674 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15675 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15676
c14d7ab2
PA
156772012-02-27 Pedro Alves <palves@redhat.com>
15678
15679 PR server/9684
15680 * linux-low.c (pid_is_stopped): New.
15681 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15682
412c89dd
LM
156832012-02-25 Luis Machado <lgustavo@codesourcery.com>
15684
15685 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15686 of conditions.
15687
b745defe
MR
156882012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15689
15690 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15691
9f3a5c85
LM
156922012-02-24 Luis Machado <lgustavo@codesourcery>
15693
15694 * server.c (handle_query): Advertise support for target-side
15695 breakpoint condition evaluation.
15696 (process_point_options): New function.
15697 (process_serial_event): When inserting a breakpoint, check for
15698 a target-side condition that should be evaluated.
15699
15700 * mem-break.c: Include regcache.h and ax.h.
15701 (point_cond_list_t): New data structure.
15702 (breakpoint) <cond_list>: New field.
15703 (find_gdb_breakpoint_at): Make non-static.
15704 (delete_gdb_breakpoint_at): Clear any target-side
15705 conditions.
15706 (clear_gdb_breakpoint_conditions): New function.
15707 (add_condition_to_breakpoint): Likewise.
15708 (add_breakpoint_condition): Likewise.
15709 (gdb_condition_true_at_breakpoint): Likewise.
15710 (gdb_breakpoint_here): Return result directly instead
15711 of going through a local variable.
15712
15713 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15714 (clear_gdb_breakpoint_conditions): Likewise.
15715 (add_breakpoint_condition): Likewise.
15716 (gdb_condition_true_at_breakpoint): Likewise.
15717
15718 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15719 (need_step_over_p): Take target-side breakpoint condition into
15720 consideration.
15721
5e1dc496
LM
157222012-02-24 Luis Machado <lgustavo@codesourcery>
15723
15724 * server.h: Include tracepoint.h.
15725 (agent_mem_read, agent_get_trace_state_variable_value,
15726 agent_set_trace_state_variable_value,
15727 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15728 get_set_tsv_func_addr): New prototypes.
15729
15730 * ax.h: New include file.
15731 * ax.c: New source file.
15732
15733 * tracepoint.c: Include ax.h.
15734 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15735 agent_expr, eval_result_type): Move to ax.h.
15736 (parse_agent_expr): Rename to ...
15737 (gdb_parse_agent_expr): ... this, make it non-static and move
15738 to ax.h.
15739 (unparse_agent_expr) Rename to ...
15740 (gdb_unparse_agent_expr): ... this, make it non-static and move
15741 to ax.h.
15742 (eval_agent_expr): Rename to ...
15743 (eval_tracepoint_agent_expr): ... this.
15744 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15745 forward declarations.
15746 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15747 (agent_get_trace_state_variable_value): New function.
15748 (agent_set_trace_state_variable_value): New function.
15749 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15750 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15751 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15752 (condition_true_at_tracepoint): Likewise.
15753 (parse_agent_expr): Rename to ...
15754 (gdb_parse_agent_expr): ... this and move to ax.c.
15755 (unparse_agent_expr): Rename to ...
15756 (gdb_unparse_agent_expr): ... this and move to ax.c.
15757 (gdb_agent_op_name): Move to ax.c.
15758 (eval_agent_expr): Rename to ...
15759 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15760 and move to ax.c.
15761 (eval_tracepoint_agent_expr): New function.
15762 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15763 non-static.
5e1dc496
LM
15764 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15765 ax.c.
15766 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15767 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15768 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15769 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15770 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15771 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15772 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15773 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15774 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15775 (compile_bytecodes): Remove forward declaration.
15776 (is_goto_target): Move to ax.c.
15777 (compile_bytecodes): Move to ax.c and call
15778 agent_get_trace_state_variable_value (...) and
15779 agent_set_trace_state_variable_value (...).
15780
15781 * Makefile.in: Update ax.c and IPA dependencies.
15782
277e4e52
PA
157832012-02-24 Pedro Alves <palves@redhat.com>
15784
15785 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15786 (cmd_bigqtbuffer_circular): ... this. Only handle
15787 'QTBuffer:circular:'.
15788 (handle_tracepoint_general_set): Adjust.
15789
bf4c19f7
YQ
157902012-02-16 Yao Qi <yao@codesourcery.com>
15791
15792 * inferiors.c: Move code to ...
15793 * dll.c: .... here. New.
15794 * server.h: Declare clear_dlls.
15795 * Makefile.in (SFILES): Add dll.c.
15796 (OBS): Add dll.o
15797 (dll.o): New rule.
15798
d73f2619
YQ
157992012-02-11 Yao Qi <yao@codesourcery.com>
15800
15801 * server.c: (handle_monitor_command): Add a new parameter
15802 `own_buf'.
15803 (handle_query): Update caller.
15804
f8255c2a
JB
158052012-02-09 Joel Brobecker <brobecker@adacore.com>
15806
15807 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15808 * configure, config.in: Regenerate.
15809 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15810 is not defined.
15811
da84f473
PA
158122012-02-02 Pedro Alves <palves@redhat.com>
15813
15814 Try SIGKILL first, then PTRACE_KILL.
15815 * linux-low.c (linux_kill_one_lwp): New.
15816 (linux_kill_one_lwp): Rename to ...
15817 (kill_one_lwp_callback): ... this. Use the new
15818 linux_kill_one_lwp.
15819
e886a173
PA
158202012-02-02 Pedro Alves <palves@redhat.com>
15821
15822 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15823 inferior.
15824
be07f1a2
PA
158252012-01-27 Pedro Alves <palves@redhat.com>
15826
15827 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15828 (elf_64_file_p): Make static.
15829 (linux_pid_exe_is_elf_64_file): New.
15830 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15831 Delete declarations.
15832 (linux_pid_exe_is_elf_64_file): Declare.
15833 * linux-x86-low.c (x86_arch_setup): Use
15834 linux_pid_exe_is_elf_64_file.
15835
d8301ad1
JK
158362012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15837
15838 * linux-low.c (linux_wait_for_event_1): Rename to ...
15839 (linux_wait_for_event): ... here and merge it with former
15840 linux_wait_for_event - new variable wait_ptid, use it.
15841 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15842
01b17894
PA
158432012-01-23 Pedro Alves <palves@redhat.com>
15844
15845 * server.c (main): Avoid yet another case of infinite loop while
15846 detaching/killing after a longjmp.
15847
e825046f
JK
158482012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15849
15850 Code cleanup.
15851 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15852
b9e7b9c3
UW
158532012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15854
15855 * hostio.c (handle_readlink): New function.
15856 (handle_vFile): Call it to handle "vFile:readlink" packets.
15857
901f9912
UW
158582012-01-20 Pedro Alves <palves@redhat.com>
15859 Ulrich Weigand <ulrich.weigand@linaro.org>
15860
15861 * server.c (handle_v_requests): Only support vAttach and vRun to
15862 start multiple processes when in extended protocol mode.
15863
fc1ab1a0
PA
158642012-01-17 Pedro Alves <palves@redhat.com>
15865
15866 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15867 memalign plus mprotect to allocate the scratch buffer.
15868
7d5d4e98
PA
158692012-01-13 Pedro Alves <palves@redhat.com>
15870
15871 * server.c (attach_inferior): Clear `cont_thread'.
15872
f128d5e9
PA
158732012-01-13 Pedro Alves <palves@redhat.com>
15874
15875 * server.c (main): Avoid infinite loop while detaching/killing
15876 after a longjmp.
15877
06db92f0
DE
158782012-01-09 Doug Evans <dje@google.com>
15879
15880 * server.c (start_inferior): Set last_ptid in --wrapper case.
15881
32d92999
YQ
158822012-01-06 Yao Qi <yao@codesourcery.com>
15883
15884 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15885 defined.
15886 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15887
5e0a92a9
YQ
158882012-01-04 Yao Qi <yao@codesourcery.com>
15889
15890 * tracepoint.c (cmd_qtdp): Print debug message
15891 for static tracepoint.
15892
ae639e8c
YQ
158932012-01-04 Yao Qi <yao@codesourcery.com>
15894
15895 * tracepoint.c (trace_vdebug): Differentiate debug message
15896 between gdbserver and IPA.
15897
f72429c5
YQ
158982012-01-03 Yao Qi <yao@codesourcery.com>
15899
15900 * tracepoint.c (tracepoint_was_hit): Don't collect for
15901 static tracepoint.
15902
12c3e59c
JB
159032012-01-02 Joel Brobecker <brobecker@adacore.com>
15904
15905 * terminal.h: Reformat copyright header.
15906
67827812
JB
159072012-01-02 Joel Brobecker <brobecker@adacore.com>
15908
15909 * server.c (gdbserver_version): Update copyright year.
15910 * gdbreplay.c (gdbreplay_version): Likewise.
15911
3e52c33d
JK
159122011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15913
15914 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15915
15916 Revert:
15917 2011-12-18 Hui Zhu <teawater@gmail.com>
15918 * linux-low.c (linux_create_inferior): Save return value to ret.
15919
66f1260e
HZ
159202011-12-18 Hui Zhu <teawater@gmail.com>
15921
15922 * linux-low.c (linux_create_inferior): Save return value to ret.
15923
e77616d7
DE
159242011-12-16 Doug Evans <dje@google.com>
15925
e7b06c57
DE
15926 * linux-low.c (linux_create_inferior): If stdio connection,
15927 redirect stdin from /dev/null, stdout to stderr.
15928 * remote-utils.c (remote_is_stdio): New static global.
15929 (remote_connection_is_stdio): New function.
15930 (remote_prepare): Handle stdio connection.
15931 (remote_open): Ditto.
15932 (remote_close): Don't close stdin for stdio connections.
15933 (read_prim,write_prim): New functions. Replace all calls to
15934 read/write to these.
15935 * server.c (main): Watch for "-" argument. Move call to
15936 remote_prepare before start_inferior.
15937 * server.h (STDIO_CONNECTION_NAME): New macro.
15938 (remote_connection_is_stdio): Declare.
15939
e77616d7
DE
15940 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15941 in debugging output.
15942
82067193
YQ
159432011-12-15 Yao Qi <yao@codesourcery.com>
15944
15945 * tracepoint.c: Include sys/syscall.h.
15946 (gdb_ust_thread): Remove preprocessor conditional.
15947
82bfbe7e
PA
159482011-12-14 Pedro Alves <pedro@codesourcery.com>
15949
15950 * linux-low.c (linux_detach_one_lwp): Call
15951 the_low_target.prepare_to_resume before detaching.
15952
712c6575
YQ
159532011-12-14 Yao Qi <yao@codesourcery.com>
15954
15955 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15956 of write.
15957
d54d1edf
YQ
159582011-12-14 Yao Qi <yao@codesourcery.com>
15959
15960 * i386-low.c (i386_low_stopped_data_address): Initialize local
15961 variable `control'.
15962
6210a125
PA
159632011-12-13 Pedro Alves <pedro@codesourcery.com>
15964
15965 PR remote/13492
15966
15967 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15968 DR_CONTROL unless necessary. Extend comments.
15969 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15970 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15971
2ece8244
YQ
159722011-12-13 Yao Qi <yao@codesourcery.com>
15973
15974 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15975 macros.
15976 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15977
784867a5
JK
159782011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15979
15980 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15981 Print new debug message for such case.
15982
6bf36717
JK
159832011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15984
15985 Fix overlapping memcpy.
15986 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15987 the read_inferior_memory transfer.
15988 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15989 write_inferior_memory transfer.
15990 (set_fast_tracepoint_jump): New variable buf. Use it for the
15991 read_inferior_memory and write_inferior_memory transfers.
15992 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15993 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15994 Use it for the write_inferior_memory transfer.
15995 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15996 buffers.
15997
50275556
MR
159982011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15999
16000 * linux-low.c (fetch_register, store_register): Make code
16001 consistent, fix formatting.
16002
7325beb4
MR
160032011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16004
16005 * linux-low.c (usr_store_inferior_registers): Factor out code
16006 to handle individual registers into...
16007 (store_register): ... this new function.
16008
c642a434
UW
160092011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16010
16011 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16012 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16013 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16014 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16015 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16016 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16017 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16018 (srv_xmlfiles): Add new XML files.
16019
16020 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16021 and <sys/uio.h>.
16022 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16023 (init_registers_s390_linux32v1): Add prototype.
16024 (init_registers_s390_linux32v2): Likewise.
16025 (init_registers_s390_linux64v1): Likewise.
16026 (init_registers_s390_linux64v2): Likewise.
16027 (init_registers_s390x_linux64v1): Likewise.
16028 (init_registers_s390x_linux64v2): Likewise.
16029 (s390_num_regs): Increment to 52.
16030 (s390_regmap): Add orig_r2 register.
16031 (s390_num_regs_3264): Increment to 68.
16032 (s390_regmap_3264): Add orig_r2 register.
16033 (s390_collect_ptrace_register): Handle orig_r2 register.
16034 (s390_supply_ptrace_register): Likewise.
16035 (s390_fill_last_break): New function.
16036 (s390_store_last_break): Likewise.
16037 (s390_fill_system_call): New function.
16038 (s390_store_system_call): Likewise.
16039 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16040 register sets.
16041 (s390_check_regset): New function.
16042 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16043 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16044 Update target_regsets for available register sets.
16045
2268b414
JK
160462011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16047 Jan Kratochvil <jan.kratochvil@redhat.com>
16048
16049 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16050 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16051 New.
16052 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16053 * linux-low.h (struct process_info_private): New member r_debug.
16054 * server.c (handle_qxfer_libraries): Call
16055 the_target->qxfer_libraries_svr4.
16056 (handle_qxfer_libraries_svr4): New function.
16057 (qxfer_packets): New entry "libraries-svr4".
16058 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16059 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16060 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16061 PACKET_qXfer_libraries_svr4.
16062
d6db1fab
UW
160632011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16064
16065 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16066 PSW address/mask between 8-byte and 16-byte formats.
16067 (s390_supply_ptrace_register): Likewise.
16068 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16069 basic addressing mode bit.
16070
242f5f1c
SS
160712011-11-24 Stan Shebs <stan@codesourcery.com>
16072
16073 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16074
f196051f
SS
160752011-11-17 Stan Shebs <stan@codesourcery.com>
16076
16077 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16078 (tracing_start_time): New global.
16079 (tracing_stop_time): New global.
16080 (tracing_user_name): New global.
16081 (tracing_notes): New global.
16082 (tracing_stop_note): New global.
16083 (cmd_qtstart): Set traceframe_usage, start_time.
16084 (stop_tracing): Set stop_time.
16085 (cmd_qtstatus): Report additional status.
16086 (cmd_qtp): New function.
16087 (handle_tracepoint_query): Call it.
16088 (cmd_qtnotes): New function.
16089 (handle_tracepoint_general_set): Call it.
16090 (get_timestamp): Rename from tsv_get_timestamp.
16091
405f8e94
SS
160922011-11-14 Stan Shebs <stan@codesourcery.com>
16093 Kwok Cheung Yeung <kcy@codesourcery.com>
16094
16095 * linux-x86-low.c (small_jump_insn): New.
16096 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16097 trampoline and error message, build a trampoline and issue a small
16098 jump instruction to it.
16099 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16100 trampoline and error message.
16101 (x86_get_min_fast_tracepoint_insn_len): New.
16102 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16103 * linux-low.h (struct linux_target_ops): Add arguments to
16104 install_fast_tracepoint_jump_pad operation, add new operation.
16105 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16106 arguments.
16107 (linux_get_min_fast_tracepoint_insn_len): New function.
16108 (linux_target_op): Add new operation.
16109 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16110 (gdb_trampoline_buffer_end): Ditto.
16111 (gdb_trampoline_buffer_error): Ditto.
16112 (struct ipa_sym_addresses): Add fields for new IPA variables.
16113 (symbol_list): Add entries for new IPA variables.
16114 (struct tracepoint): Add fields to hold the address range of the
16115 trampoline used by the tracepoint.
16116 (trampoline_buffer_head): New static variable.
16117 (trampoline_buffer_tail): Ditto.
16118 (claim_trampoline_space): New function.
16119 (have_fast_tracepoint_trampoline_buffer): New function.
16120 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16121 structure.
16122 (install_fast_tracepoint): Ditto, also add error buffer argument.
16123 (cmd_qtminftpilen): New function.
16124 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16125 (fast_tracepoint_from_trampoline_address): New function.
16126 (fast_tracepoint_collecting): Handle trampoline as part of jump
16127 pad space.
16128 (set_trampoline_buffer_space): New function.
16129 (initialize_tracepoint): Initialize new IPA variables.
16130 * target.h (struct target_ops): Add arguments to
16131 install_fast_tracepoint_jump_pad operation, add new
16132 get_min_fast_tracepoint_insn_len operation.
16133 (target_get_min_fast_tracepoint_insn_len): New.
16134 (install_fast_tracepoint_jump_pad): Add arguments.
16135 * server.h (IPA_BUFSIZ): Define.
16136 * linux-i386-ipa.c: Include extra header files.
16137 (initialize_fast_tracepoint_trampoline_buffer): New function.
16138 (initialize_low_tracepoint): Call it.
16139 * server.h (set_trampoline_buffer_space): Declare.
16140 (claim_trampoline_space): Ditto.
16141 (have_fast_tracepoint_trampoline_buffer): Ditto.
16142
1e4d1764
YQ
161432011-11-14 Yao Qi <yao@codesourcery.com>
16144
16145 * server.c (handle_query): Handle InstallInTrace for qSupported.
16146 * tracepoint.c (add_tracepoint): Sort list.
16147 (install_tracepoint, download_tracepoint): New.
16148 (cmd_qtdp): Call them to install and download tracepoints.
16149 (sort_tracepoints): Removed.
16150 (cmd_qtstart): Update.
16151
5c73ff4e
YQ
161522011-11-14 Yao Qi <yao@codesourcery.com>
16153
16154 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16155 * mem-break.h: Declare.
16156 * tracepoint.c (cmd_qtstart): Move some code to ...
16157 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16158 New.
16159 (download_tracepoints): Move some code to ...
16160 (download_tracepoint_1): ... here. New.
16161
86a30030
YQ
161622011-11-08 Yao Qi <yao@codesourcery.com>
16163
16164 * remote-utils.c (relocate_instruction): A comment fix.
16165
8d26e50c
JB
161662011-11-07 Joel Brobecker <brobecker@adacore.com>
16167
16168 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16169 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16170 dr_status_mirror and dr_control_mirror from debug_reg_state.
16171 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16172 (i386_initial_stuff): Remove use of deleted globals.
16173 (i386_get_thread_context, i386_set_thread_context,
16174 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16175 from debug_reg_state.
16176
a59306a3
YQ
161772011-11-05 Yao Qi <yao@codesourcery.com>
16178
16179 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16180 address as TPOINT's.
16181
3065dfb6
SS
161822011-11-02 Stan Shebs <stan@codesourcery.com>
16183
16184 * tracepoint.c (agent_mem_read_string): New function.
16185 (eval_agent_expr): Call it for tracenz.
16186 * server.c (handle_query): Report support for tracenz.
16187
fd0d8c7c
YQ
161882011-11-02 Yao Qi <yao@codesourcery.com>
16189
16190 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16191
609086b1
YQ
161922011-11-02 Yao Qi <yao@codesourcery.com>
16193
16194 * target.h: Fix a typo in comment.
16195
b9fd1791
PA
161962011-10-31 Pedro Alves <pedro@codesourcery.com>
16197
16198 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16199 clobber the breakpoints' shadows with fast tracepoint jumps.
16200 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16201 * target.c (write_inferior_memory): Also pass MYADDR down to
16202 check_mem_write.
16203
03583c20
UW
162042011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16205
16206 * configure.ac: Check support for personality routine.
16207 * configure: Regenerate.
16208 * config.in: Likewise.
16209 * linux-low.c: Include <sys/personality.h>.
16210 Define ADDR_NO_RANDOMIZE if necessary.
16211 (linux_create_inferior): Disable address space randomization when
16212 forking inferior, if requested.
16213 (linux_supports_disable_randomization): New function.
16214 (linux_target_ops): Install it.
16215 * server.h (disable_randomization): Declare.
16216 * server.c (disable_randomization): New global variable.
16217 (handle_general_set): Handle QDisableRandomization.
16218 (handle_query): Likewise for qSupported.
16219 (main): Support --disable-randomization and --no-disable-randomization
16220 command line arguments.
16221 * target.h (struct target_ops): Add supports_disable_randomization.
16222 (target_supports_disable_randomization): New macro.
16223
723b724b
MF
162242011-09-29 Mike Frysinger <vapier@gentoo.org>
16225
16226 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16227 ifdef check.
16228 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16229 [!PT_GETDSBT] (target_loadmap): New definition.
16230 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16231 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16232 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16233 and PT_GETDSBT to LINUX_LOADMAP.
16234 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16235 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16236
55329a5c 162372011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16238
16239 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16240 (arm_linux_hwbp_cap): New static variable.
16241 (arm_linux_get_hwbp_cap): Replace by ...
16242 (arm_linux_init_hwbp_cap): ... this new function.
16243 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16244 (arm_linux_get_hw_watchpoint_count): Likewise.
16245 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16246 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16247 (arm_prepare_to_resume): Use perror_with_name instead of error.
16248
55329a5c 162492011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16250
16251 * linux-arm-low.c: Include <signal.h>.
16252 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16253 (struct arm_linux_hwbp_cap): New data type.
16254 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16255 (struct arm_linux_hw_breakpoint): New data type.
16256 (MAX_BPTS, MAX_WPTS): Define.
16257 (struct arch_process_info, struct arch_lwp_info): New data types.
16258 (arm_linux_get_hwbp_cap): New function.
16259 (arm_linux_get_hw_breakpoint_count): Likewise.
16260 (arm_linux_get_hw_watchpoint_count): Likewise.
16261 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16262 (arm_hwbp_control_initialize): Likewise.
16263 (arm_hwbp_control_is_enabled): Likewise.
16264 (arm_hwbp_control_is_initialized): Likewise.
16265 (arm_hwbp_control_disable): Likewise.
16266 (arm_linux_hw_breakpoint_equal): Likewise.
16267 (arm_linux_hw_point_initialize): Likewise.
16268 (struct update_registers_data): New data structure.
16269 (update_registers_callback: New function.
16270 (arm_insert_point): Likewise.
16271 (arm_remove_point): Likewise.
16272 (arm_stopped_by_watchpoint): Likewise.
16273 (arm_stopped_data_address): Likewise.
16274 (arm_new_process): Likewise.
16275 (arm_new_thread): Likewise.
16276 (arm_prepare_to_resume): Likewise.
16277 (the_low_target): Register arm_insert_point, arm_remove_point,
16278 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16279 arm_new_thread, and arm_prepare_to_resume.
16280
6b9801d4
SS
162812011-09-15 Stan Shebs <stan@codesourcery.com>
16282
16283 * server.h (struct emit_ops): Add compare-goto fields.
16284 * tracepoint.c (gdb_agent_op_sizes): New table.
16285 (emit_eq_goto): New function.
16286 (emit_ne_goto): New function.
16287 (emit_lt_goto): New function.
16288 (emit_le_goto): New function.
16289 (emit_gt_goto): New function.
16290 (emit_ge_goto): New function.
16291 (is_goto_target): New function.
16292 (compile_bytecodes): Recognize special cases of compare-goto
16293 combinations and call specialized emitters for them.
16294 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16295 (amd64_emit_ne_goto): New function.
16296 (amd64_emit_lt_goto): New function.
16297 (amd64_emit_le_goto): New function.
16298 (amd64_emit_gt_goto): New function.
16299 (amd64_emit_ge_goto): New function.
16300 (amd64_emit_ops): Add the new functions.
16301 (i386_emit_eq_goto): New function.
16302 (i386_emit_ne_goto): New function.
16303 (i386_emit_lt_goto): New function.
16304 (i386_emit_le_goto): New function.
16305 (i386_emit_gt_goto): New function.
16306 (i386_emit_ge_goto): New function.
16307 (i386_emit_ops): Add the new functions.
16308
bf15cbda
SS
163092011-09-08 Stan Shebs <stan@codesourcery.com>
16310
16311 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16312 (i386_emit_epilogue): Restore %ebx.
16313
943ca1dd
JZ
163142011-08-31 Jie Zhang <jzhang918@gmail.com>
16315
16316 * server.c (step_thread): Remove definition.
16317 (process_serial_event): Don't handle Hs.
16318 * server.h (step_thread): Remove declaration.
16319 * target.c (set_desired_inferior): Remove use of step_thread.
16320
e3deef73
LM
163212011-08-24 Luis Machado <lgustavo@codesourcery.com>
16322
16323 * linux-low.c: Include linux-procfs.h.
16324 (linux_attach_lwp_1): Update comments.
16325 (linux_attach): Scan for existing threads when attaching to a
16326 process that is the tgid.
16327 * Makefile.in: Update dependencies.
16328
13da1c97
LM
163292011-08-24 Luis Machado <lgustavo@codesourcery.com>
16330
16331 * configure.srv: Add linux-procfs.o dependencies.
16332
881127c9
YQ
163332011-08-14 Yao Qi <yao@codesourcery.com>
16334
16335 * target.h (struct target_ops): Fix indent.
16336 * win32-low.c (win32_target_ops): Fix comment.
16337
58dbd541
YQ
163382011-08-14 Andrew Jenner <andrew@codesourcery.com>
16339 Yao Qi <yao@codesourcery.com>
16340
16341 * Makefile.in (clean): Remove tic6x-*.c files.
16342 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16343 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16344 (tic6x-c64xp-linux.c): Likewise.
16345 * configure.srv: Add support for tic6x-*-uclinux.
16346 * linux-tic6x-low.c: New.
16347 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16348
78d85199
YQ
163492011-08-14 Andrew Stubbs <ams@codesourcery.com>
16350 Yao Qi <yao@codesourcery.com>
16351
16352 * target.h (struct target_ops): Add read_loadmap.
16353 * linux-low.c (struct target_loadseg): New type.
16354 (struct target_loadmap): New type.
16355 (linux_read_loadmap): New function.
16356 (linux_target_ops): Add linux_read_loadmap.
16357 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16358 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16359 to NULL.
78d85199 16360
a959a88d
EZ
163612011-08-05 Eli Zaretskii <eliz@gnu.org>
16362
16363 * win32-low.c: Include <stdint.h>.
16364
1ced966e
PA
163652011-07-22 Pedro Alves <pedro@codesourcery.com>
16366
16367 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16368 to the inferior here.
16369 (i386_remove_aligned_watchpoint): Ditto.
16370 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16371 fit part of the watchpoint in the debug registers.
16372 (i386_update_inferior_debug_regs): New.
16373 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16374 registers, and only update the inferior on success.
16375 (i386_low_remove_watchpoint): Ditto.
16376
d26e3629
KY
163772011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16378
16379 * linux-low.c (compare_ints, unique, list_threads, show_process,
16380 linux_core_of_thread): Delete.
16381 (linux_target_ops): Change linux_core_of_thread to
16382 linux_common_core_of_thread.
16383 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16384 * utils.c (malloc_failure): Change type of argument.
16385 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16386 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16387 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16388 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16389 (IPA_OBJS): Add common-utils-ipa.o.
16390 (ptid_h, linux_osdata_h): New macros.
16391 (server_h): Add common/common-utils.h, common/xml-utils.h,
16392 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16393 common/ptid.h.
16394 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16395 ptid.o, buffer.o): New rules.
16396 (linux-low.o): Add common/linux-osdata.h as a dependency.
16397 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16398 * configure.ac: Add AC_HEADER_DIRENT check.
16399 * config.in: Regenerate.
16400 * configure: Regenerate.
16401 * remote-utils.c (xml_escape_text): Delete.
16402 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16403 buffer_xml_printf): Move to common/buffer.c.
16404 * server.c (main): Remove call to initialize_inferiors.
16405 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16406 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16407 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16408 internal_error, gdb_assert, gdb_assert_fail): Delete.
16409 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16410 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16411 common/buffer.h.
16412 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16413 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16414 initialize_inferiors): Delete.
16415
2275a1a7
PA
164162011-07-20 Pedro Alves <pedro@codesourcery.com>
16417
16418 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16419 symbol error.
16420
0a5b1e09
PA
164212011-05-31 Pedro Alves <pedro@codesourcery.com>
16422
16423 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16424 assertion.
16425 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16426
6938fd34
YQ
164272011-05-26 Yao Qi <yao@codesourcery.com>
16428
16429 * Makefile.in (thread-db.o): Track dependence to
16430 common/gdb_thread_db.h.
16431 * thread-db.c: include gdb_thread_db.h from right place.
16432
b481f9e0
TT
164332011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16434
16435 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16436 __FILE__ and __LINE__ to internal_error.
16437
98a5dd13
DE
164382011-05-13 Doug Evans <dje@google.com>
16439
16440 * thread-db.c (try_thread_db_load_from_sdir): New function.
16441 (try_thread_db_load_from_dir): New function.
16442 (thread_db_load_search): Handle $sdir, ignore $pdir.
16443 Remove trying of system directories if search of
16444 libthread-db-search-path fails, that is now done via $sdir.
16445
d248b706
KY
164462011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16447
16448 * server.c (handle_query): Add EnableDisableTracepoints to the list
16449 of supported features.
43aaf8b6 16450 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16451 tracepoints.
43aaf8b6
PA
16452 (cmd_qtenable_disable): New.
16453 (cmd_qtstart): Install tracepoints even if disabled.
16454 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16455 receiving a QTEnable or QTDisable packet.
16456 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16457 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16458 tracepoints.
16459 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16460
84e578fb
DE
164612011-05-10 Doug Evans <dje@google.com>
16462
16463 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16464
71f55dd8
DE
164652011-05-04 Doug Evans <dje@google.com>
16466
16467 * linux-low.c (linux_join): Skip process lookup.
16468 * spu-low.c (spu_join): Ditto.
16469 * server.c (join_inferiors_callback): Delete.
16470 (process_serial_event): For 'D' packet (detach) call join_inferior
16471 directly.
16472
4d393d60
JM
164732011-05-04 Joseph Myers <joseph@codesourcery.com>
16474
16475 * README: Don't mention xscale*-*-linux*.
16476 * configure.srv (xscale*-*-linux*): Don't handle target.
16477
b00ad6ff
NF
164782011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16479
16480 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16481 casting pointers.
16482 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16483 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16484 (i386_emit_void_call_2): Likewise.
16485
af96c192
YQ
164862011-04-26 Yao Qi <yao@codesourcery.com>
16487
43aaf8b6
PA
16488 * linux-low.c: Move common macros to linux-ptrace.h.
16489 Include linux-ptrace.h.
af96c192
YQ
16490 * Makefile.in (linux_ptrace_h): New.
16491 (linux-low.o): Depends on linux-ptrace.h.
16492
03f2bd59
JK
164932011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16494
16495 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16496 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16497 (remote_prepare): New function with most of the TCP code from ...
16498 (remote_open): ... here. Detect PORT here unconditionally. Move also
16499 setting transport_is_reliable.
16500 * server.c (run_once): New variable.
16501 (gdbserver_usage): Document it.
16502 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16503 the first run if RUN_ONCE.
16504 * server.h (run_once, remote_prepare): New declarations.
16505
7a9dd1b2
TT
165062011-04-19 Tom Tromey <tromey@redhat.com>
16507
16508 * win32-low.c (handle_load_dll): Remove duplicate "the".
16509
81239425
PM
165102011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16511
16512 Remove support for old Cygwin 1.5 versions.
16513 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16514 function to avoid warning.
16515 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16516 warning.
16517
9e0627f1
PM
165182011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16519
16520 * gdbserver/server.h (Macro _): Define it if not available.
16521
588eebee
MS
165222011-03-14 Michael Snyder <msnyder@vmware.com>
16523
348af9f7 16524 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16525
43f70d4c
JB
165262011-03-10 Joel Brobecker <brobecker@adacore.com>
16527
16528 * Makefile.in (maintainer-clean realclean distclean): Remove
16529 "make ... subdir_do" command.
16530
348af9f7
MS
165312011-03-10 Michael Snyder <msnyder@vmware.com>
16532
16533 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16534
16535 * server.c (handle_v_run): Free alloced buffer on early return.
16536
e637a4f5
YQ
165372011-03-09 Yao Qi <yao@codesourcery.com>
16538
16539 Revert:
16540 2011-03-04 Yao Qi <yao@codesourcery.com>
16541
16542 * Makefile.in: Remove GNU make feature --directory.
16543
16544 2011-03-05 Yao Qi <yao@codesourcery.com>
16545
16546 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16547 (subdir_do): New make target. Copied from gdb/Makefile.
16548 (maintainer-clean, realclean, distclean, clean): Call corresponding
16549 make targets in common/Makefile.
16550
16551 2011-02-11 Yao Qi <yao@codesourcery.com>
16552
16553 * configure.ac: Call AC_PROG_RANLIB.
16554 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16555 * configure: Regenerate.
16556
e6edda56
JK
165572011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16558
16559 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16560
e5141119
JB
165612011-03-06 Yao Qi <yao@codesourcery.com>
16562
16563 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16564
64794aa4
JB
165652011-03-05 Yao Qi <yao@codesourcery.com>
16566
16567 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16568 (subdir_do): New make target. Copied from gdb/Makefile.
16569 (maintainer-clean, realclean, distclean, clean): Call corresponding
16570 make targets in common/Makefile.
16571
7a762829
YQ
165722011-03-04 Yao Qi <yao@codesourcery.com>
16573
16574 * Makefile.in: Remove GNU make feature --directory.
16575
348af9f7
MS
165762011-03-04 Michael Snyder <msnyder@vmware.com>
16577
16578 * server.c (queue_stop_reply): Call xmalloc not malloc.
16579
165802011-03-02 Michael Snyder <msnyder@vmware.com>
16581
16582 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16583
9f72fee2
MS
165842011-02-28 Michael Snyder <msnyder@vmware.com>
16585
588eebee
MS
16586 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16587 (cmd_qtframe): Ditto.
16588 (cmd_qtbuffer): Ditto.
16589 (cmd_bigqtbuffer): Ditto.
16590
9f72fee2
MS
16591 * utils.c (decimal2str): Initialize 'width' to nine, then
16592 don't mess with it.
16593
8040bd49
UW
165942011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16595
16596 * hostio.c (require_data): Free *data, not data.
16597
7e52cbd0
JK
165982011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16599
16600 * hostio.c (require_data): Use free, not xfree.
16601
9130f83e
MS
166022011-02-27 Michael Snyder <msnyder@vmware.com>
16603
4b812f4e
MS
16604 * server.c (handle_query): Discard unused value.
16605
9130f83e
MS
16606 * hostio.c (require_data): Free malloc memory before returning
16607 error.
16608
69d37113
MS
166092011-02-26 Michael Snyder <msnyder@vmware.com>
16610
16611 * linux-low.c (list_threads): Call closedir for dirent.
16612
35f5825a
MS
166132011-02-27 Michael Snyder <msnyder@vmware.com>
16614
2a589cef
MS
16615 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16616 a case statement falls through.
16617
0adea5f7
MS
16618 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16619
35f5825a
MS
16620 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16621 in comparison.
16622
238f1c74
MS
166232011-02-26 Michael Snyder <msnyder@vmware.com>
16624
16625 * utils.c (decimal2str): Eliminate dead code and dead param.
16626 (pulongest): Drop dead param from call to decimal2str.
16627 (plongest): Ditto.
16628
633ff500
JB
166292011-02-24 Joel Brobecker <brobecker@adacore.com>
16630
16631 Revert the following patch (not approved yet):
16632 2011-02-21 Hui Zhu <teawater@gmail.com>
16633 * tracepoint.c (tp_printf): New function.
16634 (eval_agent_expr): Handle gdb_agent_op_printf.
16635
f9c6ff72
HZ
166362011-02-21 Hui Zhu <teawater@gmail.com>
16637
16638 * tracepoint.c (tp_printf): New function.
16639 (eval_agent_expr): Handle gdb_agent_op_printf.
16640
94d5e490
TT
166412011-02-18 Tom Tromey <tromey@redhat.com>
16642
16643 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16644 (tracepoint.o): Likewise.
16645 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16646 (gdb_agent_op_names): Likewise.
16647
c7f96d2b
TT
166482011-02-18 Tom Tromey <tromey@redhat.com>
16649
16650 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16651 gdb_agent_op_rot>: New constants.
16652 (gdb_agent_op_names): Add pick and roll.
16653 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16654 cases.
16655
0feedb2c
JK
166562011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16657
16658 * aclocal.m4: Regenerated with aclocal-1.11.1.
16659
b3b9301e
PA
166602011-02-14 Pedro Alves <pedro@codesourcery.com>
16661
16662 * server.c (handle_qxfer_traceframe_info): New.
16663 (qxfer_packets): Register "traceframe-info".
16664 (handle_query): Report support for qXfer:traceframe-info:read+.
16665 * tracepoint.c (match_blocktype): New.
16666 (traceframe_find_block_type): Rename to ...
16667 (traceframe_walk_blocks): ... this. Add callback filter argument,
16668 and use it.
16669 (traceframe_find_block_type): New, reimplemented on top of
16670 traceframe_walk_blocks.
16671 (build_traceframe_info_xml): New.
16672 (traceframe_read_info): New.
16673 * server.h (traceframe_read_info): Declare.
16674
4f3e6fb7
YQ
166752011-02-11 Yao Qi <yao@codesourcery.com>
16676
16677 * configure.ac: Call AC_PROG_RANLIB.
16678 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16679 * configure: Regenerate.
16680
764880b7
PA
166812011-02-07 Pedro Alves <pedro@codesourcery.com>
16682
16683 * server.c (gdb_read_memory): Change return semantics to allow
16684 partial transfers.
16685 (handle_search_memory_1): Adjust.
16686 (process_serial_event) <'m' packet>: Handle partial transfers.
16687 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16688
1c79eb8a
PA
166892011-01-28 Pedro Alves <pedro@codesourcery.com>
16690
16691 * regcache.c (init_register_cache): Initialize
16692 regcache->register_status.
16693 (free_register_cache): Release regcache->register_status.
16694 (regcache_cpy): Copy register_status.
16695 (registers_to_string): Print 'x's for unavailable registers.
16696 (supply_register): Mark the register's status valid or
16697 unavailable, depending on whether a buffer was passed in or not.
16698 (supply_register_zeroed): New.
16699 (supply_regblock): Mark the registers' status valid or
16700 unavailable, depending on whether a buffer was passed in or not.
16701 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16702 (struct regcache): New `register_status' field.
16703 (supply_register_zeroed): Declare.
16704 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16705 supply_register_zeroed, rather than passing a NULL buffer to
16706 supply_register.
16707 * tracepoint.c (fetch_traceframe_registers): Update comment.
16708
85724a0e
PA
167092011-01-28 Pedro Alves <pedro@codesourcery.com>
16710
16711 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16712 buffer explicit.
16713
d08aafef
PA
167142011-01-25 Pedro Alves <pedro@codesourcery.com>
16715
16716 * server.h (decode_xfer_write): Change prototype.
16717 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16718 and don't extract the annex here.
16719 * server.c (decode_xfer_read): Remove `annex' parameter,
16720 and don't extract the annex here.
16721 (decode_xfer): New.
16722 (struct qxfer): New.
16723 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16724 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16725 (handle_qxfer_statictrace): New functions, abstracted out from
16726 handle_query, and made to use the struct qxfer interface.
16727 (handle_threads_qxfer_proper): Rename to ...
16728 (handle_qxfer_threads_proper): ... this.
16729 (handle_threads_qxfer): Rename to ...
16730 (handle_qxfer_threads): ... this. Adjust.
16731 (qxfer_packets): New array.
16732 (handle_qxfer): New function.
16733 (handle_query): Use handle_qxfer.
16734
493e2a69
MS
167352011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16736
16737 * gdbreplay.c: Shorten lines of >= 80 columns.
16738 * linux-low.c: Ditto.
16739 * linux-ppc-low.c: Ditto.
16740 * linux-s390-low.c: Ditto.
16741 * linux-sparc-low.c: Ditto.
16742 * linux-x86-low.c: Ditto.
16743 * linux-xtensa-low.c: Ditto.
16744 * mem-break.c: Ditto.
16745 * nto-low.c: Ditto.
16746 * regcache.h: Ditto.
16747 * remote-utils.c: Ditto.
16748 * server.c: Ditto.
16749 * server.h: Ditto.
16750 * thread-db.c: Ditto.
16751 * tracepoint.c: Ditto.
16752 * utils.c: Ditto.
16753 * win32-low.h: Ditto.
16754
44944448
JB
167552011-01-05 Joel Brobecker <brobecker@adacore.com>
16756
16757 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16758 update.
16759
71ce852c
JB
167602011-01-01 Joel Brobecker <brobecker@adacore.com>
16761
16762 * server.c (gdbserver_version): Update copyright year in version
16763 output.
16764 * gdbreplay.c (gdbreplay_version): Ditto.
16765
eb826dc6
MF
167662010-12-29 Jie Zhang <jie.zhang@analog.com>
16767
16768 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16769 * linux-bfin-low.c: New file.
16770 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16771 PT_DATA_ADDR for BFIN targets.
16772 * Makefile.in (SFILES): Add linux-bfin-low.c.
16773 (clean): Remove reg-bfin.c.
16774 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16775 * README: Mention supported Blackfin targets.
16776
39ab222a
MF
167772010-12-23 Mike Frysinger <vapier@gentoo.org>
16778
16779 * .gitignore: New file.
16780
a1f2ce7d
MF
167812010-11-16 Mike Frysinger <vapier@gentoo.org>
16782
16783 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16784
f474844c
JZ
167852010-10-22 Jie Zhang <jie@codesourcery.com>
16786
16787 * Makefile.in: Add FLAGS_TO_PASS variable.
16788 (install): Remove dependency of install-only and recursively
16789 invoke make for install-only.
16790
f1048712
DE
167912010-10-04 Doug Evans <dje@google.com>
16792
16793 * Makefile.in (uninstall): Use $(DESTDIR).
16794
b53a1623
PA
167952010-09-24 Pedro Alves <pedro@codesourcery.com>
16796
e6ee044d
PA
16797 PR gdb/11842
16798
b53a1623
PA
16799 * linux-x86-low.c (compat_siginfo_from_siginfo)
16800 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16801 si_code is < 0. Check for si_code == SI_TIMER before checking for
16802 si_code < 0.
16803
fa1bd1e4
JB
168042010-09-13 Joel Brobecker <brobecker@adacore.com>
16805
16806 * lynx-i386-low.c: New file.
16807 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16808
47fac8f8
JB
168092010-09-13 Joel Brobecker <brobecker@adacore.com>
16810
16811 * lynx-low.c (ptrace_request_to_str): Remove handling for
16812 request values that have been removed in LynxOS 5.x.
16813
1adfc54d
JB
168142010-09-13 Joel Brobecker <brobecker@adacore.com>
16815
16816 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16817 <ptrace.h>
16818
c2a66c29
NS
168192010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16820
16821 * configure.ac: Add --enable-inprocess-agent option.
16822 * configure: Rebuilt.
16823
32fcada3
YQ
168242010-09-06 Yao Qi <yao@codesourcery.com>
16825
16826 * linux-low.c (linux_kill): Remove unused variable.
16827 (linux_stabilize_threads): Likewise.
16828 * server.c (start_inferior): Likewise.
16829 (queue_stop_reply_callback): Likewise.
16830 * tracepoint.c (do_action_at_tracepoint): Likewise.
16831
0cccb683
YQ
168322010-09-06 Yao Qi <yao@codesourcery.com>
16833
16834 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16835 on return.
16836
423ec54c
JK
168372010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16838
16839 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16840
12ac6819
PA
168412010-09-06 Pedro Alves <pedro@codesourcery.com>
16842
16843 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16844 "$(IPA_DEPFILES)".
16845
8ed54b31
JB
168462010-09-01 Joel Brobecker <brobecker@adacore.com>
16847
16848 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16849 gdbserver/lynx-ppc-low.c: New files.
16850 * Makefile.in (lynx_low_h): New variable.
16851 (lynx-low.o, lynx-ppc-low.o): New rules.
16852 * configure.ac: On LynxOS, link with -lnetinet.
16853 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16854 * configure: regenerate.
16855
bb0116a4
JB
168562010-09-01 Joel Brobecker <brobecker@adacore.com>
16857
16858 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16859 * configure.ac: Add check for vasprintf and vsnprintf.
16860 * configure, config.in: Regenerate.
16861 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16862
a778ab81 168632010-09-01 Joel Brobecker <brobecker@adacore.com>
16864
16865 * gdbreplay.c: Move include of alloca.h up, next to include of
16866 malloc.h.
16867 * server.h: Add include of malloc.h.
16868 * mem-break.c: Remove include of malloc.h.
16869 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16870
8b034a19 168712010-09-01 Joel Brobecker <brobecker@adacore.com>
16872
16873 * Makefile.in (memmem.o): Build with -Wno-error.
16874
168752010-09-01 Joel Brobecker <brobecker@adacore.com>
16876
16877 * utils.c (xsnprintf): Make non-static.
16878 * server.h: Add xsnprintf declaration.
16879 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16880 replace calls to snprintf by calls to xsnprintf throughout.
16881
168822010-09-01 Joel Brobecker <brobecker@adacore.com>
16883
16884 * configure.ac: Add configure check for alloca.
16885 * configure, config.in: Regenerate.
16886 * server.h: Include alloca.h if it exists.
16887 * gdbreplay.c: Include alloca.h if it exists.
16888
1a981360
PA
168892010-08-28 Pedro Alves <pedro@codesourcery.com>
16890
16891 * linux-low.c (__SIGRTMIN): Define if not already defined.
16892 (linux_create_inferior): Check for __ANDROID__ rather than
16893 __SIGRTMIN.
16894 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16895 are already deferred.
16896 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16897 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16898 stopped and already has a pending signal to report.
16899 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16900 a pending signal to report or is moving out of a jump pad.
16901 (linux_init_signals): Check for __ANDROID__ rather than
16902 __SIGRTMIN.
16903
b4d51a55
PA
169042010-08-28 Pedro Alves <pedro@codesourcery.com>
16905
16906 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16907 debug_threads check. Avoid a linear search when not doing debug
16908 output.
16909
ec48365d
PA
169102010-08-27 Pedro Alves <pedro@codesourcery.com>
16911
16912 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16913 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16914 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16915 (process_event): Change local fd's type to gdb_fildes_t.
16916 (create_file_handler): Adjust prototype.
16917 (delete_file_handler): Adjust prototype.
16918 (handle_file_event): Adjust prototype. Use pfildes.
16919 (create_file_event): Adjsut prototype.
16920 * remote-utils.c (remote_desc, listen_desc): Change type to
16921 gdb_fildes_t.
16922 * server.h: New gdb_fildes_t typedef.
16923 [USE_WIN32API]: Include winsock2.h.
16924 (delete_file_handler, add_file_handler): Adjust prototypes.
16925 (pfildes): Declare.
16926 * utils.c (pfildes): New.
16927
854d88f0
PA
169282010-08-27 Pedro Alves <pedro@codesourcery.com>
16929
16930 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16931 * configure: Regenerate.
16932
0146f85b
PA
169332010-08-27 Pedro Alves <pedro@codesourcery.com>
16934
16935 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16936 (linux_done_accessing_memory): ... this.
16937 (linux_target_ops): Adjust.
16938 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16939 * nto-low.c (nto_target_ops): Adjust comment.
16940 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16941 * spu-low.c (spu_target_ops): Adjust comment.
16942 * target.h (target_ops): Rename unprepare_to_access_memory field
16943 to done_accessing_memory.
16944 (unprepare_to_access_memory): Rename to ...
16945 (done_accessing_memory): ... this.
16946
90d74c30
PA
169472010-08-26 Pedro Alves <pedro@codesourcery.com>
16948
16949 * linux-low.c (linux_prepare_to_access_memory): New.
16950 (linux_unprepare_to_access_memory): New.
16951 (linux_target_ops): Install them.
16952 * server.c (read_memory): Rename to ...
16953 (gdb_read_memory): ... this. Use
16954 prepare_to_access_memory/prepare_to_access_memory.
16955 (write_memory): Rename to ...
16956 (gdb_write_memory): ... this. Use
16957 prepare_to_access_memory/prepare_to_access_memory.
16958 (handle_search_memory_1): Adjust.
16959 (process_serial_event): Adjust.
16960 * target.h (struct target_ops): New fields
16961 prepare_to_access_memory and unprepare_to_access_memory.
16962 (prepare_to_access_memory, unprepare_to_access_memory): New.
16963 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16964 prepare_to_access_memory/prepare_to_access_memory.
16965 * nto-low.c (nto_target_ops): Adjust.
16966 * spu-low.c (spu_target_ops): Adjust.
16967 * win32-low.c (win32_target_ops): Adjust.
16968
fd467969
PA
169692010-08-26 Pedro Alves <pedro@codesourcery.com>
16970
16971 * Makefile.in (WARN_CFLAGS): Get it from configure.
16972 (WERROR_CFLAGS): New.
16973 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16974 * configure.ac: Introduce --enable-werror, which adds -Werror to
16975 the compiler command line. Enabled by default. Disable with
16976 --disable-werror. Add -Wdeclaration-after-statement
16977 Wpointer-arith and -Wformat-nonliteral to warning flags.
16978 * configure: Regenerate.
16979
331e2f5f
PA
169802010-08-26 Pedro Alves <pedro@codesourcery.com>
16981
16982 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16983
e581f2b4
PA
169842010-08-26 Pedro Alves <pedro@codesourcery.com>
16985
16986 * gdbreplay.c (remote_error): New.
16987 (gdbchar): New.
16988 (expect): Use gdbchar. Check for error reading from GDB.
16989 Clarify sync error output.
16990 (play): Check for errors writing to GDB.
16991 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16992 * remote-utils.c (getpkt): Check for errors writing to the remote
16993 descriptor.
16994
3c11dd79
PA
169952010-08-25 Pedro Alves <pedro@codesourcery.com>
16996
16997 * linux-low.c (linux_wait_1): Move non-debugging code out of
16998 `debug_threads' control.
16999
d20a8ad9
PA
170002010-08-25 Pedro Alves <pedro@codesourcery.com>
17001
17002 * linux-low.c (linux_wait_1): Don't set last_status here.
17003 * server.c (push_event, queue_stop_reply_callback): Assert we're
17004 not pushing a TARGET_WAITKIND_IGNORE event.
17005 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17006 (myresume, handle_target_event): Set the thread's last_resume_kind
17007 and last_status from the target returned status.
17008
964e4306
PA
170092010-08-25 Pedro Alves <pedro@codesourcery.com>
17010
17011 PR threads/10729
17012
17013 * linux-x86-low.c (update_debug_registers_callback): New.
17014 (i386_dr_low_set_addr): Use it.
17015 (i386_dr_low_get_addr): New.
17016 (i386_dr_low_set_control): Use update_debug_registers_callback.
17017 (i386_dr_low_get_control): New.
17018 (i386_dr_low_get_status): Adjust.
17019 * linux-low.c (linux_stop_lwp): New.
17020 * linux-low.h (linux_stop_lwp): Declare.
17021
17022 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17023 argument instead of a i386_debug_reg_state.
17024 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17025 a i386_debug_reg_state.
17026 (i386_insert_aligned_watchpoint): Adjust.
17027 (i386_remove_aligned_watchpoint): Adjust.
17028 (i386_low_stopped_data_address): Read the debug registers from the
17029 inferior instead of from the mirrors.
17030 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17031 (i386_dr_low_get_addr): Declare.
17032 (i386_dr_low_get_control): Declare.
17033 (i386_dr_low_get_status): Change prototype.
17034
17035 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17036 (i386_dr_low_get_addr): New.
17037 (i386_dr_low_get_control): New.
17038 (i386_dr_low_get_status): Adjust prototype. Return
17039 dr_status_mirror.
17040 (i386_initial_stuff): Clear dr_status_mirror and
17041 dr_control_mirror.
17042 (i386_get_thread_context): Adjust.
17043 (i386_set_thread_context): Adjust.
17044 (i386_thread_added): Adjust.
17045
5f21a75b
PA
170462010-08-24 Pedro Alves <pedro@codesourcery.com>
17047
17048 * linux-low.h (linux_thread_area): Delete declaration.
17049
3e4c1235
TS
170502010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17051
17052 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17053 after its termination.
17054
1971b033
PA
170552010-08-09 Pedro Alves <pedro@codesourcery.com>
17056
17057 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17058 (gdb_wants_all_stopped): Delete.
17059 (linux_wait_1): Don't call them.
17060 * server.c (handle_v_cont): Tag all threads as want-stopped.
17061 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17062 stopped as "client-wants-stopped".
17063
310444ac
PA
170642010-07-31 Pedro Alves <pedro@codesourcery.com>
17065
17066 * Makefile.in (signals_h): New.
17067 (server_h): Depend on it.
17068 (server.o): Don't depend on $(signals_def).
17069 (signals.o): Depend on $(signals_def).
17070
a19cae16
JK
170712010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17072
17073 * Makefile.in (signals_def): New.
17074 (server_h): Append include/gdb/signals.h and signals_def.
17075 (server.o): Append signals_def.
17076
30d50328
JK
170772010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17078
17079 * server.c (handle_target_event): Use target_signal_to_host for
17080 resume_info.sig initialization.
17081 * target.h (struct thread_resume) <sig>: New comment.
17082
5c3216e2
OS
170832010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17084
c6f46ca0
OS
17085 * server.c (handle_query): strcpy() the returned string from paddress()
17086 instead of sprintf().
5c3216e2
OS
17087 * utils.c (paddress): Return phex_nz().
17088
6bd31874
JB
170892010-07-07 Joel Brobecker <brobecker@adacore.com>
17090
17091 * server.c (handle_v_cont): Call mourn_inferior if process
17092 just exited.
17093 (myresume): Likewise.
17094
0fb4aa4b
PA
170952010-07-01 Pedro Alves <pedro@codesourcery.com>
17096
17097 Static tracepoints, and integration with UST.
17098
17099 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17100 * mem-break.c (uninsert_all_breakpoints)
17101 (reinsert_all_breakpoints): New.
17102 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17103 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17104 (gdb_agent_ust_loaded, helper_thread_id)
17105 (gdb_agent_helper_thread_id): New macros.
17106 (struct ipa_sym_addresses): Add addr_ust_loaded,
17107 addr_helper_thread_id, addr_cmd_buf.
17108 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17109 (in_process_agent_loaded_ust): New.
17110 (write_e_ust_not_loaded): New.
17111 (maybe_write_ipa_ust_not_loaded): New.
17112 (struct collect_static_trace_data_action): New.
17113 (enum tracepoint_type) <static_tracepoint>: New.
17114 (struct tracepoint) <handle>: Mention static tracepoints.
17115 (struct static_tracepoint_ctx): New.
17116 (CMD_BUF_SIZE): New.
17117 (add_tracepoint_action): Handle static tracepoint actions.
17118 (unprobe_marker_at): New.
17119 (clear_installed_tracepoints): Handle static tracepoints.
17120 (cmd_qtdp): Handle static tracepoints.
17121 (probe_marker_at): New.
17122 (cmd_qtstart): Handle static tracepoints.
17123 (response_tracepoint): Handle static tracepoints.
17124 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17125 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17126 (get_context_regcache): Handle static tracepoints.
17127 (do_action_at_tracepoint): Handle static tracepoint actions.
17128 (traceframe_find_block_type): Handle static trace data blocks.
17129 (traceframe_read_sdata): New.
17130 (download_tracepoints): Download static tracepoint actions.
17131 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17132 (GDB_PROBE_NAME): New.
17133 (ust_ops): New.
17134 (GET_UST_SYM): New.
17135 (USTF): New.
17136 (dlsym_ust): New.
17137 (ust_marker_to_static_tracepoint): New.
17138 (gdb_probe): New.
17139 (collect_ust_data_at_tracepoint): New.
17140 (gdb_ust_probe): New.
17141 (UNIX_PATH_MAX, SOCK_DIR): New.
17142 (gdb_ust_connect_sync_socket): New.
17143 (resume_thread, stop_thread): New.
17144 (run_inferior_command): New.
17145 (init_named_socket): New.
17146 (gdb_ust_socket_init): New.
17147 (cstr_to_hexstr): New.
17148 (next_st): New.
17149 (first_marker, next_marker): New.
17150 (response_ust_marker): New.
17151 (cmd_qtfstm, cmd_qtsstm): New.
17152 (unprobe_marker_at, probe_marker_at): New.
17153 (cmd_qtstmat, gdb_ust_thread): New.
17154 (gdb_ust_init): New.
17155 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17156 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17157 (ST_REGENTRY): New.
17158 (x86_64_st_collect_regmap): New.
17159 (X86_64_NUM_ST_COLLECT_GREGS): New.
17160 (AMD64_RIP_REGNUM): New.
17161 (supply_static_tracepoint_registers): New.
17162 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17163 (ST_REGENTRY): New.
17164 (i386_st_collect_regmap): New.
17165 (i386_NUM_ST_COLLECT_GREGS): New.
17166 (supply_static_tracepoint_registers): New.
17167 * server.c (handle_query): Handle qXfer:statictrace:read.
17168 <qSupported>: Report support for StaticTracepoints, and
17169 qXfer:statictrace:read features.
17170 * server.h (traceframe_read_sdata)
17171 (supply_static_tracepoint_registers): Declare.
17172 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17173 (unpack_varlen_hex): Include in IPA build.
17174 * Makefile.in (ustlibs, ustinc): New.
17175 (IPA_OBJS): Add remote-utils-ipa.o.
17176 ($(IPA_LIB)): Link -ldl and -lpthread.
17177 (UST_CFLAGS): New.
17178 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17179 * config.in, configure: Regenerate.
17180
9e4344e5
PA
171812010-06-20 Ian Lance Taylor <iant@google.com>
17182 Pedro Alves <pedro@codesourcery.com>
17183
17184 * linux-x86-low.c (always_true): Delete.
17185 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17186 trying to fool the compiler with always_true.
17187
c6beb2cb
PA
171882010-06-20 Pedro Alves <pedro@codesourcery.com>
17189
17190 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17191 conditions in gdbserver.
17192
d2ed6730
UW
171932010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17194
17195 * spu-low.c (spu_read_memory): Wrap around local store limit.
17196 (spu_write_memory): Likewise.
17197
4e29fb54
PA
171982010-06-15 Pedro Alves <pedro@codesourcery.com>
17199
17200 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17201 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17202 LONGEST uses.
17203 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17204 uses.
17205 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17206 uses with LONGEST uses.
17207
6a271cae
PA
172082010-06-14 Stan Shebs <stan@codesourcery.com>
17209 Pedro Alves <pedro@codesourcery.com>
17210
17211 Bytecode compiler.
17212
17213 * linux-x86-low.c: Include limits.h.
17214 (add_insns): New.
17215 (always_true): New.
17216 (EMIT_ASM): New.
17217 (EMIT_ASM32): New.
17218 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17219 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17220 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17221 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17222 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17223 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17224 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17225 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17226 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17227 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17228 (amd64_emit_void_call_2): New.
17229 (amd64_emit_ops): New.
17230 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17231 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17232 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17233 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17234 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17235 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17236 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17237 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17238 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17239 (i386_emit_stack_adjust, i386_emit_int_call_1)
17240 (i386_emit_void_call_2): New.
17241 (i386_emit_ops): New.
17242 (x86_emit_ops): New.
17243 (the_low_target): Install x86_emit_ops.
17244 * server.h (struct emit_ops): New.
17245 (get_raw_reg_func_addr): Declare.
17246 (current_insn_ptr, emit_error): Declare.
17247 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17248 (set_trace_state_variable_value): New defines.
17249 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17250 addr_get_trace_state_variable_value and
17251 addr_set_trace_state_variable_value.
17252 (symbol_list): New fields for get_raw_reg,
17253 get_trace_state_variable_value and set_trace_state_variable_value.
17254 (condfn): New typedef.
17255 (struct tracepoint): New field `compiled_cond'.
17256 (do_action_at_tracepoint): Clear compiled_cond.
17257 (get_trace_state_variable_value, set_trace_state_variable_value):
17258 Export in the IPA.
17259 (condition_true_at_tracepoint): If there's a compiled condition,
17260 run that.
17261 (current_insn_ptr, emit_error): New globals.
17262 (struct bytecode_address): New.
17263 (get_raw_reg_func_addr): New.
17264 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17265 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17266 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17267 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17268 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17269 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17270 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17271 (compile_tracepoint_condition, compile_bytecodes): New.
17272 * target.h (emit_ops): Forward declare.
17273 (struct target_ops): New field emit_ops.
17274 (target_emit_ops): New.
17275 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17276 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17277 * linux-low.c (linux_emit_ops): New.
17278 (linux_target_ops): Install it.
17279 * linux-low.h (struct linux_target_ops): New field emit_ops.
17280
92b72907
UW
172812010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17282
17283 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17284 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17285
fa593d66
PA
172862010-06-01 Pedro Alves <pedro@codesourcery.com>
17287 Stan Shebs <stan@codesourcery.com>
17288
17289 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17290 (all): Depend on $(extra_libraries).
17291 (install-only): Install the IPA.
17292 (IPA_OBJS, IPA_LIB): New.
17293 (clean): Remove the IPA lib.
17294 (IPAGENT_CFLAGS): New.
17295 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17296 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17297 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17298 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17299 * configure.ac: Check for atomic builtins support in the compiler.
17300 (IPA_DEPFILES, extra_libraries): Define.
17301 * configure.srv (ipa_obj): Add description.
17302 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17303 (i[34567]86-*-linux*): Set ipa_obj.
17304 (x86_64-*-linux*): Set ipa_obj.
17305 * linux-low.c (stabilizing_threads): New.
17306 (supports_fast_tracepoints): New.
17307 (linux_detach): Stabilize threads before detaching.
17308 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17309 the lwp is either not stabilizing, or is moving out of a jump pad.
17310 (linux_fast_tracepoint_collecting): New.
17311 (maybe_move_out_of_jump_pad): New.
17312 (enqueue_one_deferred_signal): New.
17313 (dequeue_one_deferred_signal): New.
17314 (linux_wait_for_event_1): If moving out of a jump pad, defer
17315 pending signals to later.
17316 (linux_stabilize_threads): New.
17317 (linux_wait_1): Check if threads need moving out of jump pads, and
17318 do it if so.
17319 (stuck_in_jump_pad_callback): New.
17320 (move_out_of_jump_pad_callback): New.
17321 (lwp_running): New.
17322 (linux_resume_one_lwp): Handle moving out of jump pads.
17323 (linux_set_resume_request): Dequeue deferred signals.
17324 (need_step_over_p): Also step over fast tracepoint jumps.
17325 (start_step_over): Also uninsert fast tracepoint jumps.
17326 (finish_step_over): Also reinsert fast tracepoint jumps.
17327 (linux_install_fast_tracepoint_jump): New.
17328 (linux_target_ops): Install linux_stabilize_threads and
17329 linux_install_fast_tracepoint_jump_pad.
17330 * linux-low.h (linux_target_ops) <get_thread_area,
17331 install_fast_tracepoint_jump_pad>: New fields.
17332 (struct lwp_info) <collecting_fast_tracepoint,
17333 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17334 (linux_get_thread_area): Declare.
17335 * linux-x86-low.c (jump_insn): New.
17336 (x86_get_thread_area): New.
17337 (append_insns): New.
17338 (push_opcode): New.
17339 (amd64_install_fast_tracepoint_jump_pad): New.
17340 (i386_install_fast_tracepoint_jump_pad): New.
17341 (x86_install_fast_tracepoint_jump_pad): New.
17342 (the_low_target): Install x86_get_thread_area and
17343 x86_install_fast_tracepoint_jump_pad.
17344 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17345 (struct fast_tracepoint_jump): New.
17346 (fast_tracepoint_jump_insn): New.
17347 (fast_tracepoint_jump_shadow): New.
17348 (find_fast_tracepoint_jump_at): New.
17349 (fast_tracepoint_jump_here): New.
17350 (delete_fast_tracepoint_jump): New.
17351 (set_fast_tracepoint_jump): New.
17352 (uninsert_fast_tracepoint_jumps_at): New.
17353 (reinsert_fast_tracepoint_jumps_at): New.
17354 (set_breakpoint_at): Use write_inferior_memory.
17355 (uninsert_raw_breakpoint): Use write_inferior_memory.
17356 (check_mem_read): Mask out fast tracepoint jumps.
17357 (check_mem_write): Mask out fast tracepoint jumps.
17358 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17359 (set_fast_tracepoint_jump): Declare.
17360 (delete_fast_tracepoint_jump)
17361 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17362 (reinsert_fast_tracepoint_jumps_at): Declare.
17363 * regcache.c: Don't compile many functions when building the
17364 in-process agent library.
17365 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17366 the register buffer in the heap.
17367 (free_register_cache): If the register buffer isn't owned by the
17368 regcache, don't free it.
17369 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17370 pre-existing register caches.
17371 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17372 type.
17373 (convert_ascii_to_int): : Constify `from' parameter type.
17374 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17375 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17376 the needed buffer in-place.
17377 (relocate_instruction): New.
17378 * server.c (handle_query) <qSymbols>: If the target supports
17379 tracepoints, give it a chance of looking up symbols. Report
17380 support for fast tracepoints.
17381 (handle_status): Stabilize threads.
17382 (process_serial_event): Adjust.
17383 * server.h (struct fast_tracepoint_jump): Forward declare.
17384 (struct process_info) <fast_tracepoint_jumps>: New field.
17385 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17386 (decode_X_packet, decode_M_packet): Adjust.
17387 (relocate_instruction): Declare.
17388 (in_process_agent_loaded): Declare.
17389 (tracepoint_look_up_symbols): Declare.
17390 (struct fast_tpoint_collect_status): Declare.
17391 (fast_tracepoint_collecting): Declare.
17392 (force_unlock_trace_buffer): Declare.
17393 (handle_tracepoint_bkpts): Declare.
17394 (initialize_low_tracepoint)
17395 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17396 * target.h (struct target_ops) <stabilize_threads,
17397 install_fast_tracepoint_jump_pad>: New fields.
17398 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17399 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17400 [HAVE_STDINT_H]: Include stdint.h.
17401 (trace_debug_1): Rename to ...
17402 (trace_vdebug): ... this.
17403 (trace_debug): Rename to ...
17404 (trace_debug_1): ... this. Add `level' parameter.
17405 (trace_debug): New.
17406 (ATTR_USED, ATTR_NOINLINE): New.
17407 (IP_AGENT_EXPORT): New.
17408 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17409 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17410 (about_to_request_buffer_space, trace_buffer_is_full)
17411 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17412 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17413 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17414 (traceframe_write_count, traceframes_created)
17415 (trace_state_variables)
17416 New renaming defines.
17417 (struct ipa_sym_addresses): New.
17418 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17419 (symbol_list): New.
17420 (ipa_sym_addrs): New.
17421 (all_tracepoint_symbols_looked_up): New.
17422 (in_process_agent_loaded): New.
17423 (write_e_ipa_not_loaded): New.
17424 (maybe_write_ipa_not_loaded): New.
17425 (tracepoint_look_up_symbols): New.
17426 (debug_threads) [IN_PROCESS_AGENT]: New.
17427 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17428 (UNKNOWN_SIDE_EFFECTS): New.
17429 (stop_tracing): New.
17430 (flush_trace_buffer): New.
17431 (stop_tracing_bkpt): New.
17432 (flush_trace_buffer_bkpt): New.
17433 (read_inferior_integer): New.
17434 (read_inferior_uinteger): New.
17435 (read_inferior_data_pointer): New.
17436 (write_inferior_data_pointer): New.
17437 (write_inferior_integer): New.
17438 (write_inferior_uinteger): New.
17439 (struct collect_static_trace_data_action): Delete.
17440 (enum tracepoint_type): New.
17441 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17442 <actions_str, step_actions, step_actions_str>: Only include in
17443 GDBserver.
fa593d66
PA
17444 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17445 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17446 (tracepoints): Use IP_AGENT_EXPORT.
17447 (last_tracepoint): Don't include in the IPA.
17448 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17449 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17450 (alloced_trace_state_variables): New.
17451 (trace_state_variables): Use IP_AGENT_EXPORT.
17452 (traceframe_t): Delete unused variable.
17453 (circular_trace_buffer): Don't include in the IPA.
17454 (trace_buffer_start): Delete.
17455 (struct trace_buffer_control): New.
17456 (trace_buffer_free): Delete.
17457 (struct ipa_trace_buffer_control): New.
17458 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17459 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17460 New.
17461 (trace_buffer_ctrl): New.
17462 (TRACE_BUFFER_CTRL_CURR): New.
17463 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17464 Reimplement as macros.
17465 (trace_buffer_wrap): Delete.
17466 (traceframe_write_count, traceframe_read_count)
17467 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17468 (struct tracepoint_hit_ctx) <type>: New field.
17469 (struct fast_tracepoint_ctx): New.
17470 (memory_barrier): New.
17471 (cmpxchg): New.
17472 (record_tracepoint_error): Update atomically in the IPA.
17473 (clear_inferior_trace_buffer): New.
17474 (about_to_request_buffer_space): New.
17475 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17476 updating the same buffer.
17477 (add_tracepoint): Default the tracepoint's type to trap
17478 tracepoint, and orig_size to -1.
17479 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17480 internal variables.
17481 (create_trace_state_variable): New parameter `gdb'. Handle it.
17482 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17483 (cmd_qtdp): Handle fast tracepoints.
17484 (cmd_qtdv): Adjust.
17485 (max_jump_pad_size): New.
17486 (gdb_jump_pad_head): New.
17487 (get_jump_space_head): New.
17488 (claim_jump_space): New.
17489 (sort_tracepoints): New.
17490 (MAX_JUMP_SIZE): New.
17491 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17492 IPA.
17493 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17494 support. Upload fast traceframes, and delete internal IPA
17495 breakpoints.
17496 (stop_tracing_handler): New.
17497 (flush_trace_buffer_handler): New.
17498 (cmd_qtstop): Upload fast tracepoints.
17499 (response_tracepoint): Handle fast tracepoints.
17500 (tracepoint_finished_step): Upload fast traceframes. Set the
17501 tracepoint hit context's tracepoint type.
17502 (handle_tracepoint_bkpts): New.
17503 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17504 type. Add comment about fast tracepoints.
17505 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17506 non-existing action_str field.
17507 (get_context_regcache): Handle fast tracepoints.
17508 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17509 to the regcache.
17510 (fast_tracepoint_from_jump_pad_address): New.
17511 (fast_tracepoint_from_ipa_tpoint_address): New.
17512 (collecting_t): New.
17513 (force_unlock_trace_buffer): New.
17514 (fast_tracepoint_collecting): New.
17515 (collecting): New.
17516 (gdb_collect): New.
17517 (write_inferior_data_ptr): New.
17518 (target_tp_heap): New.
17519 (target_malloc): New.
17520 (download_agent_expr): New.
17521 (UALIGN): New.
17522 (download_tracepoints): New.
17523 (download_trace_state_variables): New.
17524 (upload_fast_traceframes): New.
17525 (IPA_FIRST_TRACEFRAME): New.
17526 (IPA_NEXT_TRACEFRAME_1): New.
17527 (IPA_NEXT_TRACEFRAME): New.
17528 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17529 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17530 (gdb_jump_pad_buffer_end): New.
17531 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17532 (initialize_tracepoint): Adjust.
17533 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17534 buffer. Initialize the low module.
17535 * utils.c (PREFIX, TOOLNAME): New.
17536 (malloc_failure): Use PREFIX.
17537 (error): In the IPA, an error causes an exit.
17538 (fatal, warning): Use PREFIX.
17539 (internal_error): Use TOOLNAME.
17540 (NUMCELLS): Increase to 10.
17541 * configure, config.in: Regenerate.
17542
d149dd1d
PA
175432010-06-01 Pedro Alves <pedro@codesourcery.com>
17544
17545 * server.c (handle_query) <qSupported>: Do two passes over the
17546 qSupported string to avoid nesting strtok.
17547
f6528abd
JK
175482010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17549
17550 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17551 (CDEPS): New.
17552 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17553 -Wl,--dynamic-list.
17554 * configure: Regenerate.
17555 * proc-service.list: New.
17556
ca2a87a0
JK
175572010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17558
17559 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17560 New comment.
17561
363a6e9f
OS
175622010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17563
17564 * gdbreplay.c (remote_open): Check error return from socket() call by
17565 its equality to -1 not by it being negative.
17566 * remote-utils.c (remote_open): Likewise.
17567
d23b6cb1
PA
175682010-05-23 Pedro Alves <pedro@codesourcery.com>
17569
17570 * config.h: Regenerate.
17571
28d3cf85
MK
175722010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17573
17574 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17575 doesn't provide PTRACE_GET_THREAD_AREA.
17576
fea36a59
MK
175772010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17578
17579 * linux-m68k-low.c: Include <asm/ptrace.h>
17580 (ps_get_thread_area): Implement.
17581
24b066ba
DE
175822010-05-03 Doug Evans <dje@google.com>
17583
17584 * event-loop.c (struct callback_event): New struct.
17585 (callback_list): New global.
17586 (append_callback_event, delete_callback_event): New functions.
17587 (process_callback): New function.
17588 (start_event_loop): Call it.
17589 * remote-utils.c (NOT_SCHEDULED): Define.
17590 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17591 moved out of readchar.
17592 (readchar): Rewrite. Call reschedule before returning.
17593 (reset_readchar): New function.
17594 (remote_close): Call it.
17595 (process_remaining, reschedule): New functions.
17596 * server.h (callback_handler_func): New typedef.
17597 (append_callback_event, delete_callback_event): Declare.
17598
9836d6ea
PA
175992010-05-03 Pedro Alves <pedro@codesourcery.com>
17600
17601 * proc-service.c (ps_pglobal_lookup): Use
17602 thread_db_look_up_one_symbol.
17603 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17604 parameter. Use it instead of all_symbols_looked_up.
17605 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17606 field.
17607 (all_symbols_looked_up): Don't declare.
17608 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17609 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17610 field.
17611 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17612 Set all_symbols_looked_up here.
17613 (thread_db_look_up_one_symbol): New.
17614 (thread_db_get_tls_address): Adjust.
17615 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17616 thread_db object on the heap, and tentatively set it in the
17617 process structure.
17618 (thread_db_init): Don't set all_symbols_looked_up here.
17619 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17620
7984d532
PA
176212010-05-03 Pedro Alves <pedro@codesourcery.com>
17622
17623 * linux-low.c (linux_kill, linux_detach): Adjust.
17624 (status_pending_p_callback): Remove redundant statement. Check
17625 for !TARGET_WAITIKIND_IGNORE, instead of
17626 TARGET_WAITKIND_STOPPED.
17627 (handle_tracepoints): Make sure LWP is locked. Adjust.
17628 (linux_wait_for_event_1): Adjust.
17629 (linux_cancel_breakpoints): New.
17630 (unsuspend_one_lwp): New.
17631 (unsuspend_all_lwps): New.
17632 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17633 (send_sigstop_callback): Change return type to int, add new
17634 `except' parameter and handle it.
17635 (suspend_and_send_sigstop_callback): New.
17636 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17637 pass them down. If SUSPEND, also increment the lwp's suspend
17638 count.
17639 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17640 (need_step_over_p): Don't consider suspended LWPs.
17641 (start_step_over): Adjust.
17642 (proceed_one_lwp): Change return type to int, add new `except'
17643 parameter and handle it.
17644 (unsuspend_and_proceed_one_lwp): New.
17645 (proceed_all_lwps): Use find_inferior instead of
17646 for_each_inferior.
17647 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17648 also decrement the suspend count of LWPs. Pass `except' down,
17649 instead of hacking its suspend count.
17650 (linux_pause_all): Add `freeze' parameter. Adjust.
17651 (linux_unpause_all): New.
17652 (linux_target_ops): Install linux_unpause_all.
17653 * server.c (handle_status): Adjust.
17654 * target.h (struct target_ops): New fields `unpause_all' and
17655 `cancel_breakpoints'. Add new parameter to `pause_all'.
17656 (pause_all): Add new `freeze' parameter.
17657 (unpause_all): New.
17658 (cancel_breakpoints): New.
17659 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17660 cancel breakpoints.
17661 (cmd_qtstart): Pause threads.
17662 (stop_tracing): Pause threads, and cancel breakpoints.
17663 * win32-low.c (win32_target_ops): Adjust.
17664
e471f25b
PA
176652010-05-03 Pedro Alves <pedro@codesourcery.com>
17666
17667 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17668 the inferior right away from here...
17669 (linux_wait_1): ... to here, and adjust to check the thread's
17670 last_resume_kind instead of the lwp's step or stop_expected flags.
17671
1915ef4f
PA
176722010-05-02 Pedro Alves <pedro@codesourcery.com>
17673
17674 * README: Use consistent `GDB' and `GDBserver' spellings.
17675
f9e39928
PA
176762010-05-02 Pedro Alves <pedro@codesourcery.com>
17677
17678 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17679 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17680 (linux_detach_one_lwp): Assume the lwp is stopped.
17681 (any_thread_of): Delete.
17682 (linux_detach): Stop all lwps here. Don't blindly delete all
17683 breakpoints.
17684 (delete_lwp_callback): New.
17685 (linux_mourn): Delete all lwps of the process that is gone.
17686 (linux_wait_1): Don't delete the last lwp of the process here.
17687 * mem-break.h (mark_breakpoints_out): Declare.
17688 * mem-break.c (mark_breakpoints_out): New.
17689 (free_all_breakpoints): Use it.
17690 * server.c (handle_target_event): If the process is gone, mark
17691 breakpoints out.
17692 * thread-db.c (struct thread_db) <create_bp>: New field.
17693 (thread_db_enable_reporting): Fix prototype. Store a thread event
17694 breakpoint reference in the thread_db struct.
17695 (thread_db_load_search): Clear the thread_db object.
17696 (try_thread_db_load_1): Ditto.
17697 (switch_to_process): New.
17698 (disable_thread_event_reporting): Use it.
17699 (remove_thread_event_breakpoints): New.
17700 (thread_db_detach, thread_db_mourn): Use it.
17701
1e7fc18c
PA
177022010-05-01 Pedro Alves <pedro@codesourcery.com>
17703
17704 * linux-low.c (linux_enable_event_reporting): New.
17705 (linux_wait_for_event_1, handle_extended_wait): Use it.
17706
02fc4de7
PA
177072010-04-30 Pedro Alves <pedro@codesourcery.com>
17708
17709 * linux-low.c (linux_kill_one_lwp, linux_kill)
17710 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17711 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17712 SIGSTOP even if the LWP is stopped.
17713 (send_sigstop_callback): New.
17714 (stop_all_lwps): Use send_sigstop_callback instead.
17715 (linux_resume_one_thread): Adjust.
17716 (proceed_one_lwp): Still proceed an LWP that the client has
17717 requested to stop, if we haven't reported it as stopped yet. Make
17718 sure that LWPs the client want stopped, have a pending SIGSTOP.
17719
bc3b5632
DE
177202010-04-26 Doug Evans <dje@google.com>
17721
ae1ada35
DE
17722 * server.c (handle_general_set): Make static.
17723
bc3b5632
DE
17724 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17725 Print received char after testing for error/eof instead of before.
17726 (input_interrupt): Tweak comment.
17727
65730243
DE
177282010-04-23 Doug Evans <dje@google.com>
17729
17730 * server.c (start_inferior): Print inferior argv if --debug.
17731
a8ae7dc0
AR
177322010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17733
17734 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17735 * nto-x86-low.c: Include server.h
17736
1c07cc19
PM
177372010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17738
17739 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17740 be consistent with other sources of this directory.
17741 (init_registers_amd64): Correct name of source file of this function
17742 in the comment.
17743
e0a61e09
PM
177442010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17745
17746 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17747 64-bit executables.
17748
54709339
PM
177492010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17750
17751 * win32-i386-low.c: Add 64-bit support.
17752 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17753 (init_registers_amd64): Declare.
17754 (mappings): Add 64-bit version of array.
17755 (init_windows_x86): New function.
17756 (the_low_target): Change init_arch field to init_windows_x86.
17757
e8f0053d
PM
177582010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17759
17760 * win32-low.c: Adapt to support also 64-bit architecture.
17761 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17762 (get_image_name): Use SIZE_T type for local variable `done'.
17763 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17764 (toolhelp_get_dll_name): Idem.
17765 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17766 Use uintptr_t typecast to avoid warning.
17767 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17768 (handle_exception): Use phex_nz to avoid warning.
17769 (win32_wait): Remove unused local variable `process'.
17770
c481e77e
PM
177712010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17772
17773 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17774 `amd64-avx.o'.
17775
12ea4b69
PM
177762010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17777
17778 * configure.ac: Use `ws2_32' library for srv_mingw.
17779 * configure: Regenerate.
17780 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17781 * remote-utils.c: Likewise.
17782
f6d1620c
L
177832010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17784
17785 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17786 if __x86_64__ is defined.
17787
8e642873
PM
177882010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17789
17790 * configure: Regenerate.
17791
711e434b
PM
177922010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17793
17794 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17795 * target.h (target_ops): New get_tib_address field.
17796 * win32-low.h (win32_thread_info): Add thread_local_base field.
17797 * win32-low.c (child_add_thread): Add tlb argument.
17798 Set thread_local_base field to TLB.
17799 (get_child_debug_event): Adapt to child_add_thread change.
17800 (win32_get_tib_address): New function.
17801 (win32_target_ops): Set get_tib_address field to
17802 win32_get_tib_address.
17803 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17804
505106cd
PA
178052010-04-12 Pedro Alves <pedro@codesourcery.com>
17806
505106cd
PA
17807 * linux-low.c (linux_mourn): Also remove the process.
17808 * server.c (handle_target_event): Don't remove the process here.
17809 * nto-low.c (nto_mourn): New.
17810 (nto_target_ops): Install it.
17811 * spu-low.c (spu_mourn): New.
17812 (spu_target_ops): Install it.
17813 * win32-low.c (win32_mourn): New.
17814 (win32_target_ops): Install it.
17815
e8470a06
PA
178162010-04-12 Pedro Alves <pedro@codesourcery.com>
17817
17818 * server.h (buffer_xml_printf): Remove redundant `;'.
17819
45ba0d02
PA
178202010-04-12 Pedro Alves <pedro@codesourcery.com>
17821
17822 * regcache.c (set_register_cache): Invalidate regcaches before
17823 changing the register cache layout.
17824 (regcache_invalidate_one): Allow a NULL regcache.
17825 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17826 regcaches before changing the register cache layout or the target
17827 regsets.
17828
59e04013
L
178292010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17830
17831 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17832 variable warning on Linux/x86-64.
17833
8336d594
PA
178342010-04-11 Pedro Alves <pedro@codesourcery.com>
17835
17836 GDBserver disconnected tracing support.
17837
17838 * linux-low.c (linux_remove_process): Delete.
17839 (add_lwp): Don't set last_resume_kind here.
17840 (linux_kill): Use `mourn'.
17841 (linux_detach): Use `thread_db_detach', and `mourn'.
17842 (linux_mourn): New.
17843 (linux_attach_lwp_1): Adjust comment.
17844 (linux_attach): last_resume_kind moved the thread_info; adjust.
17845 (status_pending_p_callback): Adjust.
17846 (linux_wait_for_event_1): Adjust.
17847 (count_events_callback, select_singlestep_lwp_callback)
17848 (select_event_lwp_callback, cancel_breakpoints_callback)
17849 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17850 (proceed_one_lwp): Adjust.
17851 (linux_async): Add debug output.
17852 (linux_thread_stopped): New.
17853 (linux_pause_all): New.
17854 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17855 linux_pause_all.
17856 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17857 (thread_db_free): Delete declaration.
17858 (thread_db_detach, thread_db_mourn): Declare.
17859 * thread-db.c (thread_db_init): Use thread_db_mourn.
17860 (thread_db_free): Delete, split in two.
17861 (disable_thread_event_reporting): New.
17862 (thread_db_detach): New.
17863 (thread_db_mourn): New.
17864
17865 * server.h (struct thread_info) <last_resume_kind>: New field.
17866 <attached>: Add comment.
17867 <gdb_detached>: New field.
17868 (handler_func): Change return type to int.
17869 (handle_serial_event, handle_target_event): Ditto.
17870 (gdb_connected): Declare.
17871 (tracing): Delete.
17872 (disconnected_tracing): Declare.
17873 (stop_tracing): Declare.
17874
17875 * server.c (handle_query) <qSupported>: Report support for
17876 disconnected tracing.
17877 (queue_stop_reply_callback): Account for running threads.
17878 (gdb_wants_thread_stopped): New.
17879 (gdb_wants_all_threads_stopped): New.
17880 (gdb_reattached_process): New.
17881 (handle_status): Clear the `gdb_detached' flag of all processes.
17882 In all-stop, stop all threads.
17883 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17884 (process_serial_event): If the remote connection breaks, or if an
17885 exit was forced with "monitor exit", force an event loop exit.
17886 Handle disconnected tracing on detach.
17887 (handle_serial_event): Adjust.
17888 (handle_target_event): If GDB isn't connected, forward events back
17889 to the inferior, unless the last process exited, in which case,
17890 exit gdbserver. Adjust interface.
17891
17892 * remote-utils.c (remote_open): Don't block in accept. Instead
17893 register an event loop source on the listen socket file
17894 descriptor. Refactor bits into ...
17895 (listen_desc): ... this new global.
17896 (gdb_connected): ... this new function.
17897 (enable_async_notification): ... this new function.
17898 (handle_accept_event): ... this new function.
17899 (remote_close): Clear remote_desc.
17900
17901 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17902
17903 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17904 New fields.
17905 (mourn_inferior): Define.
17906 (target_process_qsupported): Avoid the dangling else problem.
17907 (thread_stopped): Define.
17908 (pause_all): Define.
17909 (target_waitstatus_to_string): Declare.
17910 * target.c (target_waitstatus_to_string): New.
17911
17912 * tracepoint.c (tracing): Make extern.
17913 (disconnected_tracing): New.
17914 (stop_tracing): Make extern. Handle tracing stops due to GDB
17915 disconnecting.
17916 (cmd_qtdisconnected): New.
17917 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17918 (handle_tracepoint_general_set): Handle QTDisconnected.
17919
17920 * event-loop.c (event_handler_func): Change return type to int.
17921 (process_event): Bail out if the event handler wants the event
17922 loop to stop.
17923 (handle_file_event): Ditto.
17924 (start_event_loop): Bail out if the event handler wants the event
17925 loop to stop.
17926
17927 * nto-low.c (nto_target_ops): Adjust.
17928 * spu-low.c (spu_wait): Don't remove the process here.
17929 (spu_target_ops): Adjust.
17930 * win32-low.c (win32_wait): Don't remove the process here.
17931 (win32_target_ops): Adjust.
17932
5d267c4c
PA
179332010-04-11 Pedro Alves <pedro@codesourcery.com>
17934
17935 * regcache.c (realloc_register_cache): Invalidate inferior's
17936 regcache before recreating it.
17937
623ccd72
PA
179382010-04-09 Pedro Alves <pedro@codesourcery.com>
17939
17940 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17941
219f2f23
PA
179422010-04-09 Stan Shebs <stan@codesourcery.com>
17943 Pedro Alves <pedro@codesourcery.com>
17944
17945 * server.h (LONGEST): New.
17946 (struct thread_info) <while_stepping>: New field.
17947 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17948 Declare.
17949 (initialize_tracepoint, handle_tracepoint_general_set)
17950 (handle_tracepoint_query, tracepoint_finished_step)
17951 (tracepoint_was_hit, release_while_stepping_state_list):
17952 (current_traceframe): Declare.
17953 * server.c (handle_general_set): Handle tracepoint packets.
17954 (read_memory): New.
17955 (write_memory): New.
17956 (handle_search_memory_1): Use read_memory.
17957 (handle_query): Report support for conditional tracepoints, trace
17958 state variables, and tracepoint sources. Handle tracepoint
17959 queries.
17960 (main): Initialize the tracepoints module.
17961 (process_serial_event): Handle traceframe reads/writes.
17962
17963 * linux-low.c (handle_tracepoints): New.
17964 (linux_wait_1): Call it.
17965 (linux_resume_one_lwp): Handle while-stepping.
17966 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17967 (linux_target_ops): Install them.
17968 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17969 New field.
17970 * linux-x86-low.c (x86_supports_tracepoints): New.
17971 (the_low_target). Install it.
17972
17973 * mem-break.h (delete_breakpoint): Declare.
17974 * mem-break.c (delete_breakpoint): Make external.
17975
17976 * target.h (struct target_ops): Add `supports_tracepoints',
17977 `read_pc', and `write_pc' fields.
17978 (target_supports_tracepoints): Define.
17979 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17980 (phex_nz): New.
17981
17982 * regcache.h (struct regcache) <registers_owned>: New field.
17983 (init_register_cache, regcache_cpy): Declare.
17984 (regcache_read_pc, regcache_write_pc): Declare.
17985 (register_cache_size): Declare.
17986 (supply_regblock): Declare.
17987 * regcache.c (init_register_cache): New.
17988 (new_register_cache): Use it.
17989 (regcache_cpy): New.
17990 (register_cache_size): New.
17991 (supply_regblock): New.
17992 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17993
219f2f23
PA
17994 * tracepoint.c: New.
17995
17996 * Makefile.in (OBS): Add tracepoint.o.
17997 (tracepoint.o): New rule.
17998
3a13a53b
L
179992010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18000
18001 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18002 (i386-mmx.o): New.
18003 (i386-mmx.c): Likewise.
18004 (i386-mmx-linux.o): Likewise.
18005 (i386-mmx-linux.c): Likewise.
18006
18007 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18008 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18009 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18010 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18011
18012 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18013 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18014 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18015
1570b33e
L
180162010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18017
18018 * Makefile.in (clean): Updated.
18019 (i386-avx.o): New.
18020 (i386-avx.c): Likewise.
18021 (i386-avx-linux.o): Likewise.
18022 (i386-avx-linux.c): Likewise.
18023 (amd64-avx.o): Likewise.
18024 (amd64-avx.c): Likewise.
18025 (amd64-avx-linux.o): Likewise.
18026 (amd64-avx-linux.c): Likewise.
18027
18028 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18029 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18030 (srv_amd64_regobj): Add amd64-avx.o.
18031 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18032 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18033 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18034 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18035 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18036 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18037 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18038
18039 * i387-fp.c: Include "i386-xstate.h".
18040 (i387_xsave): New.
18041 (i387_cache_to_xsave): Likewise.
18042 (i387_xsave_to_cache): Likewise.
18043 (x86_xcr0): Likewise.
18044
18045 * i387-fp.h (i387_cache_to_xsave): Likewise.
18046 (i387_xsave_to_cache): Likewise.
18047 (x86_xcr0): Likewise.
18048
18049 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18050 * linux-crisv32-low.c (target_regsets): Likewise.
18051 * linux-m68k-low.c (target_regsets): Likewise.
18052 * linux-mips-low.c (target_regsets): Likewise.
18053 * linux-ppc-low.c (target_regsets): Likewise.
18054 * linux-s390-low.c (target_regsets): Likewise.
18055 * linux-sh-low.c (target_regsets): Likewise.
18056 * linux-sparc-low.c (target_regsets): Likewise.
18057 * linux-xtensa-low.c (target_regsets): Likewise.
18058
18059 * linux-low.c: Include <sys/uio.h>.
18060 (regsets_fetch_inferior_registers): Support nt_type.
18061 (regsets_store_inferior_registers): Likewise.
18062 (linux_process_qsupported): New.
18063 (linux_target_ops): Add linux_process_qsupported.
18064
18065 * linux-low.h (regset_info): Add nt_type.
18066 (linux_target_ops): Add process_qsupported.
18067
18068 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18069 and <sys/uio.h>.
18070 (init_registers_i386_avx_linux): New.
18071 (init_registers_amd64_avx_linux): Likewise.
18072 (xmltarget_i386_linux_no_xml): Likewise.
18073 (xmltarget_amd64_linux_no_xml): Likewise.
18074 (PTRACE_GETREGSET): Likewise.
18075 (PTRACE_SETREGSET): Likewise.
18076 (x86_fill_xstateregset): Likewise.
18077 (x86_store_xstateregset): Likewise.
18078 (use_xml): Likewise.
18079 (x86_linux_update_xmltarget): Likewise.
18080 (x86_linux_process_qsupported): Likewise.
18081 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18082 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18083 init_registers_i386_linux here. Call
18084 x86_linux_update_xmltarget.
18085 (the_low_target): Add x86_linux_process_qsupported.
18086
18087 * server.c (handle_query): Call target_process_qsupported.
18088
18089 * target.h (target_ops): Add process_qsupported.
18090 (target_process_qsupported): New.
18091
fc7238bb
PA
180922010-04-03 Pedro Alves <pedro@codesourcery.com>
18093
18094 * inferiors.c (add_thread): Set last_status kind to
18095 TARGET_WAITKIND_IGNORE.
18096 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18097 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18098 (linux_wait_1): Move `thread' local definition to block that uses
18099 it. Don't NULL initialize `event_child'.
18100 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18101 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18102 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18103
bdabb078
PA
181042010-04-01 Pedro Alves <pedro@codesourcery.com>
18105
18106 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18107 an extended waitstatus, or by a watchpoint.
18108 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18109 thread was stepping or has been stopped by a watchpoint.
18110
d3bbe7a0
PA
181112010-04-01 Pedro Alves <pedro@codesourcery.com>
18112
18113 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18114 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18115 of another, then delete the previous, and validate all
18116 breakpoints.
18117 (validate_inserted_breakpoint): New.
18118 (delete_disabled_breakpoints): New.
18119 (validate_breakpoints): New.
18120 (check_mem_read): Validate breakpoints before trusting their
18121 shadow. Delete disabled breakpoints.
18122 (check_mem_write): Validate breakpoints before trusting they
18123 should be inserted. Delete disabled breakpoints.
18124 * mem-break.h (validate_breakpoints):
18125 * server.c (handle_query): Validate breakpoints when we see a
18126 qSymbol query.
18127
8b07ae33
PA
181282010-04-01 Pedro Alves <pedro@codesourcery.com>
18129
18130 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18131 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18132 if we could tell there's a GDB breakpoint at stop_pc.
18133 (need_step_over_p): Don't do a step over if we find a GDB
18134 breakpoint at the resume PC.
18135
18136 * mem-break.c (struct raw_breakpoint): New.
18137 (enum bkpt_type): New type `gdb_breakpoint'.
18138 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18139 fields. New field `raw'.
18140 (find_raw_breakpoint_at): New.
18141 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18142 breakpoint instead.
18143 (set_breakpoint_at): Adjust.
18144 (delete_raw_breakpoint): New.
18145 (release_breakpoint): New.
18146 (delete_breakpoint): Rename to...
18147 (delete_breakpoint_1): ... this. Add proc parameter. Use
18148 release_breakpoint. Return ENOENT.
18149 (delete_breakpoint): Reimplement.
18150 (find_breakpoint_at): Delete.
18151 (find_gdb_breakpoint_at): New.
18152 (delete_breakpoint_at): Delete.
18153 (set_gdb_breakpoint_at): New.
18154 (delete_gdb_breakpoint_at): New.
18155 (gdb_breakpoint_here): New.
18156 (set_reinsert_breakpoint): Use release_breakpoint.
18157 (uninsert_breakpoint): Rename to ...
18158 (uninsert_raw_breakpoint): ... this.
18159 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18160 (reinsert_raw_breakpoint): Change parameter type to
18161 raw_breakpoint.
18162 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18163 instead.
18164 (check_breakpoints): Adjust. Use release_breakpoint.
18165 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18166 (breakpoint_inserted_here): Ditto.
18167 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18168 Don't trust the breakpoint's shadow if it is not inserted.
18169 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18170 (delete_all_breakpoints): Adjust.
18171 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18172 use delete_breakpoint_1.
18173
18174 * mem-break.h (breakpoints_supported): Delete declaration.
18175 (set_gdb_breakpoint_at): Declare.
18176 (gdb_breakpoint_here): Declare.
18177 (delete_breakpoint_at): Delete.
18178 (delete_gdb_breakpoint_at): Declare.
18179
18180 * server.h (struct raw_breakpoint): Forward declare.
18181 (struct process_info): New field `raw_breakpoints'.
18182
18183 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18184 breakpoints.
18185
6bf5e0ba
PA
181862010-03-24 Pedro Alves <pedro@codesourcery.com>
18187
18188 * linux-low.c (status_pending_p_callback): Fix comment.
18189 (linux_wait_for_event_1): Move most of the internal breakpoint
18190 handling from here...
18191 (linux_wait_1): ... to here.
18192 (count_events_callback): New.
18193 (select_singlestep_lwp_callback): New.
18194 (select_event_lwp_callback): New.
18195 (cancel_breakpoints_callback): New.
18196 (select_event_lwp): New.
18197 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18198 priority to all LWPs that have had events that should be reported
18199 to the client. Cancel breakpoints when about to reporting the
18200 event to the client, not while stopping lwps. No longer cancel
18201 finished single-steps here.
18202 (cancel_finished_single_step): Delete.
18203 (cancel_finished_single_steps): Delete.
18204
414a389f
PA
182052010-03-24 Pedro Alves <pedro@codesourcery.com>
18206
18207 * mem-break.c (enum bkpt_type): New.
18208 (struct breakpoint): New field `type'.
18209 (set_breakpoint_at): Change return type to struct breakpoint
18210 pointer. Set type to `other_breakpoint' by default.
18211 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18212 in the breakpoint list.
18213 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18214 (reinsert_breakpoint): Rename to ...
18215 (reinsert_raw_breakpoint): ... this.
18216 (reinsert_breakpoints_at): Adjust.
18217 * mem-break.h (struct breakpoint): Declare.
18218 (set_breakpoint_at): Change return type to struct breakpoint
18219 pointer.
18220
2280c721
PA
182212010-03-24 Pedro Alves <pedro@codesourcery.com>
18222
18223 * server.c (handle_query): Assign, not compare.
18224
d50171e4
PA
182252010-03-24 Pedro Alves <pedro@codesourcery.com>
18226
18227 Teach linux gdbserver to step-over-breakpoints.
18228
18229 * linux-low.c (can_hardware_single_step): New.
18230 (supports_breakpoints): New.
18231 (handle_extended_wait): If stopping threads, read the stop pc of
18232 the new cloned LWP.
18233 (get_pc): New.
18234 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18235 low target doesn't support retrieving the PC.
18236 (add_lwp): Set last_resume_kind to resume_continue.
18237 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18238 (linux_attach): Don't clear stop_expected. Set the lwp's
18239 last_resume_kind to resume_stop.
18240 (linux_detach_one_lwp): Don't check for removed breakpoints.
18241 (check_removed_breakpoint): Delete.
18242 (status_pending_p): Rename to ...
18243 (status_pending_p_callback): ... this. Don't check for removed
18244 breakpoints. Don't consider threads that are stopped from GDB's
18245 perspective.
18246 (linux_wait_for_lwp): Always read the stop_pc here.
18247 (cancel_breakpoint): New.
18248 (step_over_bkpt): New global.
18249 (linux_wait_for_event_1): Implement stepping over breakpoints.
18250 (gdb_wants_lwp_stopped): New.
18251 (gdb_wants_all_stopped): New.
18252 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18253 single-step traps here. Store the thread's last reported target
18254 wait status.
18255 (send_sigstop): Don't clear stop_expected. Always set it,
18256 instead.
18257 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18258 (cancel_finished_single_step): New.
18259 (cancel_finished_single_steps): New.
18260 (wait_for_sigstop): Don't cancel finished single-step traps here.
18261 (linux_resume_one_lwp): Don't check for removed breakpoints.
18262 Don't set `step' on non-hardware step archs.
18263 (linux_set_resume_request): Ignore resume_stop requests if already
18264 stopping or stopped. Set the lwp's last_resume_kind.
18265 (resume_status_pending_p): Don't check for removed breakpoints.
18266 (need_step_over_p): New.
18267 (start_step_over): New.
18268 (finish_step_over): New.
18269 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18270 requests. Clear the thread's last reported target waitstatus.
18271 Don't use the `suspended' flag. Don't consider pending breakpoints.
18272 (linux_resume): Start a step-over if necessary.
18273 (proceed_one_lwp): New.
18274 (proceed_all_lwps): New.
18275 (unstop_all_lwps): New.
18276 * linux-low.h (struct lwp_info): Rewrite comment for the
18277 `suspended' flag. Add the `stop_pc' field. Delete the
18278 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18279 Add `'last_resume_kind' and `need_step_over' fields.
18280 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18281 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18282 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18283 (set_raw_breakpoint_at): New.
18284 (set_breakpoint_at): Rewrite to use it.
18285 (reinsert_breakpoint_handler): Delete.
18286 (set_reinsert_breakpoint): New.
18287 (reinsert_breakpoint_by_bp): Delete.
18288 (delete_reinsert_breakpoints): New.
18289 (uninsert_breakpoint): Rewrite.
18290 (uninsert_breakpoints_at): New.
18291 (reinsert_breakpoint): Rewrite.
18292 (reinsert_breakpoints_at): New.
18293 (check_breakpoints): Rewrite.
18294 (breakpoint_here): New.
18295 (breakpoint_inserted_here): New.
18296 (check_mem_read): Adjust.
18297 * mem-break.h (breakpoints_supported, breakpoint_here)
18298 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18299 (reinsert_breakpoint_by_bp): Delete declaration.
18300 (delete_reinsert_breakpoints): Declare.
18301 (reinsert_breakpoint): Delete declaration.
18302 (reinsert_breakpoints_at): Declare.
18303 (uninsert_breakpoint): Delete declaration.
18304 (uninsert_breakpoints_at): Declare.
18305 (check_breakpoints): Adjust prototype.
18306 * server.h: Adjust include order.
18307 (struct thread_info): Declare here. Add a `last_status' field.
18308
30ba68cb
MS
183092010-03-23 Michael Snyder <msnyder@vmware.com>
18310
18311 * server.c (crc32): New function.
18312 (handle_query): Add handling for 'qCRC:' request.
18313
b9a881c2
PA
183142010-03-23 Pedro Alves <pedro@codesourcery.com>
18315
18316 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18317 lwp had been stopped by a watchpoint.
18318
e92d13d5
PA
183192010-03-16 Pedro Alves <pedro@codesourcery.com>
18320
18321 * server.h (internal_error): Declare.
18322 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18323 * utils.c (internal_error): New function.
18324
64daa791
AS
183252010-03-15 Andreas Schwab <schwab@redhat.com>
18326
18327 * configure.srv: Fix typo setting srv_regobj.
18328
f52cd8cd
PA
183292010-03-15 Pedro Alves <pedro@codesourcery.com>
18330
18331 * linux-low.c (fetch_register): Avoid passing a non string literal
18332 format to `error'.
18333 (usr_store_inferior_registers): Ditto.
18334
93ae6fdc
PA
183352010-03-14 Pedro Alves <pedro@codesourcery.com>
18336
18337 * linux-low.c (linux_write_memory): Bail out early if peeking
18338 memory failed.
18339
c3adc08c
PA
183402010-03-14 Pedro Alves <pedro@codesourcery.com>
18341
18342 * linux-low.h (struct lwp_info): New fields
18343 `stopped_by_watchpoint' and `stopped_data_address'.
18344 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18345 here, and cache them in the lwp object.
18346 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18347 directly.
18348 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18349 field.
18350 (linux_stopped_by_watchpoint): Rewrite.
18351 (linux_stopped_data_address): Rewrite.
18352
bce522a2
PA
183532010-03-06 Simo Melenius <simo.melenius@iki.fi>
18354
18355 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18356 switching the current inferior, not before.
18357
90884b2b
L
183582010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18359
18360 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18361 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18362 i386-linux.c and amd64-linux.c.
18363 (reg-i386.o): Removed.
18364 (reg-i386.c): Likewise.
18365 (reg-i386-linux.o): Likewise.
18366 (reg-i386-linux.c): Likewise.
18367 (reg-x86-64.o): Likewise.
18368 (reg-x86-64.c): Likewise.
18369 (reg-x86-64-linux.o): Likewise.
18370 (reg-x86-64-linux.c): Likewise.
18371 (i386.o): New.
18372 (i386.c): Likewise.
18373 (i386-linux.o): Likewise.
18374 (i386-linux.c): Likewise.
18375 (amd64.o): Likewise.
18376 (amd64.c): Likewise.
18377 (amd64-linux.o): Likewise.
18378 (amd64-linux.c): Likewise.
18379
18380 * configure.srv (srv_i386_regobj): New.
18381 (srv_i386_linux_regobj): Likewise.
18382 (srv_amd64_regobj): Likewise.
18383 (srv_amd64_linux_regobj): Likewise.
18384 (srv_i386_32bit_xmlfiles): Likewise.
18385 (srv_i386_64bit_xmlfiles): Likewise.
18386 (srv_i386_xmlfiles): Likewise.
18387 (srv_amd64_xmlfiles): Likewise.
18388 (srv_i386_linux_xmlfiles): Likewise.
18389 (srv_amd64_linux_xmlfiles): Likewise.
18390 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18391 srv_xmlfiles to $srv_i386_xmlfiles.
18392 (i[34567]86-*-mingw32ce*): Likewise.
18393 (i[34567]86-*-mingw*): Likewise.
18394 (i[34567]86-*-nto*): Likewise.
18395 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18396 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18397 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18398 (x86_64-*-linux*): Likewise.
18399
18400 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18401 (init_registers_amd64_linux): New.
18402 (x86_arch_setup): Replace init_registers_x86_64_linux with
18403 init_registers_amd64_linux.
18404
193f13e6
MK
184052010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18406
18407 * configure.ac: Check for libdl. If it is not available link against
18408 static libthread_db.
18409 * configure: Regenerate.
18410
85d721b8
PA
184112010-02-22 Pedro Alves <pedro@codesourcery.com>
18412
18413 PR9605
18414
18415 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18416 handing a read watchpoint.
18417 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18418
6076632b
DE
184192010-02-12 Doug Evans <dje@google.com>
18420
18421 * linux-low.c (linux_supports_tracefork_flag): Document.
18422 (linux_look_up_symbols): Add comment.
18423
3327ccf7
L
184242010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18425
18426 * regcache.c (supply_register): Clear regcache if buf is NULL.
18427
0718675c 184282010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18429 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18430
18431 * inferiors.c (find_inferior): Add function documentation.
18432 (unloaded_dll): Handle the case where the unloaded dll has not
18433 been previously registered in the dll list.
18434
177321bd
DJ
184352010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18436
18437 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18438 (thumb2_breakpoint): New.
18439 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18440
2b009048
DJ
184412010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18442
18443 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18444 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18445 breakpoints.
18446
3be029c7
PA
184472010-01-21 Pedro Alves <pedro@codesourcery.com>
18448
18449 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18450
18f5de3b
JK
184512010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18452
18453 * linux-s390-low.c (s390_collect_ptrace_register)
18454 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18455
3743bb4f
DE
184562010-01-21 Doug Evans <dje@google.com>
18457
14ce3065
DE
18458 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18459 (PTRACE_ARG4_TYPE): New macro.
18460 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18461 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18462 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18463 (usr_store_inferior_registers): Ditto.
18464 (linux_read_memory, linux_write_memory): Ditto.
18465 (linux_test_for_tracefork): Ditto.
18466
3743bb4f
DE
18467 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18468 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18469
8b315be5
PA
184702010-01-21 Pedro Alves <pedro@codesourcery.com>
18471
18472 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18473 target.
18474
85492558
PA
184752010-01-21 Pedro Alves <pedro@codesourcery.com>
18476
18477 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18478 prototype to take a regcache. Adjust.
18479
442ea881
PA
184802010-01-20 Pedro Alves <pedro@codesourcery.com>
18481
18482 * regcache.h (struct thread_info): Forward declare.
18483 (struct regcache): New.
18484 (new_register_cache): Adjust prototype.
18485 (get_thread_regcache): Declare.
18486 (free_register_cache): Adjust prototype.
18487 (registers_to_string, registers_from_string): Ditto.
18488 (supply_register, supply_register_by_name, collect_register)
18489 (collect_register_as_string, collect_register_by_name): Ditto.
18490 * regcache.c (struct inferior_regcache_data): Delete.
18491 (get_regcache): Rename to ...
18492 (get_thread_regcache): ... this. Adjust. Switch inferior before
18493 fetching registers.
18494 (regcache_invalidate_one): Adjust.
18495 (regcache_invalidate): Fix prototype.
18496 (new_register_cache): Return the new register cache.
18497 (free_register_cache): Change prototype.
18498 (realloc_register_cache): Adjust.
18499 (registers_to_string): Change prototype to take a regcache. Adjust.
18500 (registers_from_string): Ditto.
18501 (register_data): Ditto.
18502 (supply_register): Ditto.
18503 (supply_register_by_name): Ditto.
18504 (collect_register): Ditto.
18505 (collect_register_as_string): Ditto.
18506 (collect_register_by_name): Ditto.
18507 * server.c (process_serial_event): Adjust.
18508 * linux-low.h (regset_fill_func, regset_store_func): Change
18509 prototype.
18510 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18511 Change prototype.
18512 * linux-low.c (get_stop_pc): Adjust.
18513 (check_removed_breakpoint): Adjust.
18514 (linux_wait_for_event): Adjust.
18515 (linux_resume_one_lwp): Adjust.
18516 (fetch_register): Add regcache parameter. Adjust.
18517 (usr_store_inferior_registers): Ditto.
18518 (regsets_fetch_inferior_registers): Ditto.
18519 (regsets_store_inferior_registers): Ditto.
18520 (linux_fetch_registers, linux_store_registers): Ditto.
18521 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18522 regcache. Adjust.
43aaf8b6
PA
18523 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18524 Ditto.
442ea881
PA
18525 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18526 prototype to take a regcache.
18527 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18528 * remote-utils.c (convert_ascii_to_int, outreg)
18529 (prepare_resume_reply): Change prototype to take a regcache.
18530 Adjust.
18531 * target.h (struct target_ops) <fetch_registers, store_registers>:
18532 Change prototype to take a regcache.
18533 (fetch_inferior_registers, store_inferior_registers): Change
18534 prototype to take a regcache. Adjust.
18535 * proc-service.c (ps_lgetregs): Adjust.
18536 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18537 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18538 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18539 take a regcache. Adjust.
18540 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18541 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18542 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18543 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18544 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18545 (cris_cannot_fetch_register):
18546 (cris_breakpoint_at): Change prototype to take a regcache.
18547 Adjust.
18548 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18549 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18550 to take a regcache. Adjust.
18551 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18552 Adjust.
18553 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18554 take a regcache. Adjust.
18555 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18556 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18557 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18558 * linux-mips-low.c (mips_get_pc):
18559 (mips_set_pc): Change prototype to take a regcache. Adjust.
18560 (mips_reinsert_addr): Adjust.
18561 (mips_collect_register): Change prototype to take a regcache.
18562 Adjust.
18563 (mips_supply_register):
18564 (mips_collect_register_32bit, mips_supply_register_32bit)
18565 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18566 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18567 * linux-ppc-low.c (ppc_supply_ptrace_register)
18568 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18569 (parse_spufs_run): Adjust.
18570 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18571 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18572 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18573 take a regcache. Adjust.
18574 * linux-s390-low.c (s390_collect_ptrace_register)
18575 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18576 (s390_set_pc): Change prototype to take a regcache. Adjust.
18577 (s390_arch_setup): Adjust.
18578 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18579 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18580 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18581 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18582 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18583 regcache. Adjust.
18584 (sparc_breakpoint_at): Adjust.
18585 * linux-xtensa-low.c (xtensa_fill_gregset):
18586 (xtensa_store_gregset):
18587 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18588 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18589 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18590 prototype to take a regcache. Adjust.
18591 * win32-arm-low.c (arm_fetch_inferior_register)
18592 (arm_store_inferior_register): Change prototype to take a
18593 regcache. Adjust.
18594 * win32-i386-low.c (i386_fetch_inferior_register)
18595 (i386_store_inferior_register): Change prototype to take a
18596 regcache. Adjust.
18597 * win32-low.c (child_fetch_inferior_registers)
18598 (child_store_inferior_registers): Change prototype to take a
18599 regcache. Adjust.
18600 (win32_wait): Adjust.
18601 (win32_fetch_inferior_registers): Change prototype to take a
18602 regcache. Adjust.
18603 (win32_store_inferior_registers): Adjust.
18604 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18605 store_inferior_register>: Change prototype to take a regcache.
18606
60c3d7b0
DE
186072010-01-20 Doug Evans <dje@google.com>
18608
18609 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18610 #ifdef.
18611 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18612 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18613
dc146f7c
VP
186142010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18615
18616 * linux-low.c (linux_core_of_thread): New.
18617 (compare_ints, show_process, list_threads): New.
18618 (linux_qxfer_osdata): Report threads and cores.
18619 (linux_target_op): Register linux_core_of_thread.
18620 * remote-utils.c (prepare_resume_reply): Report the core.
18621 (buffer_xml_printf): Support %d specifier.
18622 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18623 New.
18624 (handle_query): Handle qXfer:threads. Announce availability
18625 thereof.
18626 * target.h (struct target_ops): New field core_of_thread.
18627
7803799a
UW
186282010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18629
18630 * Makefile.in (clean): Remove new generated files.
18631 (reg-s390.o, reg-s390.c): Remove rules.
18632 (reg-s390x.o, reg-s390x.c): Likewise.
18633 (s390-linux32.o, s390-linux32.c): Add rules.
18634 (s390-linux64.o, s390-linux64.c): Likewise.
18635 (s390x-linux64.o, s390x-linux64.c): Likewise.
18636 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18637 * linux-s390-low.c: Include <elf.h>.
18638 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18639 (init_registers_s390): Remove prototype.
18640 (init_registers_s390x): Likewise.
18641 (init_registers_s390_linux32): Add prototype.
18642 (init_registers_s390_linux64): Likewise.
18643 (init_registers_s390x_linux64): Likewise.
18644 (s390_num_regs_3264): New define.
18645 (s390_regmap_3264): New global variable.
18646 (s390_cannot_fetch_register): Remove obsolete check.
18647 (s390_cannot_store_register): Likewise.
18648 (s390_collect_ptrace_register): Handle upper/lower register halves.
18649 (s390_supply_ptrace_register): Likewise.
18650 (s390_fill_gregset): Update to register number changes.
18651 (s390_get_hwcap): New routine.
18652 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18653 Install appropriate regmap and register set.
18654
6e7ffa39
JB
186552010-01-01 Joel Brobecker <brobecker@adacore.com>
18656
18657 * server.c (gdbserver_version): Update copyright year to 2010.
18658 * gdbreplay.c (gdbreplay_version): Likewise.
18659
957f3f49
DE
186602009-12-28 Doug Evans <dje@google.com>
18661
18662 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18663 elf/external.h. Include <elf.h> instead but only if necessary.
18664
ca5c370d
PA
186652009-12-28 Pedro Alves <pedro@codesourcery.com>
18666
18667 * linux-low.c (linux_remove_process): Remove `detaching'
18668 parameter. Don't release/detach from thread_db here.
18669 (linux_kill): Release/detach from thread_db here, ...
18670 (linux_detach): ... and here, before actually detaching.
18671 (linux_wait_1): ... and here, when a process exits.
18672 * thread-db.c (any_thread_of): New.
18673 (thread_db_free): Switch the current inferior to a thread of the
18674 passed in process.
18675
4ee62156
DE
186762009-12-21 Doug Evans <dje@google.com>
18677
d90e6a88
DE
18678 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18679
c5f62d5f
DE
18680 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18681 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18682 warning ifndef __NR_tkill. Move setting of errno there too.
18683 Delete unnecessary resetting of errno after syscall.
18684 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18685
10e86dd7
DE
18686 * configure.ac: Check for dladdr.
18687 * config.in: Regenerate.
18688 * configure: Regenerate.
18689 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18690 (try_thread_db_load): Update.
18691
4ee62156
DE
18692 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18693
00f515da
DE
186942009-12-18 Doug Evans <dje@google.com>
18695
e9464885
DE
18696 * event-loop.c: Include unistd.h if it exists.
18697
07d4f67e
DE
18698 * linux-low.c (my_waitpid): Move definition away from being in
18699 between linux_tracefork_child/linux_test_for_tracefork.
18700
00f515da
DE
18701 * gdb_proc_service.h (psaddr_t): Fix type.
18702 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18703 signature to match glibc.
18704
1de1badb
DE
187052009-12-16 Doug Evans <dje@google.com>
18706
18707 * linux-low.c (linux_read_memory): Fix argument to read.
18708
aeeb81d1
PA
187092009-11-26 Pedro Alves <pedro@codesourcery.com>
18710
18711 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18712 events, don't leave current_inferior pointing at null.
18713
10357975
PA
187142009-11-26 Pedro Alves <pedro@codesourcery.com>
18715
18716 * win32-low.c (LOG): Delete.
18717 (OUTMSG): Output to stderr.
18718 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18719 on compile time LOG macro.
18720 (win32_wait): Fix debug output.
18721
cf6e3471
PA
187222009-11-26 Pedro Alves <pedro@codesourcery.com>
18723
18724 * win32-low.c (win32_add_one_solib): If the dll name is
18725 "ntdll.dll", prepend the system directory to the dll path.
18726
0c85e18e
MK
187272009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18728
18729 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18730
9ac544ce 187312009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18732 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18733
18734 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18735 * configure.ac: Check for __mcoldfire__ and set
18736 gdb_cv_m68k_is_coldfire.
18737 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18738 reg-cf.o and reg-m68k.o.
18739 * configure: Regenerated.
18740
fd7dd3e6
PA
187412009-11-16 Pedro Alves <pedro@codesourcery.com>
18742
18743 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18744 Pass it to thread_db_free.
18745 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18746 proper `detaching' argument to linux_remove_process.
18747 * linux-low.h (thread_db_free): Add `detaching' parameter.
18748 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18749 to thread_db_free.
18750 (thread_db_free): Add `detaching' parameter. Only
18751 call td_ta_clear_event if detaching from process.
18752
75aa492e
MK
187532009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18754
18755 * thread-db.c (thread_db_free): Fix typo.
18756
21e1bee4
PP
187572009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18758
18759 PR gdb/10838
18760 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18761
8838b45e
NS
187622009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18763
18764 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18765 with an i686 compiler.
18766 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18767 needed.
18768 * configure: Rebuilt.
18769
8a35fb51
SL
187702009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18771
18772 PR gdb/10783
18773
18774 * server.c (handle_search_memory_1): Correct read_addr initialization
18775 in loop for searching subsequent chunks.
18776
96f15937
PP
187772009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18778
18779 * configure.ac: New --with-libthread-db option.
18780 * thread-db.c: Allow direct dependence on libthread_db.
18781 (thread_db_free): Adjust.
18782 * config.in: Regenerate.
18783 * configure: Likewise.
889bf7c5 18784
5f7d1694
PP
187852009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18786
18787 PR gdb/10757
18788 * thread-db.c (attach_thread): New function.
18789 (maybe_attach_thread): Return success/failure.
18790 (find_new_threads_callback): Adjust.
889bf7c5
PA
18791 (thread_db_find_new_threads): Loop until no new threads.
18792
88e3b899
PA
187932009-10-13 Pedro Alves <pedro@codesourcery.com>
18794
18795 * proc-service.c (ps_lgetregs): Formatting.
18796
cdbfd419
PP
187972009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18798
18799 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18800 * configure.ac: Adjust.
18801 * linux-low.h (struct process_info_private): Move members to struct
18802 thread_db.
18803 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18804 * linux-low.c (linux_remove_process): Adjust.
18805 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18806 * server.c (handle_query): Move code ...
18807 (handle_monitor_command): ... here. New function.
18808 * target.h (struct target_ops): New member.
18809 * thread-db.c (struct thread_db): New.
18810 (libthread_db_search_path): New variable.
18811 (thread_db_create_event, thread_db_enable_reporting)
18812 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18813 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18814 (try_thread_db_load_1, dladdr_to_soname): New functions.
18815 (try_thread_db_load, thread_db_load_search): New functions.
18816 (thread_db_init): Search for libthread_db.
18817 (thread_db_free): New function.
18818 (thread_db_handle_monitor_command): Likewise.
18819 * config.in: Regenerate.
18820 * configure: Regenerate.
889bf7c5 18821
4168d2d6
UW
188222009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18823
18824 * spu-low.c (spu_kill): Wait for inferior to terminate.
18825 Call clear_inferiors.
18826 (spu_detach): Call clear_inferiors.
18827
81ecdfbb
RW
188282009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18829
18830 * aclocal.m4: Regenerate.
18831 * config.in: Likewise.
18832 * configure: Likewise.
18833
0b9ff2c0
UW
188342009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18835
18836 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18837 (parse_spufs_run): New function.
18838 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18839 (ppc_breakpoint_at): Handle SPU breakpoints.
18840
efcbbd14
UW
188412009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18842
18843 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18844 (SPUFS_MAGIC): Define.
18845 (spu_enumerate_spu_ids): New function.
18846 (linux_qxfer_spu): New function.
18847 (linux_target_ops): Install linux_qxfer_spu.
18848
f4d9bade
UW
188492009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18850
18851 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18852 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18853 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18854 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18855 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18856 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18857 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18858 (init_registers_powerpc_cell32l): Add prototype.
18859 (init_registers_powerpc_cell64l): Likewise.
18860 (ppc_arch_setup): Detect Cell/B.E. architecture.
18861
96e946ca
RW
188622009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18863
18864 * Makefile.in (datarootdir): New variable.
18865
58d6951d
DJ
188662009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18867
18868 * linux-low.c (linux_write_memory): Update debugging output.
18869 * Makefile.in (clean): Add new descriptions.
18870 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18871 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18872 * configure.srv: Add new files for arm*-*-linux*.
18873 * linux-arm-low.c: Add new declarations.
18874 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18875 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18876 (HWCAP_VFPv3D16): New.
18877 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18878 instead of __IWMMXT__.
18879 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18880 (arm_arch_setup): New.
18881 (target_regsets): Remove #ifdef. Add VFP regset.
18882 (the_low_target): Use arm_arch_setup.
18883
12b42a12
DJ
188842009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18885
18886 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18887 the main thread again.
18888
ac8c974e
AR
188892009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18890
18891 Adding Neutrino gdbserver.
18892 * configure: Regenerated.
18893 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18894 * configure.srv (i[34567]86-*-nto*): New target.
18895 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18896 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18897 (nto_comctrl) [__QNX__]: New function.
18898 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18899
4424e0c3 189002009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18901
18902 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18903 srv_tgtobj.
18904
912cf4ba
PA
189052009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18906 Pedro Alves <pedro@codesourcery.com>
18907
18908 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18909 don't support CONTEXT_EXTENDED_REGISTERS.
18910 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18911 (the_low_target): Install them.
18912 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18913 failing with ERROR_PIPE_NOT_CONNECTED.
18914
aa5ca48f
DE
189152009-06-30 Doug Evans <dje@google.com>
18916 Pierre Muller <muller@ics.u-strasbg.fr>
18917
18918 Add h/w watchpoint support to x86-linux, win32-i386.
18919 * Makefile.in (SFILES): Add i386-low.c
18920 (i386_low_h): Define.
18921 (i386-low.o): Add dependencies.
18922 (linux-x86-low.o): Add i386-low.h dependency.
18923 (win32-i386-low.o): Ditto.
18924 * i386-low.c: New file.
18925 * i386-low.h: New file.
18926 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18927 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18928 * linux-low.c (linux_add_process): Initialize arch_private.
18929 (linux_remove_process): Free arch_private.
18930 (add_lwp): Initialize arch_private.
18931 (delete_lwp): Free arch_private.
18932 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18933 provided.
18934 * linux-low.h (process_info_private): New member arch_private.
18935 (lwp_info): New member arch_private.
18936 (linux_target_ops): New members new_process, new_thread,
18937 prepare_to_resume.
18938 (ptid_of): New macro.
18939 * linux-x86-low.c: Include stddef.h, i386-low.h.
18940 (arch_process_info): New struct.
18941 (arch_lwp_info): New struct.
18942 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18943 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18944 (i386_dr_low_get_status): New function.
18945 (x86_insert_point, x86_remove_point): New functions.
18946 (x86_stopped_by_watchpoint): New function.
18947 (x86_stopped_data_address): New function.
18948 (x86_linux_new_process, x86_linux_new_thread): New functions.
18949 (x86_linux_prepare_to_resume): New function.
18950 (the_low_target): Add entries for insert_point, remove_point,
18951 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18952 prepare_to_resume.
18953 * server.c (debug_hw_points): New global.
18954 (monitor_show_help): Document set debug-hw-points.
18955 (handle_query): Process "set debug-hw-points".
18956 * server.h (debug_hw_points): Declare.
18957 (paddress): Declare.
18958 * utils.c (NUMCELLS, CELLSIZE): New macros.
18959 (get_sell, xsnprintf, paddress): New functions.
18960 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18961 remove_point, stopped_by_watchpoint, stopped_data_address.
18962 * win32-i386-low.c: Include i386-low.h.
18963 (debug_reg_state): Replaces dr.
18964 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18965 (i386_dr_low_get_status): New function.
18966 (i386_insert_point, i386_remove_point): New functions.
18967 (i386_stopped_by_watchpoint): New function.
18968 (i386_stopped_data_address): New function.
18969 (i386_initial_stuff): Update.
18970 (get_thread_context,set_thread_context,i386_thread_added): Update.
18971 (the_low_target): Add entries for insert_point,
18972 remove_point, stopped_by_watchpoint, stopped_data_address.
18973 * win32-low.c (win32_insert_watchpoint): New function.
18974 (win32_remove_watchpoint): New function.
18975 (win32_stopped_by_watchpoint): New function.
18976 (win32_stopped_data_address): New function.
18977 (win32_target_ops): Add entries for insert_watchpoint,
18978 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18979 * win32-low.h (win32_target_ops): New members insert_point,
18980 remove_point, stopped_by_watchpoint, stopped_data_address.
18981
d993e290
PA
189822009-06-25 Pedro Alves <pedro@codesourcery.com>
18983
18984 * server.c (process_serial_event): Re-return unsupported, not
18985 error, if the type isn't recognized. Re-allow supporting only
18986 insert or remove packets. Also call require_running for
18987 breakpoints. Add missing break statement to default case. Tidy.
18988 * target.h (struct target_ops): Rename insert_watchpoint to
18989 insert_point, and remove_watchpoint to remove_point.
18990
18991 * linux-low.h (struct linux_target_ops): Likewise.
18992 * linux-low.c (linux_insert_watchpoint): Rename to ...
18993 (linux_insert_point): ... this. Adjust.
18994 (linux_remove_watchpoint): Rename to ...
18995 (linux_remove_point): ... this. Adjust.
18996 (linux_target_ops): Adjust.
18997 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18998 (cris_insert_point): ... this.
18999 (cris_remove_watchpoint): Rename to ...
19000 (cris_remove_point): ... this.
19001 (the_low_target): Adjust.
19002
0f54c268
PM
190032009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19004
19005 * server.c (handle_v_kill): Pass signal_pid to
19006 kill_inferior if multi_process is zero.
19007
c6314022
AR
190082009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19009
19010 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19011 * target.h (target_ops): Comment for *_watchpoint to make it clear
19012 the functions can get types '0' and '1'.
19013
4463ce24
AR
190142009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19015
19016 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19017 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19018 * regcache.c (get_regcache): Likewise.
19019 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19020 * win32-low.c (child_fetch_inferior_registers): Remove check for
19021 regno 0.
19022
cf8fd78b
PA
190232009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19024 Pedro Alves <pedro@codesourcery.com>
19025
19026 * target.h (struct target_ops) <supports_multi_process>: New
19027 callback.
19028 (target_supports_multi_process): New.
19029 * server.c (handle_query): Even if GDB reports support, only
19030 enable multi-process if the target also supports it. Report
19031 multi-process support only if the target backend supports it.
19032 * linux-low.c (linux_supports_multi_process): New function.
19033 (linux_target_ops): Install it as target_supports_multi_process
19034 callback.
19035
47c0c975
DE
190362009-05-24 Doug Evans <dje@google.com>
19037
e09875d4
DE
19038 Global renaming of find_thread_pid to find_thread_ptid.
19039 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19040 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19041 All callers updated.
19042
e27d73f6
DE
19043 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19044 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19045 directly.
19046
47c0c975
DE
19047 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19048 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19049 (linux_resume_one_lwp): Ditto.
19050
2acc282a
DE
190512009-05-23 Doug Evans <dje@google.com>
19052
19053 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19054 from struct inferior_list_entry * to struct lwp_info *.
19055 All callers updated.
19056
9f1036c1
DE
190572009-05-13 Doug Evans <dje@google.com>
19058
19059 * linux-x86-low.c: Don't include assert.h.
19060 (x86_siginfo_fixup): Use fatal, not assert.
19061 (x86_arch_setup): Fix comment.
19062
d0722149
DE
190632009-05-12 Doug Evans <dje@google.com>
19064
19065 Biarch support for i386/amd64 gdbserver.
19066 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19067 Add linux-x86-low.c.
19068 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19069 (linux-x86-low.o): Add.
19070 * linux-x86-64-low.c: Delete.
19071 * linux-i386-low.c: Delete.
19072 * linux-x86-low.c: New file.
19073 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19074 linux-x86-low.o.
19075 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19076 linux-x86-low.o.
19077 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19078 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19079 (linux_child_pid_to_exec_file): New function.
19080 (elf_64_header_p, elf_64_file_p): New functions.
19081 (siginfo_fixup): New function.
19082 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19083 give target a chance to convert layout.
19084 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19085 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19086
fdeb2a12
DE
190872009-05-07 Doug Evans <dje@google.com>
19088
19089 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19090 (regsets_store_inferior_registers): Ditto.
19091
a6dbe5df
PA
190922009-05-06 Pedro Alves <pedro@codesourcery.com>
19093
19094 PR server/10048
19095
19096 * linux-low.c (must_set_ptrace_flags): Delete.
19097 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19098 of the global.
19099 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19100 `lwp->must_set_ptrace_flags' instead.
ba42693b 19101 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19102 (linux_wait_1): ... not here.
19103
5091eb23
DE
191042009-04-30 Doug Evans <dje@google.com>
19105
9f767825
DE
19106 * inferiors.c (started_inferior_callback): New function.
19107 (attached_inferior_callback): New function.
19108 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19109 * server.c (print_started_pid, print_attached_pid): New functions.
19110 (detach_or_kill_for_exit): New function.
19111 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19112 * server.h (have_started_inferiors_p): Declare.
19113 (have_attached_inferiors_p): Declare.
19114
5091eb23
DE
19115 * inferiors.c (remove_process): Fix memory leak, free process.
19116 * linux-low.c (linux_remove_process): New function.
19117 (linux_kill): Call it instead of remove_process.
19118 (linux_detach, linux_wait_1): Ditto.
19119
155c8968
PA
191202009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19121
19122 * configure.srv: Add x86 Windows CE target.
19123
7fe519cb
UW
191242009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19125
19126 * inferiors.c (get_thread_process): Make global.
19127 * server.h (get_thread_process): Add prototype.
19128 * thread-db.c (find_one_thread): Use get_thread_process
19129 instead of current_process.
19130 (thread_db_get_tls_address): Do not crash if called when
19131 thread layer is not yet initialized.
19132
5472f405
UW
191332009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19134
19135 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19136 * spu-low.c (current_tid): Rename to ...
19137 (current_ptid): ... this.
19138 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19139 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19140 ptid_get_lwp (current_ptid) instead of current_tid.
19141 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19142 instead of current_tid. Use find_process_pid to verify pid
19143 argument is valid. Pass proper argument to remove_process.
19144 (spu_thread_alive): Compare current_ptid instead of current_tid.
19145 (spu_resume): Likewise.
19146
55ac2b99
PA
191472009-04-02 Pedro Alves <pedro@codesourcery.com>
19148
19149 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19150 variable.
19151
95954743
PA
191522009-04-01 Pedro Alves <pedro@codesourcery.com>
19153
19154 Implement the multiprocess extensions, and add linux multiprocess
19155 support.
19156
19157 * server.h (ULONGEST): Declare.
19158 (struct ptid, ptid_t): New.
19159 (minus_one_ptid, null_ptid): Declare.
19160 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19161 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19162 (struct inferior_list_entry): Change `id' type from unsigned from
19163 to ptid_t.
19164 (struct sym_cache, struct breakpoint, struct
19165 process_info_private): Forward declare.
19166 (struct process_info): Declare.
19167 (current_process): Declare.
19168 (all_processes): Declare.
19169 (initialize_inferiors): Declare.
19170 (add_thread): Adjust to use ptid_t.
19171 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19172 (add_process, remove_process, find_thread_pid): Declare.
19173 (find_inferior_id): Adjust to use ptid_t.
19174 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19175 (multi_process): Declare.
19176 (push_event): Adjust to use ptid_t.
19177 (read_ptid, write_ptid): Declare.
19178 (prepare_resume_reply): Adjust to use ptid_t.
19179 (clear_symbol_cache): Declare.
19180 * inferiors.c (all_processes): New.
19181 (null_ptid, minus_one_ptid): New.
19182 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19183 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19184 (add_thread): Change unsigned long to ptid. Remove gdb_id
19185 parameter. Adjust.
19186 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19187 (gdb_id_to_thread): Rename to ...
19188 (find_thread_pid): ... this. Change unsigned long to ptid.
19189 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19190 (loaded_dll, pull_pid_from_list): Adjust.
19191 (add_process, remove_process, find_process_pid)
19192 (get_thread_process, current_process, initialize_inferiors): New.
19193 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19194 (struct target_waitstatus) <related_pid>: Ditto.
19195 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19196 return type to int.
19197 (struct target_ops) <join>: Add `pid' argument.
19198 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19199 (struct target_ops) <wait>: Add `ptid' field. Change return type
19200 to ptid.
19201 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19202 (mywait): Add `ptid' argument. Change return type to ptid_t.
19203 (target_pid_to_str): Declare.
19204 * target.c (set_desired_inferior): Adjust to use ptids.
19205 (mywait): Add new `ptid' argument. Adjust.
19206 (target_pid_to_str): New.
19207 * mem-break.h (free_all_breakpoints): Declare.
19208 * mem-break.c (breakpoints): Delelete.
19209 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19210 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19211 to use per-process breakpoint list.
19212 (free_all_breakpoints): New.
19213 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19214 (symbol_cache, all_symbols_looked_up): Delete.
19215 (hexchars): New.
19216 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19217 read_ptid): New.
19218 (prepare_resume_reply): Change ptid argument's type from unsigned
19219 long to ptid_t. Adjust. Implement W;process and X;process.
19220 (free_sym_cache, clear_symbol_cache): New.
19221 (look_up_one_symbol): Adjust to per-process symbol cache. *
19222 * server.c (cont_thread, general_thread, step_thread): Change type
19223 to ptid_t.
19224 (attached): Delete.
19225 (multi_process): New.
19226 (last_ptid): Change type to ptid_t.
19227 (struct vstop_notif) <ptid>: Change type to ptid_t.
19228 (queue_stop_reply, push_event): Change `ptid' argument's type to
19229 ptid_t.
19230 (discard_queued_stop_replies): Add `pid' argument.
19231 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19232 changes. Don't reference the `attached' global.
19233 (attach_inferior): Adjust to mywait interface changes.
19234 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19235 features. Handle and report "multiprocess+". Handle
19236 "qAttached:PID".
19237 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19238 changes.
19239 (handle_v_kill): New.
19240 (handle_v_stopped): Adjust to use target_pid_to_str.
19241 (handle_v_requests): Allow multiple attaches and runs when
19242 multiprocess extensions are in effect. Handle "vKill".
19243 (myresume): Adjust to use ptids.
19244 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19245 (handle_status): Adjust to discard_queued_stop_replies interface
19246 change.
19247 (first_thread_of, kill_inferior_callback)
19248 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19249 (main): Call initialize_inferiors. Adjust to use ptids, killing
19250 and detaching from all inferiors. Handle multiprocess packet
19251 variants.
19252 * linux-low.h: Include gdb_proc_service.h.
19253 (struct process_info_private): New.
19254 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19255 <lwpid_of>: Use ptid_get_lwp.
19256 (get_lwp_thread): Adjust.
19257 (struct lwp_info): Add `dead' member.
19258 (find_lwp_pid): Declare.
19259 * linux-low.c (thread_db_active): Delete.
19260 (new_inferior): Adjust comment.
19261 (inferior_pid): Delete.
19262 (linux_add_process): New.
19263 (handle_extended_wait): Adjust.
19264 (add_lwp): Change unsigned long to ptid.
19265 (linux_create_inferior): Add process to processes table. Adjust
19266 to use ptids. Don't set new_inferior here.
19267 (linux_attach_lwp): Rename to ...
19268 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19269 it. Adjust to use ptids.
19270 (linux_attach_lwp): New.
19271 (linux_attach): Add process to processes table. Don't set
19272 new_inferior here.
19273 (struct counter): New.
19274 (second_thread_of_pid_p, last_thread_of_process_p): New.
19275 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19276 multiple processes.
19277 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19278 processes. Remove process from process table.
19279 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19280 to multiple processes.
19281 (any_thread_of): New.
19282 (linux_detach): Add `pid' argument, and handle it. Remove process
19283 from processes table.
19284 (linux_join): Add `pid' argument. Handle it.
19285 (linux_thread_alive): Change unsighed long argument to ptid_t.
19286 Consider dead lwps as not being alive.
19287 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19288 threads we're not interested in.
19289 (same_lwp, find_lwp_pid): New.
19290 (linux_wait_for_lwp): Change `pid' argument's type from int to
19291 ptid_t. Adjust.
19292 (linux_wait_for_event): Rename to ...
19293 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19294 from int to ptid_t. Adjust.
19295 (linux_wait_for_event): New.
19296 (linux_wait_1): Add `ptid' argument. Change return type to
19297 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19298 that exit from the process table.
19299 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19300 Adjust.
19301 (mark_lwp_dead): New.
19302 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19303 stopping all threads, mark its main lwp as dead.
19304 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19305 ptids.
19306 (fetch_register, usr_store_inferior_registers)
19307 (regsets_fetch_inferior_registers)
19308 (regsets_store_inferior_registers, linux_read_memory)
19309 (linux_write_memory): Inline `inferior_pid'.
19310 (linux_look_up_symbols): Adjust to use per-process
19311 `thread_db_active'.
19312 (linux_request_interrupt): Adjust to use ptids.
19313 (linux_read_auxv): Inline `inferior_pid'.
19314 (initialize_low): Don't reference thread_db_active.
19315 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19316 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19317 (ps_getpid): Return the pid of the current inferior.
19318 * thread-db.c (proc_handle, thread_agent): Delete.
19319 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19320 per-process data.
19321 (find_one_thread): Change argument type to ptid_t. Adjust to
19322 per-process data.
19323 (maybe_attach_thread): Adjust to per-process data and ptids.
19324 (thread_db_find_new_threads): Ditto.
19325 (thread_db_init): Ditto.
19326 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19327 processes table. Adjust to use ptids.
19328 (spu_kill, spu_detach): Adjust interface. Remove process from
19329 processes table.
19330 (spu_join, spu_thread_alive): Adjust interface.
19331 (spu_wait): Adjust interface. Remove process from processes
19332 table. Adjust to use ptids.
19333 * win32-low.c (current_inferior_tid): Delete.
19334 (current_inferior_ptid): New.
19335 (debug_event_ptid): New.
19336 (thread_rec): Take a ptid. Adjust.
19337 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19338 (child_delete_thread): Ditto.
19339 (do_initial_child_stuff): Add `attached' argument. Add process to
19340 processes table.
19341 (child_fetch_inferior_registers, child_store_inferior_registers):
19342 Adjust.
19343 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19344 (win32_attach): Pass 1 to do_initial_child_stuff.
19345 (win32_kill): Adjust interface. Remove process from processes
19346 table.
19347 (win32_detach): Ditto.
19348 (win32_join): Adjust interface.
19349 (win32_thread_alive): Take a ptid.
19350 (win32_resume): Adjust to use ptids.
19351 (get_child_debug_event): Ditto.
19352 (win32_wait): Adjust interface. Remove exiting process from
19353 processes table.
19354
bd99dc85
PA
193552009-04-01 Pedro Alves <pedro@codesourcery.com>
19356
19357 Non-stop mode support.
19358
19359 * server.h (non_stop): Declare.
19360 (gdb_client_data, handler_func): Declare.
19361 (delete_file_handler, add_file_handler, start_event_loop):
19362 Declare.
19363 (handle_serial_event, handle_target_event, push_event)
19364 (putpkt_notif): Declare.
19365 * target.h (enum resume_kind): New.
19366 (struct thread_resume): Replace `step' field by `kind' field.
19367 (TARGET_WNOHANG): Define.
19368 (struct target_ops) <wait>: Add `options' argument.
19369 <supports_non_stop, async, start_non_stop>: New fields.
19370 (target_supports_non_stop, target_async): New.
19371 (start_non_stop): Declare.
19372 (mywait): Add `options' argument.
19373 * target.c (mywait): Add `options' argument. Print child exit
19374 notifications here.
19375 (start_non_stop): New.
19376 * server.c (non_stop, own_buf, mem_buf): New globals.
19377 (struct vstop_notif): New.
19378 (notif_queue): New global.
19379 (queue_stop_reply, push_event, discard_queued_stop_replies)
19380 (send_next_stop_reply): New.
19381 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19382 interface changes.
19383 (attach_inferior): In non-stop mode, don't wait for the target
19384 here.
19385 (handle_general_set): Handle QNonStop.
19386 (handle_query): When handling qC, return the current general
19387 thread, instead of the first thread of the list.
19388 (handle_query): If the backend supports non-stop mode, include
19389 QNonStop+ in the qSupported query response.
19390 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19391 and non-stop mode.
19392 (handle_v_attach, handle_v_run): Handle non-stop mode.
19393 (handle_v_stopped): New.
19394 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19395 (myresume): Adjust to use resume_kind. Handle non-stop.
19396 (queue_stop_reply_callback): New.
19397 (handle_status): Handle non-stop mode.
19398 (main): Clear non_stop flag on reconnection. Use the event-loop.
19399 Refactor serial protocol handling from here ...
19400 (process_serial_event): ... to this new function. When GDB
19401 selects any thread, select one here. In non-stop mode, wait until
19402 GDB acks all pending events before exiting.
19403 (handle_serial_event, handle_target_event): New.
19404 * remote-utils.c (remote_open): Install remote_desc in the event
19405 loop.
19406 (remote_close): Remove remote_desc from the event loop.
19407 (putpkt_binary): Rename to...
19408 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19409 (putpkt_binary): New as wrapper around putpkt_binary_1.
19410 (putpkt_notif): New.
19411 (prepare_resume_reply): In non-stop mode, don't change the
19412 general_thread.
19413 * event-loop.c: New.
19414 * Makefile.in (OBJ): Add event-loop.o.
19415 (event-loop.o): New rule.
19416
19417 * linux-low.h (pid_of): Moved here.
19418 (lwpid_of): New.
19419 (get_lwp_thread): Use lwpid_of.
19420 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19421 * linux-low.c (pid_of): Delete.
19422 (inferior_pid): Use lwpid_of.
19423 (linux_event_pipe): New.
19424 (target_is_async_p): New.
19425 (delete_lwp): New.
19426 (handle_extended_wait): Use lwpid_of.
19427 (add_lwp): Don't set lwpid field.
19428 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19429 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19430 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19431 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19432 first. Adjust to linux_wait_for_event interface changes. Use
19433 lwpid_of.
19434 (linux_detach): Don't delete the main lwp here.
19435 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19436 (status_pending_p): Don't consider explicitly suspended lwps.
19437 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19438 pointer. Add OPTIONS argument. Change return type to int. Use
19439 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19440 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19441 pointer. Add status pointer argument. Return a pid instead of a
19442 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19443 changes. In non-stop mode, don't switch to a random thread.
19444 (linux_wait): Rename to...
19445 (linux_wait_1): ... this. Add target_options argument, and handle
19446 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19447 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19448 clean exit and signal exit code. Don't stop all threads in
19449 non-stop mode. In all-stop mode, only stop all threads when
19450 reporting a stop to GDB. Handle explicit thread stop requests.
19451 (async_file_flush, async_file_mark): New.
19452 (linux_wait): New.
19453 (send_sigstop): Use lwpid_of.
19454 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19455 interface changes. In non-stop mode, don't switch to a random
19456 thread.
19457 (linux_resume_one_lwp): Use lwpid_of.
19458 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19459 (linux_resume_one_thread): ... this. Handle resume_stop. In
19460 non-stop mode, don't look for pending flag in all threads.
19461 (resume_status_pending_p): Don't consider explicitly suspended
19462 threads.
19463 (my_waitpid): Reimplement. Emulate __WALL.
19464 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19465 Use lwpid_of.
19466 (sigchld_handler, linux_supports_non_stop, linux_async)
19467 (linux_start_non_stop): New.
19468 (linux_target_ops): Register linux_supports_non_stop, linux_async
19469 and linux_start_non_stop.
19470 (initialize_low): Install SIGCHLD handler.
19471 * thread-db.c (thread_db_create_event, find_one_thread)
19472 (thread_db_get_tls_address): Use lwpid_of.
19473 * win32-low.c (win32_detach): Adjust to use resume_kind.
19474 (win32_wait): Add `options' argument.
19475 * spu-low.c (spu_resume): Adjust to use resume_kind.
19476 (spu_wait): Add `options' argument.
19477
5b1c542e
PA
194782009-04-01 Pedro Alves <pedro@codesourcery.com>
19479
19480 Decouple target code from remote protocol.
19481
19482 * target.h (enum target_waitkind): New.
19483 (struct target_waitstatus): New.
19484 (struct target_ops) <wait>: Return an unsigned long. Take a
19485 target_waitstatus pointer instead of a char pointer.
19486 (mywait): Likewise.
19487 * target.c (mywait): Change prototype to return an unsigned long.
19488 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19489 * server.h (thread_from_wait, old_thread_from_wait): Delete
19490 declarations.
19491 (prepare_resume_reply): Change prototype to take a
19492 target_waitstatus.
19493 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19494 (last_status, last_ptid): New.
19495 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19496 pid instead of a signal.
19497 (attach_inferior): Remove "status" and "signal" parameters.
19498 Adjust.
19499 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19500 not as an address.
19501 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19502 (handle_v_requests, myresume): Remove "status" and "signal"
19503 parameters. Adjust.
19504 (handle_status): New.
19505 (main): Delete local `status'. Adjust.
19506 * remote-utils.c: Include target.h.
19507 (prepare_resume_reply): Change prototype to take a
19508 target_waitstatus. Adjust.
19509
19510 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19511 interface.
19512 * spu-low.c (spu_wait): Adjust.
19513 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19514 Delete.
19515 (win32_wait): Adjust.
19516
2bd7c093
PA
195172009-04-01 Pedro Alves <pedro@codesourcery.com>
19518
19519 * target.h (struct thread_resume): Delete leave_stopped member.
19520 (struct target_ops): Add a `n' argument to the `resume' callback.
19521 * server.c (start_inferior): Adjust.
19522 (handle_v_cont, myresume): Adjust.
19523 * linux-low.c (check_removed_breakpoint): Adjust to resume
19524 interface change, and to removed leave_stopped field.
19525 (resume_ptr): Delete.
19526 (struct thread_resume_array): New.
19527 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19528 resume interface change.
19529 (linux_continue_one_thread, linux_queue_one_thread)
19530 (resume_status_pending_p): Check if the resume field is NULL
19531 instead of checking the leave_stopped member.
19532 (linux_resume): Adjust to the target resume interface change.
19533 * spu-low.c (spu_resume): Adjust to the target resume interface
19534 change.
19535 * win32-low.c (win32_detach, win32_resume): Ditto.
19536
c35fafde
PA
195372009-04-01 Pedro Alves <pedro@codesourcery.com>
19538
19539 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19540 flag.
19541 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19542 pending.
19543 (linux_continue_one_thread): Only preserve the stepping flag if
19544 there's a pending breakpoint.
19545
0a59d50b
PA
195462009-03-31 Pedro Alves <pedro@codesourcery.com>
19547
19548 * server.c (main): After the inferior having exited, call
19549 remote_close before exiting gdbserver.
19550
f04c6d38
TJB
195512009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19552
19553 Fix size of FPSCR in Power 7 processors.
19554 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19555 (PPC_FEATURE_HAS_DFP): New #define.
19556 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19557 size of the FPSCR.
19558
78e5cee6
PA
195592009-03-23 Pedro Alves <pedro@codesourcery.com>
19560
19561 * server.c (handle_query) Whitespace and formatting.
19562
1b3f6016
PA
195632009-03-22 Pedro Alves <pedro@codesourcery.com>
19564
19565 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19566 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19567 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19568 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19569 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19570 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19571 Makefile.in, configure.ac: Fix whitespace throughout.
19572 * configure: Regenerate.
19573
a07b2135
PA
195742009-03-22 Pedro Alves <pedro@codesourcery.com>
19575
19576 * inferiors.c (find_inferior): Make it safe for the callback
19577 function to delete the currently iterated inferior.
19578
67cc2626
PA
195792009-03-22 Pedro Alves <pedro@codesourcery.com>
19580
19581 * Makefile.in (linuw_low_h): Move higher.
19582 (thread-db.o): Depend on $(linux_low_h).
19583
54a0b537
PA
195842009-03-17 Pedro Alves <pedro@codesourcery.com>
19585
19586 Rename "process" to "lwp" throughout.
19587
19588 * linux-low.c (all_processes): Rename to...
19589 (all_lwps): ... this.
19590 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19591 (add_process): Rename to ...
19592 (add_lwp): ... this. Adjust.
19593 (linux_create_inferior): Adjust.
19594 (linux_attach_lwp): Adjust.
19595 (linux_attach): Adjust.
19596 (linux_kill_one_process): Rename to ...
19597 (linux_kill_one_lwp): ... this. Adjust.
19598 (linux_kill): Adjust.
19599 (linux_detach_one_process): Rename to ...
19600 (linux_detach_one_lwp): ... this. Adjust.
19601 (linux_detach): Adjust.
19602 (check_removed_breakpoint): Adjust.
19603 (status_pending_p): Adjust.
19604 (linux_wait_for_process): Rename to ...
19605 (linux_wait_for_lwp): ... this. Adjust.
19606 (linux_wait_for_event): Adjust.
19607 (send_sigstop): Adjust.
19608 (wait_for_sigstop): Adjust.
19609 (stop_all_processes): Rename to ...
19610 (stop_all_lwps): ... this.
19611 (linux_resume_one_process): Rename to ...
19612 (linux_resume_one_lwp): ... this. Adjust.
19613 (linux_set_resume_request, linux_continue_one_thread)
19614 (linux_queue_one_thread, resume_status_pending_p)
19615 (usr_store_inferior_registers, regsets_store_inferior_registers)
19616 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19617 Adjust.
19618 * linux-low.h (get_process): Rename to ...
19619 (get_lwp): ... this. Adjust.
19620 (get_thread_process): Rename to ...
19621 (get_thread_lwp): ... this. Adjust.
19622 (get_process_thread): Rename to ...
19623 (get_lwp_thread): ... this. Adjust.
19624 (struct process_info): Rename to ...
19625 (struct lwp_info): ... this.
19626 (all_processes): Rename to ...
19627 (all_lwps): ... this.
19628 * proc-service.c (ps_lgetregs): Adjust.
19629 * thread-db.c (thread_db_create_event, find_one_thread)
19630 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19631
0b16c5cf
PA
196322009-03-14 Pedro Alves <pedro@codesourcery.com>
19633
19634 * server.c (handle_query): Handle "qAttached".
19635
32de4b9d
NS
196362009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19637
19638 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19639 GPLv3, update license URL.
19640
2aecd87f
DE
196412009-03-01 Doug Evans <dje@google.com>
19642
93efd302 19643 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19644 (server_h): Add gdb_signals.h.
19645 (signals.o): Update.
19646 * server.h (target_signal_from_host,target_signal_to_host_p)
19647 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19648
86b1f9c5
PM
196492009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19650
19651 * remote-utils.c (getpkt): Also generate remote-debug
19652 information if noack_mode is set.
19653
4aa995e1
PA
196542009-02-06 Pedro Alves <pedro@codesourcery.com>
19655
19656 * server.c (handle_query): Report qXfer:siginfo:read and
19657 qXfer:siginfo:write as supported and handle them.
19658 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19659 * linux-low.c (linux_xfer_siginfo): New.
19660 (linux_target_ops): Set it.
19661
62709adf
PA
196622009-01-26 Pedro Alves <pedro@codesourcery.com>
19663
19664 * server.c (gdbserver_usage): Mention --remote-debug.
19665 (main): Accept '--remote-debug' switch.
19666
aef93bd7
DE
196672009-01-18 Doug Evans <dje@google.com>
19668
19669 * regcache.c (new_register_cache): No need to check result of xcalloc.
19670 * server.c (handle_search_memory): Back out calls to xmalloc,
19671 result is checked and error is returned to user upon failure.
19672 (handle_query): Ditto. Add more checks for result of malloc.
19673 (handle_v_cont): Check result of malloc, report error back to
19674 user upon failure.
19675 (handle_v_run): Ditto. Call freeargv.
19676 * server.h (freeargv): Declare.
19677 * utils.c (freeargv): New fn.
19678
54363045
DE
196792009-01-15 Doug Evans <dje@google.com>
19680
f626972c
DE
19681 * gdbreplay.c (perror_with_name): Make arg const char *.
19682 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19683 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19684 * utils.c (perror_with_name): Make arg const char *.
54363045 19685
18aae699
PA
196862009-01-14 Pedro Alves <pedro@codesourcery.com>
19687
19688 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19689 when handling a EXIT_PROCESS_DEBUG_EVENT.
19690
ff703abe
JB
196912009-01-06 Joel Brobecker <brobecker@adacore.com>
19692
19693 * gdbreplay.c (gdbreplay_version): Update copyright year.
19694 * server.c (gdbserver_version): Likewise.
19695
f21cc1a2 196962009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19697
19698 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19699 (handle_extended_wait): Improve comment.
0e21c1ec 19700
bca929d3
DE
197012008-12-13 Doug Evans <dje@google.com>
19702
19703 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19704 * server.h (ATTR_MALLOC): New macro.
19705 (xmalloc,xcalloc,xstrdup): Declare.
19706 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19707 * inferiors.c: Ditto.
19708 * linux-low.c: Ditto.
19709 * mem-break.c: Ditto.
19710 * regcache.c: Ditto.
19711 * remote-utils.c: Ditto.
19712 * server.c: Ditto.
19713 * target.c: Ditto.
19714 * win32-low.c: Ditto.
19715
97438e3f
DE
197162008-12-12 Doug Evans <dje@google.com>
19717
896c7fbb
DE
19718 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19719 in debugging printf.
19720
97438e3f
DE
19721 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19722
e3b886f8
DE
197232008-12-09 Doug Evans <dje@google.com>
19724
19725 * linux-low.h (struct process_info): Delete member tid, unused.
19726 * thread-db.c (find_one_thread): Update.
19727 (maybe_attach_thread): Update.
19728
07e059b5
VP
197292008-12-02 Pedro Alves <pedro@codesourcery.com>
19730
889bf7c5
PA
19731 * target.h (struct target_ops): Add qxfer_osdata member.
19732 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19733 and dirent.h.
19734 (linux_qxfer_osdata): New functions.
19735 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19736 callback.
19737 * server.c (handle_query): Handle "qXfer:osdata:read:".
19738 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19739 (buffer_xml_printf): New functions.
19740 * server.h (struct buffer): New.
19741 (buffer_grow_str, buffer_grow_str0): New macros.
19742 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19743 (buffer_xml_printf): Declare.
07e059b5 19744
4cab47ab
DE
197452008-11-24 Doug Evans <dje@google.com>
19746
19747 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19748
f142445f
DJ
197492008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19750
19751 * server.c (handle_v_run): Always use the supplied argument list.
19752
d0107bb6 197532008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19754
d0107bb6
BW
19755 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19756 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19757
2c4ad781
TJB
197582008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19759
19760 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19761 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19762 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19763 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19764 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19765 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19766 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19767 XML target descriptions.
19768 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19769 when inferior is running on an ISA 2.05 or later processor. Add
19770 special case to return offset for full 64-bit slot of FPSCR when
19771 in 32-bits.
19772
dfb64f85
DJ
197732008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19774
19775 * Makefile.in (SFILES, clean): Added sparc64 files.
19776 (reg-sparc64.o, reg-sparc64.c): New.
19777 * configure.srv (sparc*-*-linux*): New configuration.
19778 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19779 syscall arguments for SPARC.
19780 (regsets_store_inferior_registers): Likewise.
19781 * linux-sparc-low.c: New file.
19782
66b6e1dd
DE
197832008-10-21 Doug Evans <dje@google.com>
19784
19785 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19786 (READLINE_DIR,READLINE_DEP): Delete.
19787 (INTERNAL_CFLAGS): Update.
19788 (LINTFLAGS): Update.
19789
9b710a42
PA
197902008-10-10 Pedro Alves <pedro@codesourcery.com>
19791
19792 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19793 whole argv from the last run, not just argv[0].
19794
5822d809
PA
197952008-09-08 Pedro Alves <pedro@codesourcery.com>
19796
19797 * regcache.c (new_register_cache): Return NULL if the register
19798 cache size isn't known yet.
19799 (free_register_cache): Avoid dereferencing a NULL regcache.
19800
74aac56f
DJ
198012008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19802
19803 * configure.srv: Merge MIPS and MIPS64.
19804
400b20f5
MR
198052008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19806
19807 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19808
677c5bb1
LM
198092008-08-18 Luis Machado <luisgpm@br.ibm.com>
19810
19811 * Makefile.in: Add required vsx dependencies.
19812
19813 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19814 Declare init_registers_powerpc_vsx32l.
19815 Declare init_registers_powerpc_vsx64l.
19816 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19817 (ppc_arch_setup): Check for VSX in hwcap.
19818 (ppc_fill_vsxregset): New function.
19819 (ppc_store_vsxregset): New function.
19820 Add new VSX entry in regset_info target_regsets.
19821
19822 * configure.srv: Add new VSX dependencies.
19823
a6f3e723
SL
198242008-08-12 Pedro Alves <pedro@codesourcery.com>
19825
19826 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19827 (remote_open): Set or clear transport_is_reliable.
19828 (putpkt_binary): Don't expect acks in noack mode.
19829 (getpkt): Don't send ack/nac in noack mode.
19830 * server.c (handle_general_set): Handle QStartNoAckMode.
19831 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19832 qSupported.
19833 (main): Reset noack_mode on every connection.
19834 * server.h (noack_mode): Declare.
19835
a417dc56
RW
198362008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19837
19838 * Makefile.in (GDBREPLAY_OBS): New variable.
19839 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19840
3221518c
UW
198412008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19842 Daniel Jacobowitz <dan@codesourcery.com>
19843
19844 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19845 (usr_store_inferior_registers): Likewise.
19846 (regsets_store_inferior_registers): Likewise.
19847
ec56be1b
PA
198482008-07-31 Rolf Jansen <rj@surtec.com>
19849 Pedro Alves <pedro@codesourcery.com>
19850
19851 * configure.ac: Check for memmem declaration.
19852 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19853 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19854 (disable_packet_qfThreadInfo): Unconditionally compile.
19855 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19856 * configure, config.in: Regenerate.
19857
2fe5e3ff
DE
198582008-07-28 Doug Kwan <dougkwan@google.com>
19859
19860 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19861 (linux_write_memory): Remove declaration of errno.
19862
836acd6d
UW
198632008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19864
19865 * linux-low.c (handle_extended_wait): Do not use "status"
19866 variable uninitialized.
19867
aeba519e
PA
198682008-07-07 Pedro Alves <pedro@codesourcery.com>
19869
19870 * server.c (handle_v_attach): Inhibit reporting dll changes.
19871
db42f210
PA
198722008-06-27 Pedro Alves <pedro@codesourcery.com>
19873
19874 * remote-utils.c (prepare_resume_reply): If requested, don't
19875 output "thread:TID" in the T stop reply.
19876
19877 * server.c (disable_packet_vCont, disable_packet_Tthread)
19878 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19879 (handle_query): If requested, disable support for qC, qfThreadInfo
19880 and qsThreadInfo.
19881 (handle_v_requests): If requested, disable support for vCont.
19882 (gdbserver_show_disableable): New.
19883 (main): Handle --disable-packet and --disable-packet=LIST.
19884
19885 * server.h (disable_packet_vCont, disable_packet_Tthread)
19886 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19887
8e4c5421
CD
198882008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19889
19890 * server.c (gdbserver_usage): Mention --version.
19891
6e23a804
DJ
198922008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19893
19894 * Makefile.in (gdbreplay.o): New rule.
19895
90aa6a40
JM
198962008-06-06 Joseph Myers <joseph@codesourcery.com>
19897
19898 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19899 message, not gdbserver.
19900
c16158bc 199012008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19902 Nathan Sidwell <nathan@codesourcery.com>
19903 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19904
19905 * acinclude.m4: Include ../../config/acx.m4.
19906 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19907 * configure, config.in: Regenerate.
19908 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19909 * server.c (gdbserver_version): Print PKGVERSION.
19910 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19911 (main): Adjust gdbserver_usage calls.
19912 * gdbreplay.c (version, host_name): Add declarations.
19913 (gdbreplay_version, gdbreplay_usage): New.
19914 (main): Accept --version and --help options.
19915
aeb75bf5
DJ
199162008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19917
19918 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19919 (arm_breakpoint_at): Handle Thumb.
19920 (the_low_target): Add comment.
19921
76b233dd
UW
199222008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19923
19924 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19925
08388c79
DE
199262008-05-09 Doug Evans <dje@google.com>
19927
a3c83fae
DE
19928 * server.h (decode_search_memory_packet): Declare.
19929 * remote-utils.c (decode_search_memory_packet): New fn.
19930 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19931 (handle_search_memory): New fn.
19932 (handle_query): Process qSearch:memory packets.
19933
bb9c3d36
UW
199342008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19935
19936 * regcache.c (registers_length): Remove.
19937 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19938 full register packet.
19939 * regcache.h (registers_length): Remove prototype.
19940 * server.h (PBUFSIZ): Define to 16384.
19941
7284e1be
UW
199422008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19943
19944 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19945 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19946 powerpc-64l.o, and powerpc-altivec64l.o.
19947 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19948 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19949 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19950 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19951 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19952 to srv_xmlfiles.
19953
19954 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19955 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19956 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19957 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19958 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19959 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19960 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19961 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19962 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19963 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19964 (clean): Update.
19965
19966 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19967 (init_registers_powerpc_32l): ... this new prototype.
19968 (init_registers_powerpc_32): Remove, replace by ...
19969 (init_registers_powerpc_altivec32l): ... this new prototype.
19970 (init_registers_powerpc_e500): Remove, replace by ...
19971 (init_registers_powerpc_e500l): ... this new prototype.
19972 (init_registers_ppc64): Remove, replace by ...
19973 (init_registers_powerpc_64l): ... this new prototype.
19974 (init_registers_powerpc_64): Remove, replace by ...
19975 (init_registers_powerpc_altivec64l): ... this new prototype.
19976 (ppc_num_regs): Set to 73.
19977 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19978 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19979 (ppc_cannot_store_register): Handle orig_r3 and trap.
19980 (ppc_arch_setup): Update init_registers_... calls.
19981 (ppc_fill_gregset): Handle orig_r3 and trap.
19982
19983 * inferiors.c (clear_inferiors): Reset current_inferior.
19984
fdc59709
PB
199852008-04-23 Paolo Bonzini <bonzini@gnu.org>
19986
889bf7c5
PA
19987 * acinclude.m4: Add override.m4.
19988 * configure: Regenerate.
fdc59709 19989
c9b2f845
UW
199902008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19991
19992 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19993 initial call to init_register_ppc64.
19994
550512b8
UW
199952008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19996
43aaf8b6
PA
19997 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19998 single powerpc*-*-linux* case.
550512b8
UW
19999 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20000
b6430ec3
UW
200012008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20002
20003 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20004 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20005 from reg_xmlfiles.
20006 * linux-ppc-low.c: Include <elf.h>.
20007 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20008 (ppc_hwcap): New global variable.
20009 (ppc_regmap): Remove __SPE__ #ifdef sections.
20010 (ppc_regmap_e500): New global variable.
20011 (ppc_cannot_store_register): Update __SPE__ special case.
20012 (ppc_get_hwcap): New function.
20013 (ppc_arch_setup): Use it to determine whether inferior supports
20014 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20015 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20016 Do not access registers if target does not support AltiVec.
20017 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20018 Do not access registers if target does not support SPE.
20019 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20020
52fa2412
UW
200212008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20022
20023 * linux-low.c (disabled_regsets, num_regsets): New.
20024 (use_regsets_p): Delete.
20025 (linux_wait_for_process): Clear disabled_regsets.
20026 (regsets_fetch_inferior_registers): Check and set it.
20027 (regsets_store_inferior_registers): Likewise.
20028 (linux_fetch_registers, linux_store_registers): Do not use
20029 use_regsets_p.
20030 (initialize_low): Allocate disabled_regsets.
20031
e28b3332
DJ
200322008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20033
20034 * Makefile.in (LIBOBJS): New.
20035 (OBS): Use LIBOBJS.
20036 (memmem.o): New rule.
20037 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20038 * configure: Regenerated.
20039
4536995d
UW
200402008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20041
20042 * server.c (handle_query): Never return "unsupported" for
20043 qXfer:features:read queries.
20044
221c031f
UW
200452008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20046
20047 * server.c (get_features_xml): Fix inverted condition.
20048 (handle_query): Always support qXfer:feature:read.
20049
ccd213ac
DJ
200502008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20051
20052 * server.c (wrapper_argv): New.
20053 (start_inferior): Handle wrapper_argv. If set, expect an extra
20054 trap.
20055 (gdbserver_usage): Document --wrapper.
20056 (main): Parse --wrapper.
20057
6fe305f7
UW
200582008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20059
20060 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20061 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20062 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20063 (ppc_set_pc): Likewise.
20064 (ppc_arch_setup): New function.
20065 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20066 of collect_register.
889bf7c5 20067 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20068
5b0a002e
UW
200692008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20070
20071 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20072 instead of linux-ppc64-low.o.
20073 * linux-ppc64-low.c: Remove file.
20074 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20075 (linux-ppc64-low.o): Remove rule.
20076
20077 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20078 (init_registers_powerpc_64): Likewise.
20079 (ppc_regmap): Conditionally define depending on __powerpc64__.
20080 (ppc_cannot_store_register): Do not special-case "fpscr" when
20081 compiled on __powerpc64__.
20082 (ppc_collect_ptrace_register): New function.
20083 (ppc_supply_ptrace_register): New function.
20084 (ppc_breakpoint): Change type to "unsigned int".
20085 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20086 (the_low_target): Conditionally provide initializers for the
889bf7c5 20087 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20088 collect_ptrace_register and supply_ptrace_register members.
20089
9b4b61c8
UW
200902008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20091
20092 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20093 * server.c (gdbserver_xmltarget): Define.
20094 (get_features_xml): Use it to replace "target.xml" and arch_string.
20095
20096 * configure.srv: Remove srv_xmltarget. Add XML files that were
20097 mentioned there to srv_xmlfiles instead. Remove conditional tests
20098 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20099 srv_xmlfiles and srv_regobj to include all possible choices.
20100 * configure.ac (srv_xmltarget): Remove.
20101 (srv_xmlfiles): Do not add "target.xml".
20102 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20103 checks for supplementary target information.
20104 * configure: Regenerate.
20105 * Makefile.in (XML_TARGET): Remove.
20106 (target.xml): Remove rule.
20107 (clean): Do not clean up target.xml.
20108 (.PRECIOUS): Do not mention target.xml.
20109
20110 * target.h (struct target_ops): Remove arch_string member.
20111 * linux-low.c (linux_arch_string): Remove.
20112 (linux_target_ops): Remove arch_string initializer.
20113 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20114 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20115 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20116 * spu-low.c (spu_arch_string): Remove.
20117 (spu_target_ops): Remove arch_string initializer.
20118 * win32-low.c (win32_arch_string): Remove.
20119 (win32_target_ops): Remove arch_string initializer.
20120 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20121 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20122 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20123
ee1a7ae4
UW
201242008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20125
20126 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20127 by collect_ptrace_register and supply_ptrace_register hooks.
20128 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20129 instead of checking for the_low_target.left_pad_xfer.
20130 (usr_store_inferior_registers): Use collect_ptrace_register callback
20131 instead of checking for the_low_target.left_pad_xfer.
20132
20133 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20134 (s390_supply_ptrace_register): Likewise.
20135 (s390_fill_gregset): Call s390_collect_ptrace_register.
20136 (the_low_target): Update.
20137
20138 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20139 (ppc_supply_ptrace_register): Likewise.
20140 (the_low_target): Update.
20141
20142 * linux-i386-low.c (the_low_target): Update.
20143 * linux-x86-64-low.c (the_low_target): Update.
20144
d61ddec4
UW
201452008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20146
20147 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20148 reg-s390.o and reg-s390x.o.
20149
20150 * linux-low.c (new_inferior): New global variable.
20151 (linux_create_inferior, linux_attach): Set it.
20152 (linux_wait_for_process): Call the_low_target.arch_setup after the
20153 target has stopped for the first time.
20154 (initialize_low): Do not call the_low_target.arch_setup.
20155
20156 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20157 (s390_set_pc): Likewise.
20158 (s390_arch_setup): New function.
20159 (the_low_target): Use s390_arch_setup as arch_setup routine.
20160
20161 * regcache.c (realloc_register_cache): New function.
20162 (set_register_cache): Call it for each existing regcache.
20163
d05b4ac3
UW
201642008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20165
20166 * server.h (init_registers): Remove prototype.
20167
20168 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20169 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20170 instead of init_registers ().
20171 * linux-arm-low.c (init_registers_arm): Add prototype.
20172 (init_registers_arm_with_iwmmxt): Likewise.
20173 (the_low_target): Add initializer for arch_setup field.
20174 * linux-cris-low.c (init_registers_cris): Add prototype.
20175 (the_low_target): Add initializer for arch_setup field.
20176 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20177 (the_low_target): Add initializer for arch_setup field.
20178 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20179 (the_low_target): Add initializer for arch_setup field.
20180 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20181 (the_low_target): Add initializer for arch_setup field.
20182 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20183 (the_low_target): Add initializer for arch_setup field.
20184 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20185 (the_low_target): Add initializer for arch_setup field.
20186 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20187 (init_registers_mips64_linux): Likewise.
20188 (the_low_target): Add initializer for arch_setup field.
20189 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20190 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20191 (the_low_target): Add initializer for arch_setup field.
20192 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20193 (init_registers_powerpc_64): Likewise.
20194 (the_low_target): Add initializer for arch_setup field.
20195 * linux-s390-low.c (init_registers_s390): Add prototype.
20196 (init_registers_s390x): Likewise.
20197 (the_low_target): Add initializer for arch_setup field.
20198 * linux-sh-low.c (init_registers_sh): Add prototype.
20199 (the_low_target): Add initializer for arch_setup field.
20200 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20201 (the_low_target): Add initializer for arch_setup field.
20202 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20203 (the_low_target): Add initializer for arch_setup field.
20204
20205 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20206 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20207 instead of init_registers ().
20208 * win32-arm-low.c (init_registers_arm): Add prototype.
20209 (the_low_target): Add initializer for arch_setup field.
20210 * win32-i386-low.c (init_registers_i386): Add prototype.
20211 (the_low_target): Add initializer for arch_setup field.
20212
20213 * spu-low.c (init_registers_spu): Add prototype.
20214 (initialize_low): Call initialie_registers_spu () instead of
20215 initialize_registers ().
20216
fd96d250
PA
202172008-02-19 Pedro Alves <pedro@codesourcery.com>
20218
20219 * server.c (handle_v_requests): When handling the vRun and vAttach
20220 packets, if already debugging a process, don't kill it. Return an
20221 error instead.
20222
d41b6bb4
DJ
202232008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20224
20225 * server.c (handle_query): Correct length check.
20226
5ac588cf
PA
202272008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20228
20229 * win32-low.c (do_initial_child_stuff): Add process handle
20230 parameter. Set current_process_handle and current_process_id from the
20231 parameters. Clear globals.
20232 (win32_create_inferior): Don't set current_process_handle and
20233 current_process_id here. Instead pass them on the call to
20234 do_initial_child_stuff.
20235 (win32_attach): Likewise.
20236 (win32_clear_inferiors): New.
20237 (win32_kill): Don't close the current process handle or the
20238 current thread handle here. Instead call win32_clear_inferiors.
20239 (win32_detach): Don't open a new handle to the process. Call
20240 win32_clear_inferiors.
20241 (win32_join): Don't rely on current_process_handle; open a new
20242 handle using the process id.
20243 (win32_wait): Call win32_clear_inferiors when the inferior process
20244 has exited.
20245
ecd7ecbc
DJ
202462008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20247
20248 * server.c (monitor_show_help): Add "exit".
20249
1525d545
MG
202502008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20251
ecd7ecbc 20252 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20253 (clean): Add reg-xtensa.c.
20254 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20255 * configure.srv (xtensa*-*-linux*) New target.
20256 * linux-xtensa-low.c: New.
20257 * xtensa-xtregs.c: New.
1525d545 20258
59a016f0
PA
202592008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20260
20261 * hostio.c: Don't include errno.h.
20262 (errno_to_fileio_errno): Move to hostio-errno.
20263 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20264 error number outputting to the target->hostio_last_error callback.
20265 (hostio_packet_error): Use FILEIO_EINVAL directly.
20266 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20267 calls to hostio_error.
20268 * hostio-errno.c: New.
20269 * server.h (hostio_last_error_from_errno): Declare.
20270 * target.h (target_ops): Add hostio_last_error member.
20271 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20272 as hostio_last_error handler.
889bf7c5 20273 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20274 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20275 (wince_hostio_last_error): New functions.
20276 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20277 as hostio_last_error handler.
20278 (win32_target_ops) [!_WIN32_WCE]: Register
20279 hostio_last_error_from_errno as hostio_last_error handler.
20280 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20281 (hostio-errno.o): New rule.
20282 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20283 * configure.srv (srv_hostio_err_objs): New variable. Default to
20284 hostio-errno.o.
20285 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20286 * configure: Regenerate.
20287
2d717e4f
DJ
202882008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20289
20290 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20291 (linux_kill, linux_detach): Clean up the process list.
20292 * remote-utils.c (remote_open): Improve port number parsing.
20293 (putpkt_binary, input_interrupt): Only send interrupts if the target
20294 is running.
20295 * server.c (extended_protocol): Make static.
20296 (attached): Define earlier.
20297 (exit_requested, response_needed, program_argv): New variables.
20298 (target_running): New.
20299 (start_inferior): Clear attached here.
20300 (attach_inferior): Set attached here.
20301 (require_running): Define.
20302 (handle_query): Use require_running and target_running. Implement
20303 "monitor exit".
20304 (handle_v_attach, handle_v_run): New.
20305 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20306 (gdbserver_usage): Update.
20307 (main): Redo argument parsing. Handle --debug and --multi. Handle
20308 --attach along with other options or after the port. Save
20309 program_argv. Support no initial program. Resynchronize
20310 communication with GDB after an error. Handle "monitor exit".
20311 Use require_running and target_running. Always allow the extended
20312 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20313 restart in extended mode.
20314 * README: Refer to the GDB manual. Update --attach usage.
20315
7407e2de
AS
203162007-12-20 Andreas Schwab <schwab@suse.de>
20317
20318 * linux-low.c (STACK_SIZE): Define.
20319 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20320 (linux_test_for_tracefork): Likewise.
20321
b65d95c5
DJ
203222007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20323
20324 * linux-low.c (linux_wait_for_event): Update messages. Do not
20325 reinsert auto-delete breakpoints.
20326 * mem-break.c (struct breakpoint): Change return type of handler to
20327 int.
20328 (set_breakpoint_at): Update handler type.
20329 (reinsert_breakpoint_handler): Return 1 instead of calling
20330 delete_breakpoint.
20331 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20332 setting a new one.
20333 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20334 * mem-break.h (set_breakpoint_at): Update handler type.
20335 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20336 * win32-low.c (auto_delete_breakpoint): New.
20337 (get_child_debug_event): Use it.
20338
4e799345
DJ
203392007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20340
20341 * configure.ac: Check for pread and pwrite.
20342 * hostio.c (handle_pread): Fall back to lseek and read.
20343 (handle_pwrite): Fall back to lseek and write.
20344 * config.in, configure: Regenerated.
20345
27524b67
DJ
203462007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20347
20348 * server.c (myresume): Add own_buf argument.
20349 (main): Update calls.
20350
a20d5e98
DJ
203512007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20352
20353 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20354 * remote-utils.c (remote_open): Do not call disable_async_io.
20355 (block_async_io): Delete.
20356 (unblock_async_io): Make static.
20357 (initialize_async_io): New.
20358 * server.c (handle_v_cont): Handle async I/O here.
20359 (myresume): Likewise. Move other common resume tasks here...
20360 (main): ... from here. Call initialize_async_io. Disable async
20361 I/O before the main loop.
20362 * server.h (initialize_async_io): Declare.
20363 (block_async_io, unblock_async_io): Delete prototypes.
20364 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20365
b79d787e
DJ
203662007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20367
20368 * remote-utils.c (readchar): Allow binary data in received messages.
20369
d97903b2
PA
203702007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20371
20372 * win32-low.c (attaching): New global.
20373 (win32_create_inferior): Clear the `attaching' global.
20374 (win32_attach): Set the `attaching' global.
20375 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20376 attaching. Only set a breakpoint at the entry point if not
20377 attaching.
20378
311de423
PA
203792007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20380
20381 * server.c (main): Don't report dll events on the initial
20382 connection on attaches.
20383
6c2d16d2
PA
203842007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20385
20386 * server.c (main): Relax numerical bases supported for the pid of
20387 the --attach command line argument.
20388
5ca906e6
PA
203892007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20390
20391 * win32-low.c (win32_attach): Call OpenProcess before
20392 DebugActiveProcess, not after. Add last error output to error
20393 call.
20394
9c6c8194
PA
203952007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20396
20397 * win32-low.c (win32_get_thread_context)
20398 (win32_set_thread_context): New functions.
20399 (thread_rec): Use win32_get_thread_context.
20400 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20401 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20402 field.
20403
4d5d1aaa
PA
204042007-12-03 Leo Zayas
20405 Pedro Alves <pedro_alves@portugalmail.pt>
20406
20407 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20408 global variables.
20409 (child_add_thread): Minor cleanup.
20410 (child_continue): Resume artificially suspended threads before
20411 calling ContinueDebugEvent.
20412 (suspend_one_thread): New.
20413 (fake_breakpoint_event): New.
20414 (get_child_debug_event): Change return type to int. Check here if
20415 gdb sent an interrupt request. If a soft interrupt was requested,
20416 fake a breakpoint event. Return 0 if there is no event to handle,
20417 and 1 otherwise.
20418 (win32_wait): Don't check here if gdb sent an interrupt request.
20419 Ensure there is a valid event to handle.
20420 (win32_request_interrupt): Add soft interruption method as last
20421 resort.
20422
c436e841
PA
204232007-12-03 Leo Zayas
20424 Pedro Alves <pedro_alves@portugalmail.pt>
20425
20426 * win32-low.h (win32_thread_info): Add descriptions to the
20427 structure members. Replace `suspend_count' counter by a
20428 `suspended' flag.
20429 * win32-low.c (thread_rec): Update condition of when to get the
20430 context from the inferior. Rely on ContextFlags being set if it
20431 has already been retrieved. Only suspend the inferior thread if
20432 we haven't already. Warn if that fails.
20433 (continue_one_thread): s/suspend_count/suspended/. Only call
20434 ResumeThread once. Warn if that fails.
20435
e7b5fa67
PA
204362007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20437
20438 * win32-low.c (win32_wait): Don't read from the inferior when it
20439 has already exited.
20440
a385171d
PA
204412007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20442
20443 * Makefile.in (win32_low_h): New variable.
20444 (win32-low.o): Add dependency on $(win32_low_h).
20445 (win32-arm-low.o, win32-i386-low.o): New rules.
20446
f80c84b3
DJ
204472007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20448
20449 * hostio.c: Correct copyright year.
20450
a6b151f1
DJ
204512007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20452
20453 * Makefile.in (OBS): Add hostio.o.
20454 (hostio.o): New rule.
20455 * server.h (handle_vFile): Declare.
20456 * hostio.c: New file.
20457 * server.c (handle_v_requests): Take packet_len and new_packet_len
20458 for binary packets. Call handle_vFile.
20459 (main): Update call to handle_v_requests.
20460
f9387fc3
DJ
204612007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20462
20463 * linux-low.c: Include <sched.h>.
20464
51c2684e
DJ
204652007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20466
20467 * linux-low.c (linux_tracefork_grandchild): New.
20468 (linux_tracefork_child): Use clone.
20469 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20470
75f83163
JB
204712007-10-31 Joel Brobecker <brobecker@adacore.com>
20472
20473 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20474
da5898ce
DJ
204752007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20476
20477 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20478
24a09b5f
DJ
204792007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20480
20481 * inferiors.c (change_inferior_id): Delete.
20482 (add_pid_to_list, pull_pid_from_list): New.
20483 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20484 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20485 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20486 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20487 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20488 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20489 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20490 (using_threads): Always set to 1.
20491 (handle_extended_wait): New.
20492 (add_process): Do not set TID.
20493 (linux_create_inferior): Set must_set_ptrace_flags.
20494 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20495 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20496 (linux_thread_alive): Rename TID argument to LWPID.
20497 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20498 (linux_wait_for_event): Do not use TID or check using_threads. Update
20499 call to dead_thread_notify. Call handle_extended_wait.
20500 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20501 (send_sigstop): Delete sigstop_sent.
20502 (wait_for_sigstop): Avoid TID.
20503 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20504 (linux_test_for_tracefork): New.
20505 (linux_lookup_signals): Use thread_db_active and
20506 linux_supports_tracefork_flag.
20507 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20508 * linux-low.h (get_process_thread): Avoid TID.
20509 (struct process_ifo): Move thread_known and tid to the end. Remove
20510 sigstop_sent.
20511 (linux_attach_lwp, thread_db_init): Update prototypes.
20512 * server.h (change_inferior_id): Delete prototype.
20513 (add_pid_to_list, pull_pid_from_list): New prototypes.
20514 * thread-db.c (thread_db_use_events): New.
20515 (find_first_thread): Rename to...
20516 (find_one_thread): ...this. Update callers and messages. Do not
20517 call fatal. Check thread_db_use_events. Do not call
20518 change_inferior_id or new_thread_notify.
20519 (maybe_attach_thread): Update. Do not call new_thread_notify.
20520 (thread_db_init): Set thread_db_use_events. Check use_events.
20521 * utils.c (fatal, warning): Correct message prefix.
20522
30ed0a8f
DJ
205232007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20524
20525 * Makefile.in (clean): Remove new files.
20526 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20527 (powerpc-64.o, powerpc-64.c): New rules.
20528 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20529 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20530 with SPE.
20531 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20532 SPE targets.
20533 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20534 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20535 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20536 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20537 (target_regsets): Add AltiVec and SPE register sets.
20538 * configure.ac: Check for AltiVec and SPE.
20539 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20540 (ppc_fill_vrregset, ppc_store_vrregset): New.
20541 (target_regsets): Add AltiVec register set.
20542 * configure: Regenerated.
20543
fd462a61
DJ
205442007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20545
20546 * linux-low.c (O_LARGEFILE): Define.
20547 (linux_read_memory): Use /proc/PID/mem.
20548 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20549 * configure, config.in: Regenerated.
20550
69f223ed
DJ
205512007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20552
20553 * linux-low.c (linux_wait_for_event): Do not pass signals while
20554 single-stepping.
20555
aec18585
PA
205562007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20557
20558 * win32-low.c (create_process): New.
20559 (win32_create_inferior): Use create_process instead of
20560 CreateProcess. If create_process failed retry appending an ".exe"
20561 suffix. Store the GetLastError result immediatelly after
20562 create_process calls and use it on the call to error.
20563
34d86ddd
PA
205642007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20565
20566 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20567
5a0e3bd0
JB
205682007-08-23 Joel Brobecker <brobecker@adacore.com>
20569
20570 * configure.ac: Switch license to GPLv3.
20571
f88c79e6
MS
205722007-08-01 Michael Snyder <msnyder@access-company.com>
20573
20574 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20575
6b3d9b83
PA
205762007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20577
20578 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20579 typedef.
20580 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20581 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20582 CloseToolhelp32Snapshot.
20583 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20584 CloseToolhelp32Snapshot.
20585
c588c53c
MS
205862007-07-27 Michael Snyder <michael.snyder@access-company.com>
20587
20588 * server.c (main): Check for inferior exit before main loop.
20589
aa0403d9
PA
205902007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20591
20592 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20593 instead of on tmp_desc.
20594
255e7678
DJ
205952007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20596 Daniel Jacobowitz <dan@codesourcery.com>
20597
20598 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20599 (add_thread): Minor cleanups.
20600 (clear_inferiors): Move lower in the file. Clear the DLL
20601 list.
20602 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20603 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20604 (xml_escape_text): New.
20605 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20606 for qSupported.
20607 (handle_v_cont): Report errors.
20608 (gdbserver_version): Update.
20609 (main): Correct size of own_buf. Do not report initial DLL events.
20610 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20611 (unloaded_dll, xml_escape_text): New.
20612 * win32-low.c (enum target_waitkind): Update comments.
20613 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20614 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20615 (win32_EnumProcessModules, win32_GetModuleInformation)
20616 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20617 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20618 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20619 (win32_Module32First, win32_Module32Next, load_toolhelp)
20620 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20621 (get_child_debug_event): Handle DLL events.
20622 (win32_wait): Likewise.
20623
0d37add9
DJ
206242007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20625
20626 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20627 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20628
45e2715e
PA
206292007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20630
20631 * win32-low.c (handle_output_debug_string): Ignore event if not
20632 waiting.
20633
c5674cf1
PA
206342007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20635
20636 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20637
2bbe3cc1
DJ
206382007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20639
20640 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20641
ae13219e
DJ
206422007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20643
20644 * inferiors.c (change_inferior_id): Add comment.
20645 * linux-low.c (check_removed_breakpoint): Add an early
20646 prototype. Improve debug output.
20647 (linux_attach): Doc update.
20648 (linux_detach_one_process, linux_detach): Clean up before releasing
20649 each process.
20650 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20651 * linux-low.h (struct process_info): Doc improvement.
20652 * mem-break.c (delete_all_breakpoints): New.
20653 * mem-break.h (delete_all_breakpoints): New prototype.
20654 * thread-db.c (find_first_thread): New.
20655 (thread_db_create_event): Call it instead of
20656 thread_db_find_new_threads. Clean up unused variables.
20657 (maybe_attach_thread): Remove first thread handling.
20658 (thread_db_find_new_threads): Use find_first_thread.
20659 (thread_db_get_tls_address): Likewise.
20660
4105de34
DJ
206612007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20662
20663 * thread-db.c (thread_db_find_new_threads): Add prototype.
20664 (thread_db_create_event): Check for the main thread before adding
20665 a new thread.
20666 (maybe_attach_thread): Only enable event reporting if TID == 0.
20667 (thread_db_get_tls_address): Check for new threads.
20668
2b876972
DJ
206692007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20670
20671 * linux-low.c (linux_create_inferior): Try execv before execvp.
20672 * spu-low.c (spu_create_inferior): Likewise.
20673
7a245884
DJ
206742007-06-13 Mike Frysinger <vapier@gentoo.org>
20675
20676 * linux-low.c (linux_create_inferior): Change execv to execvp.
20677 * spu-low.c (spu_create_inferior): Likewies.
20678
117ce543
DJ
206792007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20680
20681 * Makefile.in (clean): Clean new files instead of deleted ones.
20682 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20683 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20684 rules.
20685 * configure.srv: Specify XML files and new regformats for MIPS and
20686 MIPS64 GNU/Linux.
20687 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20688 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20689 an entry for the restart register.
20690 (mips_cannot_fetch_register, mips_cannot_store_register)
20691 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20692 register names to match the XML descriptions.
20693 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20694 restart register instead of $0.
20695
0e7f50da
UW
206962007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20697 Markus Deuling <deuling@de.ibm.com>
20698
20699 * remote-utils.c (decode_xfer_write): New function.
20700 * server.h (decode_xfer_write): Add prototype.
20701 * server.c (handle_query): Add PACKET_LEN argument. Support
20702 qXfer:spu:read and qXfer:spu:write packets.
20703 (main): Pass packet_len to handle_query.
20704 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20705 * target.h (target_ops): Add qxfer_spu.
20706
374c1d38
UW
207072007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20708
20709 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20710 accessing non-seekable spufs files.
20711
bb63802a
UW
207122007-05-16 Markus Deuling <deuling@de.ibm.com>
20713
889bf7c5 20714 * server.c (handle_query): Add reply for qC packet.
bb63802a 20715
7390519e
PA
207162007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20717 Leo Zayas <lerele@champenstudios@com>
20718
20719 * server.h (check_remote_input_interrupt_request): New function.
20720 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20721 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20722 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20723 (check_remote_input_interrupt_request): New function.
20724 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20725 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20726 winapi_GenerateConsoleCtrlEvent): New typedefs.
20727 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20728 to 250 ms.
20729 (win32_wait): Check for remote interrupt request
20730 with check_remote_input_interrupt_request.
20731 (win32_request_interrupt): New function.
20732 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20733
34b34921
PA
207342007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20735
20736 * win32-low.c (debug_registers_changed,
20737 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20738 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20739 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20740 (thread_rec): Get context using the low target.
20741 (child_add_thread): Call thread_added on the low target,
20742 which does the same thing.
20743 (regptr): Delete.
20744 (do_initial_child_stuff): Remove debug registers references.
20745 Set context using the low target. Resume threads after
20746 setting the contexts.
20747 (child_continue): Remove dead variable. Remove debug
20748 registers references.
20749 (child_fetch_inferior_registers): Go through the low target.
20750 (do_child_store_inferior_registers): Remove.
20751 (child_store_inferior_registers): Go through the low target.
20752 (win32_resume): Remove debug registers references.
20753 Set context using the low target.
20754 (handle_exception): Change return type to void. Don't record
20755 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20756 first chance exception.
889bf7c5 20757 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20758 goto loop. Always return after waiting for debug event.
20759 (win32_wait): Convert to switch statement. Handle spurious
20760 events.
20761
20762 * win32-i386-low.c (debug_registers_changed,
20763 debug_registers_used): New.
20764 (initial_stuff): Rename to ...
20765 (i386_initial_stuff): ... this. Clear debug registers
20766 state variables.
20767 (store_debug_registers): Delete.
20768 (i386_get_thread_context): New.
20769 (load_debug_registers): Delete.
20770 (i386_set_thread_context): New.
20771 (i386_thread_added): New.
20772 (single_step): Rename to ...
20773 (i386_single_step): ... this.
20774 (do_fetch_inferior_registers): Rename to ...
20775 (i386_fetch_inferior_register): ... this.
20776 (i386_store_inferior_register): New.
20777 (the_low_target): Adapt to new interface.
20778
20779 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20780 (arm_get_thread_context): New.
20781 (arm_set_thread_context): New.
20782 (regptr): New.
20783 (do_fetch_inferior_registers): Rename to ...
20784 (arm_fetch_inferior_register): ... this.
20785 (arm_store_inferior_register): New.
20786 (arm_wince_breakpoint): Reimplement as unsigned long.
20787 (arm_wince_breakpoint_len): Define.
20788 (the_low_target): Adapt to new interface.
20789
20790 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20791 load_debug_registers. Add get_thread_context, set_thread_context,
20792 thread_added and store_inferior_register. Rename
20793 fetch_inferior_registers to fetch_inferior_register.
20794 (regptr): Remove declaration.
20795
dd6953e1
PA
207962007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20797
20798 * linux-low.c (linux_detach): Change return type to int. Return 0.
20799 * spu-low.c (spu_detach): Likewise.
20800
444d6139
PA
208012007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20802
20803 * target.h (target_ops): Change return type of detach to int.
20804 Add join.
20805 (join_inferior): New.
20806 * server.c (main): Don't skip detach support on mingw32.
20807 If the inferior doesn't support detaching return error.
20808 Call join_inferior instead of using waitpid.
20809 * linux-low.c (linux_join): New.
20810 (linux_target_op): Add linux_join.
20811 * spu-low.c (spu_join): New.
20812 (spu_target_ops): Add spu_join.
20813 * win32-low.c (win32_detach): Adapt to new interface.
20814 Reopen current_process_handle before detaching. Issue a child
20815 resume before detaching.
20816 (win32_join): New.
20817 (win32_target_op): Add win32_join.
20818
1d5315fe
PA
208192007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20820
20821 * win32-low.c (win32-attach): Fix return value.
20822 * target.h (target_ops): Describe ATTACH return values.
20823
bf914831
PA
208242007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20825
20826 * win32-low.c (GETPROCADDRESS): Define.
20827 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20828 (winapi_DebugSetProcessKillOnExit): Likewise.
20829 (win32_create_inferior): Force usage of ansi CreateProcessA.
20830 (win32_attach): Use GETPROCADDRESS.
20831 (win32_detach): Likewise.
20832
f72f3e60
PA
208332007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20834
20835 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20836
ed50f18f
PA
208372007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20838
20839 * win32-low.c: Commit leftover changes from 2007-03-29.
20840
0c2ead7e
DJ
208412007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20842
20843 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20844 fields short instead of int. Add explicit padding.
20845 (i387_cache_to_fsave): Remove unnecessary casts.
20846 (i387_fsave_to_cache): Doc fix.
20847 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20848
73725ff3
DJ
208492007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20850
20851 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20852 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20853
d99f33d8
PA
208542007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20855
20856 * configure.srv (arm*-*-mingw32ce*): Move near the other
20857 arm targets.
20858
68070c10
PA
208592007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20860
2482afc6 20861 * configure.ac: Add errno checking.
68070c10
PA
20862 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20863 sys/file.h and malloc.h.
20864 (AC_CHECK_DECLS): Add perror.
20865 (srv_mingwce): Handle.
2482afc6 20866 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20867 win32-i386-low.o to srv_tgtobj.
20868 (i[34567]86-*-mingw*): Likewise.
20869 (arm*-*-mingw32ce*): Add case.
20870 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20871 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20872 [__MINGW32CE__] (strerror): New function.
20873 [__MINGW32CE__] (errno): Define to GetLastError.
20874 [__MINGW32CE__] (COUNTOF): New macro.
20875 (remote_open): Remove extra close call.
20876 * mem-break.c (delete_breakpoint_at): New function.
20877 * mem-break.h (delete_breakpoint_at): Declare.
20878 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20879 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20880 [USE_WIN32API] (read, write): Add char* casts.
20881 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20882 * server.h: Include wincecompat.h on Windows CE.
20883 [HAVE_ERRNO_H]: Check.
20884 (perror): Declare if not declared.
20885 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20886 (perror_with_name): Remove errno declaration.
20887 * wincecompat.h: New.
20888 * wincecompat.c: New.
20889 * win32-low.h: New.
20890 * win32-arm-low.c: New.
20891 * win32-i386-low.c: New.
20892 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20893 (OUTMSG2): Make it safe.
20894 (_T): New macro.
20895 (COUNTOF): New macro.
20896 (NUM_REGS): Get it from the low target.
20897 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20898 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20899 (thread_rec): Let low target handle debug registers.
20900 (child_add_thread): Likewise.
20901 (child_init_thread_list): Likewise.
20902 (continue_one_thread): Likewise.
20903 (regptr): New.
20904 (do_child_fetch_inferior_registers): Move to ...
20905 * win32-i386-low.c: ... here, and rename to ...
20906 (do_fetch_inferior_registers): ... this.
889bf7c5 20907 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20908 Go through the low target.
20909 (do_child_store_inferior_registers): Use regptr.
20910 (strwinerror): New function.
20911 (win32_create_inferior): Handle Windows CE.
20912 Use strwinerror instead of strerror on Windows error
20913 codes. Add program to the error output.
20914 Don't close the main thread handle on Windows CE.
20915 (win32_attach): Use coredll.dll on Windows CE.
20916 (win32_kill): Close current process and current
20917 thread handles.
20918 (win32_detach): Use coredll.dll on Windows CE.
20919 (win32_resume): Let low target handle debug registers, and
20920 step request.
20921 (handle_exception): Add/Remove initial breakpoint. Avoid
20922 non-existant WSTOPSIG on Windows CE.
20923 (win32_read_inferior_memory): Cast to remove warning.
20924 (win32_arch_string): Go through the low target.
20925 (initialize_low): Call set_breakpoint_data with the low
20926 target's breakpoint.
20927 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20928 FOP_REGNUM, mappings): Move to ...
20929 * win32-i386-low.c: ... here.
20930 * win32-low.c (win32_thread_info): Move to ...
20931 * win32-low.h: ... here.
20932 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20933 win32-arm-low.c and wincecompat.c.
20934 (all:): Add $EXEEXT.
20935 (install-only:): Likewise.
20936 (gdbserver:): Likewise.
20937 (gdbreplay:): Likewise.
20938 * config.in: Regenerate.
20939 * configure: Regenerate.
20940
41093d81
PA
209412007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20942
20943 * win32-low.c: Rename typedef thread_info to
20944 win32_thread_info throughout.
20945
544afa54
PA
209462007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20947
20948 * win32-i386-low.c: Rename to ...
20949 * win32-low.c: ... this.
20950 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20951 * Makefile.in: Likewise.
20952
bce7165d
PA
209532007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20954
20955 * remote-utils.c (monitor_output): Constify msg parameter.
20956 * server.h (monitor_output): Likewise.
20957 * win32-i386-low.c (handle_output_debug_string): New.
20958 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20959 handle_output_debug_string.
20960 (get_child_debug_event): Likewise.
20961
506c7aa0
DJ
209622007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20963
20964 * server.c (main): Correct strtoul check.
20965
42c81e2a
DJ
209662007-03-27 Jon Ringle <jon@ringle.org>
20967
20968 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20969
9453113a
DJ
209702007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20971
20972 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20973
64a69107
DJ
209742007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20975
20976 * terminal.h: Check HAVE_SGTTY_H.
20977
209782007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20979
20980 * remote-utils.c (remote_open): Print out the assigned port number.
20981
c74d0ad8
DJ
209822007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20983
20984 * remote-utils.c (monitor_output): New function.
20985 * server.c (debug_threads): Define here.
20986 (monitor_show_help): New function.
20987 (handle_query): Handle qRcmd.
20988 (main): Do not handle 'd' packet.
20989 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20990 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20991 of debug_threads.
20992
de7c3b4a
PA
209932007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20994
20995 * Makefile.in (EXEEXT): New.
20996 (clean): Use $(EXEEXT).
20997
ef57601b
PA
209982007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20999
21000 * target.h (target_ops): Rename send_signal to request_interrupt,
21001 and remove enum target_signal parameter.
21002 * linux-low.c (linux_request_interrupt): Rename from
21003 linux_send_signal, and always send SIGINT.
21004 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21005 and always send SIGINT.
21006 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21007 of send_signal.
21008 (input_interrupt): Likewise.
21009
820f2bda
PA
210102007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21011
21012 * server.c (get_features_xml): Check if target implemented
21013 arch_string.
21014 * win32-i386-low.c (win32_arch_string): New.
21015 (win32_target_ops): Add win32_arch_string as arch_string member.
21016
ab39bf24
UW
210172007-02-22 Markus Deuling <deuling@de.ibm.com>
21018
21019 * spu-low.c (spu_arch_string): New.
21020 (spu_target_ops): Add spu_arch_string.
21021
61ff6e04
DJ
210222007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21023
21024 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21025 * configure.ac: Do not check for terminal.h.
21026 * configure, config.in: Regenerated.
21027
fb1e4ffc
DJ
210282007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21029
21030 * Makefile.in (OBS): Add $(XML_BUILTIN).
21031 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21032 (clean): Update.
21033 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21034 (arm-with-iwmmxt.c): New.
21035 * config.in, configure: Regenerate.
21036 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21037 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21038 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21039 (arm*-*-linux*): Add iWMMXt and regset support.
21040 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21041 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21042 (arm_store_wmmxregset, target_regsets): New.
21043 * server.c (get_features_xml): Take annex argument. Check builtin
21044 XML documents.
21045 (handle_query): Handle multiple annexes.
21046
0f48aa01
DJ
210472007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21048
21049 * remote-utils.c [USE_WIN32API] (read, write): Define.
21050 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21051 write.
21052
23181151
DJ
210532007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21054
21055 * linux-i386-low.c (the_low_target): Set arch_string.
21056 * linux-x86-64-low.c (the_low_target): Likewise.
21057 * linux-low.c (linux_arch_string): New.
21058 (linux_target_ops): Add it.
21059 * linux-low.h (struct linux_target_ops): Add arch_string.
21060 * server.c (write_qxfer_response): Use const void * for DATA.
21061 (get_features_xml): New.
21062 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21063 * target.h (struct target_ops): Add arch_string method.
21064
9d606399
DJ
210652007-01-03 Denis Pilat <denis.pilat@st.com>
21066 Daniel Jacobowitz <dan@codesourcery.com>
21067
21068 * linux-low.c (linux_kill): Handle being called with no threads.
21069 * win32-i386-low.c (win32_kill): Likewise.
21070 (get_child_debug_event): Clear current_process_handle.
21071
210722006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21073 Daniel Jacobowitz <dan@codesourcery.com>
21074
21075 * remote-utils.c (remote_open): Check the type of specified
21076 serial port devices before opening them.
21077 * server.c (main): Kill the inferior if an error occurs during
21078 the first remote_open.
21079
a5e13d24
DJ
210802006-12-05 Markus Deuling <deuling@de.ibm.com>
21081
21082 * README: Update supported targets.
21083
186947f7
DJ
210842006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21085
21086 * Makefile.in (clean): Remove reg-mips64.c.
21087 (reg-mips64.c, reg-mips64.o): New rules.
21088 * configure.srv: Handle mips64. Include regset support for mips.
21089 * linux-mips-low.c (union mips_register): New.
21090 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21091 (mips_breakpoint, mips_breakpoint_at): Use int.
21092 (mips_collect_register, mips_supply_register)
21093 (mips_collect_register_32bit, mips_supply_register_32bit)
21094 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21095 (mips_store_fpregset, target_regsets): New.
21096 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21097
a13e2c95
UW
210982006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21099
21100 * configure.srv: Add target "spu*-*-*".
21101 * Makefile.in (clean): Remove reg-spu.c.
21102 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21103 * spu-low.c: New file.
21104
cb7283db
DJ
211052006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21106
21107 * configure.ac: Correct td_thr_tls_get_addr test.
21108 * configure: Regenerated.
21109
89be2091
DJ
211102006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21111
21112 * linux-low.c (linux_wait_for_event): Reformat. Use the
21113 pass_signals array.
21114 * remote-utils.c (decode_address_to_semicolon): New.
21115 * server.c (pass_signals, handle_general_set): New.
21116 (handle_query): Mention QPassSignals for qSupported.
21117 (main): Call handle_general_set.
21118 * server.h (pass_signals, decode_address_to_semicolon): New.
21119
000ef4f0
DJ
211202006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21121
21122 * server.c (handle_query): Correct error handling for read_auxv.
21123
b7149293
UW
211242005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21125
21126 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21127 and srv_linux_thread_db to yes.
21128 * linux-s390-low.c (s390_fill_gregset): New function.
21129 (target_regsets): Define data structure.
21130
dae5f5cf
DJ
211312006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21132
21133 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21134 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21135 * config.in, configure: Regenerated.
21136 * inferiors.c (gdb_id_to_thread): New function.
21137 (gdb_id_to_thread_id): Use it.
21138 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21139 * linux-low.h (struct process_info): Add th member.
21140 (thread_db_get_tls_address): New prototype.
21141 * remote-utils.c (decode_address): Make non-static.
21142 * server.c (handle_query): Handle qGetTLSAddr.
21143 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21144 * target.h (struct target_ops): Add get_tls_address.
21145 * thread-db.c (maybe_attach_thread): Save the thread handle.
21146 (thread_db_get_tls_address): New.
21147
32ca6d61
DJ
211482006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21149
21150 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21151 (linux_resume_one_process): Take a siginfo_t *. Update all
21152 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21153 (struct pending_signals): Add a siginfo_t.
21154 (linux_wait_for_process): Always set last_status.
21155 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21156 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21157 * linux-low.h (struct process_info): Add last_status.
21158
5ffff7c1
DJ
211592006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21160
21161 * remote-utils.c (try_rle): New function.
21162 (putpkt_binary): Use it.
21163
8695c747
DJ
211642006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21165
21166 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21167 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21168 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21169 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21170 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21171 point registers.
21172
290fadea
RS
211732006-08-08 Richard Sandiford <richard@codesourcery.com>
21174
21175 * server.c (terminal_fd): New variable.
21176 (old_foreground_pgrp): Likewise.
21177 (restore_old_foreground_pgrp): New function.
21178 (start_inferior): Record the terminal file descriptor in terminal_fd
21179 and its original foreground group in old_foreground_pgrp. Register
21180 restore_old_foreground_pgrp with atexit().
21181
9f2e1e63
DJ
211822006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21183
21184 * server.c (handle_query): Correct qPart to qXfer.
21185
b80864fb
DJ
211862006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21187
21188 * configure.ac: Check for more headers which are missing on
21189 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21190 * configure.srv: Add Cygwin and mingw32.
21191 * remote-utils.c: Don't include headers unconditionally which
21192 are missing on mingw32. Include <winsock.h> for mingw32.
21193 (remote_open): Adjust for mingw32 support. Flush
21194 standard error after writing to it.
21195 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21196 (unblock_async_io, enable_async_io, disable_async_io)
21197 (readchar, getpkt): Update for Winsock support.
21198 (prepare_resume_reply): Expect a protocol signal number.
21199 * server.c: Disable <sys/wait.h> on mingw32.
21200 (start_inferior): Adjust for mingw32 support. Flush
21201 standard error after writing to it.
21202 (attach_inferior): Likewise. Use protocol signal
21203 numbers.
21204 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21205 and names.
21206 * win32-i386-low.c: New file.
21207 * Makefile.in (XM_CLIBS): Set.
21208 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21209 (win32-i386-low.o): New dependency rule.
21210 * linux-low.c (linux_wait): Use target signal numbers.
21211 * target.h (struct target_ops): Doc fix.
21212 * server.h (target_signal_to_name): New prototype.
21213 * gdbreplay.c: Don't include headers unconditionally which
21214 are missing on mingw32. Include <winsock.h> for mingw32.
21215 (remote_close, remote_open): Adjust for Winsock support.
21216 * configure, config.in: Regenerated.
21217
0876f84a
DJ
212182006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21219
21220 * server.c (decode_xfer_read, write_qxfer_response): New.
21221 (handle_query): Take a packet length argument. Handle
21222 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21223 the qSupported response.
21224 (main): Update call to handle_query.
21225
01f9e8fa
DJ
212262006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21227
21228 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21229 (putpkt_binary): Renamed from putpkt and adjusted for binary
21230 data.
21231 (putpkt): New wrapper for putpkt_binary.
21232 (readchar): Don't mask off the high bit.
21233 (decode_X_packet): New function.
21234 * server.c (main): Call putpkt_binary if a handler sets the packet
21235 length. Save the length of the incoming packet. Handle 'X'.
21236 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21237
be2a5f71
DJ
212382006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21239
21240 * server.c (handle_query): Handle qSupported.
21241
ea025f5f
DJ
212422006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21243
21244 * remote-utils.c (all_symbols_looked_up): New variable.
21245 (look_up_one_symbol): Check it.
21246 * server.h (look_up_one_symbol): New declaration.
21247 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21248
9308fc88
DJ
212492006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21250
21251 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21252 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21253 (PTRACE_GET_THREAD_AREA): Define.
21254 (ps_get_thread_area): New function.
21255
52fb6437
NS
212562006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21257
21258 * configure.srv (m68k*-*-uclinux*): New target.
21259 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21260 (linux_resume_one_process): Remove extraneous cast.
21261 (linux_read_offsets): New.
21262 (linux_target_op): Add linux_read_offsets on mmuless systems.
21263 * server.c (handle_query): Add qOffsets logic.
21264 * target.h (struct target_ops): Add read_offsets.
21265
21b0f40c
DJ
212662006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21267
21268 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21269 (PTRACE_GET_THREAD_AREA): Define.
21270 (ps_get_thread_area): New function.
21271 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21272 (linux-x86-64-low.o): Update.
21273
0050a760
DJ
212742006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21275
21276 * configure.ac: Remove checks for prfpregset_t.
21277 * gdb_proc_service.h: New file.
21278 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21279 new "gdb_proc_service.h".
21280 * proc-service.c: Likewise.
21281 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21282 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21283 * Makefile.in (gdb_proc_service_h): Updated.
21284 * configure, config.in: Regenerated.
21285
b92a518e
DJ
212862006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21287
21288 * remote-utils.c (prepare_resume_reply): Move declaration
21289 of gdb_id_from_wait to the top of the block.
21290
545587ee
DJ
212912006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21292
21293 * linux-low.c (regsets_store_inferior_registers): Read the regset
21294 from the target before filling it.
21295
9db87ebd
DJ
212962006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21297
21298 * server.c (attach_inferior): Return SIGTRAP for a successful
21299 attach.
21300
dd24457d
DJ
213012006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21302
21303 * Makefile.in (OBS): Add version.o.
21304 (STAGESTUFF): Delete.
21305 (version.o): Add dependencies.
21306 (version.c): Replace rule.
21307 (clean): Remove version.c.
21308 * server.c (gdbserver_version): New.
21309 (gdbserver_usage): Use printf.
21310 (main): Handle --version and --help.
21311 * server.h (version, host_name): Add declarations.
21312
6f0f660e
EZ
213132005-12-23 Eli Zaretskii <eliz@gnu.org>
21314
889bf7c5
PA
21315 * linux-arm-low.c:
21316 * linux-arm-low.c:
21317 * inferiors.c:
21318 * i387-fp.h:
21319 * i387-fp.c:
21320 * gdbreplay.c:
21321 * regcache.c:
21322 * proc-service.c:
21323 * mem-break.h:
21324 * mem-break.c:
21325 * linux-x86-64-low.c:
21326 * linux-sh-low.c:
21327 * linux-s390-low.c:
21328 * linux-ppc64-low.c:
21329 * linux-ppc-low.c:
21330 * linux-mips-low.c:
21331 * linux-m68k-low.c:
21332 * linux-m32r-low.c:
21333 * linux-low.h:
21334 * linux-low.c:
21335 * linux-ia64-low.c:
21336 * linux-i386-low.c:
21337 * linux-crisv32-low.c:
21338 * thread-db.c:
21339 * terminal.h:
21340 * target.h:
21341 * target.c:
21342 * server.h:
21343 * server.c:
21344 * remote-utils.c:
21345 * regcache.h:
21346 * utils.c:
21347 * Makefile.in:
21348 * configure.ac:
6f0f660e
EZ
21349 * gdbserver.1: Add (C) after Copyright. Update the FSF
21350 address.
21351
9d1fb177
DJ
213522005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21353
21354 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21355 (arm_breakpoint_at): Recognize both breakpoints.
21356 (the_low_target): Use the correct breakpoint instruction.
21357
011a70c2
DJ
213582005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21359
21360 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21361 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21362 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21363 (the_low_target): Update.
21364
7fb85e41
AS
213652005-10-25 Andreas Schwab <schwab@suse.de>
21366
21367 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21368
21369 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21370 (ia64_num_regs): Reduce to 462.
21371
3db0444b
DJ
213722005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21373
21374 * acinclude.m4: Correct quoting.
21375 * aclocal.m4: Regenerated.
21376
21377 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21378 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21379 (thread_db_init): Call thread_db_err_str.
21380 * configure.ac: Check for TD_VERSION.
21381 * config.in, configure: Regenerated.
21382
bee0189a
DJ
213832005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21384
21385 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21386
e9d25b98
DJ
213872005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21388
21389 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21390 is not available. Define HAVE_PTRACE_GETREGS if it is.
21391 * config.in, configure: Regenerated.
21392 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21393 * linux-i386-low.c, linux-m68k-low.c: Update to use
21394 HAVE_PTRACE_GETREGS.
21395 * linux-low.c (regsets_fetch_inferior_registers)
21396 (regsets_store_inferior_registers): Only return 0 if we processed
21397 GENERAL_REGS.
21398 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21399 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21400
a06660f7
DJ
214012005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21402
21403 * inferiors.c (struct thread_info): Add gdb_id.
21404 (add_thread): Add gdb_id argument.
21405 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21406 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21407 calls to add_thread.
21408 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21409 * server.c (handle_query): Use thread_to_gdb_id.
21410 (handle_v_cont, main): Use gdb_id_to_thread_id.
21411 * server.h (add_thread): Update prototype.
21412 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21413 prototypes.
21414
5a1f5858
DJ
214152005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21416
21417 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21418 left-padded registers.
21419 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21420 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21421
e122f1f5
SE
214222005-07-01 Steve Ellcey <sje@cup.hp.com>
21423
21424 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21425 * configure: Regenerate.
21426 * config.in: Regenerate.
21427 * server.h (NEED_DECLARATION_STRERROR):
21428 Replace with !HAVE_DECL_STRERROR.
21429
d592fa2f
DJ
214302005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21431
21432 * linux-low.c (linux_wait, linux_send_signal): Don't test
21433 an unsigned long variable for > 0 if it could be MAX_ULONG.
21434 * server.c (myresume): Likewise.
21435 * target.c (set_desired_inferior): Likewise.
21436
ccbd4912
MK
214372005-06-13 Mark Kettenis <kettenis@gnu.org>
21438
21439 * configure.ac: Simplify and improve check for socklen_t.
21440 * configure, config.in: Regenerate.
21441
f450004a
DJ
214422005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21443
21444 * acconfig.h: Remove.
21445 * configure.ac: Add a test for socklen_t. Use three-argument
21446 AC_DEFINE throughout.
21447 * config.in: Regenerated using autoheader 2.59.
21448 * configure: Regenerated.
21449
21450 * gdbreplay.c (socklen_t): Provide a default.
21451 (remote_open): Use socklen_t.
21452 * remote-utils.c (socklen_t): Provide a default.
21453 (remote_open): Use socklen_t.
21454 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21455 unsigned char.
21456
21457 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21458 char for buffers.
21459 * linux-low.c (linux_read_memory, linux_write_memory)
21460 (linux_read_auxv): Likewise.
21461 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21462 (check_mem_write): Likewise.
21463 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21464 Likewise.
21465 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21466 (registers_from_string, register_data): Likewise.
21467 * server.c (handle_query, main): Likewise.
21468 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21469 (decode_M_packet): Likewise.
21470 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21471 * target.h (struct target_ops): Update read_memory, write_memory,
21472 and read_auxv.
21473 (read_inferior_memory, write_inferior_memory): Update.
21474 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21475 to unsigned char *.
21476 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21477 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21478 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21479 linux-s390-low.c, linux-sh-low.c: Update for changes in
21480 read_inferior_memory and the_low_target->breakpoint.
21481
eee84df1
DJ
214822005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21483
21484 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21485 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21486 * configure.srv: Add powerpc64-*-linux*.
21487 * linux-ppc64-low.c: New file.
21488
45b134e5
OF
214892005-05-23 Orjan Friberg <orjanf@axis.com>
21490
21491 * linux-cris-low.c: New file with support for CRIS.
21492 * linux-crisv32-low.c: Ditto for CRISv32.
21493 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21494 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21495 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21496 reg-crisv32.o, and reg-crisv32.c to make rules.
21497 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21498 recognized targets.
21499
48d93c75
UW
215002005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21501
21502 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21503 of sizeof (PTRACE_XFER_TYPE).
21504 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21505
e013ee27
OF
215062005-05-12 Orjan Friberg <orjanf@axis.com>
21507
889bf7c5 21508 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21509 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21510 pointers for hardware watchpoint support.
21511 * linux-low.h (struct linux_target_ops): Ditto.
21512 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21513 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21514 to linux_target_ops.
21515 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21516 reply packet.
21517 * server.c (main): Recognize 'Z' and 'z' packets.
21518
b0ded00b
UW
215192005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21520
21521 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21522 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21523 (the_low_target): Add new members.
21524
8643e2ad
DJ
215252005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21526
21527 * proc-service.c (ps_lgetregs): Search all_processes instead of
21528 all_threads.
21529
fc620387
DJ
215302005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21531
21532 * server.c (start_inferior): Change return type to int.
21533 (attach_inferior): Change sigptr to int *.
21534 (handle_v_cont, handle_v_requests): Change signal to int *.
21535 (main): Change signal to int.
21536
215372005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21538
21539 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21540 * configure.srv: Add m32r*-*-linux*.
21541 * linux-m32r-low.c: New file.
21542
e0e76420
DJ
215432005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21544
21545 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21546
a1928bad
DJ
215472005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21548
21549 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21550 Take unsigned long arguments for PIDs.
21551 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21552 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21553 (wait_for_sigstop, linux_resume_one_process)
21554 (regsets_fetch_inferior_registers, linux_send_signal)
21555 (linux_read_auxv): Likewise. Update the types of variables holding
21556 PIDs. Update format string specifiers.
21557 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21558 * remote-utils.c (prepare_resume_reply): Likewise.
21559 * server.c (cont_thread, general_thread, step_thread)
21560 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21561 unsigned long.
21562 (handle_query): Update format specifiers.
21563 (handle_v_cont, main): Use strtoul for thread IDs.
21564 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21565 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21566 (general_thread, step_thread, thread_from_wait)
21567 (old_thread_from_wait): Update.
21568 * target.h (struct thread_resume): Use unsigned long for THREAD.
21569 (struct target_ops): Use unsigned long for arguments to attach and
21570 thread_alive.
21571
dcdb98d2
DJ
215722005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21573
21574 * acinclude.m4: Include bfd/bfd.m4 directly.
21575 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21576 <agriffis@toolchain.org>.
21577 * aclocal.m4, configure: Regenerated.
21578
bec39cab
AC
215792005-01-07 Andrew Cagney <cagney@gnu.org>
21580
21581 * configure.ac: Rename configure.in, require autoconf 2.59.
21582 * configure: Re-generate.
21583
434c4c77
DJ
215842004-12-08 Daniel Jacobowitz <dan@debian.org>
21585
21586 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21587 LIBS when finished.
21588 * aclocal.m4: Regenerated.
21589 * configure: Regenerated.
21590
db1d3e1b
AS
215912004-11-21 Andreas Schwab <schwab@suse.de>
21592
21593 * linux-m68k-low.c (m68k_num_gregs): Define.
21594 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21595 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21596 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21597 (m68k_breakpoint_at): New. Add to the_low_target.
21598
21599 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21600 srv_linux_thread_db to yes.
21601
43360365
JB
216022004-10-20 Joel Brobecker <brobecker@gnat.com>
21603
21604 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21605 (ARCH_SET_FS): Likewise.
21606 (ARCH_GET_FS): Likewise.
21607 (ARCH_GET_GS): Likewise.
21608
fd500816
DJ
216092004-10-16 Daniel Jacobowitz <dan@debian.org>
21610
21611 * linux-i386-low.c (ps_get_thread_area): New.
21612 * linux-x86-64-low.c (ps_get_thread_area): New.
21613 * linux-low.c: Include <sys/syscall.h>.
21614 (linux_kill_one_process): Don't kill the first thread here.
21615 (linux_kill): Kill the first thread here.
21616 (kill_lwp): New function.
21617 (send_sigstop, linux_send_signal): Use it.
21618 * proc-service.c: Clean up #ifdefs.
21619 (fpregset_info): Delete.
21620 (ps_lgetregs): Update and enable implementation.
21621 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21622 implementations.
21623 * remote-utils.c (struct sym_cache, symbol_cache): New.
21624 (input_interrupt): Print a clearer message.
21625 (async_io_enabled): New variable.
21626 (enable_async_io, disable_async_io): Use it. Update comments.
21627 (look_up_one_symbol): Use the symbol cache.
21628 * thread-db.c (thread_db_look_up_symbols): New function.
21629 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21630
f6de3c42
DJ
216312004-10-16 Daniel Jacobowitz <dan@debian.org>
21632
21633 * configure.in: Test for -rdynamic.
21634 * configure: Regenerated.
21635 * Makefile (INTERNAL_LDFLAGS): New.
21636 (gdbserver, gdbreplay): Use it.
21637
2c0fc042
AC
216382004-09-02 Andrew Cagney <cagney@gnu.org>
21639
21640 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21641
075b3282
DJ
216422004-03-23 Daniel Jacobowitz <drow@mvista.com>
21643
21644 * linux-low.c (linux_wait): Clear all_processes list also.
21645
fa6a77dc
DJ
216462004-03-12 Daniel Jacobowitz <drow@mvista.com>
21647
21648 * linux-low.c: Include <errno.h>. Remove extern declaration of
21649 errno.
21650
6d782a97
DJ
216512004-03-12 Daniel Jacobowitz <drow@mvista.com>
21652
21653 * gdbreplay.c, server.h, utils.c: Update copyright years.
21654
3a7fb99b
DJ
216552004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21656
21657 * server.c (main): Print child status or termination signal from
21658 variable 'signal', not 'sig'.
21659
c3e735a6
DJ
216602004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21661
21662 * linux-low.c (linux_read_memory): Change return type to
21663 int. Check for and return error from ptrace().
21664 * target.c (read_inferior_memory): Change return type to int. Pass
21665 back return status from the_target->read_memory().
21666 * target.h (struct target_ops): Adapt *read_memory() prototype.
21667 Update comment.
21668 (read_inferior_memory): Adapt prototype.
21669 * server.c (main): Return an error packet if
21670 read_inferior_memory() returns an error.
21671
a59d1c82
DJ
216722004-03-04 Daniel Jacobowitz <drow@mvista.com>
21673
21674 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21675 Unify with other clean targets.
21676
dc3f8883
DJ
216772004-02-29 Daniel Jacobowitz <drow@mvista.com>
21678
21679 * server.c (handle_v_cont): Call set_desired_inferior.
21680
89a208da
DJ
216812004-02-29 Daniel Jacobowitz <drow@mvista.com>
21682
21683 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21684
62ea82f5
DJ
216852004-02-29 Daniel Jacobowitz <drow@mvista.com>
21686
21687 * linux-low.c (linux_wait): Unblock async I/O.
21688 (linux_resume): Block and enable async I/O.
21689 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21690 * server.h (block_async_io, unblock_async_io): Add prototypes.
21691
6910d122
DJ
216922004-02-29 Daniel Jacobowitz <drow@mvista.com>
21693
21694 * remote-utils.c (remote_open): Print a status notice after
21695 opening a TCP port.
21696 * server.c (attach_inferior): Print a status notice after
21697 attaching.
21698
216992004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21700
21701 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21702
c89dc5d4
DJ
217032004-02-26 Daniel Jacobowitz <drow@mvista.com>
21704
21705 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21706 error packet.
21707 * server.c, target.h: Update copyright years.
21708
4b8dad4a
RM
217092004-02-25 Roland McGrath <roland@redhat.com>
21710
21711 * target.h (struct target_ops): New member `read_auxv'.
21712 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21713 * linux-low.c (linux_read_auxv): New function.
21714 (linux_target_ops): Initialize `read_auxv' member to that.
21715
d7446758
JB
217162004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21717
21718 Committed by Jim Blandy <jimb@redhat.com>.
21719
21720 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21721 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21722 instead of GPR_SIZE to distiguish s390 and s390x targets.
21723
5544ad89
DJ
217242004-01-31 Daniel Jacobowitz <drow@mvista.com>
21725
21726 * linux-low.c: Update copyright year.
21727 (check_removed_breakpoint): Clear pending_is_breakpoint.
21728 (linux_set_resume_request, linux_queue_one_thread)
21729 (resume_status_pending_p): New functions.
21730 (linux_continue_one_thread): Use process->resume.
21731 (linux_resume): Only resume threads if there are no pending events.
21732 * linux-low.h (struct process_info): Add resume request
21733 pointer.
21734
2a68b70e
DJ
217352004-01-30 Daniel Jacobowitz <drow@mvista.com>
21736
21737 * regcache.c (new_register_cache): Clear the allocated register
21738 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21739
64386c31
DJ
217402003-10-13 Daniel Jacobowitz <drow@mvista.com>
21741
21742 * linux-low.c (linux_resume): Take a struct thread_resume *
21743 argument.
21744 (linux_wait): Update call.
21745 (resume_ptr): New static variable.
21746 (linux_continue_one_thread): Renamed from
21747 linux_continue_one_process. Use resume_ptr.
21748 (linux_resume): Use linux_continue_one_thread.
21749 * server.c (handle_v_cont, handle_v_requests): New functions.
21750 (myresume): New function.
21751 (main): Handle 'v' case.
21752 * target.h (struct thread_resume): New type.
21753 (struct target_ops): Change argument of "resume" to struct
21754 thread_resume *.
21755 (myresume): Delete macro.
21756
c938e9b0
L
217572003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21758
21759 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21760 (uninstall): Support DESTDIR.
21761
7f313d07
BC
21762Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21763
21764 * configure.srv: Add xscale*linux copy of arm*linux entry.
21765
3b2fc2ea
DJ
217662003-07-24 Daniel Jacobowitz <drow@mvista.com>
21767
21768 * linux-arm-low.c (arm_reinsert_addr): New function.
21769 (the_low_target): Add arm_reinsert_addr.
21770
1c0a559e
MK
217712003-07-08 Mark Kettenis <kettenis@gnu.org>
21772
21773 * mem-break.c: Remove whitespace at end of file.
21774
43d5792c
DJ
217752003-06-28 Daniel Jacobowitz <drow@mvista.com>
21776
21777 * configure.in: Check whether we need to prototype strerror.
21778 * server.h: Optionally prototype strerror.
21779 * gdbreplay.c (perror_with_name): Use strerror.
21780 * linux-low.c (linux_attach_lwp): Use strerror.
21781 * utils.c (perror_with_name): Use strerror.
21782 * config.in, configure: Regenerated.
21783
c8a86edf
DJ
217842003-06-28 Daniel Jacobowitz <drow@mvista.com>
21785
21786 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21787 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21788
73d37363
DJ
217892003-06-20 Daniel Jacobowitz <drow@mvista.com>
21790
21791 * Makefile.in (SFILES): Update.
21792 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21793 low-sun3.c: Remove files.
21794
6ad8ae5c
DJ
217952003-06-17 Daniel Jacobowitz <drow@mvista.com>
21796
21797 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21798 (linux_detach_one_process, linux_detach): New functions.
21799 (linux_target_ops): Add linux_detach.
21800 * server.c (main): Handle 'D' packet.
21801 * target.h (struct target_ops): Add "detach" member.
21802 (detach_inferior): Define.
21803
1581182a
MK
218042003-06-13 Mark Kettenis <kettenis@gnu.org>
21805
21806 From Kelley Cook <kelleycook@wideopenwest.com>:
21807 * configure.srv: Accept i[34567]86 variants.
21808
e5379b03
DJ
218092003-06-05 Daniel Jacobowitz <drow@mvista.com>
21810
21811 * linux-low.c (linux_wait_for_event): Correct comment typos.
21812 (linux_resume_one_process): Call check_removed_breakpoint.
21813 (linux_send_signal): New function.
21814 (linux_target_ops): Add linux_send_signal.
21815 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21816 of kill.
21817 * target.h (struct target_ops): Add send_signal.
21818
2ff29de4
JB
218192003-05-29 Jim Blandy <jimb@redhat.com>
21820
21821 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21822 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21823 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21824 away part of the register's value.
21825
254787d4
DJ
218262003-03-26 Daniel Jacobowitz <drow@mvista.com>
21827
21828 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21829 (linux_wait_for_event, linux_init_signals): Likewise.
21830
94e10508
DJ
218312003-03-17 Daniel Jacobowitz <drow@mvista.com>
21832
21833 * configure.in: Check for stdlib.h.
21834 * configure: Regenerated.
21835 * config.in: Regenerated.
21836
4c0711e0
DJ
218372003-01-04 Andreas Schwab <schwab@suse.de>
21838
21839 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21840
ef66e766
AC
218412003-01-02 Andrew Cagney <ac131313@redhat.com>
21842
21843 * Makefile.in: Remove obsolete code.
21844
a1358604
DJ
218452002-11-20 Daniel Jacobowitz <drow@mvista.com>
21846
21847 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21848 defined(PT_FPR0_HI).
21849
23ce3b1c
DJ
218502002-11-17 Stuart Hughes <seh@zee2.com>
21851
21852 * linux-arm-low.c (arm_num_regs): Increase.
21853 (arm_regmap): Include status register.
21854
218552002-11-17 Daniel Jacobowitz <drow@mvista.com>
21856
21857 * linux-low.c (register_addr): Remove incorrect -1 check.
21858
a9fa9f7d
DJ
218592002-08-29 Daniel Jacobowitz <drow@mvista.com>
21860
21861 * linux-low.c (linux_create_inferior): Call setpgid. Return
21862 the new PID.
21863 (unstopped_p, linux_signal_pid): Remove.
21864 (linux_target_ops): Remove linux_signal_pid.
21865 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21866 global instead of target method.
21867 * target.h (struct target_ops): Remove signal_pid. Update comment
21868 for create_inferior.
21869 * server.c (signal_pid): New variable.
21870 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21871 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21872 (attach_inferior): Set signal_pid.
21873
17574093
DJ
218742002-08-23 Daniel Jacobowitz <drow@mvista.com>
21875
21876 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21877
218782002-08-20 Jim Blandy <jimb@redhat.com>
21879
21880 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21881 default for this.
21882
218832002-08-01 Andrew Cagney <cagney@redhat.com>
21884
21885 * Makefile.in: Make chill references obsolete.
21886
218872002-07-24 Kevin Buettner <kevinb@redhat.com>
21888
21889 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21890 * configure: Regenerate.
21891 * config.in: Regenerate.
21892
218932002-07-09 David O'Brien <obrien@FreeBSD.org>
21894
21895 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21896 (perror_with_name, remote_close, remote_open, expect, play): Static.
21897
218982002-07-04 Michal Ludvig <mludvig@suse.cz>
21899
4b8dad4a 21900 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21901 byte offsets instead of an array of indexes.
21902 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21903
219042002-06-13 Daniel Jacobowitz <drow@mvista.com>
21905
21906 * regcache.c: Add comment.
21907
219082002-06-11 Daniel Jacobowitz <drow@mvista.com>
21909
21910 * thread-db.c: New file.
21911 * proc-service.c: New file.
21912 * acinclude.m4: New file.
21913 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21914 proc-service.o, and thread-db.o.
21915 (linux-low.o): Add USE_THREAD_DB.
21916 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21917 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21918 * aclocal.m4: Regenerated.
21919 * config.in: Regenerated.
21920 * configure: Regenerated.
21921 * configure.in: Check for proc_service.h, sys/procfs.h,
21922 thread_db.h, and linux/elf.h headrs.
21923 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21924 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21925 Check for -lthread_db and thread support.
21926 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21927 PowerPC, and SuperH.
21928 * i387-fp.c: Constify arguments.
21929 * i387-fp.h: Likewise.
21930 * inferiors.c: (struct thread_info): Renamed from
21931 `struct inferior_info'. Remove PID member. Use generic inferior
21932 list header. All uses updated.
21933 (inferiors, signal_pid): Removed.
21934 (all_threads): New variable.
21935 (get_thread): Define.
21936 (add_inferior_to_list): New function.
21937 (for_each_inferior): New function.
21938 (change_inferior_id): New function.
21939 (add_inferior): Removed.
21940 (remove_inferior): New function.
21941 (add_thread): New function.
21942 (free_one_thread): New function.
21943 (remove_thread): New function.
21944 (clear_inferiors): Use for_each_inferior and free_one_thread.
21945 (find_inferior): New function.
21946 (find_inferior_id): New function.
21947 (inferior_target_data): Update argument type.
21948 (set_inferior_target_data): Likewise.
21949 (inferior_regcache_data): Likewise.
21950 (set_inferior_regcache_data): Likewise.
21951 * linux-low.c (linux_bp_reinsert): Remove.
21952 (all_processes, stopping_threads, using_thrads)
21953 (struct pending_signals, debug_threads, pid_of): New.
21954 (inferior_pid): Replace with macro.
21955 (struct inferior_linux_data): Remove.
21956 (get_stop_pc, add_process): New functions.
21957 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21958 Use add_process and add_thread.
21959 (linux_attach_lwp): New function, based on old linux_attach. Use
21960 add_process and add_thread. Set stop_expected for new threads.
21961 (linux_attach): New function.
21962 (linux_kill_one_process): New function.
21963 (linux_kill): Kill all LWPs.
21964 (linux_thread_alive): Use find_inferior_id.
21965 (check_removed_breakpoints, status_pending_p): New functions.
21966 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21967 Update. Use WNOHANG. Wait for cloned processes also. Update process
21968 struct for the found process.
21969 (linux_wait_for_event): New function.
21970 (linux_wait): Use it. Support LWPs.
21971 (send_sigstop, wait_for_sigstop, stop_all_processes)
21972 (linux_resume_one_process, linux_continue_one_process): New functions.
21973 (linux_resume): Support LWPs.
21974 (REGISTER_RAW_SIZE): Remove.
21975 (fetch_register): Use register_size instead. Call supply_register.
21976 (usr_store_inferior_registers): Likewise. Call collect_register.
21977 Fix recursive case.
21978 (regsets_fetch_inferior_registers): Improve error message.
21979 (regsets_store_inferior_registers): Add debugging.
21980 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21981 (unstopped_p, linux_signal_pid): New functions.
21982 (linux_target_ops): Add linux_signal_pid.
21983 (linux_init_signals): New function.
21984 (initialize_low): Call it. Initialize using_threads.
21985 * regcache.c (inferior_regcache_data): Add valid
21986 flag.
21987 (get_regcache): Fetch registers lazily. Add fetch argument
21988 and update all callers.
21989 (regcache_invalidate_one, regcache_invalidate): New
21990 functions.
21991 (new_register_cache): Renamed from create_register_cache.
21992 Return the new regcache.
21993 (free_register_cache): Change argument to a void *.
21994 (registers_to_string, registers_from_string): Call get_regcache
21995 with fetch flag set.
21996 (register_data): Make static. Pass fetch flag to get_regcache.
21997 (supply_register): Call get_regcache with fetch flag clear.
21998 (collect_register): Call get_regcache with fetch flag set.
21999 (collect_register_as_string): New function.
22000 * regcache.h: Update.
22001 * remote-utils.c (putpkt): Flush after debug output and use
22002 stderr.
22003 Handle input interrupts while waiting for an ACK.
22004 (input_interrupt): Use signal_pid method.
22005 (getpkt): Flush after debug output and use stderr.
22006 (outreg): Use collect_register_as_string.
22007 (new_thread_notify, dead_thread_notify): New functions.
22008 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22009 and general_thread.
22010 (look_up_one_symbol): Flush after debug output.
22011 * server.c (step_thread, server_waiting): New variables.
22012 (start_inferior): Don't use signal_pid. Update call to mywait.
22013 (attach_inferior): Update call to mywait.
22014 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22015 (main): Don't fetch/store registers explicitly. Use
22016 set_desired_inferior. Support proposed ``Hs'' packet. Update
22017 calls to mywait.
22018 * server.h: Update.
22019 (struct inferior_list, struct_inferior_list_entry): New.
22020 * target.c (set_desired_inferior): New.
22021 (write_inferior_memory): Constify.
22022 (mywait): New function.
22023 * target.h: Update.
22024 (struct target_ops): New signal_pid method.
22025 (mywait): Removed macro, added prototype.
22026
22027 * linux-low.h (regset_func): Removed.
22028 (regset_fill_func, regset_store_func): New.
22029 (enum regset_type): New.
22030 (struct regset_info): Add type field. Use new operation types.
22031 (struct linux_target_ops): stop_pc renamed to get_pc.
22032 Add decr_pc_after_break and breakpoint_at.
22033 (get_process, get_thread_proess, get_process_thread)
22034 (strut process_info, all_processes, linux_attach_lwp)
22035 (thread_db_init): New.
22036
22037 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22038 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22039 (the_low_target): Add new members.
22040 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22041 (i386_store_fpxregset): Constify.
22042 (target_regsets): Add new kind identifier.
22043 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22044 (i386_set_pc): Add debugging.
22045 (i386_breakpoint_at): New function.
22046 (the_low_target): Add new members.
22047 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22048 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22049 (mips_breakpoint_at): New.
22050 (the_low_target): Add new members.
22051 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22052 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22053 (the_low_target): Add new members.
22054 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22055 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22056 (the_low_target): Add new members.
22057 * linux-x86-64-low.c (target_regsets): Add new kind
22058 identifier.
22059
220602002-05-15 Daniel Jacobowitz <drow@mvista.com>
22061
22062 From Martin Pool <mbp@samba.org>:
22063 * server.c (gdbserver_usage): New function.
22064 (main): Call it.
22065
220662002-05-14 Daniel Jacobowitz <drow@mvista.com>
22067
22068 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22069 stop_at -> stop_pc.
22070
220712002-05-04 Andrew Cagney <ac131313@redhat.com>
22072
22073 * Makefile.in: Remove obsolete code.
22074
220752002-04-24 Michal Ludvig <mludvig@suse.cz>
22076
22077 * linux-low.c (regsets_fetch_inferior_registers),
22078 (regsets_store_inferior_registers): Removed cast to int from
22079 ptrace() calls.
22080 * regcache.h: Added declaration of struct inferior_info.
22081
220822002-04-20 Daniel Jacobowitz <drow@mvista.com>
22083
22084 * inferiors.c (struct inferior_info): Add regcache_data.
22085 (add_inferior): Call create_register_cache.
22086 (clear_inferiors): Call free_register_cache.
22087 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22088 * regcache.c (struct inferior_regcache_data): New.
22089 (registers): Remove.
22090 (get_regcache): New function.
22091 (create_register_cache, free_register_cache): New functions.
22092 (set_register_cache): Don't initialize the register cache here.
22093 (registers_to_string, registers_from_string, register_data): Call
22094 get_regcache.
22095 * regcache.h: Add prototypes.
22096 * server.h: Likewise.
22097
220982002-04-20 Daniel Jacobowitz <drow@mvista.com>
22099
22100 * mem-break.c: New file.
22101 * mem-break.h: New file.
22102 * Makefile.in: Add mem-break.o rule; update server.h
22103 dependencies.
22104 * inferiors.c (struct inferior_info): Add target_data
22105 member.
22106 (clear_inferiors): Free target_data member if set.
22107 (inferior_target_data, set_inferior_target_data): New functions.
22108 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22109 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22110 * linux-low.c (linux_bp_reinsert): New variable.
22111 (struct inferior_linux_data): New.
22112 (linux_create_inferior): Use set_inferior_target_data.
22113 (linux_attach): Likewise. Call add_inferior.
22114 (linux_wait_for_one_inferior): New function.
22115 (linux_wait): Call it.
22116 (linux_write_memory): Add const.
22117 (initialize_low): Call set_breakpoint_data.
22118 * linux-low.h (struct linux_target_ops): Add breakpoint
22119 handling members.
22120 * server.c (attach_inferior): Remove extra add_inferior
22121 call.
22122 * server.h: Include mem-break.h. Update inferior.c
22123 prototypes.
22124 * target.c (read_inferior_memory)
22125 (write_inferior_memory): New functions.
22126 * target.h (read_inferior_memory)
22127 (write_inferior_memory): Change macros to prototypes.
22128 (struct target_ops): Update comments. Add const to write_memory
22129 definition.
22130
221312002-04-11 Daniel Jacobowitz <drow@mvista.com>
22132
22133 * linux-low.c (usr_store_inferior_registers): Support
22134 registers which are allowed to fail to store.
22135 * linux-low.h (linux_target_ops): Likewise.
22136 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22137 (ppc_cannot_store_register): FPSCR may not be storable.
22138
221392002-04-09 Daniel Jacobowitz <drow@mvista.com>
22140
22141 * server.h: Include <string.h> if HAVE_STRING_H.
22142 * ChangeLog: Correct paths in last ChangeLog entry.
22143
221442002-04-09 Daniel Jacobowitz <drow@mvista.com>
22145
22146 * linux-low.h: Remove obsolete prototypes.
22147 (struct linux_target_ops): New.
22148 (extern the_low_target): New.
22149 * linux-low.c (num_regs, regmap): Remove declarations.
22150 (register_addr): Use the_low_target explicitly.
22151 (fetch_register): Likewise.
22152 (usr_fetch_inferior_registers): Likewise.
22153 (usr_store_inferior_registers): Likewise.
22154 * linux-arm-low.c (num_regs): Remove.
22155 (arm_num_regs): Define.
22156 (arm_regmap): Renamed from regmap, made static.
22157 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22158 made static.
22159 (arm_cannot_store_register): Renamed from cannot_store_register,
22160 made static.
22161 (the_low_target): New.
22162 * linux-i386-low.c (num_regs): Remove.
22163 (i386_num_regs): Define.
22164 (i386_regmap): Renamed from regmap, made static.
22165 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22166 made static.
22167 (i386_cannot_store_register): Renamed from cannot_store_register,
22168 made static.
22169 (the_low_target): New.
22170 * linux-ia64-low.c (num_regs): Remove.
22171 (ia64_num_regs): Define.
22172 (ia64_regmap): Renamed from regmap, made static.
22173 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22174 made static.
22175 (ia64_cannot_store_register): Renamed from cannot_store_register,
22176 made static.
22177 (the_low_target): New.
22178 * linux-m68k-low.c (num_regs): Remove.
22179 (m68k_num_regs): Define.
22180 (m68k_regmap): Renamed from regmap, made static.
22181 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22182 made static.
22183 (m68k_cannot_store_register): Renamed from cannot_store_register,
22184 made static.
22185 (the_low_target): New.
22186 * linux-mips-low.c (num_regs): Remove.
22187 (mips_num_regs): Define.
22188 (mips_regmap): Renamed from regmap, made static.
22189 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22190 made static.
22191 (mips_cannot_store_register): Renamed from cannot_store_register,
22192 made static.
22193 (the_low_target): New.
22194 * linux-ppc-low.c (num_regs): Remove.
22195 (ppc_num_regs): Define.
22196 (ppc_regmap): Renamed from regmap, made static.
22197 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22198 made static.
22199 (ppc_cannot_store_register): Renamed from cannot_store_register,
22200 made static.
22201 (the_low_target): New.
22202 * linux-s390-low.c (num_regs): Remove.
22203 (s390_num_regs): Define.
22204 (s390_regmap): Renamed from regmap, made static.
22205 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22206 made static.
22207 (s390_cannot_store_register): Renamed from cannot_store_register,
22208 made static.
22209 (the_low_target): New.
22210 * linux-sh-low.c (num_regs): Remove.
22211 (sh_num_regs): Define.
22212 (sh_regmap): Renamed from regmap, made static.
22213 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22214 made static.
22215 (sh_cannot_store_register): Renamed from cannot_store_register,
22216 made static.
22217 (the_low_target): New.
22218 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22219 (the_low_target): New.
22220
222212002-04-09 Daniel Jacobowitz <drow@mvista.com>
22222
22223 * Makefile.in: Add stamp-h target.
22224 * configure.in: Create stamp-h.
22225 * configure: Regenerated.
22226
222272002-04-09 Daniel Jacobowitz <drow@mvista.com>
22228
22229 * inferiors.c: New file.
22230 * target.c: New file.
22231 * target.h: New file.
22232 * Makefile.in: Add target.o and inferiors.o. Update
22233 dependencies.
22234 * linux-low.c (inferior_pid): New static variable,
22235 moved from server.c.
22236 (linux_create_inferior): Renamed from create_inferior.
22237 Call add_inferior. Return 0 on success instead of a PID.
22238 (linux_attach): Renamed from myattach.
22239 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22240 (linux_thread_alive): Renamed from mythread_alive.
22241 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22242 child dies.
22243 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22244 (regsets_store_inferior_registers): Correct error message.
22245 Add missing ``return 0''.
22246 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22247 (linux_store_registers): Renamed from store_inferior_registers.
22248 (linux_read_memory): Renamed from read_inferior_memory.
22249 (linux_write_memory): Renamed from write_inferior_memory.
22250 (linux_target_ops): New structure.
22251 (initialize_low): Call set_target_ops ().
22252 * remote-utils.c (unhexify): New function.
22253 (hexify): New function.
22254 (input_interrupt): Send signals to ``signal_pid''.
22255 * server.c (inferior_pid): Remove.
22256 (start_inferior): Update create_inferior call.
22257 (attach_inferior): Call add_inferior.
22258 (handle_query): New function.
22259 (main): Call handle_query for `q' packets.
22260 * server.h: Include "target.h". Remove obsolete prototypes.
22261 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22262
222632002-04-09 Daniel Jacobowitz <drow@mvista.com>
22264
22265 * Makefile.in: Add WARN_CFLAGS. Update configury
22266 dependencies.
22267 * configure.in: Check for <string.h>
22268 * configure: Regenerate.
22269 * config.in: Regenerate.
22270 * gdbreplay.c: Include needed system headers.
22271 (remote_open): Remove strchr prototype.
22272 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22273 * regcache.c (supply_register): Change buf argument to const void *.
22274 (supply_register_by_name): Likewise.
22275 (collect_register): Change buf argument to void *.
22276 (collect_register_by_name): Likewise.
22277 * regcache.h: Add missing prototypes.
22278 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22279 * server.c (handle_query): New function.
22280 (attached): New static variable, moved out of main.
22281 (main): Quiet longjmp clobber warnings.
22282 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22283 * utils.c (error): Remove NORETURN.
22284 (fatal): Likewise.