x86: AVX512 VPERM{D,Q,PS,PD} insns need to honor EVEX.L'L
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
f638ed73
TV
12020-06-29 Tom de Vries <tdevries@suse.de>
2
3 * ax.h: Include gdbsupport/debug_agent.h.
4
fbf42f4e
AB
52020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6
7 * tdesc.cc (struct tdesc_compatible_info): New struct.
8 (tdesc_compatible_info_list): New function.
9 (tdesc_compatible_info_arch_name): New function.
10
013e3554
TBA
112020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12
13 Use std::list to stop pending signal instead of manually-created
14 linked list.
15 * linux-low.h: Include <list>.
16 (struct pending_signal): Move here from linux-low.cc.
17 (struct lwp_info) <pending_signals>
18 <pending_signals_to_report>: Update the type.
19 * linux-low.cc (struct pending_signals): Remove.
20 (linux_process_target::delete_lwp)
21 (linux_process_target::add_lwp)
22 (enqueue_one_deferred_signal)
23 (dequeue_one_deferred_signal)
24 (enqueue_pending_signal)
25 (linux_process_target::resume_one_lwp_throw)
26 (linux_process_target::thread_needs_step_over)
27 (linux_process_target::resume_one_thread)
28 (linux_process_target::proceed_one_lwp): Update the use of pending
29 signal list.
30
7d458ea5
SM
312020-06-17 Simon Marchi <simon.marchi@efficios.com>
32
33 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
34 Remove.
35
84b300de
SM
362020-06-12 Simon Marchi <simon.marchi@efficios.com>
37
38 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
39 * configure.srv: Remove mingw32ce cases.
40 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
41 * win32-low.h (to_back_slashes): Remove.
42 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
43
96c16e2b
SM
442020-06-12 Simon Marchi <simon.marchi@efficios.com>
45
46 * Makefile.in (SFILES): linux-tile-low.cc.
47 * configure.srv: Remove tilegx case.
48 * linux-tile-low.cc: Remove.
49
bd1467ae
SM
502020-06-12 Simon Marchi <simon.marchi@efficios.com>
51
52 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
53 * configure.srv: Remove m32r case.
54 * linux-m32r-low.cc: Remove.
55
7b46bf6f
SM
562020-06-12 Simon Marchi <simon.marchi@efficios.com>
57
58 * Makefile.in (SFILES): Remove linux-cris-low.c.
59 * configure.srv: Remove cris cases.
60 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
61
1fa29f56
SM
622020-06-12 Simon Marchi <simon.marchi@efficios.com>
63
64 * Makefile.in (SFILES): Remove linux-bfin-low.c.
65 * configure.srv: Remove bfin case.
66 * linux-bfin-low.cc: Remove.
67 * linux-low.cc: Remove BFIN-conditional code.
68
613f149a
SM
692020-06-12 Simon Marchi <simon.marchi@efficios.com>
70
71 * configure: Re-generate.
72 * configure.ac: Remove srv_qnx test.
73 * configure.srv: Remove nto case.
74 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
75 * remote-utils.c: Remove __QNX__-guarded code.
76
fdb95bf5
SM
772020-06-12 Simon Marchi <simon.marchi@efficios.com>
78
79 * configure: Re-generate.
80 * configure.ac: Remove srv_lynxos test.
81 * configure.srv: Remove lynxos cases.
82 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
83 Remove.
84
c00094dc
SM
852020-06-12 Simon Marchi <simon.marchi@efficios.com>
86
87 * README: Fix a few outdated or incoherent things.
88
6479bf85
HD
892020-05-27 Hannes Domani <ssbssa@yahoo.de>
90
91 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
92 (win32_clear_inferiors): Use open_process_used.
93 (get_child_debug_event): Likewise.
94
bea571eb
MW
952020-05-25 Michael Weghorn <m.weghorn@posteo.de>
96
97 PR gdbserver/25893
98 * linux-low.cc (linux_process_target::create_inferior),
99 lynx-low.cc (lynx_process_target::create_inferior),
100 win32-low.cc (win32_process_target::create_inferior): Use
101 construct_inferior_arguments instead of stringify_argv
102 to get string representation which properly escapes
103 special characters.
104 * server.cc (handle_v_run): Just pass empty program arg
105 as such, since any further processing is now handled via
106 construct_inferior_arguments.
107
ace6b919
MW
1082020-05-25 Michael Weghorn <m.weghorn@posteo.de>
109
110 * nto-low.cc (nto_process_target::create_inferior): Pass
111 argv to spawnp function as char **.
112
b69ca137
MW
1132020-05-25 Michael Weghorn <m.weghorn@posteo.de>
114
115 * server.cc (captured_main), (handle_v_run): No longer
116 insert extra NULL element to args vector.
117
51e2cfa2
PA
1182020-05-23 Pedro Alves <palves@redhat.com>
119
120 * gdb-safe-ctype.h: New.
121
8bbf0394
TBA
1222020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
123
124 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
125 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
126 (ia64_target::low_breakpoint_at): Ditto.
127
01370779
HD
1282020-05-15 Hannes Domani <ssbssa@yahoo.de>
129
130 * win32-i386-low.cc (i386_supports_z_point_type): Handle
131 Z_PACKET_HW_BP z_type.
132 (i386_insert_point): Handle raw_bkpt_type type.
133 (i386_remove_point): Likewise.
134
7d186bc0
HD
1352020-04-30 Hannes Domani <ssbssa@yahoo.de>
136
137 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
138 Add arch/i386.o.
139 * win32-arm-low.cc (arm_num_regs): New function.
140 (struct win32_target_ops): Use arm_num_regs.
141 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
142 processes.
143 (i386_get_thread_context): Likewise.
144 (i386_prepare_to_resume): Likewise.
145 (i386_thread_added): Likewise.
146 (i386_single_step): Likewise.
147 (i386_fetch_inferior_register): Likewise.
148 (i386_store_inferior_register): Likewise.
149 (i386_arch_setup): Likewise.
150 (i386_win32_num_regs): New function.
151 (struct win32_target_ops): Use i386_win32_num_regs.
152 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
153 processes.
154 (win32_require_context): Likewise.
155 (child_add_thread): Likewise.
156 (do_initial_child_stuff): Likewise.
157 (continue_one_thread): Likewise.
158 (win32_process_target::resume): Likewise.
159 (load_psapi): Likewise.
160 (win32_add_all_dlls): Likewise.
161 (maybe_adjust_pc): Likewise.
162 (win32_process_target::qxfer_siginfo): Likewise.
163 (initialize_low): Likewise.
164 * win32-low.h (struct win32_target_ops): Change num_regs to
165 callback function.
166
1eb39914
SM
1672020-04-27 Simon Marchi <simon.marchi@efficios.com>
168
169 * configure.ac: Remove check for fs_base/gs_base in
170 user_regs_struct.
171 * configure: Re-generate.
172 * config.in: Re-generate.
173 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
174 x86_store_gregset): Adjust.
175
51ac8e22
HD
1762020-04-22 Hannes Domani <ssbssa@yahoo.de>
177
178 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
179 comparison.
180
a010605f
TT
1812020-04-16 Tom Tromey <tromey@adacore.com>
182
183 * win32-low.cc (windows_nat::handle_access_violation): New
184 function.
185
e2275c6e
SM
1862020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
187
188 * win32-low.cc (get_child_debug_event): Fix format string warning.
189
73944e9f
TT
1902020-04-13 Tom Tromey <tom@tromey.com>
191
192 * server.h (gdb_fildes_t): Remove typedef.
193 * remote-utils.c (remote_desc, list_desc): Now int.
194 (INVALID_DESCRIPTOR): Remove.
195 (gdb_connected, remote_close)
196 (check_remote_input_interrupt_request): Update.
197 * utils.h (pfildes): Don't declare.
198 * utils.c (pfildes): Remove.
199
55d7aec8
TT
2002020-04-13 Tom Tromey <tom@tromey.com>
201
202 * server.h (handle_serial_event, handle_target_event): Update.
203 * server.c: Don't call initialize_event_loop.
204 (keep_processing_events): New global.
205 (handle_serial_event): Return void. Set keep_processing_events.
206 (handle_target_event): Return void.
207 (start_event_loop): Move from event-loop.c. Rewrite.
208 * remote-utils.c (handle_accept_event): Return void.
209 (reset_readchar): Use delete_timer.
210 (process_remaining): Return void.
211 (reschedule): Use create_timer.
212 * event-loop.h: Remove.
213 * event-loop.cc: Remove.
214 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
215
e487f994
TT
2162020-04-13 Tom Tromey <tom@tromey.com>
217
218 * server.c (invoke_async_signal_handlers)
219 (check_async_event_handlers, flush_streams, gdb_select): New
220 functions.
221
8ae8e197
TT
2222020-04-13 Tom Tromey <tom@tromey.com>
223
224 * configure: Rebuild.
225 * config.in: Rebuild.
226
360ad8b3
TT
2272020-04-08 Tom Tromey <tromey@adacore.com>
228
229 PR gdb/22992
230 * win32-low.c (child_continue): Call matching_pending_stop.
231 (get_child_debug_event): Call fetch_pending_stop. Push pending
232 stop when needed.
233
523d4f80
TT
2342020-04-08 Tom Tromey <tromey@adacore.com>
235
236 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
237 (win32_process_target::supports_stopped_by_sw_breakpoint):
238 Declare.
239 * win32-low.c (win32_supports_z_point_type): Always handle
240 Z_PACKET_SW_BP.
241 (win32_insert_point): Call insert_memory_breakpoint when needed.
242 (win32_remove_point): Call remove_memory_breakpoint when needed.
243 (win32_process_target::stopped_by_sw_breakpoint)
244 (win32_process_target::supports_stopped_by_sw_breakpoint): New
245 methods.
246 (win32_target_ops): Update.
247 (maybe_adjust_pc): New function.
248 (win32_wait): Call maybe_adjust_pc.
249
e54e5929
TT
2502020-04-08 Tom Tromey <tromey@adacore.com>
251
252 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
253 field.
254 * win32-i386-low.c (the_low_target): Update.
255 * win32-arm-low.c (the_low_target): Update.
256
d6225aff
TT
2572020-04-08 Tom Tromey <tromey@adacore.com>
258
259 * win32-low.h (win32_process_target::read_pc)
260 (win32_process_target::write_pc): Declare.
261 * win32-low.c (win32_process_target::read_pc)
262 (win32_process_target::write_pc): New methods.
263 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
264 functions.
265 (the_low_target): Update.
266 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
267 functions.
268 (the_low_target): Update.
269
2c1d95e8
TT
2702020-04-08 Tom Tromey <tromey@adacore.com>
271
272 * win32-low.c (win32_kill, get_child_debug_event): Use
273 wait_for_debug_event.
274
e758e19c
TT
2752020-04-08 Tom Tromey <tromey@adacore.com>
276
277 * win32-low.c (child_continue): Call continue_last_debug_event.
278
8d30e395
TT
2792020-04-08 Tom Tromey <tromey@adacore.com>
280
281 * win32-low.c (handle_exception): Remove.
282 (windows_nat::handle_ms_vc_exception): New function.
283 (get_child_debug_event): Add "continue_status" parameter.
284 Update.
285 (win32_wait): Update.
286
a816ba18
TT
2872020-04-08 Tom Tromey <tromey@adacore.com>
288
289 * win32-low.c (windows_nat::handle_load_dll): Rename from
290 handle_load_dll. No longer static.
291 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
292 No longer static.
293
d41b524f
TT
2942020-04-08 Tom Tromey <tromey@adacore.com>
295
296 * win32-low.c (handle_output_debug_string): Add parameter. Change
297 return type.
298 (win32_kill, get_child_debug_event): Update.
299
3c76026d
TT
3002020-04-08 Tom Tromey <tromey@adacore.com>
301
302 * win32-low.c (current_process_handle, current_process_id)
303 (main_thread_id, last_sig, current_event, siginfo_er): Move to
304 nat/windows-nat.c.
305
9d8679cc
TT
3062020-04-08 Tom Tromey <tromey@adacore.com>
307
308 * win32-low.c (get_image_name): Remove.
309 (handle_load_dll): Update.
310
28688adf
TT
3112020-04-08 Tom Tromey <tromey@adacore.com>
312
313 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
314 No longer static. Change parameters.
315 (child_add_thread, child_fetch_inferior_registers)
316 (child_store_inferior_registers, win32_resume)
317 (win32_get_tib_address): Update.
318
4834dad0
TT
3192020-04-08 Tom Tromey <tromey@adacore.com>
320
321 * win32-low.h (struct win32_target_ops): Use qualified names where
322 needed.
323 * win32-i386-low.c: Add "using namespace".
324 * win32-low.c: Add "using namespace".
325 * win32-arm-low.c: Add "using namespace".
326
65bafd5b
TT
3272020-04-08 Tom Tromey <tromey@adacore.com>
328
329 * win32-low.c (delete_thread_info): Don't call CloseHandle.
330
98a03287
TT
3312020-04-08 Tom Tromey <tromey@adacore.com>
332
333 * win32-low.c (win32_require_context, suspend_one_thread): Use
334 windows_thread_info::suspend.
335 (continue_one_thread): Use windows_thread_info::resume.
336 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
337
62fe396b
TT
3382020-04-08 Tom Tromey <tromey@adacore.com>
339
340 * win32-i386-low.c (update_debug_registers)
341 (i386_prepare_to_resume, i386_thread_added): Update.
342
e9534bd2
TT
3432020-04-08 Tom Tromey <tromey@adacore.com>
344
345 * win32-low.c (child_add_thread): Use new.
346 (delete_thread_info): Use delete.
347
ae1f8880
TT
3482020-04-08 Tom Tromey <tromey@adacore.com>
349
350 * win32-low.h (struct windows_thread_info): Remove.
351
e56f8ccb
TT
3522020-04-08 Tom Tromey <tromey@adacore.com>
353
354 * win32-low.h (struct windows_thread_info): Rename from
355 win32_thread_info. Remove typedef.
356 (struct win32_target_ops, win32_require_context): Update.
357 * win32-low.c (win32_get_thread_context)
358 (win32_set_thread_context, win32_prepare_to_resume)
359 (win32_require_context, thread_rec, child_add_thread)
360 (delete_thread_info, continue_one_thread)
361 (child_fetch_inferior_registers, child_store_inferior_registers)
362 (win32_resume, suspend_one_thread, win32_get_tib_address):
363 Update.
364 * win32-i386-low.c (update_debug_registers)
365 (win32_get_current_dr, i386_get_thread_context)
366 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
367 (i386_fetch_inferior_register, i386_store_inferior_register):
368 Update.
369 * win32-arm-low.c (arm_get_thread_context)
370 (arm_fetch_inferior_register, arm_store_inferior_register):
371 Update.
372
0dd7b52e
TBA
3732020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
374
375 * linux-low.h (struct linux_target_ops): Remove.
376 (the_low_target): Remove.
377 * linux-x86-low.cc (the_low_target): Remove.
378 * linux-aarch64-low.cc (the_low_target): Ditto.
379 * linux-arm-low.cc (the_low_target): Ditto.
380 * linux-bfin-low.cc (the_low_target): Ditto.
381 * linux-cris-low.cc (the_low_target): Ditto.
382 * linux-crisv32-low.cc (the_low_target): Ditto.
383 * linux-ia64-low.cc (the_low_target): Ditto.
384 * linux-m32r-low.cc (the_low_target): Ditto.
385 * linux-m68k-low.cc (the_low_target): Ditto.
386 * linux-mips-low.cc (the_low_target): Ditto.
387 * linux-nios2-low.cc (the_low_target): Ditto.
388 * linux-ppc-low.cc (the_low_target): Ditto.
389 * linux-riscv-low.cc (the_low_target): Ditto.
390 * linux-s390-low.cc (the_low_target): Ditto.
391 * linux-sh-low.cc (the_low_target): Ditto.
392 * linux-sparc-low.cc (the_low_target): Ditto.
393 * linux-tic6x-low.cc (the_low_target): Ditto.
394 * linux-tile-low.cc (the_low_target): Ditto.
395 * linux-xtensa-low.cc (the_low_target): Ditto.
396
fc5ecdb6
TBA
3972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
398
399 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
400 linux target define the op by overriding the declaration in
401 process_stratum_target.
402
403 * linux-low.h (struct linux_target_ops): Remove the op.
404 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
405 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
406 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
407 (x86_get_ipa_tdesc_idx): Turn into...
408 (x86_target::get_ipa_tdesc_idx): ...this.
409 (the_low_target): Remove the op field.
410 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
411 (ppc_get_ipa_tdesc_idx): Turn into...
412 (ppc_target::get_ipa_tdesc_idx): ...this.
413 (the_low_target): Remove the op field.
414 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
415 (s390_get_ipa_tdesc_idx): Turn into...
416 (s390_target::get_ipa_tdesc_idx): ...this.
417 (the_low_target): Remove the op field.
418
9eedd27d
TBA
4192020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
420
421 Turn the 'get_syscall_trapinfo' linux target op into a method
422 of process_stratum_target.
423
424 * linux-low.h (struct linux_target_ops): Remove the op.
425 (class linux_process_target) <get_syscall_trapinfo>
426 <gdb_catch_this_syscall>
427 <low_supports_catch_syscall>
428 <low_get_syscall_trapinfo>: Declare.
429 * linux-low.cc (get_syscall_trapinfo): Turn into...
430 (linux_process_target::get_syscall_trapinfo): ...this.
431 (linux_process_target::low_get_syscall_trapinfo): Define.
432 (gdb_catch_this_syscall_p): Turn into...
433 (linux_process_target::gdb_catch_this_syscall): ...this.
434 (linux_process_target::low_supports_catch_syscall): Define.
435
436 Update the callers below.
437
438 (linux_process_target::wait_1)
439 (linux_process_target::supports_catch_syscall)
440
441 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
442 <low_get_syscall_trapinfo>: Declare.
443 (x86_target::low_supports_catch_syscall): Define.
444 (x86_get_syscall_trapinfo): Turn into...
445 (x86_target::low_get_syscall_trapinfo): ...this.
446 (the_low_target): Remove the op field.
447 * linux-aarch64-low.cc (class aarch64_target)
448 <low_supports_catch_syscall>
449 <low_get_syscall_trapinfo>: Declare.
450 (aarch64_target::low_supports_catch_syscall): Define.
451 (aarch64_get_syscall_trapinfo): Turn into...
452 (aarch64_target::low_get_syscall_trapinfo): ...this.
453 (the_low_target): Remove the op field.
454 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
455 <low_get_syscall_trapinfo>: Declare.
456 (arm_target::low_supports_catch_syscall): Define.
457 (arm_get_syscall_trapinfo): Turn into...
458 (arm_target::low_get_syscall_trapinfo): ...this.
459 (the_low_target): Remove the op field.
460 * linux-ppc-low.cc (the_low_target): Remove the op field.
461 * linux-s390-low.cc (the_low_target): Remove the op field.
462
b31cdfa6
TBA
4632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
464
465 Remove the 'supports_hardware_single_step' linux target op and
466 override the process_stratum_target's op definition in
467 linux_process_target to return true.
468
469 * linux-low.h (struct linux_target_ops): Remove the op.
470 (class linux_process_target) <finish_step_over>
471 <maybe_hw_step>: Declare.
472 * linux-low.cc (can_hardware_single_step): Remove.
473 (maybe_hw_step): Turn into...
474 (linux_process_target::maybe_hw_step): ...this.
475 (finish_step_over): Turn into...
476 (linux_process_target::finish_step_over): ...this.
477 (linux_process_target::supports_hardware_single_step): Update
478 to return true.
479
480 Update the callers below.
481
482 (linux_process_target::single_step)
483 (linux_process_target::resume_one_lwp_throw)
484
485 * linux-arm-low.cc (class arm_target)
486 <supports_hardware_single_step>: Declare.
487 (arm_supports_hardware_single_step): Turn into...
488 (arm_target::supports_hardware_single_step): ...this.
489 (the_low_target): Remove the op field.
490 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
491 (the_low_target): Remove the op field.
492 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
493 Remove.
494 (the_low_target): Remove the op field.
495 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
496 (the_low_target): Remove the op field.
497 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
498 (the_low_target): Remove the op field.
499 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
500 (the_low_target): Remove the op field.
501 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
502 (the_low_target): Remove the op field.
503 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
504 (the_low_target): Remove the op field.
505 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
506 (the_low_target): Remove the op field.
507 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
508 (the_low_target): Remove the op field.
509 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
510 (the_low_target): Remove the op field.
511 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
512 (the_low_target): Remove the op field.
513 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
514 Remove.
515 (the_low_target): Remove the op field.
516
9cfd8715
TBA
5172020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
518
519 Turn the 'supports_range_stepping' linux target op into a method
520 of linux_process_target.
521
522 * linux-low.h (struct linux_target_ops): Remove the op.
523 (class linux_process_target) <low_supports_range_stepping>: Declare.
524 * linux-low.cc (linux_process_target::low_supports_range_stepping):
525 Define.
526 (linux_process_target::supports_range_stepping): Update the call
527 site.
528 * linux-x86-low.cc (class x86_target)
529 <low_supports_range_stepping>: Declare.
530 (x86_supports_range_stepping): Turn into...
531 (x86_target::low_supports_range_stepping): ...this.
532 (the_low_target): Remove the op field.
533 * linux-aarch64-low.cc (class aarch64_target)
534 <low_supports_range_stepping>: Declare.
535 (aarch64_supports_range_stepping): Turn into...
536 (aarch64_target::low_supports_range_stepping): ...this.
537 (the_low_target): Remove the op field.
538 * linux-arm-low.cc (the_low_target): Remove the op field.
539 * linux-bfin-low.cc (the_low_target): Ditto.
540 * linux-crisv32-low.cc (the_low_target): Ditto.
541 * linux-m32r-low.cc (the_low_target): Ditto.
542 * linux-m68k-low.cc (the_low_target): Ditto.
543 * linux-ppc-low.cc (the_low_target): Ditto.
544 * linux-s390-low.cc (the_low_target): Ditto.
545 * linux-sh-low.cc (the_low_target): Ditto.
546 * linux-tic6x-low.cc (the_low_target): Ditto.
547 * linux-tile-low.cc (the_low_target): Ditto.
548 * linux-xtensa-low.cc (the_low_target): Ditto.
549
ab64c999
TBA
5502020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
551
552 Remove the 'emit_ops' linux target ops and let the concrete
553 linux target define the op by overriding the declaration of
554 process_stratum_target.
555
556 * linux-low.h (struct linux_target_ops): Remove the op.
557 (class linux_process_target) <emit_ops>: Remove.
558 * linux-low.cc (linux_process_target::emit_ops): Remove.
559 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
560 (x86_emit_ops): Turn into...
561 (x86_target::emit_ops): ...this.
562 (the_low_target): Remove the op field.
563 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
564 (aarch64_emit_ops): Turn into...
565 (aarch64_target::emit_ops): ...this.
566 (the_low_target): Remove the op field.
567 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
568 (ppc_emit_ops): Turn into...
569 (ppc_target::emit_ops): ...this.
570 (the_low_target): Remove the op field.
571 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
572 (s390_emit_ops): Turn into...
573 (s390_target::emit_ops): ...this.
574 (the_low_target): Remove the op field.
575 * linux-arm-low.cc (the_low_target): Remove the op field.
576 * linux-bfin-low.cc (the_low_target): Ditto.
577 * linux-crisv32-low.cc (the_low_target): Ditto.
578 * linux-m32r-low.cc (the_low_target): Ditto.
579 * linux-m68k-low.cc (the_low_target): Ditto.
580 * linux-sh-low.cc (the_low_target): Ditto.
581 * linux-tic6x-low.cc (the_low_target): Ditto.
582 * linux-tile-low.cc (the_low_target): Ditto.
583 * linux-xtensa-low.cc (the_low_target): Ditto.
584
809a0c35
TBA
5852020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
586
587 Remove the 'install_fast_tracepoint_jump_pad' and
588 'get_min_fast_tracepoint_insn_len' linux target ops to let the
589 concrete linux target define the ops by overriding the declarations
590 of process_stratum_target.
591
592 * linux-low.h (struct linux_target_ops): Remove the ops.
593 (class linux_process_target) <supports_fast_tracepoints>
594 <install_fast_tracepoint_jump_pad>
595 <get_min_fast_tracepoint_insn_len>: Remove.
596 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
597 (linux_process_target::install_fast_tracepoint_jump_pad)
598 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
599 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
600 <install_fast_tracepoint_jump_pad>
601 <get_min_fast_tracepoint_insn_len>: Declare.
602 (x86_target::supports_fast_tracepoints): Define.
603 (x86_install_fast_tracepoint_jump_pad): Turn into...
604 (x86_target::install_fast_tracepoint_jump_pad): ...this.
605 (x86_get_min_fast_tracepoint_insn_len): Turn into...
606 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
607 (the_low_target): Remove the op fields.
608 * linux-aarch64-low.cc (class aarch64_target)
609 <supports_fast_tracepoints>
610 <install_fast_tracepoint_jump_pad>
611 <get_min_fast_tracepoint_insn_len>: Declare.
612 (aarch64_target::supports_fast_tracepoints): Define.
613 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
614 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
615 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
616 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
617 (the_low_target): Remove the op fields.
618 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
619 <install_fast_tracepoint_jump_pad>
620 <get_min_fast_tracepoint_insn_len>: Declare.
621 (ppc_target::supports_fast_tracepoints): Define.
622 (ppc_install_fast_tracepoint_jump_pad): Turn into...
623 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
624 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
625 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
626 (the_low_target): Remove the op fields.
627 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
628 <install_fast_tracepoint_jump_pad>
629 <get_min_fast_tracepoint_insn_len>: Declare.
630 (s390_target::supports_fast_tracepoints): Define.
631 (s390_install_fast_tracepoint_jump_pad): Turn into...
632 (s390_target::install_fast_tracepoint_jump_pad): ...this.
633 (s390_get_min_fast_tracepoint_insn_len): Turn into...
634 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
635 (the_low_target): Remove the op fields.
636 * linux-arm-low.cc (the_low_target): Remove the op fields.
637 * linux-bfin-low.cc (the_low_target): Ditto.
638 * linux-crisv32-low.cc (the_low_target): Ditto.
639 * linux-m32r-low.cc (the_low_target): Ditto.
640 * linux-m68k-low.cc (the_low_target): Ditto.
641 * linux-sh-low.cc (the_low_target): Ditto.
642 * linux-tic6x-low.cc (the_low_target): Ditto.
643 * linux-tile-low.cc (the_low_target): Ditto.
644 * linux-xtensa-low.cc (the_low_target): Ditto.
645
13e567af
TBA
6462020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
647
648 Turn the 'get_thread_area' linux target op into a method of
649 process_stratum_target.
650
651 * linux-low.h (struct linux_target_ops): Remove the op.
652 (class linux_process_target) <stuck_in_jump_pad>
653 <linux_fast_tracepoint_collecting>
654 <low_get_thread_area>: Declare.
655 * linux-low.cc (supports_fast_tracepoints): Remove.
656 (linux_fast_tracepoint_collecting): Turn into...
657 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
658 (linux_process_target::low_get_thread_area): Define.
659 (stuck_in_jump_pad_callback): Turn into...
660 (linux_process_target::stuck_in_jump_pad): ...this.
661
662 Update the caller below.
663
664 (linux_process_target::stabilize_threads)
665
666 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
667 Declare.
668 (x86_get_thread_area): Turn into...
669 (x86_target::low_get_thread_area): ...this.
670 (the_low_target): Remove the op field.
671 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
672 Declare.
673 (aarch64_get_thread_area): Turn into...
674 (aarch64_target::low_get_thread_area): ...this.
675 (the_low_target): Remove the op field.
676 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
677 Declare.
678 (ppc_get_thread_area): Turn into...
679 (ppc_target::low_get_thread_area): ...this.
680 (the_low_target): Remove the op field.
681 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
682 Declare.
683 (s390_get_thread_area): Turn into...
684 (s390_target::low_get_thread_area): ...this.
685 (the_low_target): Remove the op field.
686 * linux-arm-low.cc (the_low_target): Remove the op field.
687 * linux-bfin-low.cc (the_low_target): Ditto.
688 * linux-crisv32-low.cc (the_low_target): Ditto.
689 * linux-m32r-low.cc (the_low_target): Ditto.
690 * linux-m68k-low.cc (the_low_target): Ditto.
691 * linux-sh-low.cc (the_low_target): Ditto.
692 * linux-tic6x-low.cc (the_low_target): Ditto.
693 * linux-tile-low.cc (the_low_target): Ditto.
694 * linux-xtensa-low.cc (the_low_target): Ditto.
695
47f70aa7
TBA
6962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
697
698 Remote the 'supports_tracepoints' linux target op and let the
699 concrete linux target define it by overriding the op declared in
700 process_stratum_target.
701
702 * linux-low.h (struct linux_target_ops): Remove the op.
703 (class linux_process_target) <supports_tracepoints>: Remove.
704 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
705 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
706 Declare.
707 (x86_supports_tracepoints): Turn into...
708 (x86_target::supports_tracepoints): ...this.
709 (the_low_target): Remove the op field.
710 * linux-aarch64-low.cc (class aarch64_target)
711 <supports_tracepoints>: Declare.
712 (aarch64_supports_tracepoints): Turn into...
713 (aarch64_target::supports_tracepoints): ...this.
714 (the_low_target): Remove the op field.
715 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
716 Declare.
717 (ppc_supports_tracepoints): Turn into...
718 (ppc_target::supports_tracepoints): ...this.
719 (the_low_target): Remove the op field.
720 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
721 Declare.
722 (s390_supports_tracepoints): Turn into...
723 (s390_target::supports_tracepoints): ...this.
724 (the_low_target): Remove the op field.
725 * linux-arm-low.cc (the_low_target): Remove the op field.
726 * linux-bfin-low.cc (the_low_target): Ditto.
727 * linux-crisv32-low.cc (the_low_target): Ditto.
728 * linux-m32r-low.cc (the_low_target): Ditto.
729 * linux-m68k-low.cc (the_low_target): Ditto.
730 * linux-sh-low.cc (the_low_target): Ditto.
731 * linux-tic6x-low.cc (the_low_target): Ditto.
732 * linux-tile-low.cc (the_low_target): Ditto.
733 * linux-xtensa-low.cc (the_low_target): Ditto.
734
a5b5da92
TBA
7352020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
736
737 Remove the 'process_qsupported' linux target op and let a concrete
738 linux target define the op by overriding the op declaration in
739 process_stratum_target.
740
741 * linux-low.h (struct linux_target_ops): Remove the op.
742 (class linux_process_target) <process_qsupported>: Remove.
743 * linux-low.cc (linux_process_target::process_qsupported): Remove.
744 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
745 (x86_linux_process_qsupported): Turn into...
746 (x86_target::process_qsupported): ...this.
747 (the_low_target): Remove the op field.
748 * linux-aarch64-low.cc (the_low_target): Remove the op
749 field.
750 * linux-arm-low.cc (the_low_target): Ditto.
751 * linux-bfin-low.cc (the_low_target): Ditto.
752 * linux-crisv32-low.cc (the_low_target): Ditto.
753 * linux-m32r-low.cc (the_low_target): Ditto.
754 * linux-m68k-low.cc (the_low_target): Ditto.
755 * linux-ppc-low.cc (the_low_target): Ditto.
756 * linux-s390-low.cc (the_low_target): Ditto.
757 * linux-sh-low.cc (the_low_target): Ditto.
758 * linux-tic6x-low.cc (the_low_target): Ditto.
759 * linux-tile-low.cc (the_low_target): Ditto.
760 * linux-xtensa-low.cc (the_low_target): Ditto.
761
d7599cc0
TBA
7622020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
763
764 Turn the 'prepare_to_resume' linux target op into a method of
765 linux_process_target.
766
767 * linux-low.h (struct linux_target_ops): Remove the op.
768 (class linux_process_target) <low_prepare_to_resume>: Declare.
769 * linux-low.cc (linux_process_target::low_prepare_to_resume):
770 Define.
771
772 Update the callers below:
773
774 (linux_process_target::resume_one_lwp_throw)
775 (linux_process_target::low_prepare_to_resume)
776
777 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
778 Declare.
779 (x86_target::low_prepare_to_resume): Define.
780 (the_low_target): Remove the op field.
781 * linux-aarch64-low.cc (class aarch64_target)
782 <low_prepare_to_resume>: Declare.
783 (aarch64_target::low_prepare_to_resume): Define.
784 (the_low_target): Remove the op field.
785 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
786 Declare.
787 (arm_prepare_to_resume): Turn into...
788 (arm_target::low_prepare_to_resume): ...this.
789 (the_low_target): Remove the op field.
790 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
791 Declare.
792 (mips_linux_prepare_to_resume): Turn into...
793 (mips_target::low_prepare_to_resume): ...this.
794 (the_low_target): Remove the op field.
795 * linux-bfin-low.cc (the_low_target): Remove the op field.
796 * linux-crisv32-low.cc (the_low_target): Ditto.
797 * linux-m32r-low.cc (the_low_target): Ditto.
798 * linux-m68k-low.cc (the_low_target): Ditto.
799 * linux-ppc-low.cc (the_low_target): Ditto.
800 * linux-s390-low.cc (the_low_target): Ditto.
801 * linux-sh-low.cc (the_low_target): Ditto.
802 * linux-tic6x-low.cc (the_low_target): Ditto.
803 * linux-tile-low.cc (the_low_target): Ditto.
804 * linux-xtensa-low.cc (the_low_target): Ditto.
805
fd000fb3
TBA
8062020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
807
808 Turn the 'new_process', 'delete_process', 'new_thread',
809 'delete_thread', and 'new_fork' linux target ops into methods
810 of linux_process_target.
811
812 * linux-low.h (struct linux_target_ops): Remove the ops.
813 (class linux_process_target) <add_linux_process>
814 <add_lwp>
815 <delete_lwp>
816 <attach_lwp>
817 <detach_one_lwp>
818 <check_zombie_leaders>
819 <filter_exit_event>
820 <low_new_process>
821 <low_delete_process>
822 <low_new_thread>
823 <low_delete_thread>
824 <low_new_fork>: Declare.
825 * linux-low.cc (delete_lwp): Turn into...
826 (linux_process_target::delete_lwp): ...this.
827 (linux_process_target::low_delete_thread): Define.
828 (linux_add_process): Turn into...
829 (linux_process_target::add_linux_process): ...this.
830 (linux_process_target::low_new_process): Define.
831 (linux_process_target::low_delete_process): Define.
832 (linux_process_target::low_new_fork): Define.
833 (add_lwp): Turn into...
834 (linux_process_target::add_lwp): ...this.
835 (linux_process_target::low_new_thread): Define.
836 (linux_attach_lwp): Turn into...
837 (linux_process_target::attach_lwp): ...this.
838 (linux_detach_one_lwp): Turn into...
839 (linux_process_target::detach_one_lwp): ...this.
840 (linux_detach_lwp_callback): Remove and inline...
841 (linux_process_target::detach): ...here.
842 (check_zombie_leaders): Turn into...
843 (linux_process_target::check_zombie_leaders): ...this.
844 (filter_exit_event): Turn into...
845 (linux_process_target::filter_exit_event): ...this.
846
847 Update the callers below.
848
849 (linux_process_target::handle_extended_wait)
850 (linux_process_target::create_inferior)
851 (attach_proc_task_lwp_callback)
852 (linux_process_target::attach)
853 (linux_process_target::detach)
854 (linux_process_target::mourn)
855 * thread-db.cc (attach_thread)
856
857 * linux-x86-low.cc (class x86_target) <low_new_process>
858 <low_delete_process>
859 <low_new_thread>
860 <low_delete_thread>
861 <low_new_fork>: Declare.
862 (x86_linux_new_process): Turn into...
863 (x86_target::low_new_process): ...this.
864 (x86_linux_delete_process): Turn into...
865 (x86_target::low_delete_process): ...this.
866 (x86_target::low_new_thread): Define.
867 (x86_target::low_delete_thread): Define.
868 (x86_linux_new_fork): Turn into...
869 (x86_target::low_new_fork): ...this.
870 (the_low_target): Remove the op fields.
871 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
872 <low_delete_process>
873 <low_new_thread>
874 <low_delete_thread>
875 <low_new_fork>: Declare.
876 (aarch64_linux_new_process): Turn into...
877 (aarch64_target::low_new_process): ...this.
878 (aarch64_linux_delete_process): Turn into...
879 (aarch64_target::low_delete_process): ...this.
880 (aarch64_target::low_new_thread): Define.
881 (aarch64_target::low_delete_thread): Define.
882 (aarch64_linux_new_fork): Turn into...
883 (aarch64_target::low_new_fork): ...this.
884 (the_low_target): Remove the op fields.
885 * linux-arm-low.cc (class arm_target) <low_new_process>
886 <low_delete_process>
887 <low_new_thread>
888 <low_delete_thread>
889 <low_new_fork>: Declare.
890 (arm_new_process): Turn into...
891 (arm_target::low_new_process): ...this.
892 (arm_delete_process): Turn into...
893 (arm_target::low_delete_process): ...this.
894 (arm_new_thread): Turn into...
895 (arm_target::low_new_thread): ...this.
896 (arm_delete_thread): Turn into...
897 (arm_target::low_delete_thread): ...this.
898 (arm_new_fork): Turn into...
899 (arm_target::low_new_fork): ...this.
900 (the_low_target): Remove the op fields.
901 * linux-mips-low.cc (class mips_target) <low_new_process>
902 <low_delete_process>
903 <low_new_thread>
904 <low_delete_thread>
905 <low_new_fork>: Declare.
906 (mips_linux_new_process): Turn into...
907 (mips_target::low_new_process): ...this.
908 (mips_linux_delete_process): Turn into...
909 (mips_target::low_delete_process): ...this.
910 (mips_linux_new_thread): Turn into...
911 (mips_target::low_new_thread): ...this.
912 (mips_linux_delete_thread): Turn into...
913 (mips_target::low_delete_thread): ...this.
914 (mips_linux_new_fork): Turn into...
915 (mips_target::low_new_fork): ...this.
916 (the_low_target): Remove the op fields.
917 * linux-bfin-low.cc (the_low_target): Remove the op fields.
918 * linux-crisv32-low.cc (the_low_target): Ditto.
919 * linux-m32r-low.cc (the_low_target): Ditto.
920 * linux-m68k-low.cc (the_low_target): Ditto.
921 * linux-ppc-low.cc (the_low_target): Ditto.
922 * linux-s390-low.cc (the_low_target): Ditto.
923 * linux-sh-low.cc (the_low_target): Ditto.
924 * linux-tic6x-low.cc (the_low_target): Ditto.
925 * linux-tile-low.cc (the_low_target): Ditto.
926 * linux-xtensa-low.cc (the_low_target): Ditto.
927
cb63de7c
TBA
9282020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
929
930 Turn the 'siginfo_fixup' linux target op into a method of
931 linux_process_target.
932
933 * linux-low.h (struct linux_target_ops): Remove the op.
934 (class linux_process_target) <siginfo_fixup>
935 <low_siginfo_fixup>: Declare.
936 * linux-low.cc (siginfo_fixup): Turn into...
937 (linux_process_target::siginfo_fixup): ...this.
938 (linux_process_target::low_siginfo_fixup): Define.
939 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
940 (x86_siginfo_fixup): Turn into...
941 (x86_target::low_siginfo_fixup): ...this.
942 (the_low_target): Remove the op field.
943 * linux-aarch64-low.cc (class aarch64_target):
944 <low_siginfo_fixup>: Declare.
945 (aarch64_linux_siginfo_fixup): Turn into...
946 (aarch64_target::low_siginfo_fixup): ...this.
947 (the_low_target): Remove the op field.
948 * linux-arm-low.cc (the_low_target): Remove the op field.
949 * linux-bfin-low.cc (the_low_target): Ditto.
950 * linux-crisv32-low.cc (the_low_target): Ditto.
951 * linux-m32r-low.cc (the_low_target): Ditto.
952 * linux-m68k-low.cc (the_low_target): Ditto.
953 * linux-mips-low.cc (the_low_target): Ditto.
954 * linux-ppc-low.cc (the_low_target): Ditto.
955 * linux-s390-low.cc (the_low_target): Ditto.
956 * linux-sh-low.cc (the_low_target): Ditto.
957 * linux-tic6x-low.cc (the_low_target): Ditto.
958 * linux-tile-low.cc (the_low_target): Ditto.
959 * linux-xtensa-low.cc (the_low_target): Ditto.
960
b35db733
TBA
9612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
962
963 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
964 linux target ops into methods of linux_process_target.
965
966 * linux-low.h (struct linux_target_ops): Remove the ops.
967 (class linux_process_target) <low_collect_ptrace_register>
968 <low_store_ptrace_register>: Declare.
969 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
970 (linux_process_target::low_supply_ptrace_register): Define.
971
972 Update the callers below.
973
974 (linux_process_target::fetch_register)
975 (linux_process_target::store_register)
976
977 * linux-x86-low.cc (the_low_target): Remove the op fields.
978 * linux-aarch64-low.cc (the_low_target): Ditto.
979 * linux-arm-low.cc (the_low_target): Ditto.
980 * linux-bfin-low.cc (the_low_target): Ditto.
981 * linux-crisv32-low.cc (the_low_target): Ditto.
982 * linux-m32r-low.cc (the_low_target): Ditto.
983 * linux-m68k-low.cc (the_low_target): Ditto.
984 * linux-sh-low.cc (the_low_target): Ditto.
985 * linux-sparc-low.cc (the_low_target): Ditto.
986 * linux-tic6x-low.cc (the_low_target): Ditto.
987 * linux-tile-low.cc (the_low_target): Ditto.
988 * linux-xtensa-low.cc (the_low_target): Ditto.
989 * linux-mips-low.cc (class mips_target)
990 <low_collect_ptrace_register>
991 <low_supply_ptrace_register>: Declare.
992 (mips_collect_ptrace_register): Turn into ...
993 (mips_target::low_collect_ptrace_register): ...this.
994 (mips_supply_ptrace_register): Turn into...
995 (mips_target::low_supply_ptrace_register): ...this.
996 (the_low_target): Remove the op fields.
997 * linux-ppc-low.cc (class ppc_target)
998 <low_collect_ptrace_register>
999 <low_supply_ptrace_register>: Declare.
1000 (ppc_collect_ptrace_register): Turn into ...
1001 (ppc_target::low_collect_ptrace_register): ...this.
1002 (ppc_supply_ptrace_register): Turn into ...
1003 (ppc_target::low_supply_ptrace_register): ...this.
1004 (ppc_fill_gregset): Update for the calls to
1005 low_collect_ptrace_register.
1006 (the_low_target): Remove the op fields.
1007 * linux-s390-low.cc (class s390_target)
1008 <low_collect_ptrace_register>
1009 <low_supply_ptrace_register>: Declare.
1010 (s390_collect_ptrace_register): Turn into ...
1011 (s390_target::low_collect_ptrace_register): ...this.
1012 (s390_supply_ptrace_register): Turn into ...
1013 (s390_target::low_supply_ptrace_register): ...this.
1014 (s390_fill_gregset): Update for the calls to
1015 low_collect_ptrace_register.
1016 (the_low_target): Remove the op fields.
1017
ac1bbaca
TBA
10182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1019
1020 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1021 target ops into methods of linux_process_target.
1022
1023 * linux-low.h (struct linux_target_ops): Remove the ops.
1024 (class linux_process_target) <check_stopped_by_watchpoint>
1025 <low_stopped_by_watchpoint>
1026 <low_stopped_data_address>: Declare.
1027 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1028 (linux_process_target::check_stopped_by_watchpoint): ...this.
1029 (linux_process_target::low_stopped_by_watchpoint): Define.
1030 (linux_process_target::low_stopped_data_address): Define.
1031 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1032 <low_stopped_data_address>: Declare.
1033 (x86_stopped_by_watchpoint): Turn into...
1034 (x86_target::low_stopped_by_watchpoint): ...this.
1035 (x86_stopped_data_address): Turn into...
1036 (x86_target::low_stopped_data_address): ...this.
1037 (the_low_target): Remove the op fields.
1038 * linux-aarch64-low.cc (class aarch64_target)
1039 <low_stopped_by_watchpoint>
1040 <low_stopped_data_address>: Declare.
1041 (aarch64_stopped_by_watchpoint): Turn into...
1042 (aarch64_target::low_stopped_by_watchpoint): ...this.
1043 (aarch64_stopped_data_address): Turn into...
1044 (aarch64_target::low_stopped_data_address): ...this.
1045 (the_low_target): Remove the op fields.
1046 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1047 <low_stopped_data_address>: Declare.
1048 (arm_stopped_by_watchpoint): Turn into...
1049 (arm_target::low_stopped_by_watchpoint): ...this.
1050 (arm_stopped_data_address): Turn into...
1051 (arm_target::low_stopped_data_address): ...this.
1052 (the_low_target): Remove the op fields.
1053 * linux-crisv32-low.cc (class crisv32_target)
1054 <low_stopped_by_watchpoint>
1055 <low_stopped_data_address>: Declare.
1056 (cris_stopped_by_watchpoint): Turn into...
1057 (crisv32_target::low_stopped_by_watchpoint): ...this.
1058 (cris_stopped_data_address): Turn into...
1059 (crisv32_target::low_stopped_data_address): ...this.
1060 (the_low_target): Remove the op fields.
1061 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1062 <low_stopped_data_address>: Declare.
1063 (mips_stopped_by_watchpoint): Turn into...
1064 (mips_target::low_stopped_by_watchpoint): ...this.
1065 (mips_stopped_data_address): Turn into...
1066 (mips_target::low_stopped_data_address): ...this.
1067 (the_low_target): Remove the op fields.
1068 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1069 * linux-m32r-low.cc (the_low_target): Ditto.
1070 * linux-m68k-low.cc (the_low_target): Ditto.
1071 * linux-ppc-low.cc (the_low_target): Ditto.
1072 * linux-s390-low.cc (the_low_target): Ditto.
1073 * linux-sh-low.cc (the_low_target): Ditto.
1074 * linux-sparc-low.cc (the_low_target): Ditto.
1075 * linux-tic6x-low.cc (the_low_target): Ditto.
1076 * linux-tile-low.cc (the_low_target): Ditto.
1077 * linux-xtensa-low.cc (the_low_target): Ditto.
1078
9db9aa23
TBA
10792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1080
1081 Turn the 'insert_point' and 'remove_point' linux target ops into
1082 methods of linux_process_target.
1083
1084 * linux-low.h (struct linux_target_ops): Remove the ops.
1085 (class linux_process_target) <low_insert_point>
1086 <low_remove_point>: Declare.
1087 * linux-low.cc (linux_process_target::low_insert_point)
1088 (linux_process_target::low_remove_point): Define.
1089 (linux_process_target::insert_point)
1090 (linux_process_target::remove_point): Update for calls to
1091 low_insert_point and low_remove_point.
1092 * linux-x86-low.cc (class x86_target) <low_insert_point>
1093 <low_remove_point>: Declare.
1094 (x86_insert_point): Turn into...
1095 (x86_target::low_insert_point): ...this.
1096 (x86_remove_point): Turn into...
1097 (x86_target::low_remove_point): ...this.
1098 (the_low_target): Remove the op fields.
1099 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1100 <low_remove_point>: Declare.
1101 (aarch64_insert_point): Turn into...
1102 (aarch64_target::low_insert_point): ...this.
1103 (aarch64_remove_point): Turn into...
1104 (aarch64_target::low_remove_point): ...this.
1105 (the_low_target): Remove the op fields.
1106 * linux-arm-low.cc (class arm_target) <low_insert_point>
1107 <low_remove_point>: Declare.
1108 (arm_insert_point): Turn into...
1109 (arm_target::low_insert_point): ...this.
1110 (arm_remove_point): Turn into...
1111 (arm_target::low_remove_point): ...this.
1112 (the_low_target): Remove the op fields.
1113 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1114 <low_remove_point>: Declare.
1115 (crisv32_insert_point): Turn into...
1116 (crisv32_target::low_insert_point): ...this.
1117 (crisv32_remove_point): Turn into...
1118 (crisv32_target::low_remove_point): ...this.
1119 (the_low_target): Remove the op fields.
1120 * linux-mips-low.cc (class mips_target) <low_insert_point>
1121 <low_remove_point>: Declare.
1122 (mips_insert_point): Turn into...
1123 (mips_target::low_insert_point): ...this.
1124 (mips_remove_point): Turn into...
1125 (mips_target::low_remove_point): ...this.
1126 (the_low_target): Remove the op fields.
1127 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1128 <low_remove_point>: Declare.
1129 (ppc_insert_point): Turn into...
1130 (ppc_target::low_insert_point): ...this.
1131 (ppc_remove_point): Turn into...
1132 (ppc_target::low_remove_point): ...this.
1133 (the_low_target): Remove the op fields.
1134 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1135 * linux-m32r-low.cc (the_low_target): Ditto.
1136 * linux-m68k-low.cc (the_low_target): Ditto.
1137 * linux-s390-low.cc (the_low_target): Ditto.
1138 * linux-sh-low.cc (the_low_target): Ditto.
1139 * linux-sparc-low.cc (the_low_target): Ditto.
1140 * linux-tic6x-low.cc (the_low_target): Ditto.
1141 * linux-tile-low.cc (the_low_target): Ditto.
1142 * linux-xtensa-low.cc (the_low_target): Ditto.
1143
007c9b97
TBA
11442020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1145
1146 Remove the 'supports_z_point_type' linux target op and let the
1147 concrete linux target define it by overriding the op declared in
1148 process_stratum_target.
1149
1150 * linux-low.cc (linux_process_target::supports_z_point_type):
1151 Remove.
1152 * linux-low.h (struct linux_target_ops): Remove the op.
1153 (class linux_process_target) <supports_z_point_type>: Remove.
1154 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1155 Declare.
1156 (x86_supports_z_point_type): Turn into...
1157 (x86_target::supports_z_point_type): ...this.
1158 (the_low_target): Remove the op field.
1159 * linux-aarch64-low.cc (class aarch64_target)
1160 <supports_z_point_type>: Declare.
1161 (aarch64_supports_z_point_type): Turn into...
1162 (aarch64_target::supports_z_point_type): ...this.
1163 (the_low_target): Remove the op field.
1164 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1165 Declare.
1166 (arm_supports_z_point_type): Turn into...
1167 (arm_target::supports_z_point_type): ...this.
1168 (the_low_target): Remove the op field.
1169 * linux-crisv32-low.cc (class crisv32_target)
1170 <supports_z_point_type>: Declare.
1171 (cris_supports_z_point_type): Turn into...
1172 (crisv32_target::supports_z_point_type): ...this.
1173 (the_low_target): Remove the op field.
1174 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1175 Declare.
1176 (mips_supports_z_point_type): Turn into...
1177 (mips_target::supports_z_point_type): ...this.
1178 (the_low_target): Remove the op field.
1179 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1180 Declare.
1181 (ppc_supports_z_point_type): Turn into...
1182 (ppc_target::supports_z_point_type): ...this.
1183 (the_low_target): Remove the op field.
1184 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1185 Declare.
1186 (s390_supports_z_point_type): Turn into...
1187 (s390_target::supports_z_point_type): ...this.
1188 (the_low_target): Remove the op field.
1189 * linux-bfin-low.cc (the_low_target): Remove the op field.
1190 * linux-m32r-low.cc (the_low_target): Ditto.
1191 * linux-m68k-low.cc (the_low_target): Ditto.
1192 * linux-sh-low.cc (the_low_target): Ditto.
1193 * linux-sparc-low.cc (the_low_target): Ditto.
1194 * linux-tic6x-low.cc (the_low_target): Ditto.
1195 * linux-tile-low.cc (the_low_target): Ditto.
1196 * linux-xtensa-low.cc (the_low_target): Ditto.
1197
d7146cda
TBA
11982020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1199
1200 Turn the 'breakpoint_at' linux target op into a method of
1201 linux_process_target.
1202
1203 * linux-low.h (struct linux_target_ops): Remove the op.
1204 (class linux_process_target) <low_breakpoint_at>: Declare.
1205
1206 Update the callers below:
1207
1208 * linux-low.cc (linux_process_target::save_stop_reason)
1209 (linux_process_target::thread_still_has_status_pending)
1210 (linux_process_target::wait_1)
1211
1212 * linux-x86-low.cc (class x86_target)
1213 <low_breakpoint_at>: Declare.
1214 (x86_breakpoint_at): Turn into...
1215 (x86_target::low_breakpoint_at): ...this.
1216 (the_low_target): Remove the op field.
1217 * linux-aarch64-low.cc (class aarch64_target)
1218 <low_breakpoint_at>: Declare.
1219 (aarch64_breakpoint_at): Turn into...
1220 (aarch64_target::low_breakpoint_at): ...this.
1221 (the_low_target): Remove the op field.
1222 * linux-arm-low.cc (class arm_target)
1223 <low_breakpoint_at>: Declare.
1224 (arm_target::low_breakpoint_at): Define.
1225 (the_low_target): Remove the op field.
1226 * linux-bfin-low.cc (class bfin_target)
1227 <low_breakpoint_at>: Declare.
1228 (bfin_breakpoint_at): Turn into...
1229 (bfin_target::low_breakpoint_at): ...this.
1230 (the_low_target): Remove the op field.
1231 * linux-cris-low.cc (class cris_target)
1232 <low_breakpoint_at>: Declare.
1233 (cris_breakpoint_at): Turn into...
1234 (cris_target::low_breakpoint_at): ...this.
1235 (the_low_target): Remove the op field.
1236 * linux-crisv32-low.cc (class crisv32_target)
1237 <low_breakpoint_at>: Declare.
1238 (crisv32_breakpoint_at): Turn into...
1239 (crisv32_target::low_breakpoint_at): ...this.
1240 (the_low_target): Remove the op field.
1241 * linux-ia64-low.cc (class ia64_target)
1242 <low_breakpoint_at>: Declare.
1243 (ia64_target::low_breakpoint_at): Define.
1244 * linux-m32r-low.cc (class m32r_target)
1245 <low_breakpoint_at>: Declare.
1246 (m32r_breakpoint_at): Turn into...
1247 (m32r_target::low_breakpoint_at): ...this.
1248 (the_low_target): Remove the op field.
1249 * linux-m68k-low.cc (class m68k_target)
1250 <low_breakpoint_at>: Declare.
1251 (m68k_breakpoint_at): Turn into...
1252 (m68k_target::low_breakpoint_at): ...this.
1253 (the_low_target): Remove the op field.
1254 * linux-mips-low.cc (class mips_target)
1255 <low_breakpoint_at>: Declare.
1256 (mips_breakpoint_at): Turn into...
1257 (mips_target::low_breakpoint_at): ...this.
1258 (the_low_target): Remove the op field.
1259 * linux-nios2-low.cc (class nios2_target)
1260 <low_breakpoint_at>: Declare.
1261 (nios2_breakpoint_at): Turn into...
1262 (nios2_target::low_breakpoint_at): ...this.
1263 (the_low_target): Remove the op field.
1264 * linux-ppc-low.cc (class ppc_target)
1265 <low_breakpoint_at>: Declare.
1266 (ppc_breakpoint_at): Turn into...
1267 (ppc_target::low_breakpoint_at): ...this.
1268 (the_low_target): Remove the op field.
1269 * linux-riscv-low.cc (class riscv_target)
1270 <low_breakpoint_at>: Declare.
1271 (riscv_breakpoint_at): Turn into...
1272 (riscv_target::low_breakpoint_at): ...this.
1273 (the_low_target): Remove the op field.
1274 * linux-s390-low.cc (class s390_target)
1275 <low_breakpoint_at>: Declare.
1276 (s390_breakpoint_at): Turn into...
1277 (s390_target::low_breakpoint_at): ...this.
1278 (the_low_target): Remove the op field.
1279 * linux-sh-low.cc (class sh_target)
1280 <low_breakpoint_at>: Declare.
1281 (sh_breakpoint_at): Turn into...
1282 (sh_target::low_breakpoint_at): ...this.
1283 (the_low_target): Remove the op field.
1284 * linux-sparc-low.cc (class sparc_target)
1285 <low_breakpoint_at>: Declare.
1286 (sparc_breakpoint_at): Turn into...
1287 (sparc_target::low_breakpoint_at): ...this.
1288 (the_low_target): Remove the op field.
1289 * linux-tic6x-low.cc (class tic6x_target)
1290 <low_breakpoint_at>: Declare.
1291 (tic6x_breakpoint_at): Turn into...
1292 (tic6x_target::low_breakpoint_at): ...this.
1293 (the_low_target): Remove the op field.
1294 * linux-tile-low.cc (class tile_target)
1295 <low_breakpoint_at>: Declare.
1296 (tile_breakpoint_at): Turn into...
1297 (tile_target::low_breakpoint_at): ...this.
1298 (the_low_target): Remove the op field.
1299 * linux-xtensa-low.cc (class xtensa_target)
1300 <low_breakpoint_at>: Declare.
1301 (xtensa_breakpoint_at): Turn into...
1302 (xtensa_target::low_breakpoint_at): ...this.
1303 (the_low_target): Remove the op field.
1304
d4807ea2
TBA
13052020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1306
1307 Turn the 'decr_pc_after_break' linux_target_ops field into
1308 a method of linux_process_target.
1309
1310 * linux-low.h (struct linux_target_ops)
1311 <decr_pc_after_break>: Remove.
1312 (class linux_process_target) <low_decr_pc_after_break>: New method
1313 declaration.
1314 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1315 New method implementation.
1316
1317 Update the users below.
1318
1319 (linux_process_target::save_stop_reason)
1320 (linux_process_target::wait_1)
1321 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1322 New declaration.
1323 (x86_target::low_decr_pc_after_break): New method implementation.
1324 (the_low_target): Remove the field.
1325 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1326 New declaration.
1327 (bfin_target::low_decr_pc_after_break): New method implementation.
1328 (the_low_target): Remove the field.
1329 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1330 New declaration.
1331 (m68k_target::low_decr_pc_after_break): New method implementation.
1332 (the_low_target): Remove the field.
1333 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1334 New declaration.
1335 (s390_target::low_decr_pc_after_break): New method implementation.
1336 (the_low_target): Remove the field.
1337 * linux-aarch64-low.cc (the_low_target): Remove the field.
1338 * linux-arm-low.cc (the_low_target): Remove the field.
1339 * linux-cris-low.cc (the_low_target): Remove the field.
1340 * linux-crisv32-low.cc (the_low_target): Remove the field.
1341 * linux-m32r-low.cc (the_low_target): Remove the field.
1342 * linux-mips-low.cc (the_low_target): Remove the field.
1343 * linux-nios2-low.cc (the_low_target): Remove the field.
1344 * linux-ppc-low.cc (the_low_target): Remove the field.
1345 * linux-riscv-low.cc (the_low_target): Remove the field.
1346 * linux-sh-low.cc (the_low_target): Remove the field.
1347 * linux-sparc-low.cc (the_low_target): Remove the field.
1348 * linux-tic6x-low.cc (the_low_target): Remove the field.
1349 * linux-tile-low.cc (the_low_target): Remove the field.
1350 * linux-xtensa-low.cc (the_low_target): Remove the field.
1351
7582c77c
TBA
13522020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1353
1354 Remove the 'supports_software_single_step' linux target op and let
1355 the concrete linux target define it by overriding the op in
1356 process_stratum_target.
1357 Turn the 'get_next_pcs' linux target op into a method of
1358 linux_process_target.
1359
1360 * linux-low.h (struct linux_target_ops): Remove the ops.
1361 (class linux_process_target) <supports_software_single_step>:
1362 Remove.
1363 <low_get_next_pcs>: Declare.
1364 * linux-low.cc (can_software_single_step): Remove.
1365 (linux_process_target::low_get_next_pcs): Define.
1366 (linux_process_target::supports_software_single_step): Remove.
1367
1368 Update the callers below.
1369
1370 (linux_process_target::handle_extended_wait)
1371 (linux_process_target::wait_1)
1372 (linux_process_target::install_software_single_step_breakpoints)
1373 (linux_process_target::single_step)
1374 (linux_process_target::thread_needs_step_over)
1375 (linux_process_target::proceed_one_lwp)
1376 (linux_process_target::supports_range_stepping)
1377
1378 * linux-x86-low.cc (the_low_target): Remove the op field.
1379 * linux-aarch64-low.cc (the_low_target): Ditto.
1380 * linux-bfin-low.cc (the_low_target): Ditto.
1381 * linux-cris-low.cc (the_low_target): Ditto.
1382 * linux-crisv32-low.cc (the_low_target): Ditto.
1383 * linux-m32r-low.cc (the_low_target): Ditto.
1384 * linux-m68k-low.cc (the_low_target): Ditto.
1385 * linux-mips-low.cc (the_low_target): Ditto.
1386 * linux-nios2-low.cc (the_low_target): Ditto.
1387 * linux-ppc-low.cc (the_low_target): Ditto.
1388 * linux-riscv-low.cc (the_low_target): Ditto.
1389 * linux-s390-low.cc (the_low_target): Ditto.
1390 * linux-sh-low.cc (the_low_target): Ditto.
1391 * linux-sparc-low.cc (the_low_target): Ditto.
1392 * linux-tic6x-low.cc (the_low_target): Ditto.
1393 * linux-tile-low.cc (the_low_target): Ditto.
1394 * linux-xtensa-low.cc (the_low_target): Ditto.
1395 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1396 <supports_software_single_step>: Declare.
1397 (arm_target::supports_software_single_step): Define.
1398 (arm_gdbserver_get_next_pcs): Turn into...
1399 (arm_target::low_get_next_pcs): ...this.
1400 (the_low_target): Remove the op field.
1401
3ca4edb6
TBA
14022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1403
1404 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1405 the concrete linux target define it by overriding the op
1406 in process_stratum_target.
1407
1408 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1409 Remove.
1410 * linux-low.h (struct linux_target_ops): Remove the op.
1411 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1412 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1413 Declare.
1414 (x86_sw_breakpoint_from_kind): Turn into...
1415 (x86_target::sw_breakpoint_from_kind): ...this.
1416 (the_low_target): Remove the op field.
1417 * linux-aarch64-low.cc (class aarch64_target)
1418 <sw_breakpoint_from_kind>: Declare.
1419 (aarch64_sw_breakpoint_from_kind): Turn into...
1420 (aarch64_target::sw_breakpoint_from_kind): ...this.
1421 (the_low_target): Remove the op field.
1422 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1423 Declare.
1424 (arm_target::sw_breakpoint_from_kind): Define.
1425 (the_low_target): Remove the op field.
1426 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1427 Declare.
1428 (bfin_sw_breakpoint_from_kind): Turn into...
1429 (bfin_target::sw_breakpoint_from_kind): ...this.
1430 (the_low_target): Remove the op field.
1431 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1432 Declare.
1433 (cris_sw_breakpoint_from_kind): Turn into...
1434 (cris_target::sw_breakpoint_from_kind): ...this.
1435 (the_low_target): Remove the op field.
1436 * linux-crisv32-low.cc (class crisv32_target)
1437 <sw_breakpoint_from_kind>: Declare.
1438 (cris_sw_breakpoint_from_kind): Turn into...
1439 (crisv32_target::sw_breakpoint_from_kind): ...this.
1440 (the_low_target): Remove the op field.
1441 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1442 Declare.
1443 (ia64_target::sw_breakpoint_from_kind): Define.
1444 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1445 Declare.
1446 (m32r_sw_breakpoint_from_kind): Turn into...
1447 (m32r_target::sw_breakpoint_from_kind): ...this.
1448 (the_low_target): Remove the op field.
1449 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1450 Declare.
1451 (m68k_sw_breakpoint_from_kind): Turn into...
1452 (m68k_target::sw_breakpoint_from_kind): ...this.
1453 (the_low_target): Remove the op field.
1454 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1455 Declare.
1456 (mips_sw_breakpoint_from_kind): Turn into...
1457 (mips_target::sw_breakpoint_from_kind): ...this.
1458 (the_low_target): Remove the op field.
1459 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1460 Declare.
1461 (nios2_sw_breakpoint_from_kind): Turn into...
1462 (nios2_target::sw_breakpoint_from_kind): ...this.
1463 (the_low_target): Remove the op field.
1464 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1465 Declare.
1466 (ppc_sw_breakpoint_from_kind): Turn into...
1467 (ppc_target::sw_breakpoint_from_kind): ...this.
1468 (the_low_target): Remove the op field.
1469 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1470 Declare.
1471 (riscv_sw_breakpoint_from_kind): Turn into...
1472 (riscv_target::sw_breakpoint_from_kind): ...this.
1473 (the_low_target): Remove the op field.
1474 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1475 Declare.
1476 (s390_sw_breakpoint_from_kind): Turn into...
1477 (s390_target::sw_breakpoint_from_kind): ...this.
1478 (the_low_target): Remove the op field.
1479 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1480 Declare.
1481 (sh_sw_breakpoint_from_kind): Turn into...
1482 (sh_target::sw_breakpoint_from_kind): ...this.
1483 (the_low_target): Remove the op field.
1484 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1485 Declare.
1486 (sparc_sw_breakpoint_from_kind): Turn into...
1487 (sparc_target::sw_breakpoint_from_kind): ...this.
1488 (the_low_target): Remove the op field.
1489 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1490 Declare.
1491 (tic6x_sw_breakpoint_from_kind): Turn into...
1492 (tic6x_target::sw_breakpoint_from_kind): ...this.
1493 (the_low_target): Remove the op field.
1494 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1495 Declare.
1496 (tile_sw_breakpoint_from_kind): Turn into...
1497 (tile_target::sw_breakpoint_from_kind): ...this.
1498 (the_low_target): Remove the op field.
1499 * linux-xtensa-low.cc (class xtensa_target)
1500 <sw_breakpoint_from_kind>: Declare.
1501 (xtensa_sw_breakpoint_from_kind): Turn into...
1502 (xtensa_target::sw_breakpoint_from_kind): ...this.
1503 (the_low_target): Remove the op field.
1504
06250e4e
TBA
15052020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1506
1507 Remove the 'breakpoint_kind_from_pc' and
1508 'breakpoint_kind_from_current_state' linux target ops, and let the
1509 concrete linux target define them by overriding the ops of
1510 process_stratum_target.
1511
1512 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1513 Remove.
1514 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1515 * linux-low.h (struct linux_target_ops): Remove ops.
1516 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1517 <breakpoint_kind_from_current_state>: Remove.
1518 * linux-x86-low.cc (the_low_target): Remove the op fields.
1519 * linux-bfin-low.cc (the_low_target): Ditto.
1520 * linux-cris-low.cc (the_low_target): Ditto.
1521 * linux-crisv32-low.cc (the_low_target): Ditto.
1522 * linux-m32r-low.cc (the_low_target): Ditto.
1523 * linux-m68k-low.cc (the_low_target): Ditto.
1524 * linux-mips-low.cc (the_low_target): Ditto.
1525 * linux-nios2-low.cc (the_low_target): Ditto.
1526 * linux-ppc-low.cc (the_low_target): Ditto.
1527 * linux-s390-low.cc (the_low_target): Ditto.
1528 * linux-sh-low.cc (the_low_target): Ditto.
1529 * linux-sparc-low.cc (the_low_target): Ditto.
1530 * linux-tic6x-low.cc (the_low_target): Ditto.
1531 * linux-tile-low.cc (the_low_target): Ditto.
1532 * linux-xtensa-low.cc (the_low_target): Ditto.
1533 * linux-aarch64-low.cc (class aarch64_target)
1534 <breakpoint_kind_from_pc>
1535 <breakpoint_kind_from_current_state>: Declare.
1536 (aarch64_breakpoint_kind_from_pc): Turn into...
1537 (aarch64_target::breakpoint_kind_from_pc): ...this.
1538 (aarch64_breakpoint_kind_from_current_state): Turn into...
1539 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1540 (the_low_target): Remove the op fields.
1541 * linux-arm-low.cc (class arm_target):
1542 <breakpoint_kind_from_pc>
1543 <breakpoint_kind_from_current_state>: Declare.
1544 (arm_target::breakpoint_kind_from_pc): Define.
1545 (arm_target::breakpoint_kind_from_current_state): Define.
1546 (the_low_target): Remove the op fields.
1547 * linux-riscv-low.cc (class riscv_target):
1548 <breakpoint_kind_from_pc>: Declare.
1549 (riscv_breakpoint_kind_from_pc): Turn into...
1550 (riscv_target::breakpoint_kind_from_pc): ...this.
1551 (the_low_target): Remove the op fields.
1552
bf9ae9d8
TBA
15532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1554
1555 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1556 of linux_process_target.
1557
1558 * linux-low.h (struct linux_target_ops): Remove the ops.
1559 (class linux_process_target) <low_supports_breakpoints>
1560 <low_get_pc>
1561 <low_set_pc>: Declare.
1562 * linux-low.cc (supports_breakpoints): Turn into...
1563 (linux_process_target::low_supports_breakpoints): ...this.
1564 (linux_process_target::low_get_pc): Define.
1565 (linux_process_target::low_set_pc): Define.
1566
1567 Update the callers below.
1568
1569 (linux_process_target::get_pc)
1570 (linux_process_target::save_stop_reason)
1571 (linux_process_target::maybe_move_out_of_jump_pad)
1572 (linux_process_target::wait_1)
1573 (linux_process_target::resume_one_lwp_throw)
1574 (linux_process_target::resume)
1575 (linux_process_target::proceed_all_lwps)
1576 (linux_process_target::read_pc)
1577 (linux_process_target::write_pc)
1578
1579 * linux-x86-low.cc (class linux_process_target)
1580 <low_supports_breakpoints>
1581 <low_get_pc>
1582 <low_set_pc>: Declare.
1583 (x86_target::low_supports_breakpoints): Define.
1584 (x86_get_pc): Turn into...
1585 (x86_target::low_get_pc): ...this.
1586 (x86_set_pc): Turn into...
1587 (x86_target::low_set_pc): ...this.
1588 (the_low_target): Remove the op fields.
1589 * linux-arm-low.cc (class arm_target)
1590 <low_supports_breakpoints>
1591 <low_get_pc>
1592 <low_set_pc>: Declare.
1593 (arm_target::low_supports_breakpoints)
1594 (arm_target::low_get_pc)
1595 (arm_target::low_set_pc): Define.
1596 (the_low_target): Remove the op fields.
1597 * linux-bfin-low.cc (class bfin_target)
1598 <low_supports_breakpoints>
1599 <low_get_pc>
1600 <low_set_pc>: Declare.
1601 (bfin_target::low_supports_breakpoints)
1602 (bfin_target::low_get_pc)
1603 (bfin_target::low_set_pc): Define.
1604 (the_low_target): Remove the op fields.
1605 * linux-cris-low.cc (class cris_target)
1606 <low_supports_breakpoints>
1607 <low_get_pc>
1608 <low_set_pc>: Declare.
1609 (cris_target::low_supports_breakpoints)
1610 (cris_target::low_get_pc)
1611 (cris_target::low_set_pc): Define.
1612 (the_low_target): Remove the op fields.
1613 * linux-crisv32-low.cc (class crisv32_target)
1614 <low_supports_breakpoints>
1615 <low_get_pc>
1616 <low_set_pc>: Declare.
1617 (crisv32_target::low_supports_breakpoints)
1618 (crisv32_target::low_get_pc)
1619 (crisv32_target::low_set_pc): Define.
1620 (the_low_target): Remove the op fields.
1621 * linux-m32r-low.cc (class m32r_target)
1622 <low_supports_breakpoints>
1623 <low_get_pc>
1624 <low_set_pc>: Declare.
1625 (m32r_target::low_supports_breakpoints)
1626 (m32r_target::low_get_pc)
1627 (m32r_target::low_set_pc): Define.
1628 (the_low_target): Remove the op fields.
1629 * linux-m68k-low.cc (class m68k_target)
1630 <low_supports_breakpoints>
1631 <low_get_pc>
1632 <low_set_pc>: Declare.
1633 (m68k_target::low_supports_breakpoints)
1634 (m68k_target::low_get_pc)
1635 (m68k_target::low_set_pc): Define.
1636 (the_low_target): Remove the op fields.
1637 * linux-nios2-low.cc (class nios2_target)
1638 <low_supports_breakpoints>
1639 <low_get_pc>
1640 <low_set_pc>: Declare.
1641 (nios2_target::low_supports_breakpoints)
1642 (nios2_target::low_get_pc)
1643 (nios2_target::low_set_pc): Define.
1644 (the_low_target): Remove the op fields.
1645 * linux-sh-low.cc (class sh_target)
1646 <low_supports_breakpoints>
1647 <low_get_pc>
1648 <low_set_pc>: Declare.
1649 (sh_target::low_supports_breakpoints)
1650 (sh_target::low_get_pc)
1651 (sh_target::low_set_pc): Define.
1652 (the_low_target): Remove the op fields.
1653 * linux-xtensa-low.cc (class xtensa_target)
1654 <low_supports_breakpoints>
1655 <low_get_pc>
1656 <low_set_pc>: Declare.
1657 (xtensa_target::low_supports_breakpoints)
1658 (xtensa_target::low_get_pc)
1659 (xtensa_target::low_set_pc): Define.
1660 (the_low_target): Remove the op fields.
1661 * linux-sparc-low.cc (class sparc_target)
1662 <low_supports_breakpoints>
1663 <low_get_pc>: Declare.
1664 (sparc_target::low_supports_breakpoints)
1665 (sparc_target::low_get_pc): Define.
1666 (the_low_target): Remove the op fields.
1667 * linux-tile-low.cc (class tile_target)
1668 <low_supports_breakpoints>
1669 <low_get_pc>
1670 <low_set_pc>: Declare.
1671 (tile_target::low_supports_breakpoints)
1672 (tile_target::low_get_pc)
1673 (tile_target::low_set_pc): Define.
1674 (the_low_target): Remove the op fields.
1675 * linux-aarch64-low.cc (class aarch64_target)
1676 <low_supports_breakpoints>
1677 <low_get_pc>
1678 <low_set_pc>: Declare.
1679 (aarch64_target::low_supports_breakpoints): Define.
1680 (aarch64_get_pc): Turn into...
1681 (aarch64_target::low_get_pc): ...this.
1682 (aarch64_set_pc): Turn into...
1683 (aarch64_target::low_set_pc): ...this.
1684 (the_low_target): Remove the op fields.
1685 * linux-mips-low.cc (class mips_target)
1686 <low_supports_breakpoints>
1687 <low_get_pc>
1688 <low_set_pc>: Declare.
1689 (mips_target::low_supports_breakpoints): Define.
1690 (mips_get_pc): Turn into...
1691 (mips_target::low_get_pc): ...this.
1692 (mips_set_pc): Turn into...
1693 (mips_target::low_set_pc): ...this.
1694 (the_low_target): Remove the op fields.
1695 * linux-ppc-low.cc (class ppc_target)
1696 <low_supports_breakpoints>
1697 <low_get_pc>
1698 <low_set_pc>: Declare.
1699 (ppc_target::low_supports_breakpoints): Define.
1700 (ppc_get_pc): Turn into...
1701 (ppc_target::low_get_pc): ...this.
1702 (ppc_set_pc): Turn into...
1703 (ppc_target::low_set_pc): ...this.
1704 (the_low_target): Remove the op fields.
1705 * linux-riscv-low.cc (class riscv_target)
1706 <low_supports_breakpoints>
1707 <low_get_pc>
1708 <low_set_pc>: Declare.
1709 (riscv_target::low_supports_breakpoints): Define.
1710 (riscv_get_pc): Turn into...
1711 (riscv_target::low_get_pc): ...this.
1712 (riscv_set_pc): Turn into...
1713 (riscv_target::low_set_pc): ...this.
1714 (the_low_target): Remove the op fields.
1715 * linux-s390-low.cc (class s390_target)
1716 <low_supports_breakpoints>
1717 <low_get_pc>
1718 <low_set_pc>: Declare.
1719 (s390_target::low_supports_breakpoints): Define.
1720 (s390_get_pc): Turn into...
1721 (s390_target::low_get_pc): ...this.
1722 (s390_set_pc): Turn into...
1723 (s390_target::low_set_pc): ...this.
1724 (the_low_target): Remove the op fields.
1725 * linux-tic6x-low.cc (class tic6x_target)
1726 <low_supports_breakpoints>
1727 <low_get_pc>
1728 <low_set_pc>: Declare.
1729 (tic6x_target::low_supports_breakpoints): Define.
1730 (tic6x_get_pc): Turn into...
1731 (tic6x_target::low_get_pc): ...this.
1732 (tic6x_set_pc): Turn into...
1733 (tic6x_target::low_set_pc): ...this.
1734 (the_low_target): Remove the op fields.
1735
df95181f
TBA
17362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1737
1738 Turn some more static methods in linux-low into private methods
1739 of linux_process_target.
1740
1741 * linux-low.cc (get_pc): Turn into...
1742 (linux_process_target::get_pc): ...this.
1743 (save_stop_reason): Turn into...
1744 (linux_process_target::save_stop_reason): ...this.
1745 (thread_still_has_status_pending_p): Turn into...
1746 (linux_process_target::thread_still_has_status_pending): ...this.
1747 (status_pending_p_callback): Turn into...
1748 (linux_process_target::status_pending_p_callback): ...this.
1749 (resume_stopped_resumed_lwps): Turn into...
1750 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1751 (install_software_single_step_breakpoints): Turn into...
1752 (linux_process_target::install_software_single_step_breakpoints):
1753 ...this.
1754 (single_step): Turn into...
1755 (linux_process_target::single_step): ...this.
1756 (linux_resume_one_lwp_throw): Turn into...
1757 (linux_process_target::resume_one_lwp_throw): ...this.
1758 (linux_resume_one_lwp): Turn into...
1759 (linux_process_target::resume_one_lwp): ...this.
1760 (resume_status_pending_p): Turn into...
1761 (linux_process_target::resume_status_pending): ...this.
1762 (need_step_over_p): Turn into...
1763 (linux_process_target::thread_needs_step_over): ...this.
1764 (linux_resume_one_thread): Turn into...
1765 (linux_process_target::resume_one_thread): ...this.
1766 (proceed_one_lwp): Turn into...
1767 (linux_process_target::proceed_one_lwp): ...this.
1768 (unsuspend_and_proceed_one_lwp): Turn into...
1769 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1770
1771 Update the calls/references to the above functions below.
1772
1773 (linux_process_target::handle_extended_wait)
1774 (linux_process_target::filter_event)
1775 (linux_process_target::wait_for_event_filtered)
1776 (linux_process_target::wait_1)
1777 (linux_process_target::move_out_of_jump_pad)
1778 (linux_process_target::start_step_over)
1779 (linux_process_target::resume)
1780 (linux_process_target::proceed_all_lwps)
1781 (regsets_store_inferior_registers)
1782 (linux_process_target::store_register)
1783
1784 * linux-low.h (class linux_process_target)
1785 <get_pc>
1786 <save_stop_reason>
1787 <thread_still_has_status_pending>
1788 <status_pending_p_callback>
1789 <resume_stopped_resumed_lwps>
1790 <install_software_single_step_breakpoints>
1791 <single_step>
1792 <resume_one_lwp_throw>
1793 <resume_one_lwp>
1794 <resume_status_pending>
1795 <thread_needs_step_over>
1796 <resume_one_thread>
1797 <proceed_one_lwp>
1798 <unsuspend_and_proceed_one_lwp>: Declare.
1799
bd70b1f2
TBA
18002020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1801
1802 Turn the 'fetch_register' linux target op into a method of
1803 linux_process_target.
1804
1805 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1806 (class linux_process_target) <low_fetch_register>: Declare.
1807 * linux-x86-low.cc (the_low_target)
1808 * linux-aarch64-low.cc (the_low_target)
1809 * linux-arm-low.cc (the_low_target)
1810 * linux-bfin-low.cc (the_low_target)
1811 * linux-cris-low.cc (the_low_target)
1812 * linux-crisv32-low.cc (the_low_target)
1813 * linux-m32r-low.cc (the_low_target)
1814 * linux-m68k-low.cc (the_low_target)
1815 * linux-nios2-low.cc (the_low_target)
1816 * linux-ppc-low.cc (the_low_target)
1817 * linux-s390-low.cc (the_low_target)
1818 * linux-sh-low.cc (the_low_target)
1819 * linux-sparc-low.cc (the_low_target)
1820 * linux-tic6x-low.cc (the_low_target)
1821 * linux-tile-low.cc (the_low_target)
1822 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1823 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1824 Declare.
1825 (ia64_fetch_register): Turn into...
1826 (ia64_target::low_fetch_register): ...this.
1827 (the_low_target): Remove the op field.
1828 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1829 Declare.
1830 (mips_fetch_register): Turn into...
1831 (mips_target::low_fetch_register): ...this.
1832 (the_low_target): Remove the op field.
1833 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1834 Declare.
1835 (riscv_fetch_register): Turn into...
1836 (riscv_target::low_fetch_register): ...this.
1837 (the_low_target): Remove the op field.
1838
1839 Update the callers below.
1840
1841 * linux-low.cc (linux_process_target::fetch_registers)
1842 (linux_process_target::low_fetch_register)
1843
daca57a7
TBA
18442020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1845
1846 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1847 linux target ops into methods of linux_process_target.
1848
1849 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1850 (class linux_process_target) <fetch_register>
1851 <store_register>
1852 <usr_fetch_inferior_registers>
1853 <usr_store_inferior_registers>
1854 <low_cannot_fetch_register>
1855 <low_cannot_fetch_register> Declare.
1856 * linux-low.cc (fetch_register): Turn into...
1857 (linux_process_target::fetch_register): ...this.
1858 (store_register): Turn into ...
1859 (linux_process_target::store_register): ...this.
1860 (usr_fetch_inferior_registers): Turn into...
1861 (linux_process_target::usr_fetch_inferior_registers): ...this.
1862 (usr_store_inferior_registers): Turn into...
1863 (linux_process_target::usr_store_inferior_registers): ...this.
1864 * linux-x86-low.cc (class x86_target)
1865 <low_cannot_fetch_register>
1866 <low_cannot_store_register>: Declare.
1867 (x86_cannot_store_register): Turn into...
1868 (x86_target::low_cannot_store_register): ...this.
1869 (x86_cannot_fetch_register): Turn into...
1870 (x86_target::low_cannot_fetch_register): ...this.
1871 (the_low_target): Remove the target op fields.
1872 * linux-aarch64-low.cc (class aarch64_target)
1873 <low_cannot_fetch_register>
1874 <low_cannot_store_register>: Declare.
1875 (aarch64_target::low_cannot_fetch_register)
1876 (aarch64_target::low_cannot_store_register): Define.
1877 (the_low_target): Remove the op fields.
1878 * linux-arm-low.cc (class arm_target)
1879 <low_cannot_fetch_register>
1880 <low_cannot_store_register>: Declare.
1881 (arm_cannot_fetch_register): Turn into...
1882 (arm_target::low_cannot_fetch_register): ...this.
1883 (arm_cannot_store_register): Turn into...
1884 (arm_target::low_cannot_store_register): ...this.
1885 (the_low_target): Remove the op fields.
1886 * linux-bfin-low.cc (class bfin_target)
1887 <low_cannot_fetch_register>
1888 <low_cannot_store_register>: Declare.
1889 (bfin_cannot_fetch_register): Turn into...
1890 (bfin_target::low_cannot_fetch_register): ...this.
1891 (bfin_cannot_store_register): Turn into...
1892 (bfin_target::low_cannot_store_register): ...this.
1893 (the_low_target): Remove the op fields.
1894 * linux-cris-low.cc (class cris_target)
1895 <low_cannot_fetch_register>
1896 <low_cannot_store_register>: Declare.
1897 (cris_cannot_fetch_register): Turn into...
1898 (cris_target::low_cannot_fetch_register): ...this.
1899 (cris_cannot_store_register): Turn into...
1900 (cris_target::low_cannot_store_register): ...this.
1901 (the_low_target): Remove the op fields.
1902 * linux-crisv32-low.cc (class crisv32_target)
1903 <low_cannot_fetch_register>
1904 <low_cannot_store_register>: Declare.
1905 (crisv32_target::low_cannot_fetch_register)
1906 (crisv32_target::low_cannot_store_register): Define.
1907 (the_low_target): Remove the op fields.
1908 * linux-ia64-low.cc (class ia64_target)
1909 <low_cannot_fetch_register>
1910 <low_cannot_store_register>: Declare.
1911 (ia64_cannot_fetch_register): Turn into...
1912 (ia64_target::low_cannot_fetch_register): ...this.
1913 (ia64_cannot_store_register): Turn into...
1914 (ia64_target::low_cannot_store_register): ...this.
1915 (the_low_target): Remove the op fields.
1916 * linux-m32r-low.cc (class m32r_target)
1917 <low_cannot_fetch_register>
1918 <low_cannot_store_register>: Declare.
1919 (m32r_cannot_fetch_register): Turn into...
1920 (m32r_target::low_cannot_fetch_register): ...this.
1921 (m32r_cannot_store_register): Turn into...
1922 (m32r_target::low_cannot_store_register): ...this.
1923 (the_low_target): Remove the op fields.
1924 * linux-m68k-low.cc (class m68k_target)
1925 <low_cannot_fetch_register>
1926 <low_cannot_store_register>: Declare.
1927 (m68k_cannot_fetch_register): Turn into...
1928 (m68k_target::low_cannot_fetch_register): ...this.
1929 (m68k_cannot_store_register): Turn into...
1930 (m68k_target::low_cannot_store_register): ...this.
1931 (the_low_target): Remove the op fields.
1932 * linux-mips-low.cc (class mips_target)
1933 <low_cannot_fetch_register>
1934 <low_cannot_store_register>: Declare.
1935 (mips_cannot_fetch_register): Turn into...
1936 (mips_target::low_cannot_fetch_register): ...this.
1937 (mips_cannot_store_register): Turn into...
1938 (mips_target::low_cannot_store_register): ...this.
1939 (get_usrregs_info): Inline at the call sites in
1940 low_cannot_fetch_register and low_cannot_store_register,
1941 and remove.
1942 (the_low_target): Remove the op fields.
1943 * linux-nios2-low.cc (class nios2_target)
1944 <low_cannot_fetch_register>
1945 <low_cannot_store_register>: Declare.
1946 (nios2_cannot_fetch_register): Turn into...
1947 (nios2_target::low_cannot_fetch_register): ...this.
1948 (nios2_cannot_store_register): Turn into...
1949 (nios2_target::low_cannot_store_register): ...this.
1950 (the_low_target): Remove the op fields.
1951 * linux-ppc-low.cc (class ppc_target)
1952 <low_cannot_fetch_register>
1953 <low_cannot_store_register>: Declare.
1954 (ppc_cannot_fetch_register): Turn into...
1955 (ppc_target::low_cannot_fetch_register): ...this.
1956 (ppc_cannot_store_register): Turn into...
1957 (ppc_target::low_cannot_store_register): ...this.
1958 (the_low_target): Remove the op fields.
1959 * linux-riscv-low.cc (class riscv_target)
1960 <low_cannot_fetch_register>
1961 <low_cannot_store_register>: Declare.
1962 (riscv_target::low_cannot_fetch_register)
1963 (riscv_target::low_cannot_store_register): Define.
1964 (the_low_target): Remove the op fields.
1965 * linux-s390-low.cc (class s390_target)
1966 <low_cannot_fetch_register>
1967 <low_cannot_store_register>: Declare.
1968 (s390_cannot_fetch_register): Turn into...
1969 (s390_target::low_cannot_fetch_register): ...this.
1970 (s390_cannot_store_register): Turn into...
1971 (s390_target::low_cannot_store_register): ...this.
1972 (the_low_target): Remove the op fields.
1973 * linux-sh-low.cc (class sh_target)
1974 <low_cannot_fetch_register>
1975 <low_cannot_store_register>: Declare.
1976 (sh_cannot_fetch_register): Turn into...
1977 (sh_target::low_cannot_fetch_register): ...this.
1978 (sh_cannot_store_register): Turn into...
1979 (sh_target::low_cannot_store_register): ...this.
1980 (the_low_target): Remove the op fields.
1981 * linux-sparc-low.cc (class sparc_target)
1982 <low_cannot_fetch_register>
1983 <low_cannot_store_register>: Declare.
1984 (sparc_cannot_fetch_register): Turn into...
1985 (sparc_target::low_cannot_fetch_register): ...this.
1986 (sparc_cannot_store_register): Turn into...
1987 (sparc_target::low_cannot_store_register): ...this.
1988 (the_low_target): Remove the op fields.
1989 * linux-tic6x-low.cc (class tic6x_target)
1990 <low_cannot_fetch_register>
1991 <low_cannot_store_register>: Declare.
1992 (tic6x_cannot_fetch_register): Turn into...
1993 (tic6x_target::low_cannot_fetch_register): ...this.
1994 (tic6x_cannot_store_register): Turn into...
1995 (tic6x_target::low_cannot_store_register): ...this.
1996 (the_low_target): Remove the op fields.
1997 * linux-tile-low.cc (class tile_target)
1998 <low_cannot_fetch_register>
1999 <low_cannot_store_register>: Declare.
2000 (tile_cannot_fetch_register): Turn into...
2001 (tile_target::low_cannot_fetch_register): ...this.
2002 (tile_cannot_store_register): Turn into...
2003 (tile_target::low_cannot_store_register): ...this.
2004 (the_low_target): Remove the op fields.
2005 * linux-xtensa-low.cc (class xtensa_target)
2006 <low_cannot_fetch_register>
2007 <low_cannot_store_register>: Declare.
2008 (xtensa_target::low_cannot_fetch_register)
2009 (xtensa_target::low_cannot_store_register): Define.
2010 (the_low_target): Remove the op fields.
2011
aa8d21c9
TBA
20122020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2013
2014 Turn the 'regs_info' linux target op into a method of
2015 linux_process_target.
2016
2017 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2018 (class linux_process_target) <get_regs_info>: Define.
2019
2020 Update the callers below.
2021
2022 * linux-low.cc (linux_process_target::fetch_registers)
2023 (linux_process_target::store_registers)
2024 * proc-service.cc (gregset_info)
2025
2026 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2027 (x86_linux_regs_info): Turn into ...
2028 (x86_target::get_regs_info): ...this.
2029 (the_low_target): Remove the op field.
2030 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2031 Declare.
2032 (aarch64_regs_info): Turn into ...
2033 (aarch64_target::get_regs_info): ...this.
2034 (the_low_target): Remove the op field.
2035 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2036 (arm_regs_info): Turn into ...
2037 (arm_target::get_regs_info): ...this.
2038 (the_low_target): Remove the op field.
2039 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2040 (bfin_regs_info): Turn into ...
2041 (bfin_target::get_regs_info): ...this.
2042 (the_low_target): Remove the op field.
2043 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2044 (cris_regs_info): Turn into ...
2045 (cris_target::get_regs_info): ...this.
2046 (the_low_target): Remove the op field.
2047 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2048 Declare.
2049 (crisv32_regs_info): Turn into ...
2050 (crisv32_target::get_regs_info): ...this.
2051 (the_low_target): Remove the op field.
2052 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2053 (ia64_regs_info): Turn into ...
2054 (ia64_target::get_regs_info): ...this.
2055 (the_low_target): Remove the op field.
2056 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2057 (m32r_regs_info): Turn into ...
2058 (m32r_target::get_regs_info): ...this.
2059 (the_low_target): Remove the op field.
2060 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2061 (m68k_regs_info): Turn into ...
2062 (m68k_target::get_regs_info): ...this.
2063 (the_low_target): Remove the op field.
2064 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2065 (mips_regs_info): Turn into ...
2066 (mips_target::get_regs_info): ...this.
2067 (the_low_target): Remove the op field.
2068 (get_usrregs_info): Update the call to the op.
2069 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2070 (nios2_regs_info): Turn into ...
2071 (nios2_target::get_regs_info): ...this.
2072 (the_low_target): Remove the op field.
2073 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2074 (ppc_regs_info): Turn into ...
2075 (ppc_target::get_regs_info): ...this.
2076 (the_low_target): Remove the op field.
2077 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2078 (riscv_regs_info): Turn into ...
2079 (riscv_target::get_regs_info): ...this.
2080 (the_low_target): Remove the op field.
2081 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2082 (s390_regs_info): Turn into ...
2083 (s390_target::get_regs_info): ...this.
2084 (the_low_target): Remove the op field.
2085 (s390_collect_ptrace_register)
2086 (s390_supply_ptrace_register)
2087 (s390_fill_gregset): Update the call to the op.
2088 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2089 (sh_regs_info): Turn into ...
2090 (sh_target::get_regs_info): ...this.
2091 (the_low_target): Remove the op field.
2092 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2093 (sparc_regs_info): Turn into ...
2094 (sparc_target::get_regs_info): ...this.
2095 (the_low_target): Remove the op field.
2096 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2097 (tic6x_regs_info): Turn into ...
2098 (tic6x_target::get_regs_info): ...this.
2099 (the_low_target): Remove the op field.
2100 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2101 (tile_regs_info): Turn into ...
2102 (tile_target::get_regs_info): ...this.
2103 (the_low_target): Remove the op field.
2104 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2105 Declare.
2106 (xtensa_regs_info): Turn into ...
2107 (xtensa_target::get_regs_info): ...this.
2108 (the_low_target): Remove the op field.
2109
797bcff5
TBA
21102020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2111
2112 Turn the 'arch_setup' linux target op into a method of
2113 linux_process_target.
2114
2115 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2116 (class linux_process_target) <arch_setup_thread>
2117 <low_arch_setup>: New declarations.
2118 * linux-low.cc (linux_arch_setup): Delete.
2119 (linux_arch_setup_thread): Turn into...
2120 (linux_process_target::arch_setup_thread): ... this.
2121
2122 Update the callers below.
2123
2124 (linux_process_target::handle_extended_wait)
2125 (linux_process_target::post_create_inferior)
2126 (linux_process_target::filter_event)
2127
2128 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2129 declaration.
2130 (x86_linux_update_xmltarget): Turn into...
2131 (x86_target::update_xmltarget): ...this.
2132 (x86_linux_process_qsupported): Update the call to
2133 x86_linux_update_xmltarget.
2134 (x86_arch_setup): Turn into ...
2135 (x86_target::low_arch_setup): ...this.
2136 (the_low_target): Remove the op field.
2137 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2138 declaration.
2139 (aarch64_arch_setup): Turn into ...
2140 (aarch64_target::low_arch_setup): ...this.
2141 (the_low_target): Remove the op field.
2142 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2143 declaration.
2144 (arm_arch_setup): Turn into ...
2145 (arm_target::low_arch_setup): ...this.
2146 (the_low_target): Remove the op field.
2147 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2148 declaration.
2149 (bfin_arch_setup): Turn into ...
2150 (bfin_target::low_arch_setup): ...this.
2151 (the_low_target): Remove the op field.
2152 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2153 declaration.
2154 (cris_arch_setup): Turn into ...
2155 (cris_target::low_arch_setup): ...this.
2156 (the_low_target): Remove the op field.
2157 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2158 declaration.
2159 (crisv32_arch_setup): Turn into ...
2160 (crisv32_target::low_arch_setup): ...this.
2161 (the_low_target): Remove the op field.
2162 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2163 declaration.
2164 (ia64_arch_setup): Turn into ...
2165 (ia64_target::low_arch_setup): ...this.
2166 (the_low_target): Remove the op field.
2167 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2168 declaration.
2169 (m32r_arch_setup): Turn into ...
2170 (m32r_target::low_arch_setup): ...this.
2171 (the_low_target): Remove the op field.
2172 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2173 declaration.
2174 (m68k_arch_setup): Turn into ...
2175 (m68k_target::low_arch_setup): ...this.
2176 (the_low_target): Remove the op field.
2177 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2178 declaration.
2179 (mips_arch_setup): Turn into ...
2180 (mips_target::low_arch_setup): ...this.
2181 (the_low_target): Remove the op field.
2182 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2183 declaration.
2184 (nios2_arch_setup): Turn into ...
2185 (nios2_target::low_arch_setup): ...this.
2186 (the_low_target): Remove the op field.
2187 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2188 declaration.
2189 (ppc_arch_setup): Turn into ...
2190 (ppc_target::low_arch_setup): ...this.
2191 (the_low_target): Remove the op field.
2192 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2193 declaration.
2194 (riscv_arch_setup): Turn into ...
2195 (riscv_target::low_arch_setup): ...this.
2196 (the_low_target): Remove the op field.
2197 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2198 declaration.
2199 (s390_arch_setup): Turn into ...
2200 (s390_target::low_arch_setup): ...this.
2201 (the_low_target): Remove the op field.
2202 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2203 declaration.
2204 (sh_arch_setup): Turn into ...
2205 (sh_target::low_arch_setup): ...this.
2206 (the_low_target): Remove the op field.
2207 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2208 declaration.
2209 (sparc_arch_setup): Turn into ...
2210 (sparc_target::low_arch_setup): ...this.
2211 (the_low_target): Remove the op field.
2212 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2213 declaration.
2214 (tic6x_arch_setup): Turn into ...
2215 (tic6x_target::low_arch_setup): ...this.
2216 (the_low_target): Remove the op field.
2217 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2218 declaration.
2219 (tile_arch_setup): Turn into ...
2220 (tile_target::low_arch_setup): ...this.
2221 (the_low_target): Remove the op field.
2222 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2223 declaration.
2224 (xtensa_arch_setup): Turn into ...
2225 (xtensa_target::low_arch_setup): ...this.
2226 (the_low_target): Remove the op field.
2227
ef0478f6
TBA
22282020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2229
2230 * linux-low.h (the_linux_target): New extern declaration.
2231 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2232 'the_target'.
2233 (the_linux_target): Remove.
2234 * linux-x86-low.cc (class x86_target): New class.
2235 (the_x86_target): New static object.
2236 (the_linux_target): Define as pointer to the_x86_target.
2237 * linux-aarch64-low.cc (class aarch64_target): New class.
2238 (the_aarch64_target): New static object.
2239 (the_linux_target): Define as pointer to the_aarch64_target.
2240 * linux-arm-low.cc (class arm_target): New class.
2241 (the_arm_target): New static object.
2242 (the_linux_target): Define as pointer to the_arm_target.
2243 * linux-bfin-low.cc (class bfin_target): New class.
2244 (the_bfin_target): New static object.
2245 (the_linux_target): Define as pointer to the_bfin_target.
2246 * linux-cris-low.cc (class cris_target): New class.
2247 (the_cris_target): New static object.
2248 (the_linux_target): Define as pointer to the_cris_target.
2249 * linux-crisv32-low.cc (class crisv32_target): New class.
2250 (the_crisv32_target): New static object.
2251 (the_linux_target): Define as pointer to the_crisv32_target.
2252 * linux-ia64-low.cc (class ia64_target): New class.
2253 (the_ia64_target): New static object.
2254 (the_linux_target): Define as pointer to the_ia64_target.
2255 * linux-m32r-low.cc (class m32r_target): New class.
2256 (the_m32r_target): New static object.
2257 (the_linux_target): Define as pointer to the_m32r_target.
2258 * linux-m68k-low.cc (class m68k_target): New class.
2259 (the_m68k_target): New static object.
2260 (the_linux_target): Define as pointer to the_m68k_target.
2261 * linux-mips-low.cc (class mips_target): New class.
2262 (the_mips_target): New static object.
2263 (the_linux_target): Define as pointer to the_mips_target.
2264 * linux-nios2-low.cc (class nios2_target): New class.
2265 (the_nios2_target): New static object.
2266 (the_linux_target): Define as pointer to the_nios2_target.
2267 * linux-ppc-low.cc (class ppc_target): New class.
2268 (the_ppc_target): New static object.
2269 (the_linux_target): Define as pointer to the_ppc_target.
2270 * linux-riscv-low.cc (class riscv_target): New class.
2271 (the_riscv_target): New static object.
2272 (the_linux_target): Define as pointer to the_riscv_target.
2273 * linux-s390-low.cc (class s390_target): New class.
2274 (the_s390_target): New static object.
2275 (the_linux_target): Define as pointer to the_s390_target.
2276 * linux-sh-low.cc (class sh_target): New class.
2277 (the_sh_target): New static object.
2278 (the_linux_target): Define as pointer to the_sh_target.
2279 * linux-sparc-low.cc (class sparc_target): New class.
2280 (the_sparc_target): New static object.
2281 (the_linux_target): Define as pointer to the_sparc_target.
2282 * linux-tic6x-low.cc (class tic6x_target): New class.
2283 (the_tic6x_target): New static object.
2284 (the_linux_target): Define as pointer to the_tic6x_target.
2285 * linux-tile-low.cc (class tile_target): New class.
2286 (the_tile_target): New static object.
2287 (the_linux_target): Define as pointer to the_tile_target.
2288 * linux-xtensa-low.cc (class xtensa_target): New class.
2289 (the_xtensa_target): New static object.
2290 (the_linux_target): Define as pointer to the_xtensa_target.
2291
d16f3f6c
TBA
22922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2293
2294 Turn some static functions in linux-low.cc into private methods of
2295 linux_process_target.
2296
2297 * linux-low.cc (handle_extended_wait): Turn into ...
2298 (linux_process_target::handle_extended_wait): ...this. Call
2299 'mourn' on 'this' object instead of 'the_target'.
2300 (maybe_move_out_of_jump_pad): Turn into...
2301 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2302 (linux_low_filter_event): Turn into...
2303 (linux_process_target::filter_event): ...this.
2304 (linux_wait_for_event_filtered): Turn into...
2305 (linux_process_target::wait_for_event_filtered): ...this.
2306 (linux_wait_for_event): Turn into...
2307 (linux_process_target::wait_for_event): ...this.
2308 (linux_wait_1): Turn into...
2309 (linux_process_target::wait_1): ...this.
2310 (wait_for_sigstop): Turn into...
2311 (linux_process_target::wait_for_sigstop): ...this.
2312 (move_out_of_jump_pad_callback): Turn into...
2313 (linux_process_target::move_out_of_jump_pad): ...this.
2314 (stop_all_lwps): Turn into...
2315 (linux_process_target::stop_all_lwps): ...this.
2316 (start_step_over): Turn into...
2317 (linux_process_target::start_step_over): ...this.
2318 (complete_ongoing_step_over): Turn into...
2319 (linux_process_target::complete_ongoing_step_over): ...this.
2320 (proceed_all_lwps): Turn into...
2321 (linux_process_target::proceed_all_lwps): ...this.
2322 (unstop_all_lwps): Turn into...
2323 (linux_process_target::unstop_all_lwps): ...this.
2324
2325 * linux-low.h (class linux_process_target)
2326 <handle_extended_wait>
2327 <maybe_move_out_of_jump_pad>
2328 filter_event>
2329 <wait_for_event_filtered>
2330 <wait_for_event>
2331 <wait_1>
2332 <wait_for_sigstop>
2333 <move_out_of_jump_pad>
2334 <stop_all_lwps>
2335 <start_step_over>
2336 <complete_ongoing_step_over>
2337 <proceed_all_lwps>
2338 <unstop_all_lwps>: Declare.
2339
2340 Update the callers below.
2341
2342 * linux-low.cc (linux_process_target::attach): Update.
2343 (linux_process_target::stabilize_threads): Ditto.
2344 (linux_process_target::wait): Ditto.
2345
a5863204
TBA
23462020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2347
2348 * linux-low.h (struct linux_target_ops): Update the comment for
2349 'cannot_store_register' to return 0 or 1.
2350 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2351 of 2.
2352
c884cc46
SM
23532020-03-20 Simon Marchi <simon.marchi@efficios.com>
2354
2355 * config.in: Re-generate.
2356 * configure: Re-generate.
2357
5a82b8a1
KR
23582020-03-17 Kamil Rytarowski <n54@gmx.com>
2359
2360 * regcache.cc (find_register_by_number): Update.
2361 * tdesc.cc (init_target_desc): Likewise.
2362 * tdesc.h (target_desc::reg_defs): Likewise.
2363
4635ff97
TT
23642020-03-12 Tom Tromey <tom@tromey.com>
2365
2366 * configure: Rebuild.
2367 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2368 (WIN32APILIBS): New subst.
2369 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2370 gdbsupport files.
2371 (gdbsupport/%.o): Remove target.
2372 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2373 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2374 (WIN32APILIBS): New variable.
2375 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2376 (gdbreplay$(EXEEXT)): Likewise.
2377
9a665d62
TT
23782020-03-12 Tom Tromey <tom@tromey.com>
2379
2380 * config.in, configure: Rebuild.
2381 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2382 * acinclude.m4: Include gettext-sister.m4.
2383 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2384 variables.
2385 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2386 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2387
272cd5a3
SM
23882020-03-12 Simon Marchi <simon.marchi@efficios.com>
2389
2390 * acinclude.m4: Update path to selftest.m4.
2391
db6878ac
SM
23922020-03-12 Simon Marchi <simon.marchi@efficios.com>
2393
2394 * configure.ac: Don't source bfd/development.sh, move
2395 GDB_AC_COMMON higher.
2396 * configure: Re-generate.
2397
4d696a5c
SM
23982020-03-12 Simon Marchi <simon.marchi@efficios.com>
2399
2400 * configure: Re-generate.
2401
a0761e34
SM
24022020-03-11 Simon Marchi <simon.marchi@efficios.com>
2403
2404 * configure: Re-generate.
2405
20ea4a60
AB
24062020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2407
2408 * .dir-locals.el: New file.
2409
842806cb
TBA
24102020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2411
2412 * .gitattributes: New file.
2413
442131c1
AB
24142020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2415
2416 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2417 reply into an S reply.
2418 * server.cc (disable_packet_T): New global.
2419 (captured_main): Set new global when appropriate.
2420 * server.h (disable_packet_T): Declare.
2421
dda42c0b
TT
24222020-02-21 Tom Tromey <tom@tromey.com>
2423
2424 * Makefile.in (mostlyclean): New target.
2425
52405d85
TBA
24262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2427
2428 * target.h (struct process_stratum_target): Remove.
2429 (class process_target): Rename to ...
2430 (class process_stratum_target): ... this.
2431 * linux-low.h (class linux_process_target): Derive from
2432 'process_stratum_target'.
2433 * linux-low.cc (linux_target_ops): Remove.
2434 (initialize_low): Set the_target to the singleton instance of
2435 linux_process_target.
2436 * lynx-low.h (class lynx_process_target): Derive from
2437 'process_stratum_target'.
2438 * lynx-low.cc (lynx_target_ops): Remove.
2439 (initialize_low): Set the_target to the singleton instance of
2440 lynx_process_target.
2441 * nto-low.h (class nto_process_target): Derive from
2442 'process_stratum_target'.
2443 * nto-low.cc (nto_target_ops): Remove.
2444 (initialize_low): Set the_target to the singleton instance of
2445 nto_process_target.
2446 * win32-low.h (class win32_process_target): Derive from
2447 'process_stratum_target'.
2448 * win32-low.cc (win32_target_ops): Remove.
2449 (initialize_low): Set the_target to the singleton instance of
2450 win32_process_target.
2451
2452 Replace 'the_target->pt' with 'the_target' in the uses below.
2453
2454 * hostio.cc (hostio_error)
2455 (handle_setfs)
2456 (handle_open)
2457 (handle_unlink)
2458 (handle_readlink)
2459 * linux-aarch32-low.cc (arm_breakpoint_at)
2460 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2461 * linux-arm-low.cc (arm_sigreturn_next_pc)
2462 (arm_get_hwcap)
2463 (arm_get_syscall_trapinfo)
2464 * linux-cris-low.cc (cris_breakpoint_at)
2465 * linux-crisv32-low.cc (cris_breakpoint_at)
2466 * linux-low.cc (handle_extended_wait)
2467 (linux_wait_1)
2468 (linux_read_memory)
2469 (linux_process_target::breakpoint_kind_from_pc)
2470 (linux_get_auxv)
2471 * linux-m32r-low.cc (m32r_breakpoint_at)
2472 * linux-mips-low.cc (mips_breakpoint_at)
2473 * linux-nios2-low.cc (nios2_breakpoint_at)
2474 * linux-ppc-low.cc (ppc_breakpoint_at)
2475 * linux-s390-low.cc (s390_get_hwcap)
2476 * linux-sh-low.cc (sh_breakpoint_at)
2477 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2478 (sparc_store_gregset_from_stack)
2479 (sparc_breakpoint_at)
2480 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2481 * linux-tile-low.cc (tile_breakpoint_at)
2482 * linux-x86-low.cc (x86_breakpoint_at)
2483 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2484 * mem-break.cc (bp_size)
2485 (bp_opcode)
2486 (insert_memory_breakpoint)
2487 (set_raw_breakpoint_at)
2488 (delete_raw_breakpoint)
2489 (z_type_supported)
2490 (uninsert_raw_breakpoint)
2491 (reinsert_raw_breakpoint)
2492 (validate_inserted_breakpoint)
2493 * regcache.cc (regcache_read_pc)
2494 (regcache_write_pc)
2495 * remote-utils.cc (putpkt_binary_1)
2496 (input_interrupt)
2497 (getpkt)
2498 (prepare_resume_reply)
2499 * server.cc (handle_general_set)
2500 (handle_detach)
2501 (handle_qxfer_auxv)
2502 (handle_qxfer_exec_file)
2503 (handle_qxfer_libraries_svr4)
2504 (handle_qxfer_osdata)
2505 (handle_qxfer_siginfo)
2506 (handle_qxfer_fdpic)
2507 (handle_query)
2508 (resume)
2509 (handle_v_requests)
2510 (queue_stop_reply_callback)
2511 (captured_main)
2512 * target.cc (prepare_to_access_memory)
2513 (done_accessing_memory)
2514 (read_inferior_memory)
2515 (target_write_memory)
2516 (target_stop_and_wait)
2517 (target_wait)
2518 (target_mourn_inferior)
2519 (target_continue_no_signal)
2520 (target_continue)
2521 (target_supports_multi_process)
2522 (kill_inferior)
2523 * target.h
2524 (target_create_inferior)
2525 (target_post_create_inferior)
2526 (myattach)
2527 (target_supports_fork_events)
2528 (target_supports_vfork_events)
2529 (target_supports_exec_events)
2530 (target_handle_new_gdb_connection)
2531 (detach_inferior)
2532 (mythread_alive)
2533 (fetch_inferior_registers)
2534 (store_inferior_registers)
2535 (join_inferior)
2536 (target_supports_non_stop)
2537 (target_async)
2538 (target_process_qsupported)
2539 (target_supports_catch_syscall)
2540 (target_get_ipa_tdesc_idx)
2541 (target_supports_tracepoints)
2542 (target_supports_fast_tracepoints)
2543 (target_get_min_fast_tracepoint_insn_len)
2544 (target_thread_stopped)
2545 (target_pause_all)
2546 (target_unpause_all)
2547 (target_stabilize_threads)
2548 (target_install_fast_tracepoint_jump_pad)
2549 (target_emit_ops)
2550 (target_supports_disable_randomization)
2551 (target_supports_agent)
2552 (target_enable_btrace)
2553 (target_disable_btrace)
2554 (target_read_btrace)
2555 (target_read_btrace_conf)
2556 (target_supports_range_stepping)
2557 (target_supports_stopped_by_sw_breakpoint)
2558 (target_stopped_by_sw_breakpoint)
2559 (target_supports_stopped_by_hw_breakpoint)
2560 (target_supports_hardware_single_step)
2561 (target_stopped_by_hw_breakpoint)
2562 (target_breakpoint_kind_from_pc)
2563 (target_breakpoint_kind_from_current_state)
2564 (target_supports_software_single_step)
2565 (target_core_of_thread)
2566 (target_thread_name)
2567 (target_thread_handle)
2568 * win32-low.cc (do_initial_child_stuff)
2569
2570 Rename target op default definitions listed below.
2571
2572 * target.cc (process_target::post_create_inferior): Rename as ...
2573 (process_stratum_target::post_create_inferior): ... this.
2574 (process_target::prepare_to_access_memory): Rename as ...
2575 (process_stratum_target::prepare_to_access_memory): ... this.
2576 (process_target::done_accessing_memory): Rename as ...
2577 (process_stratum_target::done_accessing_memory): ... this.
2578 (process_target::look_up_symbols): Rename as ...
2579 (process_stratum_target::look_up_symbols): ... this.
2580 (process_target::supports_read_auxv): Rename as ...
2581 (process_stratum_target::supports_read_auxv): ... this.
2582 (process_target::read_auxv): Rename as ...
2583 (process_stratum_target::read_auxv): ... this.
2584 (process_target::supports_z_point_type): Rename as ...
2585 (process_stratum_target::supports_z_point_type): ... this.
2586 (process_target::insert_point): Rename as ...
2587 (process_stratum_target::insert_point): ... this.
2588 (process_target::remove_point): Rename as ...
2589 (process_stratum_target::remove_point): ... this.
2590 (process_target::stopped_by_sw_breakpoint): Rename as ...
2591 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2592 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2593 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2594 (process_target::stopped_by_hw_breakpoint): Rename as ...
2595 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2596 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2597 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2598 (process_target::supports_hardware_single_step): Rename as ...
2599 (process_stratum_target::supports_hardware_single_step): ... this.
2600 (process_target::stopped_by_watchpoint): Rename as ...
2601 (process_stratum_target::stopped_by_watchpoint): ... this.
2602 (process_target::stopped_data_address): Rename as ...
2603 (process_stratum_target::stopped_data_address): ... this.
2604 (process_target::supports_read_offsets): Rename as ...
2605 (process_stratum_target::supports_read_offsets): ... this.
2606 (process_target::read_offsets): Rename as ...
2607 (process_stratum_target::read_offsets): ... this.
2608 (process_target::supports_get_tls_address): Rename as ...
2609 (process_stratum_target::supports_get_tls_address): ... this.
2610 (process_target::get_tls_address): Rename as ...
2611 (process_stratum_target::get_tls_address): ... this.
2612 (process_target::hostio_last_error): Rename as ...
2613 (process_stratum_target::hostio_last_error): ... this.
2614 (process_target::supports_qxfer_osdata): Rename as ...
2615 (process_stratum_target::supports_qxfer_osdata): ... this.
2616 (process_target::qxfer_osdata): Rename as ...
2617 (process_stratum_target::qxfer_osdata): ... this.
2618 (process_target::supports_qxfer_siginfo): Rename as ...
2619 (process_stratum_target::supports_qxfer_siginfo): ... this.
2620 (process_target::qxfer_siginfo): Rename as ...
2621 (process_stratum_target::qxfer_siginfo): ... this.
2622 (process_target::supports_non_stop): Rename as ...
2623 (process_stratum_target::supports_non_stop): ... this.
2624 (process_target::async): Rename as ...
2625 (process_stratum_target::async): ... this.
2626 (process_target::start_non_stop): Rename as ...
2627 (process_stratum_target::start_non_stop): ... this.
2628 (process_target::supports_multi_process): Rename as ...
2629 (process_stratum_target::supports_multi_process): ... this.
2630 (process_target::supports_fork_events): Rename as ...
2631 (process_stratum_target::supports_fork_events): ... this.
2632 (process_target::supports_vfork_events): Rename as ...
2633 (process_stratum_target::supports_vfork_events): ... this.
2634 (process_target::supports_exec_events): Rename as ...
2635 (process_stratum_target::supports_exec_events): ... this.
2636 (process_target::handle_new_gdb_connection): Rename as ...
2637 (process_stratum_target::handle_new_gdb_connection): ... this.
2638 (process_target::handle_monitor_command): Rename as ...
2639 (process_stratum_target::handle_monitor_command): ... this.
2640 (process_target::core_of_thread): Rename as ...
2641 (process_stratum_target::core_of_thread): ... this.
2642 (process_target::supports_read_loadmap): Rename as ...
2643 (process_stratum_target::supports_read_loadmap): ... this.
2644 (process_target::read_loadmap): Rename as ...
2645 (process_stratum_target::read_loadmap): ... this.
2646 (process_target::process_qsupported): Rename as ...
2647 (process_stratum_target::process_qsupported): ... this.
2648 (process_target::supports_tracepoints): Rename as ...
2649 (process_stratum_target::supports_tracepoints): ... this.
2650 (process_target::read_pc): Rename as ...
2651 (process_stratum_target::read_pc): ... this.
2652 (process_target::write_pc): Rename as ...
2653 (process_stratum_target::write_pc): ... this.
2654 (process_target::supports_thread_stopped): Rename as ...
2655 (process_stratum_target::supports_thread_stopped): ... this.
2656 (process_target::thread_stopped): Rename as ...
2657 (process_stratum_target::thread_stopped): ... this.
2658 (process_target::supports_get_tib_address): Rename as ...
2659 (process_stratum_target::supports_get_tib_address): ... this.
2660 (process_target::get_tib_address): Rename as ...
2661 (process_stratum_target::get_tib_address): ... this.
2662 (process_target::pause_all): Rename as ...
2663 (process_stratum_target::pause_all): ... this.
2664 (process_target::unpause_all): Rename as ...
2665 (process_stratum_target::unpause_all): ... this.
2666 (process_target::stabilize_threads): Rename as ...
2667 (process_stratum_target::stabilize_threads): ... this.
2668 (process_target::supports_fast_tracepoints): Rename as ...
2669 (process_stratum_target::supports_fast_tracepoints): ... this.
2670 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2671 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2672 (process_target::emit_ops): Rename as ...
2673 (process_stratum_target::emit_ops): ... this.
2674 (process_target::supports_disable_randomization): Rename as ...
2675 (process_stratum_target::supports_disable_randomization): ... this.
2676 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2677 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2678 (process_target::qxfer_libraries_svr4): Rename as ...
2679 (process_stratum_target::qxfer_libraries_svr4): ... this.
2680 (process_target::supports_agent): Rename as ...
2681 (process_stratum_target::supports_agent): ... this.
2682 (process_target::enable_btrace): Rename as ...
2683 (process_stratum_target::enable_btrace): ... this.
2684 (process_target::disable_btrace): Rename as ...
2685 (process_stratum_target::disable_btrace): ... this.
2686 (process_target::read_btrace): Rename as ...
2687 (process_stratum_target::read_btrace): ... this.
2688 (process_target::read_btrace_conf): Rename as ...
2689 (process_stratum_target::read_btrace_conf): ... this.
2690 (process_target::supports_range_stepping): Rename as ...
2691 (process_stratum_target::supports_range_stepping): ... this.
2692 (process_target::supports_pid_to_exec_file): Rename as ...
2693 (process_stratum_target::supports_pid_to_exec_file): ... this.
2694 (process_target::pid_to_exec_file): Rename as ...
2695 (process_stratum_target::pid_to_exec_file): ... this.
2696 (process_target::supports_multifs): Rename as ...
2697 (process_stratum_target::supports_multifs): ... this.
2698 (process_target::multifs_open): Rename as ...
2699 (process_stratum_target::multifs_open): ... this.
2700 (process_target::multifs_unlink): Rename as ...
2701 (process_stratum_target::multifs_unlink): ... this.
2702 (process_target::multifs_readlink): Rename as ...
2703 (process_stratum_target::multifs_readlink): ... this.
2704 (process_target::breakpoint_kind_from_pc): Rename as ...
2705 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2706 (process_target::breakpoint_kind_from_current_state): Rename as ...
2707 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2708 (process_target::thread_name): Rename as ...
2709 (process_stratum_target::thread_name): ... this.
2710 (process_target::thread_handle): Rename as ...
2711 (process_stratum_target::thread_handle): ... this.
2712 (process_target::supports_software_single_step): Rename as ...
2713 (process_stratum_target::supports_software_single_step): ... this.
2714 (process_target::supports_catch_syscall): Rename as ...
2715 (process_stratum_target::supports_catch_syscall): ... this.
2716 (process_target::get_ipa_tdesc_idx): Rename as ...
2717 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2718
478f9adf
PA
27192020-02-20 Pedro Alves <palves@redhat.com>
2720
2721 * target.cc (set_target_ops): Simply copy the given target pointer
2722 instead of creating a copy of the pointed object.
2723
d633e831
TBA
27242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2725
2726 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2727 of process_target.
2728
2729 * target.h (struct process_stratum_target): Remove the target op.
2730 (class process_target): Add the target op.
2731 (target_get_ipa_tdesc_idx): Update the macro.
2732 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2733
2734 Update the derived classes and callers below.
2735
2736 * linux-low.cc (linux_target_ops): Update.
2737 (linux_get_ipa_tdesc_idx): Turn into ...
2738 (linux_process_target::get_ipa_tdesc_idx): ... this.
2739 * linux-low.h (class linux_process_target): Update.
2740 * lynx-low.cc (lynx_target_ops): Update.
2741 * nto-low.cc (nto_target_ops): Update.
2742 * win32-low.cc (win32_target_ops): Update.
2743
bc8d3ae4
TBA
27442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2745
2746 Turn process_stratum_target's supports_catch_syscall op into a
2747 method of process_target.
2748
2749 * target.h (struct process_stratum_target): Remove the target op.
2750 (class process_target): Add the target op.
2751 (target_supports_catch_syscall): Update the macro.
2752 * target.cc (process_target::supports_catch_syscall): Define.
2753
2754 Update the derived classes and callers below.
2755
2756 * linux-low.cc (linux_target_ops): Update.
2757 (linux_supports_catch_syscall): Turn into ...
2758 (linux_process_target::supports_catch_syscall): ... this.
2759 * linux-low.h (class linux_process_target): Update.
2760 * lynx-low.cc (lynx_target_ops): Update.
2761 * nto-low.cc (nto_target_ops): Update.
2762 * win32-low.cc (win32_target_ops): Update.
2763
5303a34f
TBA
27642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2765
2766 Turn process_stratum_target's supports_software_single_step op
2767 into a method of process_target.
2768
2769 * target.h (struct process_stratum_target): Remove the target op.
2770 (class process_target): Add the target op.
2771 (target_supports_software_single_step): Update the macro.
2772 * target.cc (process_target::supports_software_single_step): Define.
2773
2774 Update the derived classes and callers below.
2775
2776 * linux-low.cc (linux_target_ops): Update.
2777 (linux_supports_software_single_step): Turn into ...
2778 (linux_process_target::supports_software_single_step): ... this.
2779 * linux-low.h (class linux_process_target): Update.
2780 * lynx-low.cc (lynx_target_ops): Update.
2781 * nto-low.cc (nto_target_ops): Update.
2782 * win32-low.cc (win32_target_ops): Update.
2783
7f63b89b
TBA
27842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2785
2786 Turn process_stratum_target's thread_name and thread_handle ops
2787 into methods of process_target.
2788
2789 * target.h (struct process_stratum_target): Remove the target ops.
2790 (class process_target): Add the target ops.
2791 (target_thread_name): Update the macro.
2792 (target_thread_handle): Update the macro.
2793 * target.cc (process_target::thread_name): Define.
2794 (process_target::thread_handle): Define.
2795
2796 Update the derived classes and callers below.
2797
2798 * linux-low.cc (linux_target_ops): Update.
2799 (linux_process_target::thread_name): Define.
2800 (linux_process_target::thread_handle): Define.
2801 * linux-low.h (class linux_process_target): Update.
2802 * lynx-low.cc (lynx_target_ops): Update.
2803 * nto-low.cc (nto_target_ops): Update.
2804 * win32-low.cc (win32_target_ops): Update.
2805
d367006f
TBA
28062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2807
2808 Turn process_stratum_target's breakpoint_kind_from_pc,
2809 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2810 ops into methods of process_target.
2811
2812 * target.h (struct process_stratum_target): Remove the target op.
2813 (class process_target): Add the target op.
2814 (target_breakpoint_kind_from_pc): Update the macro.
2815 (target_breakpoint_kind_from_current_state): Update the macro.
2816 (default_breakpoint_kind_from_pc): Remove declaration.
2817 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2818 (process_target::breakpoint_kind_from_pc): ... this.
2819 (process_target::breakpoint_kind_from_current_state): Define.
2820
2821 Update the derived classes and callers below.
2822
2823 * mem-break.cc (bp_size): Update.
2824 (bp_opcode): Update.
2825 * linux-low.cc (linux_target_ops): Update.
2826 (linux_wait_1): Update.
2827 (linux_breakpoint_kind_from_pc): Turn into ...
2828 (linux_process_target::breakpoint_kind_from_pc): ... this.
2829 (linux_sw_breakpoint_from_kind): Turn into ...
2830 (linux_process_target::sw_breakpoint_from_kind): ... this.
2831 (linux_breakpoint_kind_from_current_state): Turn into ...
2832 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2833 * linux-low.h (class linux_process_target): Update.
2834 * lynx-low.cc (lynx_target_ops): Update.
2835 (lynx_process_target::sw_breakpoint_from_kind): Define.
2836 * lynx-low.h (class lynx_process_target): Update.
2837 * nto-low.cc (nto_target_ops): Update.
2838 (nto_sw_breakpoint_from_kind): Turn into ...
2839 (nto_process_target::sw_breakpoint_from_kind): ... this.
2840 * nto-low.h (class nto_process_target): Update.
2841 * win32-low.cc (win32_target_ops): Update.
2842 (win32_sw_breakpoint_from_kind): Turn into ...
2843 (win32_process_target::sw_breakpoint_from_kind): ... this.
2844 * win32-low.h (class win32_process_target): Update.
2845
c9b7b804
TBA
28462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2847
2848 Turn process_stratum_target's multifs_open, multifs_readlink,
2849 multifs_unlink ops into methods of process_target.
2850
2851 * target.h (struct process_stratum_target): Remove the target ops.
2852 (class process_target): Add the target ops. Also add
2853 'supports_multifs'.
2854 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2855 "sys/stat.h".
2856 (process_target::supports_multifs): Define.
2857 (process_target::multifs_open): Define.
2858 (process_target::multifs_readlink): Define.
2859 (process_target::multifs_unlink): Define.
2860
2861 Update the derived classes and callers below.
2862
2863 * hostio.cc (handle_setfs): Update.
2864 (handle_open): Update.
2865 (handle_unlink): Update.
2866 (handle_readlink): Update.
2867 * linux-low.cc (linux_target_ops): Update.
2868 (linux_process_target::supports_multifs): Define.
2869 (linux_process_target::multifs_open): Define.
2870 (linux_process_target::multifs_readlink): Define.
2871 (linux_process_target::multifs_unlink): Define.
2872 * linux-low.h (class linux_process_target): Update.
2873 * lynx-low.cc (lynx_target_ops): Update.
2874 * nto-low.cc (nto_target_ops): Update.
2875 * win32-low.cc (win32_target_ops): Update.
2876
8247b823
TBA
28772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2878
2879 Turn process_stratum_target's pid_to_exec_file op into a method
2880 of process_target.
2881
2882 * target.h (struct process_stratum_target): Remove the target op.
2883 (class process_target): Add the target op. Also add
2884 'supports_pid_to_exec_file'.
2885 * target.cc (process_target::pid_to_exec_file): Define.
2886 (process_target::supports_pid_to_exec_file): Define.
2887
2888 Update the derived classes and callers below.
2889
2890 * server.cc (handle_qxfer_exec_file): Update.
2891 (handle_query): Update.
2892 * linux-low.cc (linux_target_ops): Update.
2893 (linux_process_target::supports_pid_to_exec_file): Define.
2894 (linux_process_target::pid_to_exec_file): Define.
2895 * linux-low.h (class linux_process_target): Update.
2896 * lynx-low.cc (lynx_target_ops): Update.
2897 * nto-low.cc (nto_target_ops): Update.
2898 * win32-low.cc (win32_target_ops): Update.
2899
2526e0cd
TBA
29002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2901
2902 Turn process_stratum_target's supports_range_stepping op into a
2903 method of process_target.
2904
2905 * target.h (struct process_stratum_target): Remove the target op.
2906 (class process_target): Add the target op.
2907 (target_supports_range_stepping): Update the macro.
2908 * target.cc (process_target::supports_range_stepping): Define.
2909
2910 Update the derived classes and callers below.
2911
2912 * linux-low.cc (linux_target_ops): Update.
2913 (linux_supports_range_stepping): Turn into ...
2914 (linux_process_target::supports_range_stepping): ... this.
2915 * linux-low.h (class linux_process_target): Update.
2916 * lynx-low.cc (lynx_target_ops): Update.
2917 * nto-low.cc (nto_target_ops): Update.
2918 * win32-low.cc (win32_target_ops): Update.
2919
79597bdd
TBA
29202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2921
2922 Turn process_stratum_target's btrace-related ops (enable_btrace,
2923 disable_btrace, read_btrace, read_btrace_conf) into methods of
2924 process_target.
2925
2926 * target.h (struct process_stratum_target): Remove the target ops.
2927 (class process_target): Add the target ops.
2928 (target_enable_btrace): Update.
2929 (target_disable_btrace): Update.
2930 (target_read_btrace): Update.
2931 (target_read_btrace_conf): Update.
2932 * target.cc (process_target::enable_btrace): Define.
2933 (process_target::disable_btrace): Define.
2934 (process_target::read_btrace): Define.
2935 (process_target::read_btrace_conf): Define.
2936
2937 Update the derived classes and callers below.
2938
2939 * linux-low.cc (linux_target_ops): Update.
2940 (linux_process_target:enable_btrace): Define as a wrapper around
2941 linux_enable_btrace.
2942 (linux_low_disable_btrace): Turn into ...
2943 (linux_process_target::disable_btrace): ... this.
2944 (linux_low_read_btrace): Turn into ...
2945 (linux_process_target::read_btrace): ... this.
2946 (linux_low_btrace_conf): Turn into ...
2947 (linux_process_target::read_btrace_conf): ... this.
2948 * linux-low.h (class linux_process_target): Update.
2949 * lynx-low.cc (lynx_target_ops): Update.
2950 * nto-low.cc (nto_target_ops): Update.
2951 * win32-low.cc (win32_target_ops): Update.
2952
c0245cb9
TBA
29532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2954
2955 Turn process_stratum_target's supports_agent op into a method of
2956 process_target.
2957
2958 * target.h (struct process_stratum_target): Remove the target op.
2959 (class process_target): Add the target op.
2960 (target_supports_agent): Update the macro.
2961 * target.cc (process_target::supports_agent): Define.
2962
2963 Update the derived classes and callers below.
2964
2965 * linux-low.cc (linux_target_ops): Update.
2966 (linux_supports_agent): Turn into ...
2967 (linux_process_target::supports_agent): ... this.
2968 * linux-low.h (class linux_process_target): Update.
2969 * lynx-low.cc (lynx_target_ops): Update.
2970 * nto-low.cc (nto_target_ops): Update.
2971 * win32-low.cc (win32_target_ops): Update.
2972
974387bb
TBA
29732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2974
2975 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2976 method of process_target.
2977
2978 * target.h (struct process_stratum_target): Remove the target op.
2979 (class process_target): Add the target op. Also add
2980 'supports_qxfer_libraries_svr4'.
2981 * target.cc (process_target::qxfer_libraries_svr4): Define.
2982 (process_target::supports_qxfer_libraries_svr4): Define.
2983
2984 Update the derived classes and callers below.
2985
2986 * server.cc (handle_qxfer_libraries_svr4): Update.
2987 (handle_query): Update.
2988 * linux-low.cc (linux_target_ops): Update.
2989 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2990 (linux_qxfer_libraries_svr4): Turn into ...
2991 (linux_process_target::qxfer_libraries_svr4): ... this.
2992 * linux-low.h (class linux_process_target): Update.
2993 * lynx-low.cc (lynx_target_ops): Update.
2994 * nto-low.cc (nto_target_ops): Update.
2995 * win32-low.cc (win32_target_ops): Update.
2996
c756403b
TBA
29972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2998
2999 Turn process_stratum_target's supports_disable_randomization op
3000 into a method of process_target.
3001
3002 * target.h (struct process_stratum_target): Remove the target op.
3003 (class process_target): Add the target op.
3004 (target_supports_disable_randomization): Update the macro.
3005 * target.cc (process_target::supports_disable_randomization): Define.
3006
3007 Update the derived classes and callers below.
3008
3009 * linux-low.cc (linux_target_ops): Update.
3010 (linux_supports_disable_randomization): Turn into ...
3011 (linux_process_target::supports_disable_randomization): ... this.
3012 * linux-low.h (class linux_process_target): Update.
3013 * lynx-low.cc (lynx_target_ops): Update.
3014 * nto-low.cc (nto_target_ops): Update.
3015 * win32-low.cc (win32_target_ops): Update.
3016
345dafad
TBA
30172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3018
3019 Turn process_stratum_target's emit_ops op into a method of
3020 process_target.
3021
3022 * target.h (struct process_stratum_target): Remove the target op.
3023 (class process_target): Add the target op.
3024 (target_emit_ops): Update the macro.
3025 * target.cc (process_target::emit_ops): Define.
3026
3027 Update the derived classes and callers below.
3028
3029 * linux-low.cc (linux_target_ops): Update.
3030 (linux_emit_ops): Turn into ...
3031 (linux_process_target::emit_ops): ... this.
3032 * linux-low.h (class linux_process_target): Update.
3033 * lynx-low.cc (lynx_target_ops): Update.
3034 * nto-low.cc (nto_target_ops): Update.
3035 * win32-low.cc (win32_target_ops): Update.
3036
c23c9391
TBA
30372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3038
3039 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3040 and get_min_fast_tracepoint_insn_len ops into methods of
3041 process_target.
3042
3043 * target.h (struct process_stratum_target): Remove the target ops.
3044 (class process_target): Add the target ops. Also add
3045 'supports_fast_tracepoints'.
3046 (target_supports_fast_tracepoints): Update the macro.
3047 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3048 (install_fast_tracepoint_jump_pad): Update and rename the macro
3049 to ...
3050 (target_install_fast_tracepoint_jump_pad): ... this.
3051 * target.cc (process_target::supports_fast_tracepoints): Define.
3052 (process_target::install_fast_tracepoint_jump_pad): Define.
3053 (process_target::get_min_fast_tracepoint_insn_len): Define.
3054
3055 Update the derived classes and callers below.
3056
3057 * tracepoint.cc (install_fast_tracepoint): Update.
3058 * linux-low.cc (linux_target_ops): Update.
3059 (linux_process_target::supports_fast_tracepoints): Define.
3060 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3061 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3062 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3063 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3064 * linux-low.h (class linux_process_target): Update.
3065 * lynx-low.cc (lynx_target_ops): Update.
3066 * nto-low.cc (nto_target_ops): Update.
3067 * win32-low.cc (win32_target_ops): Update.
3068
5c9eb2f2
TBA
30692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3070
3071 Turn process_stratum_target's stabilize_threads op into a
3072 method of process_target.
3073
3074 * target.h (struct process_stratum_target): Remove the target op.
3075 (class process_target): Add the target op.
3076 (target_stabilize_threads): Update the macro.
3077 * target.cc (process_target::stabilize_threads): Define.
3078
3079 Update the derived classes and callers below.
3080
3081 * server.cc (handle_status): Update.
3082 * tracepoint.cc (cmd_qtdp): Update.
3083 (cmd_qtstart): Update.
3084 * linux-low.cc (linux_target_ops): Update.
3085 (linux_stabilize_threads): Turn into ...
3086 (linux_process_target::stabilize_threads): ... this.
3087 (linux_wait_1): Update.
3088 * linux-low.h (class linux_process_target): Update.
3089 * lynx-low.cc (lynx_target_ops): Update.
3090 * nto-low.cc (nto_target_ops): Update.
3091 * win32-low.cc (win32_target_ops): Update.
3092
29e8dc09
TBA
30932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3094
3095 Turn process_stratum_target's pause_all and unpause_all ops
3096 into methods of process_target.
3097
3098 * target.h (struct process_stratum_target): Remove the target ops.
3099 (class process_target): Add the target ops.
3100 (pause_all): Update the macro and rename to...
3101 (target_pause_all): ... this.
3102 (unpause_all): Update the macro and rename to...
3103 (target_unpause_all): ... this.
3104 * target.cc (process_target::pause_all): Define.
3105 (process_target::unpause_all): Define.
3106
3107 Update the derived classes and callers below.
3108
3109 * server.cc (handle_status): Update.
3110 * tracepoint.cc (clear_installed_tracepoints): Update.
3111 (cmd_qtdp): Update.
3112 (cmd_qtstart): Update.
3113 (stop_tracing): Update.
3114 (cmd_qtstatus): Update.
3115 (upload_fast_traceframes): Update.
3116 (run_inferior_command): Update.
3117 * linux-low.cc (linux_target_ops): Update.
3118 (linux_pause_all): Turn into ...
3119 (linux_process_target::pause_all): ... this.
3120 (linux_unpause_all): Turn into ...
3121 (linux_process_target::unpause_all): ... this.
3122 (linux_process_target::prepare_to_access_memory): Update.
3123 (linux_process_target::done_accessing_memory): Update.
3124 * linux-low.h (class linux_process_target): Update.
3125 * lynx-low.cc (lynx_target_ops): Update.
3126 * nto-low.cc (nto_target_ops): Update.
3127 * win32-low.cc (win32_target_ops): Update.
3128
4e2e869c
TBA
31292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3130
3131 Turn process_stratum_target's get_tib_address op into a method of
3132 process_target.
3133
3134 * target.h (struct process_stratum_target): Remove the target op.
3135 (class process_target): Add the target op. Also add
3136 'supports_get_tib_address'.
3137 * target.cc (process_target::get_tib_address): Define.
3138 (process_target::supports_get_tib_address): Define.
3139
3140 Update the derived classes and callers below.
3141
3142 * server.cc (handle_query): Update.
3143 * linux-low.cc (win32_target_ops): Update.
3144 * lynx-low.cc (lynx_target_ops): Update.
3145 * nto-low.cc (nto_target_ops): Update.
3146 * win32-low.cc (win32_target_ops): Update.
3147 (win32_process_target::supports_get_tib_address): Define.
3148 (win32_get_tib_address): Turn into ...
3149 (win32_process_target::get_tib_address): ... this.
3150 * win32-low.h (class win32_process_target): Update.
3151
68119632
TBA
31522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3153
3154 Turn process_stratum_target's thread_stopped op into a method of
3155 process_target.
3156
3157 * target.h (struct process_stratum_target): Remove the target op.
3158 (class process_target): Add the target op. Also add
3159 'supports_thread_stopped'.
3160 (target_thread_stopped): Update the macro.
3161 * target.cc (process_target::thread_stopped): Define.
3162 (process_target::supports_thread_stopped): Define.
3163 (prepare_to_access_memory): Update.
3164
3165 Update the derived classes and callers below.
3166
3167 * server.cc (queue_stop_reply_callback): Update.
3168 * linux-low.cc (linux_target_ops): Update.
3169 (linux_process_target::supports_thread_stopped): Define.
3170 (linux_thread_stopped): Turn into ...
3171 (linux_process_target::thread_stopped): ... this.
3172 * linux-low.h (class linux_process_target): Update.
3173 * lynx-low.cc (lynx_target_ops): Update.
3174 * nto-low.cc (nto_target_ops): Update.
3175 * win32-low.cc (win32_target_ops): Update.
3176
770d8f6a
TBA
31772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3178
3179 Turn process_stratum_target's read_pc and write_pc ops into
3180 methods of process_target.
3181
3182 * target.h (struct process_stratum_target): Remove the target ops.
3183 (class process_target): Add the target ops.
3184 * target.cc (process_target::read_pc): Define.
3185 (process_target::write_pc): Define.
3186
3187 Update the derived classes and callers below.
3188
3189 * regcache.cc (regcache_read_pc): Update.
3190 (regcache_write_pc): Update.
3191 * linux-low.cc (linux_target_ops): Update.
3192 (linux_read_pc): Turn into ...
3193 (linux_process_target::read_pc): ... this.
3194 (linux_write_pc): Turn into ...
3195 (linux_process_target::write_pc): ... this.
3196 * linux-low.h (class linux_process_target): Update.
3197 * lynx-low.cc (lynx_target_ops): Update.
3198 * nto-low.cc (nto_target_ops): Update.
3199 * win32-low.cc (win32_target_ops): Update.
3200
290732bf
TBA
32012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3202
3203 Turn process_stratum_target's supports_tracepoints op into a
3204 method of process_target.
3205
3206 * target.h (struct process_stratum_target): Remove the target op.
3207 (class process_target): Add the target op.
3208 (target_supports_tracepoints): Update the macro.
3209 * target.cc (process_target::supports_tracepoints): Define.
3210
3211 Update the derived classes and callers below.
3212
3213 * linux-low.cc (linux_target_ops): Update.
3214 (linux_supports_tracepoints): Turn into ...
3215 (linux_process_target::supports_tracepoints): ... this.
3216 * linux-low.h (class linux_process_target): Update.
3217 * lynx-low.cc (lynx_target_ops): Update.
3218 * nto-low.cc (nto_target_ops): Update.
3219 * win32-low.cc (win32_target_ops): Update.
3220
0df28b1b
TBA
32212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3222
3223 Turn process_stratum_target's process_qsupported op into a method
3224 of process_target.
3225
3226 * target.h (struct process_stratum_target): Remove the target op.
3227 (class process_target): Add the target op.
3228 (target_process_qsupported): Update the macro.
3229 * target.cc (process_target::process_qsupported): Define.
3230
3231 Update the derived classes and callers below.
3232
3233 * linux-low.cc (linux_target_ops): Update.
3234 (linux_process_qsupported): Turn into ...
3235 (linux_process_target::process_qsupported): ... this.
3236 * linux-low.h (class linux_process_target): Update.
3237 * lynx-low.cc (lynx_target_ops): Update.
3238 * nto-low.cc (nto_target_ops): Update.
3239 * win32-low.cc (win32_target_ops): Update.
3240
9da41fda
TBA
32412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3242
3243 Turn process_stratum_target's read_loadmap op into a method of
3244 process_target.
3245
3246 * target.h (struct process_stratum_target): Remove the target op.
3247 (class process_target): Add the target op. Also add
3248 'supports_read_loadmap'.
3249 * target.cc (process_target::read_loadmap): Define.
3250 (process_target::supports_read_loadmap): Define.
3251
3252 Update the derived classes and callers below.
3253
3254 * server.cc (handle_qxfer_fdpic): Update.
3255 (handle_query): Update.
3256 * linux-low.cc (linux_target_ops): Update.
3257 (linux_process_target::supports_read_loadmap): Define.
3258 (linux_read_loadmap): Turn into ...
3259 (linux_process_target::read_loadmap): ... this.
3260 * linux-low.h (class linux_process_target): Update.
3261 * lynx-low.cc (lynx_target_ops): Update.
3262 * nto-low.cc (nto_target_ops): Update.
3263 * win32-low.cc (win32_target_ops): Update.
3264
95a45fc1
TBA
32652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3266
3267 Turn process_stratum_target's core_of_thread op into a method of
3268 process_target.
3269
3270 * target.h (struct process_stratum_target): Remove the target op.
3271 (class process_target): Add the target op.
3272 (target_core_of_thread): Update the macro.
3273 * target.cc (process_target::core_of_thread): Define.
3274
3275 Update the derived classes and callers below.
3276
3277 * linux-low.cc (linux_target_ops): Update.
3278 (linux_process_target::core_of_thread): Define.
3279 * linux-low.h (class linux_process_target): Update.
3280 * lynx-low.cc (lynx_target_ops): Update.
3281 * nto-low.cc (nto_target_ops): Update.
3282 * win32-low.cc (win32_target_ops): Update.
3283
55cf3021
TBA
32842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3285
3286 Turn process_stratum_target's handle_monitor_command op into a
3287 method of process_target.
3288
3289 * target.h (struct process_stratum_target): Remove the target op.
3290 (class process_target): Add the target op.
3291 (target_handle_monitor_command): Update the macro.
3292 * target.cc (process_target::handle_monitor_command): Define.
3293
3294 Update the derived classes and callers below.
3295
3296 * server.cc (handle_query): Update.
3297 * linux-low.cc (linux_target_ops): Update.
3298 (linux_process_target::handle_monitor_command): Define.
3299 * linux-low.h (class linux_process_target): Update.
3300 * lynx-low.cc (lynx_target_ops): Update.
3301 * nto-low.cc (nto_target_ops): Update.
3302 * win32-low.cc (win32_target_ops): Update.
3303
fb00dfce
TBA
33042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3305
3306 Turn process_stratum_target's handle_new_gdb_connection op into a
3307 method of process_target.
3308
3309 * target.h (struct process_stratum_target): Remove the target op.
3310 (class process_target): Add the target op.
3311 (target_handle_new_gdb_connection): Update the macro.
3312 * target.cc (process_target::handle_new_gdb_connection): Define.
3313
3314 Update the derived classes and callers below.
3315
3316 * linux-low.cc (linux_target_ops): Update.
3317 (linux_handle_new_gdb_connection): Turn into ...
3318 (linux_process_target::handle_new_gdb_connection): ... this.
3319 * linux-low.h (class linux_process_target): Update.
3320 * lynx-low.cc (lynx_target_ops): Update.
3321 * nto-low.cc (nto_target_ops): Update.
3322 * win32-low.cc (win32_target_ops): Update.
3323
9690a72a
TBA
33242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3325
3326 Turn process_stratum_target's supports_fork_events,
3327 supports_vfork_events, and supports_exec_events ops into methods
3328 of process_target.
3329
3330 * target.h (struct process_stratum_target): Remove the target ops.
3331 (class process_target): Add the target ops.
3332 (target_supports_fork_events): Update the macro.
3333 (target_supports_vfork_events): Update the macro.
3334 (target_supports_exec_events): Update the macro.
3335 * target.cc (process_target::supports_fork_events): Define.
3336 (process_target::supports_vfork_events): Define.
3337 (process_target::supports_exec_events): Define.
3338
3339 Update the derived classes and callers below.
3340
3341 * linux-low.cc (linux_target_ops): Update.
3342 (linux_supports_fork_events): Turn into ...
3343 (linux_process_target::supports_fork_events): ... this.
3344 (linux_supports_vfork_events): Turn into ...
3345 (linux_process_target::supports_vfork_events): ... this.
3346 (linux_supports_exec_events): Turn into ...
3347 (linux_process_target::supports_exec_events): ... this.
3348 * linux-low.h (class linux_process_target): Update.
3349 * lynx-low.cc (lynx_target_ops): Update.
3350 * nto-low.cc (nto_target_ops): Update.
3351 * win32-low.cc (win32_target_ops): Update.
3352
652aef77
TBA
33532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3354
3355 Turn process_stratum_target's supports_multi_process op into a
3356 method of process_target.
3357
3358 * target.h (struct process_stratum_target): Remove the target op.
3359 (class process_target): Add the target op.
3360 * target.cc (process_target::supports_multi_process): Define.
3361 (target_supports_multi_process): Update.
3362
3363 Update the derived classes and callers below.
3364
3365 * linux-low.cc (linux_target_ops): Update.
3366 (linux_supports_multi_process): Turn into ...
3367 (linux_process_target::supports_multi_process): ... this.
3368 * linux-low.h (class linux_process_target): Update.
3369 * lynx-low.cc (lynx_target_ops): Update.
3370 * nto-low.cc (nto_target_ops): Update.
3371 * win32-low.cc (win32_target_ops): Update.
3372
0dc587d4
TBA
33732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3374
3375 Turn process_stratum_target's supports_non_stop, async, and
3376 start_non_stop ops into methods of process_target.
3377
3378 * target.h (struct process_stratum_target): Remove the target ops.
3379 (class process_target): Add the target ops.
3380 (target_supports_non_stop): Update the macro.
3381 (target_async): Update the macro.
3382 (start_non_stop): Remove declaration.
3383 * target.cc (process_target::supports_non_stop): Define.
3384 (process_target::async): Define.
3385 (process_target::start_non_stop): Define.
3386 (start_non_stop): Remove.
3387
3388 Update the derived classes and callers below.
3389
3390 * server.cc (handle_qxfer_siginfo): Update.
3391 (handle_query): Update.
3392 * linux-low.cc (linux_target_ops): Update.
3393 (linux_supports_non_stop): Turn into ...
3394 (linux_process_target::supports_non_stop): ... this.
3395 (linux_async): Turn into ...
3396 (linux_process_target::async): ... this.
3397 (linux_start_non_stop): Turn into ...
3398 (linux_process_target::start_non_stop): ... this.
3399 * linux-low.h (class linux_process_target): Update.
3400 * lynx-low.cc (lynx_target_ops): Update.
3401 * nto-low.cc (nto_target_ops): Update.
3402 (nto_supports_non_stop): Remove; rely on the default behavior
3403 instead.
3404 * win32-low.cc (win32_target_ops): Update.
3405
d7abedf7
TBA
34062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3407
3408 Turn process_stratum_target's qxfer_siginfo op into a method of
3409 process_target.
3410
3411 * target.h (struct process_stratum_target): Remove the target op.
3412 (class process_target): Add the target op. Also add
3413 'supports_qxfer_siginfo'.
3414 * target.cc (process_target::qxfer_siginfo): Define.
3415 (process_target::supports_qxfer_siginfo): Define.
3416
3417 Update the derived classes and callers below.
3418
3419 * server.cc (handle_qxfer_siginfo): Update.
3420 (handle_query): Update.
3421 * linux-low.cc (linux_target_ops): Update.
3422 (linux_process_target::supports_qxfer_siginfo): Define.
3423 (linux_xfer_siginfo): Turn into ...
3424 (linux_process_target::qxfer_siginfo): ... this.
3425 * linux-low.h (class linux_process_target): Update.
3426 * lynx-low.cc (lynx_target_ops): Update.
3427 * nto-low.cc (nto_target_ops): Update.
3428 * win32-low.cc (win32_target_ops): Update.
3429
2d0795ee
TBA
34302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3431
3432 Turn process_stratum_target's qxfer_osdata op into a method of
3433 process_target.
3434
3435 * target.h (struct process_stratum_target): Remove the target op.
3436 (class process_target): Add the target op. Also add
3437 'supports_qxfer_osdata'.
3438 * target.cc (process_target::qxfer_osdata): Define.
3439 (process_target::supports_qxfer_osdata): Define.
3440
3441 Update the derived classes and callers below.
3442
3443 * server.cc (handle_qxfer_osdata): Update.
3444 (handle_query): Update.
3445 * linux-low.cc (linux_target_ops): Update.
3446 (linux_process_target::supports_qxfer_osdata): Define.
3447 (linux_qxfer_osdata): Turn into ...
3448 (linux_process_target::qxfer_osdata): ... this.
3449 * linux-low.h (class linux_process_target): Update.
3450 * lynx-low.cc (lynx_target_ops): Update.
3451 * nto-low.cc (nto_target_ops): Update.
3452 * win32-low.cc (win32_target_ops): Update.
3453
ea06bbaa
TBA
34542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3455
3456 Turn process_stratum_target's hostio_last_error op into a
3457 method of process_target.
3458
3459 * target.h (struct process_stratum_target): Remove the target op.
3460 (class process_target): Add the target op.
3461 * target.cc: Add "hostio.h" to includes.
3462 (process_target::hostio_last_error): Define.
3463
3464 Update the derived classes and callers below.
3465
3466 * hostio.cc (hostio_error): Update.
3467 * linux-low.cc: Remove "hostio.h" from includes.
3468 (linux_target_ops): Update.
3469 * lynx-low.cc (lynx_target_ops): Update.
3470 * nto-low.cc (nto_target_ops): Update.
3471 * win32-low.h (class win32_process_target): Update.
3472 * win32-low.cc (win32_target_ops): Update.
3473 (wince_hostio_last_error): Turn into ...
3474 (win32_process_target::hostio_last_error): ... this.
3475
6e3fd7e9
TBA
34762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3477
3478 Turn process_stratum_target's get_tls_address op into a method of
3479 process_target.
3480
3481 * target.h (struct process_stratum_target): Remove the target op.
3482 (class process_target): Add the target op. Also add
3483 'supports_get_tls_address'.
3484 * target.cc (process_target::get_tls_address): Define.
3485 (process_target::supports_get_tls_address): Define.
3486
3487 Update the derived classes and callers below.
3488
3489 * server.cc (handle_query): Update.
3490 * linux-low.cc (linux_target_ops): Update.
3491 (linux_process_target::supports_get_tls_address): Define.
3492 (linux_process_target::get_tls_address): Define.
3493 * linux-low.h (class linux_process_target): Update.
3494 * lynx-low.cc (lynx_target_ops): Update.
3495 * nto-low.cc (nto_target_ops): Update.
3496 * win32-low.cc (win32_target_ops): Update.
3497
5203ae1e
TBA
34982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3499
3500 Turn process_stratum_target's read_offsets op into a method of
3501 process_target.
3502
3503 * target.h (struct process_stratum_target): Remove the target op.
3504 (class process_target): Add the target op. Also add
3505 'supports_read_offsets'.
3506 * target.cc (process_target::read_offsets): Define.
3507 (process_target::supports_read_offsets): Define.
3508
3509 Update the derived classes and callers below.
3510
3511 * server.cc (handle_query): Update.
3512 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3513 (linux_target_ops): Update.
3514 (linux_process_target::supports_read_offsets): Define.
3515 (linux_read_offsets): Turn into ...
3516 (linux_process_target::read_offsets): ... this.
3517 * linux-low.h (class linux_process_target): Update.
3518 * lynx-low.cc (lynx_target_ops): Update.
3519 * nto-low.cc (nto_target_ops): Update.
3520 * win32-low.cc (win32_target_ops): Update.
3521
6eeb5c55
TBA
35222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3523
3524 Turn process_stratum_target's stopped_by_watchpoint and
3525 stopped_data_address ops into methods of process_target.
3526
3527 * target.h (struct process_stratum_target): Remove the target ops.
3528 (class process_target): Add the target ops.
3529 * target.cc (process_target::stopped_by_watchpoint): Define.
3530 (process_target::stopped_data_address): Define.
3531
3532 Update the derived classes and callers below.
3533
3534 * remote-utils.cc (prepare_resume_reply): Update.
3535 * linux-low.cc (linux_target_ops): Update.
3536 (linux_stopped_by_watchpoint): Turn into ...
3537 (linux_process_target::stopped_by_watchpoint): ... this.
3538 (linux_stopped_data_address): Turn into ...
3539 (linux_process_target::stopped_data_address): ... this.
3540 * linux-low.h (class linux_process_target): Update.
3541 * lynx-low.cc (lynx_target_ops): Update.
3542 * nto-low.cc (nto_target_ops): Update.
3543 (nto_stopped_by_watchpoint): Turn into ...
3544 (nto_process_target::stopped_by_watchpoint): ... this.
3545 (nto_stopped_data_address): Turn into ...
3546 (nto_process_target::stopped_data_address): ... this.
3547 * nto-low.h (class nto_process_target): Update.
3548 * win32-low.cc (win32_target_ops): Update.
3549 (win32_stopped_by_watchpoint): Turn into ...
3550 (win32_process_target::stopped_by_watchpoint): ... this.
3551 (win32_stopped_data_address): Turn into ...
3552 (win32_process_target::stopped_data_address): ... this.
3553 * win32-low.h (class win32_process_target): Update.
3554
22aa6223
TBA
35552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3556
3557 Turn process_stratum_target's supports_hardware_single_step op into
3558 a method of process_target.
3559
3560 * target.h (struct process_stratum_target): Remove the target op.
3561 (class process_target): Add the target op.
3562 (target_supports_hardware_single_step): Update the macro.
3563 (target_can_do_hardware_single_step): Remove declaration.
3564 * target.cc (process_target::supports_hardware_single_step): Define.
3565 (target_can_do_hardware_single_step): Remove.
3566
3567 Update the derived classes and callers below.
3568
3569 * linux-low.h (class linux_process_target): Update.
3570 * linux-low.cc (linux_target_ops): Update.
3571 (linux_supports_hardware_single_step): Turn into ...
3572 (linux_process_target::supports_hardware_single_step): ... this.
3573 * lynx-low.h (class lynx_process_target): Update.
3574 * lynx-low.cc (lynx_target_ops): Update.
3575 (lynx_process_target::supports_hardware_single_step): Define.
3576 * nto-low.h (class nto_process_target): Update.
3577 * nto-low.cc (nto_target_ops): Update.
3578 (nto_process_target::supports_hardware_single_step): Define.
3579 * win32-low.h (class win32_process_target): Update.
3580 * win32-low.cc (win32_target_ops): Update.
3581 (win32_process_target::supports_hardware_single_step): Define.
3582
93fe88b2
TBA
35832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3584
3585 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3586 ops into methods of process_target.
3587
3588 * target.h (struct process_stratum_target): Remove the target ops.
3589 (class process_target): Add the target ops.
3590 (target_stopped_by_hw_breakpoint): Update the macro.
3591 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3592 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3593 (process_target::supports_stopped_by_hw_breakpoint): Define.
3594
3595 Update the derived classes and callers below.
3596
3597 * linux-low.cc (linux_target_ops): Update.
3598 (linux_stopped_by_hw_breakpoint): Turn into ...
3599 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3600 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3601 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3602 * linux-low.h (class linux_process_target): Update.
3603 * lynx-low.cc (lynx_target_ops): Update.
3604 * nto-low.cc (nto_target_ops): Update.
3605 * win32-low.cc (win32_target_ops): Update.
3606
84320c4e
TBA
36072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3608
3609 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3610 ops into methods of process_target.
3611
3612 * target.h (struct process_stratum_target): Remove the target ops.
3613 (class process_target): Add the target ops.
3614 (target_stopped_by_sw_breakpoint): Update the macro.
3615 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3616 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3617 (process_target::supports_stopped_by_sw_breakpoint): Define.
3618
3619 Update the derived classes and callers below.
3620
3621 * linux-low.cc (linux_target_ops): Update.
3622 (linux_stopped_by_sw_breakpoint): Turn into ...
3623 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3624 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3625 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3626 * linux-low.h (class linux_process_target): Update.
3627 * lynx-low.cc (lynx_target_ops): Update.
3628 * nto-low.cc (nto_target_ops): Update.
3629 * win32-low.cc (win32_target_ops): Update.
3630
7e0bde70
TBA
36312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3632
3633 Turn process_stratum_target's insert_point and remove_point ops
3634 into methods of process_target.
3635
3636 * target.h (struct process_stratum_target): Remove the target ops.
3637 (class process_target): Add the target ops.
3638 * target.cc (process_target::insert_point): Define.
3639 (process_target::remove_point): Define.
3640
3641 Update the derived classes and callers below.
3642
3643 * mem-break.cc (set_raw_breakpoint_at): Update.
3644 (delete_raw_breakpoint): Update.
3645 (uninsert_raw_breakpoint): Update.
3646 (reinsert_raw_breakpoint): Update.
3647 * linux-low.cc (linux_target_ops): Update.
3648 (linux_insert_point): Turn into ...
3649 (linux_process_target::insert_point): ... this.
3650 (linux_remove_point): Turn into ...
3651 (linux_process_target::remove_point): ... this.
3652 * linux-low.h (class linux_process_target): Update.
3653 * lynx-low.cc (lynx_target_ops): Update.
3654 * nto-low.cc (nto_target_ops): Update.
3655 (nto_insert_point): Turn into ...
3656 (nto_process_target::insert_point): ... this.
3657 (nto_remove_point): Turn into ...
3658 (nto_process_target::remove_point): ... this.
3659 * nto-low.h (class nto_process_target): Update.
3660 * win32-low.cc (win32_target_ops): Update.
3661 (win32_insert_point): Turn into ...
3662 (win32_process_target::insert_point): ... this.
3663 (win32_remove_point): Turn into ...
3664 (win32_process_target::remove_point): ... this.
3665 * win32-low.h (class win32_process_target): Update.
3666
a2b2297a
TBA
36672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3668
3669 Turn process_stratum_target's supports_z_point_type op into a
3670 method of process_target.
3671
3672 * target.h (struct process_stratum_target): Remove the target op.
3673 (class process_target): Add the target op.
3674 * target.cc (process_target::supports_z_point_type): Define.
3675
3676 Update the derived classes and callers below.
3677
3678 * mem-break.cc (z_type_supported): Update.
3679 * linux-low.cc (linux_target_ops): Update.
3680 (linux_supports_z_point_type): Turn into ...
3681 (linux_process_target::supports_z_point_type): ... this.
3682 * linux-low.h (class linux_process_target): Update.
3683 * lynx-low.cc (lynx_target_ops): Update.
3684 * nto-low.cc (nto_target_ops): Update.
3685 (nto_supports_z_point_type): Turn into ...
3686 (nto_process_target::supports_z_point_type): ... this.
3687 * nto-low.h (class nto_process_target): Update.
3688 * win32-low.cc (win32_target_ops): Update.
3689 (win32_supports_z_point_type): Turn into ...
3690 (win32_process_target::supports_z_point_type): ... this.
3691 * win32-low.h (class win32_process_target): Update.
3692
eac215cc
TBA
36932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3694
3695 Turn process_stratum_target's read_auxv op into a method of
3696 process_target.
3697
3698 * target.h (class process_stratum_target): Remove the target op.
3699 (struct process_target): Add the target op. Also add
3700 'supports_read_auxv'.
3701 * target.cc (process_target::read_auxv): Define.
3702 (process_target::supports_read_auxv): Define.
3703
3704 Update the derived classes and callers below.
3705
3706 * server.cc (handle_qxfer_auxv): Update.
3707 (handle_query): Update.
3708 * linux-low.cc (linux_target_ops): Update.
3709 (linux_process_target::supports_read_auxv): Define.
3710 (linux_read_auxv): Turn into ...
3711 (linux_process_target::read_auxv): ... this.
3712 * linux-low.h (class linux_process_target): Update.
3713 * lynx-low.cc (lynx_target_ops): Update.
3714 * nto-low.cc (nto_target_ops): Update.
3715 (nto_process_target::supports_read_auxv): Define.
3716 (nto_read_auxv): Turn into ...
3717 (nto_process_target::read_auxv): ... this.
3718 * nto-low.h (class nto_process_target): Update.
3719 * win32-low.cc (win32_target_ops): Update.
3720
eb497a2a
TBA
37212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3722
3723 Turn process_stratum_target's request_interrupt op into a method of
3724 process_target.
3725
3726 * target.h (struct process_stratum_target): Remove the target op.
3727 (class process_target): Add the target op.
3728
3729 Update the derived classes and callers below.
3730
3731 * remote-utils.cc (putpkt_binary_1): Update.
3732 (input_interrupt): Update.
3733 (getpkt): Update.
3734 * server.cc (handle_v_requests): Update.
3735 * linux-low.cc (linux_target_ops): Update.
3736 (linux_request_interrupt): Turn into ...
3737 (linux_process_target::request_interrupt): ... this.
3738 * linux-low.h (class linux_process_target): Update.
3739 * lynx-low.cc (lynx_target_ops): Update.
3740 (lynx_request_interrupt): Turn into ...
3741 (lynx_process_target::request_interrupt): ... this.
3742 * lynx-low.h (class lynx_process_target): Update.
3743 * nto-low.cc (nto_target_ops): Update.
3744 (nto_request_interrupt): Turn into ...
3745 (nto_process_target::request_interrupt): ... this.
3746 * nto-low.h (class nto_process_target): Update.
3747 * win32-low.cc (win32_target_ops): Update.
3748 (win32_request_interrupt): Turn into ...
3749 (win32_process_target::request_interrupt): ... this.
3750 * win32-low.h (class win32_process_target): Update.
3751
2a31c7aa
TBA
37522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3753
3754 Turn process_stratum_target's look_up_symbols op into a method of
3755 process_target.
3756
3757 * target.h (struct process_stratum_target): Remove the target op.
3758 (class process_target): Add the target op.
3759 * target.cc (process_target::look_up_symbols): Define.
3760
3761 Update the derived classes and callers below.
3762
3763 * server.cc (handle_query): Update.
3764 * linux-low.cc (linux_target_ops): Update.
3765 (linux_look_up_symbols): Turn into ...
3766 (linux_process_target::look_up_symbols): ... this.
3767 * linux-low.h (class linux_process_target): Update.
3768 * lynx-low.cc (lynx_target_ops): Update.
3769 * nto-low.cc (nto_target_ops): Update.
3770 * win32-low.cc (win32_target_ops): Update.
3771
e2558df3
TBA
37722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3773
3774 Turn process_stratum_target's read_memory and write_memory
3775 ops into methods of process_target.
3776
3777 * target.h (struct process_stratum_target): Remove the target ops.
3778 (class process_target): Add the target ops.
3779
3780 Update the derived classes and callers below.
3781
3782 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3783 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3784 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3785 (arm_get_syscall_trapinfo): Update.
3786 * linux-cris-low.cc (cris_breakpoint_at): Update.
3787 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3788 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3789 * linux-mips-low.cc (mips_breakpoint_at): Update.
3790 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3791 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3792 * linux-sh-low.cc (sh_breakpoint_at): Update.
3793 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3794 (sparc_store_gregset_from_stack): Update.
3795 (sparc_breakpoint_at): Update.
3796 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3797 * linux-tile-low.cc (tile_breakpoint_at): Update.
3798 * linux-x86-low.cc (x86_breakpoint_at): Update.
3799 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3800 * mem-brea.cc (insert_memory_breakpoint): Update.
3801 (validate_inserted_breakpoint): Update.
3802 * target.cc (read_inferior_memory): Update.
3803 (target_write_memory): Update.
3804 * linux-low.cc (linux_target_ops): Update.
3805 (linux_read_memory): Make a wrapper around the read_memory target
3806 op call.
3807 (linux_process_target::read_memory): Rename from linux_read_memory.
3808 (linux_write_memory): Turn into ...
3809 (linux_process_target::write_memory): ... this.
3810 * linux-low.h (class linux_process_target): Update.
3811 * lynx-low.cc (lynx_target_ops): Update.
3812 (lynx_read_memory): Turn into ...
3813 (lynx_process_target::read_memory): ... this.
3814 (lynx_write_memory): Turn into ...
3815 (lynx_process_target::write_memory): ... this.
3816 * lynx-low.h (class lynx_process_target): Update.
3817 * nto-low.cc (nto_target_ops): Update.
3818 (nto_read_memory): Turn into ...
3819 (nto_process_target::read_memory): ... this.
3820 (nto_write_memory): Turn into ...
3821 (nto_process_target::write_memory): ... this.
3822 * nto-low.h (class nto_process_target): Update.
3823 * win32-low.cc (win32_target_ops): Update.
3824 (win32_read_inferior_memory): Turn into ...
3825 (win32_process_target::read_memory): ... this.
3826 (win32_write_inferior_memory): Turn into ...
3827 (win32_process_target::write_memory): ... this.
3828 * win32-low.h (class win32_process_target): Update.
3829
79b44087
TBA
38302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3831
3832 Turn process_stratum_target's prepare_to_access_memory and
3833 done_accessing_memory ops into methods of process_target.
3834
3835 * target.h (struct process_stratum_target): Remove the target ops.
3836 (class process_target): Add the target ops.
3837 * target.cc (process_target::prepare_to_access_memory): Define.
3838 (process_target::done_accessing_memory): Define.
3839 (prepare_to_access_memory): Update.
3840 (done_accessing_memory): Update.
3841
3842 Update the derived classes and callers below.
3843
3844 * linux-low.cc (linux_target_ops): Update.
3845 (linux_prepare_to_access_memory): Turn into ...
3846 (linux_process_target::prepare_to_access_memory): ... this.
3847 (linux_done_accessing_memory): Turn into ...
3848 (linux_process_target::done_accessing_memory): ... this.
3849 * linux-low.h (class linux_process_target): Update.
3850 * lynx-low.cc (lynx_target_ops): Update.
3851 * nto-low.cc (nto_target_ops): Update.
3852 * win32-low.cc (win32_target_ops): Update.
3853
a5a4d4cd
TBA
38542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3855
3856 Turn process_stratum_target's fetch_registers and store_registers
3857 ops into methods of process_target.
3858
3859 * target.h (struct process_stratum_target): Remove the target ops.
3860 (class process_target): Add the target ops.
3861 (fetch_inferior_registers): Update the macro.
3862 (store_inferior_registers): Update the macro.
3863
3864 Update the derived classes and callers below.
3865
3866 * linux-low.cc (linux_target_ops): Update.
3867 (linux_fetch_registers): Turn into ...
3868 (linux_process_target::fetch_registers): ... this.
3869 (linux_store_registers): Turn into ...
3870 (linux_process_target::store_registers): ... this.
3871 * linux-low.h (class linux_process_target): Update.
3872 * lynx-low.cc (lynx_target_ops): Update.
3873 (lynx_fetch_registers): Turn into ...
3874 (lynx_process_target::fetch_registers): ... this.
3875 (lynx_store_registers): Turn into ...
3876 (lynx_process_target::store_registers): ... this.
3877 * lynx-low.h (class lynx_process_target): Update.
3878 * nto-low.cc (nto_target_ops): Update.
3879 (nto_fetch_registers): Turn into ...
3880 (nto_process_target::fetch_registers): ... this.
3881 (nto_store_registers): Turn into ...
3882 (nto_process_target::store_registers): ... this.
3883 * nto-low.h (class nto_process_target): Update.
3884 * win32-low.cc (win32_target_ops): Update.
3885 (win32_fetch_inferior_registers): Turn into ...
3886 (win32_process_target::fetch_registers): ... this.
3887 (win32_store_inferior_registers): Turn into ...
3888 (win32_process_target::store_registers): ... this.
3889 * win32-low.h (class win32_process_target): Update.
3890
6532e7e3
TBA
38912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3892
3893 Turn process_stratum_target's wait op into a method of
3894 process_target.
3895
3896 * target.h (struct process_stratum_target): Remove the target op.
3897 (class process_target): Add the target op.
3898
3899 Update the derived classes and callers below.
3900
3901 * target.cc (target_wait): Update.
3902 * linux-low.cc (linux_target_ops): Update.
3903 (linux_wait): Turn into ...
3904 (linux_process_target::wait): ... this.
3905 * linux-low.h (class linux_process_target): Update.
3906 * lynx-low.cc (lynx_target_ops): Update.
3907 (lynx_wait): Turn into ...
3908 (lynx_process_target::wait): ... this.
3909 * lynx-low.h (class lynx_process_target): Update.
3910 * nto-low.cc (nto_target_ops): Update.
3911 (nto_wait): Turn into ...
3912 (nto_process_target::wait): ... this.
3913 * nto-low.h (class nto_process_target): Update.
3914 * win32-low.cc (win32_target_ops): Update.
3915 (win32_wait): Turn into ...
3916 (win32_process_target::wait): ... this.
3917 (do_initial_child_stuff): Update.
3918 * win32-low.h (class win32_process_target): Update.
3919
0e4d7e35
TBA
39202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3921
3922 Turn process_stratum_target's resume op into a method of
3923 process_target.
3924
3925 * target.h (struct process_stratum_target): Remove the target op.
3926 (class process_target): Add the target op.
3927
3928 Update the derived classes and callers below.
3929
3930 * server.cc (resume): Update.
3931 * target.cc (target_stop_and_wait): Update.
3932 (target_continue_no_signal): Update.
3933 (target_continue): Update.
3934 * linux-low.cc (linux_target_ops): Update.
3935 (linux_resume): Turn into ...
3936 (linux_process_target::resume): ... this.
3937 * linux-low.h (class linux_process_target): Update.
3938 * lynx-low.cc (lynx_target_ops): Update.
3939 (lynx_resume): Turn into ...
3940 (lynx_process_target::resume): ... this.
3941 * lynx-low.h (class lynx_process_target): Update.
3942 * nto-low.cc (nto_target_ops): Update.
3943 (nto_resume): Turn into ...
3944 (nto_process_target::resume): ... this.
3945 * nto-low.h (class nto_process_target): Update.
3946 * win32-low.cc (win32_target_ops): Update.
3947 (win32_resume): Turn into ...
3948 (win32_process_target::resume): ... this.
3949 (win32_process_target::detach): Update.
3950 (do_initial_child_stuff): Update.
3951 * win32-low.h (class win32_process_target): Update.
3952
13d3d99b
TBA
39532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3954
3955 Turn process_stratum_target's thread_alive op into a method of
3956 process_target.
3957
3958 * target.h (struct process_stratum_target): Remove the target op.
3959 (class process_target): Add the target op.
3960 (mythread_alive): Update the macro.
3961
3962 Update the derived classes and callers below.
3963
3964 * linux-low.cc (linux_target_ops): Update.
3965 (linux_thread_alive): Turn into ...
3966 (linux_process_target::thread_alive): ... this.
3967 (wait_for_sigstop): Update.
3968 * linux-low.h (class linux_process_target): Update.
3969 * lynx-low.cc (lynx_target_ops): Update.
3970 (lynx_thread_alive): Turn into ...
3971 (lynx_process_target::thread_alive): ... this.
3972 * lynx-low.h (class lynx_process_target): Update.
3973 * nto-low.cc (nto_target_ops): Update.
3974 (nto_thread_alive): Turn into ...
3975 (nto_process_target::thread_alive): ... this.
3976 * nto-low.h (class nto_process_target): Update.
3977 * win32-low.cc (win32_target_ops): Update.
3978 (win32_thread_alive): Turn into ...
3979 (win32_process_target::thread_alive): ... this.
3980 * win32-low.h (class win32_process_target): Update.
3981
95a49a39
TBA
39822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3983
3984 Turn process_stratum_target's join op into a method of
3985 process_target.
3986
3987 * target.h (struct process_stratum_target): Remove the target op.
3988 (class process_target): Add the target op.
3989 (join_inferior): Update the macro.
3990
3991 Update the derived classes and callers below.
3992
3993 * linux-low.cc (linux_target_ops): Update.
3994 (linux_join): Turn into ...
3995 (linux_process_target::join): ... this.
3996 * linux-low.h (class linux_process_target): Update.
3997 * lynx-low.cc (lynx_target_ops): Update.
3998 (lynx_join): Turn into ...
3999 (lynx_process_target::join): ... this.
4000 * lynx-low.h (class lynx_process_target): Update.
4001 * nto-low.cc (nto_target_ops): Update.
4002 (nto_process_target::join): Define.
4003 * nto-low.h (class nto_process_target): Update.
4004 * win32-low.cc (win32_target_ops): Update.
4005 (win32_join): Turn into ...
4006 (win32_process_target::join): ... this.
4007 * win32-low.h (class win32_process_target): Update.
4008
8adb37b9
TBA
40092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4010
4011 Turn process_stratum_target's mourn op into a method of
4012 process_target.
4013
4014 * target.h (struct process_stratum_target): Remove the target op.
4015 (class process_target): Add the target op.
4016
4017 Update the derived classes and callers below.
4018
4019 * target.cc (target_mourn_inferior): Update.
4020 * linux-low.cc (linux_target_ops): Update.
4021 (linux_mourn): Turn into ...
4022 (linux_process_target::mourn): ... this.
4023 (handle_extended_wait): Update.
4024 (linux_process_target::kill): Update.
4025 (linux_process_target::detach): Update.
4026 * linux-low.h (class linux_process_target): Update.
4027 * lynx-low.cc (lynx_target_ops): Update.
4028 (lynx_mourn): Turn into ...
4029 (lynx_process_target::mourn): ... this.
4030 * lynx-low.h (class lynx_process_target): Update.
4031 * nto-low.cc (nto_target_ops): Update.
4032 (nto_mourn): Turn into ...
4033 (nto_process_target::mourn): ... this.
4034 * nto-low.h (class nto_process_target): Update.
4035 * win32-low.cc (win32_target_ops): Update.
4036 (win32_mourn): Turn into ...
4037 (win32_process_target::mourn): ... this.
4038 * win32-low.h (class win32_process_target): Update.
4039
9061c9cf
TBA
40402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4041
4042 Turn process_stratum_target's detach op into a method of
4043 process_target.
4044
4045 * target.h (struct process_stratum_target): Remove the target op.
4046 (class process_target): Add the target op.
4047 (detach_inferior): Update the macro.
4048
4049 Update the derived classes and callers below.
4050
4051 * linux-low.cc (linux_target_ops): Update.
4052 (linux_detach): Turn into ...
4053 (linux_process_target::detach): ... this.
4054 * linux-low.h (class linux_process_target): Update.
4055 * lynx-low.cc (lynx_target_ops): Update.
4056 (lynx_detach): Turn into ...
4057 (lynx_process_target::detach): ... this.
4058 * lynx-low.h (class lynx_process_target): Update.
4059 * nto-low.cc (nto_target_ops): Update.
4060 (nto_detach): Turn into ...
4061 (nto_process_target::detach): ... this.
4062 * nto-low.h (class nto_process_target): Update.
4063 * win32-low.cc (win32_target_ops): Update.
4064 (win32_detach): Turn into ...
4065 (win32_process_target::detach): ... this.
4066 * win32-low.h (class win32_process_target): Update.
4067
c6885a57
TBA
40682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4069
4070 Turn process_stratum_target's kill op into a method of
4071 process_target.
4072
4073 * target.h (struct process_stratum_target): Remove the target op.
4074 (class process_target): Add the target op.
4075
4076 Update the derived classes and callers below.
4077
4078 * target.cc (kill_inferior): Update.
4079 * linux-low.cc (linux_target_ops): Update.
4080 (linux_kill): Turn into ...
4081 (linux_process_target::kill): ... this.
4082 * linux-low.h (class linux_process_target): Update.
4083 * lynx-low.cc (lynx_target_ops): Update.
4084 (lynx_kill): Turn into ...
4085 (lynx_process_target::kill): ... this.
4086 * lynx-low.h (class lynx_process_target): Update.
4087 * nto-low.cc (nto_target_ops): Update.
4088 (nto_kill): Turn into ...
4089 (nto_process_target::kill): ... this.
4090 * nto-low.h (class nto_process_target): Update.
4091 * win32-low.cc (win32_target_ops): Update.
4092 (win32_kill): Turn into ...
4093 (win32_process_target::kill): ... this.
4094 * win32-low.h (class win32_process_target): Update.
4095
ef03dad8
TBA
40962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4097
4098 Turn process_stratum_target's attach op into a method of
4099 process_target.
4100
4101 * target.h (struct process_stratum_target): Remove the target op.
4102 (class process_target): Add the target op.
4103 (myattach): Update the macro.
4104
4105 Update the derived classes and callers below.
4106
4107 * linux-low.cc (linux_target_ops): Update.
4108 (linux_attach): Turn into ...
4109 (linux_process_target::attach): ... this.
4110 * linux-low.h (class linux_process_target): Update.
4111 * lynx-low.cc (lynx_target_ops): Update.
4112 (lynx_attach): Turn into ...
4113 (lynx_process_target::attach): ... this.
4114 * lynx-low.h (class lynx_process_target): Update.
4115 * nto-low.cc (nto_target_ops): Update.
4116 (nto_attach): Turn into ...
4117 (nto_process_target::attach): ... this.
4118 * nto-low.h (class nto_process_target): Update.
4119 * win32-low.cc (win32_target_ops): Update.
4120 (win32_attach): Turn into ...
4121 (win32_process_target::attach): ... this.
4122 * win32-low.h (class win32_process_target): Update.
4123
6dee9afb
TBA
41242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4125
4126 Turn process_stratum_target's post_create_inferior op into a method
4127 of process_target.
4128
4129 * target.h (struct process_stratum_target): Remove the target op.
4130 (class process_target): Add the target op.
4131 (target_post_create_inferior): Update the macro.
4132 * target.cc (process_target::post_create_inferior): Define.
4133
4134 Update the derived classes and callers below.
4135
4136 * linux-low.cc (linux_target_ops): Update.
4137 (linux_post_create_inferior): Turn into ...
4138 (linux_process_target::post_create_inferior): ... this.
4139 * linux-low.h (class linux_process_target): Update.
4140 * lynx-low.cc (lynx_target_ops): Update.
4141 * nto-low.cc (nto_target_ops): Update.
4142 * win32-low.cc (win32_target_ops): Update.
4143
15295543
TBA
41442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4145
4146 Turn process_stratum_target's create_inferior op into a method of
4147 process_target.
4148
4149 * target.h (struct process_stratum_target): Remove the target op.
4150 (class process_target): Add the target op.
4151 (create_inferior): Rename the macro to ...
4152 (target_create_inferior): ... this.
4153
4154 Update the derived classes and callers below.
4155
4156 * server.cc (handle_v_run): Update.
4157 (captured_main): Update.
4158 (process_serial_event): Update.
4159 * linux-low.cc (linux_target_ops): Update.
4160 (linux_create_inferior): Turn into ...
4161 (linux_process_target::create_inferior): ... this.
4162 * linux-low.h (class linux_process_target): Update.
4163 * lynx-low.cc (lynx_target_ops): Update.
4164 (lynx_create_inferior): Turn into ...
4165 (lynx_process_target::create_inferior): ... this.
4166 * lynx-low.h (class lynx_process_target): Update.
4167 * nto-low.cc (nto_target_ops): Update.
4168 (nto_create_inferior): Turn into ...
4169 (nto_process_target::create_inferior): ... this.
4170 * nto-low.h (class nto_process_target): Update.
4171 * win32-low.cc (win32_target_ops): Update.
4172 (win32_create_inferior): Turn into ...
4173 (win32_process_target::create_inferior): ... this.
4174 * win32-low.h (class win32_process_target): Update.
4175
5ef9273d
TBA
41762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4177
4178 * target.h (class process_target): New class definition.
4179 (struct process_stratum_target) <pt>: New field with type
4180 'process_target*'.
4181 * linux-low.h (class linux_process_target): Define as a derived
4182 class of 'process_target'.
4183 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4184 as the 'pt' field.
4185 * lynx-low.h (class lynx_process_target): Define as a derived
4186 class of 'process_target'.
4187 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4188 as the 'pt' field.
4189 * nto-low.h (class nto_process_target): Define as a derived
4190 class of 'process_target'.
4191 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4192 as the 'pt' field.
4193 * win32-low.h (class win32_process_target): Define as a derived
4194 class of 'process_target'.
4195 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4196 as the 'pt' field.
4197
9f1528a1
AB
41982020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4199
4200 * configure: Regenerate.
4201
bf84f706
MR
42022020-02-19 Maciej W. Rozycki <macro@wdc.com>
4203 Andrew Burgess <andrew.burgess@embecosm.com>
4204
4205 * linux-riscv-low.cc: New file.
4206 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4207 and nat/riscv-linux-tdesc.c.
4208 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4209 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4210 Define.
4211
1a627e7e
TT
42122020-02-14 Tom Tromey <tom@tromey.com>
4213
4214 * acinclude.m4: Don't include acx_configure_dir.m4.
4215 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4216 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4217 (all, install-only, uninstall, clean-info, clean)
4218 (maintainer-clean): Don't recurse.
4219 (subdir_do, all-lib): Remove.
4220 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4221 (GNULIB_H): Remove.
4222 (generated_files): Update.
4223 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4224 * configure: Rebuild.
4225 * configure.ac: Don't configure gnulib or libiberty.
4226 (GNULIB): Update.
4227
a9b34532
EZ
42282020-02-14 Eli Zaretskii <eliz@gnu.org>
4229
4230 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4231 preparing the command line for CreateProcess.
4232 (win32_create_inferior): Reflect the program name in debugging
4233 output that shows the process and its command line.
4234
feacfcac
SM
42352020-02-13 Simon Marchi <simon.marchi@efficios.com>
4236
4237 * Makefile.in: Rename source files from .c to .cc.
4238 * %.c: Rename to %.cc.
4239 * configure.ac: Rename server.c to server.cc.
4240 * configure: Re-generate.
4241
06b3c5bd
SM
42422020-02-13 Simon Marchi <simon.marchi@efficios.com>
4243
4244 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4245
052793ad
HD
42462020-02-12 Hannes Domani <ssbssa@yahoo.de>
4247
4248 * win32-low.c (win32_create_inferior): Set signal_pid.
4249
f20e3e82
MR
42502020-02-12 Maciej W. Rozycki <macro@wdc.com>
4251 Pedro Alves <palves@redhat.com>
4252
4253 Skip building gdbserver in a cross-configuration.
4254 * configure.srv: Set $gdbserver_host depending on whether $target
4255 is $host. Use $gdbserver_host instead of $host.
4256
8ddd8e0e
SM
42572020-02-11 Simon Marchi <simon.marchi@efficios.com>
4258
4259 * configure: Re-generate.
4260
898e7f60
SM
42612020-02-11 Simon Marchi <simon.marchi@efficios.com>
4262
4263 * configure: Re-generate.
4264
58df732b
SM
42652020-02-11 Simon Marchi <simon.marchi@efficios.com>
4266
4267 * acinclude.m4: Update warning.m4 path.
4268
7928d571
HD
42692020-02-09 Hannes Domani <ssbssa@yahoo.de>
4270
4271 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4272 (handle_exception): Set siginfo_er.
4273 (win32_xfer_siginfo): New function.
4274
919adfe8
TT
42752020-02-07 Tom Tromey <tom@tromey.com>
4276 Pedro Alves <palves@redhat.com>
4277
4278 * README: Update build documentation.
4279 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4280 host, not target.
4281 * configure.ac: Update paths.
4282 * configure: Rebuild.
4283 * acinclude.m4: Update paths.
4284 * Makefile.in: Update include paths.
4285 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4286 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4287 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4288 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4289 (%-generated.c): Update paths.
4290 * Move entire directory from ../gdb/gdbserver.
4291
287c844a
MR
42922020-01-29 Maciej W. Rozycki <macro@wdc.com>
4293
4294 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4295
548a204f
PFC
42962020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4297
4298 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4299 assignment instead of srv_linux_obj.
4300
a2236a08
HD
43012020-01-28 Hannes Domani <ssbssa@yahoo.de>
4302
4303 * server.c (handle_qxfer_libraries): Write segment-address with
4304 paddress.
4305
bdaed379
HD
43062020-01-24 Hannes Domani <ssbssa@yahoo.de>
4307
4308 * Makefile.in (install-strip): New target.
4309 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4310 * aclocal.m4: Regenerate.
4311 * configure: Regenerate.
4312 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4313
42cd72aa
MR
43142020-01-24 Maciej W. Rozycki <macro@wdc.com>
4315
4316 * Makefile.in (SFILES): Adjust paths to point to real files.
4317 (OBS): Move waitstatus.o to target/waitstatus.o.
4318 (TAGS): Transform paths appropriately.
4319 (%.o): Rename to...
4320 (nat/%.o): ... this pattern rule.
4321 (%.o): Rename to...
4322 (target/%.o): ... this pattern rule.
4323 * configure.srv: Adjust paths throughout to include nat/ prefix
4324 with the revant files.
4325 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4326 * configure: Regenerate.
4327
42ba50ec
MR
43282020-01-24 Maciej W. Rozycki <macro@wdc.com>
4329
4330 * Makefile.in (TAGS): Remove config files from the recipe.
4331
05ea2a05
TT
43322020-01-14 Tom Tromey <tom@tromey.com>
4333
4334 * configure: Rebuild.
4335 * configure.ac: Remove any checks that were added to common.m4.
4336 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4337 lib-link.m4.
4338
01027315
TT
43392020-01-14 Tom Tromey <tom@tromey.com>
4340
4341 * server.h: Include config.h.
4342 * gdbreplay.c: Include config.h.
4343 * configure: Rebuild.
4344 * configure.ac: Don't source common.host.
4345 * acinclude.m4: Update path.
4346 * Makefile.in (INCSUPPORT): New variable.
4347 (INCLUDE_CFLAGS): Add INCSUPPORT.
4348 (SFILES): Update paths.
4349 (version-generated.c): Update path to create-version.sh.
4350 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4351
b2ceabe8
TT
43522020-01-14 Tom Tromey <tom@tromey.com>
4353
4354 * configure.ac (LIBS): Use WIN32APILIBS.
4355 (USE_WIN32API): Don't define.
4356 * configure: Rebuild.
4357
25c51f71
TT
43582020-01-14 Tom Tromey <tom@tromey.com>
4359
4360 * configure: Rebuild.
4361
c0bd321d
SM
43622020-01-13 Simon Marchi <simon.marchi@efficios.com>
4363
4364 * Makefile.in (%-generated.c): Remove rule for files from
4365 regformats/i386.
4366
bb564c58
SM
43672020-01-13 Simon Marchi <simon.marchi@efficios.com>
4368
4369 * configure: Re-generate.
4370
6e37c371
SM
43712020-01-13 Simon Marchi <simon.marchi@efficios.com>
4372
4373 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4374 Define to static.
4375 * tracepoint.c (stop_tracing, flush_trace_buffer,
4376 about_to_request_buffer_space, get_trace_state_variable_value,
4377 set_trace_state_variable_value, gdb_collect): Add declaration.
4378
df4a0200
SM
43792020-01-13 Simon Marchi <simon.marchi@efficios.com>
4380
4381 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4382 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4383 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4384 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4385 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4386 static.
4387
89e94ec9
SM
43882020-01-13 Simon Marchi <simon.marchi@efficios.com>
4389
4390 * inferiors.c: Include gdbsupport/common-inferior.h.
4391
2552728a
SM
43922020-01-13 Simon Marchi <simon.marchi@efficios.com>
4393
4394 * hostio-errno.c: Include hostio.h.
4395
4025fa09
SM
43962020-01-13 Simon Marchi <simon.marchi@efficios.com>
4397
4398 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4399 prerequisite.
4400
c0b0a142
SM
44012020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4402
4403 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4404 * linux-arm-tdesc.h: Include arch/arm.h.
4405
bb1183e2
SM
44062020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4407
4408 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4409
f5df0b5f
SM
44102020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4411
4412 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4413 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4414
5b6d1e4f
PA
44152020-01-10 Pedro Alves <palves@redhat.com>
4416
4417 * fork-child.c (post_fork_inferior): Pass target down to
4418 startup_inferior.
4419 * inferiors.c (switch_to_thread): Add process_stratum_target
4420 parameter.
4421 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4422 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4423 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4424 * remote-utils.c (prepare_resume_reply): Pass the target to
4425 switch_to_thread.
4426 * target.c (the_target): Now a process_stratum_target.
4427 (done_accessing_memory): Pass the target to switch_to_thread.
4428 (set_target_ops): Ajust to use process_stratum_target.
4429 * target.h (struct target_ops): Rename to ...
4430 (struct process_stratum_target): ... this.
4431 (the_target, set_target_ops): Adjust.
4432 (prepare_to_access_memory): Adjust comment.
4433 * win32-low.c (child_xfer_memory): Adjust to use
4434 process_stratum_target.
4435 (win32_target_ops): Now a process_stratum_target.
4436
559e7e50
EZ
44372020-01-06 Eli Zaretskii <eliz@gnu.org>
4438 Pedro Alves <palves@redhat.com>
4439
4440 * win32-low.c (get_child_debug_event): Extract the fatal exception
4441 from the exit status and convert to the equivalent Posix signal
4442 number.
4443 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4444 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4445
48189bec
HD
44462020-01-01 Hannes Domani <ssbssa@yahoo.de>
4447
4448 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4449
5dd8bf88
JB
44502020-01-01 Joel Brobecker <brobecker@adacore.com>
4451
4452 * server.c (gdbserver_version): Change copyright year to 2020.
4453 * gdbreplay.c (gdbreplay_version): Likewise.
4454
0ad6b8ee
CB
44552019-12-19 Christian Biesinger <cbiesinger@google.com>
4456
4457 * configure: Regenerate.
4458 * configure.ac: Quote variable arguments of test.
4459
1ee7b812
BE
44602019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4461
4462 * Makefile.in: Fix build with GNU Make 3.81
4463
d9fa87f4
TT
44642019-12-16 Tom Tromey <tromey@adacore.com>
4465
4466 * server.c (get_exec_file): Constify result.
4467
ab7d13f0
CB
44682019-12-10 Christian Biesinger <cbiesinger@google.com>
4469
4470 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4471 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4472 * config.in: Regenerate.
4473 * configure: Regenerate.
4474 * configure.ac: Don't check for strerror.
4475 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4476 Call safe_strerror instead of strerror.
4477 * server.h (strerror): Remove this now-unnecessary declaration.
4478 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4479 strerror.
4480 (gdb_agent_helper_thread): Likewise.
4481 * utils.c (perror_with_name): Likewise.
4482
4da8c3a8
TT
44832019-11-26 Tom Tromey <tom@tromey.com>
4484
4485 * configure, config.in: Rebuild.
4486
21987b9c
TT
44872019-11-26 Tom Tromey <tom@tromey.com>
4488
4489 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4490 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4491 gdb_sigmask.
4492 * configure, config.in: Rebuild.
4493
5e030278
TT
44942019-11-26 Tom Tromey <tom@tromey.com>
4495
4496 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4497 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4498 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4499 * acinclude.m4: Include ax_pthread.m4.
4500 * config.in, configure: Rebuild.
4501
6d91ce9a
CB
45022019-11-26 Christian Biesinger <cbiesinger@google.com>
4503
4504 * debug.c (debug_set_output): Call safe_strerror instead of
4505 strerror.
4506 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4507 (linux_kill_one_lwp): Likewise.
4508 (linux_detach_one_lwp): Likewise.
4509 (linux_wait_for_event_filtered): Likewise.
4510 (store_register): Likewise.
4511 * lynx-low.c (lynx_attach): Likewise.
4512 * mem-break.c (insert_memory_breakpoint): Likewise.
4513 (remove_memory_breakpoint): Likewise.
4514 (delete_fast_tracepoint_jump): Likewise.
4515 (set_fast_tracepoint_jump): Likewise.
4516 (uninsert_fast_tracepoint_jumps_at): Likewise.
4517 (reinsert_fast_tracepoint_jumps_at): Likewise.
4518 * nto-low.c (nto_xfer_memory): Likewise.
4519 (nto_resume): Likewise.
4520
6cdd651f
LM
45212019-11-20 Luis Machado <luis.machado@linaro.org>
4522
4523 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4524 instead of register count.
4525 * tdesc.c (tdesc_contains_feature): New function.
4526 * tdesc.h (tdesc_contains_feature): New prototype.
4527
cd850b40
CB
45282019-11-15 Christian Biesinger <cbiesinger@google.com>
4529
4530 * Makefile.in: Add safe-strerror.c.
4531 * configure: Regenerate.
4532 * configure.ac: Don't source common.host.
4533
5abebf3c
CB
45342019-11-15 Christian Biesinger <cbiesinger@google.com>
4535
4536 * config.in: Regenerate.
4537 * configure: Regenerate.
4538
e06f3d6e
AB
45392019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4540
4541 * ax.c (ax_printf): Handle size_t_arg.
4542
ca3a04f6
CB
45432019-11-06 Christian Biesinger <cbiesinger@google.com>
4544
4545 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4546 * mi/mi-main.c (output_cores): Likewise.
4547 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4548 (linux_xfer_osdata_modules): Likewise.
4549 * remote.c (register_remote_support_xml): Likewise.
4550 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4551 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4552
e48f6033
CB
45532019-11-01 Christian Biesinger <cbiesinger@google.com>
4554
4555 * configure: Regenerate.
4556 * configure.ac: Remove check for strerror_r.
4557
e7e97a2e
CB
45582019-10-31 Christian Biesinger <cbiesinger@google.com>
4559
4560 * config.in: Regenerate.
4561 * configure: Regenerate.
4562 * configure.ac: Also check for strerror_r.
4563
75cafaa6
CB
45642019-10-31 Christian Biesinger <cbiesinger@google.com>
4565
4566 * ax.h (debug_agent): Remove duplicate declaration.
4567
30baf67b
TV
45682019-10-26 Tom de Vries <tdevries@suse.de>
4569
4570 * linux-aarch64-low.c: Fix typos in comments.
4571 * linux-arm-low.c: Same.
4572 * linux-low.c: Same.
4573 * linux-ppc-low.c: Same.
4574 * proc-service.c: Same.
4575 * regcache.h: Same.
4576 * server.c: Same.
4577 * tracepoint.c: Same.
4578 * win32-low.c: Same.
4579
52c64cf7
TT
45802019-10-25 Tom Tromey <tromey@adacore.com>
4581
4582 * utils.c (xstrdup): Remove.
4583
c12d372d
TT
45842019-10-23 Tom Tromey <tom@tromey.com>
4585
4586 * configure, config.in: Rebuild.
4587
4d0b984b
TT
45882019-10-23 Tom Tromey <tom@tromey.com>
4589
4590 * configure: Rebuild.
4591 * acinclude.m4: Use m4_include, not sinclude.
4592
c5adaa19
TT
45932019-10-17 Tom Tromey <tromey@adacore.com>
4594
4595 * configure: Rebuild.
4596 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4597 in AC_CONFIG_FILES invocation.
4598 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4599 invocation.
4600
fec4e896
CB
46012019-10-16 Christian Biesinger <cbiesinger@google.com>
4602
4603 * server.c: Include xml-builtin.h.
4604 (get_xml_features): Don't declare xml_builtins here.
4605
00975ff6
AB
46062019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4607
4608 * Makefile.in: Remove references to vec-ipa.o.
4609
0dc32745
AB
46102019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4611
4612 * Makefile.in: Remove references to vec.c.
4613
3e6ec53a
CB
46142019-10-02 Christian Biesinger <cbiesinger@google.com>
4615
4616 * server.c (server_waiting): Change to bool.
4617 (extended_protocol): Likewise.
4618 (response_needed): Likewise.
4619 (exit_requested): Likewise.
4620 (run_once): Likewise.
4621 (report_no_resumed): Likewise.
4622 (non_stop): Likewise.
4623 (disable_packet_vCont): Likewise.
4624 (disable_packet_Tthread): Likewise.
4625 (disable_packet_qC): Likewise.
4626 (disable_packet_qfThreadInfo): Likewise.
4627 (handle_general_set): Update.
4628 (handle_detach): Update.
4629 (handle_monitor_command): Update.
4630 (handle_query): Update.
4631 (captured_main): Update.
4632 (process_serial_event): Update.
4633 * server.h (server_waiting): Change to bool.
4634 (disable_packet_vCont): Likewise.
4635 (disable_packet_Tthread): Likewise.
4636 (disable_packet_qC): Likewise.
4637 (disable_packet_qfThreadInfo): Likewise.
4638 (run_once): Likewise.
4639 (non_stop): Likewise.
4640 * target.c (target_stop_and_wait): Update.
4641
80fd2826
TT
46422019-10-02 Tom Tromey <tromey@adacore.com>
4643
4644 * Makefile.in (SFILES): Add common-inferior.c.
4645 (OBS): Add common-inferior.o.
4646 * server.c (startup_with_shell): Don't define.
4647
46f29a9a
AB
46482019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4649
4650 * linux-low.c (linux_low_read_btrace): Update for change to
4651 std::vector.
4652
f9d949fb
CB
46532019-09-20 Christian Biesinger <cbiesinger@google.com>
4654
4655 * debug.c (debug_threads): Remove comment in favor of the header.
4656 * debug.h (using_threads): Add declaration.
4657 (debug_threads): Add comment.
4658 * linux-aarch64-low.c: Include debug.h and remove declaration of
4659 debug_threads.
4660 * nto-low.c: Likewise.
4661 * remote-utils.c: Likewise.
4662 * thread-db.c: Likewise.
4663
abf516c6
UW
46642019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4665
4666 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4667 and powerpc-cell64l-ipa.o.
4668 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4669 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4670 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4671 (spu*-*-*): Remove.
4672
4673 * spu-low.c: Remove file.
4674
4675 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4676 (parse_spufs_run): Remove.
4677 (ppc_get_pc): Remove Cell/B.E. support.
4678 (ppc_set_pc): Likewise.
4679 (ppc_breakpoint_at): Likewise.
4680 (ppc_arch_setup): Likewise.
4681 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4682 tdesc_powerpc_cell32l.
4683 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4684 or init_registers_powerpc_cell32l.
4685 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4686 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4687 or init_registers_powerpc_cell32l.
4688 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4689 (init_registers_powerpc_cell32l): Remove prototype.
4690 (init_registers_powerpc_cell64l): Likewise.
4691
4692 * target.h (struct target_ops): Remove qxfer_spu member.
4693 * server.c (handle_qxfer_spu): Remove.
4694 (qxfer_packets): Remove entry for "spu".
4695 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4696 * linux-low.c (SPUFS_MAGIC): Remove.
4697 (spu_enumerate_spu_ids): Remove.
4698 (linux_qxfer_spu): Remove.
4699 (linux_target_ops): Remove qxfer_spu member.
4700 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4701 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4702 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4703
2d41fa11
SDJ
47042019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4705
4706 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4707 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4708 * config.in: Regenerate.
4709 * configure: Regenerate.
4710
d59b55f0
TT
47112019-08-15 Tom Tromey <tromey@adacore.com>
4712
4713 * target.c (target_write_memory): Use gdb::byte_vector.
4714
4196ab2a
TT
47152019-08-15 Tom Tromey <tromey@adacore.com>
4716
4717 * tracepoint.c (write_inferior_data_pointer)
4718 (write_inferior_integer, write_inferior_int8)
4719 (write_inferior_uinteger, m_tracepoint_action_download)
4720 (r_tracepoint_action_download, x_tracepoint_action_download)
4721 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4722 (download_agent_expr, download_tracepoint_1)
4723 (download_trace_state_variables, upload_fast_traceframes): Update.
4724 * server.c (gdb_write_memory): Update.
4725 * remote-utils.c (relocate_instruction): Update.
4726 * proc-service.c (ps_pdwrite): Update.
4727 * mem-break.c (remove_memory_breakpoint)
4728 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4729 (uninsert_fast_tracepoint_jumps_at)
4730 (reinsert_fast_tracepoint_jumps_at): Update.
4731 * linux-x86-low.c (append_insns)
4732 (i386_install_fast_tracepoint_jump_pad)
4733 (amd64_write_goto_address, i386_write_goto_address): Update.
4734 * linux-s390-low.c (append_insns, s390_write_goto_address):
4735 Update.
4736 * linux-ppc-low.c (ppc_relocate_instruction)
4737 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4738 (ppc_write_goto_address): Update.
4739 * linux-aarch64-low.c (append_insns): Update.
4740 * target.h (struct target_ops): Update.
4741 (write_inferior_memory): Don't declare.
4742 * target.c (target_write_memory): Rename from
4743 write_inferior_memory. Remove old target_write_memory.
4744
c6778d00
TT
47452019-08-15 Tom Tromey <tromey@adacore.com>
4746
4747 * target.c (write_inferior_memory): Use std::vector.
4748
404f2902
FCE
47492019-08-06 Frank Ch. Eigler <fche@redhat.com>
4750
4751 PR build/24886
4752 * configure.ac: Drop enable-libmcheck support.
4753 * configure, config.in: Rebuild.
4754 * acinclude.m4: Don't include it.
4755
4c5aa8e0
AH
47562019-07-19 Alan Hayward <alan.hayward@arm.com>
4757
4758 * configure.srv: Remove Arm xml files.
4759
7cc17433
AH
47602019-07-19 Alan Hayward <alan.hayward@arm.com>
4761
4762 * configure.srv: Add new files. Remove xml generated files.
4763 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4764 registers.
4765 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4766 * linux-aarch32-tdesc.c: New file.
4767 * linux-aarch32-tdesc.h: New file.
4768 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4769 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4770 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4771 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4772 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4773 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4774 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4775 (arm_read_description): Call arm_linux_read_description.
4776 (initialize_low_arch): Don't init registers.
4777 * linux-arm-tdesc.c: New file.
4778 * linux-arm-tdesc.h: New file.
4779
166a82be
AH
47802019-07-10 Alan Hayward <alan.hayward@arm.com>
4781
4782 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4783 Move counter inside for.
4784 (arm_read_description): Check ptrace earlier.
4785 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4786
268a13a5
TT
47872019-07-09 Tom Tromey <tom@tromey.com>
4788
4789 * configure: Rebuild.
4790 * configure.ac: Change common to gdbsupport.
4791 * acinclude.m4: Change common to gdbsupport.
4792 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4793 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4794 common to gdbsupport.
4795 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4796 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4797 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4798 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4799 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4800 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4801 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4802 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4803 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4804 common to gdbsupport.
4805
350fab54
AH
48062019-07-04 Alan Hayward <alan.hayward@arm.com>
4807
4808 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4809 defines.
4810 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4811
2b40fda7
AH
48122019-07-04 Alan Hayward <alan.hayward@arm.com>
4813
4814 * configure.srv: Remove legacy xml.
4815 * linux-aarch64-low.c (initialize_low_arch): Remove
4816 initialize_low_tdesc call.
4817 * linux-aarch64-tdesc-selftest.c: Remove file.
4818 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4819 * linux-x86-low.c (initialize_low_arch): Remove
4820 initialize_low_tdesc call.
4821 * linux-x86-tdesc-selftest.c: Remove file.
4822 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4823
7d10623d
TV
48242019-06-20 Tom de Vries <tdevries@suse.de>
4825
4826 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4827 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4828
8d6a48df
TV
48292019-06-19 Tom de Vries <tdevries@suse.de>
4830
4831 * debug.h (debug_write): Change return type to ssize_t.
4832 * debug.c (debug_write): Same.
4833
73cc7272
TT
48342019-06-14 Tom Tromey <tom@tromey.com>
4835
4836 * configure.ac: Use new path to gnulib.
4837 * configure: Rebuild.
4838 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4839 to gnulib.
4840
08f10e02
TT
48412019-06-11 Tom Tromey <tom@tromey.com>
4842
4843 * Makefile.in (SFILES): Add alloc.c.
4844 (OBS): Add alloc.o.
4845 (IPA_OBJS): Add alloc-ipa.o.
4846 (alloc-ipa.o): New target.
4847 (%.o: ../%.c): New pattern rule.
4848
422186a9
TT
48492019-06-10 Tom Tromey <tromey@adacore.com>
4850
4851 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4852 end warning with a newline.
4853 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4854 newline.
4855 * thread-db.c (attach_thread): Don't end warning with a newline.
4856 (thread_db_notice_clone): Likewise.
4857 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4858 newline.
4859 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4860 end warning with a newline.
4861
b02f78f9
PA
48622019-06-04 Pedro Alves <palves@redhat.com>
4863
4864 * server.c (captured_main): Use make_unique_xstrdup.
4865
88ed7edb
TT
48662019-06-02 Tom Tromey <tom@tromey.com>
4867
4868 * gdbreplay.c (fromhex): Remove.
4869 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4870
33a6bc35
TT
48712019-05-29 Tom Tromey <tromey@adacore.com>
4872
4873 * configure: Rebuild.
4874
e90a813d
KB
48752019-05-06 Kevin Buettner <kevinb@redhat.com>
4876
4877 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4878 sign extension code on 32-bit builds.
4879
353ea2d1
EZ
48802019-05-03 Eli Zaretskii <eliz@gnu.org>
4881
4882 * remote-utils.c:
4883 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4884
b494cdff
TT
48852019-04-19 Tom Tromey <tom@tromey.com>
4886
4887 * server.c (struct vstop_notif): Derive from notif_event.
4888 <base>: Remove.
4889 (queue_stop_reply): Update.
4890 (remove_all_on_match_ptid): Change type. Rewrite.
4891 (discard_queued_stop_replies): Rewrite.
4892 (in_queued_stop_replies_ptid): Change type.
4893 (in_queued_stop_replies): Rewrite.
4894 (notif_stop): Update.
4895 (queue_stop_reply_callback): Update.
4896 (captured_main): Don't call initialize_notif.
4897 (push_stop_notification): Update.
4898 * notif.c (notif_write_event, handle_notif_ack)
4899 (notif_event_enque, notif_push): Update.
4900 (notif_event_xfree, initialize_notif): Remove.
4901 * notif.h (struct notif_event): Include <list>, not
4902 "common/queue.h".
4903 (struct notif_server) <queue>: Now a std::list.
4904 (notif_event_p): Remove typedef.
4905 (initialize_notif): Don't declare.
4906 (struct notif_event): Add virtual destructor.
4907
a7e559cc
AH
49082019-04-17 Alan Hayward <alan.hayward@arm.com>
4909
4910 * ax.c (ax_vdebug): Call debug_printf.
4911 * debug.c (debug_write): New function.
4912 * debug.h (debug_write): New declaration.
4913 * linux-low.c (sigchld_handler): Call debug_write.
4914
aeb2e706
AH
49152019-04-17 Alan Hayward <alan.hayward@arm.com>
4916
4917 * debug.c (debug_set_output): New function.
4918 (debug_vprintf): Send output to debug_file.
4919 (debug_flush): Likewise.
4920 * debug.h (debug_set_output): New declaration.
4921 * server.c (handle_monitor_command): Add debug-file option.
4922 (captured_main): Likewise.
4923
c1bc0935
AH
49242019-04-17 Alan Hayward <alan.hayward@arm.com>
4925
4926 * debug.c (remote_debug): Add definition.
4927 * debug.h (remote_debug): Add declaration.
4928 * hostio.c (remote_debug): Remove declaration.
4929 * remote-utils.c (struct ui_file): Likewise.
4930 (remote_debug): Likewise.
4931 * remote-utils.h (remote_debug): Likewise,
4932 * server.c (remote_debug): Remove definition.
4933
3f52fdbc
KB
49342019-04-10 Kevin Buettner <kevinb@redhat.com>
4935
4936 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4937 when using a 64-bit gdbserver.
4938
b0319eaa
TT
49392019-04-09 Tom Tromey <tromey@adacore.com>
4940
4941 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4942
eedc3f4f
TT
49432019-04-08 Tom Tromey <tom@tromey.com>
4944
4945 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4946 throw.
4947 (linux_resume_one_lwp): Likewise.
4948
230d2906
TT
49492019-04-08 Tom Tromey <tom@tromey.com>
4950
4951 * gdbreplay.c: Update.
4952 * linux-low.c: Update.
4953 * server.c: Update.
4954
a70b8144
TT
49552019-04-08 Tom Tromey <tom@tromey.com>
4956
4957 * server.c: Use C++ exception handling.
4958 * linux-low.c: Use C++ exception handling.
4959 * gdbreplay.c: Use C++ exception handling.
4960
3d6e9d23
TT
49612019-04-08 Tom Tromey <tom@tromey.com>
4962
4963 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4964 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4965 (captured_main, main): Update.
4966 * gdbreplay.c (main): Update.
4967
0570503d
PFC
49682019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4969
4970 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4971 value in argument pointer, return 1 if the entry is found and 0
4972 otherwise. Move comment.
4973 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4974 * linux-low.h (linux_get_auxv): Declare.
4975 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4976
227a9e65
TT
49772019-04-05 Tom Tromey <tromey@adacore.com>
4978
4979 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4980 variables.
4981
69f4c9cc
AH
49822019-03-28 Alan Hayward <alan.hayward@arm.com>
4983
4984 * linux-low.c (AT_HWCAP2): Add define if not already included.
4985
974c89e0
AH
49862019-03-26 Alan Hayward <alan.hayward@arm.com>
4987
4988 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4989 (aarch64_arch_setup): Call linux_get_hwcap.
4990 * linux-arm-low.c (arm_get_hwcap): Remove function.
4991 (arm_read_description): Call linux_get_hwcap.
4992 * linux-low.c (linux_get_auxv): New function.
4993 (linux_get_hwcap): Likewise.
4994 (linux_get_hwcap2): Likewise.
4995 * linux-low.h (linux_get_hwcap): New declaration.
4996 (linux_get_hwcap2): Likewise.
4997 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4998 (ppc_arch_setup): Call linux_get_hwcap.
4999 * linux-s390-low.c (s390_get_hwcap): Remove function.
5000 (s390_arch_setup): Call linux_get_hwcap.
5001
1ef53e6b
AH
50022019-03-22 Alan Hayward <alan.hayward@arm.com>
5003 Jiong Wang <jiong.wang@arm.com>
5004
5005 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5006 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5007 to fail.
5008 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5009
ee4fbcfa
AH
50102019-03-22 Alan Hayward <alan.hayward@arm.com>
5011 Jiong Wang <jiong.wang@arm.com>
5012
5013 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5014 (aarch64_get_hwcap): New function.
5015 (aarch64_arch_setup): Read APIA hwcap.
5016
6dc0ebde
AH
50172019-03-22 Alan Hayward <alan.hayward@arm.com>
5018 Jiong Wang <jiong.wang@arm.com>
5019
5020 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5021 (initialize_low_tracepoint): Likewise.
5022 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5023 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5024 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5025 (aarch64_linux_read_description): Likewise.
5026 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5027
1163a4b7
JB
50282019-03-12 John Baldwin <jhb@FreeBSD.org>
5029
5030 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5031 i386_create_target_description for 'segments' parameter.
5032 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5033 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5034 * win32-i386-low.c (i386_arch_setup): Likewise.
5035
d3a70e03
TT
50362019-03-12 Tom Tromey <tromey@adacore.com>
5037
5038 * linux-low.c (iterate_over_lwps): Update.
5039
37991b4f
TT
50402019-03-06 Tom Tromey <tom@tromey.com>
5041
5042 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5043 (captured_main): Use SCOPE_EXIT.
5044
45950eb6
SDJ
50452019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5046
5047 * configure.srv: Use '$enable_unittest' instead of '$development'
5048 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5049 case.
5050
43ac54fc
TT
50512019-02-27 Tom Tromey <tromey@adacore.com>
5052
5053 * gdbreplay.c (logchar): Handle \r\n.
5054
df0da8a2
AH
50552019-02-07 Alan Hayward <alan.hayward@arm.com>
5056
5057 * linux-low.c (linux_attach): Add process before lwp.
5058 * server.c (attach_inferior): Check if already attached.
5059
1a5c2598
TT
50602019-02-07 Tom Tromey <tom@tromey.com>
5061
5062 * x86-tdesc.h: Rename include guard.
5063 * x86-low.h: Add include guard.
5064 * wincecompat.h: Rename include guard.
5065 * win32-low.h: Add include guard.
5066 * utils.h: Rename include guard.
5067 * tracepoint.h: Rename include guard.
5068 * tdesc.h: Rename include guard.
5069 * target.h: Rename include guard.
5070 * server.h: Rename include guard.
5071 * remote-utils.h: Rename include guard.
5072 * regcache.h: Rename include guard.
5073 * nto-low.h: Rename include guard.
5074 * notif.h: Add include guard.
5075 * mem-break.h: Rename include guard.
5076 * lynx-low.h: Add include guard.
5077 * linux-x86-tdesc.h: Add include guard.
5078 * linux-s390-tdesc.h: Add include guard.
5079 * linux-ppc-tdesc-init.h: Add include guard.
5080 * linux-low.h: Add include guard.
5081 * linux-aarch64-tdesc.h: Add include guard.
5082 * linux-aarch32-low.h: Add include guard.
5083 * inferiors.h: Rename include guard.
5084 * i387-fp.h: Rename include guard.
5085 * hostio.h: Rename include guard.
5086 * gdbthread.h: Rename include guard.
5087 * gdb_proc_service.h: Rename include guard.
5088 * event-loop.h: Rename include guard.
5089 * dll.h: Rename include guard.
5090 * debug.h: Rename include guard.
5091 * ax.h: Rename include guard.
5092
956cc47c
SN
50932018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5094
5095 PR gdb/23985
5096 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5097 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5098
a0707f3c
TT
50992019-01-25 Tom Tromey <tom@tromey.com>
5100
5101 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5102
0747795c
TT
51032019-01-25 Tom Tromey <tom@tromey.com>
5104
5105 * win32-low.c: Fix common/ includes.
5106 * win32-i386-low.c: Fix common/ includes.
5107 * tracepoint.c: Fix common/ includes.
5108 * thread-db.c: Fix common/ includes.
5109 * target.h: Fix common/ includes.
5110 * symbol.c: Fix common/ includes.
5111 * spu-low.c: Fix common/ includes.
5112 * server.h: Fix common/ includes.
5113 * server.c: Fix common/ includes.
5114 * remote-utils.c: Fix common/ includes.
5115 * regcache.h: Fix common/ includes.
5116 * regcache.c: Fix common/ includes.
5117 * nto-x86-low.c: Fix common/ includes.
5118 * notif.h: Fix common/ includes.
5119 * mem-break.h: Fix common/ includes.
5120 * lynx-low.c: Fix common/ includes.
5121 * lynx-i386-low.c: Fix common/ includes.
5122 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5123 * linux-x86-low.c: Fix common/ includes.
5124 * linux-low.c: Fix common/ includes.
5125 * inferiors.h: Fix common/ includes.
5126 * i387-fp.c: Fix common/ includes.
5127 * hostio.c: Fix common/ includes.
5128 * hostio-errno.c: Fix common/ includes.
5129 * gdbthread.h: Fix common/ includes.
5130 * gdbreplay.c: Fix common/ includes.
5131 * fork-child.c: Fix common/ includes.
5132 * event-loop.c: Fix common/ includes.
5133 * ax.c:
5134 (enum gdb_agent_op): Fix common/ includes.
5135
be6d4f74
TT
51362019-01-21 Tom Tromey <tom@tromey.com>
5137
5138 * tracepoint.c: Fix includes.
5139 * remote-utils.c: Fix includes.
5140 * linux-x86-low.c: Fix includes.
5141
66d91b39
JB
51422019-01-01 Joel Brobecker <brobecker@adacore.com>
5143
5144 * gdbreplay.c (gdbreplay_version): Update copyright year in
5145 version message.
5146 * server.c (gdbserver_version): Likewise.
5147
754e3168
AH
51482018-12-05 Alan Hayward <alan.hayward@arm.com>
5149
5150 * linux-low.c (add_lwp): Switch ordering.
5151
d105de22
TT
51522018-11-29 Tom Tromey <tom@tromey.com>
5153
5154 * win32-low.c (win32_join): Take pid, not process.
5155 * target.h (struct target_ops) <join>: Change argument type.
5156 (join_inferior): Change argument name.
5157 * spu-low.c (spu_join): Take pid, not process.
5158 * server.c (handle_detach): Preserve pid before destroying
5159 process.
5160 * lynx-low.c (lynx_join): Take pid, not process.
5161 * linux-low.c (linux_join): Take pid, not process.
5162
50138245
AH
51632018-11-23 Alan Hayward <alan.hayward@arm.com>
5164
5165 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5166 (aarch64_cannot_fetch_register): Likewise.
5167 (struct linux_target_ops): Update references.
5168
64f57f3d
PFC
51692018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5170
5171 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5172
8d619c01
EBM
51732018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5174
5175 * configure.srv (ipa_ppc_linux_regobj): Add
5176 powerpc-isa207-htm-vsx32l-ipa.o and
5177 powerpc-isa207-htm-vsx64l-ipa.o.
5178 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5179 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5180 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5181 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5182 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5183 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5184 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5185 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5186 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5187 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5188 (init_registers_powerpc_isa207_htm_vsx32l)
5189 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5190 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5191 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5192 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5193 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5194 (ppc_store_tm_ctarregset): New functions.
5195 (ppc_regsets): Add entries for HTM regsets.
5196 (ppc_arch_setup): Set htm in features struct when needed. Set
5197 sizes for the HTM regsets.
5198 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5199 (initialize_low_arch): Call
5200 init_registers_powerpc_isa207_htm_vsx32l and
5201 init_registers_powerpc_isa207_htm_vsx64l.
5202 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5203 PPC_TDESC_ISA207_HTM_VSX.
5204 (initialize_low_tracepoint): Call
5205 init_registers_powerpc_isa207_htm_vsx32l and
5206 init_registers_powerpc_isa207_htm_vsx64l.
5207
232bfb86
EBM
52082018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5209
5210 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5211 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5212 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5213 (ppc_store_pmuregset): New functions.
5214 (ppc_regsets): Add entries for ebb and pmu regsets.
5215 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5216 pmu regsets are available. Set sizes for these regsets.
5217
f2cf6173
EBM
52182018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5219
5220 * configure.srv (ipa_ppc_linux_regobj): Add
5221 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5222 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5223 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5224 rs6000/powerpc-isa207-vsx32l.xml, and
5225 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5226 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5227 <PPC_TDESC_ISA207_VSX>: New enum value.
5228 (init_registers_powerpc_isa207_vsx32l): Declare.
5229 (init_registers_powerpc_isa207_vsx64l): Declare.
5230 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5231 (ppc_store_tarregset): New function.
5232 (ppc_regsets): Add entry for the TAR regset.
5233 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5234 size for the TAR regsets.
5235 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5236 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5237 and init_registers_powerpc_isa207_vsx64l.
5238 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5239 (initialize_low_tracepoint): Call
5240 init_registers_powerpc_isa207_vsx32l and
5241 init_registers_powerpc_isa207_vsx64l.
5242
7ca18ed6
EBM
52432018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5244 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5245
5246 * configure.srv (ipa_ppc_linux_regobj): Add
5247 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5248 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5249 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5250 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5251 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5252 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5253 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5254 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5255 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5256 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5257 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5258 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5259 (ppc_hwcap): Add comment.
5260 (ppc_hwcap2): New global.
5261 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5262 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5263 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5264 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5265 when needed. Set sizes for the the DSCR and PPR regsets.
5266 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5267 (initialize_low_arch): Call
5268 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5269 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5270 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5271 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5272 (initialize_low_tracepoint): Call
5273 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5274 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5275
5c849b22
PFC
52762018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5277
5278 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5279
8ecfd7bd
SDJ
52802018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5281 Simon Marchi <simark@simark.ca>
5282
5283 * acinclude.m4: Include "../selftest.m4".
5284 * configure: Regenerate.
5285 * configure.ac: Use "GDB_AC_SELFTEST".
5286 * configure.srv: Use "$enable_unittests" instead of
5287 "$development" when checking whether unit tests have been
5288 enabled.
5289 * server.c (captured_main): Update message informing that
5290 selftests have been disabled.
5291
96643e35
TT
52922018-10-04 Tom Tromey <tom@tromey.com>
5293
5294 * configure: Rebuild.
5295
da4ae14a
TT
52962018-10-04 Tom Tromey <tom@tromey.com>
5297
5298 * server.c (handle_status): Rename inner "thread".
5299 (process_serial_event): Declare "res" in 'm' case.
5300 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5301 (iterate_over_lwps): Rename inner "thread".
5302 (linux_qxfer_libraries_svr4): Rename inner "len".
5303 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5304
7c619dbd
GB
53052018-10-01 Gary Benson <gbenson@redhat.com>
5306
5307 * gdb_proc_service.h: Moved common code to
5308 common/gdb_proc_service.h.
5309
3795e814
GB
53102018-10-01 Gary Benson <gbenson@redhat.com>
5311
5312 * gdb_proc_service.h: Synchronize comments and whitespace with
5313 GDB's version of this file.
5314
49b036f1
TT
53152018-09-25 Tom Tromey <tom@tromey.com>
5316
5317 * configure: Rebuild.
5318 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5319
8ff03f0b
SM
53202018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5321
5322 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5323 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5324 ($(IPA_LIB)): Sort IPA_OBJS.
5325
a1cd91dc
SM
53262018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5327
5328 * Makefile.in: Remove references to $(ADD_DEPS).
5329
752312ba
TT
53302018-09-16 Tom Tromey <tom@tromey.com>
5331
5332 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5333 variables.
5334 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5335 variables.
5336
f1628857
TT
53372018-09-05 Tom Tromey <tom@tromey.com>
5338
5339 * configure: Rebuild.
5340
ad202fcc
SM
53412018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5342
5343 PR build/23399
5344 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5345
d3d8724a
TT
53462018-08-27 Tom Tromey <tom@tromey.com>
5347
5348 PR build/23087:
5349 * configure: Rebuild.
5350
b4f183d2
TT
53512018-08-27 Tom Tromey <tom@tromey.com>
5352
5353 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5354 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5355 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5356 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5357 (s390x_emit_stack_adjust): Add casts to unsigned char.
5358
4e2aa472
SM
53592018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5360
5361 PR gdb/23374
5362 PR gdb/23375
5363 * server.h (struct client_state) <disable_randomization>:
5364 Initialize to 1.
5365
cf4088a9
SM
53662018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5367
5368 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5369 variable.
5370 (mips_supply_ptrace_register): Likewise.
5371
a0de763e
TT
53722018-07-22 Tom Tromey <tom@tromey.com>
5373
5374 * configure: Rebuild.
5375
b0a7723d
TT
53762018-07-22 Tom Tromey <tom@tromey.com>
5377
5378 * win32-low.c (win32_create_inferior): Remove unused variables.
5379 * gdbreplay.c (remote_open): Remove unused variable.
5380 * remote-utils.c (remote_prepare): Remove unused variable.
5381 * x86-tdesc.h (X86_TDESC_H): Define.
5382 (amd64_expedite_regs): Define conditionally.
5383 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5384 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5385 * remote-utils.c (readchar): Remove unused variable.
5386
a780ef4f
PA
53872018-07-13 Pedro Alves <palves@redhat.com>
5388
5389 * linux-low.c (linux_kill): Change parameter to process_info
5390 pointer instead of pid. Adjust.
5391 * lynx-low.c (lynx_kill): Likewise.
5392 * nto-low.c (nto_kill): Likewise.
5393 * spu-low.c (spu_kill): Likewise.
5394 * win32-low.c (win32_kill): Likewise.
5395 * server.c (handle_v_kill, kill_inferior_callback)
5396 (detach_or_kill_for_exit): Adjust.
5397 * target.c (kill_inferior): Change parameter to process_info
5398 pointer instead of pid. Adjust.
5399 * target.h (struct target_ops) <kill>: Change parameter to
5400 process_info pointer instead of pid. Adjust all implementations
5401 and callers.
5402 (kill_inferior): Likewise.
5403
ef2ddb33
PA
54042018-07-13 Pedro Alves <palves@redhat.com>
5405
5406 * linux-low.c (linux_detach, linux_join): Change parameter to
5407 process_info pointer instead of pid. Adjust.
5408 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5409 * nto-low.c (nto_detach): Likewise.
5410 * spu-low.c (spu_detach, spu_join): Likewise.
5411 * win32-low.c (win32_detach, win32_join): Likewise.
5412 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5413 * target.h (struct target_ops) <detach, join>: Change parameter to
5414 process_info pointer instead of pid. Adjust all implementations
5415 and callers.
5416 (detach_inferior, join_inferior): Rename 'pid' parameter to
5417 'proc'.
5418
c7ab0aef
SDJ
54192018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5420 Jan Kratochvil <jan.kratochvil@redhat.com>
5421 Paul Fertser <fercerpav@gmail.com>
5422 Tsutomu Seki <sekiriki@gmail.com>
5423
5424 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5425 (OBS): Add 'common/netstuff.o'.
5426 (GDBREPLAY_OBS): Likewise.
5427 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5428 (remote_open): Implement support for IPv6
5429 connections.
5430 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5431 and 'wspiapi.h'.
5432 (handle_accept_event): Accept connections from IPv6 sources.
5433 (remote_prepare): Handle IPv6-style hostnames; implement
5434 support for IPv6 connections.
5435 (remote_open): Implement support for printing connections from
5436 IPv6 sources.
5437
31445d10
PA
54382018-07-11 Pedro Alves <palves@redhat.com>
5439
5440 PR gdb/23377
5441 * mem-break.c (any_persistent_commands): Add process_info
5442 parameter and use it instead of relying on the current process.
5443 Change return type to bool.
5444 * mem-break.h (any_persistent_commands): Add process_info
5445 parameter and change return type to bool.
5446 * server.c (handle_detach): Remove require_running_or_return call.
5447 Look up the process_info for the process we're about to detach.
5448 If not found, return back error to GDB. Adjust
5449 any_persistent_commands call to pass down a process pointer.
5450
cb197132
PA
54512018-07-11 Pedro Alves <palves@redhat.com>
5452
5453 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5454 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5455 instead of collect_register_by_name.
5456 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5457 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5458
1b919490
VB
54592018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5460 Pedro Alves <palves@redhat.com>
5461
5462 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5463
d7e15655
TT
54642018-07-03 Tom Tromey <tom@tromey.com>
5465
5466 * linux-low.c: Update.
5467 * lynx-low.c: Update.
5468 * mem-break.c: Update.
5469 * nto-low.c: Update.
5470 * remote-utils.c: Update.
5471 * server.c: Update.
5472 * spu-low.c: Update.
5473 * target.c: Update.
5474 * win32-low.c: Update.
5475
26a57c92
TT
54762018-07-03 Tom Tromey <tom@tromey.com>
5477
5478 * server.c: Update.
5479
0e998d96
TT
54802018-07-03 Tom Tromey <tom@tromey.com>
5481
5482 * linux-low.c: Update.
5483
cc6bcb54
TT
54842018-07-03 Tom Tromey <tom@tromey.com>
5485
5486 * target.c: Update.
5487
e38504b3
TT
54882018-07-03 Tom Tromey <tom@tromey.com>
5489
5490 * linux-low.c: Update.
5491 * linux-mips-low.c: Update.
5492 * lynx-low.c: Update.
5493 * nto-low.c: Update.
5494 * remote-utils.c: Update.
5495 * server.c: Update.
5496 * spu-low.c: Update.
5497 * target.c: Update.
5498 * thread-db.c: Update.
5499
e99b03dc
TT
55002018-07-03 Tom Tromey <tom@tromey.com>
5501
5502 * linux-low.c: Update.
5503 * linux-mips-low.c: Update.
5504 * lynx-low.c: Update.
5505 * mem-break.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 * tracepoint.c: Update.
5512
f2907e49
TT
55132018-07-03 Tom Tromey <tom@tromey.com>
5514
5515 * linux-low.c: Update.
5516 * linux-ppc-low.c: Update.
5517 * linux-x86-low.c: Update.
5518 * proc-service.c: Update.
5519 * server.c: Update.
5520 * spu-low.c: Update.
5521 * thread-db.c: Update.
5522 * win32-low.c: Update.
5523
fd79271b
TT
55242018-07-03 Tom Tromey <tom@tromey.com>
5525
5526 * linux-low.c: Update.
5527 * lynx-low.c: Update.
5528 * nto-low.c: Update.
5529 * remote-utils.c: Update.
5530 * spu-low.c: Update.
5531 * thread-db.c: Update.
5532 * win32-low.c: Update.
5533
c0867626
SDJ
55342018-06-29 Joel Brobecker <brobecker@adacore.com>
5535
5536 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5537 parameter in call to 'amd64_create_target_description'.
5538
2512d7ef
JK
55392018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5540
5541 * x86-tdesc.h: Remove executable permission flag.
5542
d0ac1c44
SM
55432018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5544
5545 * configure.ac: Remove AC_PREREQ, add missing quoting.
5546 * configure: Re-generate.
5547 * config.in: Re-generate.
5548 * aclocal.m4: Re-generate.
5549
c4eb05ff
SM
55502018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5551
5552 * tracepoint.h (current_traceframe): Remove declaration.
5553
02895270
AH
55542018-06-18 Alan Hayward <alan.hayward@arm.com>
5555
5556 * linux-aarch64-low.c (is_sve_tdesc): New function.
5557 (aarch64_sve_regs_copy_to_regcache): Likewise.
5558 (aarch64_sve_regs_copy_from_regcache): Likewise.
5559 (aarch64_regs_info): Add SVE checks.
5560 (initialize_low_arch): Initialize SVE.
5561
e9902bfc
AH
55622018-06-18 Alan Hayward <alan.hayward@arm.com>
5563
5564 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5565
fefa175e
AH
55662018-06-11 Alan Hayward <alan.hayward@arm.com>
5567
5568 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5569 (initialize_low_tracepoint): Likewise
5570 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5571 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5572 param.
5573 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5574 checks.
5575 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5576
b91ad3ff
AH
55772018-06-11 Alan Hayward <alan.hayward@arm.com>
5578
5579 * server.h (PBUFSIZ): Increase size
5580
f868386e
AH
55812018-06-11 Alan Hayward <alan.hayward@arm.com>
5582
5583 * regcache.c (regcache::raw_compare): New function.
5584 * regcache.h (regcache::raw_compare): New declaration.
5585
9c861883
AH
55862018-06-11 Alan Hayward <alan.hayward@arm.com>
5587
5588 * regcache.c (new_register_cache): Use new.
5589 (free_register_cache): Use delete.
5590 (register_data): Use const.
5591 (supply_register): Move body inside regcache.
5592 (regcache::raw_supply): New override function.
5593 (collect_register): Move body inside regcache.
5594 (regcache::raw_collect): New override function.
5595 (regcache::get_register_status): New override function.
5596 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5597
40591844
TT
55982018-06-09 Tom Tromey <tom@tromey.com>
5599
5600 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5601 declare queue.
5602 (event_queue): Use std::queue.
5603 (gdb_event_xfree): Remove.
5604 (initialize_event_loop, process_event, wait_for_event): Update.
5605
6341380d
SC
56062018-06-08 Stan Cox <scox@redhat.com>
5607
5608 * win32-low.c (win32_create_inferior): last_ptid and last_status
5609 moved to client_state.
5610
03349c93
PA
56112018-06-08 Pedro Alves <palves@redhat.com>
5612
5613 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5614 common/common-exceptions.o, common/common-utils.o,
5615 common/errors.o, common/print-utils.o and utils.o.
5616 * gdbreplay.c: Include "common-defs.h" instead of the two
5617 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5618 string.h or alloca.h.
5619 (perror_with_name): Delete.
5620 (remote_open): Use xstrdup instead of strdup.
5621 (main): Rename to ...
5622 (captured_main): ... this.
5623 (main): New.
5624
8dcc53b3
TT
56252018-06-08 Tom Tromey <tom@tromey.com>
5626
5627 * linux-low.c (linux_low_read_btrace): Update.
5628
c12a5089
SC
56292018-06-04 Stan Cox <scox@redhat.com>
5630
5631 * server.h (struct client_state): New.
5632 * server.c (cont_thread, general_thread, multi_process)
5633 (report_fork_events, report_vfork_events, report_exec_events)
5634 (report_thread_events, swbreak_feature, hwbreak_feature)
5635 (vCont_supported, disable_randomization, pass_signals)
5636 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5637 Moved to client_state.
5638 * remote-utils.c (remote_debug, noack_mode)
5639 (transport_is_reliable): Moved to client_state.
5640 * tracepoint.c (current_traceframe): Moved to client_state.
5641
5642 Update all callers.
5643 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5644 linux-low.c, remote-utils.h, target.c: Use client_state.
5645
122394f1
AH
56462018-05-31 Alan Hayward <alan.hayward@arm.com>
5647
5648 * configure.srv: Add new c/h file.
5649
95228a0d
AH
56502018-05-31 Alan Hayward <alan.hayward@arm.com>
5651
5652 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5653 null VQ.
5654
d8dab6c3
MR
56552018-05-25 Maciej W. Rozycki <macro@mips.com>
5656
5657 * gdb.arch/mips-fpregset-core.exp: New test.
5658 * gdb.arch/mips-fpregset-core.c: New test source.
5659
81e25b7c
EK
56602018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5661
5662 PR server/23198
5663 * hostio.c (require_int): Do not report overflow for integers
5664 between 0xfffffff and 0x7fffffff.
5665
7e947ad3
MR
56662018-05-22 Maciej W. Rozycki <macro@mips.com>
5667
5668 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5669 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5670 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5671 functions.
5672 (the_low_target): Wire them.
5673
1d75a658
PFC
56742018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5675
5676 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5677 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5678 mode. Call collect_register_by_name with vscr using
5679 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5680 (ppc_store_vrregset): Add and set vscr_offset variable as in
5681 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5682 vscr_offset.
5683
d078308a
PFC
56842018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5685
5686 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5687 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5688 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5689
7273b5fc
PFC
56902018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5691
5692 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5693 (ppc_store_vsxregset): Likewise.
5694 (ppc_fill_vrregset): Likewise.
5695 (ppc_store_vrregset): Likewise.
5696 (ppc_fill_evrregset): Likewise.
5697 (ppc_store_evrregset): Likewise.
5698 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5699 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5700 needed.
5701
2e077f5e
PFC
57022018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5703
5704 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5705 wordsize of the inferior. Call ppc_linux_target_wordsize.
5706
bd64614e
PFC
57072018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5708
5709 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5710 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5711 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5712 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5713 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5714 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5715 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5716 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5717 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5718 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5719 (tdesc_powerpc_e500l): Remove.
5720 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5721 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5722 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5723 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5724 linux-ppc-tdesc.h.
5725 (ppc_arch_setup): Remove target description matching code. Fill a
5726 ppc_linux_features struct and call ppc_linux_match_description
5727 with it.
5728
75d74cca
MR
57292018-05-22 Maciej W. Rozycki <macro@mips.com>
5730
5731 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5732 width of the requested register exceeds the width of the
5733 `ptrace' data type.
5734 (mips_cannot_store_register): Likewise.
5735
e4439e43
MR
57362018-05-21 Maciej W. Rozycki <macro@mips.com>
5737
5738 * linux-mips-low.c (mips_fetch_register): New function. Update
5739 preceding comment.
5740 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5741 (the_low_target): Wire `mips_fetch_register'.
5742
55271bf9
JB
57432018-05-10 Joel Brobecker <brobecker@adacore.com>
5744
5745 * lynx-i386-low.c (LYNXOS_178): New macro.
5746 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5747 the layout on LynxOS-178.
5748 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5749 handle floating point registers that are not supported by
5750 LynxOS-178.
5751
1a34f210
TT
57522018-05-10 Tom Tromey <tom@tromey.com>
5753
5754 * configure: Rebuild.
5755
190852c8
JB
57562018-05-10 Joel Brobecker <brobecker@adacore.com>
5757
5758 PR server/23158:
5759 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5760 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5761 Use it to set the expedite_regs field in the given tdesc.
5762 * x86-tdesc.h: New file.
5763 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5764 Adjust following the addition of the new expedite_regs parameter
5765 to init_target_desc.
5766 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5767 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5768 (i386_linux_read_description, amd64_linux_read_description):
5769 Adjust following the addition of the new expedite_regs parameter
5770 to init_target_desc.
5771 * lynx-i386-low.c: #include "x86-tdesc.h".
5772 (lynx_i386_arch_setup): Adjust following the addition of the new
5773 expedite_regs parameter to init_target_desc.
5774 * nto-x86-low.c: #include "x86-tdesc.h".
5775 (nto_x86_arch_setup): Adjust following the addition of the new
5776 expedite_regs parameter to init_target_desc.
5777 * win32-i386-low.c: #include "x86-tdesc.h".
5778 (i386_arch_setup): Adjust following the addition of the new
5779 expedite_regs parameter to init_target_desc.
5780
7dbac825
JB
57812018-05-10 Joel Brobecker <brobecker@adacore.com>
5782
5783 PR server/23158:
5784 * win32-low.c (win32_create_inferior): Add call to my_wait
5785 setting last_status global.
5786
906994d9
JB
57872018-05-10 Joel Brobecker <brobecker@adacore.com>
5788
5789 PR server/23158:
5790 * win32-low.c (create_process): Only call gdb_tilde_expand if
5791 inferior_cwd is not NULL.
5792
8ee22052
AB
57932018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5794
5795 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5796 registers to the cache if their values have changed.
5797 (i387_xsave_to_cache): Provide default values for x87 control
5798 registers when these features are available, but disabled.
5799 * regcache.c (supply_register_by_name_zeroed): New function.
5800 * regcache.h (supply_register_by_name_zeroed): Declare new
5801 function.
5802
aff689d3
TT
58032018-05-07 Tom Tromey <tom@tromey.com>
5804
5805 * configure: Rebuild.
5806
85e26832
TT
58072018-05-04 Tom Tromey <tom@tromey.com>
5808
5809 * configure: Rebuild.
5810
a3b60e45
JK
58112018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5812 Pedro Alves <palves@redhat.com>
5813
5814 * linux-aarch64-low.c (aarch64_stopped_data_address):
5815 Likewise.
5816
632e107b
TT
58172018-04-27 Tom Tromey <tom@tromey.com>
5818
5819 * configure: Rebuild.
5820
458412c3
TT
58212018-04-23 Tom Tromey <tom@tromey.com>
5822
5823 * configure: Rebuild.
5824
f31c089e
SM
58252018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5826
5827 * Makefile.in (depcomp): Add "..".
5828 (all_deps_files): New and use it.
5829
b319b098
AH
58302018-04-18 Alan Hayward <alan.hayward@arm.com>
5831
5832 * configure.srv (aarch64*-*-linux*): Don't include xml.
5833 (i[34567]86-*-cygwin*): Likewise.
5834 (i[34567]86-*-linux*): Likewise.
5835 (i[34567]86-*-lynxos*): Likewise.
5836 (i[34567]86-*-mingw32ce*): Likewise.
5837 (i[34567]86-*-mingw*): Likewise.
5838 (i[34567]86-*-nto*): Likewise.
5839 (tic6x-*-uclinux): Likewise.
5840 (x86_64-*-linux*): Likewise.
5841 (x86_64-*-mingw*): Likewise.
5842 (x86_64-*-cygwin*): Likewise.
5843
3b74854b
AH
58442018-04-18 Alan Hayward <alan.hayward@arm.com>
5845
5846 * tdesc.c: Remove xml parameter.
5847
e98577a9
AH
58482018-04-18 Alan Hayward <alan.hayward@arm.com>
5849
5850 * server.c (get_features_xml): Remove cast.
5851 * tdesc.c (void target_desc::accept): Fill in function.
5852 (tdesc_get_features_xml): Remove old xml creation.
5853 (print_xml_feature::visit_pre): Add xml vistor.
5854 * tdesc.h (struct target_desc): Make xmltarget mutable.
5855 (tdesc_get_features_xml): Remove declaration.
5856
d278f585
AH
58572018-04-18 Alan Hayward <alan.hayward@arm.com>
5858
5859 * tdesc.c (tdesc_architecture_name): Add new function.
5860 (tdesc_osabi_name): Likewise.
5861 (tdesc_get_features_xml): Use new functions.
5862
eee8a18d
AH
58632018-04-18 Alan Hayward <alan.hayward@arm.com>
5864
5865 * tdesc.c (tdesc_create_flags): Remove.
5866 (tdesc_add_flag): Likewise.
5867 (tdesc_named_type): Likewise.
5868 (tdesc_create_union): Likewise.
5869 (tdesc_create_struct): Likewise.
5870 (tdesc_create_vector): Likewise.
5871 (tdesc_add_bitfield): Likewise.
5872 (tdesc_add_field): Likewise.
5873 (tdesc_set_struct_size): Likewise.
5874
82ec9bc7
AH
58752018-04-18 Alan Hayward <alan.hayward@arm.com>
5876
5877 * tdesc.c (~target_desc): Remove implictly deleted items.
5878 (init_target_desc): Iterate all features.
5879 (tdesc_get_features_xml): Use vector.
5880 (tdesc_create_feature): Create feature.
5881 * tdesc.h (tdesc_feature) Remove
5882 (target_desc): Add features.
5883
ea3e7d71
AH
58842018-04-18 Alan Hayward <alan.hayward@arm.com>
5885
5886 * Makefile.in: Add common/tdesc.c
5887 * tdesc.c (init_target_desc): init all reg_defs from register
5888 vector.
5889 (tdesc_create_reg): Create tdesc_reg.
5890 * tdesc.h (tdesc_feature): Add register vector.
5891
17d08cd4
SM
58922018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5893
5894 * tdesc.h (struct target_desc) <features>: Change type to
5895 std::vector<std::string>.
5896 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5897 changes.
5898 (tdesc_get_features_xml): Likewise.
5899 (tdesc_create_feature): Likewise.
5900
5cd3e386
AH
59012018-03-26 Alan Hayward <alan.hayward@arm.com>
5902
5903 * regcache.c (find_register_by_number): Return a ref.
5904 (find_regno): Use references.
5905 (register_size): Likewise.
5906 (register_data): Likewise.
5907 * tdesc.c (target_desc::~target_desc): Remove free calls.
5908 (target_desc::operator==): Use std::vector compare.
5909 (init_target_desc): Use reference.
5910 (tdesc_create_reg): Use reg constructors.
5911 * tdesc.h (struct target_desc): Replace pointer with object.
5912
dff7492c
AH
59132018-03-23 Alan Hayward <alan.hayward@arm.com>
5914
5915 * regcache.c (find_register_by_number): Make static.
5916 (find_regno): Use find_register_by_number
5917 * regcache.h (struct reg): Remove declaration.
5918
d80e5242
AH
59192018-03-23 Alan Hayward <alan.hayward@arm.com>
5920
5921 * tdesc.c (target_desc::~target_desc): Move to here.
5922 (target_desc::operator==): Likewise.
5923 * tdesc.h (target_desc::~target_desc): Move from here.
5924 (target_desc::operator==): Likewise.
5925
f69c5afb
AA
59262018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5927
5928 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5929
ce29f843
AA
59302018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5931
5932 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5933 S390_TDESC_GS.
5934 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5935 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5936 and init_registers_s390_gs_linux64.
5937
c49bd90b
AA
59382018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5939
5940 * linux-s390-low.c (s390_fill_gs): Remove function.
5941 (s390_fill_gsbc): Remove function.
5942 (s390_regsets): Set fill functions for the guarded storage regsets
5943 to NULL.
5944
7edb9bd3
AA
59452018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5946
5947 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5948 the word size. Add comment.
5949 (s390_get_wordsize): New function.
5950 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5951 pswm with it. Instead, use s390_get_wordsize to determine the
5952 word size first and derive the correct tdesc from that directly.
5953
39be3c7e
SM
59542018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5955
5956 * Makefile.in: Include silent-rules.mk.
5957 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5958 (COMPILE): Add ECHO_CXX.
5959 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5960 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5961 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5962 (version-generated.c): Add ECHO_GEN.
5963 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5964 (IPAGENT_COMPILE): Add ECHO_CXX.
5965 (%-generated.c): Add ECHO_REGDAT.
5966
3ae9ce5d
TT
59672018-03-14 Tom Tromey <tom@tromey.com>
5968
5969 PR cli/14977:
5970 * ax.c (ax_printf): Special case for NULL.
5971
e6a58aa8
SM
59722018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5973
5974 * linux-low.c (linux_qxfer_libraries_svr4): Use
5975 xml_escape_text_append.
5976
f6e8a41e
SM
59772018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5978
5979 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5980
b9671caf
SM
59812018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5982
5983 * server.c (handle_general_set): Remove unnecessary xstrdup.
5984
e80aaf61
SM
59852018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5986
5987 * server.c (parse_debug_format_options): Adjust to
5988 delim_string_to_char_ptr_vec changes.
5989 * thread-db.c (thread_db_load_search): Adjust to
5990 dirnames_to_char_ptr_vec changes.
5991
b1223e78
MM
59922018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5993
5994 * target.h (target_enable_btrace, target_disable_btrace)
5995 (target_read_btrace, target_read_btrace_conf): Turn macro into
5996 inline function. Throw error if target method is not defined.
5997 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5998 check for btrace target method. Be prepared to handle exceptions
5999 from btrace target methods.
6000
81561546
SDJ
60012018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6002
6003 * server.c (captured_main): Change order of error message printed
6004 when the current working directory cannot be found.
6005
25e3c82c
SDJ
60062018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6007
6008 * server.c: Include "filenames.h" and "pathstuff.h".
6009 (program_name): Delete variable.
6010 (program_path): New anonymous class.
6011 (get_exec_wrapper): Use "program_path" instead of
6012 "program_name".
6013 (handle_v_run): Likewise.
6014 (captured_main): Likewise.
6015 (process_serial_event): Likewise.
6016
b4987c95
SDJ
60172018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6018
6019 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6020 (OBJS): Add "pathstuff.o".
6021 * server.c (current_directory): New global variable.
6022 (captured_main): Initialize "current_directory".
6023
f46cd62a
AH
60242018-02-26 Alan Hayward <alan.hayward@arm.com>
6025
6026 * tdesc.c: Use common/tdesc.h.
6027 * tdesc.h: Likewise.
6028
a543c5ca
AH
60292018-02-20 Alan Hayward <alan.hayward@arm.com>
6030 Simon Marchi <simon.marchi@ericsson.com>
6031
6032 * Makefile.in: Switch order of make rules.
6033
b5884fa7
AH
60342018-02-19 Alan Hayward <alan.hayward@arm.com>
6035
6036 * Makefile.in: Add common directory in build.
6037 * configure.ac: Add common reference.
6038 * configure: Regenerate.
6039
de6242d3
MM
60402018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6041
6042 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6043 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6044 * spu-low.c (spu_target_ops): Likewise.
6045 * win32-low.c (win32_target_ops): Likewise.
6046 * server.c (supported_btrace_packets): Report packets unconditionally.
6047 * target.h (target_ops) <supports_btrace>: Remove.
6048 (target_supports_btrace): Remove.
6049
9ee23a85
MM
60502018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6051
6052 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6053 (handle_btrace_disable): Change return type to void. Use exceptions
6054 to report errors.
6055 (handle_btrace_general_set): Catch exception and copy message to
6056 return message.
6057
8ce47547
TT
60582018-02-08 Tom Tromey <tom@tromey.com>
6059
6060 * linux-low.c (install_software_single_step_breakpoints): Use
6061 make_scoped_restore.
6062 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6063 (do_restore_current_thread_cleanup): Remove.
6064 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6065 declare.
6066
45dd3607
TT
60672018-02-08 Tom Tromey <tom@tromey.com>
6068
6069 * mem-break.c (set_raw_breakpoint_at): Use
6070 gdb::unique_xmalloc_ptr.
6071
e671cd59
PA
60722018-01-30 Pedro Alves <palves@redhat.com>
6073
6074 PR gdb/13211
6075 * target.c (target_terminal::terminal_state): Rename to ...
6076 (target_terminal::m_terminal_state): ... this.
6077
a0aad537
JC
60782018-01-19 James Clarke <jrtc27@jrtc27.com>
6079
6080 * linux-low.c (handle_extended_wait): Surround call to
6081 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6082
4d9b86e1
SM
60832018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6084
6085 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6086 linux_ptrace_attach_fail_reason_string now returning an
6087 std::string.
6088 (linux_attach): Likewise.
6089 * thread-db.c (attach_thread): Likewise.
6090
f517c180
EA
60912018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6092
6093 PR gdb/21559
6094 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6095 checking for fs_base/gs_base fields in struct user_regs_struct.
6096 * configure: Regenerate.
6097
9a70f35c
YQ
60982018-01-16 Yao Qi <yao.qi@linaro.org>
6099
6100 PR gdb/18749
6101 * linux-low.c (fetch_register): Call supply_register instead of
6102 error.
6103
605fd3c6
YQ
61042018-01-08 Yao Qi <yao.qi@linaro.org>
6105 Simon Marchi <simon.marchi@ericsson.com>
6106
6107 * Makefile.in (OBS): Remove selftest.o.
6108 * configure.ac: Set srv_selftest_objs if $development is true.
6109 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6110 * configure: Re-generated.
6111 * server.c (captured_main): Wrap variable selftest_filter with
6112 GDB_SELF_TEST.
6113
2cc05030
SM
61142018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6115
6116 * server.c (parse_debug_format_options): Return std::string.
6117 (handle_monitor_command, captured_main): Adjust.
6118
e379cee6
PA
61192018-01-05 Pedro Alves <palves@redhat.com>
6120
6121 PR gdb/18653
6122 * server.c (captured_main): Pass quiet=false to
6123 save_original_signals_state.
6124
82e1e79a
JB
61252018-01-01 Joel Brobecker <brobecker@adacore.com>
6126
6127 * gdbreplay.c (gdbreplay_version): Update copyright year in
6128 version message.
6129 * server.c (gdbserver_version): Likewise.
6130
8e481c3b
TT
61312017-12-08 Tom Tromey <tom@tromey.com>
6132
6133 * ax.c (ax_printf): Update.
6134
a8806230
YQ
61352017-12-07 Yao Qi <yao.qi@linaro.org>
6136
6137 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6138 aarch64_linux_read_description.
6139 * linux-amd64-ipa.c (idx2mask): New array.
6140 (get_ipa_tdesc): Move idx2mask out.
6141 (initialize_low_tracepoint): Initialize target descriptions.
6142 * linux-i386-ipa.c (idx2mask): New array.
6143 (get_ipa_tdesc): Move idx2mask out.
6144 (initialize_low_tracepoint): Initialize target descriptions.
6145
d4a0e8b5
SM
61462017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6147
6148 * tdesc.c (struct tdesc_type): Change return type.
6149 (tdesc_add_flag): Change parameter type.
6150 (tdesc_add_bitfield): Likewise.
6151 (tdesc_add_field): Likewise.
6152 (tdesc_set_struct_size): Likewise.
6153
798a7429
SM
61542017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6155
6156 * regcache.c (registers_to_string): Remove unused variable.
6157
c0e15c9b
SM
61582017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6159
6160 * inferiors.c (for_each_inferior_with_data): Remove.
6161 * inferiors.h (for_each_inferior_with_data): Remove.
6162 * server.c (handle_qxfer_threads_worker): Change parameter type.
6163 (handle_qxfer_threads_proper): Use for_each_thread.
6164
f0045347
SM
61652017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6166
6167 * inferiors.c (for_each_inferior): Remove.
6168 (clear_inferiors): Use for_each_thread.
6169 * inferiors.h (for_each_inferior): Remove.
6170 * linux-low.c (linux_wait_for_event_filtered): Use
6171 for_each_thread.
6172 (linux_stabilize_threads): Likewise.
6173 * regcache.c (regcache_release): Likewise.
6174 * server.c (gdb_wants_all_threads_stopped): Likewise.
6175 (clear_pending_status_callback): Remove.
6176 (handle_status): Use for_each_thread.
6177 (captured_main): Likewise.
6178 * win32-low.c (child_init_thread_list): Likewise.
6179 (win32_clear_inferiors): Likewise.
6180 (fake_breakpoint_event): Likewise.
6181
9521758b
SM
61822017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6183
6184 * inferiors.h (find_inferior): Remove.
6185 * inferiors.c (find_inferior): Remove.
6186
8f86d7aa
SM
61872017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6188
6189 * linux-low.c (resume_status_pending_p): Update comment.
6190 (need_step_over_p): Update comment.
6191
e2b44075
SM
61922017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6193
6194 * linux-low.c (proceed_one_lwp): Return void, change parameter
6195 type.
6196 (unsuspend_and_proceed_one_lwp): Likewise.
6197 (proceed_all_lwps): Use for_each_thread.
6198 (unstop_all_lwps): Likewise.
6199
c80825ff
SM
62002017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6201
6202 * linux-low.c (linux_resume_one_thread): Return void, take
6203 parameter directly.
6204 (linux_resume): Use for_each_thread.
6205
df3e4dbe
SM
62062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6207
6208 * linux-low.c (send_sigstop_callback): Return void, change
6209 parameter type. Rename to...
6210 (send_sigstop): ... this.
6211 (suspend_and_send_sigstop_callback): Return void, change parameter
6212 type. Rename to...
6213 (suspend_and_send_sigstop): ... this.
6214 (stop_all_lwps): Use for_each_thread.
6215
5a6b0a41
SM
62162017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6217
6218 * linux-low.c (lwp_running): Return bool, remove unused
6219 argument.
6220 (linux_stabilize_threads): Use find_thread.
6221
39a64da5
SM
62222017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6223
6224 * linux-low.c (select_singlestep_lwp_callback): Remove.
6225 (count_events_callback): Remove.
6226 (select_event_lwp_callback): Remove.
6227 (select_event_lwp): Use find_thread/for_each_thread.
6228
a1385b7b
SM
62292017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6230
6231 * linux-low.c (not_stopped_callback): Return bool, take filter
6232 argument directly.
6233 (linux_wait_for_event_filtered): Use find_thread.
6234 (linux_wait_1): Likewise.
6235
454296a2
SM
62362017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6237
6238 * linux-low.c (same_lwp): Remove.
6239 (find_lwp_pid): Use find_thread.
6240
6b2a85da
SM
62412017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6242
6243 * linux-low.c (delete_lwp_callback): Remove.
6244 (linux_mourn): Use for_each_thread.
6245
798a38e8
SM
62462017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6247
6248 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6249 args parameter, don't check for pid.
6250 (linux_detach): Use for_each_thread.
6251
e4eb0dec
SM
62522017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6253
6254 * linux-low.c (struct counter): Remove.
6255 (second_thread_of_pid_p): Remove.
6256 (last_thread_of_process_p): Use find_thread.
6257
83e1b6c1
SM
62582017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6259
6260 * inferiors.c (find_inferior_in_random): Remove.
6261 * inferiors.h (find_inferior_in_random): Remove.
6262 * linux-low.c (status_pending_p_callback): Return bool, accept
6263 parameter ptid directly.
6264 (linux_wait_for_event_filtered): Use find_thread_in_random.
6265 (linux_wait_1): Likewise.
6266
8dc7b443
SM
62672017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6268
6269 * inferiors.c (find_inferior_id): Remove.
6270 (find_thread_ptid): Move implemention from find_inferior_id to
6271 here.
6272 * inferiors.h (find_inferior_id): Remove.
6273 * server.c (handle_status): Use find_thread_ptid.
6274 (process_serial_event): Likewise.
6275 * thread-db.c (find_one_thread): Likewise.
6276 (thread_db_thread_handle): Likewise.
6277 * win32-low.c (thread_rec): Likewise.
6278 (child_delete_thread): Likewise.
6279 (win32_thread_alive): Likewise.
6280 (get_child_debug_event): Likewise.
6281
da25033c
SM
62822017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6283
6284 * linux-mips-low.c (update_watch_registers_callback): Return
6285 void, remove pid_p parameter, don't check for pid.
6286 (mips_insert_point, mips_remove_point): Use for_each_thread.
6287
c91bb56b
SM
62882017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6289
6290 * lynx.low (lynx_delete_thread_callback): Remove.
6291 (lynx_mourn): Use for_each_thread.
6292
634a3254
SM
62932017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6294
6295 * regcache.c (regcache_invalidate_one): Remove.
6296 (regcache_invalidate_pid): use for_each_thread.
6297
41272101
TT
62982017-11-26 Tom Tromey <tom@tromey.com>
6299
6300 * linux-low.c (linux_create_inferior): Update.
6301
f5291a6f
UW
63022017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6303
6304 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6305
6654d750
AH
63062017-11-24 Alan Hayward <alan.hayward@arm.com>
6307
6308 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6309 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6310 * linux-aarch64-tdesc-selftest.c: New file.
6311 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6312
63132017-11-24 Alan Hayward <alan.hayward@arm.com>
6314
6315 * configure.srv: Add new file.
6316 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6317 * linux-aarch64-tdesc-selftest.c: New file.
6318 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6319
49bdb7ee
AH
63202017-11-24 Alan Hayward <alan.hayward@arm.com>
6321
6322 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6323 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6324 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6325
d6d7ce56
AH
63262017-11-24 Alan Hayward <alan.hayward@arm.com>
6327
6328 * configure.srv: Add new files.
6329 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6330 aarch64_linux_read_description.
6331 * linux-aarch64-low.c (aarch64_linux_read_description):
6332 Merge with aarch64_arch_setup.
6333 (aarch64_arch_setup): Call aarch64_linux_read_description.
6334 * linux-aarch64-tdesc.c: New file.
6335 * linux-aarch64-tdesc.h: New file.
6336
506fe5f4
YQ
63372017-11-24 Yao Qi <yao.qi@linaro.org>
6338
6339 * configure.srv: Set $srv_regobj for tic6x-linux.
6340 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6341 (tic6x_read_description): Move some code to tic6x_arch_setup.
6342 (tic6x_tdesc_test): New function.
6343 (initialize_low_arch): Call selftests::register_test.
6344
29f9a567
YQ
63452017-11-22 Yao Qi <yao.qi@linaro.org>
6346
6347 * remote-utils.c (prepare_resume_reply): Use memcpy.
6348
578290ec
SM
63492017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6350
6351 * linux-low.c (kill_one_lwp_callback): Return void, take
6352 argument directly, don't filter on pid.
6353 (linux_kill): Use for_each_thread.
6354
eca55aec
SM
63552017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6356
6357 * linux-low.c (need_step_over_p): Return bool, remove dummy
6358 argument.
6359 (linux_resume, proceed_all_lwps): Use find_thread.
6360
25c28b4d
SM
63612017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6362
6363 * linux-low.c (resume_status_pending_p): Return bool, remove
6364 flag_p argument.
6365 (linux_resume): Use find_thread.
6366
5fdda392
SM
63672017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6368
6369 * linux-low.c (struct thread_resume_array): Remove.
6370 (linux_set_resume_request): Return void, take arguments
6371 directly.
6372 (linux_resume): Use for_each_thread.
6373
fcb056a5
SM
63742017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6375
6376 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6377 return bool, remove data argument.
6378 (linux_stabilize_threads): Use find_thread.
6379
139720c5
SM
63802017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6381
6382 * linux-low.c (unsuspend_one_lwp): Remove.
6383 (unsuspend_all_lwps): Use for_each_thread, inline code from
6384 unsuspend_one_lwp.
6385
6d1e5673
SM
63862017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6387
6388 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6389 * linux-low.c (struct iterate_over_lwps_args): Remove.
6390 (iterate_over_lwps_filter): Remove.
6391 (iterate_over_lwps): Use find_thread.
6392
bbf550d5
SM
63932017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6394
6395 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6396 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6397 code from reset_lwp_ptrace_options_callback.
6398
00192f77
SM
63992017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6400
6401 * linux-arm-low.c (struct update_registers_data): Remove.
6402 (update_registers_callback): Return void, take arguments
6403 directly, don't check thread's pid.
6404 (arm_insert_point, arm_remove_point): Use for_each_thread.
6405
2bee2b6c
SM
64062017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6407
6408 * win32-low.c (continue_one_thread): Return void, take argument
6409 directly.
6410 (child_continue): Use for_each_thread.
6411
0b360f19
SM
64122017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6413
6414 * win32-i386-low.c (update_debug_registers_callback): Rename
6415 to ...
6416 (update_debug_registers): ... this, return void, remove pid_p arg.
6417 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6418
f27866ba
SM
64192017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6420
6421 * inferiors.h (struct process_info): Add constructor, initialize
6422 fields..
6423 <syscalls_to_catch>: Change type to std::vector<int>.
6424 * inferiors.c (add_process): Allocate process_info with new.
6425 (remove_process): Free process_info with delete.
6426 * linux-low.c (handle_extended_wait): Adjust.
6427 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6428 * server.c (handle_general_set): Adjust.
6429
e849ea89
PA
64302017-11-16 Pedro Alves <palves@redhat.com>
6431
6432 * remote-utils.c (remote_close): Block SIGIO signals instead of
6433 uninstalling the SIGIO handler.
6434
1d0aa65c
AH
64352017-11-16 Alan Hayward <alan.hayward@arm.com>
6436
6437 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6438
3491a34c
YQ
64392017-11-16 Yao Qi <yao.qi@linaro.org>
6440
6441 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6442 (tic6x_store_gregset): Likewise.
6443 (tic6x_usrregs_info): Move it up.
6444
a602f924
AH
64452017-11-15 Alan Hayward <alan.hayward@arm.com>
6446
6447 * Makefile.in: Update arch rules.
6448 * configure.srv: Explicitly mark arch/ files.
6449
5616b6c3
AS
64502017-11-13 Andreas Schwab <schwab@suse.de>
6451
6452 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6453 function.
6454 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6455
d1928160
PA
64562017-11-06 Pedro Alves <palves@redhat.com>
6457
6458 * config.in, configure: Regenerate.
6459
bac608e7
SM
64602017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6461
6462 * target.c (struct thread_search): Remove.
6463 (thread_search_callback): Remove.
6464 (prepare_to_access_memory): Use for_each_thread instead of
6465 find_inferior. Inline code from thread_search_callback.
6466
eaddb425
SM
64672017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6468
6469 * server.c (struct visit_actioned_threads_data): Remove.
6470 (visit_actioned_threads): Change prototype to take arguments
6471 directly.
6472 (resume): Use find_thread instead of find_inferior.
6473
99078d34
SM
64742017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6475
6476 * server.c (queue_stop_reply_callback): Change prototype, return
6477 void.
6478 (find_status_pending_thread_callback): Remove.
6479 (handle_status): Replace find_inferior with find_thread and
6480 for_each_thread.
6481
cc628f3d
AH
64822017-10-25 Alan Hayward <alan.hayward@arm.com>
6483
6484 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6485 with REGNO.
6486 (aarch64_store_gregset): Likewise.
6487 (aarch64_fill_fpregset): Likewise.
6488 (aarch64_store_fpregset): Likewise.
6489
4d3bb80e
SM
64902017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6491
6492 * gdbthread.h (find_thread, for_each_thread): New functions.
6493 * inferiors.c (thread_of_pid): Remove.
6494 (find_any_thread_of_pid): Use find_thread.
6495 * linux-low.c (num_lwps): Use for_each_thread.
6496
7a7cdfa0
YQ
64972017-10-17 Yao Qi <yao.qi@linaro.org>
6498
6499 * Makefile.in: Remove one rule.
6500 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6501
e675d170
YQ
65022017-10-17 Yao Qi <yao.qi@linaro.org>
6503
6504 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6505 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6506
7eb4e0f9
YQ
65072017-10-17 Yao Qi <yao.qi@linaro.org>
6508
6509 * configure.srv: Rename arm.o with arch/arm.o.
6510
60d6cfc9
YQ
65112017-10-17 Yao Qi <yao.qi@linaro.org>
6512
6513 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6514 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6515 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6516 (arch-i386.o, arch-amd64.o): Remove rules.
6517 (arch/%.o): New rule.
6518 Update POSTCOMPILE and COMPILE.pre.
6519 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6520 * configure: Re-generated.
6521 * configure.srv: Replace arch-i386.o with arch/i386.o.
6522 Replace arch-amd64.o with arch/amd64.o.
6523
5bfda255
YQ
65242017-10-16 Yao Qi <yao.qi@linaro.org>
6525
6526 * configure: Regenerated.
6527
9c80ecd6
SM
65282017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6529
6530 * inferiors.h: (struct inferior_list): Remove.
6531 (struct inferior_list_entry); Remove.
6532 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6533 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6534 get_first_inferior): Remove.
6535 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6536 find_inferior_id, find_inferior_in_random): Change signature.
6537 * inferiors.c (all_threads): Change type to
6538 std::list<thread_info *>.
6539 (get_thread): Remove macro.
6540 (find_inferior, find_inferior_id): Change signature, implement
6541 using find_thread.
6542 (find_inferior_in_random): Change signature, implement using
6543 find_thread_in_random.
6544 (for_each_inferior, for_each_inferior_with_data): Change
6545 signature, implement using for_each_thread.
6546 (add_inferior_to_list, remove_inferior): Remove.
6547 (add_thread, get_first_thread, thread_of_pid,
6548 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6549 (get_first_inferior, one_inferior_p, clear_inferior_list):
6550 Remove.
6551 (clear_inferiors, get_thread_process): Update.
6552 * gdbthread.h: Include <list>.
6553 (struct thread_info) <entry>: Remove field.
6554 <id>: New field.
6555 (all_threads): Change type to std::list<thread_info *>.
6556 (get_first_inferior): Add doc.
6557 (find_thread, for_each_thread, find_thread_in_random): New
6558 functions.
6559 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6560 * linux-arm-low.c (update_registers_callback): Update.
6561 * linux-low.c (second_thread_of_pid_p): Update.
6562 (kill_one_lwp_callback, linux_detach_lwp_callback,
6563 delete_lwp_callback, status_pending_p_callback, same_lwp,
6564 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6565 iterate_over_lwps, not_stopped_callback,
6566 resume_stopped_resumed_lwps, count_events_callback,
6567 select_singlestep_lwp_callback, select_event_lwp_callback,
6568 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6569 suspend_and_send_sigstop_callback, wait_for_sigstop,
6570 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6571 lwp_running, linux_set_resume_request, resume_status_pending_p,
6572 need_step_over_p, start_step_over, linux_resume_one_thread,
6573 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6574 reset_lwp_ptrace_options_callback): Update.
6575 * linux-mips-low.c (update_watch_registers_callback): Update.
6576 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6577 Update.
6578 (free_register_cache_thread_one): Remove.
6579 (regcache_release): Update.
6580 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6581 handle_qxfer_threads_worker): Update.
6582 (handle_query): Update, use list iterator.
6583 (visit_actioned_threads, handle_pending_status,
6584 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6585 clear_pending_status_callback, set_pending_status_callback,
6586 find_status_pending_thread_callback, handle_status,
6587 process_serial_event): Update.
6588 * target.c (thread_search_callback): Update.
6589 * thread-db.c (thread_db_get_tls_address): Update.
6590 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6591 Update.
6592 * win32-i386-low.c (update_debug_registers_callback): Update.
6593 * win32-low.c (delete_thread_info, child_delete_thread,
6594 continue_one_thread, suspend_one_thread,
6595 get_child_debug_event): Adjust.
6596
9179355e
SM
65972017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6598
6599 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6600 * inferiors.h: Include <list>.
6601 (struct process_info) <entry>: Remove field.
6602 <pid>: New field.
6603 (pid_of): Change macro to function.
6604 (ptid_of, lwpid_of): Remove macro.
6605 (all_processes): Change type to std::list<process_info *>.
6606 (ALL_PROCESSES): Remove macro.
6607 (for_each_process, find_process): New function.
6608 * inferiors.c (all_processes): Change type to
6609 std::list<process_info *>.
6610 (find_thread_process): Adjust.
6611 (add_process): Likewise.
6612 (remove_process): Likewise.
6613 (find_process_pid): Likewise.
6614 (get_first_process): Likewise.
6615 (started_inferior_callback): Remove.
6616 (have_started_inferiors_p): Adjust.
6617 (attached_inferior_callback): Remove.
6618 (have_attached_inferiors_p): Adjust.
6619 * linux-low.c (check_zombie_leaders): Likewise.
6620 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6621 (x86_linux_update_xmltarget): Adjust.
6622 * server.c (handle_query): Likewise.
6623 (gdb_reattached_process): Remove.
6624 (handle_status): Adjust.
6625 (kill_inferior_callback): Likewise.
6626 (detach_or_kill_inferior): Remove.
6627 (print_started_pid): Likewise.
6628 (print_attached_pid): Likewise.
6629 (detach_or_kill_for_exit): Update.
6630 (process_serial_event): Likewise.
6631 * linux-arm-low.c (arm_new_fork): Likewise.
6632
c9cb8905
SM
66332017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6634
6635 * dll.h: Include <list>.
6636 (struct dll_info): Add constructor.
6637 <entry>: Remove field.
6638 (all_dlls): Change type to std::list<dll_info>.
6639 * dll.c: Include <algorithm>.
6640 (get_dll): Remove macro.
6641 (all_dlls): Change type to std::list<dll_info *>.
6642 (free_one_dll): Remove.
6643 (match_dll): Likewise.
6644 (loaded_dll): Adjust.
6645 (unloaded_dll): Adjust to all_dlls type change, use
6646 std::find_if. Inline code from match_dll.
6647 (clear_dlls): Adjust to all_dlls type change.
6648 * server.c (emit_dll_description): Remove.
6649 (handle_qxfer_libraries): Adjust to all_dlls type change,
6650 integrate emit_dll_description's functionality.
6651
04ec7890
SM
66522017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6653
6654 * linux-low.h (struct linux_target_ops) <delete_process>: New
6655 field.
6656 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6657 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6658 (struct linux_target_ops): Add delete_process callback.
6659 * linux-arm-low.c (arm_delete_process): New.
6660 (struct linux_target_ops): Add delete_process callback.
6661 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6662 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6663 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6664 * linux-mips-low.c (mips_linux_delete_process): New.
6665 (struct linux_target_ops): Add delete_process callback.
6666 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6667 * linux-s390-low.c (struct linux_target_ops): Likewise.
6668 * linux-sh-low.c (struct linux_target_ops): Likewise.
6669 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6670 * linux-tile-low.c (struct linux_target_ops): Likewise.
6671 * linux-x86-low.c (x86_linux_delete_process): New.
6672 (struct linux_target_ops): Add delete_process callback.
6673 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6674
466eecee
SM
66752017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6676
6677 * linux-aarch64-low.c (the_low_target): Add thread delete
6678 callback.
6679 * linux-arm-low.c (arm_delete_thread): New function.
6680 (the_low_target): Add thread delete callback.
6681 * linux-bfin-low.c (the_low_target): Likewise.
6682 * linux-crisv32-low.c (the_low_target): Likewise.
6683 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6684 set.
6685 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6686 field.
6687 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6688 * linux-mips-low.c (mips_linux_delete_thread): New function.
6689 (the_low_target): Add thread delete callback.
6690 * linux-ppc-low.c (the_low_target): Likewise.
6691 * linux-s390-low.c (the_low_target): Likewise.
6692 * linux-sh-low.c (the_low_target): Likewise.
6693 * linux-tic6x-low.c (the_low_target): Likewise.
6694 * linux-tile-low.c (the_low_target): Likewise.
6695 * linux-x86-low.c (the_low_target): Likewise.
6696 * linux-xtensa-low.c (the_low_target): Likewise.
6697
b79f7801
YZ
66982017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6699
6700 * win32-low.c: Include "common-inferior.h".
6701
bc3b087d
SDJ
67022017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6703
6704 * inferiors.c (set_inferior_cwd): New function.
6705 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6706 (handle_query): Inform that QSetWorkingDir is supported.
6707 * win32-low.c (create_process): Pass the inferior's cwd to
6708 CreateProcess.
6709
d092c5a2
SDJ
67102017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6711
6712 * inferiors.c (current_inferior_cwd): New global variable.
6713 (get_inferior_cwd): New function.
6714 * inferiors.h (struct process_info) <cwd>: New field.
6715
7da0a886
SDJ
67162017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6717
6718 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6719 (OBS): Add gdb_tilde_expand.o.
6720
289a6840
SM
67212017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6722
6723 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6724 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6725
256642e8
PA
67262017-09-29 Pedro Alves <palves@redhat.com>
6727
6728 * ax.c (gdb_parse_agent_expr): Constify.
6729 * ax.h (gdb_parse_agent_expr): Constify.
6730 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6731 Constify.
6732 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6733 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6734 * remote-utils.h (read_ptid): Constify.
6735 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6736 (process_point_options, process_serial_event): Constify.
6737 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6738 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6739 (cmd_qtbuffer): Constify.
6740
5b9ca4d4
PA
67412017-09-29 Pedro Alves <palves@redhat.com>
6742
6743 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6744 fails.
6745
94c207e0
PA
67462017-09-29 Pedro Alves <palves@redhat.com>
6747
6748 * linux-low.c (handle_extended_wait): Pass parent thread instead
6749 of process to thread_db_notice_clone.
6750 * linux-low.h (thread_db_notice_clone): Replace parent process
6751 parameter with parent thread parameter.
6752 * thread-db.c (find_one_thread): Add comment.
6753 (thread_db_notice_clone): Replace parent process parameter with
6754 parent thread parameter. Temporarily switch to the parent thread.
6755
75352e28
SDJ
67562017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6757
6758 * gdbthread.h: Include "common-gdbthread.h".
6759 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6760 "if" when validating the ptid.
6761 * remote-utils.c: Include "gdbthread.h".
6762 (prepare_resume_reply): Use "switch_to_thread".
6763 * target.c (done_accessing_memory): Likewise.
6764
ad339634
AA
67652017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6766
6767 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6768 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6769 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6770 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6771 s390x-gs-linux64-ipa.o to ipa_obj.
6772 * linux-s390-low.c (HWCAP_S390_GS): New define.
6773 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6774 New functions.
6775 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6776 (s390_arch_setup): Check for guarded-storage support and choose
6777 appropriate tdesc.
6778 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6779 init_registers_s390x_gs_linux64.
6780 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6781 enum value.
6782 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6783 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6784
cc4d742f
SM
67852017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6786
6787 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6788
f6327dcb
KB
67892017-09-21 Kevin Buettner <kevinb@redhat.com>
6790
6791 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6792 (thread_db_thread_handle): Declare.
6793 * linux-low.c (linux_target_ops): Initialize thread_handle.
6794 * server.c (handle_qxfer_threads_worker): Add support for
6795 "handle" attribute.
6796 * target.h (struct target_ops): Add new function pointer,
6797 thread_handle.
6798 (target_thread_handle): Define.
6799 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6800 field in lwp.
6801 (thread_db_thread_handle): New function.
6802
86299109
KB
68032017-09-21 Kevin Buettner <kevinb@redhat.com>
6804
6805 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6806 * linux-low.h (thread_db_notice_clone): Declare.
6807 * thread-db.c (thread_db_notice_clone): New function.
6808
f557a88a
PA
68092017-09-21 Pedro Alves <palves@redhat.com>
6810
6811 * server.c (gdb_read_memory, handle_status, process_serial_event)
6812 (handle_serial_event, handle_target_event): Adjust to
6813 set_desired_thread prototype change.
6814 * target.c (set_desired_thread): Remove 'use_general' parameter
6815 and adjust.
6816 * target.h (set_desired_thread): Remove 'use_general' parameter.
6817
223ffa71
TT
68182017-09-20 Tom Tromey <tom@tromey.com>
6819
6820 * target.c (target_terminal::terminal_state): Define.
6821 (target_terminal::init): Rename from target_terminal_init.
6822 (target_terminal::inferior): Rename from
6823 target_terminal_inferior.
6824 (target_terminal::ours): Rename from target_terminal_ours.
6825 (target_terminal::ours_for_output, target_terminal::info): New.
6826
04fd3ba9
SM
68272017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6828
6829 * server.c (accumulate_file_name_length): Remove.
6830 (emit_dll_description): Adjust to std::string change.
6831 (handle_qxfer_libraries): Use std::string to hold document.
6832
5e187554
SM
68332017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6834
6835 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6836 return type of xml_escape_text.
6837 * server.c (emit_dll_description): Likewise.
6838
1526853e
SM
68392017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6840
6841 * server.c (captured_main): Accept argument for --selftest.
6842 Update run_tests call.
6843 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6844 when registering selftests.
6845
c4dfafab
SDJ
68462017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6847
6848 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6849 instead of "VEC" for "target_desc.reg_defs".
6850 (regcache_cpy): Likewise.
6851 (registers_to_string): Likewise.
6852 (registers_from_string): Likewise.
6853 (find_regno): Likewise.
6854 (supply_regblock): Likewise.
6855 (regcache_raw_read_unsigned): Likewise.
6856 * tdesc.c (init_target_desc): Likewise.
6857 (tdesc_create_reg): Likewise.
6858 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6859 (struct target_desc) <reg_defs>: Convert to "std::vector".
6860 (target_desc): Do not initialize "reg_defs".
6861 (~target_desc): Update code to use "std::vector" instead of "VEC"
6862 for "target_desc.reg_defs".
6863 (operator==): Likewise.
6864
124aceb4
SM
68652017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6866
6867 * inferiors.h (thread_to_gdb_id): Remove.
6868 * inferiors.c (thread_to_gdb_id): Remove.
6869 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6870 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6871 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6872 Likewise.
6873 * nto-low.c (nto_fetch_registers, nto_store_registers,
6874 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6875
96cde54f
SM
68762017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6877
6878 * inferiors.h (gdb_id_to_thread_id): Remove.
6879 * inferiors.c (gdb_id_to_thread_id): Remove.
6880 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6881 removal. Move pid declaration closer to where it's used.
6882
e8ca139e
SM
68832017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6884
6885 * server.c (handle_detach): New function.
6886 (process_serial_event): Move code out, call handle_detach.
6887
f8a4e119
SM
68882017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6889
6890 * server.c (require_running): Rename to ...
6891 (require_running_or_return): ... this ...
6892 (require_running_or_break): ... and this.
6893 (handle_query, process_serial_event): Adjust.
6894
0eb0a407
SM
68952017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6896
6897 * linux-low.c (linux_set_resume_request): Remove unused
6898 variables.
6899
785922a5
SM
69002017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6901
6902 * server.c (first_thread_of): Remove.
6903 (process_serial_event): Replace usage of first_thread_of with
6904 find_any_thread_of_pid.
6905 * tracepoint.c (same_process_p): Remove.
6906 (gdb_agent_about_to_close): Replace usage of same_process_p with
6907 find_any_thread_of_pid.
6908 * linux-x86-low.c (same_process_callback): Remove.
6909 (x86_arch_setup_process_callback): Replace usage of
6910 same_process_callback with find_any_thread_of_pid.
6911 * thread-db.c (any_thread_of): Remove.
6912 (switch_to_process): Replace usage of any_thread_of with
6913 find_any_thread_of_pid.
6914 * inferiors.c (thread_pid_matches_callback): Remove.
6915 (find_thread_process): Adjust to use find_any_thread_of_pid.
6916
a059f00c
SDJ
69172017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6918
6919 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6920 with "!VEC_empty".
a059f00c 6921
cc397f3a
SDJ
69222017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6923
6924 * linux-low.c (handle_extended_wait): Use
6925 "allocate_target_description" instead of "XNEW".
6926 * linux-x86-low.c (initialize_low_arch): Likewise.
6927
22916b07
YQ
69282017-09-05 Yao Qi <yao.qi@linaro.org>
6929
6930 * configure.srv (srv_i386_regobj): Remove.
6931 (srv_amd64_regobj): Remove.
6932 (srv_regobj): Set it to "" for x86 non-linux targets.
6933 * linux-x86-tdesc.c (i386_linux_read_description):
6934 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6935 (init_registers_i386): Remove the declaration.
6936 (tdesc_i386): Remove the declaration.
6937 (lynx_i386_arch_setup): Call i386_create_target_description.
6938 * nto-x86-low.c: Likewise.
6939 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6940 [!__x86_64__]: include arch/i386.h.
6941 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6942
38602d55
YQ
69432017-09-05 Yao Qi <yao.qi@linaro.org>
6944
6945 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6946 i386/amd64-XXX-linux from it.
6947
44b886ff
YQ
69482017-09-05 Yao Qi <yao.qi@linaro.org>
6949
6950 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6951 false.
6952 (ipa_amd64_linux_regobj): Remove.
6953 (ipa_x32_linux_regobj): Remove.
6954
b4570e4b
YQ
69552017-09-05 Yao Qi <yao.qi@linaro.org>
6956
6957 * Makefile.in (arch-amd64.o): New rule.
6958 * configure.srv: Append arch-amd64.o.
6959 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6960 (get_ipa_tdesc): Call amd64_linux_read_description.
6961 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6962 and init_registers_amd64_XXX.
6963 * linux-x86-low.c (x86_linux_read_description): Call
6964 amd64_linux_read_description.
6965 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6966 (initialize_low_arch): Don't call init_registers_x32_XXX and
6967 init_registers_amd64_XXX.
6968 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6969 and tdesc_amd64_XXX.
6970 [__x86_64__] (amd64_tdesc_test): New function.
6971 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6972 and init_registers_amd64_XXX.
6973 * linux-x86-tdesc.c: Include arch/amd64.h.
6974 (xcr0_to_tdesc_idx): New function.
6975 (i386_linux_read_description): New function.
6976 (amd64_get_ipa_tdesc_idx): New function.
6977 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6978 (amd64_get_ipa_tdesc): Declare.
6979
d1f28ea2
YQ
69802017-09-05 Yao Qi <yao.qi@linaro.org>
6981
6982 * configure.srv (srv_i386_linux_xmlfiles): Remove
6983 i386/i386-XXX-linux.xml from it.
6984
25a93583
YQ
69852017-09-05 Yao Qi <yao.qi@linaro.org>
6986
6987 * configure.srv: Set srv_i386_linux_regobj empty if $development
6988 is false.
6989 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6990 initialize_low_tdesc.
6991 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6992 with #if initialize_low_tdesc.
6993 * linux-x86-tdesc-selftest.c: New file.
6994 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6995
5f035c07
YQ
69962017-09-05 Yao Qi <yao.qi@linaro.org>
6997
6998 * Makefile.in (arch-i386.o): New rule.
6999 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7000 (x86_64-*-linux*): Likewise.
7001 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7002 include arch/i386.h.
7003 (i386_linux_read_description): Remove code and call
7004 i386_create_target_description.
7005 * tdesc.c (allocate_target_description): New function.
7006 * tdesc.h (set_tdesc_architecture): Remove declaration.
7007 (set_tdesc_osabi): Likewise.
7008
0abe8a89
YQ
70092017-09-05 Yao Qi <yao.qi@linaro.org>
7010
7011 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7012 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7013 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7014 .xmltarget.
7015 * server.c (get_features_xml): Call tdesc_get_features_xml.
7016 * tdesc.c (set_tdesc_architecture): New function.
7017 (set_tdesc_osabi): New function.
7018 (tdesc_get_features_xml): New function.
7019 (tdesc_create_feature): Add an argument.
7020 * tdesc.h (struct target_desc) <features>: New field.
7021 <arch, osabi>: New field.
7022 (~target_desc): xfree features, arch, and osabi.
7023 (target_desc::oerator==): Don't compare .xmltarget.
7024 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7025 (set_tdesc_osabi): Likewise.
7026 (tdesc_get_features_xml): Likewise.
7027
0a188386
YQ
70282017-09-05 Yao Qi <yao.qi@linaro.org>
7029
7030 * linux-x86-tdesc.c: Include selftest.h.
7031 (i386_tdesc_test): New function.
7032 (initialize_low_tdesc): Call selftests::register_test.
7033 * tdesc.h: Include regdef.h.
7034 (target_desc): Override operator == and !=.
7035
f49ff000
YQ
70362017-09-05 Yao Qi <yao.qi@linaro.org>
7037
7038 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7039 (ipa_obj): Likewise.
7040 * linux-i386-ipa.c: Include common/x86-xstate.h
7041 (get_ipa_tdesc): Call i386_linux_read_description.
7042 (initialize_low_tracepoint): Don't call init_registers_XXX
7043 functions, call initialize_low_tdesc instead.
7044 * linux-x86-low.c (x86_linux_read_description): Call
7045 i386_linux_read_description.
7046 (initialize_low_arch): Don't call init_registers_i386_XXX
7047 functions, call initialize_low_tdesc.
7048 * linux-x86-tdesc.c: New file.
7049 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7050 (i386_get_ipa_tdesc_idx): Declare.
7051 (i386_get_ipa_tdesc): Declare.
7052 (initialize_low_tdesc): Declare.
7053
2b68ef2f
YQ
70542017-09-05 Yao Qi <yao.qi@linaro.org>
7055
7056 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7057 instead of 0.
7058
f7000548
YQ
70592017-09-05 Yao Qi <yao.qi@linaro.org>
7060
7061 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7062 * regcache.c (get_thread_regcache): Use VEC_length.
7063 (init_register_cache): Likewise.
7064 (regcache_cpy): Likewise.
7065 (registers_to_string): Iterate reg_defs via VEC_iterate.
7066 (find_regno): Likewise.
7067 (find_register_by_number): Use VEC_index.
7068 (register_size): Call find_register_by_number.
7069 (register_data): Call find_register_by_number.
7070 (supply_regblock): Use VEC_length.
7071 (regcache_raw_read_unsigned): Likewise.
7072 * tdesc.c (init_target_desc): Iterate reg_defs via
7073 VEC_iterate.
7074 (default_description): Update initializer.
7075 (copy_target_description): Don't update field num_registers.
7076 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7077 <num_registers>: Remove.
7078
50a421ac
SM
70792017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7080
7081 * Makefile.in (.SECONDARY): Define target.
7082
23fdd69e
SM
70832017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7084
7085 * linux-low.c (linux_wait_1): Adjust.
7086 * server.c (queue_stop_reply_callback): Adjust.
7087
0a2dde4a
SDJ
70882017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7089
7090 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7091 QEnvironmentUnset and QEnvironmentReset packets.
7092 (handle_query): Inform remote that QEnvironmentHexEncoded,
7093 QEnvironmentUnset and QEnvironmentReset are supported.
7094
6afd337d
SM
70952017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7096
7097 * inferiors.h (inferior_target_data): Rename to ...
7098 (thread_target_data): ... this.
7099 (inferior_regcache_data): Rename to ...
7100 (thread_regcache_data): ... this.
7101 (set_inferior_regcache_data): Rename to ...
7102 (set_thread_regcache_data): ... this.
7103 * inferiors.c (inferior_target_data): Rename to ...
7104 (thread_target_data): ... this.
7105 (inferior_regcache_data): Rename to ...
7106 (thread_regcache_data): ... this.
7107 (set_inferior_regcache_data): Rename to ...
7108 (set_thread_regcache_data): ... this.
7109 (free_one_thread): Update.
7110 * linux-low.h (get_thread_lwp): Update.
7111 * regcache.c (get_thread_regcache): Update.
7112 (regcache_invalidate_thread): Update.
7113 (free_register_cache_thread): Update.
7114 * win32-i386-low.c (update_debug_registers_callback): Update.
7115 (win32_get_current_dr): Update.
7116 * win32-low.c (thread_rec): Update.
7117 (delete_thread_info): Update.
7118 (continue_one_thread): Update.
7119 (suspend_one_thread): Update.
7120
a160cc46
SM
71212017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7122
7123 * inferiors.c (set_inferior_target_data): Remove.
7124 * inferiors.h (set_inferior_target_data): Remove.
7125
6d580b63
YQ
71262017-08-18 Yao Qi <yao.qi@linaro.org>
7127
7128 * Makefile.in (OBS): Add selftest.o.
7129 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7130 * configure, config.in: Re-generated.
7131 * server.c: Include common/sefltest.h.
7132 (captured_main): Handle option --selftest.
7133
f5a29eb0
YQ
71342017-08-09 Yao Qi <yao.qi@linaro.org>
7135
7136 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7137 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7138 i386-avx-mpx.o and i386-mmx.o.
7139 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7140 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7141 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7142 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7143 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7144 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7145 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7146 i386/amd64-avx-mpx.xml.
7147
57757c2f
YQ
71482017-08-09 Yao Qi <yao.qi@linaro.org>
7149
7150 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7151 and x32-avx-avx512.o.
7152 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7153 i386/x32-avx-avx512.xml.
7154
229d26fc
SM
71552017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7156
7157 * tracepoint.h (enum class fast_tpoint_collect_result): New
7158 enumeration.
7159 (fast_tracepoint_collecting): Change return type to
7160 fast_tpoint_collect_result.
7161 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7162 * linux-low.h: Include tracepoint.h.
7163 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7164 fast_tpoint_collect_result.
7165 * linux-low.c (handle_tracepoints): Adjust.
7166 (linux_fast_tracepoint_collecting): Change return type to
7167 fast_tpoint_collect_result.
7168 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7169 linux_wait_1, stuck_in_jump_pad_callback,
7170 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7171 proceed_one_lwp): Adjust to type change.
7172
2e1e43e1
YQ
71732017-07-10 Yao Qi <yao.qi@linaro.org>
7174
7175 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7176
adc764e7
YQ
71772017-06-29 Yao Qi <yao.qi@linaro.org>
7178
7179 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7180 Remove.
7181 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7182
a206891a
SM
71832017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7184
7185 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7186
9a6c7d9c
SDJ
71872017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7188
7189 * linux-low.c (linux_create_inferior): Adjust code to access the
7190 environment information via 'gdb_environ' class.
7191 * lynx-low.c (lynx_create_inferior): Likewise.
7192 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7193 (get_environ): Return a pointer to 'our_environ'.
7194 (captured_main): Initialize 'our_environ'.
7195 * server.h (get_environ): Adjust prototype.
7196 * spu-low.c (spu_create_inferior): Adjust code to access the
7197 environment information via 'gdb_environ' class.
7198
ae3e2ccf
SM
71992017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7200
7201 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7202 usage of "register" keyword.
7203
3e019bdc
SM
72042017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7205
7206 * configure: Re-generate.
7207
8465943a
SM
72082017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7209
7210 * configure: Re-generate.
7211
cf0dd6f0
SM
72122017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7213
7214 * Makefile.in (COMPILE.pre): Add "-x c++".
7215
9845682b
SDJ
72162017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7217
7218 * fork-child.c: Conditionally include <signal.h>.
7219
aefd8b33
SDJ
72202017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7221
7222 * server.c (handle_general_set): Handle new packet
7223 "QStartupWithShell".
7224 (handle_query): Add "QStartupWithShell" to the list of supported
7225 packets.
7226 (gdbserver_usage): Add help text explaining the
7227 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7228 options.
7229 (captured_main): Recognize and act upon the presence of the new
7230 CLI options.
7231
2090129c
SDJ
72322017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7233 Pedro Alves <palves@redhat.com>
7234
7235 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7236 * configure: Regenerate.
7237 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7238 "fork-inferior.o".
7239 (i[34567]86-*-lynxos*): Likewise.
7240 (spu*-*-*): Likewise.
7241 * fork-child.c: New file.
7242 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7243 and "environ.h".
7244 (linux_ptrace_fun): New function.
7245 (linux_create_inferior): Adjust function prototype to reflect
7246 change on "target.h". Adjust function code to use
7247 "fork_inferior".
7248 (linux_request_interrupt): Delete "signal_pid".
7249 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7250 (lynx_ptrace_fun): New function.
7251 (lynx_create_inferior): Adjust function prototype to reflect
7252 change on "target.h". Adjust function code to use
7253 "fork_inferior".
7254 * nto-low.c (nto_create_inferior): Adjust function prototype and
7255 code to reflect change on "target.h". Update comments.
7256 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7257 "common-terminal.h" and "environ.h".
7258 (terminal_fd): Moved to fork-child.c.
7259 (old_foreground_pgrp): Likewise.
7260 (restore_old_foreground_pgrp): Likewise.
7261 (last_status): Make it global.
7262 (last_ptid): Likewise.
7263 (our_environ): New variable.
7264 (startup_with_shell): Likewise.
7265 (program_name): Likewise.
7266 (program_argv): Rename to...
7267 (program_args): ...this.
7268 (wrapper_argv): New variable.
7269 (start_inferior): Delete function.
7270 (get_exec_wrapper): New function.
7271 (get_exec_file): Likewise.
7272 (get_environ): Likewise.
7273 (prefork_hook): Likewise.
7274 (post_fork_inferior): Likewise.
7275 (postfork_hook): Likewise.
7276 (postfork_child_hook): Likewise.
7277 (handle_v_run): Update code to deal with arguments coming from the
7278 remote host. Update calls from "start_inferior" to
7279 "create_inferior".
7280 (captured_main): Likewise. Initialize environment variable. Call
7281 "have_job_control".
7282 * server.h (post_fork_inferior): New prototype.
7283 (get_environ): Likewise.
7284 (last_status): Declare.
7285 (last_ptid): Likewise.
7286 (signal_pid): Likewise.
7287 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7288 (spu_ptrace_fun): New function.
7289 (spu_create_inferior): Adjust function prototype to reflect change
7290 on "target.h". Adjust function code to use "fork_inferior".
7291 * target.c (target_terminal_init): New function.
7292 (target_terminal_inferior): Likewise.
7293 (target_terminal_ours): Likewise.
7294 * target.h: Include <vector>.
7295 (struct target_ops) <create_inferior>: Update prototype.
7296 (create_inferior): Update macro.
7297 * utils.c (gdb_flush_out_err): New function.
7298 * win32-low.c (win32_create_inferior): Adjust function prototype
7299 and code to reflect change on "target.h".
7300
043a4934
SDJ
73012017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7302
7303 * inferiors.c (switch_to_thread): New function.
7304
15652511
SDJ
73052017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7306
7307 * Makefile.in (SFILE): Add "common/job-control.c".
7308 (OBS): Add "job-control.o".
7309
21ea5acd
SDJ
73102017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7311
7312 * Makefile: Remove "@host_makefile_frag@".
7313
e13cb306
PA
73142017-05-05 Pedro Alves <palves@redhat.com>
7315
7316 * configure: Regenerate.
7317
c94fee56
SDJ
73182017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7319
7320 * configure: Regenerate.
7321
a0ff9e1a
SM
73222017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7323
7324 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7325 software_single_step change of return type to
7326 std::vector<CORE_ADDR>.
7327 * linux-low.c (install_software_single_step_breakpoints):
7328 Likewise.
7329 * linux-low.h (install_software_single_step_breakpoints):
7330 Likewise.
7331
be628ab8
SDJ
73322017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7333
7334 * remote-utils.c: Include "gdb_termios.h" instead of
7335 "terminal.h".
7336 * terminal.h: Delete file.
7337
7c5ded6a
SDJ
73382017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7339
7340 * server.c: Include <vector>.
7341 <program_argv, wrapper_argv>: Convert to std::vector.
7342 (start_inferior): Rewrite function to use C++.
7343 (handle_v_run): Likewise. Update code that calculates the argv
7344 based on the vRun packet; use C++.
7345 (captured_main): Likewise.
7346
436252de
SM
73472017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7348
7349 * server.c (handle_v_cont): Initialize thread_resume::thread
7350 with null_ptid.
7351
9bf2a700
PA
73522017-04-05 Pedro Alves <palves@redhat.com>
7353
7354 * configure: Regenerate.
7355
a121b7c1
PA
73562017-04-05 Pedro Alves <palves@redhat.com>
7357
7358 * gdbreplay.c (sync_error): Constify.
7359 * linux-x86-low.c (push_opcode): Constify.
7360
21c8a587
PA
73612017-04-05 Pedro Alves <palves@redhat.com>
7362
7363 * win32-low.c (get_child_debug_event)
7364 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7365 Report TARGET_WAITKIND_SPURIOUS instead.
7366
fb32b4f7
PA
73672017-04-05 Pedro Alves <palves@redhat.com>
7368
e79be6e5
SM
7369 * remote-utils.c (remote_prepare, remote_open): Constify.
7370 * remote-utils.h (remote_prepare, remote_open): Constify.
7371 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7372
65dd1e59
SM
73732017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7374
7375 * Makefile.in (clean): Clear .deps.
7376
8fa5b777
SM
73772017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7378
7379 * .gitignore: Remove generated files, replace with wildcard.
7380 * (clean): Replace removal of generated files with wildcard.
7381 (version.c): Replace with...
7382 (version-generated.c): ...this.
7383 (xml-builtin.c): Replace with...
7384 (xml-builtin-generated.c): ...this.
7385 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7386 (%.c: *regformats*): Replace with...
7387 (%-generated.c: *regformats*): ...this.
7388
a12e714b
MF
73892017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7390
7391 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7392 (xtensa_fill_gregset): Call collect_register_by_name for
7393 threadptr register.
7394 (xtensa_store_gregset): Call supply_register_by_name for
7395 threadptr register.
7396
1a09b50a
MF
73972017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7398
7399 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7400 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7401 (xtensa_store_gregset): Call supply_register for all registers in
7402 a0_regnum..a0_regnum + C0_NREGS range.
7403
1a01e7c6
SM
74042017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7405
7406 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7407 (ax-ipa.o: ax.c): Remove.
7408 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7409 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7410 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7411 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7412 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7413
36bc18a8
SM
74142017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7415
7416 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7417 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7418 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7419 (errors-ipa.o: ../common/errors.c): Remove.
7420 (format-ipa.o: ../common/format.c): Remove.
7421 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7422
a8ebe3d5
SM
74232017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7424
7425 * Makefile.in (%-ipa.o: %.c): New rule.
7426 (tracepoint-ipa.o: tracepoint.c): Remove.
7427 (utils-ipa.o: utils.c): Remove.
7428 (remote-utils-ipa.o: remote-utils.c): Remove.
7429 (regcache-ipa.o: regcache.c): Remove.
7430 (i386-linux-ipa.o: i386-linux.c): Remove.
7431 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7432 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7433 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7434 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7435 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7436 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7437 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7438 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7439 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7440 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7441 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7442 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7443 (aarch64-ipa.o: aarch64.c): Remove.
7444 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7445 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7446 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7447 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7448 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7449 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7450 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7451 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7452 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7453 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7454 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7455 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7456 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7457 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7458 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7459 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7460 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7461 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7462 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7463 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7464 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7465 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7466 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7467 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7468 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7469 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7470 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7471 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7472 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7473 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7474 (tdesc-ipa.o: tdesc.c): Remove.
7475 (x32-linux-ipa.o: x32-linux.c): Remove.
7476 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7477 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7478
50cfacb7
SM
74792017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7480
7481 * Makefile.in (%.o: ../arch/%.c): New rule.
7482 (arm.o: ../arch/arm.c): Remove.
7483 (arm-linux.o: ../arch/arm-linux.c): Remove.
7484 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7485 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7486
c5a22423
SM
74872017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7488
7489 * Makefile.in (%.o: ../nat/%.c): New rule.
7490 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7491 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7492 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7493 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7494 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7495 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7496 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7497 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7498 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7499 (linux-personality.o: ../nat/linux-personality.c): Remove.
7500 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7501 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7502 (x86-linux.o: ../nat/x86-linux.c): Remove.
7503 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7504 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7505
6bda016b
SM
75062017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7507
7508 * Makefile.in (%.o: ../common/%.c): New rule.
7509 (signals.o: ../common/signals.c): Remove.
7510 (print-utils.o: ../common/print-utils.c): Remove.
7511 (rsp-low.o: ../common/rsp-low.c): Remove.
7512 (common-utils.o: ../common/common-utils.c): Remove.
7513 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7514 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7515 (vec.o: ../common/vec.c): Remove.
7516 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7517 (xml-utils.o: ../common/xml-utils.c): Remove.
7518 (ptid.o: ../common/ptid.c): Remove.
7519 (buffer.o: ../common/buffer.c): Remove.
7520 (format.o: ../common/format.c): Remove.
7521 (filestuff.o: ../common/filestuff.c): Remove.
7522 (agent.o: ../common/agent.c): Remove.
7523 (errors.o: ../common/errors.c): Remove.
7524 (environ.o: ../common/environ.c): Remove.
7525 (common-debug.o: ../common/common-debug.c): Remove.
7526 (cleanups.o: ../common/cleanups.c): Remove.
7527 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7528 (fileio.o: ../common/fileio.c): Remove.
7529 (common-regcache.o: ../common/common-regcache.c): Remove.
7530 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7531 (new-op.o: ../common/new-op.c): Remove.
7532 (btrace-common.o: ../common/btrace-common.c): Remove.
7533
21122961
SM
75342017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7535
7536 * Makefile.in (%.o: ../target/%.c): New rule.
7537 (waitstatus.o: ../target/waitstatus.c): Remove.
7538
c362e621
SM
75392017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7540
7541 * Makefile.in
7542 (%.c: ../regformats/%.dat,
7543 (%.c: ../regformats/arm/%.dat,
7544 (%.c: ../regformats/i386/%.dat,
7545 (%.c: ../regformats/rs6000/%.dat): New rules.
7546 (aarch64.c): Remove.
7547 (reg-arm.c): Remove.
7548 (arm-with-iwmmxt.c): Remove.
7549 (arm-with-vfpv2.c): Remove.
7550 (arm-with-vfpv3.c): Remove.
7551 (arm-with-neon.c): Remove.
7552 (reg-bfin.c): Remove.
7553 (reg-cris.c): Remove.
7554 (reg-crisv32.c): Remove.
7555 (i386.c): Remove.
7556 (i386-linux.c): Remove.
7557 (i386-avx.c): Remove.
7558 (i386-avx-linux.c): Remove.
7559 (i386-avx-avx512.c): Remove.
7560 (i386-avx-avx512-linux.c): Remove.
7561 (i386-mpx.c): Remove.
7562 (i386-mpx-linux.c): Remove.
7563 (i386-avx-mpx-avx512-pku.c): Remove.
7564 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7565 (i386-avx-mpx.c): Remove.
7566 (i386-avx-mpx-linux.c): Remove.
7567 (i386-mmx.c): Remove.
7568 (i386-mmx-linux.c): Remove.
7569 (reg-ia64.c): Remove.
7570 (reg-m32r.c): Remove.
7571 (reg-m68k.c): Remove.
7572 (reg-cf.c): Remove.
7573 (mips-linux.c): Remove.
7574 (mips-dsp-linux.c): Remove.
7575 (mips64-linux.c): Remove.
7576 (mips64-dsp-linux.c): Remove.
7577 (nios2-linux.c): Remove.
7578 (powerpc-32.c): Remove.
7579 (powerpc-32l.c): Remove.
7580 (powerpc-altivec32l.c): Remove.
7581 (powerpc-cell32l.c): Remove.
7582 (powerpc-vsx32l.c): Remove.
7583 (powerpc-isa205-32l.c): Remove.
7584 (powerpc-isa205-altivec32l.c): Remove.
7585 (powerpc-isa205-vsx32l.c): Remove.
7586 (powerpc-e500l.c): Remove.
7587 (powerpc-64l.c): Remove.
7588 (powerpc-altivec64l.c): Remove.
7589 (powerpc-cell64l.c): Remove.
7590 (powerpc-vsx64l.c): Remove.
7591 (powerpc-isa205-64l.c): Remove.
7592 (powerpc-isa205-altivec64l.c): Remove.
7593 (powerpc-isa205-vsx64l.c): Remove.
7594 (s390-linux32.c): Remove.
7595 (s390-linux32v1.c): Remove.
7596 (s390-linux32v2.c): Remove.
7597 (s390-linux64.c): Remove.
7598 (s390-linux64v1.c): Remove.
7599 (s390-linux64v2.c): Remove.
7600 (s390-te-linux64.c): Remove.
7601 (s390-vx-linux64.c): Remove.
7602 (s390-tevx-linux64.c): Remove.
7603 (s390x-linux64.c): Remove.
7604 (s390x-linux64v1.c): Remove.
7605 (s390x-linux64v2.c): Remove.
7606 (s390x-te-linux64.c): Remove.
7607 (s390x-vx-linux64.c): Remove.
7608 (s390x-tevx-linux64.c): Remove.
7609 (tic6x-c64xp-linux.c): Remove.
7610 (tic6x-c64x-linux.c): Remove.
7611 (tic6x-c62x-linux.c): Remove.
7612 (reg-sh.c): Remove.
7613 (reg-sparc64.c): Remove.
7614 (reg-spu.c): Remove.
7615 (amd64.c): Remove.
7616 (amd64-linux.c): Remove.
7617 (amd64-avx.c): Remove.
7618 (amd64-avx-linux.c): Remove.
7619 (amd64-avx-avx512.c): Remove.
7620 (amd64-avx-avx512-linux.c): Remove.
7621 (amd64-mpx.c): Remove.
7622 (amd64-mpx-linux.c): Remove.
7623 (amd64-avx-mpx-avx512-pku.c): Remove.
7624 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7625 (amd64-avx-mpx.c): Remove.
7626 (amd64-avx-mpx-linux.c): Remove.
7627 (x32.c): Remove.
7628 (x32-linux.c): Remove.
7629 (x32-avx.c): Remove.
7630 (x32-avx-linux.c): Remove.
7631 (x32-avx-avx512.c): Remove.
7632 (x32-avx-avx512-linux.c): Remove.
7633 (reg-xtensa.c): Remove.
7634 (reg-tilegx.c): Remove.
7635 (reg-tilegx32.c): Remove.
7636
1672e0d9
SDJ
76372017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7638
7639 * Makefile.in (SFILES): Add "common/environ.c".
7640 (OBJS): Add "common/environ.h".
7641
239b6d10
WT
76422017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7643
7644 * configure.ac: Check if the fs_base and gs_base members of
7645 `struct user_regs_struct' exist.
7646 * config.in: Regenerated.
7647 * configure: Likewise.
7648
694b382c
AT
76492017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7650
7651 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7652 target_read_memory.
7653 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7654 (get_next_pcs_syscall_next_pc): Likewise.
7655
7dc53023
LM
76562016-12-23 Luis Machado <lgustavo@codesourcery.com>
7657
7658 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7659 * nto-x86-low.c: Likewise.
7660
ad02e4fe
SM
76612016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7662
7663 * Makefile.in: Include disable-implicit-rules.mk.
7664
dcb07cfa
PA
76652016-11-23 Pedro Alves <palves@redhat.com>
7666
7667 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7668 (debug_vprintf): Use std::chrono::steady_clock instead of
7669 gettimeofday. Use '.' instead of ':'.
7670 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7671 (get_timestamp): Use std::chrono::steady_clock instead of
7672 gettimeofday.
7673
8629c02c
SM
76742016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7675
7676 * Makefile.in: Fix whitespace formatting.
7677
b593ecca
SM
76782016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7679
7680 * Makefile.in (SFILES, OBS): Flatten list and order
7681 alphabetically.
7682
9986ba08
PA
76832016-11-23 Pedro Alves <palves@redhat.com>
7684
7685 * event-loop.c (handle_file_event): Use warning.
7686 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7687 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7688 Use warning.
7689
4eefa7bc
PA
76902016-11-23 Pedro Alves <palves@redhat.com>
7691
7692 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7693 output.
7694 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7695 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7696 debug_printf and debug_flush for debug output.
7697 * server.c (handle_general_set): Likewise.
7698 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7699 output.
7700
5443506e
SM
77012016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7702
7703 * Makefile.in (.c.o): Replace rule with ...
7704 (%.o: %.c): ... this one.
7705
3b165252
SM
77062016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7707
7708 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7709 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7710 make.
7711 * configure.ac: Remove checks for the make program.
7712 * configure: Re-generate.
7713
0bcda685
PA
77142016-10-28 Pedro Alves <palves@redhat.com>
7715
7716 * Makefile.in (CXX_DIALECT): Get from configure.
7717 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7718 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7719 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7720 * config.in: Regenerate.
7721 * configure: Regenerate.
7722
c3805894
YQ
77232016-10-27 Yao Qi <yao.qi@linaro.org>
7724
7725 * linux-low.c (linux_supports_range_stepping): Return true if
7726 can_software_single_step return true.
7727
89342618
YQ
77282016-10-27 Yao Qi <yao.qi@linaro.org>
7729
7730 * inferiors.c (find_inferior_in_random): New function.
7731 * inferiors.h (find_inferior_in_random): Declare.
7732 * linux-low.c (linux_wait_for_event_filtered): Call
7733 find_inferior_in_random instead of find_inferior.
7734
e3652c84
YQ
77352016-10-27 Yao Qi <yao.qi@linaro.org>
7736
7737 * linux-low.c (linux_wait_1): If single-step breakpoints are
7738 inserted, remove them.
7739
5a04c4cf
PA
77402016-10-26 Pedro Alves <palves@redhat.com>
7741
7742 * linux-low.c (handle_extended_wait): Link parent/child fork
7743 threads.
7744 (linux_wait_1): Unlink them.
7745 (linux_set_resume_request): Ignore resume requests for
7746 already-resumed and unhandled fork child threads.
7747 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7748 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7749 New functions.
7750 (handle_v_requests) <vCont>: Don't call require_running.
7751 * server.h (in_queued_stop_replies): New declaration.
7752
cb93dc7f
YQ
77532016-10-24 Yao Qi <yao.qi@linaro.org>
7754
7755 PR server/20733
7756 * linux-aarch64-low.c (append_insns): Cast the return value to
7757 'uint32_t *'.
7758
a1078bea
YQ
77592016-10-10 Yao Qi <yao.qi@linaro.org>
7760
7761 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7762
1fb77080
SDJ
77632016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7764
7765 * target.c (target_supports_multi_process): New function, moved
7766 from...
7767 * target.h (target_supports_multi_process): ... here. Remove
7768 macro.
7769
39b5a3b9
TT
77702016-10-05 Tom Tromey <tom@tromey.com>
7771
7772 PR remote/20655:
7773 * tracepoint.c (handle_tracepoint_bkpts): Check
7774 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7775
c1d0b70a
YQ
77762016-10-05 Yao Qi <yao.qi@linaro.org>
7777
7778 * configure.srv: Update the path of arm-*.xml files.
7779
0a69eedb
YQ
77802016-10-05 Terry Guo <terry.guo@arm.com>
7781 Yao Qi <yao.qi@linaro.org>
7782
7783 * Makefile.in: Adjust the path of rules.
7784 * configure.srv: Update the path of xml files.
7785 * regformats/arm-with-iwmmxt.dat: Regenerated.
7786 * regformats/arm-with-neon.dat: Likewise.
7787 * regformats/arm-with-vfpv2.dat: Likewise.
7788 * regformats/arm-with-vfpv3.dat Likewise.
7789
17e16485
YQ
77902016-09-30 Yao Qi <yao.qi@linaro.org>
7791
7792 PR gdbserver/20627
7793 * target.c (target_stop_and_wait): Don't call
7794 target_continue_no_signal, use resume_stop instead.
7795
edeeb602
YQ
77962016-09-26 Yao Qi <yao.qi@linaro.org>
7797
7798 * linux-low.c (linux_wait_1): Call debug_exit.
7799
503b1c39
PA
78002016-09-23 Pedro Alves <palves@redhat.com>
7801
7802 * Makefile.in (SFILES): Add common/new-op.c.
7803 (OBS): Add common/new-op.o.
7804 (new-op.o): New rule.
7805
74172ecf
SM
78062016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7807
7808 * .gitinore: Ignore more files.
7809
fc6cda2e
YQ
78102016-09-21 Yao Qi <yao.qi@linaro.org>
7811
7812 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7813 23.
7814
bc1e6c81
SDJ
78152016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7816
7817 * server.c (start_inferior): Call target_mourn_inferior instead of
7818 mourn_inferior; pass ptid_t argument to it.
7819 (resume): Likewise.
7820 (handle_target_event): Likewise.
7821 * target.c (target_mourn_inferior): New function.
7822 * target.h (mourn_inferior): Delete macro.
7823
0e00e962
AA
78242016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7825
7826 * linux-low.c (lwp_is_stepping): New function.
7827
1d8cb77d
CL
78282016-09-06 Carl Love <cel@us.ibm.com>
7829
7830 * server.c (start_inferior): Fixed comment, requested comment change
7831 didn't get updated correctly. Removed reference to ptrace () call as
7832 it is only true on Linux systems.
7833
7313bced
CL
78342016-09-06 Carl Love <cel@us.ibm.com>
7835
7836 * server.c (start_inferior): Do not call
7837 function target_post_create_inferior () if the
7838 inferior process has already exited.
7839
cf6de44d
PA
78402016-09-05 Pedro Alves <palves@redhat.com>
7841
7842 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7843 (COMPILE.pre, CC_LD): Use CXX directly.
7844 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7845 * acinclude.m4: Don't include build-with-cxx.m4.
7846 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7847 * configure: Regenerate.
7848
c1da6748
AT
78492016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7850
7851 PR gdb/19495
7852 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7853 call writing data to own_buf.
7854
f2b9e3df
SDJ
78552016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7856
7857 * target.c (mywait): Call target_wait instead of
7858 the_target->wait.
7859 (target_wait): New function.
7860
049a8570
SDJ
78612016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7862
7863 * server.c (start_inferior): New variable 'ptid'. Replace calls
7864 to the_target->resume by target_continue{,_no_signal}, depending
7865 on the case.
7866 * target.c (target_stop_and_wait): Call target_continue_no_signal
7867 instead of the_target->resume.
7868 (target_continue): New function.
7869
3aa5cfa0
AT
78702016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7871
7872 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7873
754653a7
AZ
78742016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7875
7876 PR server/20491
7877 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7878 ps_prochandle.
7879 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7880 * linux-arm-low.c (ps_get_thread_area): Likewise.
7881 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7882 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7883 * linux-mips-low.c (ps_get_thread_area): Likewise.
7884 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7885 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7886 * linux-x86-low.c (ps_get_thread_area): Likewise.
7887 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7888
ed036b40
PA
78892016-08-19 Pedro Alves <palves@redhat.com>
7890
7891 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7892
c8ef42ee
PA
78932016-08-19 Pedro Alves <palves@redhat.com>
7894
7895 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7896 comment. Use memcpy instead of casting through unsigned long.
7897
9c235a72
PA
78982016-08-19 Pedro Alves <palves@redhat.com>
7899
7900 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7901 allocating around 0x80000000.
7902
201506da
PA
79032016-08-19 Pedro Alves <palves@redhat.com>
7904
7905 PR gdb/20415
7906 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7907 (x32-avx512-linux-ipa.o): New rules.
7908 * configure.ac (x86_64-*-linux*): New x32 check.
7909 * configure.srv (ipa_x32_linux_regobj): New.
7910 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7911 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7912 descriptions.
7913 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7914 descriptions.
7915 * configure: Regenerate.
7916
f348d89a
PA
79172016-08-09 Pedro Alves <palves@redhat.com>
7918
7919 PR gdb/18653
7920 * Makefile.in (OBS): Add signals-state-save-restore.o.
7921 (signals-state-save-restore.o): New rule.
7922 * config.in: Regenerate.
7923 * configure: Regenerate.
7924 * linux-low.c: Include "signals-state-save-restore.h".
7925 (linux_create_inferior): Call
7926 restore_original_signals_state.
7927 * server.c: Include "dispositions-save-restore.h".
7928 (captured_main): Call save_original_signals_state.
7929
1baf5149
PA
79302016-08-05 Pedro Alves <palves@redhat.com>
7931
7932 * configure: Regenerate.
7933
fcd4a73d
YQ
79342016-08-04 Yao Qi <yao.qi@linaro.org>
7935
7936 * linux-low.c (regsets_fetch_inferior_registers): Check
7937 errno is ESRCH or not.
7938
979659d0
YQ
79392016-08-02 Yao Qi <yao.qi@linaro.org>
7940
7941 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7942 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7943 (thread_db_load_search): Update.
7944 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7945 td_ta_set_event and td_ta_event_getmsg.
7946
6598661d
PA
79472016-07-26 Pedro Alves <palves@redhat.com>
7948
7949 PR server/20414
7950 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7951 of unsigned long for 64-bit registers and use uint32_t instead of
7952 unsigned int for 32-bit registers.
7953
9cf12d57
PA
79542016-07-26 Pedro Alves <palves@redhat.com>
7955
7956 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7957 to 'ptrace'.
7958
305450ed
TT
79592016-07-21 Tom Tromey <tom@tromey.com>
7960
7961 * configure: Rebuild.
7962
2583da7c
YQ
79632016-07-21 Yao Qi <yao.qi@linaro.org>
7964
7965 * mem-break.c (find_gdb_breakpoint): Cast bp to
7966 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7967
21536b36
YQ
79682016-07-21 Yao Qi <yao.qi@linaro.org>
7969
7970 * server.c (handle_v_requests): Support s and S actions
7971 if target_supports_software_single_step return true.
7972
8901d193
YQ
79732016-07-21 Yao Qi <yao.qi@linaro.org>
7974
7975 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7976 is resume_step, call maybe_hw_step.
7977 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7978 and unstop them.
7979 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7980 breakpoints or not.
7981 (proceed_one_lwp): If resume request is resume_step, install
7982 reinsert breakpoints and call maybe_hw_step.
7983
0e9a339e
YQ
79842016-07-21 Yao Qi <yao.qi@linaro.org>
7985
7986 * linux-low.c (proceed_one_lwp): Declare.
7987 (linux_resume_one_thread): Remove local variable 'step'.
7988 Lift code enqueue signal. Call proceed_one_lwp instead of
7989 linux_resume_one_lwp.
7990
4281b351
YQ
79912016-07-21 Yao Qi <yao.qi@linaro.org>
7992
7993 * linux-low.c (linux_resume_one_thread): Call
7994 enqueue_pending_signal.
7995
984a2c04
YQ
79962016-07-21 Yao Qi <yao.qi@linaro.org>
7997
7998 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7999 * inferiors.c (do_restore_current_thread_cleanup): New function.
8000 (make_cleanup_restore_current_thread): Likewise.
8001 * linux-low.c (install_software_single_step_breakpoints): Call
8002 make_cleanup_restore_current_thread. Switch current_thread to
8003 thread.
8004
bec903c9
YQ
80052016-07-21 Yao Qi <yao.qi@linaro.org>
8006
8007 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8008 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8009 (clone_one_breakpoint): Likewise.
8010 (delete_reinsert_breakpoints): Change parameter to thread.
8011 Callers updated.
8012 (has_reinsert_breakpoints): Likewise.
8013 (uninsert_reinsert_breakpoints): Likewise.
8014 (reinsert_reinsert_breakpoints): Likewise.
8015 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8016 (delete_reinsert_breakpoints): Likewise.
8017 (reinsert_reinsert_breakpoints): Likewise.
8018 (uninsert_reinsert_breakpoints): Likewise.
8019 (has_reinsert_breakpoints): Likewise.
8020
63c40ec7
YQ
80212016-07-21 Yao Qi <yao.qi@linaro.org>
8022
8023 * inferiors.c (get_thread_process): Make parameter const.
8024 * inferiors.h (get_thread_process): Update declaration.
8025 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8026 Add new parameters child_thread and parent_thread. Callers
8027 updated.
8028 * mem-break.h (clone_all_breakpoints): Update declaration.
8029
9aa76cd0
YQ
80302016-07-21 Yao Qi <yao.qi@linaro.org>
8031
8032 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8033 <command_list, handler>: Remove.
8034 (struct gdb_breakpoint): New.
8035 (struct other_breakpoint): New.
8036 (struct reinsert_breakpoint): New.
8037 (is_gdb_breakpoint): New function.
8038 (any_persistent_commands): Update command_list if
8039 is_gdb_breakpoint returns true.
8040 (set_breakpoint): Create breakpoints according to their types.
8041 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8042 (set_gdb_breakpoint_1): Likewise.
8043 (set_gdb_breakpoint): Likewise.
8044 (clear_breakpoint_conditions): Change parameter type to
8045 'struct gdb_breakpoint *'.
8046 (clear_breakpoint_commands): Likewise.
8047 (clear_breakpoint_conditions_and_commands): Likewise.
8048 (add_condition_to_breakpoint): Likewise.
8049 (add_breakpoint_condition): Likewise.
8050 (add_commands_to_breakpoint): Likewise.
8051 (check_breakpoints): Check other_breakpoint.
8052 (clone_one_breakpoint): Clone breakpopint according to its type.
8053 * mem-break.h (struct gdb_breakpoint): Declare.
8054 (set_gdb_breakpoint): Update declaration.
8055 (clear_breakpoint_conditions_and_commands): Likewise.
8056 (add_breakpoint_condition): Likewise.
8057 (add_breakpoint_commands): Likewise.
8058 * server.c (process_point_options): Change parameter type to
8059 'struct gdb_breakpoint *'.
8060
811f8301
YQ
80612016-07-21 Yao Qi <yao.qi@linaro.org>
8062
8063 * mem-break.c (set_breakpoint_at): Rename it to ...
8064 (set_breakpoint_type_at): ... it.
8065 (set_breakpoint_at): Call set_breakpoint_type_at.
8066 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8067 * mem-break.h (set_breakpoint_at): Update comments.
8068
b1c51e36
CLT
80692016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8070
8071 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8072 to buf parameter.
8073 (nios2_store_gregset): Likewise.
8074
ced2dffb
PA
80752016-07-01 Pedro Alves <palves@redhat.com>
8076 Antoine Tremblay <antoine.tremblay@ericsson.com>
8077
8078 * linux-low.c: Change interface to take the target lwp_info
8079 pointer directly and return void. Handle detaching from a zombie
8080 thread.
8081 (linux_detach_lwp_callback): New function.
8082 (linux_detach): Detach from the leader thread after detaching from
8083 the clone threads.
8084
2ac09a5b
YQ
80852016-06-28 Yao Qi <yao.qi@linaro.org>
8086
8087 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8088 for variable new_offset.
8089 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8090 (aarch64_ftrace_insn_reloc_cb): Likewise.
8091 (aarch64_ftrace_insn_reloc_tb): Likewise.
8092 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8093 PRIx64 instead of PRIx32.
8094
79e7fd4f
YQ
80952016-06-28 Yao Qi <yao.qi@linaro.org>
8096
8097 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8098 (the_low_target): Install arm_get_syscall_trapinfo.
8099
061fc021
YQ
81002016-06-28 Yao Qi <yao.qi@linaro.org>
8101
8102 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8103 function.
8104 (the_low_target): Install aarch64_get_syscall_trapinfo.
8105
4cc32bec
YQ
81062016-06-28 Yao Qi <yao.qi@linaro.org>
8107
8108 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8109 Callers updated.
8110 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8111 Remove parameter sysno.
8112 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8113 sysret.
8114
782c1122
AA
81152016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8116
8117 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8118 (s390_emit_ne_goto): Likewise.
8119 (s390_emit_lt_goto): Likewise.
8120 (s390_emit_le_goto): Likewise.
8121 (s390_emit_gt_goto): Likewise.
8122 (s390_emit_ge_goto): Likewise.
8123 (s390x_emit_eq_goto): Likewise.
8124 (s390x_emit_ne_goto): Likewise.
8125 (s390x_emit_lt_goto): Likewise.
8126 (s390x_emit_le_goto): Likewise.
8127 (s390x_emit_gt_goto): Likewise.
8128 (s390x_emit_ge_goto): Likewise.
8129 (s390_emit_ops_impl): Mark variable static.
8130 (s390x_emit_ops): Likewise.
8131
2e7b624b
YQ
81322016-06-17 Yao Qi <yao.qi@linaro.org>
8133
8134 * linux-low.c (handle_extended_wait): Call
8135 uninsert_reinsert_breakpoints for the parent process. Remove
8136 reinsert breakpoints from the child process. Reinsert them to
8137 the parent process when vfork is done.
8138 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8139 (reinsert_reinsert_breakpoints): New function.
8140 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8141 (reinsert_reinsert_breakpoints): Declare.
8142
8a81c5d7
YQ
81432016-06-17 Yao Qi <yao.qi@linaro.org>
8144
8145 * linux-low.c (handle_extended_wait): If the parent is doing
8146 step-over, remove the reinsert breakpoints from the forked child.
8147
f50bf8e5
YQ
81482016-06-17 Yao Qi <yao.qi@linaro.org>
8149
8150 * linux-low.c (unsuspend_all_lwps): Declare.
8151 (linux_low_filter_event): If thread exited, call finish_step_over.
8152 If step-over is finished, unsuspend other threads.
8153
8376a3cb
YQ
81542016-06-17 Yao Qi <yao.qi@linaro.org>
8155
8156 * linux-low.c (linux_resume_one_lwp_throw): Assert
8157 has_reinsert_breakpoints returns false.
8158 * mem-break.c (delete_disabled_breakpoints): Assert
8159 bp type isn't reinsert_breakpoint.
8160
f79b145d
YQ
81612016-06-17 Yao Qi <yao.qi@linaro.org>
8162
8163 * linux-low.c (maybe_hw_step): New function.
8164 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8165 (finish_step_over): Switch current_thread to lwp temporarily,
8166 and assert has_reinsert_breakpoints returns true.
8167 (proceed_one_lwp): Call maybe_hw_step.
8168 * mem-break.c (has_reinsert_breakpoints): New function.
8169 * mem-break.h (has_reinsert_breakpoints): Declare.
8170
0ae534d2
JT
81712016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8172
8173 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8174
fcdad592
YQ
81752016-05-17 Yao Qi <yao.qi@linaro.org>
8176
8177 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8178 instead of find_inferior.
8179
9e784964
YQ
81802016-05-05 Yao Qi <yao.qi@linaro.org>
8181
8182 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8183 Initialize res to zero.
8184
cf2ebb6e
YQ
81852016-05-05 Yao Qi <yao.qi@linaro.org>
8186
8187 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8188 to uint32_t.
8189
c1aebf87
UW
81902016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8191
8192 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8193 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8194 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8195
35fd2deb 81962016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8197 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8198
8199 * tracepoint.c (write_inferior_int8): New function.
8200 (cmd_qtenable_disable): Write enable flag using
8201 write_inferior_int8.
8202
484b3c32
YQ
82032016-04-25 Yao Qi <yao.qi@linaro.org>
8204
8205 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8206 (need_step_over_p): Return zero if the LWP has pending signals
8207 can be delivered on software single step target.
8208
85ba7d86
YQ
82092016-04-25 Yao Qi <yao.qi@linaro.org>
8210
8211 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8212 return instead of error.
8213
3539aa13
YQ
82142016-04-22 Yao Qi <yao.qi@linaro.org>
8215
8216 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8217 to 23.
8218
5b061e98
YQ
82192016-04-22 Yao Qi <yao.qi@linaro.org>
8220
8221 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8222 signal when stepping over breakpoint with software single
8223 step.
8224
3451269c
PA
82252016-04-21 Pedro Alves <palves@redhat.com>
8226
8227 * linux-s390-low.c (s390_collect_ptrace_register)
8228 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8229 add casts.
8230 (s390_check_regset): Use void * instead of gdb_byte *.
8231
a2358508
PA
82322016-04-20 Pedro Alves <palves@redhat.com>
8233
8234 * configure: Renegerate.
8235
6885166d
YQ
82362016-04-20 Yao Qi <yao.qi@linaro.org>
8237
8238 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8239 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8240 number 16.
8241 (arm_store_gregset): Likewise.
8242
2b863f51
WT
82432016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8244
8245 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8246 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8247 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8248 (amd64-avx-mpx-linux.c): New rules.
8249 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8250 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8251 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8252 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8253 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8254 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8255 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8256 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8257 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8258 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8259 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8260 * linux-x86-low.c (x86_linux_read_description): Add case for
8261 X86_XSTATE_AVX_MPX_MASK.
8262 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8263 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8264 init_registers_i386_avx_mpx_linux.
8265 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8266 (initialize_low_tracepoint): Call
8267 init_registers_i386_avx_mpx_linux.
8268 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8269 (initialize_low_tracepoint): Call
8270 init_registers_amd64_avx_mpx_linux.
8271 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8272 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8273 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8274 declarations.
8275
9b30624b
PA
82762016-04-18 Pedro Alves <palves@redhat.com>
8277
8278 * configure: Regenerate.
8279
45e3745e
AT
82802016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8281
8282 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8283 (aarch64_emit_sub): Likewise.
8284
2afc13ff
PA
82852016-04-12 Pedro Alves <palves@redhat.com>
8286
8287 * utils.c (prepare_to_throw_exception): Delete.
8288
6e774b13
SM
82892016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8290
8291 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8292
4dca19f8
MK
82932016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8294
8295 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8296
d0a9981f
MK
82972016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8298
8299 * linux-aarch64-ipa.c: Add <elf.h> include.
8300 * linux-ppc-ipa.c: Add <elf.h> include.
8301 * linux-s390-ipa.c: Add <elf.h> include.
8302
252db07e
MK
83032016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8304
8305 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8306 (get_raw_reg_ptr): Likewise.
8307 (get_trace_state_variable_value_ptr): Likewise.
8308 (set_trace_state_variable_value_ptr): Likewise.
8309 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8310 char *.
8311
14e2b6d9
MK
83122016-03-31 Wei-cheng Wang <cole945@gmail.com>
8313 Marcin Kościelnicki <koriakin@0x04.net>
8314
8315 PR/17221
8316 * linux-ppc-low.c (emit_insns): New function.
8317 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8318 (ppc_emit_prologue): New function.
8319 (ppc_emit_epilogue): New function.
8320 (ppc_emit_add): New function.
8321 (ppc_emit_sub): New function.
8322 (ppc_emit_mul): New function.
8323 (ppc_emit_lsh): New function.
8324 (ppc_emit_rsh_signed): New function.
8325 (ppc_emit_rsh_unsigned): New function.
8326 (ppc_emit_ext): New function.
8327 (ppc_emit_zero_ext): New function.
8328 (ppc_emit_log_not): New function.
8329 (ppc_emit_bit_and): New function.
8330 (ppc_emit_bit_or): New function.
8331 (ppc_emit_bit_xor): New function.
8332 (ppc_emit_bit_not): New function.
8333 (ppc_emit_equal): New function.
8334 (ppc_emit_less_signed): New function.
8335 (ppc_emit_less_unsigned): New function.
8336 (ppc_emit_ref): New function.
8337 (ppc_emit_const): New function.
8338 (ppc_emit_reg): New function.
8339 (ppc_emit_pop): New function.
8340 (ppc_emit_stack_flush): New function.
8341 (ppc_emit_swap): New function.
8342 (ppc_emit_stack_adjust): New function.
8343 (ppc_emit_call): New function.
8344 (ppc_emit_int_call_1): New function.
8345 (ppc_emit_void_call_2): New function.
8346 (ppc_emit_if_goto): New function.
8347 (ppc_emit_goto): New function.
8348 (ppc_emit_eq_goto): New function.
8349 (ppc_emit_ne_goto): New function.
8350 (ppc_emit_lt_goto): New function.
8351 (ppc_emit_le_goto): New function.
8352 (ppc_emit_gt_goto): New function.
8353 (ppc_emit_ge_goto): New function.
8354 (ppc_write_goto_address): New function.
8355 (ppc_emit_ops_impl): New static variable.
8356 (ppc64v1_emit_prologue): New function.
8357 (ppc64v2_emit_prologue): New function.
8358 (ppc64_emit_epilogue): New function.
8359 (ppc64_emit_add): New function.
8360 (ppc64_emit_sub): New function.
8361 (ppc64_emit_mul): New function.
8362 (ppc64_emit_lsh): New function.
8363 (ppc64_emit_rsh_signed): New function.
8364 (ppc64_emit_rsh_unsigned): New function.
8365 (ppc64_emit_ext): New function.
8366 (ppc64_emit_zero_ext): New function.
8367 (ppc64_emit_log_not): New function.
8368 (ppc64_emit_bit_and): New function.
8369 (ppc64_emit_bit_or): New function.
8370 (ppc64_emit_bit_xor): New function.
8371 (ppc64_emit_bit_not): New function.
8372 (ppc64_emit_equal): New function.
8373 (ppc64_emit_less_signed): New function.
8374 (ppc64_emit_less_unsigned): New function.
8375 (ppc64_emit_ref): New function.
8376 (ppc64_emit_const): New function.
8377 (ppc64v1_emit_reg): New function.
8378 (ppc64v2_emit_reg): New function.
8379 (ppc64_emit_pop): New function.
8380 (ppc64_emit_stack_flush): New function.
8381 (ppc64_emit_swap): New function.
8382 (ppc64v1_emit_call): New function.
8383 (ppc64v2_emit_call): New function.
8384 (ppc64v1_emit_int_call_1): New function.
8385 (ppc64v2_emit_int_call_1): New function.
8386 (ppc64v1_emit_void_call_2): New function.
8387 (ppc64v2_emit_void_call_2): New function.
8388 (ppc64_emit_if_goto): New function.
8389 (ppc64_emit_eq_goto): New function.
8390 (ppc64_emit_ne_goto): New function.
8391 (ppc64_emit_lt_goto): New function.
8392 (ppc64_emit_le_goto): New function.
8393 (ppc64_emit_gt_goto): New function.
8394 (ppc64_emit_ge_goto): New function.
8395 (ppc64v1_emit_ops_impl): New static variable.
8396 (ppc64v2_emit_ops_impl): New static variable.
8397 (ppc_emit_ops): New function.
8398 (linux_low_target): Wire in ppc_emit_ops.
8399
a2174ba4
MK
84002016-03-31 Wei-cheng Wang <cole945@gmail.com>
8401 Marcin Kościelnicki <koriakin@0x04.net>
8402
8403 PR/17221
8404 * Makefile.in: Add powerpc-*-ipa.o
8405 * configure.srv: Add ipa_obj for powerpc*-linux.
8406 * linux-ppc-ipa.c: New file.
8407 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8408 includes.
8409 (PPC_FIELD): New macro.
8410 (PPC_SEXT): New macro.
8411 (PPC_OP6): New macro.
8412 (PPC_BO): New macro.
8413 (PPC_LI): New macro.
8414 (PPC_BD): New macro.
8415 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8416 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8417 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8418 (ppc_get_thread_area): New function.
8419 (is_elfv2_inferior): New function.
8420 (gen_ds_form): New function.
8421 (GEN_STD): New macro.
8422 (GEN_STDU): New macro.
8423 (GEN_LD): New macro.
8424 (GEN_LDU): New macro.
8425 (gen_d_form): New function.
8426 (GEN_ADDI): New macro.
8427 (GEN_ADDIS): New macro.
8428 (GEN_LI): New macro.
8429 (GEN_LIS): New macro.
8430 (GEN_ORI): New macro.
8431 (GEN_ORIS): New macro.
8432 (GEN_LWZ): New macro.
8433 (GEN_STW): New macro.
8434 (GEN_STWU): New macro.
8435 (gen_xfx_form): New function.
8436 (GEN_MFSPR): New macro.
8437 (GEN_MTSPR): New macro.
8438 (GEN_MFCR): New macro.
8439 (GEN_MTCR): New macro.
8440 (GEN_SYNC): New macro.
8441 (GEN_LWSYNC): New macro.
8442 (gen_x_form): New function.
8443 (GEN_OR): New macro.
8444 (GEN_MR): New macro.
8445 (GEN_LWARX): New macro.
8446 (GEN_STWCX): New macro.
8447 (GEN_CMPW): New macro.
8448 (gen_md_form): New function.
8449 (GEN_RLDICL): New macro.
8450 (GEN_RLDICR): New macro.
8451 (gen_i_form): New function.
8452 (GEN_B): New macro.
8453 (GEN_BL): New macro.
8454 (gen_b_form): New function.
8455 (GEN_BNE): New macro.
8456 (GEN_LOAD): New macro.
8457 (GEN_STORE): New macro.
8458 (gen_limm): New function.
8459 (gen_atomic_xchg): New function.
8460 (gen_call): New function.
8461 (ppc_relocate_instruction): New function.
8462 (ppc_install_fast_tracepoint_jump_pad): New function.
8463 (ppc_get_min_fast_tracepoint_insn_len): New function.
8464 (ppc_get_ipa_tdesc_idx): New function.
8465 (the_low_target): Wire in the new functions.
8466 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8467 tdescs.
8468 * linux-ppc-tdesc.h: New file.
8469
a13c4696
MK
84702016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8471
8472 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8473 (alloc_jump_pad_buffer): New function.
8474 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8475 (alloc_jump_pad_buffer): New function.
8476 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8477 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8478 (alloc_jump_pad_buffer): New function.
8479 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8480 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8481 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8482 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8483
1cda1512
MK
84842016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8485
8486 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8487 * linux-amd64-ipa.c: Likewise.
8488 * linux-i386-ipa.c: Likewise.
8489 * linux-s390-ipa.c: Likewise.
8490 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8491 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8492 set_trace_state_variable_value_ptr.
8493 (struct ipa_sym_addresses): Likewise.
8494 (symbol_list): Likewise.
8495 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8496 accessing gdb_collect directly.
8497 (gdb_collect_ptr_type): New typedef.
8498 (get_raw_reg_ptr_type): New typedef.
8499 (get_trace_state_variable_value_ptr_type): New typedef.
8500 (set_trace_state_variable_value_ptr_type): New typedef.
8501 (gdb_collect_ptr): New global.
8502 (get_raw_reg_ptr): New global.
8503 (get_trace_state_variable_value_ptr): New global.
8504 (set_trace_state_variable_value_ptr): New global.
8505 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8506 accessing get_raw_reg directly.
8507 (get_get_tsv_func_addr): Likewise for
8508 get_trace_state_variable_value_ptr.
8509 (get_set_tsv_func_addr): Likewise for
8510 set_trace_state_variable_value_ptr.
8511 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8512
72fb5488
SM
85132016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8514
8515 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8516
28170b88
MK
85172016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8518
8519 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8520 packets.
8521 (relocate_instruction): Remove own_buf.
8522 * server.c (own_buf): Make global.
8523 (handle_v_requests): Make global.
8524 * server.h (own_buf): New declaration.
8525 (handle_v_requests): New prototype.
8526
f39e8743
MK
85272016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8528
8529 PR 18377
8530 * linux-s390-low.c (add_insns): New function.
8531 (s390_emit_prologue): New function.
8532 (s390_emit_epilogue): New function.
8533 (s390_emit_add): New function.
8534 (s390_emit_sub): New function.
8535 (s390_emit_mul): New function.
8536 (s390_emit_lsh): New function.
8537 (s390_emit_rsh_signed): New function.
8538 (s390_emit_rsh_unsigned): New function.
8539 (s390_emit_ext): New function.
8540 (s390_emit_log_not): New function.
8541 (s390_emit_bit_and): New function.
8542 (s390_emit_bit_or): New function.
8543 (s390_emit_bit_xor): New function.
8544 (s390_emit_bit_not): New function.
8545 (s390_emit_equal): New function.
8546 (s390_emit_less_signed): New function.
8547 (s390_emit_less_unsigned): New function.
8548 (s390_emit_ref): New function.
8549 (s390_emit_if_goto): New function.
8550 (s390_emit_goto): New function.
8551 (s390_write_goto_address): New function.
8552 (s390_emit_litpool): New function.
8553 (s390_emit_const): New function.
8554 (s390_emit_call): New function.
8555 (s390_emit_reg): New function.
8556 (s390_emit_pop): New function.
8557 (s390_emit_stack_flush): New function.
8558 (s390_emit_zero_ext): New function.
8559 (s390_emit_swap): New function.
8560 (s390_emit_stack_adjust): New function.
8561 (s390_emit_set_r2): New function.
8562 (s390_emit_int_call_1): New function.
8563 (s390_emit_void_call_2): New function.
8564 (s390_emit_eq_goto): New function.
8565 (s390_emit_ne_goto): New function.
8566 (s390_emit_lt_goto): New function.
8567 (s390_emit_le_goto): New function.
8568 (s390_emit_gt_goto): New function.
8569 (s390_emit_ge_goto): New function.
8570 (s390x_emit_prologue): New function.
8571 (s390x_emit_epilogue): New function.
8572 (s390x_emit_add): New function.
8573 (s390x_emit_sub): New function.
8574 (s390x_emit_mul): New function.
8575 (s390x_emit_lsh): New function.
8576 (s390x_emit_rsh_signed): New function.
8577 (s390x_emit_rsh_unsigned): New function.
8578 (s390x_emit_ext): New function.
8579 (s390x_emit_log_not): New function.
8580 (s390x_emit_bit_and): New function.
8581 (s390x_emit_bit_or): New function.
8582 (s390x_emit_bit_xor): New function.
8583 (s390x_emit_bit_not): New function.
8584 (s390x_emit_equal): New function.
8585 (s390x_emit_less_signed): New function.
8586 (s390x_emit_less_unsigned): New function.
8587 (s390x_emit_ref): New function.
8588 (s390x_emit_if_goto): New function.
8589 (s390x_emit_const): New function.
8590 (s390x_emit_call): New function.
8591 (s390x_emit_reg): New function.
8592 (s390x_emit_pop): New function.
8593 (s390x_emit_stack_flush): New function.
8594 (s390x_emit_zero_ext): New function.
8595 (s390x_emit_swap): New function.
8596 (s390x_emit_stack_adjust): New function.
8597 (s390x_emit_int_call_1): New function.
8598 (s390x_emit_void_call_2): New function.
8599 (s390x_emit_eq_goto): New function.
8600 (s390x_emit_ne_goto): New function.
8601 (s390x_emit_lt_goto): New function.
8602 (s390x_emit_le_goto): New function.
8603 (s390x_emit_gt_goto): New function.
8604 (s390x_emit_ge_goto): New function.
8605 (s390_emit_ops): New function.
8606 (struct linux_target_ops): Fill in emit_ops hook.
8607
abd9baf9
MK
86082016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8609
8610 PR 18377
8611 * Makefile.in: Add s390 IPA files.
8612 * configure.srv: Build IPA for s390.
8613 * linux-s390-ipa.c: New file.
8614 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8615 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8616 (tdesc_s390_linux32): Likewise.
8617 (init_registers_s390_linux32v1): Likewise.
8618 (tdesc_s390_linux32v1): Likewise.
8619 (init_registers_s390_linux32v2): Likewise.
8620 (tdesc_s390_linux32v2): Likewise.
8621 (init_registers_s390_linux64): Likewise.
8622 (tdesc_s390_linux64): Likewise.
8623 (init_registers_s390_linux64v1): Likewise.
8624 (tdesc_s390_linux64v1): Likewise.
8625 (init_registers_s390_linux64v2): Likewise.
8626 (tdesc_s390_linux64v2): Likewise.
8627 (init_registers_s390_te_linux64): Likewise.
8628 (tdesc_s390_te_linux64): Likewise.
8629 (init_registers_s390_vx_linux64): Likewise.
8630 (tdesc_s390_vx_linux64): Likewise.
8631 (init_registers_s390_tevx_linux64): Likewise.
8632 (tdesc_s390_tevx_linux64): Likewise.
8633 (init_registers_s390x_linux64): Likewise.
8634 (tdesc_s390x_linux64): Likewise.
8635 (init_registers_s390x_linux64v1): Likewise.
8636 (tdesc_s390x_linux64v1): Likewise.
8637 (init_registers_s390x_linux64v2): Likewise.
8638 (tdesc_s390x_linux64v2): Likewise.
8639 (init_registers_s390x_te_linux64): Likewise.
8640 (tdesc_s390x_te_linux64): Likewise.
8641 (init_registers_s390x_vx_linux64): Likewise.
8642 (tdesc_s390x_vx_linux64): Likewise.
8643 (init_registers_s390x_tevx_linux64): Likewise.
8644 (tdesc_s390x_tevx_linux64): Likewise.
8645 (have_hwcap_s390_vx): New static variable.
8646 (s390_arch_setup): Fill have_hwcap_s390_vx.
8647 (s390_get_thread_area): New function.
8648 (s390_ft_entry_gpr_esa): New const.
8649 (s390_ft_entry_gpr_zarch): New const.
8650 (s390_ft_entry_misc): New const.
8651 (s390_ft_entry_fr): New const.
8652 (s390_ft_entry_vr): New const.
8653 (s390_ft_main_31): New const.
8654 (s390_ft_main_64): New const.
8655 (s390_ft_exit_fr): New const.
8656 (s390_ft_exit_vr): New const.
8657 (s390_ft_exit_misc): New const.
8658 (s390_ft_exit_gpr_esa): New const.
8659 (s390_ft_exit_gpr_zarch): New const.
8660 (append_insns): New function.
8661 (s390_relocate_instruction): New function.
8662 (s390_install_fast_tracepoint_jump_pad): New function.
8663 (s390_get_min_fast_tracepoint_insn_len): New function.
8664 (s390_get_ipa_tdesc_idx): New function.
8665 (struct linux_target_ops): Wire in the above functions.
8666 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8667 * linux-s390-tdesc.h: New file.
8668
a4105d04
MK
86692016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8670
8671 * linux-s390-low.c (s390_supports_tracepoints): New function.
8672 (struct linux_target_ops): Fill supports_tracepoints hook.
8673
35ac8b3e
YQ
86742016-03-18 Yao Qi <yao.qi@linaro.org>
8675
8676 * linux-low.c (lwp_signal_can_be_delivered): New function.
8677 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8678
94610ec4
YQ
86792016-03-18 Yao Qi <yao.qi@linaro.org>
8680
8681 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8682 0 if signal is enqueued. Remove 'signal' from one debugging
8683 message. Move one debugging message to some lines below.
8684 Remove code setting 'signal' to 0.
8685
80aea927
YQ
86862016-03-18 Yao Qi <yao.qi@linaro.org>
8687
8688 * linux-low.c (linux_low_filter_event): Remove redundant
8689 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8690
b04fd3be
MK
86912016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8692
8693 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8694 (struct linux_target_ops): Wire in the above.
8695
c40c8d4b
YQ
86962016-03-03 Yao Qi <yao.qi@linaro.org>
8697
8698 * linux-low.c: Update comments to start_step_over.
8699
0f8288ae
YQ
87002016-03-03 Yao Qi <yao.qi@linaro.org>
8701
8702 PR server/19736
8703 * linux-low.c (handle_extended_wait): Set child suspended
8704 if event_lwp->bp_reinsert isn't zero.
8705
fdbd04a8
YQ
87062016-03-02 Yao Qi <yao.qi@linaro.org>
8707
8708 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8709 enqueue_pending_signal.
8710
6896a8fa
MK
87112016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8712
8713 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8714 is actually loaded.
8715
ab503087
MK
87162016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8717
8718 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8719 (s390_regmap_3264) [!__s390x__]: New global.
8720 (s390_collect_ptrace_register): Skip map entries containing -1.
8721 (s390_supply_ptrace_register): Ditto.
8722 (s390_fill_gprs_high): New function.
8723 (s390_store_gprs_high): New function.
8724 (s390_regsets): Add NT_S390_HIGH_GPRS.
8725 (s390_get_hwcap): Enable on 31-bit.
8726 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8727 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8728 Detect NT_S390_HIGH_GPRS.
8729 (s390_usrregs_info_3264): Enable on 31-bit.
8730 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8731 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8732
ae91f625
MK
87332016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8734
8735 PR gdb/13808
8736 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8737 * configure.srv: Ditto.
8738 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8739 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8740 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8741 (init_registers_amd64_linux): Remove prototype.
8742 (tdesc_amd64_linux): Remove declaration.
8743 (get_ipa_tdesc): New function.
8744 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8745 initialize remaining tdescs.
8746 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8747 (init_registers_i386_linux): Remove prototype.
8748 (tdesc_i386_linux): Remove declaration.
8749 (get_ipa_tdesc): New function.
8750 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8751 initialize remaining tdescs.
8752 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8753 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8754 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8755 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8756 (x86_get_ipa_tdesc_idx): New function.
8757 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8758 * linux-x86-tdesc.h: New file.
8759 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8760 (target_get_ipa_tdesc_idx): New macro.
8761 * tracepoint.c (ipa_tdesc_idx): New macro.
8762 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8763 (symbol_list): Add ipa_tdesc_idx.
8764 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8765 (ipa_tdesc): Remove.
8766 (ipa_tdesc_idx): New variable.
8767 (get_context_regcache): Use get_ipa_tdesc.
8768 (gdb_collect): Ditto.
8769 (gdb_probe): Ditto.
8770 * tracepoint.h (get_ipa_tdesc): New prototype.
8771 (ipa_tdesc): Remove.
8772
e7ad2f14
PA
87732016-02-24 Pedro Alves <palves@redhat.com>
8774
8775 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8776 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8777 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8778 Factor out common code between the USE_SIGTRAP_SIGINFO and
8779 !USE_SIGTRAP_SIGINFO blocks.
8780 (linux_low_filter_event): Call save_stop_reason instead of
8781 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8782 Update comments.
8783 (linux_wait_1): Update comments.
8784
657f9cde
WW
87852016-02-24 Wei-cheng Wang <cole945@gmail.com>
8786
8787 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8788 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8789 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8790 ppc_insert_point, ppc_remove_point.
8791
b00b61e1
MK
87922016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8793
8794 * linux-s390-low.c (s390_supports_z_point_type): New function.
8795 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8796
553cb527
YQ
87972016-02-16 Yao Qi <yao.qi@linaro.org>
8798
8799 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8800 PC. Get pc from regcache_read_pc.
8801
a5652c21
YQ
88022016-02-12 Yao Qi <yao.qi@linaro.org>
8803
8804 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8805 or linux_get_pc_32bit.
8806 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8807
ed443b61
YQ
88082016-02-12 Yao Qi <yao.qi@linaro.org>
8809
8810 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8811 arm_linux_get_next_pcs_fixup.
8812
020ecd38
MK
88132016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8814
8815 * tracepoint.c (x_tracepoint_action_download): Change
8816 write_inferior_data_ptr to write_inferior_data_pointer.
8817 (cmd_qtstart): Likewise.
8818 (write_inferior_data_ptr): Remove.
8819 (download_agent_expr): Change write_inferior_data_ptr to
8820 write_inferior_data_pointer.
8821 (download_tracepoint_1): Likewise.
8822 (download_tracepoint): Likewise.
8823 (download_trace_state_variables): Likewise.
8824
7cae9051
WW
88252016-02-11 Wei-cheng Wang <cole945@gmail.com>
8826 Marcin Kościelnicki <koriakin@0x04.net>
8827
8828 * tracepoint.c (struct tracepoint_action_ops): Remove.
8829 (struct tracepoint_action): Remove ops.
8830 (m_tracepoint_action_download, r_tracepoint_action_download)
8831 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8832 size and offset accordingly.
8833 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8834 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8835 (tracepoint_action_send, tracepoint_action_download): New functions.
8836 Helpers for trace action handlers.
8837 (add_tracepoint_action): Remove setup actions ops.
8838 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8839
9f6a71b4
YQ
88402016-02-10 Yao Qi <yao.qi@linaro.org>
8841
8842 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8843
1e94266c
SM
88442016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8845
8846 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8847 to AC_OUTPUT.
8848 * configure: Regenerate.
8849
8adce034
SM
88502016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8851
8852 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8853 void * to gdb_byte *.
8854 * linux-low.c (siginfo_fixup): Likewise.
8855 (linux_xfer_siginfo): Likewise.
8856 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8857 Likewise.
8858 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8859
93813b37
WT
88602016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8861
8862 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8863 to srv_tgtobj.
8864 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8865 to srv_tgtobj.
8866 * linux-x86-low.c [__x86_64__]: Include
8867 "nat/amd64-linux-siginfo.h".
8868 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8869 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8870 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8871 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8872 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8873 (cpt_si_fd, si_timerid, si_overrun): Move from
8874 nat/amd64-linux-siginfo.c.
8875 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8876
8424cc97
SM
88772016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8878
8879 * server.c (skip_to_semicolon): Remove.
8880 (process_point_options): Use strchrnul instead of
8881 skip_to_semicolon.
8882
4d18591b
YQ
88832016-01-26 Yao Qi <yao.qi@linaro.org>
8884
8885 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8886 * linux-low.c (install_software_single_step_breakpoints): Don't
8887 call regcache_read_pc.
8888 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8889 argument pc.
8890
d8020970
YQ
88912016-01-26 Yao Qi <yao.qi@linaro.org>
8892
8893 * linux-low.c (install_software_single_step_breakpoints): Call
8894 regcache_read_pc instead of get_pc.
8895
8b207339
YQ
88962016-01-26 Yao Qi <yao.qi@linaro.org>
8897
8898 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8899 (unblock_async_io): Rename to ...
8900 (block_unblock_async_io): ... it. New function.
8901 (enable_async_io): Don't install SIGIO handler. Unblock it
8902 instead.
8903 (disable_async_io): Don't ignore SIGIO. Block it instead.
8904 (initialize_async_io): Install SIGIO handler. Don't call
8905 unblock_async_io.
8906
18879fef
YQ
89072016-01-26 Yao Qi <yao.qi@linaro.org>
8908
8909 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8910 first character is '\003', call *the_target->request_interrupt.
8911
a0f8e08a
YQ
89122016-01-25 Yao Qi <yao.qi@linaro.org>
8913
8914 * remote-utils.c (new_thread_notify): Remove.
8915 (dead_thread_notify): Likewise.
8916 * remote-utils.h (new_thread_notify): Remove declaration.
8917 (dead_thread_notify): Likewise.
8918
cc5fd9ab
MK
89192016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8920
8921 * gdb.trace/pending.exp: Fix expected message on continue.
8922
99e8eb11
MK
89232016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8924
8925 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8926 it works properly on big-endian machines where sizeof (CORE_ADDR)
8927 != sizeof (void *).
8928
a994041d
PA
89292016-01-21 Pedro Alves <palves@redhat.com>
8930
8931 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8932 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8933 * configure: Regenerate.
8934
f7a6a40d
YQ
89352016-01-21 Yao Qi <yao.qi@linaro.org>
8936
8937 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8938 is_thumb and set it according to CPSR saved on the stack.
8939 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8940 arm_sigreturn_next_pc.
8941
6f69e520
YQ
89422016-01-18 Yao Qi <yao.qi@linaro.org>
8943
8944 * linux-low.c (linux_set_pc_64bit): New function.
8945 (linux_get_pc_64bit): New function.
8946 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8947 Declare.
8948 * linux-sparc-low.c (debug_threads): Remove declaration.
8949 (sparc_get_pc): Remove.
8950 (the_low_target): Use linux_get_pc_64bit instead of
8951 sparc_get_pc.
8952 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8953 (the_low_target): Use linux_get_pc_64bit and
8954 linux_set_pc_64bit.
8955
276d4552
YQ
89562016-01-18 Yao Qi <yao.qi@linaro.org>
8957
8958 * linux-arm-low.c (debug_threads): Remove declaration.
8959 (arm_get_pc, arm_set_pc): Remove.
8960 (the_low_target): Use linux_get_pc_32bit and
8961 linux_set_pc_32bit.
8962 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8963 (the_low_target): Use linux_get_pc_32bit and
8964 linux_set_pc_32bit.
8965 * linux-cris-low.c (debug_threads): Remove declaration.
8966 (cris_get_pc, cris_set_pc,): Remove.
8967 (the_low_target): Use linux_get_pc_32bit and
8968 linux_set_pc_32bit.
8969 * linux-crisv32-low.c (debug_threads): Remove declaration.
8970 (cris_get_pc, cris_set_pc): Remove.
8971 (the_low_target): Use linux_get_pc_32bit and
8972 linux_set_pc_32bit.
8973 * linux-low.c: Include inttypes.h.
8974 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8975 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8976 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8977 (the_low_target): Use linux_get_pc_32bit and
8978 linux_set_pc_32bit.
8979 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8980 (the_low_target): Use linux_get_pc_32bit and
8981 linux_set_pc_32bit.
8982 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8983 (the_low_target): Use linux_get_pc_32bit and
8984 linux_set_pc_32bit.
8985 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8986 (the_low_target): Use linux_get_pc_32bit and
8987 linux_set_pc_32bit.
8988 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8989 (the_low_target): Use linux_get_pc_32bit and
8990 linux_set_pc_32bit.
8991
eb0edac8
GB
89922016-01-18 Gary Benson <gbenson@redhat.com>
8993
8994 * configure.ac (AC_FUNC_FORK): New check.
8995 * config.in: Regenerate.
8996 * configure: Likewise.
8997
1b451dda
YQ
89982016-01-14 Yao Qi <yao.qi@linaro.org>
8999
9000 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9001 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9002 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9003 arm_get_next_pcs_ctor.
9004
82075af2
JS
90052016-01-12 Josh Stone <jistone@redhat.com>
9006 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9007
9008 * inferiors.h: Include "gdb_vecs.h".
9009 (struct process_info): Add syscalls_to_catch.
9010 * inferiors.c (remove_process): Free syscalls_to_catch.
9011 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9012 syscall_return stops.
9013 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9014 * server.c (handle_general_set): Handle QCatchSyscalls.
9015 (handle_query): Report support for QCatchSyscalls.
9016 * target.h (struct target_ops): Add supports_catch_syscall.
9017 (target_supports_catch_syscall): New macro.
9018 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9019 (struct lwp_info): Add syscall_state.
9020 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9021 Maintain syscall_state and syscalls_to_catch across exec.
9022 (get_syscall_trapinfo): New function, proxy to the_low_target.
9023 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9024 (linux_low_filter_event): Toggle syscall_state entry/return for
9025 syscall traps, and set it ignored for all others.
9026 (gdb_catching_syscalls_p): New function.
9027 (gdb_catch_this_syscall_p): New function.
9028 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9029 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9030 (linux_supports_catch_syscall): New function.
9031 (linux_target_ops): Install it.
9032 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9033 (the_low_target): Install it.
9034
8f13a3ce
MF
90352016-01-12 Mike Frysinger <vapier@gentoo.org>
9036
9037 * acinclude.m4: Include new ../warning.m4 file.
9038 * configure: Regenerated.
9039 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9040
5b3da067
MF
90412016-01-12 Mike Frysinger <vapier@gentoo.org>
9042
9043 * ax.c (is_goto_target): Mark static.
9044 * linux-low.c (register_addr): Likewise.
9045 (linux_fetch_registers, linux_store_registers): Likewise.
9046 * mem-break.c (any_persistent_commands): Fix old prototype.
9047 (add_commands_to_breakpoint): Mark static.
9048 * regcache.c (find_register_by_name): Delete unused func.
9049 * remote-utils.c (hex_or_minus_one): Mark static.
9050 * server.c (monitor_show_help): Mark static.
9051 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9052 handle_v_requests): Likewise.
9053
bc504a31
PA
90542016-01-12 Pedro Alves <palves@redhat.com>
9055
9056 Remove use of the registered trademark symbol throughout.
9057
5a0dd67a
YQ
90582016-01-08 Yao Qi <yao.qi@linaro.org>
9059
9060 * remote-utils.c (getpkt): If c is '\003', call target hook
9061 request_interrupt.
9062
b2ca446f
YQ
90632016-01-06 Yao Qi <yao.qi@linaro.org>
9064
9065 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9066 linux-aarch32-low.c.
9067 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9068 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9069 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9070 (thumb2_breakpoint): Declare.
9071 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9072 linux-aarch32-low.h.
9073 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9074 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9075 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9076
edd88788
JB
90772016-01-01 Joel Brobecker <brobecker@adacore.com>
9078
9079 * gdbreplay.c (gdbreplay_version): Change copyright year in
9080 version message.
9081 * server.c (gdbserver_version): Likewise.
9082
65da7f14
PP
90832015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9084
9085 * server.c (crc32_table): Delete.
9086 (crc32): Use libiberty's xcrc32 function.
9087
4abd5ed2
JB
90882015-12-22 Joel Brobecker <brobecker@adacore.com>
9089
9090 * lynx-low.c (lynx_delete_thread_callback): New function.
9091 (lynx_mourn): Properly delete our process and all of its
9092 threads. Remove call to clear_inferiors.
9093
0e50fe5c
JB
90942015-12-22 Joel Brobecker <brobecker@adacore.com>
9095
9096 * target.c (thread_search_callback): Add check that
9097 the thread_stopped target callback is not NULL before
9098 calling it.
9099
35adc03f
YQ
91002015-12-21 Yao Qi <yao.qi@linaro.org>
9101
9102 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9103 arm breakpoint.
9104
bd2b2909
AT
91052015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9106
9107 * server.c (handle_query): Call target_supports_software_single_step.
9108
7fe5e27e
AT
91092015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9110
9111 * linux-low.c (single_step): New function.
9112 (linux_resume_one_lwp_throw): Call single_step.
9113 (start_step_over): Likewise.
9114
d9311bfa
AT
91152015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9116
9117 * Makefile.in (SFILES): Append arch/arm-linux.c,
9118 arch/arm-get-next-pcs.c.
9119 (arm-linux.o): New rule.
9120 (arm-get-next-pcs.o): New rule.
9121 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9122 arm-linux.o.
9123 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9124 to linux-aarch32-low.c.
9125 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9126 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9127 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9128 (thumb2_breakpoint_len): Likewise.
9129 (arm_is_thumb_mode): Make non-static.
9130 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9131 from linux-aarch32-low.c.
9132 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9133 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9134 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9135 (thumb2_breakpoint_len): Likewise.
9136 (arm_is_thumb_mode): New declaration.
9137 * linux-arm-low.c: Include arch/arm-linux.h
9138 aarch/arm-get-next-pcs.h, sys/syscall.h.
9139 (get_next_pcs_ops): New struct.
9140 (get_next_pcs_addr_bits_remove): New function.
9141 (get_next_pcs_is_thumb): New function.
9142 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9143 (arm_sigreturn_next_pc): Likewise.
9144 (get_next_pcs_syscall_next_pc): Likewise.
9145 (arm_gdbserver_get_next_pcs): Likewise.
9146 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9147 Initialize.
9148 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9149 * server.h: Include gdb_vecs.h.
9150
68ce2059
AT
91512015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9152
9153 * Makefile.in (SFILES): Append common/common-regcache.c.
9154 (OBS): Append common-regcache.o.
9155 (common-regcache.o): New rule.
9156 * regcache.c (init_register_cache): Initialize cache to
9157 REG_UNAVAILABLE.
9158 (regcache_raw_read_unsigned): New function.
9159 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9160 register_status enum.
9161
fa5308bd
AT
91622015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9163
9164 * linux-aarch64-low.c (the_low_targets): Rename
9165 breakpoint_reinsert_addr to get_next_pcs.
9166 * linux-arm-low.c (the_low_targets): Likewise.
9167 * linux-bfin-low.c (the_low_targets): Likewise.
9168 * linux-cris-low.c (the_low_targets): Likewise.
9169 * linux-crisv32-low.c (the_low_targets): Likewise.
9170 * linux-low.c (can_software_single_step): Likewise.
9171 (install_software_single_step_breakpoints): New function.
9172 (start_step_over): Use install_software_single_step_breakpoints.
9173 * linux-low.h: New CORE_ADDR vector.
9174 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9175 get_next_pcs.
9176 * linux-mips-low.c (the_low_targets): Likewise.
9177 * linux-nios2-low.c (the_low_targets): Likewise.
9178 * linux-sparc-low.c (the_low_targets): Likewise.
9179
4a6ed09b
PA
91802015-12-17 Pedro Alves <palves@redhat.com>
9181
9182 * linux-low.c (linux_kill_one_lwp): Remove references to
9183 LinuxThreads.
9184 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9185 to 'kill'.
9186 (linux_init_signals): Delete.
9187 (initialize_low): Adjust.
9188 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9189
7544db95
PA
91902015-12-16 Pedro Alves <palves@redhat.com>
9191
9192 * configure.ac (compiler warning flags): When testing a
9193 -Wno-foo option, check whether -Wfoo works instead.
9194 * configure: Regenerate.
9195
8020350c
DB
91962015-12-11 Don Breazeal <donb@codesourcery.com>
9197
9198 * server.c (process_serial_event): Don't exit from gdbserver
9199 in remote mode if there are still active inferiors.
9200
db91f502
YQ
92012015-12-11 Yao Qi <yao.qi@linaro.org>
9202
9203 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9204 arm_breakpoint_at if the process is 32-bit.
9205
b37a6290
YQ
92062015-12-11 Yao Qi <yao.qi@linaro.org>
9207
9208 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9209 arm breakpoint.
9210
17b1509a
YQ
92112015-12-07 Yao Qi <yao.qi@linaro.org>
9212
9213 * configure.srv: Append arm.o to srv_tgtobj for
9214 aarch64*-*-linux* target.
9215 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9216 from linux-arm-low.c.
9217 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9218 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9219 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9220 (thumb2_breakpoint_len): Likewise.
9221 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9222 (arm_breakpoint_kinds): Likewise.
9223 (arm_breakpoint_kind_from_pc): Likewise.
9224 (arm_sw_breakpoint_from_kind): Likewise.
9225 (arm_breakpoint_kind_from_current_state): Likewise.
9226 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9227 (arm_sw_breakpoint_from_kind): Declare.
9228 (arm_breakpoint_kind_from_current_state): Declare.
9229 (arm_breakpoint_at): Declare.
9230 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9231 arm_sw_breakpoint_from_kind if process is 32-bit.
9232 (aarch64_breakpoint_kind_from_pc): New function.
9233 (aarch64_breakpoint_kind_from_current_state): New function.
9234 (the_low_target): Initialize fields breakpoint_kind_from_pc
9235 and breakpoint_kind_from_current_state.
9236 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9237 linux-aarch32-low.c.
9238 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9239 (arm_breakpoint, arm_breakpoint_len): Likewise.
9240 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9241 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9242 (arm_is_thumb_mode): Likewise.
9243 (arm_breakpoint_at): Likewise.
9244 (arm_breakpoint_kind_from_pc): Likewise.
9245 (arm_sw_breakpoint_from_kind): Likewise.
9246 (arm_breakpoint_kind_from_current_state): Likewise.
9247
9248 Revert:
9249 2015-08-04 Yao Qi <yao.qi@linaro.org>
9250
9251 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9252 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9253 * server.c (extended_protocol): Remove "static".
9254 * server.h (extended_protocol): Declare it.
9255
ece66d65
JS
92562015-12-04 Josh Stone <jistone@redhat.com>
9257
9258 * target.h (struct target_ops) <arch_setup>: Rename to ...
9259 (struct target_ops) <post_create_inferior>: ... this.
9260 (target_arch_setup): Rename to ...
9261 (target_post_create_inferior): ... this, calling post_create_inferior.
9262 * server.c (start_inferior): Update target_arch_setup calls to
9263 target_post_create_inferior.
9264 * linux-low.c (linux_low_ptrace_options): Forward declare.
9265 (linux_arch_setup): Update its comment for general use.
9266 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9267 (struct linux_target_ops): Use linux_post_create_inferior.
9268 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9269 to post_create_inferior.
9270 * nto-low.c (struct nto_target_ops): Likewise.
9271 * spu-low.c (struct spu_target_ops): Likewise.
9272 * win32-low.c (struct win32_target_ops): Likewise.
9273
e58c48b4
AT
92742015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9275
9276 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9277
fbec8956
AT
92782015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9279
9280 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9281 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9282 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9283 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9284 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9285 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9286 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9287 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9288 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9289 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9290 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9291 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9292
9b4c5f87
AT
92932015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9294
9295 * linux-low.c (linux_look_up_symbols): Don't call
9296 linux_supports_traceclone.
9297 * linux-low.h (thread_db_init): Remove use_events argument.
9298 * thread-db.c (thread_db_use_event): Remove global variable.
9299 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9300 (struct thread_db) <td_create_bp>: Remove field.
9301 (thread_db_create_event): Remove function.
9302 (thread_db_enable_reporting): Likewise.
9303 (find_one_thread): Don't check for thread_db_use_events.
9304 (attach_thread): Likewise.
9305 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9306 (try_thread_db_load_1): Don't check for thread_db_use_events.
9307 (thread_db_init): Remove use_events argument and thread events
9308 handling.
9309 (remove_thread_event_breakpoints): Remove function.
9310 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9311
7d00775e
AT
93122015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9313
9314 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9315 New function.
9316 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9317 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9318 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9319 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9320 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9321 Initialize.
9322 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9323 New function.
9324 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9325 * linux-low.c (can_hardware_single_step): Use
9326 supports_hardware_single_step.
9327 (can_software_single_step): New function.
9328 (start_step_over): Call can_software_single_step.
9329 (linux_supports_hardware_single_step): New function.
9330 (struct target_ops) <supports_software_single_step>: Initialize.
9331 * linux-low.h (struct linux_target_ops)
9332 <supports_hardware_single_step>: Initialize.
9333 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9334 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9335 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9336 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9337 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9338 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9339 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9340 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9341 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9342 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9343 Initialize.
9344 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9345 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9346 Initialize.
9347 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9348 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9349 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9350 New function.
9351 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9352 * target.h (struct target_ops): <supports_software_single_step>:
9353 New field.
9354 (target_supports_software_single_step): New macro.
9355
2d97cd35
AT
93562015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9357
9358 * linux-low.c (linux_wait_1): Fix pc advance condition.
9359 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9360 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9361
769ef81f
AT
93622015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9363
9364 * linux-arm-low.c (arm_is_thumb_mode): New function.
9365 (arm_breakpoint_at): Use arm_is_thumb_mode.
9366 (arm_breakpoint_kind_from_current_state): New function.
9367 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9368 Initialize.
9369 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9370 (linux_breakpoint_kind_from_current_state): New function.
9371 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9372 * linux-low.h (struct linux_target_ops)
9373 <breakpoint_kind_from_current_state>: New field.
9374 * target.h (struct target_ops): Likewise.
9375 (target_breakpoint_kind_from_current_state): New macro.
9376
1bebeeca
PA
93772015-11-30 Pedro Alves <palves@redhat.com>
9378
9379 * linux-low.c (linux_resume): Wake up the event loop before
9380 returning.
9381
a67a9fae
PA
93822015-11-30 Pedro Alves <palves@redhat.com>
9383
9384 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9385 check.
9386 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9387 to -1.
9388 * target.c (struct thread_search): New structure.
9389 (thread_search_callback): New function.
9390 (prev_general_thread): New global.
9391 (prepare_to_access_memory, done_accessing_memory): New functions.
9392 * target.h (prepare_to_access_memory, done_accessing_memory):
9393 Replace macros with function declarations.
9394
f2faf941
PA
93952015-11-30 Pedro Alves <palves@redhat.com>
9396
9397 PR 14618
9398 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9399 report TARGET_WAITKIND_NO_RESUMED.
9400 * remote-utils.c (prepare_resume_reply): Handle
9401 TARGET_WAITKIND_NO_RESUMED.
9402 * server.c (report_no_resumed): New global.
9403 (handle_query) <qSupported>: Handle "no-resumed+". Report
9404 "no-resumed+" support.
9405 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9406 return error if the client doesn't support no-resumed events.
9407 (push_stop_notification): New function.
9408 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9409 events if the client supports them.
9410
a681f9c9
PA
94112015-11-30 Pedro Alves <palves@redhat.com>
9412
9413 * linux-low.c (thread_still_has_status_pending_p): Don't check
9414 vCont;t here.
9415 (lwp_resumed): New function.
9416 (status_pending_p_callback): Return early if the LWP is not
9417 supposed to be resumed.
9418
65706a29
PA
94192015-11-30 Pedro Alves <palves@redhat.com>
9420
9421 * linux-low.c (handle_extended_wait): Assert that the LWP's
9422 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9423 thread create events, leave the new child's status pending.
9424 (linux_low_filter_event): If GDB wants to hear about thread exit
9425 events, leave the LWP marked dead and don't delete it.
9426 (linux_wait_for_event_filtered): Don't check for thread exit.
9427 (filter_exit_event): New function.
9428 (linux_wait_1): Use it, when returning an exit event.
9429 (linux_resume_one_lwp_throw): Assert that the LWP's
9430 waitstatus is TARGET_WAITKIND_IGNORE.
9431 * remote-utils.c (prepare_resume_reply): Handle
9432 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9433 * server.c (report_thread_events): New global.
9434 (handle_general_set): Handle QThreadEvents.
9435 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9436 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9437 TARGET_WAITKIND_THREAD_EXITED.
9438 * server.h (report_thread_events): Declare.
9439
56cf4bed
PA
94402015-11-30 Pedro Alves <palves@redhat.com>
9441
9442 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9443 the thread's last_resume_kind was resume_stop.
9444
500c1d85
PA
94452015-11-30 Pedro Alves <palves@redhat.com>
9446
9447 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9448 before returning.
9449
de979965
PA
94502015-11-30 Pedro Alves <palves@redhat.com>
9451
9452 * server.c (handle_v_requests): Handle vCtrlC.
9453
34c65914
PA
94542015-11-30 Pedro Alves <palves@redhat.com>
9455
9456 * gdbthread.h (find_any_thread_of_pid): Declare.
9457 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9458 functions.
9459 * server.c (handle_query): If current_thread is NULL, look for
9460 another thread of the selected process.
9461
79efa585 94622015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9463 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9464
9465 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9466 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9467 name in reply.
9468 * target.h (struct target_ops) <thread_name>: New field.
9469 (target_thread_name): New macro.
9470
80d82c19
JB
94712015-11-23 Joel Brobecker <brobecker@adacore.com>
9472
9473 * regcache.h (regcache_invalidate_pid): Add declaration.
9474 * regcache.c (regcache_invalidate_pid): New function, extracted
9475 from regcache_invalidate.
9476 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9477 Add trivial documentation comment.
9478 * lynx-low.c: Use regcache_invalidate_pid instead of
9479 regcache_invalidate.
9480
64da5dd5
JB
94812015-11-23 Joel Brobecker <brobecker@adacore.com>
9482
9483 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9484 and Elf64_auxv_t if the target is Android.
9485
37ce4055
DE
94862015-11-22 Doug Evans <xdje42@gmail.com>
9487
9488 * target.h: #include <sys/types.h>.
9489
06e03fff
PA
94902015-11-19 Pedro Alves <palves@redhat.com>
9491
9492 * linux-low.c (linux_process_qsupported): Change prototype.
9493 Adjust.
9494 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9495 Change prototype.
9496 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9497 and adjust to loop over all features.
9498 * server.c (handle_query) <qSupported>: Adjust to call
9499 target_process_qsupported once, passing it a vector of unprocessed
9500 features.
9501 * target.h (struct target_ops) <process_qsupported>: Change
9502 prototype.
9503 (target_process_qsupported): Adjust.
9504
9a084706
PA
95052015-11-19 Pedro Alves <palves@redhat.com>
9506
9507 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9508 mode.
9509 * configure: Regenerate.
9510
dad44a1f
PA
95112015-11-19 Pedro Alves <palves@redhat.com>
9512
9513 * configure: Regenerate.
9514
231c0592
YQ
95152015-11-19 Yao Qi <yao.qi@linaro.org>
9516
9517 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9518 type to uint32_t.
9519
6c1c9a8b
YQ
95202015-11-19 Yao Qi <yao.qi@linaro.org>
9521
9522 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9523 (struct aarch64_operand): Move enum out.
9524
9caa3311
YQ
95252015-11-19 Yao Qi <yao.qi@linaro.org>
9526
9527 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9528 struct user_fpsimd_state *.
9529 (aarch64_store_fpregset): Likewise.
9530
6a69a054
YQ
95312015-11-19 Yao Qi <yao.qi@linaro.org>
9532
9533 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9534 struct user_pt_regs *.
9535 (aarch64_store_gregset): Likewise.
9536
1798301e
PA
95372015-11-18 Pedro Alves <palves@redhat.com>
9538
9539 * Makefile.in (all_object_files): Add $IPA_OBJS.
9540
ce7715e2
PA
95412015-11-17 Pedro Alves <palves@redhat.com>
9542
9543 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9544 GDB_SIGNAL_0 and gdb_signal_to_string.
9545
c0879059
PA
95462015-11-17 Pedro Alves <palves@redhat.com>
9547
9548 * win32-low.c (handle_output_debug_string): Remove parameter.
9549 (win32_kill): Remove our_status local and adjust call to
9550 handle_output_debug_string.
9551 (get_child_debug_event): Adjust call to
9552 handle_output_debug_string.
9553
1996e237
SM
95542015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9555
9556 * linux-mips-low.c (mips_fill_gregset): Add cast.
9557 (mips_store_gregset): Likewise.
9558 (mips_fill_fpregset): Likewise.
9559 (mips_store_fpregset): Likewise.
9560
cbec665b
SM
95612015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9562
9563 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9564 priv.
9565
eb3e3c67
SM
95662015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9567
9568 * linux-mips-low.c (mips_linux_new_thread): Change type of
9569 watch_type to enum target_hw_bp_type.
9570
171de4b8
SM
95712015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9572
9573 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9574 Change return type to arm_hwbp_type.
9575
04248ead
SM
95762015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9577
9578 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9579 (arm_store_gregset): Likewise.
9580 * linux-arm-low.c (arm_get_hwcap): Likewise.
9581 (arm_read_description): Likewise.
9582
04b3479c
SM
95832015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9584
9585 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9586
2bc84e8a
SM
95872015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9588
9589 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9590 (ppc_fill_vsxregset): Likewise.
9591 (ppc_store_vsxregset): Likewise.
9592 (ppc_fill_vrregset): Likewise.
9593 (ppc_store_vrregset): Likewise.
9594 (ppc_fill_evrregset): Likewise.
9595 (ppc_store_evrregset): Likewise.
9596
e6c5bb05
SM
95972015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9598
9599 * linux-ppc-low.c (ppc_usrregs_info): Remove
9600 forward-declaration.
9601 (ppc_arch_setup): Move lower in file.
9602
7ea45d72
SM
96032015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9604
9605 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9606 (ps_pdwrite): Likewise.
9607
69291610
HW
96082015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9609
9610 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9611 to after assert checks.
9612
b42945fd
SM
96132015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9614
9615 * proc-service.c (ps_pdread): Add/adjust casts.
9616 (ps_pdwrite): Add/adjust casts.
9617
d6f85c84
SM
96182015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9619
9620 * server.c (handle_search_memory_1): Cast return value of
9621 memmem.
9622
f98cd059
SM
96232015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9624
9625 * server.c (write_qxfer_response): Change type of data to
9626 gdb_byte *.
9627
d2412fa5
PA
96282015-10-29 Pedro Alves <palves@redhat.com>
9629
9630 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9631
c17414a2
PA
96322015-10-29 Pedro Alves <palves@redhat.com>
9633
9634 * tracepoint.c (clear_installed_tracepoints): Add casts.
9635
e053fbc4
PA
96362015-10-29 Pedro Alves <palves@redhat.com>
9637
9638 * server.c (handle_v_cont, process_serial_event): Add enum
9639 gdb_signal casts to signal parsing code.
9640
add67df8
PA
96412015-10-29 Pedro Alves <palves@redhat.com>
9642
9643 * linux-low.h (NULL_REGSET): Define.
9644 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9645 * linux-arm-low.c (arm_regsets): Likewise.
9646 * linux-crisv32-low.c (cris_regsets): Likewise.
9647 * linux-m68k-low.c (m68k_regsets): Likewise.
9648 * linux-mips-low.c (mips_regsets): Likewise.
9649 * linux-nios2-low.c (nios2_regsets): Likewise.
9650 * linux-ppc-low.c (ppc_regsets): Likewise.
9651 * linux-s390-low.c (s390_regsets): Likewise.
9652 * linux-sh-low.c (sh_regsets): Likewise.
9653 * linux-sparc-low.c (sparc_regsets): Likewise.
9654 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9655 * linux-tile-low.c (tile_regsets): Likewise.
9656 * linux-x86-low.c (x86_regsets): Likewise.
9657 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9658
50bc912a
PA
96592015-10-29 Pedro Alves <palves@redhat.com>
9660
9661 * linux-low.h (NULL_REGSET): Define.
9662 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9663 * linux-arm-low.c (arm_regsets): Likewise.
9664 * linux-crisv32-low.c (cris_regsets): Likewise.
9665 * linux-m68k-low.c (m68k_regsets): Likewise.
9666 * linux-mips-low.c (mips_regsets): Likewise.
9667 * linux-nios2-low.c (nios2_regsets): Likewise.
9668 * linux-ppc-low.c (ppc_regsets): Likewise.
9669 * linux-s390-low.c (s390_regsets): Likewise.
9670 * linux-sh-low.c (sh_regsets): Likewise.
9671 * linux-sparc-low.c (sparc_regsets): Likewise.
9672 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9673 * linux-tile-low.c (tile_regsets): Likewise.
9674 * linux-x86-low.c (x86_regsets): Likewise.
9675 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9676
682b2546
DE
96772015-10-26 Doug Evans <dje@google.com>
9678
9679 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9680
963843d4
DE
96812015-10-26 Doug Evans <dje@google.com>
9682
9683 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9684
d41401ac
DE
96852015-10-26 Doug Evans <dje@google.com>
9686
9687 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9688 for debug_printf.
9689 (attach_thread, find_new_threads_callback): Ditto.
9690
3db28855
AT
96912015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9692
9693 * mem-break.h (set_breakpoint_data): Remove.
9694
fb78e89c
AT
96952015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9696
9697 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9698 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9699 (initialize_low): Remove set_breakpoint_data call.
9700 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9701 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9702 (initialize_low): Remove set_breakpoint_data call.
9703 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9704 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9705 (initialize_low): Remove set_breakpoint_data call.
9706
2e6ee069
AT
97072015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9708
9709 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9710 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9711 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9712 * target.h (target_breakpoint_kind_from_pc): New macro.
9713
1652a986
AT
97142015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9715
9716 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9717 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9718 the default breakpoint kind.
9719
abeead09
AT
97202015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9721
9722 * linux-arm-low.c (arm_supports_z_point_type): Add software
9723 breakpoint support.
9724
b0b4b501
AT
97252015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9726
9727 * linux-arm-low.c: Refactor breakpoint definitions.
9728 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9729 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9730
8689682c
AT
97312015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9732
9733 * Makefile.in: Add arm.c/o.
9734 * configure.srv: Likewise.
9735 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9736 (arm_breakpoint_kind_from_pc): New function.
9737 (arm_sw_breakpoint_from_kind): Return proper kind.
9738 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9739
27165294
AT
97402015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9741
9742 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9743 removal.
9744 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9745 (struct raw_breakpoint) <size>: Remove.
9746 (struct raw_breakpoint) <kind>: Add.
9747 (bp_size): New function.
9748 (bp_opcode): Likewise.
9749 (find_raw_breakpoint_at): Adjust for kind.
9750 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9751 (remove_memory_breakpoint): Adjust for kind call bp_size.
9752 (set_raw_breakpoint_at): Adjust for kind.
9753 (set_breakpoint): Likewise.
9754 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9755 (delete_raw_breakpoint): Adjust for kind.
9756 (delete_breakpoint): Likewise.
9757 (find_gdb_breakpoint): Likewise.
9758 (set_gdb_breakpoint_1): Likewise.
9759 (set_gdb_breakpoint): Likewise.
9760 (delete_gdb_breakpoint_1): Likewise.
9761 (delete_gdb_breakpoint): Likewise.
9762 (uninsert_raw_breakpoint): Likewise.
9763 (reinsert_raw_breakpoint): Likewise.
9764 (set_breakpoint_data): Remove.
9765 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9766 (check_mem_read): Adjust for kind call bp_size.
9767 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9768 (clone_one_breakpoint): Adjust for kind.
9769 * mem-break.h (set_gdb_breakpoint): Likewise.
9770 (delete_gdb_breakpoint): Likewise.
9771 * server.c (process_serial_event): Likewise.
9772
dd373349
AT
97732015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9774
9775 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9776 (struct linux_target_ops) <breakpoint>: Remove.
9777 (struct linux_target_ops) <breakpoint_len>: Remove.
9778 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9779 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9780 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9781 (arm_sw_breakpoint_from_kind): New function.
9782 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9783 (struct linux_target_ops) <breakpoint>: Remove.
9784 (struct linux_target_ops) <breakpoint_len>: Remove.
9785 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9786 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9787 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9788 (struct linux_target_ops) <breakpoint>: Remove.
9789 (struct linux_target_ops) <breakpoint_len>: Remove.
9790 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9791 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9792 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9793 (struct linux_target_ops) <breakpoint>: Remove.
9794 (struct linux_target_ops) <breakpoint_len>: Remove.
9795 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9796 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9797 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9798 and sw_breakpoint_from_kind to increment the pc.
9799 (linux_breakpoint_kind_from_pc): New function.
9800 (linux_sw_breakpoint_from_kind): New function.
9801 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9802 (initialize_low): Call breakpoint_kind_from_pc and
9803 sw_breakpoint_from_kind to replace breakpoint_data/len.
9804 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9805 New field.
9806 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9807 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9808 (struct linux_target_ops) <breakpoint>: Remove.
9809 (struct linux_target_ops) <breakpoint_len>: Remove.
9810 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9811 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9812 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9813 (struct linux_target_ops) <breakpoint>: Remove.
9814 (struct linux_target_ops) <breakpoint_len>: Remove.
9815 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9816 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9817 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9818 (struct linux_target_ops) <breakpoint>: Remove.
9819 (struct linux_target_ops) <breakpoint_len>: Remove.
9820 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9821 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9822 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9823 (struct linux_target_ops) <breakpoint>: Remove.
9824 (struct linux_target_ops) <breakpoint_len>: Remove.
9825 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9826 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9827 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9828 (struct linux_target_ops) <breakpoint>: Remove.
9829 (struct linux_target_ops) <breakpoint_len>: Remove.
9830 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9831 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9832 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9833 (struct linux_target_ops) <breakpoint>: Remove.
9834 (struct linux_target_ops) <breakpoint_len>: Remove.
9835 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9836 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9837 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9838 (struct linux_target_ops) <breakpoint>: Remove.
9839 (struct linux_target_ops) <breakpoint_len>: Remove.
9840 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9841 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9842 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9843 (struct linux_target_ops) <breakpoint>: Remove.
9844 (struct linux_target_ops) <breakpoint_len>: Remove.
9845 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9846 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9847 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9848 (struct linux_target_ops) <breakpoint>: Remove.
9849 (struct linux_target_ops) <breakpoint_len>: Remove.
9850 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9851 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9852 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9853 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9854 (struct linux_target_ops) <breakpoint>: Remove.
9855 (struct linux_target_ops) <breakpoint_len>: Remove.
9856 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9857 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9858 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9859 (struct linux_target_ops) <breakpoint>: Remove.
9860 (struct linux_target_ops) <breakpoint_len>: Remove.
9861 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9862 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9863
4cd98a19
AT
98642015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9865
9866 * linux-cris-low.c (cris_get_pc): Remove void arg.
9867
774ee6d2
AR
98682015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9869
9870 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9871 variable name.
9872
833dcd29
AR
98732015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9874
9875 * inferiors.c (thread_pid_matches_callback): New function.
9876 (find_thread_process): New function.
9877 (remove_thread): Reset current_thread.
9878 (remove_process): Assert threads have been removed first.
9879
8d689ee5
YQ
98802015-10-15 Yao Qi <yao.qi@linaro.org>
9881
9882 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9883 if it is 3.
9884 (aarch64_remove_point): Likewise.
9885 * regcache.c (regcache_register_size): New function.
9886
1c2e1515
YQ
98872015-10-12 Yao Qi <yao.qi@linaro.org>
9888
9889 * linux-aarch64-low.c: Update all callers as emit_load_store
9890 is renamed to aarch64_emit_load_store.
9891
e1c587c3
YQ
98922015-10-12 Yao Qi <yao.qi@linaro.org>
9893
9894 * linux-aarch64-low.c: Update all callers of function renaming
9895 from emit_insn to aarch64_emit_insn.
9896
b6542f81
YQ
98972015-10-12 Yao Qi <yao.qi@linaro.org>
9898
9899 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9900 arch/aarch64-insn.h.
9901 (struct aarch64_memory_operand): Likewise.
9902 (ENCODE): Likewise.
9903 (emit_insn): Move to arch/aarch64-insn.c.
9904 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9905 (emit_load_store): Move to arch/aarch64-insn.c.
9906 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9907 (can_encode_int32): Remove.
9908
246994ce
YQ
99092015-10-12 Yao Qi <yao.qi@linaro.org>
9910
9911 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9912 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9913 (aarch64_relocate_instruction): Likewise.
9914 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9915 (struct aarch64_insn_visitor): Likewise.
9916
0badd99f
YQ
99172015-10-12 Yao Qi <yao.qi@linaro.org>
9918
9919 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9920 (struct aarch64_insn_visitor): New.
9921 (struct aarch64_insn_relocation_data): New.
9922 (aarch64_ftrace_insn_reloc_b): New function.
9923 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9924 (aarch64_ftrace_insn_reloc_cb): Likewise.
9925 (aarch64_ftrace_insn_reloc_tb): Likewise.
9926 (aarch64_ftrace_insn_reloc_adr): Likewise.
9927 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9928 (aarch64_ftrace_insn_reloc_others): Likewise.
9929 (visitor): New.
9930 (aarch64_relocate_instruction): Use visitor.
9931
dfaffe9d
YQ
99322015-10-12 Yao Qi <yao.qi@linaro.org>
9933
9934 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9935 int. Add argument buf.
9936 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9937 aarch64_relocate_instruction.
9938
70b439f0
YQ
99392015-10-12 Yao Qi <yao.qi@linaro.org>
9940
9941 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9942 argument insn. Remove local variable insn. Don't call
9943 target_read_uint32.
9944 (aarch64_install_fast_tracepoint_jump_pad): Call
9945 target_read_uint32.
9946
7781c06f
YQ
99472015-09-30 Yao Qi <yao.qi@linaro.org>
9948
9949 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9950 (emit_load_store_pair): Likewise.
9951
9a3c8263
SM
99522015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9953
9954 * dll.c (match_dll): Add cast(s).
9955 (unloaded_dll): Likewise.
9956 * linux-low.c (second_thread_of_pid_p): Likewise.
9957 (delete_lwp_callback): Likewise.
9958 (count_events_callback): Likewise.
9959 (select_event_lwp_callback): Likewise.
9960 (linux_set_resume_request): Likewise.
9961 * server.c (accumulate_file_name_length): Likewise.
9962 (emit_dll_description): Likewise.
9963 (handle_qxfer_threads_worker): Likewise.
9964 (visit_actioned_threads): Likewise.
9965 * thread-db.c (any_thread_of): Likewise.
9966 * tracepoint.c (same_process_p): Likewise.
9967 (match_blocktype): Likewise.
9968 (build_traceframe_info_xml): Likewise.
9969
224c3ddb
SM
99702015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9971
9972 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9973 assignment.
9974 (gdb_unparse_agent_expr): Likewise.
9975 * hostio.c (require_data): Likewise.
9976 (handle_pread): Likewise.
9977 * linux-low.c (disable_regset): Likewise.
9978 (fetch_register): Likewise.
9979 (store_register): Likewise.
9980 (get_dynamic): Likewise.
9981 (linux_qxfer_libraries_svr4): Likewise.
9982 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9983 (set_fast_tracepoint_jump): Likewise.
9984 (uninsert_fast_tracepoint_jumps_at): Likewise.
9985 (reinsert_fast_tracepoint_jumps_at): Likewise.
9986 (validate_inserted_breakpoint): Likewise.
9987 (clone_agent_expr): Likewise.
9988 * regcache.c (init_register_cache): Likewise.
9989 * remote-utils.c (putpkt_binary_1): Likewise.
9990 (decode_M_packet): Likewise.
9991 (decode_X_packet): Likewise.
9992 (look_up_one_symbol): Likewise.
9993 (relocate_instruction): Likewise.
9994 (monitor_output): Likewise.
9995 * server.c (handle_search_memory): Likewise.
9996 (handle_qxfer_exec_file): Likewise.
9997 (handle_qxfer_libraries): Likewise.
9998 (handle_qxfer): Likewise.
9999 (handle_query): Likewise.
10000 (handle_v_cont): Likewise.
10001 (handle_v_run): Likewise.
10002 (captured_main): Likewise.
10003 * target.c (write_inferior_memory): Likewise.
10004 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10005 * tracepoint.c (init_trace_buffer): Likewise.
10006 (add_tracepoint_action): Likewise.
10007 (add_traceframe): Likewise.
10008 (add_traceframe_block): Likewise.
10009 (cmd_qtdpsrc): Likewise.
10010 (cmd_qtdv): Likewise.
10011 (cmd_qtstatus): Likewise.
10012 (response_source): Likewise.
10013 (response_tsv): Likewise.
10014 (cmd_qtnotes): Likewise.
10015 (gdb_collect): Likewise.
10016 (initialize_tracepoint): Likewise.
10017
afbe19f8
PL
100182015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10019
10020 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10021 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10022 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10023 <NOP>: New.
10024 (enum aarch64_condition_codes): New enum.
10025 (w0): New static global.
10026 (fp): Likewise.
10027 (lr): Likewise.
10028 (struct aarch64_memory_operand) <type>: New
10029 MEMORY_OPERAND_POSTINDEX type.
10030 (postindex_memory_operand): New helper function.
10031 (emit_ret): New function.
10032 (emit_load_store_pair): New function, factored out of emit_stp
10033 with support for MEMORY_OPERAND_POSTINDEX.
10034 (emit_stp): Rewrite using emit_load_store_pair.
10035 (emit_ldp): New function.
10036 (emit_load_store): Likewise.
10037 (emit_ldr): Mention post-index instruction in comment.
10038 (emit_ldrh): New function.
10039 (emit_ldrb): New function.
10040 (emit_ldrsw): Mention post-index instruction in comment.
10041 (emit_str): Likewise.
10042 (emit_subs): New function.
10043 (emit_cmp): Likewise.
10044 (emit_and): Likewise.
10045 (emit_orr): Likewise.
10046 (emit_orn): Likewise.
10047 (emit_eor): Likewise.
10048 (emit_mvn): Likewise.
10049 (emit_lslv): Likewise.
10050 (emit_lsrv): Likewise.
10051 (emit_asrv): Likewise.
10052 (emit_mul): Likewise.
10053 (emit_sbfm): Likewise.
10054 (emit_sbfx): Likewise.
10055 (emit_ubfm): Likewise.
10056 (emit_ubfx): Likewise.
10057 (emit_csinc): Likewise.
10058 (emit_cset): Likewise.
10059 (emit_nop): Likewise.
10060 (emit_ops_insns): New helper function.
10061 (emit_pop): Likewise.
10062 (emit_push): Likewise.
10063 (aarch64_emit_prologue): New function.
10064 (aarch64_emit_epilogue): Likewise.
10065 (aarch64_emit_add): Likewise.
10066 (aarch64_emit_sub): Likewise.
10067 (aarch64_emit_mul): Likewise.
10068 (aarch64_emit_lsh): Likewise.
10069 (aarch64_emit_rsh_signed): Likewise.
10070 (aarch64_emit_rsh_unsigned): Likewise.
10071 (aarch64_emit_ext): Likewise.
10072 (aarch64_emit_log_not): Likewise.
10073 (aarch64_emit_bit_and): Likewise.
10074 (aarch64_emit_bit_or): Likewise.
10075 (aarch64_emit_bit_xor): Likewise.
10076 (aarch64_emit_bit_not): Likewise.
10077 (aarch64_emit_equal): Likewise.
10078 (aarch64_emit_less_signed): Likewise.
10079 (aarch64_emit_less_unsigned): Likewise.
10080 (aarch64_emit_ref): Likewise.
10081 (aarch64_emit_if_goto): Likewise.
10082 (aarch64_emit_goto): Likewise.
10083 (aarch64_write_goto_address): Likewise.
10084 (aarch64_emit_const): Likewise.
10085 (aarch64_emit_call): Likewise.
10086 (aarch64_emit_reg): Likewise.
10087 (aarch64_emit_pop): Likewise.
10088 (aarch64_emit_stack_flush): Likewise.
10089 (aarch64_emit_zero_ext): Likewise.
10090 (aarch64_emit_swap): Likewise.
10091 (aarch64_emit_stack_adjust): Likewise.
10092 (aarch64_emit_int_call_1): Likewise.
10093 (aarch64_emit_void_call_2): Likewise.
10094 (aarch64_emit_eq_goto): Likewise.
10095 (aarch64_emit_ne_goto): Likewise.
10096 (aarch64_emit_lt_goto): Likewise.
10097 (aarch64_emit_le_goto): Likewise.
10098 (aarch64_emit_gt_goto): Likewise.
10099 (aarch64_emit_ge_got): Likewise.
10100 (aarch64_emit_ops_impl): New static global variable.
10101 (aarch64_emit_ops): New target function, return
10102 &aarch64_emit_ops_impl.
10103 (struct linux_target_ops): Install it.
10104
bb903df0
PL
101052015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10106
10107 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10108 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10109 aarch64-ipa.o.
10110 * linux-aarch64-ipa.c: New file.
10111 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10112 and endian.h.
10113 (aarch64_get_thread_area): New target method.
10114 (extract_signed_bitfield): New helper function.
10115 (aarch64_decode_ldr_literal): New function.
10116 (enum aarch64_opcodes): New enum.
10117 (struct aarch64_register): New struct.
10118 (struct aarch64_operand): New struct.
10119 (x0): New static global.
10120 (x1): Likewise.
10121 (x2): Likewise.
10122 (x3): Likewise.
10123 (x4): Likewise.
10124 (w2): Likewise.
10125 (ip0): Likewise.
10126 (sp): Likewise.
10127 (xzr): Likewise.
10128 (aarch64_register): New helper function.
10129 (register_operand): Likewise.
10130 (immediate_operand): Likewise.
10131 (struct aarch64_memory_operand): New struct.
10132 (offset_memory_operand): New helper function.
10133 (preindex_memory_operand): Likewise.
10134 (enum aarch64_system_control_registers): New enum.
10135 (ENCODE): New macro.
10136 (emit_insn): New helper function.
10137 (emit_b): New function.
10138 (emit_bcond): Likewise.
10139 (emit_cb): Likewise.
10140 (emit_tb): Likewise.
10141 (emit_blr): Likewise.
10142 (emit_stp): Likewise.
10143 (emit_ldp_q_offset): Likewise.
10144 (emit_stp_q_offset): Likewise.
10145 (emit_load_store): Likewise.
10146 (emit_ldr): Likewise.
10147 (emit_ldrsw): Likewise.
10148 (emit_str): Likewise.
10149 (emit_ldaxr): Likewise.
10150 (emit_stxr): Likewise.
10151 (emit_stlr): Likewise.
10152 (emit_data_processing_reg): Likewise.
10153 (emit_data_processing): Likewise.
10154 (emit_add): Likewise.
10155 (emit_sub): Likewise.
10156 (emit_mov): Likewise.
10157 (emit_movk): Likewise.
10158 (emit_mov_addr): Likewise.
10159 (emit_mrs): Likewise.
10160 (emit_msr): Likewise.
10161 (emit_sevl): Likewise.
10162 (emit_wfe): Likewise.
10163 (append_insns): Likewise.
10164 (can_encode_int32_in): New helper function.
10165 (aarch64_relocate_instruction): New function.
10166 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10167 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10168 (struct linux_target_ops): Install aarch64_get_thread_area,
10169 aarch64_install_fast_tracepoint_jump_pad and
10170 aarch64_get_min_fast_tracepoint_insn_len.
10171
787749ea
PL
101722015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10173
10174 * Makefile.in (aarch64-insn.o): New rule.
10175 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10176
9812b2e6
YQ
101772015-09-21 Yao Qi <yao.qi@linaro.org>
10178
10179 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10180
18fe412b
YQ
101812015-09-21 Yao Qi <yao.qi@linaro.org>
10182
10183 * tracepoint.c (max_jump_pad_size): Remove.
10184
a0cc84cd
YQ
101852015-09-18 Yao Qi <yao.qi@linaro.org>
10186
10187 * linux-aarch64-low.c: Don't include sys/uio.h.
10188 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10189
d78908cf
WW
101902015-09-16 Wei-cheng Wang <cole945@gmail.com>
10191
10192 * tracepoint.c (eval_result_type): Change prototype.
10193 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10194
d57e0d50
PA
101952015-09-15 Pedro Alves <palves@redhat.com>
10196
10197 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10198 Check whether to report exec events instead of checking whether
10199 multiprocess is enabled.
10200
5a676acc
PA
102012015-09-15 Pedro Alves <palves@redhat.com>
10202
10203 PR remote/18965
10204 * remote-utils.c (prepare_resume_reply): Merge
10205 TARGET_WAITKIND_VFORK_DONE switch case with the
10206 TARGET_WAITKIND_FORKED case.
10207
7c5d0fad
YQ
102082015-09-15 Yao Qi <yao.qi@linaro.org>
10209
10210 * server.c (handle_query): Check string comparison using
10211 "else if" instead of "if".
10212
750ce8d1
YQ
102132015-09-15 Yao Qi <yao.qi@linaro.org>
10214
10215 * server.c (vCont_supported): New global variable.
10216 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10217 matches. Append ";vContSupported+" to own_buf.
10218 (handle_v_requests): Append ";s;S" to own_buf if target supports
10219 hardware single step or vCont_supported is false.
10220 (capture_main): Set vCont_supported to zero.
10221
70b90b91
YQ
102222015-09-15 Yao Qi <yao.qi@linaro.org>
10223
10224 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10225 it to ...
10226 (linux_supports_hardware_single_step): ... New function.
10227 (linux_target_ops): Update.
10228 * lynx-low.c (lynx_target_ops): Set field
10229 supports_hardware_single_step to target_can_do_hardware_single_step.
10230 * nto-low.c (nto_target_ops): Likewise.
10231 * spu-low.c (spu_target_ops): Likewise.
10232 * win32-low.c (win32_target_ops): Likewise.
10233 * target.c (target_can_do_hardware_single_step): New function.
10234 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10235 Remove. <supports_hardware_single_step>: New field.
10236 (target_supports_conditional_breakpoints): Remove.
10237 (target_supports_hardware_single_step): New macro.
10238 (target_can_do_hardware_single_step): Declare.
10239 * server.c (handle_query): Use target_supports_hardware_single_step
10240 instead of target_supports_conditional_breakpoints.
10241
ade90bde
YQ
102422015-09-15 Yao Qi <yao.qi@linaro.org>
10243
10244 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10245 function.
10246 (struct linux_target_ops the_low_target): Install
10247 aarch64_linux_siginfo_fixup.
10248
94585166
DB
102492015-09-11 Don Breazeal <donb@codesourcery.com>
10250 Luis Machado <lgustavo@codesourcery.com>
10251
10252 * linux-low.c (linux_mourn): Static declaration.
10253 (linux_arch_setup): Move in front of
10254 handle_extended_wait.
10255 (linux_arch_setup_thread): New function.
10256 (handle_extended_wait): Handle exec events. Call
10257 linux_arch_setup_thread. Make event_lwp argument a
10258 pointer-to-a-pointer.
10259 (check_zombie_leaders): Do not check stopped threads.
10260 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10261 (linux_low_filter_event): Add lwp and thread for exec'ing
10262 non-leader thread if leader thread has been deleted.
10263 Refactor code into linux_arch_setup_thread and call it.
10264 Pass child lwp pointer by reference to handle_extended_wait.
10265 (linux_wait_for_event_filtered): Update comment.
10266 (linux_wait_1): Prevent clobbering exec event status.
10267 (linux_supports_exec_events): New function.
10268 (linux_target_ops) <supports_exec_events>: Initialize new member.
10269 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10270 new member.
10271 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10272 * server.c (report_exec_events): New global variable.
10273 (handle_query): Handle qSupported query for exec-events feature.
10274 (captured_main): Initialize report_exec_events.
10275 * server.h (report_exec_events): Declare new global variable.
10276 * target.h (struct target_ops) <supports_exec_events>: New
10277 member.
10278 (target_supports_exec_events): New macro.
10279 * win32-low.c (win32_target_ops) <supports_exec_events>:
10280 Initialize new member.
10281
0568462b
MM
102822015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10283
10284 * linux-low.c (linux_low_enable_btrace): Remove.
10285 (linux_target_ops): Replace linux_low_enable_btrace with
10286 linux_enable_btrace.
10287
39edd165
YQ
102882015-09-03 Yao Qi <yao.qi@linaro.org>
10289
10290 * linux-aarch64-low.c (aarch64_insert_point): Call
10291 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10292 returns true.
10293
1db33b5a
UW
102942015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10295
10296 * linux-low.c (check_stopped_by_breakpoint): Use
10297 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10298
ab290430
PA
102992015-08-27 Pedro Alves <palves@redhat.com>
10300
10301 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10302
8d749320
SM
103032015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10304
6711b7f8
SM
10305 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10306 the XNEW-family equivalent.
8d749320
SM
10307 (compile_bytecodes): Likewise.
10308 * dll.c (loaded_dll): Likewise.
10309 * event-loop.c (append_callback_event): Likewise.
10310 (create_file_handler): Likewise.
10311 (create_file_event): Likewise.
10312 * hostio.c (handle_open): Likewise.
10313 * inferiors.c (add_thread): Likewise.
10314 (add_process): Likewise.
10315 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10316 * linux-arm-low.c (arm_new_process): Likewise.
10317 (arm_new_thread): Likewise.
10318 * linux-low.c (add_to_pid_list): Likewise.
10319 (linux_add_process): Likewise.
10320 (handle_extended_wait): Likewise.
10321 (add_lwp): Likewise.
10322 (enqueue_one_deferred_signal): Likewise.
10323 (enqueue_pending_signal): Likewise.
10324 (linux_resume_one_lwp_throw): Likewise.
10325 (linux_resume_one_thread): Likewise.
10326 (linux_read_memory): Likewise.
10327 (linux_write_memory): Likewise.
10328 * linux-mips-low.c (mips_linux_new_process): Likewise.
10329 (mips_linux_new_thread): Likewise.
10330 (mips_add_watchpoint): Likewise.
10331 * linux-x86-low.c (initialize_low_arch): Likewise.
10332 * lynx-low.c (lynx_add_process): Likewise.
10333 * mem-break.c (set_raw_breakpoint_at): Likewise.
10334 (set_breakpoint): Likewise.
10335 (add_condition_to_breakpoint): Likewise.
10336 (add_commands_to_breakpoint): Likewise.
10337 (clone_agent_expr): Likewise.
10338 (clone_one_breakpoint): Likewise.
10339 * regcache.c (new_register_cache): Likewise.
10340 * remote-utils.c (look_up_one_symbol): Likewise.
10341 * server.c (queue_stop_reply): Likewise.
10342 (start_inferior): Likewise.
10343 (queue_stop_reply_callback): Likewise.
10344 (handle_target_event): Likewise.
10345 * spu-low.c (fetch_ppc_memory): Likewise.
10346 (store_ppc_memory): Likewise.
10347 * target.c (set_target_ops): Likewise.
10348 * thread-db.c (thread_db_load_search): Likewise.
10349 (try_thread_db_load_1): Likewise.
10350 * tracepoint.c (add_tracepoint): Likewise.
10351 (add_tracepoint_action): Likewise.
10352 (create_trace_state_variable): Likewise.
10353 (cmd_qtdpsrc): Likewise.
10354 (cmd_qtro): Likewise.
10355 (add_while_stepping_state): Likewise.
10356 * win32-low.c (child_add_thread): Likewise.
10357 (get_image_name): Likewise.
10358
ed8b7b42
YQ
103592015-08-25 Yao Qi <yao.qi@linaro.org>
10360
10361 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10362
db3cb7cb
YQ
103632015-08-25 Yao Qi <yao.qi@linaro.org>
10364
10365 * Makefile.in (aarch64-linux.o): New rule.
10366 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10367 srv_tgtobj.
10368 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10369 (aarch64_init_debug_reg_state): Make it extern.
10370 (aarch64_linux_prepare_to_resume): Remove.
10371
f6011a1c
YQ
103722015-08-25 Yao Qi <yao.qi@linaro.org>
10373
10374 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10375 lwp_arch_private_info and ptid_of_lwp.
10376
88e2cf7e
YQ
103772015-08-25 Yao Qi <yao.qi@linaro.org>
10378
10379 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10380 Find proc_info by find_process_pid. All callers updated.
10381
5e35436e
YQ
103822015-08-25 Yao Qi <yao.qi@linaro.org>
10383
10384 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10385 Remove.
10386 (debug_reg_change_callback): Remove.
10387 (aarch64_notify_debug_reg_change): Remove.
10388
4a8a7965
YQ
103892015-08-25 Yao Qi <yao.qi@linaro.org>
10390
10391 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10392 Call current_lwp_ptid.
10393
32a271ee
YQ
103942015-08-25 Yao Qi <yao.qi@linaro.org>
10395
10396 * linux-aarch64-low.c (debug_reg_change_callback): Use
10397 debug_printf.
10398
0d51c8d7
YQ
103992015-08-25 Yao Qi <yao.qi@linaro.org>
10400
10401 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10402
31a43dd5
YQ
104032015-08-25 Yao Qi <yao.qi@linaro.org>
10404
10405 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10406
8ee52567
YQ
104072015-08-25 Yao Qi <yao.qi@linaro.org>
10408
10409 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10410 the code.
10411
ff3f0f45
YQ
104122015-08-25 Yao Qi <yao.qi@linaro.org>
10413
10414 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10415 Remove.
10416 (debug_reg_change_callback): Remove argument entry and add argument
10417 lwp. Remove local variable thread. Don't print thread id in the
10418 debugging output. Don't check whether pid of thread equals to pid.
10419 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10420 iterate_over_lwps instead find_inferior.
10421
3d40fbb5
PA
104222015-08-24 Pedro Alves <palves@redhat.com>
10423
10424 * inferiors.c (get_first_process): New function.
10425 * inferiors.h (get_first_process): New declaration.
10426 * remote-utils.c (read_ptid): Default to the first process in the
10427 list, instead of to the current thread's process.
10428
438e1e42
PA
104292015-08-24 Pedro Alves <palves@redhat.com>
10430
10431 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10432 * event-loop.c: Likewise.
10433 * remote-utils.c: Likewise.
10434 * tracepoint.c: Likewise.
10435
a8c6d4fc
PA
104362015-08-24 Pedro Alves <palves@redhat.com>
10437
10438 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10439 ptid_get_lwp.
10440
99b0bb12
PA
104412015-08-21 Pedro Alves <palves@redhat.com>
10442
10443 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10444 instead of literal 1.
10445
f8904751
PA
104462015-08-21 Pedro Alves <palves@redhat.com>
10447
10448 * tdesc.c (default_description): Explicitly zero-initialize.
10449
465a859e
PA
104502015-08-21 Pedro Alves <palves@redhat.com>
10451
10452 PR gdb/18749
10453 * inferiors.c (remove_thread): Discard any pending stop reply for
10454 this thread.
10455 * server.c (remove_all_on_match_pid): Rename to ...
10456 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10457 instead of a pid.
10458 (discard_queued_stop_replies): Change parameter to a ptid. Now
10459 extern.
10460 (handle_v_kill, kill_inferior_callback, captured_main)
10461 (process_serial_event): Adjust.
10462 * server.h (discard_queued_stop_replies): Declare.
10463
f0db101d
PA
104642015-08-21 Pedro Alves <palves@redhat.com>
10465
10466 * linux-low.c (wait_for_sigstop): Always switch to no thread
10467 selected if the previously current thread dies.
10468 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10469 process instead of the current thread's.
10470 * remote-utils.c (input_interrupt): Don't check if there's no
10471 current thread.
10472 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10473 current thread to the general thread fails, error out.
10474 (handle_qxfer_auxv, handle_qxfer_libraries)
10475 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10476 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10477 (handle_query): Check if there's a thread selected instead of
10478 checking whether there's any thread in the thread list.
10479 (handle_qxfer_threads, handle_qxfer_btrace)
10480 (handle_qxfer_btrace_conf): Don't error out early if there's no
10481 thread in the thread list.
10482 (handle_v_cont, myresume): Don't set the current thread to the
10483 continue thread.
10484 (process_serial_event) <Hg handling>: Also set thread_id if the
10485 previous general thread is still alive.
10486 (process_serial_event) <g/G handling>: If setting the current
10487 thread to the general thread fails, error out.
10488 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10489 thread's lwp instead of the current thread's.
10490 * target.c (set_desired_thread): If the desired thread was not
10491 found, leave the current thread pointing to NULL. Return an int
10492 (boolean) indicating success.
10493 * target.h (set_desired_thread): Change return type to int.
10494
40045d91
MF
104952015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10496
10497 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10498 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10499 #includes.
10500 (ps_get_thread_area): New function.
10501
45face3b
GB
105022015-08-19 Gary Benson <gbenson@redhat.com>
10503
10504 * hostio.c (handle_pread): Do not attempt to read more data
10505 than hostio_reply_with_data can fit in a packet.
10506
16d5f642
JB
105072015-08-18 Joel Brobecker <brobecker@adacore.com>
10508
10509 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10510
a738da3a
MF
105112015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10512
10513 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10514
33ebda9d
PA
105152015-08-06 Pedro Alves <palves@redhat.com>
10516
10517 * tracepoint.c (expr_eval_result): Now an int.
10518
a44892be
PA
105192015-08-06 Pedro Alves <palves@redhat.com>
10520
10521 * gdbthread.h (struct regcache): Forward declare.
10522 (struct thread_info) <regcache_data>: Now a struct regcache
10523 pointer.
10524 * inferiors.c (inferior_regcache_data)
10525 (set_inferior_regcache_data): Now work with struct regcache
10526 pointers.
10527 * inferiors.h (struct regcache): Forward declare.
10528 (inferior_regcache_data, set_inferior_regcache_data): Now work
10529 with struct regcache pointers.
10530 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10531 (free_register_cache_thread): Remove struct regcache pointer
10532 casts.
10533
608a1e46
PA
105342015-08-06 Pedro Alves <palves@redhat.com>
10535
10536 * server.c (captured_main): On error, print the exception message
10537 to stderr, and if run_once is set, throw a quit.
10538
f0ce0d3a
PA
105392015-08-06 Pedro Alves <palves@redhat.com>
10540
10541 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10542 the current thread.
10543
bf47e248
PA
105442015-08-06 Pedro Alves <palves@redhat.com>
10545
10546 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10547 reading beyond the passed in buffer length.
10548
b6b9ffcc
PL
105492015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10550
10551 * tracepoint.c (symbol_list) <required>: Remove.
10552
863d01bd
PA
105532015-08-06 Pedro Alves <palves@redhat.com>
10554
10555 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10556 count if stopping and suspending threads.
10557 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10558 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10559 (linux_detach): Complete an ongoing step-over.
10560 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10561 throughout.
10562 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10563 (linux_wait_1): If passing a signal to the inferior after
10564 finishing a step-over, unsuspend and re-resume all lwps. If we
10565 see a single-step event but the thread should be continuing, don't
10566 pass the trap to gdb.
10567 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10568 internal_error instead of gdb_assert.
10569 (enqueue_pending_signal): New function.
10570 (check_ptrace_stopped_lwp_gone): Add debug output.
10571 (start_step_over): Use internal_error instead of gdb_assert.
10572 (complete_ongoing_step_over): New function.
10573 (linux_resume_one_thread): Don't resume a suspended thread.
10574 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10575 it stepping.
10576
00db26fa
PA
105772015-08-06 Pedro Alves <palves@redhat.com>
10578
10579 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10580 (linux_thread_alive): Use lwp_is_marked_dead.
10581 (extended_event_reported): Delete.
10582 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10583 instead of extended_event_reported.
10584 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10585 as well.
10586 (lwp_is_marked_dead): New function.
10587 (lwp_running): Use lwp_is_marked_dead.
10588 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10589 comment.
10590
ad071a30
PA
105912015-08-06 Pedro Alves <palves@redhat.com>
10592
10593 * linux-low.c (linux_wait_1): Move fork event output out of the
10594 !report_to_gdb check. Pass event_child->waitstatus to
10595 target_waitstatus_to_string instead of ourstatus.
10596
524b57e6
YQ
105972015-08-04 Yao Qi <yao.qi@linaro.org>
10598
10599 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10600 if current_thread is 32 bit.
10601
6085d6f6
YQ
106022015-08-04 Yao Qi <yao.qi@linaro.org>
10603
10604 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10605 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10606 * server.c (extended_protocol): Remove "static".
10607 * server.h (extended_protocol): Declare it.
10608
8a7e4587
YQ
106092015-08-04 Yao Qi <yao.qi@linaro.org>
10610
10611 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10612 both aarch64 and aarch32.
10613 (aarch64_set_pc): Likewise.
10614
3b53ae99
YQ
106152015-08-04 Yao Qi <yao.qi@linaro.org>
10616
10617 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10618 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10619 arm-with-neon.xml to srv_xmlfiles.
10620 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10621 (is_64bit_tdesc): New function.
10622 (aarch64_linux_read_description): New function.
10623 (aarch64_arch_setup): Call aarch64_linux_read_description.
10624 (regs_info): Rename to regs_info_aarch64.
10625 (aarch64_regs_info): Return right regs_info.
10626 (initialize_low_arch): Call initialize_low_arch_aarch32.
10627
bd9e6534
YQ
106282015-08-04 Yao Qi <yao.qi@linaro.org>
10629
10630 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10631 * linux-aarch32-low.c: New file.
10632 * linux-aarch32-low.h: New file.
10633 * linux-arm-low.c (arm_fill_gregset): Move it to
10634 linux-aarch32-low.c.
10635 (arm_store_gregset): Likewise.
10636 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10637 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10638 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10639 (regs_info): Rename to regs_info_arm.
10640 (arm_regs_info): Return regs_info_aarch32 if
10641 have_ptrace_getregset is 1 and target description is
10642 arm_with_neon or arm_with_vfpv3.
10643 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10644 Call initialize_low_arch_aarch32 instead.
10645
ded48a5e
YQ
106462015-08-04 Yao Qi <yao.qi@linaro.org>
10647
10648 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10649 * linux-low.c: ... here.
10650 * linux-low.h (have_ptrace_getregset): Declare it.
10651
96e9210f
PA
106522015-08-04 Pedro Alves <palves@redhat.com>
10653
10654 * thread-db.c (struct thread_db): Use new typedefs.
10655 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10656 CHK calls.
10657 (disable_thread_event_reporting): Cast result of dlsym to
10658 destination function pointer type.
10659 (thread_db_mourn): Use td_ta_delete_ftype.
10660
af60a1ef
SL
106612015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10662
10663 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10664 arch variant.
10665 (CDX_BREAKPOINT): Define for R2.
10666 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10667 (the_low_target): Add comments.
10668
e8b41681
YQ
106692015-07-30 Yao Qi <yao.qi@linaro.org>
10670
10671 * linux-arm-low.c (arm_hwcap): Remove it.
10672 (arm_read_description): New local variable arm_hwcap. Don't
10673 set arm_hwcap to zero.
10674
89abb039
YQ
106752015-07-30 Yao Qi <yao.qi@linaro.org>
10676
10677 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10678 Use regcache->tdesc instead.
10679 (arm_store_wmmxregset): Likewise.
10680 (arm_fill_vfpregset): Likewise.
10681 (arm_store_vfpregset): Likewise.
10682
deca266c
YQ
106832015-07-30 Yao Qi <yao.qi@linaro.org>
10684
10685 * linux-arm-low.c: Include arch/arm.h.
10686 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10687 (arm_store_gregset): Likewise.
10688
aa58a496
SM
106892015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10690
10691 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10692 ptrace's 4th parameter.
10693
50904b25
YQ
106942015-07-27 Yao Qi <yao.qi@linaro.org>
10695
10696 * configure.srv (case aarch64*-*-linux*): Don't set
10697 srv_linux_usrregs.
10698
5826e159
PA
106992015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10700
10701 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10702 sys/ptrace.h.
10703 * linux-arm-low.c: Likewise.
10704 * linux-cris-low.c: Likewise.
10705 * linux-crisv32-low.c: Likewise.
10706 * linux-low.c: Likewise.
10707 * linux-m68k-low.c: Likewise.
10708 * linux-mips-low.c: Likewise.
10709 * linux-nios2-low.c: Likewise.
10710 * linux-s390-low.c: Likewise.
10711 * linux-sparc-low.c: Likewise.
10712 * linux-tic6x-low.c: Likewise.
10713 * linux-tile-low.c: Likewise.
10714 * linux-x86-low.c: Likewise.
10715
54019719
PA
107162015-07-24 Pedro Alves <palves@redhat.com>
10717
10718 * config.in: Regenerate.
10719 * configure: Regenerate.
10720
eb7aa561
PA
107212015-07-24 Pedro Alves <palves@redhat.com>
10722
10723 * acinclude.m4: Include ../ptrace.m4.
10724 * configure.ac: Call GDB_AC_PTRACE.
10725 * config.in, configure: Regenerate.
10726
55d7b841
YQ
107272015-07-24 Yao Qi <yao.qi@linaro.org>
10728
10729 * linux-low.c (linux_create_inferior): Remove setting to
10730 proc->priv->new_inferior.
10731 (linux_attach): Likewise.
10732 (linux_low_filter_event): Likewise.
10733 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10734
c06cbd92
YQ
107352015-07-24 Yao Qi <yao.qi@linaro.org>
10736
10737 * linux-low.c (linux_arch_setup): New function.
10738 (linux_low_filter_event): If proc->tdesc is NULL and
10739 proc->attached is true, call the_low_target.arch_setup.
10740 Otherwise, keep status pending, and return.
10741 (linux_resume_one_lwp_throw): Don't call get_pc if
10742 thread->while_stepping isn't NULL. Don't call
10743 get_thread_regcache if proc->tdesc is NULL.
10744 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10745 (linux_target_ops): Install arch_setup.
10746 * server.c (start_inferior): Call the_target->arch_setup.
10747 * target.h (struct target_ops) <arch_setup>: New field.
10748 (target_arch_setup): New marco.
10749 * lynx-low.c (lynx_target_ops): Update.
10750 * nto-low.c (nto_target_ops): Update.
10751 * spu-low.c (spu_target_ops): Update.
10752 * win32-low.c (win32_target_ops): Update.
10753
5ae3ebba
YQ
107542015-07-24 Yao Qi <yao.qi@linaro.org>
10755
10756 * linux-low.c (linux_add_process): Don't set
10757 proc->priv->new_inferior.
10758 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10759 (linux_attach): Likewise.
10760
eb97750b
YQ
107612015-07-24 Yao Qi <yao.qi@linaro.org>
10762
10763 * server.c (start_inferior): Code refactor.
10764
51aee833
YQ
107652015-07-24 Yao Qi <yao.qi@linaro.org>
10766
10767 * server.c (process_serial_event): Set general_thread.
10768
af1b22f3
YQ
107692015-07-21 Yao Qi <yao.qi@linaro.org>
10770
10771 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10772 aarch64_linux_get_debug_reg_capacity.
10773
554717a3
YQ
107742015-07-17 Yao Qi <yao.qi@linaro.org>
10775
10776 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10777 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10778 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10779 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10780 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10781 (AARCH64_HWP_ALIGNMENT): Likewise.
10782 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10783 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10784 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10785 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10786 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10787 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10788 (struct aarch64_debug_reg_state): Likewise.
10789 (struct arch_lwp_info): Likewise.
10790 (aarch64_align_watchpoint): Likewise.
10791 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10792 (aarch64_watchpoint_length): Likewise.
10793 (aarch64_point_encode_ctrl_reg): Likewise
10794 (aarch64_point_is_aligned): Likewise.
10795 (aarch64_align_watchpoint): Likewise.
10796 (aarch64_linux_set_debug_regs):
10797 (aarch64_dr_state_insert_one_point): Likewise.
10798 (aarch64_dr_state_remove_one_point): Likewise.
10799 (aarch64_handle_breakpoint): Likewise.
10800 (aarch64_handle_aligned_watchpoint): Likewise.
10801 (aarch64_handle_unaligned_watchpoint): Likewise.
10802 (aarch64_handle_watchpoint): Likewise.
10803
c67ca4de
YQ
108042015-07-17 Yao Qi <yao.qi@linaro.org>
10805
10806 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10807 and don't aarch64_get_debug_reg_state. All callers update.
10808 (aarch64_handle_aligned_watchpoint): Likewise.
10809 (aarch64_handle_unaligned_watchpoint): Likewise.
10810 (aarch64_handle_watchpoint): Likewise.
10811 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10812 (aarch64_remove_point): Likewise.
10813
25abf979
YQ
108142015-07-17 Yao Qi <yao.qi@linaro.org>
10815
10816 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10817 debug_printf.
10818 (aarch64_handle_unaligned_watchpoint): Likewise.
10819
db1ff28b
JK
108202015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10821
10822 Revert the previous 3 commits:
10823 Move gdb_regex* to common/
10824 Move linux_find_memory_regions_full & co.
10825 gdbserver build-id attribute generator
10826
700ca40f
JK
108272015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10828 Jan Kratochvil <jan.kratochvil@redhat.com>
10829
10830 gdbserver build-id attribute generator.
10831 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10832 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10833 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10834 (find_phdr): New.
10835 (get_dynamic): Use find_pdhr to traverse program headers.
10836 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10837 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10838 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10839 (get_hex_build_id): New.
10840 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10841 to reply XML document.
10842
9904185c
JK
108432015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10844 Jan Kratochvil <jan.kratochvil@redhat.com>
10845
10846 * target.c: Include target/target-utils.h and fcntl.h.
10847 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10848 (target_fileio_read_stralloc): New functions.
10849
6e5b4429
JK
108502015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10851
10852 * Makefile.in (OBS): Add gdb_regex.o.
10853 (gdb_regex.o): New.
10854 * config.in: Rebuilt.
10855 * configure: Rebuilt.
10856
ddc98fbf
JK
108572015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10858 Jan Kratochvil <jan.kratochvil@redhat.com>
10859
10860 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10861 * Makefile.in (OBS): Add target-utils.o.
10862 (linux-maps.o, target-utils.o): New.
10863 * configure.srv (srv_linux_obj): Add linux-maps.o.
10864
e57bb7a0
PL
108652015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10866
10867 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10868 function, return 1.
10869 (the_low_target): Install it.
10870
586b02a9
PA
108712015-07-14 Pedro Alves <palves@redhat.com>
10872
10873 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10874 Instead, ignore ECHILD, and throw an error for other errnos.
10875
58c1b36c
PA
108762015-07-10 Pedro Alves <palves@redhat.com>
10877
10878 * event-loop.c (struct callback_event) <data>: Change type to
10879 gdb_client_data instance instead of gdb_client_data pointer.
10880 (append_callback_event): Adjust.
10881
421530db
PL
108822015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10883
10884 * linux-aarch64-low.c: Add comments for each linux_target_ops
10885 method. Remove comments already covered in target_ops and
10886 linux_target_ops definitions.
10887 (the_low_target): Add comments for each unimplemented method.
10888
c2d65f38
YQ
108892015-07-09 Yao Qi <yao.qi@linaro.org>
10890
10891 * linux-aarch64-low.c (aarch64_regmap): Remove.
10892 (aarch64_usrregs_info): Remove.
10893 (regs_info): Set field usrregs to NULL.
10894
b20a6524
MM
108952015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10896
10897 * linux-low.c: Include "rsp-low.h"
10898 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10899 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10900 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10901 (handle_btrace_enable_pt): New.
10902 (handle_btrace_general_set): Support "pt".
10903 (handle_btrace_conf_general_set): Support "pt:size".
10904
96c97461
PL
109052015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10906
10907 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10908 Z_PACKET_SW_BP.
10909
37d66942
PL
109102015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10911
10912 * linux-aarch64-low.c: Remove comment about endianness.
10913 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10914 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10915 memcmp.
10916
dc06243f
GB
109172015-06-24 Gary Benson <gbenson@redhat.com>
10918
10919 * linux-i386-ipa.c (stdint.h): Do not include.
10920 * lynx-i386-low.c (stdint.h): Likewise.
10921 * lynx-ppc-low.c (stdint.h): Likewise.
10922 * mem-break.c (stdint.h): Likewise.
10923 * thread-db.c (stdint.h): Likewise.
10924 * tracepoint.c (stdint.h): Likewise.
10925 * win32-low.c (stdint.h): Likewise.
10926
124e13d9
SM
109272015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10928
10929 * server.c (write_qxfer_response): Update call to
10930 remote_escape_output.
10931
909c2cda
JK
109322015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10933 Jan Kratochvil <jan.kratochvil@redhat.com>
10934
10935 Merge multiple hex conversions.
10936 * gdbreplay.c (tohex): Rename to 'fromhex'.
10937 (logchar): Use fromhex.
10938
24c05f46
JK
109392015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10940
10941 * server.c (handle_qxfer_libraries): Set `version' attribute for
10942 <library-list>.
10943
14d2069a
GB
109442015-06-10 Gary Benson <gbenson@redhat.com>
10945
10946 * target.h (struct target_ops) <multifs_open>: New field.
10947 <multifs_unlink>: Likewise.
10948 <multifs_readlink>: Likewise.
10949 * linux-low.c (nat/linux-namespaces.h): New include.
10950 (linux_target_ops): Initialize the_target->multifs_open,
10951 the_target->multifs_unlink and the_target->multifs_readlink.
10952 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10953 * hostio.c (hostio_fs_pid): New static variable.
10954 (hostio_handle_new_gdb_connection): New function.
10955 (handle_setfs): Likewise.
10956 (handle_open): Use the_target->multifs_open as appropriate.
10957 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10958 (handle_readlink): Use the_target->multifs_readlink as
10959 appropriate.
10960 (handle_vFile): Handle vFile:setfs packets.
10961 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10962 after target_handle_new_gdb_connection.
10963
4b8b5e72
GB
109642015-06-10 Gary Benson <gbenson@redhat.com>
10965
10966 * configure.ac (AC_CHECK_FUNCS): Add setns.
10967 * config.in: Regenerate.
10968 * configure: Likewise.
10969 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10970 (linux-namespaces.o): New rule.
10971 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10972
3ac2e371
GB
109732015-06-09 Gary Benson <gbenson@redhat.com>
10974
10975 * hostio.c (handle_open): Process mode argument with
10976 fileio_to_host_mode.
10977
ca9b78ce
YQ
109782015-06-01 Yao Qi <yao.qi@linaro.org>
10979
10980 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10981 * linux-x86-low.c: Likewise.
10982
bfacd19d
DB
109832015-05-28 Don Breazeal <donb@codesourcery.com>
10984
10985 * linux-low.c (handle_extended_wait): Initialize
10986 thread_info.last_resume_kind for new fork children.
10987
452003ef
PA
109882015-05-15 Pedro Alves <palves@redhat.com>
10989
10990 * target.h (target_handle_new_gdb_connection): Rewrite using if
10991 wrapped in do/while.
10992
1041a03c
JB
109932015-05-14 Joel Brobecker <brobecker@adacore.com>
10994
10995 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10996 * configure, config.in: Regenerate.
10997 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10998 Declare typedef.
10999
c269dbdb
DB
110002015-05-12 Don Breazeal <donb@codesourcery.com>
11001
11002 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11003 PTRACE_EVENT_VFORK_DONE.
11004 (linux_low_ptrace_options, extended_event_reported): Add vfork
11005 events.
11006 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11007 and "vforkdone" for RSP 'T' Stop Reply Packet.
11008 * server.h (report_vfork_events): Declare
11009 global variable.
11010
3a8a0396
DB
110112015-05-12 Don Breazeal <donb@codesourcery.com>
11012
11013 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11014 (the_low_target) <new_fork>: Initialize new member.
11015 * linux-arm-low.c (arm_new_fork): New function.
11016 (the_low_target) <new_fork>: Initialize new member.
11017 * linux-low.c (handle_extended_wait): Call new target function
11018 new_fork.
11019 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11020 * linux-mips-low.c (mips_add_watchpoint): New function
11021 extracted from mips_insert_point.
11022 (the_low_target) <new_fork>: Initialize new member.
11023 (mips_linux_new_fork): New function.
11024 (mips_insert_point): Call mips_add_watchpoint.
11025 * linux-x86-low.c (x86_linux_new_fork): New function.
11026 (the_low_target) <new_fork>: Initialize new member.
11027
de0d863e
DB
110282015-05-12 Don Breazeal <donb@codesourcery.com>
11029
11030 * linux-low.c (handle_extended_wait): Implement return value,
11031 rename argument 'event_child' to 'event_lwp', handle
11032 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11033 (linux_low_ptrace_options): New function.
11034 (linux_low_filter_event): Call linux_low_ptrace_options,
11035 use different argument fo linux_enable_event_reporting,
11036 use return value from handle_extended_wait.
11037 (extended_event_reported): New function.
11038 (linux_wait_1): Call extended_event_reported and set
11039 status to report fork events.
11040 (linux_write_memory): Add pid to debug message.
11041 (reset_lwp_ptrace_options_callback): New function.
11042 (linux_handle_new_gdb_connection): New function.
11043 (linux_target_ops): Initialize new structure member.
11044 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11045 * lynx-low.c: Initialize new structure member.
11046 * remote-utils.c (prepare_resume_reply): Implement stop reason
11047 "fork" for "T" stop message.
11048 * server.c (handle_query): Call handle_new_gdb_connection.
11049 * server.h (report_fork_events): Declare global flag.
11050 * target.h (struct target_ops) <handle_new_gdb_connection>:
11051 New member.
11052 (target_handle_new_gdb_connection): New macro.
11053 * win32-low.c: Initialize new structure member.
11054
ddcbc397
DB
110552015-05-12 Don Breazeal <donb@codesourcery.com>
11056
11057 * mem-break.c (APPEND_TO_LIST): Define macro.
11058 (clone_agent_expr): New function.
11059 (clone_one_breakpoint): New function.
11060 (clone_all_breakpoints): New function.
11061 * mem-break.h: Declare new functions.
11062
89245bc0
DB
110632015-05-12 Don Breazeal <donb@codesourcery.com>
11064
11065 * linux-low.c (linux_supports_fork_events): New function.
11066 (linux_supports_vfork_events): New function.
11067 (linux_target_ops): Initialize new structure members.
11068 (initialize_low): Call linux_check_ptrace_features.
11069 * lynx-low.c (lynx_target_ops): Initialize new structure
11070 members.
11071 * server.c (report_fork_events, report_vfork_events):
11072 New global flags.
11073 (handle_query): Add new features to qSupported packet and
11074 response.
11075 (captured_main): Initialize new global variables.
11076 * target.h (struct target_ops) <supports_fork_events>:
11077 New member.
11078 <supports_vfork_events>: New member.
11079 (target_supports_fork_events): New macro.
11080 (target_supports_vfork_events): New macro.
11081 * win32-low.c (win32_target_ops): Initialize new structure
11082 members.
11083
835205d0
GB
110842015-05-12 Gary Benson <gbenson@redhat.com>
11085
11086 * server.c (handle_qxfer_exec_file): Use current process
11087 if annex is empty.
11088
21e94bd9
SL
110892015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11090
11091 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11092 Remove HAVE_PTRACE_GETREGS conditionals.
11093 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11094 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11095
45614f15
YQ
110962015-05-08 Yao Qi <yao.qi@linaro.org>
11097
11098 * linux-low.c (linux_supports_conditional_breakpoints): New
11099 function.
11100 (linux_target_ops): Install new target method.
11101 * lynx-low.c (lynx_target_ops): Install NULL hook for
11102 supports_conditional_breakpoints.
11103 * nto-low.c (nto_target_ops): Likewise.
11104 * spu-low.c (spu_target_ops): Likewise.
11105 * win32-low.c (win32_target_ops): Likewise.
11106 * server.c (handle_query): Check
11107 target_supports_conditional_breakpoints.
11108 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11109 New field.
11110 (target_supports_conditional_breakpoints): New macro.
11111
80ad801e
PA
111122015-05-06 Pedro Alves <palves@redhat.com>
11113
11114 PR server/18081
11115 * server.c (start_inferior): If the process exits, mourn it.
11116
819843c7
GB
111172015-04-21 Gary Benson <gbenson@redhat.com>
11118
11119 * hostio.c (fileio_open_flags_to_host): Factored out to
11120 fileio_to_host_openflags in common/fileio.c. Single use
11121 updated.
11122
a2d5a9d7
MF
111232015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11124
11125 * linux-xtensa-low.c (xtensa_fill_gregset)
11126 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11127 XCHAL_HAVE_LOOP.
11128
deb44829
MF
111292015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11130
11131 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11132 (regs_info): Replace usrregs pointer with NULL.
11133
e57f1de3
GB
111342015-04-17 Gary Benson <gbenson@redhat.com>
11135
11136 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11137 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11138 * server.c (handle_qxfer_exec_file): New function.
11139 (qxfer_packets): Add exec-file entry.
11140 (handle_query): Report qXfer:exec-file:read as supported packet.
11141
62828379
RN
111422015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11143
11144 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11145
b88bb450
GB
111462015-04-09 Gary Benson <gbenson@redhat.com>
11147
11148 * hostio-errno.c (errno_to_fileio_error): Remove function.
11149 Update caller to use remote_fileio_to_fio_error.
11150
c8f4bfdd
YQ
111512015-04-09 Yao Qi <yao.qi@linaro.org>
11152
11153 * linux-low.c (linux_insert_point): Call
11154 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11155 (linux_remove_point): Call remove_memory_breakpoint if type is
11156 raw_bkpt_type_sw.
11157 * linux-x86-low.c (x86_insert_point): Don't call
11158 insert_memory_breakpoint.
11159 (x86_remove_point): Don't call remove_memory_breakpoint.
11160
41f98f02
PA
111612015-04-01 Pedro Alves <palves@redhat.com>
11162 Cleber Rosa <crosa@redhat.com>
11163
11164 * server.c (gdbserver_usage): Reorganize and extend the usage
11165 message.
11166
2bf6fb9d
PA
111672015-03-24 Pedro Alves <palves@redhat.com>
11168
11169 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11170 output. Also dump TRAP_TRACE.
11171 (linux_low_filter_event): In debug output, distinguish a
11172 resume_stop SIGSTOP from a delayed SIGSTOP.
11173
369f6daa
GB
111742015-03-24 Gary Benson <gbenson@redhat.com>
11175
11176 * linux-x86-low.c (x86_linux_new_thread): Moved to
11177 nat/x86-linux.c.
11178 (x86_linux_prepare_to_resume): Likewise.
11179
8e5d4070
GB
111802015-03-24 Gary Benson <gbenson@redhat.com>
11181
11182 * Makefile.in (x86-linux-dregs.o): New rule.
11183 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11184 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11185 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11186 (x86_linux_dr_get): Likewise.
11187 (x86_linux_dr_set): Likewise.
11188 (update_debug_registers_callback): Likewise.
11189 (x86_linux_dr_set_addr): Likewise.
11190 (x86_linux_dr_get_addr): Likewise.
11191 (x86_linux_dr_set_control): Likewise.
11192 (x86_linux_dr_get_control): Likewise.
11193 (x86_linux_dr_get_status): Likewise.
11194 (x86_linux_update_debug_registers): Likewise.
11195
2b95d440
GB
111962015-03-24 Gary Benson <gbenson@redhat.com>
11197
11198 * linux-x86-low.c (x86_linux_update_debug_registers):
11199 New function, factored out from...
11200 (x86_linux_prepare_to_resume): ...this.
11201
14b0bc68
GB
112022015-03-24 Gary Benson <gbenson@redhat.com>
11203
11204 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11205 (x86_linux_dr_set): Likewise.
11206 (update_debug_registers_callback): Likewise.
11207 (x86_linux_dr_set_addr): Likewise.
11208 (x86_linux_dr_get_addr): Likewise.
11209 (x86_linux_dr_set_control): Likewise.
11210 (x86_linux_dr_get_control): Likewise.
11211 (x86_linux_dr_get_status): Likewise.
11212 (x86_linux_prepare_to_resume): Likewise.
11213
5dfe6ca8
GB
112142015-03-24 Gary Benson <gbenson@redhat.com>
11215
11216 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11217 Use perror_with_name. Pass string through gettext.
11218 (x86_linux_dr_set): Likewise.
11219
d33472ad
GB
112202015-03-24 Gary Benson <gbenson@redhat.com>
11221
11222 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11223 (x86_linux_dr_set_addr): ...this.
11224 (x86_dr_low_get_addr): Rename to...
11225 (x86_linux_dr_get_addr): ...this.
11226 (x86_dr_low_set_control): Rename to...
11227 (x86_linux_dr_set_control): ...this.
11228 (x86_dr_low_get_control): Rename to...
11229 (x86_linux_dr_get_control): ...this.
11230 (x86_dr_low_get_status): Rename to...
11231 (x86_linux_dr_get_status): ...this.
11232 (x86_dr_low): Update with new function names.
11233
4b134ca1
GB
112342015-03-24 Gary Benson <gbenson@redhat.com>
11235
11236 * Makefile.in (x86-linux.o): New rule.
11237 * configure.srv: Add x86-linux.o to relevant targets.
11238 * linux-low.c (lwp_set_arch_private_info): New function.
11239 (lwp_arch_private_info): Likewise.
11240 * linux-x86-low.c: Include nat/x86-linux.h.
11241 (arch_lwp_info): Removed structure.
11242 (update_debug_registers_callback):
11243 Use lwp_set_debug_registers_changed.
11244 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11245 and lwp_set_debug_registers_changed.
11246 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11247
34c703da
GB
112482015-03-24 Gary Benson <gbenson@redhat.com>
11249
11250 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11251 * linux-arm-low.c (arm_new_thread): Likewise.
11252 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11253 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11254 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11255 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11256
cff068da
GB
112572015-03-24 Gary Benson <gbenson@redhat.com>
11258
11259 * linux-low.c (ptid_of_lwp): New function.
11260 (lwp_is_stopped): Likewise.
11261 (lwp_stop_reason): Likewise.
11262 * linux-x86-low.c (update_debug_registers_callback):
11263 Use lwp_is_stopped.
11264 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11265 lwp_stop_reason.
11266
b2f7c7e8
GB
112672015-03-24 Gary Benson <gbenson@redhat.com>
11268
11269 * linux-low.h (linux_stop_lwp): Remove declaration.
11270
6d4ee8c6
GB
112712015-03-24 Gary Benson <gbenson@redhat.com>
11272
11273 * linux-low.h: Include nat/linux-nat.h.
11274 * linux-low.c (iterate_over_lwps_args): New structure.
11275 (iterate_over_lwps_filter): New function.
11276 (iterate_over_lwps): Likewise.
11277 * linux-x86-low.c (update_debug_registers_callback):
11278 Update signature to what iterate_over_lwps expects.
11279 Remove PID check that iterate_over_lwps now performs.
11280 (x86_dr_low_set_addr): Use iterate_over_lwps.
11281 (x86_dr_low_set_control): Likewise.
11282
70a0bb6b
GB
112832015-03-24 Gary Benson <gbenson@redhat.com>
11284
11285 * linux-x86-low.c (x86_debug_reg_state): New function.
11286 (x86_linux_prepare_to_resume): Use the above.
11287
7b669087
GB
112882015-03-24 Gary Benson <gbenson@redhat.com>
11289
11290 * linux-low.c (current_lwp_ptid): New function.
11291 * linux-x86-low.c: Include nat/linux-nat.h.
11292 (x86_dr_low_get_addr): Use current_lwp_ptid.
11293 (x86_dr_low_get_control): Likewise.
11294 (x86_dr_low_get_status): Likewise.
11295
eef49a3d
PA
112962015-03-20 Pedro Alves <palves@redhat.com>
11297
11298 * tracepoint.c (cmd_qtstatus): Make "str" const.
11299
b2333d22
PA
113002015-03-20 Pedro Alves <palves@redhat.com>
11301
11302 * server.c (handle_general_set): Make "req_str" const.
11303
23f238d3
PA
113042015-03-19 Pedro Alves <palves@redhat.com>
11305
11306 * linux-low.c (linux_resume_one_lwp): Rename to ...
11307 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11308 instead call perror_with_name.
11309 (check_ptrace_stopped_lwp_gone): New function.
11310 (linux_resume_one_lwp): Reimplement as wrapper around
11311 linux_resume_one_lwp_throw that swallows errors if the LWP is
11312 gone.
11313
91baf43f
PA
113142015-03-19 Pedro Alves <palves@redhat.com>
11315
11316 * linux-low.c (count_events_callback, select_event_lwp_callback):
11317 No longer check whether the thread has resume_stop as last resume
11318 kind.
11319
8bf3b159
PA
113202015-03-19 Pedro Alves <palves@redhat.com>
11321
11322 * linux-low.c (count_events_callback, select_event_lwp_callback):
11323 Use the lwp's status_pending_p field, not the thread's.
11324
b90fc188
PA
113252015-03-19 Pedro Alves <palves@redhat.com>
11326
11327 * linux-low.c (select_event_lwp_callback): Update comments to
11328 no longer mention SIGTRAP.
11329
464b0089
GB
113302015-03-18 Gary Benson <gbenson@redhat.com>
11331
11332 * server.c (handle_query): Do not report vFile:fstat as supported.
11333
aa9e327f
GB
113342015-03-11 Gary Benson <gbenson@redhat.com>
11335
11336 * hostio.c (sys/types.h): New include.
11337 (sys/stat.h): Likewise.
11338 (common-remote-fileio.h): Likewise.
11339 (handle_fstat): New function.
11340 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11341
791c0056
GB
113422015-03-11 Gary Benson <gbenson@redhat.com>
11343
11344 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11345 struct stat.st_blocks and struct stat.st_blksize.
11346 * configure: Regenerate.
11347 * config.in: Likewise.
11348 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11349 (OBS): Add common-remote-fileio.o.
11350 (common-remote-fileio.o): New rule.
11351
9a9df970
PA
113522015-03-09 Pedro Alves <palves@redhat.com>
11353
11354 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11355 'struct sockaddr' pointer in 'accept' call.
11356
9eb1356e
PA
113572015-03-09 Pedro Alves <palves@redhat.com>
11358
11359 Revert:
11360 2015-03-07 Pedro Alves <palves@redhat.com>
11361 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11362 or <winsock2.h> here. Instead include "gdb_socket.h".
11363 (remote_open): Use union gdb_sockaddr_u.
11364 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11365 or <winsock2.h> here. Instead include "gdb_socket.h".
11366 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11367 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11368 or <sys/un.h>.
11369 (init_named_socket, gdb_agent_helper_thread): Use union
11370 gdb_sockaddr_u.
11371
aac331e4
PA
113722015-03-07 Pedro Alves <palves@redhat.com>
11373
11374 * configure.ac (build_warnings): Move
11375 -Wdeclaration-after-statement to the C-specific set.
11376 * configure: Regenerate.
11377
366c75fc
PA
113782015-03-07 Pedro Alves <palves@redhat.com>
11379
11380 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11381 or <winsock2.h> here. Instead include "gdb_socket.h".
11382 (remote_open): Use union gdb_sockaddr_u.
11383 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11384 or <winsock2.h> here. Instead include "gdb_socket.h".
11385 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11386 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11387 or <sys/un.h>.
11388 (init_named_socket, gdb_agent_helper_thread): Use union
11389 gdb_sockaddr_u.
11390
492d29ea
PA
113912015-03-07 Pedro Alves <palves@redhat.com>
11392
11393 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11394 instead.
11395
60a191ed
YQ
113962015-03-06 Yao Qi <yao.qi@linaro.org>
11397
11398 * linux-aarch64-low.c (aarch64_insert_point): Use
11399 show_debug_regs as a boolean.
11400 (aarch64_remove_point): Likewise.
11401
f5771b1d
PA
114022015-03-05 Pedro Alves <palves@redhat.com>
11403
11404 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11405 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11406 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11407 * nto-low.c (nto_target_ops): Likewise.
11408 * spu-low.c (spu_target_ops): Likewise.
11409 * win32-low.c (win32_target_ops): Likewise.
11410
3e572f71
PA
114112015-03-04 Pedro Alves <palves@redhat.com>
11412
72f4393d 11413 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11414 Decide whether a breakpoint triggered based on the SIGTRAP's
11415 siginfo.si_code.
72f4393d
L
11416 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11417 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11418 (linux_low_filter_event): Check for breakpoints before checking
11419 watchpoints.
11420 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11421 siginfo.si_code.
72f4393d
L
11422 (linux_stopped_by_sw_breakpoint)
11423 (linux_supports_stopped_by_sw_breakpoint)
11424 (linux_stopped_by_hw_breakpoint)
11425 (linux_supports_stopped_by_hw_breakpoint): New functions.
11426 (linux_target_ops): Install new target methods.
3e572f71 11427
1ec68e26
PA
114282015-03-04 Pedro Alves <palves@redhat.com>
11429
11430 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11431 * server.c (swbreak_feature, hwbreak_feature): New globals.
11432 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11433 (captured_main): Clear swbreak_feature and hwbreak_feature.
11434 * server.h (swbreak_feature, hwbreak_feature): Declare.
11435 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11436 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11437 supports_stopped_by_hw_breakpoint>: New fields.
11438 (target_supports_stopped_by_sw_breakpoint)
11439 (target_stopped_by_sw_breakpoint)
11440 (target_supports_stopped_by_hw_breakpoint)
11441 (target_stopped_by_hw_breakpoint): Declare.
11442
15c66dd6
PA
114432015-03-04 Pedro Alves <palves@redhat.com>
11444
11445 enum lwp_stop_reason -> enum target_stop_reason
11446 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11447 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11448 (linux_wait_1, stuck_in_jump_pad_callback)
11449 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11450 (linux_stopped_by_watchpoint):
11451 * linux-low.h (enum lwp_stop_reason): Delete.
11452 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11453 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11454
98fc70d6
YQ
114552015-03-04 Yao Qi <yao.qi@linaro.org>
11456
11457 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11458
dd2ac174
GB
114592015-03-03 Gary Benson <gbenson@redhat.com>
11460
11461 * hostio.c (handle_vFile): Fix prefix lengths.
11462
d68e53f4
MM
114632015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11464
11465 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11466 ptr_bits.
11467
bf2d68ab
AA
114682015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11469
11470 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11471 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11472 (clean): Add "rm -f" for above C files.
11473 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11474 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11475 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11476 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11477 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11478 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11479 (init_registers_s390x_vx_linux64)
11480 (init_registers_s390x_tevx_linux64)
11481 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11482 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11483 declarations.
11484 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11485 (s390_store_vxrs_high): New functions.
11486 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11487 NT_S390_VXRS_HIGH.
11488 (s390_arch_setup): Add logic for selecting one of the new target
11489 descriptions. Activate the new vector regsets if applicable.
11490 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11491 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11492 and init_registers_s390x_tevx_linux64.
11493
c966a859
PA
114942015-03-01 Pedro Alves <palves@redhat.com>
11495
11496 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11497 parameter.
11498
4180215b
PA
114992015-02-27 Pedro Alves <palves@redhat.com>
11500
11501 * linux-x86-low.c (u_debugreg_offset): New function.
11502 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11503
749bab01
PA
115042015-02-27 Pedro Alves <palves@redhat.com>
11505
11506 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11507 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11508 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11509 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11510 (ps_lsetfpregs, ps_getpid)
11511 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11512 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11513 (ps_lsetxregs, ps_plog): Declare.
11514
3c14e5a3
PA
115152015-02-27 Pedro Alves <palves@redhat.com>
11516
11517 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11518 IP_AGENT_EXPORT_FUNC.
11519 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11520 IP_AGENT_EXPORT_FUNC.
11521 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11522 (IP_AGENT_EXPORT): Delete.
11523 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11524 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11525 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11526 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11527 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11528 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11529 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11530 (traceframe_read_count, traceframe_write_count)
11531 (traceframes_created, trace_state_variables, get_raw_reg)
11532 (get_trace_state_variable_value, set_trace_state_variable_value)
11533 (ust_loaded, helper_thread_id, cmd_buf): Use
11534 IPA_SYM_EXPORTED_NAME.
11535 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11536 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11537 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11538 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11539 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11540 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11541 EXTERN_C_PUSH/EXTERN_C_POP.
11542 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11543 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11544 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11545 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11546 (traceframe_write_count, traceframe_read_count)
11547 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11548 (about_to_request_buffer_space, get_trace_state_variable_value)
11549 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11550 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11551 EXTERN_C_PUSH/EXTERN_C_POP.
11552 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11553 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11554 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11555 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11556 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11557 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11558 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11559 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11560 Define.
11561 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11562 (IP_AGENT_EXPORT_VAR_DECL): Define.
11563 (tracing): Declare.
11564 (gdb_agent_get_raw_reg): Declare.
11565
fe978cb0
PA
115662015-02-27 Tom Tromey <tromey@redhat.com>
11567 Pedro Alves <palves@redhat.com>
11568
11569 Rename symbols whose names are reserved C++ keywords throughout.
11570
3bc3d82a
PA
115712015-02-27 Pedro Alves <palves@redhat.com>
11572
11573 * Makefile.in (COMPILER): New, get it from autoconf.
11574 (CXX): Get from autoconf instead.
11575 (COMPILE.pre): Use COMPILER.
11576 (CC-LD): Rename to ...
11577 (CC_LD): ... this. Use COMPILER.
11578 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11579 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11580 * acinclude.m4: Include build-with-cxx.m4.
11581 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11582 Disable -Werror by default if building in C++ mode.
11583 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11584 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11585 the C++ compiler. Save/restore CXXFLAGS too.
11586 * configure: Regenerate.
11587
07697489
PA
115882015-02-27 Pedro Alves <palves@redhat.com>
11589
11590 * acinclude.m4: Include libiberty.m4.
11591 * configure.ac: Call libiberty_INIT.
11592 * config.in, configure: Regenerate.
11593
9beb7c4e
PA
115942015-02-26 Pedro Alves <palves@redhat.com>
11595
11596 * linux-low.c (linux_wait_1): When incrementing the PC past a
11597 program breakpoint always use the_low_target.breakpoint_len as
11598 increment, rather than the maximum between that and
11599 the_low_target.decr_pc_after_break.
11600
8090aef2
PA
116012015-02-23 Pedro Alves <palves@redhat.com>
11602
11603 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11604 thread was doing a step-over; always adjust the PC if
11605 we stepped over a permanent breakpoint.
11606 (linux_wait_1): If we stepped over breakpoint that was on top of a
11607 permanent breakpoint, manually advance the PC past it.
11608
bc9540e8
PA
116092015-02-23 Pedro Alves <palves@redhat.com>
11610
11611 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11612 modes.
11613 (x86_fill_gregset, x86_store_gregset): Use it when handling
11614 $orig_eax.
11615
2db9a427
PA
116162015-02-20 Pedro Alves <palves@redhat.com>
11617
11618 * thread-db.c: Include "nat/linux-procfs.h".
11619 (thread_db_init): Skip listing new threads if the kernel supports
11620 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11621
afa8d396
PA
116222015-02-20 Pedro Alves <palves@redhat.com>
11623
11624 * linux-low.c (status_pending_p_callback): Use ptid_match.
11625
c9587f88
AT
116262015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11627
11628 PR breakpoints/16812
11629 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11630 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11631 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11632
b05ec7a5
AT
116332015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11634
11635 PR breakpoints/15956
11636 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11637
d33501a5
MM
116382015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11639
11640 * linux-low.c (linux_low_btrace_conf): Print size.
11641 * server.c (handle_btrace_conf_general_set): New.
11642 (hanle_general_set): Call handle_btrace_conf_general_set.
11643 (handle_query): Report Qbtrace-conf:bts:size as supported.
11644
f4abbc16
MM
116452015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11646
11647 * linux-low.c (linux_low_enable_btrace): Update parameters.
11648 (linux_low_btrace_conf): New.
11649 (linux_target_ops)<to_btrace_conf>: Initialize.
11650 * server.c (current_btrace_conf): New.
11651 (handle_btrace_enable): Rename to ...
11652 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11653 to target_enable_btrace. Update comment. Update users.
11654 (handle_qxfer_btrace_conf): New.
11655 (qxfer_packets): Add btrace-conf entry.
11656 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11657 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11658 (target_ops)<read_btrace_conf>: New.
11659 (target_enable_btrace): Update parameters.
11660 (target_read_btrace_conf): New.
11661
043c3577
MM
116622015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11663
11664 * server.c (handle_btrace_general_set): Remove call to
11665 target_supports_btrace.
11666 (supported_btrace_packets): New.
11667 (handle_query): Call supported_btrace_packets.
11668 * target.h: include btrace-common.h.
11669 (btrace_target_info): Removed.
11670 (supports_btrace, target_supports_btrace): Update parameters.
11671
734b0e4b
MM
116722015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11673
11674 * Makefile.in (SFILES): Add common/btrace-common.c.
11675 (OBS): Add common/btrace-common.o.
11676 (btrace-common.o): Add build rules.
11677 * linux-low: Include btrace-common.h.
11678 (linux_low_read_btrace): Use struct btrace_data. Call
11679 btrace_data_init and btrace_data_fini.
11680
d6c146e9
PA
116812015-02-06 Pedro Alves <palves@redhat.com>
11682
11683 * thread-db.c (find_new_threads_callback): Add debug output.
11684
20ba1ce6
PA
116852015-02-04 Pedro Alves <palves@redhat.com>
11686
11687 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11688 (resume_stopped_resumed_lwps): New function.
11689 (linux_wait_for_event_filtered): Use it.
11690
8cc73a39
SDJ
116912015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11692
11693 * Makefile.in (SFILES): Add linux-personality.c.
11694 (linux-personality.o): New rule.
11695 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11696 list of objects to be built.
11697 * linux-low.c: Include nat/linux-personality.h.
11698 (linux_create_inferior): Remove code to disable address space
11699 randomization (moved to ../nat/linux-personality.c). Create
11700 cleanup to disable address space randomization.
11701
fb23d554
SDJ
117022015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11703
11704 * Makefile.in (posix-strerror.o): New rule.
11705 (mingw-strerror.o): Likewise.
11706 * configure: Regenerated.
11707 * configure.ac: Source file ../common/common.host. Initialize new
11708 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11709
cdf43629
YQ
117102015-01-14 Yao Qi <yao@codesourcery.com>
11711
11712 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11713 (ppc-linux.o): New rule.
11714 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11715 * configure.ac: AC_CHECK_FUNCS(getauxval).
11716 * config.in: Re-generated.
11717 * configure: Re-generated.
11718 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11719 ppc64_64bit_inferior_p
11720
514c5338
YQ
117212015-01-14 Yao Qi <yao@codesourcery.com>
11722
11723 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11724 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11725 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11726 (PT_ORIG_R3, PT_TRAP): Likewise.
11727 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11728 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11729 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11730
3368c1e5
JB
117312015-01-10 Joel Brobecker <brobecker@adacore.com>
11732
11733 * i387-fp.c (i387_cache_to_xsave): In look over
11734 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11735 zmmh_low_space field by use of zmmh_high_space.
11736
582511be
PA
117372015-01-09 Pedro Alves <palves@redhat.com>
11738
11739 * linux-low.c (step_over_bkpt): Move higher up in the file.
11740 (handle_extended_wait): Don't store the stop_pc here.
11741 (get_stop_pc): Adjust comments and rename to ...
11742 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11743 stopped for a software breakpoint or hardware breakpoint.
11744 (thread_still_has_status_pending_p): New function.
11745 (status_pending_p_callback): Use
11746 thread_still_has_status_pending_p. If the event is no longer
11747 interesting, resume the LWP.
11748 (handle_tracepoints): Add assert.
11749 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11750 (wstatus_maybe_breakpoint): New function.
11751 (cancel_breakpoint): Delete function.
11752 (check_stopped_by_watchpoint): New function, factored out from
11753 linux_low_filter_event.
11754 (lp_status_maybe_breakpoint): Delete function.
11755 (linux_low_filter_event): Remove filter_ptid argument.
11756 Leave thread group exits pending here. Store the LWP's stop PC.
11757 Always leave events pending.
11758 (linux_wait_for_event_filtered): Pull all events out of the
11759 kernel, and leave them all pending.
11760 (count_events_callback, select_event_lwp_callback): Consider all
11761 events.
11762 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11763 (select_event_lwp): Only give preference to the stepping LWP in
11764 all-stop mode. Adjust comments.
11765 (ignore_event): New function.
11766 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11767 references to cancel_breakpoints. Adjust to renames. Also give
11768 equal priority to all LWPs that have had events in non-stop mode.
11769 If reporting a software breakpoint event, unadjust the LWP's PC.
11770 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11771 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11772 Adjust.
11773 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11774 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11775 (linux_stopped_by_watchpoint): Adjust.
11776 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11777 * linux-low.h (enum lwp_stop_reason): New.
11778 (struct lwp_info) <stop_pc>: Adjust comment.
11779 <stopped_by_watchpoint>: Delete field.
11780 <stop_reason>: New field.
11781 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11782 * mem-break.c (software_breakpoint_inserted_here)
11783 (hardware_breakpoint_inserted_here): New function.
11784 * mem-break.h (software_breakpoint_inserted_here)
11785 (hardware_breakpoint_inserted_here): Declare.
11786 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11787 (cancel_breakpoints): Delete.
11788 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11789 (upload_fast_traceframes): Remove references to
11790 cancel_breakpoints.
11791
a33e3959
PA
117922015-01-09 Pedro Alves <palves@redhat.com>
11793
11794 * thread-db.c (find_new_threads_callback): Ignore thread if the
11795 kernel thread ID is -1.
11796
8784d563
PA
117972015-01-09 Pedro Alves <palves@redhat.com>
11798
11799 * linux-low.c (linux_attach_fail_reason_string): Move to
11800 nat/linux-ptrace.c, and rename.
11801 (linux_attach_lwp): Update comment.
11802 (attach_proc_task_lwp_callback): New function.
11803 (linux_attach): Adjust to rename and use
11804 linux_proc_attach_tgid_threads.
11805 (linux_attach_fail_reason_string): Delete declaration.
11806
76f2b779
JB
118072015-01-01 Joel Brobecker <brobecker@adacore.com>
11808
11809 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11810 * server.c (gdbserver_version): Likewise.
11811
fafcc06a
SDJ
118122014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11813
11814 * remote-utils.c: Include ctype.h.
11815 (input_interrupt): Explicitly handle the case when the char
11816 received is the NUL byte. Improve the printing of non-ASCII
11817 characters.
11818
beed38b8
JB
118192014-12-16 Joel Brobecker <brobecker@adacore.com>
11820
11821 * linux-low.c (linux_low_filter_event): Update call to
11822 linux_enable_event_reporting following the addition of
11823 a new parameter to that function.
11824
bf330350
CU
118252014-12-16 Catalin Udma <catalin.udma@freescale.com>
11826
11827 PR server/17457
11828 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11829 (AARCH64_FPCR_REGNO): Likewise.
11830 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11831 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11832 (aarch64_store_fpregset): Likewise.
11833
5227d625
JB
118342014-12-15 Joel Brobecker <brobecker@adacore.com>
11835
11836 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11837 Remove FIXME comment about assumption about N.
11838
f93b65a0
JB
118392014-12-13 Joel Brobecker <brobecker@adacore.com>
11840
11841 * configure.ac: If large-file support is disabled in GDBserver,
11842 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11843 * configure: Regenerate.
11844
e5a9158d
AA
118452014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11846
11847 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11848 warning upon ENODATA from ptrace.
11849 * linux-s390-low.c (s390_store_tdb): New.
11850 (s390_regsets): Add regset for NT_S390_TDB.
11851
feea5f36
AA
118522014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11853
11854 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11855 without a fill_function.
11856 * linux-s390-low.c (s390_fill_last_break): Remove.
11857 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11858 (s390_arch_setup): Use regset's size instead of fill_function for
11859 loop end condition.
11860
098dbe61
AA
118612014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11862
11863 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11864 the regset's store function when ptrace returned an error.
11865 * regcache.c (get_thread_regcache): Invalidate register cache
11866 before fetching inferior's registers.
11867
28eef672
AA
118682014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11869
11870 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11871 while-loop as for-loop.
11872 (regsets_store_inferior_registers): Likewise.
11873
bdca27a2
YQ
118742014-11-28 Yao Qi <yao@codesourcery.com>
11875
11876 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11877 * config.in, configure: Re-generate.
11878 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11879 is defined.
11880
9c232dda
YQ
118812014-11-21 Yao Qi <yao@codesourcery.com>
11882
11883 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11884 (AC_CHECK_HEADERS): Remove malloc.h.
11885 * configure: Re-generated.
11886 * config.in: Re-generated.
11887 * server.h: Don't include alloca.h and malloc.h.
11888 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11889 Don't include malloc.h.
11890
43968415
JB
118912014-11-17 Joel Brobecker <brobecker@adacore.com>
11892
11893 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11894 corresponding ERRNO check in same block.
11895
40e91bc7
PA
118962014-11-12 Pedro Alves <palves@redhat.com>
11897
11898 * server.c (cont_thread): Update comment.
11899 (start_inferior, attach_inferior): No longer clear cont_thread.
11900 (handle_v_cont): No longer set cont_thread.
11901 (captured_main): Clear cont_thread each time a GDB connects.
11902
c2c118cf
PA
119032014-11-12 Pedro Alves <palves@redhat.com>
11904
11905 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11906 thread, and don't resume all threads if the Hc thread has exited.
11907
78708b7c
PA
119082014-11-12 Pedro Alves <palves@redhat.com>
11909
11910 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11911 the process group instead of to a specific LWP.
11912
a2abc7de
PA
119132014-10-15 Pedro Alves <palves@redhat.com>
11914
11915 PR server/17487
11916 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11917 parameter.
11918 (arm_set_thread_context): Delete.
11919 (the_low_target): Adjust.
11920 * win32-i386-low.c (debug_registers_changed)
11921 (debug_registers_used): Delete.
11922 (update_debug_registers_callback): New function.
11923 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11924 needing to update their debug registers.
11925 (win32_get_current_dr): New function.
11926 (x86_dr_low_get_addr, x86_dr_low_get_control)
11927 (x86_dr_low_get_status): Fetch the debug register from the thread
11928 record's context.
11929 (i386_initial_stuff): Adjust.
11930 (i386_get_thread_context): Remove current_event parameter. Don't
11931 clear debug_registers_changed nor copy DR values to
11932 debug_reg_state.
11933 (i386_set_thread_context): Delete.
11934 (i386_prepare_to_resume): New function.
11935 (i386_thread_added): Mark the thread as needing to update irs
11936 debug registers.
11937 (the_low_target): Remove i386_set_thread_context and install
11938 i386_prepare_to_resume.
11939 * win32-low.c (win32_get_thread_context): Adjust.
11940 (win32_set_thread_context): Use SetThreadContext
11941 directly.
11942 (win32_prepare_to_resume): New function.
11943 (win32_require_context): New function, factored out from ...
11944 (thread_rec): ... this.
11945 (continue_one_thread): Call win32_prepare_to_resume on each thread
11946 we're about to continue.
11947 (win32_resume): Call win32_prepare_to_resume on the event thread.
11948 * win32-low.h (struct win32_thread_info)
11949 <debug_registers_changed>: New field.
11950 (struct win32_target_ops): Change prototype of set_thread_context,
11951 delete set_thread_context and add prepare_to_resume.
11952 (win32_require_context): New declaration.
11953
a442d071
GB
119542014-10-08 Gary Benson <gbenson@redhat.com>
11955
11956 * server.h: Do not include common-exceptions.h.
11957
6f1947e8
GB
119582014-10-08 Gary Benson <gbenson@redhat.com>
11959
11960 * server.h: Do not include cleanups.h.
11961
63b434a4
JH
119622014-09-30 James Hogan <james.hogan@imgtec.com>
11963
11964 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11965 mips64-dsp-linux.c.
11966
c4d9ceb6
YQ
119672014-09-23 Yao Qi <yao@codesourcery.com>
11968
11969 * linux-low.c (lp_status_maybe_breakpoint): New function.
11970 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11971 (count_events_callback): Likewise.
11972 (select_event_lwp_callback): Likewise.
11973 (cancel_breakpoints_callback): Likewise.
11974
89a5711c
DB
119752014-09-19 Don Breazeal <donb@codesourcery.com>
11976
11977 * linux-low.c (handle_extended_wait): Call
11978 linux_ptrace_get_extended_event.
11979 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11980 linux_is_extended_waitstatus.
11981
bffc0964
JB
119822014-09-16 Joel Brobecker <brobecker@adacore.com>
11983
11984 * Makefile.in (CPPFLAGS): Define.
11985 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11986 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11987
0bfdf32f
GB
119882014-09-16 Gary Benson <gbenson@redhat.com>
11989
11990 * inferiors.h (current_inferior): Renamed as...
11991 (current_thread): New variable. All uses updated.
11992 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11993 (maybe_move_out_of_jump_pad): Likewise.
11994 (cancel_breakpoint): Likewise.
11995 (linux_low_filter_event): Likewise.
11996 (wait_for_sigstop): Likewise.
11997 (linux_resume_one_lwp): Likewise.
11998 (need_step_over_p): Likewise.
11999 (start_step_over): Likewise.
12000 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12001 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12002 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12003 and save_inferior as saved_thread.
12004 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12005 saved_thread.
12006 (regcache_invalidate_thread): Likewise.
12007 * remote-utils.c (prepare_resume_reply): Likewise.
12008 * thread-db.c (thread_db_get_tls_address): Likewise.
12009 (disable_thread_event_reporting): Likewise.
12010 (remove_thread_event_breakpoints): Likewise.
12011 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12012 as saved_thread.
12013 * target.h (set_desired_inferior): Renamed as...
12014 (set_desired_thread): New declaration. All uses updated.
12015 * server.c (myresume): Updated comment to reference thread instead
12016 of inferior.
12017 (handle_serial_event): Likewise.
12018 (handle_target_event): Likewise.
12019
361c8ade
GB
120202014-09-12 Tom Tromey <tromey@redhat.com>
12021 Gary Benson <gbenson@redhat.com>
12022
12023 * regcache.h: Include common-regcache.h.
12024 (regcache_read_pc): Don't declare.
12025 * regcache.c (get_thread_regcache_for_ptid): New function.
12026
bd9269f7
GB
120272014-09-11 Tom Tromey <tromey@redhat.com>
12028 Gary Benson <gbenson@redhat.com>
12029
12030 * symbol.c: New file.
12031 * Makefile.in (SFILES): Add symbol.c.
12032 (OBS): Add symbol.o.
12033
f8c1d06b
GB
120342014-09-11 Gary Benson <gbenson@redhat.com>
12035
12036 * target.c (target_stop_ptid, target_continue_ptid): New
12037 functions.
12038
721ec300
GB
120392014-09-11 Tom Tromey <tromey@redhat.com>
12040 Gary Benson <gbenson@redhat.com>
12041
12042 * target.h: Include target/target.h.
12043 * target.c (target_read_memory, target_read_uint32)
12044 (target_write_memory): New functions.
12045
c5e92cca
GB
120462014-09-11 Gary Benson <gbenson@redhat.com>
12047
12048 * server.h (debug_hw_points): Don't declare.
12049 * server.c (debug_hw_points): Don't define. Replace all uses
12050 with show_debug_regs.
12051 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12052 all uses with show_debug_regs.
12053
2e4bb98a
EBM
120542014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12055
12056 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12057 endianness into account.
12058 (ppc_supply_ptrace_register): Likewise.
12059
ac740bc7
JH
120602014-09-03 James Hogan <james.hogan@imgtec.com>
12061
12062 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12063 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12064
97ea6506
GB
120652014-09-03 Gary Benson <gbenson@redhat.com>
12066
12067 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12068 ALL_DEBUG_ADDRESS_REGISTERS.
12069
df7e5265
GB
120702014-09-02 Gary Benson <gbenson@redhat.com>
12071
12072 * i386-low.h: Renamed as...
12073 * x86-low.h: New file. All type, function and variable name
12074 prefixes changed from "i386_" to "x86_". All references updated.
12075 * i386-low.c: Renamed as...
12076 * x86-low.c: New file. All type, function and variable name
12077 prefixes changed from "i386_" to "x86_". All references updated.
12078
ed859da7
GB
120792014-09-02 Gary Benson <gbenson@redhat.com>
12080
12081 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12082 (x86_linux_new_thread): Likewise.
12083
860789c7
GB
120842014-08-29 Gary Benson <gbenson@redhat.com>
12085
12086 * server.h (setjmp.h): Do not include.
12087 (toplevel): Do not declare.
12088 (common-exceptions.h): Include.
12089 (cleanups.h): Likewise.
12090 * server.c (toplevel): Do not define.
12091 (exit_code): New static global.
12092 (detach_or_kill_for_exit_cleanup): New function.
12093 (main): New function. Original main renamed to...
12094 (captured_main): New function.
12095 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12096
ff55e1b5
GB
120972014-08-29 Gary Benson <gbenson@redhat.com>
12098
12099 * Makefile.in (SFILES): Add common/common-exceptions.c.
12100 (OBS): Add common-exceptions.o.
12101 (common-exceptions.o): New rule.
12102 * utils.c (prepare_to_throw_exception): New function.
12103
e9bcb658
GB
121042014-08-29 Gary Benson <gbenson@redhat.com>
12105
12106 * config.in: Regenerate.
12107 * configure: Likewise.
12108
e3180625
GB
121092014-08-29 Gary Benson <gbenson@redhat.com>
12110
12111 * Makefile.in (SFILES): Add common/cleanups.c.
12112 (OBS): cleanups.o.
12113 (cleanups.o): New rule.
12114
e3d6ba5d
GB
121152014-08-29 Gary Benson <gbenson@redhat.com>
12116
12117 * utils.c (internal_vwarning): New function.
12118
7096e886
GB
121192014-08-28 Gary Benson <gbenson@redhat.com>
12120
12121 * utils.h (fatal): Remove declaration.
12122 * utils.c (fatal): Remove function.
12123
14ce3192
GB
121242014-08-28 Gary Benson <gbenson@redhat.com>
12125
12126 * tracepoint.c (gdb_agent_init): Replace fatal with
12127 perror_with_name.
12128 (initialize_tracepoint): Likewise.
12129
50278d59
GB
121302014-08-28 Gary Benson <gbenson@redhat.com>
12131
12132 * remote-utils.c (remote_prepare): Replace fatal with error.
12133
aa96c426
GB
121342014-08-28 Gary Benson <gbenson@redhat.com>
12135
12136 * linux-low.c (linux_async): Replace fatal with warning.
12137 Tidy up and return.
12138 (linux_start_non_stop): Return -1 if linux_async failed.
12139
f7160e97
GB
121402014-08-28 Gary Benson <gbenson@redhat.com>
12141
12142 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12143 gdb_assert.
12144 (i386_dr_low_get_addr): Remove vague comment.
12145 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12146 gdb_assert.
12147
38e08fca
GB
121482014-08-28 Gary Benson <gbenson@redhat.com>
12149
12150 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12151 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12152 internal_error.
12153 (linux_resume_one_lwp): Likewise.
12154 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12155 gdb_assert.
12156 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12157 with internal_error.
12158 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12159 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12160 (find_register_by_name): Replace fatal with internal_error.
12161 (find_regno): Likewise.
12162 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12163 * thread-db.c (thread_db_create_event): Likewise.
12164 (thread_db_load_search): Likewise.
12165 (try_thread_db_load_1): Likewise.
12166 * tracepoint.c (get_jump_space_head): Replace fatal with
12167 internal_error.
12168 (claim_trampoline_space): Likewise.
12169 (have_fast_tracepoint_trampoline_buffer): Likewise.
12170 (cmd_qtstart): Likewise.
12171 (stop_tracing): Likewise.
12172 (fast_tracepoint_collecting): Likewise.
12173 (target_malloc): Likewise.
12174 (download_tracepoint): Likewise.
12175 (download_trace_state_variables): Replace check with gdb_assert.
12176 (upload_fast_traceframes): Replace fatal with internal_error.
12177
34abf635
GB
121782014-08-19 Tom Tromey <tromey@redhat.com>
12179 Gary Benson <gbenson@redhat.com>
12180
12181 * Makefile.in (SFILES): Add common/common-debug.c.
12182 (OBS): Add common-debug.o.
12183 (common-debug.o): New rule.
12184 * debug.h (debug_printf): Don't declare.
12185 * debug.c (debug_printf): Renamed and rewritten as...
12186 (debug_vprintf): New function.
12187
f6e94d78
GB
121882014-08-19 Gary Benson <gbenson@redhat.com>
12189
12190 * utils.h: Do not include print-utils.h.
12191
9239eeab
GB
121922014-08-19 Tom Tromey <tromey@redhat.com>
12193 Gary Benson <gbenson@redhat.com>
12194
12195 * server.h: Add static assertion.
12196 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12197
ef87c8bb
GB
121982014-08-19 Tom Tromey <tromey@redhat.com>
12199 Gary Benson <gbenson@redhat.com>
12200
12201 * Makefile.in (SFILES): Add common/errors.c.
12202 (OBS): Add errors.o.
12203 (IPA_OBS): Add errors-ipa.o.
12204 (errors.o): New rule.
12205 (errors-ipa.o): Likewise.
12206 * utils.h (perror_with_name, error, warning): Don't declare.
12207 * utils.c (warning): Renamed and rewritten as...
12208 (vwarning): New function.
12209 (error): Renamed and rewritten as...
12210 (verror): New function.
12211 (internal_error): Renamed and rewritten as...
12212 (internal_verror): New function.
12213
bb974a24
GB
122142014-08-07 Gary Benson <gbenson@redhat.com>
12215
12216 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12217 * configure: Regenerate.
12218 * config.in: Likewise.
12219 * server.h: Do not include errno.h.
12220 * event-loop.c: Likewise.
12221 * hostio-errno.c: Likewise.
12222 * linux-low.c: Likewise.
12223 * remote-utils.c: Likewise.
12224 * spu-low.c: Likewise.
12225 * utils.c: Likewise.
12226 * gdbreplay.c: Unconditionally include errno.h.
12227
6d3d12eb
GB
122282014-08-07 Gary Benson <gbenson@redhat.com>
12229
12230 * server.h: Do not include string.h.
12231 * event-loop.c: Likewise.
12232 * linux-low.c: Likewise.
12233 * regcache.c: Likewise.
12234 * remote-utils.c: Likewise.
12235 * spu-low.c: Likewise.
12236 * utils.c: Likewise.
12237
dccbb609
GB
122382014-08-07 Gary Benson <gbenson@redhat.com>
12239
12240 * server.h: Do not include gdb_assert.h.
12241
e76df0d0
GB
122422014-08-07 Gary Benson <gbenson@redhat.com>
12243
12244 * server.h: Do not include common-utils.h.
12245
4cb9c816
GB
122462014-08-07 Gary Benson <gbenson@redhat.com>
12247
12248 * server.h: Do not include ptid.h.
12249 * notif.h: Likewise.
12250
3995eeee
GB
122512014-08-07 Gary Benson <gbenson@redhat.com>
12252
12253 * server.h: Do not include gdb_locale.h.
12254
cb9f1a9b
GB
122552014-08-07 Gary Benson <gbenson@redhat.com>
12256
12257 * server.h: Do not include gdb/signals.h.
12258 * win32-low.c: Likewise.
12259
a5fceff8
GB
122602014-08-07 Gary Benson <gbenson@redhat.com>
12261
12262 * server.h: Do not include pathmax.h.
12263
b9391142
GB
122642014-08-07 Gary Benson <gbenson@redhat.com>
12265
12266 * server.h: Do not include libiberty.h.
12267 * linux-bfin-low.c: Likewise.
12268
0e443c87
GB
122692014-08-07 Gary Benson <gbenson@redhat.com>
12270
12271 * server.h: Do not include ansidecl.h.
12272
8ebb3f56
GB
122732014-08-07 Gary Benson <gbenson@redhat.com>
12274
12275 * linux-x86-low.c: Do not include stddef.h.
12276 * lynx-ppc-low.c: Likewise.
12277 * tracepoint.c: Likewise.
12278
8980bdf6
GB
122792014-08-07 Gary Benson <gbenson@redhat.com>
12280
12281 * server.h: Do not include stdarg.h.
12282 * nto-low.c: Likewise.
12283
d7096f71
GB
122842014-08-07 Gary Benson <gbenson@redhat.com>
12285
12286 * server.h: Do not include stdlib.h.
12287 * inferiors.c: Likewise.
12288 * linux-low.c: Likewise.
12289 * regcache.c: Likewise.
12290 * spu-low.c: Likewise.
12291 * tracepoint.c: Likewise.
12292 * utils.c: Likewise.
12293
d02f550d
GB
122942014-08-07 Gary Benson <gbenson@redhat.com>
12295
12296 * server.h: Do not include stdio.h.
12297 * linux-low.c: Likewise.
12298 * remote-utils.c: Likewise.
12299 * spu-low.c: Likewise.
12300 * utils.c: Likewise.
12301 * wincecompat.c: Likewise.
12302
87f6c4e3
GB
123032014-08-06 Gary Benson <gbenson@redhat.com>
12304
12305 * regcache.c (init_register_cache): Move conditionals inside if.
12306
7089dca4
GB
123072014-08-06 Gary Benson <gbenson@redhat.com>
12308
12309 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12310
462f517e
GB
123112014-07-31 Gary Benson <gbenson@redhat.com>
12312
12313 * ax.h: Do not include server.h.
12314 * gdbthread.h: Likewise.
12315 * lynx-low.h: Likewise.
12316 * notif.h: Likewise.
12317
976411d6
GB
123182014-07-30 Gary Benson <gbenson@redhat.com>
12319
12320 * server.h: Include common-defs.h.
12321 Do not include config.h or build-gnulib-gdbserver/config.h.
12322
d41f6d8e
GB
123232014-07-30 Gary Benson <gbenson@redhat.com>
12324
12325 * hostio-errno.c: Move server.h to top of includes list.
12326 * inferiors.c: Likewise.
12327 * linux-x86-low.c: Likewise.
12328 * notif.c: Include server.h.
12329
314c6a35
TT
123302014-07-24 Tom Tromey <tromey@redhat.com>
12331 Gary Benson <gbenson@redhat.com>
12332
12333 * server.h (CORE_ADDR): Now unsigned.
12334
69ff6be5
PA
123352014-07-16 Pedro Alves <palves@redhat.com>
12336
12337 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12338
ce9e3fe7
PA
123392014-07-15 Pedro Alves <palves@redhat.com>
12340
12341 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12342 copy.
12343
e76126e8
PA
123442014-07-11 Pedro Alves <palves@redhat.com>
12345
12346 * linux-low.c (kill_wait_lwp): New function, based on
12347 kill_one_lwp_callback, but use my_waitpid directly.
12348 (kill_one_lwp_callback, linux_kill): Use it.
12349
8e9db26e
PA
123502014-06-23 Pedro Alves <palves@redhat.com>
12351
12352 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12353 before setting DR0..DR3.
12354
698b3e08
GB
123552014-06-20 Gary Benson <gbenson@redhat.com>
12356
12357 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12358 * configure: Regenerated.
12359 * config.in: Likewise.
12360
125f8a3d
GB
123612014-06-20 Gary Benson <gbenson@redhat.com>
12362
12363 * Makefile.in (SFILES): Update locations for files moved
12364 from common to nat.
12365 (object file files): Reordered.
12366
42995dbd
GB
123672014-06-20 Gary Benson <gbenson@redhat.com>
12368
12369 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12370 (i386_dr_low_set_addr): Likewise.
12371 (i386_dr_low_get_addr): Likewise.
12372 (i386_dr_low_can_set_control): Likewise.
12373 (i386_dr_low_set_control): Likewise.
12374 (i386_dr_low_get_control): Likewise.
12375 (i386_dr_low_get_status): Likewise.
12376 (i386_get_debug_register_length): Likewise.
12377 * linux-x86-low.c (i386_dr_low_set_addr):
12378 Changed signature. Made static.
12379 (i386_dr_low_get_addr): Likewise.
12380 (i386_dr_low_set_control): Likewise.
12381 (i386_dr_low_get_control): Likewise.
12382 (i386_dr_low_get_status): Likewise.
12383 (i386_dr_low): New global variable.
12384 * win32-i386-low.c (i386_dr_low_set_addr):
12385 Changed signature. Made static.
12386 (i386_dr_low_get_addr): Likewise.
12387 (i386_dr_low_set_control): Likewise.
12388 (i386_dr_low_get_control): Likewise.
12389 (i386_dr_low_get_status): Likewise.
12390 (i386_dr_low): New global variable.
12391
e1d2394b
MS
123922014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12393
12394 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12395 * Makefile.in (AR, AR_FLAGS): Define.
12396 * configure: Regenerate.
12397
3a8ee006
GB
123982014-06-19 Gary Benson <gbenson@redhat.com>
12399
12400 * Makefile.in (i386-dregs.o): New rule.
12401 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12402 * i386-low.c (target.h): Remove include.
12403 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12404 (DR_CONTROL_SHIFT): Likewise.
12405 (DR_CONTROL_SIZE): Likewise.
12406 (DR_RW_EXECUTE): Likewise.
12407 (DR_RW_WRITE): Likewise.
12408 (DR_RW_READ): Likewise.
12409 (DR_RW_IORW): Likewise.
12410 (DR_LEN_1): Likewise.
12411 (DR_LEN_2): Likewise.
12412 (DR_LEN_4): Likewise.
12413 (DR_LEN_8): Likewise.
12414 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12415 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12416 (DR_ENABLE_SIZE): Likewise.
12417 (DR_LOCAL_SLOWDOWN): Likewise.
12418 (DR_GLOBAL_SLOWDOWN): Likewise.
12419 (DR_CONTROL_RESERVED): Likewise.
12420 (I386_DR_CONTROL_MASK): Likewise.
12421 (I386_DR_VACANT): Likewise.
12422 (I386_DR_LOCAL_ENABLE): Likewise.
12423 (I386_DR_GLOBAL_ENABLE): Likewise.
12424 (I386_DR_DISABLE): Likewise.
12425 (I386_DR_SET_RW_LEN): Likewise.
12426 (I386_DR_GET_RW_LEN): Likewise.
12427 (I386_DR_WATCH_HIT): Likewise.
12428 (i386_wp_op_t): Likewise.
12429 (i386_show_dr): Likewise.
12430 (i386_length_and_rw_bits): Likewise.
12431 (i386_insert_aligned_watchpoint): Likewise.
12432 (i386_remove_aligned_watchpoint): Likewise.
12433 (i386_handle_nonaligned_watchpoint): Likewise.
12434 i386_update_inferior_debug_regs(): Likewise.
12435 (i386_dr_insert_watchpoint): Likewise.
12436 (i386_dr_remove_watchpoint): Likewise.
12437 (i386_dr_region_ok_for_watchpoint): Likewise.
12438 (i386_dr_stopped_data_address): Likewise.
12439 (i386_dr_stopped_by_watchpoint): Likewise.
12440
8f26655c
GB
124412014-06-19 Gary Benson <gbenson@redhat.com>
12442
12443 * i386-low.c (i386_dr_show): Renamed to
12444 i386_show_dr and made static. All uses updated.
12445 (i386_dr_length_and_rw_bits): Renamed to
12446 i386_length_and_rw_bits and made static.
12447 All uses updated.
12448 (i386_dr_insert_aligned_watchpoint): Renamed to
12449 i386_insert_aligned_watchpoint and made static.
12450 All uses updated.
12451 (i386_dr_remove_aligned_watchpoint): Renamed to
12452 i386_remove_aligned_watchpoint and made static.
12453 All uses updated.
12454 (i386_dr_update_inferior_debug_regs): Renamed to
12455 i386_update_inferior_debug_regs and made static.
12456 All uses updated.
12457
b9228891
GB
124582014-06-18 Gary Benson <gbenson@redhat.com>
12459
5171def3
GB
12460 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12461 (i386_dr_low_can_set_control): Likewise.
12462 (i386_get_debug_register_length): Likewise.
12463 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12464 (i386_dr_low_can_set_control): Likewise.
12465 (i386_get_debug_register_length): Likewise.
12466
124672014-06-17 Gary Benson <gbenson@redhat.com>
12468
b9228891
GB
12469 * i386-low.h (i386-dregs.h): New include.
12470 (DR_FIRSTADDR): Now in i386-dregs.h.
12471 (DR_LASTADDR): Likewise.
12472 (DR_NADDR): Likewise.
12473 (DR_STATUS): Likewise.
12474 (DR_CONTROL): Likewise.
12475 (i386_debug_reg_state): Likewise.
12476 (i386_dr_insert_watchpoint): Likewise.
12477 (i386_dr_remove_watchpoint): Likewise.
12478 (i386_dr_region_ok_for_watchpoint): Likewise.
12479 (i386_dr_stopped_data_address): Likewise.
12480 (i386_dr_stopped_by_watchpoint): Likewise.
12481 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12482
4be83cc2
GB
124832014-06-18 Gary Benson <gbenson@redhat.com>
12484
12485 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12486 i386_dr_insert_watchpoint.
12487 (i386_low_remove_watchpoint): Renamed to
12488 i386_dr_remove_watchpoint.
12489 (i386_low_region_ok_for_watchpoint): Renamed to
12490 i386_dr_region_ok_for_watchpoint.
12491 (i386_low_stopped_data_address): Renamed to
12492 i386_dr_stopped_data_address.
12493 (i386_low_stopped_by_watchpoint): Renamed to
12494 i386_dr_stopped_by_watchpoint.
12495 * i386-low.c (i386_show_dr): Renamed to
12496 i386_dr_show and made nonstatic. All uses updated.
12497 (i386_length_and_rw_bits): Renamed to
12498 i386_dr_length_and_rw_bits and made nonstatic.
12499 All uses updated.
12500 (i386_insert_aligned_watchpoint): Renamed to
12501 i386_dr_insert_aligned_watchpoint and made nonstatic.
12502 All uses updated.
12503 (i386_remove_aligned_watchpoint): Renamed to
12504 i386_dr_remove_aligned_watchpoint and made nonstatic.
12505 All uses updated.
12506 (i386_update_inferior_debug_regs): Renamed to
12507 i386_dr_update_inferior_debug_regs and made nonstatic.
12508 All uses updated.
12509 (i386_low_insert_watchpoint): Renamed to
12510 i386_dr_insert_watchpoint. All uses updated.
12511 (i386_low_remove_watchpoint): Renamed to
12512 i386_dr_remove_watchpoint. All uses updated.
12513 (i386_low_region_ok_for_watchpoint): Renamed to
12514 i386_dr_region_ok_for_watchpoint. All uses updated.
12515 (i386_low_stopped_data_address): Renamed to
12516 i386_dr_stopped_data_address. All uses updated.
12517 (i386_low_stopped_by_watchpoint): Renamed to
12518 i386_dr_stopped_by_watchpoint. All uses updated.
12519
131aa0d4
GB
125202014-06-18 Gary Benson <gbenson@redhat.com>
12521
12522 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12523 (i386_dr_low_can_set_control): Likewise.
12524 (i386_insert_aligned_watchpoint): New check.
12525
d9305f7f
GB
125262014-06-18 Gary Benson <gbenson@redhat.com>
12527
12528 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12529 Renamed to state.
12530
e927c9fc
GB
125312014-06-18 Gary Benson <gbenson@redhat.com>
12532
12533 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12534 instead of fatal and error.
12535 (i386_handle_nonaligned_watchpoint): Likewise.
12536
1b6d4134
GB
125372014-06-18 Gary Benson <gbenson@redhat.com>
12538
12539 * i386-low.c (i386_get_debug_register_length): New macro.
12540 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12541 (i386_show_dr): Use debug_printf instead of fprintf. Use
12542 phex to format values.
12543
6e62758f
GB
125442014-06-18 Gary Benson <gbenson@redhat.com>
12545
12546 * i386-low.h: Comment changes.
12547 * i386-low.c: Likewise.
12548
fc6e2f03
GB
125492014-06-18 Gary Benson <gbenson@redhat.com>
12550
12551 * i386-low.c: Whitespace changes.
12552
f9d1eeed
TT
125532014-06-12 Tom Tromey <tromey@redhat.com>
12554
12555 * utils.c (freeargv): Remove.
12556
0b04e523
TT
125572014-06-12 Tom Tromey <tromey@redhat.com>
12558
12559 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12560 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12561 (parse_debug_format_options): Likewise.
12562 (gdbserver_usage): Likewise.
12563 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12564 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12565 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12566 against libiberty.
12567 ($(LIBGNU)): Depend on libiberty.
12568 (all-lib): Recurse into all subdirs.
12569 (install-only): Invoke "install" target in subdirs.
12570 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12571 targets.
12572 * configure: Rebuild.
12573 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12574 for vasprintf, vsnprintf, or gettimeofday.
12575 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12576 srv_tgtobj.
12577
270c9937
JB
125782014-06-05 Joel Brobecker <brobecker@adacore.com>
12579
12580 * development.sh: Delete.
12581 * Makefile.in (config.status): Adjust dependency on development.sh.
12582 * configure.ac: Adjust development.sh source call.
12583 * configure: Regenerate.
12584
0a261ed8
PA
125852014-06-02 Pedro Alves <palves@redhat.com>
12586
12587 * ax.c (gdb_free_agent_expr): New function.
12588 * ax.h (gdb_free_agent_expr): New declaration.
12589 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12590 list.
12591 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12592 static.
12593 (clear_breakpoint_conditions_and_commands): New function.
12594 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12595 (clear_breakpoint_conditions_and_commands): New declaration.
12596
e9dae05e
RR
125972014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12598
12599 * linux-aarch64-low.c (asm/ptrace.h): Include.
12600
5876f503
JK
126012014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12602
12603 Fix TLS access for -static -pthread.
12604 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12605 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12606 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12607
802e8e6d
PA
126082014-05-20 Pedro Alves <palves@redhat.com>
12609
12610 * linux-aarch64-low.c (aarch64_insert_point)
12611 (aarch64_remove_point): No longer check whether the type is
12612 supported here. Adjust to new interface.
12613 (the_low_target): Install aarch64_supports_z_point_type as
12614 supports_z_point_type method.
12615 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12616 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12617 instead of a Z packet char. Adjust.
12618 (arm_supports_z_point_type): New function.
12619 (arm_insert_point, arm_remove_point): Adjust to new interface.
12620 (the_low_target): Install arm_supports_z_point_type.
12621 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12622 (cris_insert_point, cris_remove_point): Adjust to new interface.
12623 Don't check whether the type is supported here.
12624 (the_low_target): Install cris_supports_z_point_type.
12625 * linux-low.c (linux_supports_z_point_type): New function.
12626 (linux_insert_point, linux_remove_point): Adjust to new interface.
12627 * linux-low.h (struct linux_target_ops) <insert_point,
12628 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12629 raw_breakpoint pointer parameter.
12630 <supports_z_point_type>: New method.
12631 * linux-mips-low.c (mips_supports_z_point_type): New function.
12632 (mips_insert_point, mips_remove_point): Adjust to new interface.
12633 Use mips_supports_z_point_type.
12634 (the_low_target): Install mips_supports_z_point_type.
12635 * linux-ppc-low.c (the_low_target): Install NULL as
12636 supports_z_point_type method.
12637 * linux-s390-low.c (the_low_target): Install NULL as
12638 supports_z_point_type method.
12639 * linux-sparc-low.c (the_low_target): Install NULL as
12640 supports_z_point_type method.
12641 * linux-x86-low.c (x86_supports_z_point_type): New function.
12642 (x86_insert_point): Adjust to new insert_point interface. Use
12643 insert_memory_breakpoint. Adjust to new
12644 i386_low_insert_watchpoint interface.
12645 (x86_remove_point): Adjust to remove_point interface. Use
12646 remove_memory_breakpoint. Adjust to new
12647 i386_low_remove_watchpoint interface.
12648 (the_low_target): Install x86_supports_z_point_type.
12649 * lynx-low.c (lynx_target_ops): Install NULL as
12650 supports_z_point_type callback.
12651 * nto-low.c (nto_supports_z_point_type): New.
12652 (nto_insert_point, nto_remove_point): Adjust to new interface.
12653 (nto_target_ops): Install nto_supports_z_point_type.
12654 * mem-break.c: Adjust intro comment.
12655 (struct raw_breakpoint) <raw_type, size>: New fields.
12656 <inserted>: Update comment.
12657 <shlib_disabled>: Delete field.
12658 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12659 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12660 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12661 (raw_bkpt_type_to_target_hw_bp_type): New function.
12662 (find_enabled_raw_code_breakpoint_at): New function.
12663 (find_raw_breakpoint_at): New type and size parameters. Use them.
12664 (insert_memory_breakpoint): New function, based off
12665 set_raw_breakpoint_at.
12666 (remove_memory_breakpoint): New function.
12667 (set_raw_breakpoint_at): Reimplement.
12668 (set_breakpoint): New, based on set_breakpoint_at.
12669 (set_breakpoint_at): Reimplement.
12670 (delete_raw_breakpoint): Go through the_target->remove_point
12671 instead of assuming memory breakpoints.
12672 (find_gdb_breakpoint_at): Delete.
12673 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12674 (find_gdb_breakpoint): New function.
12675 (set_gdb_breakpoint_at): Delete.
12676 (z_type_supported): New function.
12677 (set_gdb_breakpoint_1): New function, loosely based off
12678 set_gdb_breakpoint_at.
12679 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12680 (delete_gdb_breakpoint_at): Delete.
12681 (delete_gdb_breakpoint_1): New function, loosely based off
12682 delete_gdb_breakpoint_at.
12683 (delete_gdb_breakpoint): New function.
12684 (clear_gdb_breakpoint_conditions): Rename to ...
12685 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12686 breakpoint.
12687 (add_condition_to_breakpoint): Make static.
12688 (add_breakpoint_condition): Take a struct breakpoint pointer
12689 instead of an address. Adjust.
12690 (gdb_condition_true_at_breakpoint): Rename to ...
12691 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12692 z_type parameter.
12693 (gdb_condition_true_at_breakpoint): Reimplement.
12694 (add_breakpoint_commands): Take a struct breakpoint pointer
12695 instead of an address. Adjust.
12696 (gdb_no_commands_at_breakpoint): Rename to ...
12697 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12698 parameter. Return true if no breakpoint was found. Change debug
12699 output.
12700 (gdb_no_commands_at_breakpoint): Reimplement.
12701 (run_breakpoint_commands): Rename to ...
12702 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12703 and change return type to boolean.
12704 (run_breakpoint_commands): New function.
12705 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12706 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12707 breakpoint. Go through the_target->remove_point instead of
12708 assuming memory breakpoint.
12709 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12710 software and hardware breakpoints.
12711 (reinsert_raw_breakpoint): Go through the_target->insert_point
12712 instead of assuming memory breakpoint.
12713 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12714 software and hardware breakpoints.
12715 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12716 Check both software and hardware breakpoints.
12717 (validate_inserted_breakpoint): Assert the breakpoint is a
12718 software breakpoint. Set the inserted flag to -1 instead of
12719 setting shlib_disabled.
12720 (delete_disabled_breakpoints): Adjust.
12721 (validate_breakpoints): Only validate software breakpoints.
12722 Adjust to inserted flag change.
12723 (check_mem_read, check_mem_write): Skip breakpoint types other
12724 than software breakpoints. Adjust to inserted flag change.
12725 * mem-break.h (enum raw_bkpt_type): New enum.
12726 (raw_breakpoint, struct process_info): Forward declare.
12727 (Z_packet_to_target_hw_bp_type): Delete declaration.
12728 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12729 (set_gdb_breakpoint, delete_gdb_breakpoint)
12730 (clear_breakpoint_conditions): New declarations.
12731 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12732 (breakpoint_inserted_here): Update comment.
12733 (add_breakpoint_condition, add_breakpoint_commands): Replace
12734 address parameter with a breakpoint pointer parameter.
12735 (gdb_breakpoint_here): Update comment.
12736 (delete_gdb_breakpoint_at): Delete.
12737 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12738 * server.c (process_point_options): Take a struct breakpoint
12739 pointer instead of an address. Adjust.
12740 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12741 delete_gdb_breakpoint.
12742 * spu-low.c (spu_target_ops): Install NULL as
12743 supports_z_point_type method.
12744 * target.h: Include mem-break.h.
12745 (struct target_ops) <prepare_to_access_memory>: Update comment.
12746 <supports_z_point_type>: New field.
12747 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12748 instead of a char. Also take a raw breakpoint pointer.
12749 * win32-arm-low.c (the_low_target): Install NULL as
12750 supports_z_point_type.
12751 * win32-i386-low.c (i386_supports_z_point_type): New function.
12752 (i386_insert_point, i386_remove_point): Adjust to new interface.
12753 (the_low_target): Install i386_supports_z_point_type.
12754 * win32-low.c (win32_supports_z_point_type): New function.
12755 (win32_insert_point, win32_remove_point): Adjust to new interface.
12756 (win32_target_ops): Install win32_supports_z_point_type.
12757 * win32-low.h (struct win32_target_ops):
12758 <supports_z_point_type>: New method.
12759 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12760 instead of a char. Also take a raw breakpoint pointer.
12761
932539e3
PA
127622014-05-20 Pedro Alves <palves@redhat.com>
12763
12764 * mem-break.h: Include break-common.h.
12765 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12766 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12767 (Z_packet_to_target_hw_bp_type): New declaration.
12768 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12769 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12770 (Z_PACKET_ACCESS_WP): Delete macros.
12771 (Z_packet_to_hw_type): Delete function.
12772 * i386-low.h: Don't include break-common.h here.
12773 (Z_packet_to_hw_type): Delete declaration.
12774 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12775 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12776 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12777 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12778 * linux-aarch64-low.c: Don't include break-common.h here.
12779 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12780 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12781 (Z_packet_to_target_hw_bp_type): Delete function.
12782 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12783 function.
12784 (mips_insert_point, mips_remove_point): Use
12785 Z_packet_to_target_hw_bp_type.
12786
4ff0d3d8
PA
127872014-05-20 Pedro Alves <palves@redhat.com>
12788
12789 * linux-aarch64-low.c: Include break-common.h.
12790 (enum target_point_type): Delete.
12791 (Z_packet_to_point_type): Rename to ...
12792 (Z_packet_to_target_hw_bp_type): ... this, and return a
12793 target_hw_bp_type instead.
12794 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12795 instead of an enum target_point_type.
12796 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12797 breakpoint type.
12798 (aarch64_dr_state_insert_one_point)
12799 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12800 (aarch64_handle_aligned_watchpoint)
12801 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12802 Take an enum target_hw_bp_type instead of an enum
12803 target_point_type.
12804 (aarch64_supports_z_point_type): New function.
12805 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12806 use Z_packet_to_target_hw_bp_type.
12807
786dc519
JB
128082014-05-20 Joel Brobecker <brobecker@adacore.com>
12809
12810 * configure.ac: Only use -Werror by default when DEVELOPMENT
12811 is true.
12812 * configure: Regenerate.
12813
9e0aa64f
JK
128142014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12815
12816 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12817 * linux-x86-low.c (X86_64_USER_REGS): New.
12818 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12819
2b577b92
YQ
128202014-04-28 Yao Qi <yao@codesourcery.com>
12821
12822 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12823 name.
12824
94611da2
PA
128252014-04-25 Pedro Alves <palves@redhat.com>
12826
12827 PR server/16255
12828 * linux-low.c (linux_attach_fail_reason_string): New function.
12829 (linux_attach_lwp): Delete.
12830 (linux_attach_lwp_1): Rename to ...
12831 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12832 argument. Remove "initial" parameter. Return int instead of
12833 void. Don't error or warn here.
12834 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12835 failure to attach to the tgid. Call warning when failing to
12836 attach to an lwp.
12837 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12838 argument. Remove "initial" parameter. Return int instead of
12839 void. Don't error or warn here.
12840 (linux_attach_fail_reason_string): New declaration.
12841 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12842 interface change. Use linux_attach_fail_reason_string.
12843
01f9f808
MS
128442014-04-24 Michael Sturm <michael.sturm@mintel.com>
12845 Walfred Tedeschi <walfred.tedeschi@intel.com>
12846
12847 * Makefile.in: Added rules to handle new files
12848 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12849 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12850 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12851 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12852 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12853 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12854 x32-avx512-linux.o.
12855 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12856 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12857 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12858 i386/x32-avx512.xml.
12859 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12860 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12861 i386/x32-avx512-linux.xml.
12862 * i387-fp.c (num_avx512_k_registers): New constant for number
12863 of K registers.
12864 (num_avx512_zmmh_low_registers): New constant for number of
12865 lower ZMM registers (0-15).
12866 (num_avx512_zmmh_high_registers): New constant for number of
12867 higher ZMM registers (16-31).
12868 (num_avx512_ymmh_registers): New contant for number of higher
12869 YMM registers (ymm16-31 added by avx521 on x86_64).
12870 (num_avx512_xmm_registers): New constant for number of higher
12871 XMM registers (xmm16-31 added by AVX512 on x86_64).
12872 (struct i387_xsave): Add space for AVX512 registers.
12873 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12874 Add code to handle AVX512 registers.
12875 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12876 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12877 prototypei from generated file.
12878 (tdesc_amd64_avx512_linux): Likewise.
12879 (init_registers_x32_avx512_linux): Likewise.
12880 (tdesc_x32_avx512_linux): Likewise.
12881 (init_registers_i386_avx512_linux): Likewise.
12882 (tdesc_i386_avx512_linux): Likewise.
12883 (x86_64_regmap): Add AVX512 registers.
12884 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12885 mask.
12886 (initialize_low_arch): Add code to initialize AVX512 registers.
12887
51aa91f9
PA
128882014-04-23 Pedro Alves <palves@redhat.com>
12889
12890 * mem-break.c (find_gdb_breakpoint_at): Make static.
12891 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12892
a4165e94
PA
128932014-04-23 Pedro Alves <palves@redhat.com>
12894
12895 * i386-low.c: Don't include break-common.h here.
12896 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12897 prototype to take target_hw_bp_type as argument instead of a Z
12898 packet char.
12899 * i386-low.h: Include break-common.h here.
12900 (Z_packet_to_hw_type): Declare.
12901 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12902 prototypes.
12903 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12904 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12905 (x86_remove_point): Convert the packet number to a
12906 target_hw_bp_type before calling i386_low_remove_watchpoint.
12907 * win32-i386-low.c (i386_insert_point): Convert the packet number
12908 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12909 (i386_remove_point): Convert the packet number to a
12910 target_hw_bp_type before calling i386_low_remove_watchpoint.
12911
b8acf843
PA
129122014-04-23 Pedro Alves <palves@redhat.com>
12913
12914 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12915
d708bcd1
PA
129162014-04-10 Pedro Alves <palves@redhat.com>
12917
12918 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12919 Check if the condition or command is NULL before checking if the
12920 breakpoint is known. On success, return true.
12921 * mem-break.h (add_breakpoint_condition): Document return.
12922 (add_breakpoint_commands): Add describing comment.
12923 * server.c (skip_to_semicolon): New function.
12924 (process_point_options): Use it.
12925
2eec7d5b
PA
129262014-04-09 Pedro Alves <palves@redhat.com>
12927
12928 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12929 to lwpid_of.
12930
fa96cb38
PA
129312014-02-27 Pedro Alves <palves@redhat.com>
12932
12933 PR 12702
12934 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12935 macros.
12936 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12937 output.
12938 (last_thread_of_process_p): Take a PID argument instead of a
12939 thread pointer.
12940 (linux_wait_for_lwp): Delete.
12941 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12942 functions.
12943 (linux_low_filter_event): New function, party factored out from
12944 linux_wait_for_event.
12945 (linux_wait_for_event): Rename to ...
12946 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12947 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12948 sigsuspend. Check for zombie leaders.
12949 (linux_wait_for_event): Reimplement as wrapper around
12950 linux_wait_for_event_filtered.
12951 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12952 a normal or signal exit is seen, it's the whole process exiting.
12953 (wait_for_sigstop): No longer a for_each_inferior callback.
12954 Rewrite on top of linux_wait_for_event_filtered.
12955 (stop_all_lwps): Call wait_for_sigstop directly.
12956 * server.c (resume, handle_target_event): Handle
12957 TARGET_WAITKIND_NO_RESUMED.
12958
d763de10
JB
129592014-02-26 Joel Brobecker <brobecker@adacore.com>
12960
12961 * win32-low.c (psapi_get_dll_name,
12962 * win32_CreateToolhelp32Snapshot): Delete.
12963 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12964 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12965 Delete.
12966 (handle_load_dll): Add function description.
12967 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12968
850a0f76
JB
129692014-02-26 Joel Brobecker <brobecker@adacore.com>
12970
12971 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12972 Add comment.
12973 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12974 base address when calling win32_add_one_solib.
12975 (handle_load_dll): Delete local variable load_addr.
12976 Remove 0x1000 offset applied to DLL base address when calling
12977 win32_add_one_solib.
12978 (handle_unload_dll): Add comment.
12979
f25b3fc3
JB
129802014-02-26 Joel Brobecker <brobecker@adacore.com>
12981
12982 * win32-low.c (win32_add_all_dlls): Renames
12983 win32_ensure_ntdll_loaded. Rewrite function documentation.
12984 Adjust implementation to always load all DLLs.
12985 Add 0x1000 offset to DLL base address when calling
12986 win32_add_one_solib.
12987 (child_initialization_done): New static global.
12988 (do_initial_child_stuff): Set child_initialization_done to
12989 zero during child initialization, and 1 after. Replace call
12990 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12991 Add comment.
12992 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12993 (handle_unload_dll): Add function documentation.
12994 (get_child_debug_event): Ignore load and unload DLL events
12995 during child initialization.
12996
d86d4aaf
DE
129972014-02-20 Doug Evans <dje@google.com>
12998
3bc32da3 12999 Remove global all_lwps.
d86d4aaf
DE
13000 * inferiors.h (ptid_of): Move here from linux-low.h.
13001 (pid_of, lwpid_of): Ditto.
13002 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13003 parameter is a struct thread_info * now.
13004 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13005 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13006 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13007 directly.
13008 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13009 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13010 * linux-arm-low.c (update_registers_callback): Update, "entry"
13011 parameter is a struct thread_info * now.
13012 Fetch lwpid from current_inferior directly.
13013 (arm_insert_point): Pass &all_threads to find_inferior instead of
13014 &all_lwps.
13015 (arm_remove_point): Ditto.
13016 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13017 (arm_prepare_to_resume): Fetch pid from thread.
13018 (arm_read_description): Fetch lwpid from current_inferior directly.
13019 * linux-low.c (all_lwps): Delete.
13020 (delete_lwp): Delete call to remove_inferior.
13021 (handle_extended_wait): Fetch lwpid from thread.
13022 (add_lwp): Don't set lwp->entry.id. Remove call to
13023 add_inferior_to_list.
13024 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13025 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13026 (kill_one_lwp_callback): Ditto.
13027 (linux_kill): Don't dereference NULL pointer.
13028 Fetch ptid,lwpid from thread.
13029 (get_detach_signal): Fetch ptid from thread.
13030 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13031 Simplify call to regcache_invalidate_thread.
13032 (delete_lwp_callback): Update, "entry" parameter is a
13033 struct thread_info * now. Fetch pid from thread.
13034 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13035 (status_pending_p_callback): Update, "entry" parameter is a
13036 struct thread_info * now. Fetch ptid from thread.
13037 (find_lwp_pid): Update, "entry" parameter is a
13038 struct thread_info * now.
13039 (linux_wait_for_lwp): Fetch pid from thread.
13040 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13041 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13042 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13043 (dequeue_one_deferred_signal): Ditto.
13044 (cancel_breakpoint): Fetch ptid from current_inferior.
13045 (linux_wait_for_event): Pass &all_threads to find_inferior,
13046 not &all_lwps. Fetch ptid, lwpid from thread.
13047 (count_events_callback): Update, "entry" parameter is a
13048 struct thread_info * now.
13049 (select_singlestep_lwp_callback): Ditto.
13050 (select_event_lwp_callback): Ditto.
13051 (cancel_breakpoints_callback): Ditto.
13052 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13053 not &all_lwps.
13054 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13055 (unsuspend_one_lwp): Update, "entry" parameter is a
13056 struct thread_info * now.
13057 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13058 not &all_lwps.
13059 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13060 Fetch lwpid from thread, not lwp.
13061 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13062 Pass &all_threads to find_inferior, not &all_lwps.
13063 (send_sigstop): Fetch lwpid from thread, not lwp.
13064 (send_sigstop_callback): Update, "entry" parameter is a
13065 struct thread_info * now.
13066 (suspend_and_send_sigstop_callback): Ditto.
13067 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13068 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13069 struct thread_info * now.
13070 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13071 from thread, lwp.
13072 (lwp_running): Update, "entry" parameter is a
13073 struct thread_info * now.
13074 (stop_all_lwps): Fetch ptid from thread.
13075 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13076 (linux_resume_one_lwp): Fetch lwpid from thread.
13077 (linux_set_resume_request): Update, "entry" parameter is a
13078 struct thread_info * now. Fetch pid, lwpid from thread.
13079 (resume_status_pending_p): Update, "entry" parameter is a
13080 struct thread_info * now.
13081 (need_step_over_p): Ditto. Fetch lwpid from thread.
13082 (start_step_over): Fetch lwpid from thread.
13083 (linux_resume_one_thread): Update, "entry" parameter is a
13084 struct thread_info * now. Fetch lwpid from thread.
13085 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13086 (proceed_one_lwp): Update, "entry" parameter is a
13087 struct thread_info * now. Fetch lwpid from thread.
13088 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13089 struct thread_info * now.
13090 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13091 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13092 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13093 directly.
13094 (regsets_store_inferior_registers): Ditto.
13095 (fetch_register, store_register): Ditto.
13096 (linux_read_memory, linux_write_memory): Ditto.
13097 (linux_request_interrupt): Ditto.
13098 (linux_read_auxv): Ditto.
13099 (linux_xfer_siginfo): Ditto.
13100 (linux_qxfer_spu): Ditto.
13101 (linux_qxfer_libraries_svr4): Ditto.
13102 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13103 moved to inferiors.h.
13104 (get_lwp): Delete.
13105 (get_thread_lwp): Update.
13106 (struct lwp_info): Delete member "entry". Simplify comment for
13107 member "thread".
13108 (all_lwps): Delete.
13109 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13110 current_inferior directly.
13111 (update_watch_registers_callback): Update, "entry" parameter is a
13112 struct thread_info * now. Fetch pid from thread.
13113 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13114 (mips_insert_point): Fetch lwpid from current_inferior.
13115 Pass &all_threads to find_inferior, not &all_lwps.
13116 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13117 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13118 directly.
13119 (mips_stopped_data_address): Ditto.
13120 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13121 directly.
13122 * linux-tile-low.c (tile_arch_setup): Ditto.
13123 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13124 (update_debug_registers_callback): Update, "entry" parameter is a
13125 struct thread_info * now. Fetch pid from thread.
13126 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13127 Pass &all_threads to find_inferior, not &all_lwps.
13128 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13129 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13130 Pass &all_threads to find_inferior, not &all_lwps.
13131 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13132 (i386_dr_low_get_status): Ditto.
13133 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13134 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13135 (x86_linux_read_description): Ditto.
13136 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13137
3b8361aa
DE
131382014-02-20 Doug Evans <dje@google.com>
13139
13140 * inferiors.c (get_first_inferior): Fix buglet.
13141
f7667f0d
DE
131422014-02-19 Doug Evans <dje@google.com>
13143
13144 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13145 * inferiors.c (add_thread): Change result type to struct thread_info *.
13146 All callers updated.
13147 (add_lwp): Call add_thread here instead of in callers.
13148 All callers updated.
13149 * linux-low.h (get_lwp_thread): Rewrite.
13150 (struct lwp_info): New member "thread".
13151
b3312d80
DE
131522014-02-19 Doug Evans <dje@google.com>
13153
13154 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13155 All callers updated.
13156
ecc6f45c
DE
131572014-02-19 Doug Evans <dje@google.com>
13158
13159 * inferiors.c (add_thread): Fix whitespace.
13160
649ebbca
DE
131612014-02-19 Doug Evans <dje@google.com>
13162
13163 * dll.c (clear_dlls): Replace accessing list implemention details
13164 with API function.
13165 * gdbthread.h (get_first_thread): Declare.
13166 * inferiors.c (for_each_inferior_with_data): New function.
13167 (get_first_thread): New function.
13168 (find_thread_ptid): Simplify.
13169 (get_first_inferior): New function.
13170 (clear_list): Delete.
13171 (one_inferior_p): New function.
13172 (clear_inferior_list): New function.
13173 (clear_inferiors): Update.
13174 * inferiors.h (for_each_inferior_with_data): Declare.
13175 (clear_inferior_list): Declare.
13176 (one_inferior_p): Declare.
13177 (get_first_inferior): Declare.
13178 * linux-low.c (linux_wait_for_event): Replace accessing list
13179 implemention details with API function.
13180 * server.c (target_running): Ditto.
13181 (accumulate_file_name_length): New function.
13182 (emit_dll_description): New function.
13183 (handle_qxfer_libraries): Replace accessing list implemention
13184 details with API function.
13185 (handle_qxfer_threads_worker): New function.
13186 (handle_qxfer_threads_proper): Replace accessing list implemention
13187 details with API function.
13188 (handle_query): Ditto.
13189 (visit_actioned_threads_callback_ftype): New typedef.
13190 (visit_actioned_threads_data): New struct.
13191 (visit_actioned_threads): Rewrite to be find_inferior callback.
13192 (resume): Call find_inferior.
13193 (handle_status): Replace accessing list implemention
13194 details with API function.
13195 (process_serial_event): Replace accessing list implemention details
13196 with API function.
13197 * target.c (set_desired_inferior): Replace accessing list implemention
13198 details with API function.
13199 * tracepoint.c (same_process_p): New function.
13200 (gdb_agent_about_to_close): Replace accessing list implemention
13201 details with API function.
13202 * win32-low.c (child_delete_thread): Replace accessing list
13203 implemention details with API function.
13204 (match_dll_by_basename): New function.
13205 (dll_is_loaded_by_basename): New function.
13206 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13207 details call to dll_is_loaded_by_basename.
13208
80894984
DE
132092014-02-19 Doug Evans <dje@google.com>
13210
13211 * dll.h (struct dll_info): Add comment.
13212 * gdbthread.h (struct thread_info): Add comment.
13213 (current_ptid): Simplify.
13214 * inferiors.c (add_process): Update.
13215 (remove_process): Update.
13216 * inferiors.h (struct process_info): Rename member "head" to "entry".
13217 * linux-low.c (delete_lwp): Update.
13218 (add_lwp): Update.
13219 (last_thread_of_process_p): Update.
13220 (kill_one_lwp_callback, linux_kill): Update.
13221 (status_pending_p_callback): Update.
13222 (wait_for_sigstop): Update. Simplify read of ptid.
13223 (start_step_over): Update.
13224 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13225 (get_lwp_thread): Update.
13226 (struct lwp_info): Rename member "head" to "entry".
13227 * regcache.h (inferior_list_entry): Delete.
13228 * server.c (kill_inferior_callback): Update.
13229 (detach_or_kill_inferior_callback): Update.
13230 (print_started_pid): Update.
13231 (print_attached_pid): Update.
13232 (process_serial_event): Simplify read of ptid.
13233 * thread-db.c (thread_db_create_event): Update.
13234 (thread_db_get_tls_address): Update.
13235 * win32-low.c (current_inferior_ptid): Simplify.
13236
46917d26
TT
132372014-02-19 Tom Tromey <tromey@redhat.com>
13238
13239 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13240 argument.
13241 (target_supports_btrace): Update.
13242
0759a81e
YQ
132432014-02-14 Yao Qi <yao@codesourcery.com>
13244
13245 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13246 (rsp-low-ipa.o): New target.
13247
a7191e8b
TT
132482014-02-12 Tom Tromey <tromey@redhat.com>
13249
13250 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13251 convert_ascii_to_int.
13252 * regcache.c (registers_to_string): Likewise.
13253 * remote-utils.c (decode_M_packet): Likewise.
13254 * server.c (process_serial_event): Likewise.
13255
ff0e980e
TT
132562014-02-12 Tom Tromey <tromey@redhat.com>
13257
13258 * server.c (handle_query, handle_v_run): Use hex2bin, not
13259 unhexify.
13260 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13261
e9371aff
TT
132622014-02-12 Tom Tromey <tromey@redhat.com>
13263
13264 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13265 convert_int_to_ascii.
13266 * regcache.c (registers_to_string, collect_register_as_string):
13267 Likewise.
13268 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13269 Likewise.
13270 * server.c (process_serial_event): Likewise.
13271 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13272 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13273
971dc0b8
TT
132742014-02-12 Tom Tromey <tromey@redhat.com>
13275
13276 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13277 bin2hex, not hexify.
13278 * tracepoint.c (cmd_qtstatus): Likewise.
13279
0a822afb
TT
132802014-02-12 Tom Tromey <tromey@redhat.com>
13281
13282 * remote-utils.c (monitor_output): Pass explicit length to
13283 hexify.
13284
9c3d6531
TT
132852014-02-12 Tom Tromey <tromey@redhat.com>
13286
13287 * tracepoint.c: Include rsp-low.h.
13288 * server.c: Include rsp-low.h.
13289 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13290 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13291 declare.
13292 * remote-utils.c: Include rsp-low.h.
13293 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13294 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13295 (convert_int_to_ascii, convert_ascii_to_int): Move to
13296 common/rsp-low.c.
13297 * regcache.c: Include rsp-low.h.
13298 * ax.c: Include rsp-low.h.
13299 * Makefile.in (SFILES): Add common/rsp-low.c.
13300 (OBS): Add rsp-low.o.
13301 (rsp-low.o): New target.
13302
01fd3ea5
TT
133032014-02-12 Tom Tromey <tromey@redhat.com>
13304
13305 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13306 Include print-utils.h.
13307 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13308 (plongest, thirty_two, phex_nz): Remove.
13309 * Makefile.in (SFILES): Add common/print-utils.c.
13310 (OBS): Add print-utils.o.
13311 (print-utils-ipa.o): New target.
13312 (print-utils.o): New target.
13313 (IPA_OBJS): Add print-utils-ipa.o.
13314
e99dc820
TT
133152014-02-06 Tom Tromey <tromey@redhat.com>
13316
13317 * Makefile.in (SFILES): Fix indentation.
13318
ee1e2d4f
DE
133192014-02-05 Doug Evans <dje@google.com>
13320
13321 * linux-low.c (linux_wait_for_event): Improve comment.
13322 (linux_wait_1): Keep current_inferior in sync with event_child.
13323
f5a02773
DE
133242014-01-22 Doug Evans <dje@google.com>
13325
13326 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13327
87ce2a04
DE
133282014-01-22 Doug Evans <dje@google.com>
13329
13330 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13331 * configure: Regenerate.
13332 * config.in: Regenerate.
13333 * Makefile.in (SFILES): Add debug.c.
13334 (OBS): Add debug.o.
13335 * debug.c: New file.
13336 * debug.h: New file.
13337 * linux-aarch64-low.c (*): Update all debugging printfs to use
13338 debug_printf instead of fprintf.
13339 * linux-arm-low.c (*): Ditto.
13340 * linux-cris-low.c (*): Ditto.
13341 * linux-crisv32-low.c (*): Ditto.
13342 * linux-m32r-low.c (*): Ditto.
13343 * linux-sparc-low.c (*): Ditto.
13344 * linux-x86.c (*): Ditto.
13345 * linux-low.c (*): Ditto.
13346 (linux_wait_1): Add calls to debug_enter, debug_exit.
13347 (linux_wait): Remove redundant debugging printf.
13348 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13349 (linux_resume, unstop_all_lwps): Ditto.
13350 * mem-break.c (*): Update all debugging printfs to use
13351 debug_printf instead of fprintf.
13352 * remote-utils.c (*): Ditto.
13353 * thread-db.c (*): Ditto.
13354 * server.c #include <ctype.h>, "gdb_vecs.h".
13355 (debug_threads): Moved to debug.c.
13356 (*): Update all debugging printfs to use debug_printf instead of
13357 fprintf.
13358 (start_inferior): Replace call to fflush with call to debug_flush.
13359 (monitor_show_help): Mention set debug-format.
13360 (parse_debug_format_options): New function.
13361 (handle_monitor_command): Handle "monitor set debug-format".
13362 (gdbserver_usage): Mention --debug-format.
13363 (main): Parse --debug-format.
13364 * server.h (debug_threads): Declaration moved to debug.h.
13365 #include "debug.h".
13366 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13367 trace_debug_1 that uses debug_printf.
13368 (tracepoint_look_up_symbols): Update all debugging printfs to use
13369 debug_printf instead of fprintf.
13370
e671835b
BS
133712014-01-20 Baruch Siach <baruch@tkos.co.il>
13372
13373 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13374 sys/ptrace.h.
13375
b5737fa9
PA
133762014-01-17 Pedro Alves <palves@redhat.com>
13377
ea38d2a9 13378 PR build/16445
c7faa97a
PA
13379 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13380 defined after including gdb_proc_service.h.
b5737fa9 13381
40ed484e
DE
133822014-01-16 Doug Evans <dje@google.com>
13383
13384 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13385 (match_dll): Use it.
13386
969c39fb
MM
133872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13388
13389 * target.h (target_ops) <read_btrace>: Change parameters and
13390 return type to allow error reporting.
13391 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13392 trace reading errors on.
13393 * linux-low.c (linux_low_read_btrace): Pass trace reading
13394 errors on.
13395 (linux_low_disable_btrace): New.
13396
ab7f45ba
DE
133972014-01-15 Doug Evans <dje@google.com>
13398
13399 * inferiors.c (thread_id_to_gdb_id): Delete.
13400 * inferiors.h (thread_id_to_gdb_id): Delete.
13401
66af0f44
EZ
134022014-01-13 Eli Zaretskii <eliz@gnu.org>
13403
13404 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13405 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13406 versions.
13407
9939e131
PA
134082014-01-08 Pedro Alves <palves@redhat.com>
13409
13410 * server.c (handle_status): Don't discard previous queued stop
13411 replies or thread's pending status here.
13412 (main) <disconnection>: Do it here instead.
13413
b7ea362b
PA
134142014-01-08 Pedro Alves <palves@redhat.com>
13415
13416 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13417 * server.c (visit_actioned_threads, handle_pending_status): New
13418 function.
13419 (handle_v_cont): Factor out parts to ...
13420 (resume): ... this new function. If in all-stop, and a thread
13421 being resumed has a pending status, report it without actually
13422 resuming.
13423 (myresume): Adjust to use the new 'resume' function.
13424 (clear_pending_status_callback, set_pending_status_callback)
13425 (find_status_pending_thread_callback): New functions.
13426 (handle_status): Handle the case of multiple threads having
13427 interesting statuses to report. Report threads' real last signal
13428 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13429 with an interesting thread to report the status for, instead of
13430 always reporting the status of the first thread.
13431
28498c42
JB
134322014-01-01 Joel Brobecker <brobecker@adacore.com>
13433
13434 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13435 * gdbreplay.c (gdbreplay_version): Likewise.
13436
f45c82da
YZ
134372013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13438
13439 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13440 iov.iov_len with the real length in use.
13441
379a5e2d
JB
134422013-12-13 Joel Brobecker <brobecker@adacore.com>
13443
13444 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13445 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13446 for all targets that use win32-low.c.
13447 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13448 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13449
4210d83e
PA
134502013-12-13 Pedro Alves <palves@redhat.com>
13451
13452 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13453 if equal to TARGET_WAITKIND_LOADED.
13454 * win32-low.c (cached_status): New static global.
13455 (win32_wait): Add declaration.
13456 (do_initial_child_stuff): Flush all initial pending debug events
13457 up to the initial breakpoint.
13458 (win32_wait): If CACHED_STATUS was set, return that instead
13459 of doing a real wait. Remove the code resuming the execution
13460 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13461 during the initial phase. Also remove the code changing
13462 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13463 TARGET_WAITKIND_STOPPED.
13464
e7f0d979
YQ
134652013-12-11 Yao Qi <yao@codesourcery.com>
13466
13467 * notif.c (handle_notif_ack): Return 0 if no notification
13468 matches.
13469
ebcf782c
DE
134702013-11-20 Doug Evans <dje@google.com>
13471
13472 * linux-low.c (linux_set_resume_request): Fix comment.
13473
20ad9378
DE
134742013-11-20 Doug Evans <dje@google.com>
13475
13476 * linux-low.c (resume_status_pending_p): Tweak comment.
13477
a196ebeb
WT
134782013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13479
13480 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13481 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13482 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13483 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13484 (srv_amd64_regobj): Add amd64-mpx.o.
13485 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13486 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13487 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13488 * i387-fp.c (num_pl_bnd_register) Added constant.
13489 (num_pl_bnd_cfg_registers) Added constant.
13490 (struct i387_xsave) Added reserved area and MPX fields.
13491 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13492 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13493 function.
13494 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13495 (init_registers_amd64_mpx_linux): Declare new function.
13496 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13497 (x86_64_regmap): Add MPX registers.
13498 (x86_linux_read_description): Add MPX case.
13499 (initialize_low_arch): Initialize MPX targets.
13500
0080a2f6
TT
135012013-11-18 Tom Tromey <tromey@redhat.com>
13502
13503 * configure: Rebuild.
13504 * configure.ac: Don't check for stdlib.h.
13505 * gdbreplay.c: Unconditionally include stdlib.h.
13506
2978b111
TT
135072013-11-18 Tom Tromey <tromey@redhat.com>
13508
13509 * config.in: Rebuild.
13510 * configure: Rebuild.
13511 * configure.ac: Don't use AC_HEADER_DIRENT.
13512
a3d08894
TT
135132013-11-18 Tom Tromey <tromey@redhat.com>
13514
13515 * server.h: Don't check HAVE_STRING_H.
13516 * gdbreplay.c: Don't check HAVE_STRING_H.
13517 * configure: Rebuild.
13518
0a5dd17d
TT
135192013-11-18 Tom Tromey <tromey@redhat.com>
13520
13521 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13522 LIBGNU.
13523
1bd2f0ba
TT
135242013-11-08 Tom Tromey <tromey@redhat.com>
13525
13526 * configure, config.in: Rebuild.
13527 * configure.ac: Remove unused configury.
13528
3266f10b
TT
135292013-11-08 Tom Tromey <tromey@redhat.com>
13530
13531 * acinclude.m4: Include common.m4, codeset.m4.
13532 * configure, config.in: Rebuild.
13533 * configure.ac: Use GDB_AC_COMMON.
13534
6682d959
AA
135352013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13536
13537 * linux-s390-low.c (HWCAP_S390_TE): New define.
13538 (s390_arch_setup): Consider the TE field in the HWCAP for
13539 determining 'have_regset_tdb'.
13540
fd0a4d76
SDJ
135412013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13542
13543 PR gdb/16014
13544 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13545 call to sizeof.
13546
1a3d890b
PA
135472013-10-02 Pedro Alves <palves@redhat.com>
13548
13549 * server.c (process_serial_event): Don't output "GDBserver
13550 exiting" if GDB is connected through stdio.
13551 * target.c (mywait): Likewise, be silent if GDB is connected
13552 through stdio.
13553
97ad4581
JB
135542013-10-01 Joel Brobecker <brobecker@adacore.com>
13555
13556 * lynx-low.c (lynx_add_threads_after_attach): New function.
13557 (lynx_attach): Remove call to add_thread. Add call to
13558 lynx_add_threads_after_attach instead.
13559
5b4e221c
MF
135602013-09-28 Mike Frysinger <vapier@gentoo.org>
13561
13562 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13563 * config.in, configure: Regenerated.
13564
ee47b2f8
YQ
135652013-09-18 Yao Qi <yao@codesourcery.com>
13566
13567 PR server/15959
13568 * server.c (start_inferior): Clear 'resume_info'.
13569
d6707650 135702013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13571
d6707650
JW
13572 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13573 for each register.
13574
9243dd0e 135752013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13576
9243dd0e
JW
13577 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13578 linux-tile-low.o to srv_tgtobj.
13579
c623a6ef
WN
135802013-09-16 Will Newton <will.newton@linaro.org>
13581
13582 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13583 out regs.
13584
fb71d39e
PA
135852013-09-06 Pedro Alves <palves@redhat.com>
13586
13587 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13588 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13589 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13590 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13591 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13592 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13593
8e7e9910
PA
135942013-09-06 Pedro Alves <palves@redhat.com>
13595
13596 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13597 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13598
7c3a12ca
PA
135992013-09-06 Pedro Alves <palves@redhat.com>
13600
13601 * linux-amd64-ipa.c: Include tracepoint.h.
13602 * linux-i386-ipa.c: Include tracepoint.h.
13603
8eb3d7b6
RW
136042013-09-06 Ricard Wanderlof <ricardw@axis.com>
13605
13606 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13607 (ps_get_thread_area): New function.
13608
eddddb9d
RW
136092013-09-06 Ricard Wanderlof <ricardw@axis.com>
13610
13611 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13612 (initialize_low_arch): Call init_registers_crisv32 rather than
13613 init_register_crisv32.
13614
533b0600
PA
136152013-09-05 Pedro Alves <palves@redhat.com>
13616
13617 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13618 to ...
13619 * hostio.h: ... this new file.
13620 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13621 win32-low.c: Include hostio.h.
13622
0ce3d3b5
PA
136232013-09-05 Pedro Alves <palves@redhat.com>
13624
13625 * server.h (gdb_client_data, handler_func, callback_handler_func)
13626 (delete_file_handler, add_file_handler, append_callback_event)
13627 (delete_callback_event, start_event_loop, initialize_event_loop):
13628 Move to event-loop.h and include it.
13629 * event-loop.h: New file.
13630
799cdc37
PA
136312013-09-05 Pedro Alves <palves@redhat.com>
13632
13633 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13634 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13635 (loaded_dll, unloaded_dll): Move to ...
13636 * dll.h: ... this new file.
13637 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13638
6a6bbd9d
PA
136392013-09-05 Pedro Alves <palves@redhat.com>
13640
13641 * server.h (current_process, get_thread_process, all_processes)
13642 (add_inferior_to_list, for_each_inferior, current_inferior)
13643 (remove_inferior, add_process, remove_process, find_process_pid)
13644 (have_started_inferiors_p, have_attached_inferiors_p)
13645 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13646 (clear_inferiors, find_inferior, find_inferior_id)
13647 (inferior_target_data, set_inferior_target_data)
13648 (inferior_regcache_data, set_inferior_regcache_data): Move to
13649 inferiors.h, and include it.
13650 * inferiors.h: New file.
13651
f699aaba
PA
136522013-09-05 Pedro Alves <palves@redhat.com>
13653
13654 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13655 Move ...
72f4393d 13656 * ax.h: ... here.
f699aaba 13657
c144c7a0
PA
136582013-09-05 Pedro Alves <palves@redhat.com>
13659
13660 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13661 tracepoint.h.
13662 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13663 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13664 (handle_tracepoint_general_set, handle_tracepoint_query)
13665 (tracepoint_finished_step, tracepoint_was_hit)
13666 (release_while_stepping_state_list, current_traceframe)
13667 (in_readonly_region, traceframe_read_mem)
13668 (fetch_traceframe_registers, traceframe_read_sdata)
13669 (traceframe_read_info, struct fast_tpoint_collect_status)
13670 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13671 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13672 (supply_fast_tracepoint_registers)
13673 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13674 (ipa_tdesc, claim_trampoline_space)
13675 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13676 (agent_mem_read, agent_get_trace_state_variable_value)
13677 (agent_set_trace_state_variable_value, agent_tsv_read)
13678 (agent_mem_read_string, get_raw_reg_func_addr)
13679 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13680 * tracepoint.h: ... this new file.
13681
ff42e6ab
PA
136822013-09-05 Pedro Alves <palves@redhat.com>
13683
13684 * server.h (perror_with_name, error, fatal, warning, paddress)
13685 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13686 include it.
13687 * utils.h: New file.
13688
541af0f4
PA
136892013-09-05 Pedro Alves <palves@redhat.com>
13690
13691 * server.h (remote_debug, noack_mode, transport_is_reliable)
13692 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13693 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13694 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13695 (write_enn, initialize_async_io, enable_async_io)
13696 (disable_async_io, check_remote_input_interrupt_request)
13697 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13698 (dead_thread_notify, prepare_resume_reply)
13699 (decode_address_to_semicolon, decode_address, decode_m_packet)
13700 (decode_M_packet, decode_X_packet, decode_xfer_write)
13701 (decode_search_memory_packet, unhexify, hexify)
13702 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13703 (look_up_one_symbol, relocate_instruction)
13704 (monitor_output): Move to remote-utils.h, and include it.
13705 * remote-utils.h: New file.
13706
eebdf26b
PA
137072013-09-05 Pedro Alves <palves@redhat.com>
13708
13709 * server.h (_): Delete.
13710
3aafd2ff
PA
137112013-09-02 Pedro Alves <palves@redhat.com>
13712
13713 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13714 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13715 allocated.
13716 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13717
cee83bcb
PM
137182013-09-02 Pierre Muller <muller@sourceware.org>
13719
13720 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13721 or WriteProcessMemory complete successfully and handle
13722 ERROR_PARTIAL_COPY error.
13723
9a13b2fa
PA
137242013-09-02 Pedro Alves <palves@redhat.com>
13725
13726 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13727 error instead of EIO.
13728
602e3198
JK
137292013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13730
13731 PR server/15604
13732 * linux-low.c: Include filestuff.h.
13733 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13734 * lynx-low.c: Include filestuff.h.
13735 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13736 * server.c: Include filestuff.h.
13737 (main): Call notice_open_fds.
13738 * spu-low.c: Include filestuff.h.
13739 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13740
96d7229d
LM
137412013-08-22 Luis Machado <lgustavo@codesourcery.com>
13742
13743 * Makefile.in: Explain why ../target and ../nat are not
13744 listed as include file search paths.
13745 (linux-waitpid.o): New object file rule.
13746 * configure.srv (srv_native_linux_obj): New variable.
13747 Replace all occurrences of linux native object files with
13748 $srv_native_linux_obj.
13749 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13750 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13751 (linux_enable_event_reporting): Remove declaration.
13752 (my_waitpid): Moved to common/linux-waitpid.c.
13753 (linux_wait_for_event): Pass ptid when calling
13754 linux_enable_event_reporting.
13755 (linux_supports_tracefork_flag): Remove.
13756 (linux_enable_event_reporting): Likewise.
13757 (linux_tracefork_grandchild): Remove.
13758 (STACK_SIZE): Moved to common/linux-ptrace.c.
13759 (linux_tracefork_child): Remove.
13760 (linux_test_for_tracefork): Remove.
13761 (linux_look_up_symbols): Call linux_supports_traceclone.
13762 (initialize_low): Remove call to linux_test_for_tracefork.
13763 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13764 common/linux-ptrace.h.
13765 (PTRACE_TYPE_ARG4): Likewise.
13766 Include linux-ptrace.h.
13767
32940073
PA
137682013-08-21 Pedro Alves <palves@redhat.com>
13769
13770 * config.in: Renegerate.
13771
33b60d58 137722013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13773
33b60d58
LM
13774 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13775 (SFILES): Remove $(srcdir)/common/target-common.c and
13776 add $(srcdir)/target/waitstatus.c.
13777 (OBS): Remove target-common.o and add waitstatus.o.
13778 (server_h): Remove $(srcdir)/../common/target-common.h and
13779 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13780 and $(srcdir)/../target/waitstatus.h.
13781 (target-common.o): Remove.
13782 (waitstatus.o): New target object file.
13783 * target.h: Do not include target-common.h and
13784 include target/resume.h, target/wait.h and
13785 target/waitstatus.h.
13786
b8e1b30e
LM
137872013-08-13 Luis Machado <lgustavo@codesourcery.com>
13788
13789 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13790 to PTRACE_TYPE_ARG3.
13791 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13792 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13793 PTRACE_TYPE_ARG4.
13794 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13795 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13796
7a60ad40
YQ
137972013-07-27 Jie Zhang <jie@codesourcery.com>
13798 Daniel Jacobowitz <dan@codesourcery.com>
13799 Yao Qi <yao@codesourcery.com>
13800
13801 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13802 (mips-linux-watch.o): New rule.
13803 (mips_linux_watch_h): New variable.
13804 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13805 srv_tgtobj.
13806 * linux-mips-low.c: Include mips-linux-watch.h.
13807 (struct arch_process_info, struct arch_lwp_info): New.
13808 (update_watch_registers_callback): New function.
13809 (mips_linux_new_process, mips_linux_new_thread) New functions.
13810 (mips_linux_prepare_to_resume, mips_insert_point): New
13811 functions.
13812 (mips_remove_point, mips_stopped_by_watchpoint): New
13813 functions.
13814 (rsp_bp_type_to_target_hw_bp_type): New function.
13815 (mips_stopped_data_address): New function.
13816 (the_low_target): Add watchpoint support functions.
13817
de6f69ad
YQ
138182013-07-27 Yao Qi <yao@codesourcery.com>
13819
13820 * i386-low.c: Include break-common.h.
13821 (enum target_hw_bp_type): Remove.
13822
3360c0bf
LM
138232013-07-24 Luis Machado <lgustavo@codesourcery.com>
13824
13825 * Makefile.in (SFILES): /common/target-common.c.
13826 (OBS): Add target-common.o.
13827 (server_h): Add $(srcdir)/../common/target-common.h.
13828 (target-common.o): New target.
13829 * server.c (queue_stop_reply_callback): Free
13830 status string after use.
13831 * target.c (target_waitstatus_to_string): Remove.
13832 * target.h: Include target-common.h.
13833 (resume_kind): Likewise.
13834 (target_waitkind): Likewise.
13835 (target_waitstatus): Likewise.
13836 (TARGET_WNOHANG): Likewise.
13837
bd885420
YQ
138382013-07-04 Yao Qi <yao@codesourcery.com>
13839
13840 * Makefile.in (host_alias): Use @host_noncanonical@.
13841 (target_alias): Use @target_noncanonical@.
13842 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13843 ACX_NONCANONICAL_HOST.
13844 * configure: Regenerated.
13845
13846 Revert:
13847 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13848
13849 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13850 * configure: Rebuild.
13851 * Makefile.in (version_host, version_target): Get from configure.
13852 (version.c): Use $(version_host) and $(version_target).
13853
17ef446e
PA
138542013-07-03 Pedro Alves <palves@redhat.com>
13855
13856 * Makefile.in (config.status): Depend on development.sh.
13857 * acinclude.m4: Include libmcheck.m4.
13858 * configure: Regenerate.
13859
7a9a7487
MG
138602013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13861
13862 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13863 attribute inside the parentheses.
13864 (winapi_DebugSetProcessKillOnExit): Ditto.
13865 (winapi_DebugBreakProcess): Ditto.
13866 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13867
49b64de6
MG
138682013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13869
13870 * notif.h (notif_event): Add a dummy member to avoid compiler
13871 errors.
13872
d5749ee7
PA
138732013-07-01 Pedro Alves <palves@redhat.com>
13874
13875 * hostio.c (HOSTIO_PATH_MAX): Define.
13876 (require_filename, handle_open, handle_unlink, handle_readlink):
13877 Use it.
13878
d8d2a3ee
PA
138792013-07-01 Pedro Alves <palves@redhat.com>
13880
13881 * server.h: Include "pathmax.h".
13882 * linux-low.c: Don't include sys/param.h.
13883 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13884 MAXPATHLEN.
13885 * win32-low.c: Don't include sys/param.h.
13886 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13887
bc7dea8d
PA
138882013-07-01 Pedro Alves <palves@redhat.com>
13889
13890 * event-loop.c: Don't check HAVE_UNISTD_H before including
13891 <unistd.h>.
13892 * gdbreplay.c: Likewise.
13893 * remote-utils.c: Likewise.
13894 * server.c: Likewise.
13895 * configure.ac: Don't check for unistd.h.
13896 * configure: Regenerate.
13897
d6c2da54
TT
138982013-06-28 Tom Tromey <tromey@redhat.com>
13899
13900 * Makefile.in (version.c): Use version.in, not
13901 common/version.in.
13902
257b6bec
MG
139032013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13904
13905 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13906 * configure: Rebuild.
13907 * Makefile.in (version_host, version_target): Get from configure.
13908 (version.c): Use $(version_host) and $(version_target).
13909
86ebe149
DK
139102013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13911
13912 Fix trace-status to output user name without trailing colon.
13913 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13914
f30aa5af
DK
139152013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13916
13917 Fix trace-status to output proper start-time and stop-time.
13918 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13919 output start time and stop time in hex as gdb expects.
13920
28a93511
YQ
139212013-06-26 Pedro Alves <pedro@codesourcery.com>
13922
13923 * tracepoint.c (build_traceframe_info_xml): Output trace state
13924 variables present in the trace buffer.
13925
01208463
TT
139262013-06-24 Tom Tromey <tromey@redhat.com>
13927
13928 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13929 create-version.sh.
13930 (version.o): Remove.
13931 * gdbreplay.c: Include version.h.
13932 (version, host_name): Don't declare.
13933 * server.h: Include version.h.
13934 (version, host_name): Don't declare.
13935
760256f9
PA
139362013-06-12 Pedro Alves <palves@redhat.com>
13937
13938 * linux-x86-low.c (linux_is_elf64): Delete global.
13939 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13940 with local linux_pid_exe_is_elf_64_file use.
13941
030031ee
PA
139422013-06-11 Pedro Alves <palves@redhat.com>
13943
13944 * linux-low.c (regset_disabled, disable_regset): New functions.
13945 (regsets_fetch_inferior_registers)
13946 (regsets_store_inferior_registers): Use them.
13947 (initialize_regsets_info); Don't allocate the disabled_regsets
13948 array here.
13949 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13950 comment.
13951
5da6eb0a
PA
139522013-06-11 Pedro Alves <palves@redhat.com>
13953
13954 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13955 xmalloc.
13956
7e5aaa09
PA
139572013-06-11 Pedro Alves <palves@redhat.com>
13958
13959 * linux-x86-low.c (initialize_low_arch): Call
13960 init_registers_x32_avx_linux.
13961
d878444c
JK
139622013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13963
13964 Fix compatibility with Android Bionic.
13965 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13966 it is not empty.
13967
3aee8918
PA
139682013-06-07 Pedro Alves <palves@redhat.com>
13969
5f2b57b5 13970 PR server/14823
3aee8918
PA
13971 * Makefile.in (OBS): Add tdesc.o.
13972 (IPA_OBJS): Add tdesc-ipa.o.
13973 (tdesc-ipa.o): New rule.
13974 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13975 interface.
13976 * linux-low.c (new_inferior): Delete.
13977 (disabled_regsets, num_regsets): Delete.
13978 (linux_add_process): Adjust to set the new per-process
13979 new_inferior flag.
13980 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13981 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13982 was a stop. When calling arch_setup, switch the current inferior
13983 to the thread that got an event.
13984 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13985 (regsets_fetch_inferior_registers)
13986 (regsets_store_inferior_registers): New regsets_info parameter.
13987 Adjust to use it.
13988 (linux_register_in_regsets): New regs_info parameter. Adjust to
13989 use it.
13990 (register_addr, fetch_register, store_register): New usrregs_info
13991 parameter. Adjust to use it.
13992 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13993 parameter regs_info. Adjust to use it.
13994 (linux_fetch_registers): Get the current inferior's regs_info, and
13995 adjust to use it.
13996 (linux_store_registers): Ditto.
13997 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13998 (initialize_low): Don't initialize the target_regsets here. Call
13999 initialize_low_arch.
14000 * linux-low.h (target_regsets): Delete declaration.
14001 (struct regsets_info): New.
14002 (struct usrregs_info): New.
14003 (struct regs_info): New.
14004 (struct process_info_private) <new_inferior>: New field.
14005 (struct linux_target_ops): Delete the num_regs, regmap, and
14006 regset_bitmap fields. New field regs_info.
14007 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14008 * i387-fp.c (num_xmm_registers): Delete.
14009 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14010 calls to new interface.
14011 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14012 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14013 Infer the number of xmm registers from the regcache's target
14014 description.
14015 * i387-fp.h (num_xmm_registers): Delete.
14016 * inferiors.c (add_thread): Don't install the thread's regcache
14017 here.
14018 * proc-service.c (gregset_info): Fetch the current inferior's
14019 regs_info. Adjust to use it.
14020 * regcache.c: Include tdesc.h.
14021 (register_bytes, reg_defs, num_registers)
14022 (gdbserver_expedite_regs): Delete.
14023 (get_thread_regcache): If the thread doesn't have a regcache yet,
14024 create one, instead of aborting gdbserver.
14025 (regcache_invalidate_one): Rename to ...
14026 (regcache_invalidate_thread): ... this.
14027 (regcache_invalidate_one): New.
14028 (regcache_invalidate): Only invalidate registers of the current
14029 process.
14030 (init_register_cache): Add target_desc parameter, and use it.
14031 (new_register_cache): Ditto. Assert the target description has a
14032 non zero registers_size.
14033 (regcache_cpy): Add assertions. Adjust.
14034 (realloc_register_cache, set_register_cache): Delete.
14035 (registers_to_string, registers_from_string): Adjust.
14036 (find_register_by_name, find_regno, find_register_by_number)
14037 (register_cache_size): Add target_desc parameter, and use it.
14038 (free_register_cache_thread, free_register_cache_thread_one)
14039 (regcache_release, register_cache_size): New.
14040 (register_size): Add target_desc parameter, and use it.
14041 (register_data, supply_register, supply_register_zeroed)
14042 (supply_regblock, supply_register_by_name, collect_register)
14043 (collect_register_as_string, collect_register_by_name): Adjust.
14044 * regcache.h (struct target_desc): Forward declare.
14045 (struct regcache) <tdesc>: New field.
14046 (init_register_cache, new_register_cache): Add target_desc
14047 parameter.
14048 (regcache_invalidate_thread): Declare.
14049 (regcache_invalidate_one): Delete declaration.
14050 (regcache_release): Declare.
14051 (find_register_by_number, register_cache_size, register_size)
14052 (find_regno): Add target_desc parameter.
14053 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14054 declarations.
14055 * remote-utils.c: Include tdesc.h.
14056 (outreg, prepare_resume_reply): Adjust.
14057 * server.c: Include tdesc.h.
14058 (gdbserver_xmltarget): Delete declaration.
14059 (get_features_xml, process_serial_event): Adjust.
14060 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14061 declare.
14062 (struct process_info) <tdesc>: New field.
14063 (ipa_tdesc): Declare.
14064 * tdesc.c: New file.
14065 * tdesc.h: New file.
14066 * tracepoint.c: Include tdesc.h.
14067 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14068 (get_context_regcache): Adjust to pass ipa_tdesc down.
14069 (do_action_at_tracepoint): Adjust to get the register cache size
14070 from the context regcache's description.
14071 (traceframe_walk_blocks): Adjust to get the register cache size
14072 from the current trace frame's description.
14073 (traceframe_get_pc): Adjust to get current trace frame's
14074 description and pass it down.
14075 (gdb_collect): Adjust to get the register cache size from the
14076 IPA's description.
14077 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14078 (gdbserver_xmltarget): Delete.
14079 (initialize_low_tracepoint): Set the ipa's target description.
14080 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14081 (initialize_low_tracepoint): Set the ipa's target description.
14082 * linux-x86-low.c: Include tdesc.h.
14083 [__x86_64__] (is_64bit_tdesc): New.
14084 (ps_get_thread_area, x86_get_thread_area): Use it.
14085 (i386_cannot_store_register): Rename to ...
14086 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14087 (i386_cannot_fetch_register): Rename to ...
14088 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14089 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14090 to new interface.
14091 (target_regsets): Rename to ...
14092 (x86_regsets): ... this.
14093 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14094 interface.
14095 (x86_siginfo_fixup): Use is_64bit_tdesc.
14096 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14097 (tdesc_x32_avx_linux, tdesc_x32_linux)
14098 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14099 Declare.
14100 (x86_linux_update_xmltarget): Delete.
14101 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14102 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14103 (AMD64_LINUX_USER64_CS): New.
14104 (x86_linux_read_description): New, based on
14105 x86_linux_update_xmltarget.
14106 (same_process_callback): New.
14107 (x86_arch_setup_process_callback): New.
14108 (x86_linux_update_xmltarget): New.
14109 (x86_regsets_info): New.
14110 (amd64_linux_regs_info): New.
14111 (i386_linux_usrregs_info): New.
14112 (i386_linux_regs_info): New.
14113 (x86_linux_regs_info): New.
14114 (x86_arch_setup): Reimplement.
14115 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14116 (x86_emit_ops): Ditto.
14117 (the_low_target): Adjust. Install x86_linux_regs_info,
14118 x86_cannot_fetch_register, and x86_cannot_store_register.
14119 (initialize_low_arch): New.
14120 * linux-ia64-low.c (tdesc_ia64): Declare.
14121 (ia64_fetch_register): Adjust.
14122 (ia64_usrregs_info, regs_info): New globals.
14123 (ia64_regs_info): New function.
14124 (the_low_target): Adjust.
14125 (initialize_low_arch): New function.
14126 * linux-sparc-low.c (tdesc_sparc64): Declare.
14127 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14128 Adjust.
14129 (sparc_arch_setup): New function.
14130 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14131 (the_low_target): Adjust.
14132 (initialize_low_arch): New function.
14133 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14134 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14135 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14136 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14137 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14138 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14139 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14140 (tdesc_powerpc_isa205_vsx64l): Declare.
14141 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14142 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14143 (ppc_set_pc, ppc_get_hwcap): Adjust.
14144 (ppc_usrregs_info): Forward declare.
14145 (!__powerpc64__) ppc_regmap_adjusted: New global.
14146 (ppc_arch_setup): Adjust to the current process'es target
14147 description.
14148 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14149 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14150 (ppc_store_evrregset): Adjust.
14151 (target_regsets): Rename to ...
14152 (ppc_regsets): ... this, and make static.
14153 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14154 (ppc_regs_info): New function.
14155 (the_low_target): Adjust.
14156 (initialize_low_arch): New function.
14157 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14158 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14159 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14160 (tdesc_s390x_linux64v2): Declare.
14161 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14162 (s390_fill_gregset, s390_store_last_break): Adjust.
14163 (target_regsets): Rename to ...
14164 (s390_regsets): ... this, and make static.
14165 (s390_get_pc, s390_set_pc): Adjust.
14166 (s390_get_hwcap): New target_desc parameter, and use it.
14167 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14168 (s390_arch_setup): Adjust to set the current process'es target
14169 description. Don't adjust the regmap.
14170 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14171 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14172 (regs_info_3264): New globals.
14173 (s390_regs_info): New function.
14174 (the_low_target): Adjust.
14175 (initialize_low_arch): New function.
14176 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14177 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14178 [__mips64] (init_registers_mips_linux)
14179 (init_registers_mips_dsp_linux): Delete defines.
14180 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14181 (have_dsp): New global.
14182 (mips_read_description): New, based on mips_arch_setup.
14183 (mips_arch_setup): Reimplement.
14184 (get_usrregs_info): New function.
14185 (mips_cannot_fetch_register, mips_cannot_store_register)
14186 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14187 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14188 (target_regsets): Rename to ...
14189 (mips_regsets): ... this, and make static.
14190 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14191 (dsp_regs_info, regs_info): New globals.
14192 (mips_regs_info): New function.
14193 (the_low_target): Adjust.
14194 (initialize_low_arch): New function.
14195 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14196 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14197 Declare.
14198 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14199 (arm_read_description): New, with bits factored from
14200 arm_arch_setup.
14201 (arm_arch_setup): Reimplement.
14202 (target_regsets): Rename to ...
14203 (arm_regsets): ... this, and make static.
14204 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14205 (arm_regs_info): New function.
14206 (the_low_target): Adjust.
14207 (initialize_low_arch): New function.
14208 * linux-m68k-low.c (tdesc_m68k): Declare.
14209 (target_regsets): Rename to ...
14210 (m68k_regsets): ... this, and make static.
14211 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14212 (m68k_regs_info): New function.
14213 (m68k_arch_setup): New function.
14214 (the_low_target): Adjust.
14215 (initialize_low_arch): New function.
14216 * linux-sh-low.c (tdesc_sharch): Declare.
14217 (target_regsets): Rename to ...
14218 (sh_regsets): ... this, and make static.
14219 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14220 (sh_regs_info, sh_arch_setup): New functions.
14221 (the_low_target): Adjust.
14222 (initialize_low_arch): New function.
14223 * linux-bfin-low.c (tdesc_bfin): Declare.
14224 (bfin_arch_setup): New function.
14225 (bfin_usrregs_info, regs_info): New globals.
14226 (bfin_regs_info): New function.
14227 (the_low_target): Adjust.
14228 (initialize_low_arch): New function.
14229 * linux-cris-low.c (tdesc_cris): Declare.
14230 (cris_arch_setup): New function.
14231 (cris_usrregs_info, regs_info): New globals.
14232 (cris_regs_info): New function.
14233 (the_low_target): Adjust.
14234 (initialize_low_arch): New function.
14235 * linux-cris-low.c (tdesc_crisv32): Declare.
14236 (cris_arch_setup): New function.
14237 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14238 (cris_regs_info): New function.
14239 (the_low_target): Adjust.
14240 (initialize_low_arch): New function.
14241 * linux-m32r-low.c (tdesc_m32r): Declare.
14242 (m32r_arch_setup): New function.
14243 (m32r_usrregs_info, regs_info): New globals.
14244 (m32r_regs_info): Adjust.
14245 (initialize_low_arch): New function.
14246 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14247 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14248 (tic6x_usrregs_info): Forward declare.
14249 (tic6x_read_description): New function, based on ...
14250 (tic6x_arch_setup): ... this. Reimplement.
14251 (target_regsets): Rename to ...
14252 (tic6x_regsets): ... this, and make static.
14253 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14254 (tic6x_regs_info): New function.
14255 (the_low_target): Adjust.
14256 (initialize_low_arch): New function.
14257 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14258 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14259 (target_regsets): Rename to ...
14260 (xtensa_regsets): ... this, and make static.
14261 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14262 globals.
14263 (xtensa_arch_setup, xtensa_regs_info): New functions.
14264 (the_low_target): Adjust.
14265 (initialize_low_arch): New function.
14266 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14267 (nios2_arch_setup): Set the current process'es tdesc.
14268 (target_regsets): Rename to ...
14269 (nios2_regsets): ... this.
14270 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14271 (nios2_regs_info): New function.
14272 (the_low_target): Adjust.
14273 (initialize_low_arch): New function.
a261b8f5
PA
14274 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14275 (aarch64_arch_setup): Set the current process'es tdesc.
14276 (target_regsets): Rename to ...
14277 (aarch64_regsets): ... this.
14278 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14279 (aarch64_regs_info): New function.
14280 (the_low_target): Adjust.
14281 (initialize_low_arch): New function.
3aee8918
PA
14282 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14283 globals.
14284 (target_regsets): Rename to ...
14285 (tile_regsets): ... this.
14286 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14287 (tile_regs_info): New function.
14288 (tile_arch_setup): Set the current process'es tdesc.
14289 (the_low_target): Adjust.
14290 (initialize_low_arch): New function.
14291 * spu-low.c (tdesc_spu): Declare.
14292 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14293 * win32-arm-low.c (tdesc_arm): Declare.
14294 (arm_arch_setup): New function.
14295 (the_low_target): Install arm_arch_setup instead of
14296 init_registers_arm.
14297 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14298 (init_windows_x86): Rename to ...
14299 (i386_arch_setup): ... this. Set `win32_tdesc'.
14300 (the_low_target): Adjust.
14301 * win32-low.c (win32_tdesc): New global.
14302 (child_add_thread): Don't create the thread cache here.
14303 (do_initial_child_stuff): Set the new process'es tdesc.
14304 * win32-low.h (struct target_desc): Forward declare.
14305 (win32_tdesc): Declare.
14306 * lynx-i386-low.c (tdesc_i386): Declare global.
14307 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14308 * lynx-low.c (lynx_tdesc): New global.
14309 (lynx_add_process): Set the new process'es tdesc.
14310 * lynx-low.h (struct target_desc): Forward declare.
14311 (lynx_tdesc): Declare global.
14312 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14313 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14314 * nto-low.c (nto_tdesc): New global.
14315 (do_attach): Set the new process'es tdesc.
14316 * nto-low.h (struct target_desc): Forward declare.
14317 (nto_tdesc): Declare.
14318 * nto-x86-low.c (tdesc_i386): Declare.
14319 (nto_x86_arch_setup): Set `nto_tdesc'.
14320
b1fbec62
GB
143212013-06-04 Gary Benson <gbenson@redhat.com>
14322
14323 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14324 to qSupported response when appropriate.
14325 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14326 with nonzero-length annex.
14327 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14328 arguments supplied in annex.
14329
d1ec4ce7
DE
143302013-05-31 Doug Evans <dje@google.com>
14331
ac44adcb 14332 PR server/15594
d1ec4ce7
DE
14333 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14334 64 bits in 64-cross-32 environment.
14335
9b25f2d3
PA
143362013-05-28 Pedro Alves <palves@redhat.com>
14337
14338 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14339 (aarch64-without-fpu.c): Delete rule.
14340 * configure.srv (aarch64*-*-linux*): Remove references to
14341 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14342 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14343 declaration.
14344
6740dc9c
PA
143452013-05-24 Pedro Alves <palves@redhat.com>
14346
14347 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14348 instead of strchr/decode_address. Error if the range isn't split
14349 with a ','. Don't assume there's be a ':' in the action.
14350
c2d6af84
PA
143512013-05-23 Yao Qi <yao@codesourcery.com>
14352 Pedro Alves <palves@redhat.com>
14353
14354 * linux-low.c (lwp_in_step_range): New function.
14355 (linux_wait_1): If the thread was range stepping and stopped
14356 outside the stepping range, report the stop to GDB. Otherwise,
14357 continue stepping. Add range stepping debug output.
14358 (linux_set_resume_request): Copy the step range from the resume
14359 request to the lwp.
14360 (linux_supports_range_stepping): New.
14361 (linux_target_ops) <supports_range_stepping>: Set to
14362 linux_supports_range_stepping.
14363 * linux-low.h (struct linux_target_ops)
14364 <supports_range_stepping>: New field.
14365 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14366 * linux-x86-low.c (x86_supports_range_stepping): New.
14367 (the_low_target) <supports_range_stepping>: Set to
14368 x86_supports_range_stepping.
14369 * server.c (handle_v_cont): Handle 'r' action.
14370 (handle_v_requests): Append ";r" if the target supports range
14371 stepping.
14372 * target.h (struct thread_resume) <step_range_start,
14373 step_range_end>: New fields.
14374 (struct target_ops) <supports_range_stepping>:
14375 New field.
14376 (target_supports_range_stepping): New macro.
14377
58794e1a
JB
143782013-05-17 Joel Brobecker <brobecker@adacore.com>
14379
14380 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14381 confusion in comment.
14382
d631c5a7
JB
143832013-05-17 Joel Brobecker <brobecker@adacore.com>
14384
14385 * lynx-low.c (struct process_info_private): New type.
14386 (lynx_add_process): New function.
14387 (lynx_create_inferior, lynx_attach): Replace calls to
14388 add_process by calls to lynx_add_process.
14389 (lynx_resume): If PTID is null, then try using
14390 current_process()->private->last_wait_event_ptid.
14391 Add comments.
14392 (lynx_clear_inferiors): Delete. The contents of that function
14393 has been inlined in lynx_mourn;
14394 (lynx_wait_1): Save the ptid in the process's private data.
14395 (lynx_mourn): Free the process' private data. Replace call
14396 to lynx_clear_inferiors by call to clear_inferiors.
14397
96f7a20f
YQ
143982013-05-17 Yao Qi <yao@codesourcery.com>
14399
14400 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14401 the right place.
14402
db0dfaa0
LM
144032013-05-16 Luis Machado <lgustavo@codesourcery.com>
14404
14405 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14406 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14407 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14408 PT_TEXT_END_ADDR guards. Update comments.
14409 (linux_target_op) <read_offsets>: Conditionally define to
14410 linux_read_offsets if the target is UCLIBC and if it defines
14411 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14412
68f5f838
SL
144132013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14414 Andrew Jenner <andrew@codesourcery.com>
14415
14416 * Makefile.in (SFILES): Add linux-nios2-low.c.
14417 (clean): Add action to delete nios2-linux.c.
14418 (nios2-linux.c): New rule.
14419 * configure.srv: Add nios2*-*-linux*.
14420 * linux-nios2-low.c: New.
14421
1ebff1fd
HAQ
144222013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14423
14424 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14425
f6150862
HZ
144262013-04-25 Hui Zhu <hui@codesourcery.com>
14427
14428 PR gdb/15186
f6150862
HZ
14429 * ax.c (ax_printf): Add fflush.
14430
614c279d
TT
144312013-04-22 Tom Tromey <tromey@redhat.com>
14432
14433 * Makefile.in (SFILES): Add filestuff.c.
14434 (OBS): Add filestuff.o.
14435 (filestuff.o): New target.
14436 * config.in, configure: Rebuild.
14437 * configure.ac: Check for fdwalk, pipe2.
14438
7d4e5717
PA
144392013-04-17 Pedro Alves <palves@redhat.com>
14440
14441 * configure.ac (USE_THREAD_DB): Delete variable.
14442 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14443 Don't AC_SUBST USE_THREAD_DB.
14444 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14445 * config.in, configure: Regenerate.
14446
d5c93e41
PA
144472013-04-16 Pedro Alves <palves@redhat.com>
14448
14449 * linux-low.h (struct lwp_info) <thread_known>: Move under
14450 the USE_THREAD_DB #ifdef.
14451
04f5fe89
PA
144522013-04-16 Pedro Alves <palves@redhat.com>
14453
14454 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14455 (linux-low.o): Delete rule.
14456 * linux-low.h: Always include "gdb_thread_db.h" instead of
14457 conditionally including thread_db.h.
14458 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14459 HAVE_THREAD_DB_H.
14460
480b27bf
JK
144612013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14462
14463 * Makefile.in (install-only): Fix make install regression.
14464
43662968
JK
144652013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14466
14467 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14468 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14469 installation.
14470 * gdbserver.1: Remove.
14471
3e74e146
PA
144722013-03-22 Pedro Alves <palves@redhat.com>
14473
14474 * linux-low.c (handle_extended_wait): Don't call
14475 linux_enable_event_reporting.
14476
a8347a2a
TT
144772013-03-15 Tony Theodore <tonyt@logyst.com>
14478
14479 PR build/9098:
14480 * Makefile.in (SHELL): Use @SHELL@.
14481
eeb56fa7
SDJ
144822013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14483
14484 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14485 compiler warning.
14486
4fa7e2ff
JB
144872013-03-13 Joel Brobecker <brobecker@adacore.com>
14488
14489 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14490 Remove extraneous NULL element.
14491
8ddb1965
YQ
144922013-03-13 Yao Qi <yao@codesourcery.com>
14493
14494 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14495 'V' block in trace frame.
14496
9accd112
MM
144972013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14498
14499 * target.h (struct target_ops): Add btrace ops.
14500 (target_supports_btrace): New macro.
14501 (target_enable_btrace): New macro.
14502 (target_disable_btrace): New macro.
14503 (target_read_btrace): New macro.
14504 * gdbthread.h (struct thread_info): Add btrace field.
14505 * server.c: Include btrace-common.h.
14506 (handle_btrace_general_set): New function.
14507 (handle_btrace_enable): New function.
14508 (handle_btrace_disable): New function.
14509 (handle_general_set): Call handle_btrace_general_set.
14510 (handle_qxfer_btrace): New function.
14511 (struct qxfer qxfer_packets[]): Add btrace entry.
14512 * inferiors.c (remove_thread): Disable btrace.
14513 * linux-low: Include linux-btrace.h.
14514 (linux_low_enable_btrace): New function.
14515 (linux_low_read_btrace): New function.
14516 (linux_target_ops): Add btrace ops.
14517 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14518 Add srv_linux_btrace=yes.
14519 (x86_64-*-linux*): Add linux-btrace.o.
14520 Add srv_linux_btrace=yes.
14521 * configure.ac: Define HAVE_LINUX_BTRACE.
14522 * config.in: Regenerated.
14523 * configure: Regenerated.
14524
5cc22e4c
MM
145252013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14526
14527 * server.c (handle_qxfer): Preserve error message if -3 is
14528 returned.
14529 (qxfer): Document the -3 return value.
14530
7c97f91e
MM
145312013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14532
14533 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14534 (linux_btrace_h): New variable.
14535 (linux-btrace.o): New rule.
14536
be9a119c 145372013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14538 Hafiz Abid Qadeer <abidh@codesourcery.com>
14539
14540 * tracepoint.c (trace_buffer_size): New global.
14541 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14542 (init_trace_buffer): Change to one-argument function. Allocate
14543 trace buffer memory.
14544 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14545 handle QTBuffer:size packet.
14546 (cmd_bigqtbuffer_size): New function.
14547 (initialize_tracepoint): Call init_trace_buffer with
14548 DEFAULT_TRACE_BUFFER_SIZE.
14549 * server.c (handle_query): Add QTBuffer:size in the
14550 supported packets.
14551
e64f7499
YQ
145522013-03-07 Yao Qi <yao@codesourcery.com>
14553
14554 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14555 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14556 of -1.
14557 (cmd_qtsp): Adjust condition. Do post increment.
14558 Set cur_action and cur_step_action back to 0.
14559
f0ae6fc3
PA
145602013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14561
14562 PR server/15236
14563 * linux-low.c (linux_write_memory): Return early success if LEN is
14564 zero.
14565
b5b0b0af
CV
145662013-03-05 Corinna Vinschen <vinschen@redhat.de>
14567
334ad4a8 14568 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14569
589bc927
TT
145702013-02-28 Tom Tromey <tromey@redhat.com>
14571
14572 * configure.ac: Invoke AC_SYS_LARGEFILE.
14573 * configure, config.in: Rebuild.
14574
dfe07582
CV
145752013-02-28 Corinna Vinschen <vinschen@redhat.com>
14576
14577 * win32-low.c: Throughout, fix format strings and casts of
14578 printf-like functions to avoid type related warnings on all
14579 platforms.
14580 (get_child_debug_event): Print dwDebugEventCode as hex since
14581 that's how it's usually documented.
14582
736cd585
YQ
145832013-02-28 Yao Qi <yao@codesourcery.com>
14584
14585 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14586 pulongest.
14587
e1f58301
JW
145882013-02-27 Jiong Wang <jiwang@tilera.com>
14589
14590 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14591 (reg-tilegx32.c): New rule.
14592 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14593 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14594 different register info initializer according to elf class.
14595 (init_registers_tilgx32): New function. The tilegx32 register info
14596 initializer.
14597 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14598 (tile_store_gregset): Likewise.
14599
d171ca78
YQ
146002013-02-27 Yao Qi <yao@codesourcery.com>
14601
14602 * server.c (process_point_options): Print debug message when
14603 debug_threads is true.
14604
282bbdf3
YQ
146052013-02-26 Yao Qi <yao@codesourcery.com>
14606
14607 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14608
aca22551
PA
146092013-02-19 Pedro Alves <palves@redhat.com>
14610 Kai Tietz <ktietz@redhat.com>
14611
14612 PR gdb/15161
14613
14614 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14615 instead of strtoul to extract address from packet.
14616 (process_serial_event) <'z'>: Likewise.
14617
4f3cee1c
YQ
146182013-02-18 Yao Qi <yao@codesourcery.com>
14619
14620 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14621
8e1d55a3
PA
146222013-02-14 Pedro Alves <palves@redhat.com>
14623
14624 Plug memory leak.
14625
14626 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14627 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14628
458820da
PA
146292013-02-14 Pedro Alves <palves@redhat.com>
14630
14631 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14632
baea0dae
PA
146332013-02-14 Pedro Alves <palves@redhat.com>
14634
14635 * tracepoint.c (save_string): Delete.
14636 (add_tracepoint_action): Use savestring instead of save_string.
14637
0b1afbb3
PA
146382013-02-12 Pedro Alves <palves@redhat.com>
14639
14640 * linux-xtensa-low.c: Ditto.
14641 * xtensa-xtregs.c: Ditto.
14642
8a4ac37e
PA
146432013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14644
14645 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14646 thread_db.
14647
148de6bb
MS
146482013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14649
14650 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14651 aarch64_num_wp_regs and aarch64_num_bp_regs to
14652 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14653
55fac6e0
MS
146542013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14655
14656 * linux-aarch64-low.c (ps_get_thread_area): Replace
14657 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14658
176eb98c
MS
146592013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14660 Marcus Shawcroft <marcus.shawcroft@arm.com>
14661 Nigel Stephens <nigel.stephens@arm.com>
14662 Yufeng Zhang <yufeng.zhang@arm.com>
14663
14664 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14665 (aarch64.c, aarch64-without-fpu.c): New targets.
14666 * configure.srv (aarch64*-*-linux*): New.
14667 * linux-aarch64-low.c: New file.
14668
56f7af9c
MS
146692013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14670
43aaf8b6 14671 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14672 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14673 (dequeue_one_deferred_signal, linux_resume_one_thread)
14674 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14675 (linux_tracefork_grandchild, linux_test_for_tracefork)
14676 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14677 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14678 where the argument is 0.
14679
60f662b0
YQ
146802013-01-25 Yao Qi <yao@codesourcery.com>
14681
14682 * event-loop.c: Include "queue.h".
14683 (gdb_event_p): New typedef.
14684 (struct gdb_event) <next_event>: Remove.
14685 (event_queue): Change to QUEUE(gdb_event_p).
14686 (async_queue_event): Remove.
14687 (gdb_event_xfree): New.
14688 (initialize_event_loop): New.
14689 (process_event): Use API from QUEUE.
14690 (wait_for_event): Likewise.
14691 * server.c (main): Call initialize_event_loop.
14692 * server.h (initialize_event_loop): Declare.
14693
5ae4861a
YQ
146942013-01-18 Yao Qi <yao@codesourcery.com>
14695
14696 * ax.h (struct eval_agent_expr_context): New.
14697 (gdb_eval_agent_expr): Update declaration.
14698 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14699 TFRAME. Add new argument CTX.
14700 * server.h (struct eval_agent_expr_context): Declare.
14701 (agent_mem_read, agent_tsv_read): Update declaration.
14702 (agent_mem_read_string): Likewise.
14703 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14704 (add_traceframe_block): Add new argument TPOINT.
14705 Increase TPOINT->traceframe_usage.
14706 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14707 eval_tracepoint_agent_expr.
14708 (condition_true_at_tracepoint): Likewise.
14709 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14710 (agent_mem_read_string, agent_tsv_read): Likewise.
14711
85e00e85
YQ
147122013-01-16 Yao Qi <yao@codesourcery.com>
14713
14714 * linux-low.c (linux_resume_one_lwp): Don't check
14715 'lwp->bp_reinsert != 0'.
14716
4039cf45
JB
147172013-01-07 Joel Brobecker <brobecker@adacore.com>
14718 Pedro Alves <palves@redhat.com>
14719
14720 * lynx-low.c (ptrace_request_to_str): Define a temporary
14721 macro and use it to simplify this function's implementation.
14722
9044dee2
JB
147232013-01-07 Joel Brobecker <brobecker@adacore.com>
14724
14725 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14726 sets errno.
14727
e6352c8f
JB
147282013-01-07 Joel Brobecker <brobecker@adacore.com>
14729
14730 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14731
50681a27
JB
147322013-01-07 Joel Brobecker <brobecker@adacore.com>
14733
14734 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14735
3f6e77ef
JB
147362013-01-07 Joel Brobecker <brobecker@adacore.com>
14737
14738 * lynx-low.c (lynx_resume): Use the resume_info parameter
14739 to determine the ptid for the lynx_ptrace call, unless
14740 it is equal to minus_one_ptid, in which case we use the
14741 ptid of the current_inferior.
14742 (lynx_wait_1): After having received a thread create/exit
14743 event, resume the inferior's execution using the signaling
14744 thread's ptid, rather than the old ptid.
14745
7fda33ae
JB
147462013-01-07 Joel Brobecker <brobecker@adacore.com>
14747
14748 * lynx-low.c (lynx_resume): Delete variable ret.
14749
b9786c74
JB
147502013-01-01 Joel Brobecker <brobecker@adacore.com>
14751
14752 * gdbreplay.c (gdbreplay_version): Update copyright year.
14753 * server.c (gdbserver_version): Likewise.
14754
8b93d60f
JB
147552012-12-17 Joel Brobecker <brobecker@adacore.com>
14756
14757 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14758 new thread.
14759
037335a7
JB
147602012-12-17 Joel Brobecker <brobecker@adacore.com>
14761
14762 * lynx-low.c (ptrace_request_to_str): Add handling for
14763 PTRACE_GETTRACESIG.
14764
52d4cbd8
JB
147652012-12-17 Joel Brobecker <brobecker@adacore.com>
14766
14767 * lynx-low.c (lynx_attach): Delete variable new_process.
14768
ab8f6ca9
JB
147692012-12-17 Joel Brobecker <brobecker@adacore.com>
14770
14771 * lynx-low.c (lynx_create_inferior): Delete variable
14772 new_process.
14773
78cbc024
JB
147742012-12-17 Joel Brobecker <brobecker@adacore.com>
14775
14776 * lynx-low.c (ptrace_request_to_str): Do not handle
14777 PTRACE_GETTHREADLIST if this macro does not exist.
14778
14a00470
YQ
147792012-12-15 Yao Qi <yao@codesourcery.com>
14780
14781 * Makefile.in (OBS): Add notif.o.
14782 * notif.c, notif.h: New.
14783 * server.c: Include "notif.h".
14784 (struct vstop_notif) <next>: Remove.
14785 <base>: New field.
14786 (queue_stop_reply): Update.
14787 (push_event, send_next_stop_reply): Remove.
14788 (discard_queued_stop_replies): Update.
14789 (notif_stop): New variable.
14790 (handle_v_stopped): Remove.
14791 (handle_v_requests): Don't call handle_v_stopped. Call
14792 handle_ack_notif instead.
14793 (queue_stop_reply_callback): Call notif_event_enque instead
14794 of queue_stop_reply.
14795 (handle_status): Don't call send_next_stop_reply, call
14796 notif_write_event instead.
14797 (kill_inferior_callback): Likewise.
14798 (detach_or_kill_inferior_callback): Likewise.
14799 (main): Call initialize_notif.
14800 (process_serial_event): Call QUEUE_is_empty.
14801 (handle_target_event): Call notif_push instead of push event.
14802 * server.h (push_event): Remove declaration.
14803
61c125b9
TT
148042012-12-10 Tom Tromey <tromey@redhat.com>
14805
14806 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14807 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14808 macros.
14809 (.c.o): Rewrite.
14810 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14811 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14812 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14813 (amd64-linux-ipa.o, ax.o): Rewrite.
14814 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14815 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14816 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14817 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14818 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14819 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14820 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14821 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14822 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14823 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14824 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14825 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14826 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14827 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14828 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14829 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14830 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14831 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14832 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14833 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14834 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14835 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14836 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14837 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14838 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14839 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14840 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14841 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14842 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14843 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14844 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14845 (reg-tilegx.o): Remove.
14846 (all_object_files): New macro.
14847 Include .deps files.
14848 * aclocal.m4, configure: Rebuild.
14849 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14850 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14851 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14852
e90e9ad9
TT
148532012-12-05 Tom Tromey <tromey@redhat.com>
14854
14855 PR gdb/14917:
14856 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14857
02d403bf 148582012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14859
14860 * configure.ac: Check for linux/perf_event.h.
14861 * config.in: Regenerated.
14862 * configure: Regenerated.
14863
0270a750
PA
148642012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14865
14866 * hostio.c (handle_readlink): Decrease buffer size
14867 parameter passed to readlink by one byte.
14868
8c29b58e
YQ
148692012-11-26 Yao Qi <yao@codesourcery.com>
14870
14871 * configure.ac (build_warnings): Append '-Wempty-body'.
14872 * configure: Regenerated.
14873 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14874 body.
14875
8bdce1ff
PM
148762012-11-15 Pierre Muller <muller@sourceware.org>
14877
14878 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14879 * config.in: Regenerate.
14880 * configure: Regenerate.
14881 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14882 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14883 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14884 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14885 header.
14886 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14887 instead of <sys/wait.h> header.
14888 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14889
02d403bf 148902012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14891
14892 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14893 (various make rules): Remove -DGDBSERVER
14894
fbd5db48
YQ
148952012-11-09 Yao Qi <yao@codesourcery.com>
14896
14897 * spu-low.c (current_ptid): Move it to ..
14898 * gdbthread.h: ... here. New.
14899 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14900 * server.c (myresume, process_serial_event): Likewise.
14901 * thread-db.c (thread_db_find_new_threads): Likewise.
14902 * tracepoint.c (run_inferior_command): Likewise.
14903
b3dc46ff
AB
149042012-10-01 Andrew Burgess <aburgess@broadcom.com>
14905
14906 * server.c (handle_search_memory_1): Include access length in
14907 warning message.
14908
07c04788
HPN
149092012-09-05 Michael Brandt <michael.brandt@axis.com>
14910
14911 * linux-crisv32-low.c: Fix compile errors.
14912
918d227b
YQ
149132012-09-04 Yao Qi <yao@codesourcery.com>
14914
14915 * tracepoint.c (cmd_qtsv): Adjust debug message.
14916 Don't check CUR_TPOINT.
14917
18c1b81a
YQ
149182012-08-28 Yao Qi <yao@codesourcery.com>
14919
14920 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14921 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14922 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14923 Remove declarations of xmalloc, xreallloc, xstrdup and
14924 freeargv.
14925 * Makefile.in (libiberty_h): New.
14926 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14927 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14928
dc82f37b
YQ
149292012-08-23 Yao Qi <yao@codesourcery.com>
14930
14931 * server.h: Remove declaration of 'xsnprintf'.
14932
406b1477
KS
149332012-08-22 Keith Seitz <keiths@redhat.com>
14934
14935 * server.h: Include build-gnulib-gbserver/config.h.
14936 * gdbreplay.c: Likewise.
14937
e6712ff1
DE
149382012-08-08 Doug Evans <dje@google.com>
14939
14940 * Makefile.in (SFILES): Add gdb_vecs.c.
14941 (OBS): Add gdb_vecs.o.
14942 (gdb_vecs_h, host_defs_h): New variables.
14943 (thread-db.o): Add $(gdb_vecs_h) dependency.
14944 (gdb_vecs.o): New rule.
14945 * thread-db.c: #include "gdb_vecs.h".
14946 (thread_db_load_search): Use a vector to iterate over path elements.
14947 Handle text appearing after "$pdir".
14948
14949 * configure.ac: Add check for strstr.
14950 * config.in: Regenerate.
14951 * configure: Regenerate.
14952
7c3270ae
UW
149532012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14954
14955 * hostio.c (handle_pread): If pread fails, fall back to attempting
14956 lseek/read.
14957 (handle_pwrite): Likewise for pwrite.
14958
b62e2b27
UW
149592012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14960
14961 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14962 between unsupported TYPE and unimplementable ADDR/LEN combination.
14963 (arm_insert_point): Act on new return value.
14964
78a99e91
PA
149652012-07-31 Pedro Alves <palves@redhat.com>
14966
14967 * server.c (process_point_options): Only skip tokens if we find
14968 one that is unrecognized. Don't treat 'X' specially while
14969 skipping unrecognized tokens.
14970
fcf303ab
UW
149712012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14972
14973 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14974 to 4-byte-align HW breakpoint addresses for Thumb.
14975
7255706c
YQ
149762012-07-27 Yao Qi <yao@codesourcery.com>
14977
14978 PR remote/14161.
14979
14980 * server.h: Declare gdb_agent_about_to_close.
14981 * target.c (kill_inferior): Include "agent.h".
14982 New. Send command 'kill'.
14983 * target.h (kill_inferior): Removed macro.
14984 * tracepoint.c (gdb_agent_about_to_close): New.
14985 (gdb_agent_helper_thread): Handle command 'close'.
14986 Wait endlessly until the inferior stops.
14987 Install gdb_agent_remove_socket to atexit hook.
14988 (agent_socket_name): New static variable.
14989 (gdb_agent_socket_init): Replace local variable 'name' with
14990 'agent_socket_name'.
14991 (gdb_agent_remove_socket): New.
14992
5a3f286f
YQ
149932012-07-27 Yao Qi <yao@codesourcery.com>
14994
14995 * server.c (process_point_options): Stop at 'X' when parsing.
14996
961bd387
ME
149972012-07-19 Michael Eager <eager@eagercon.com>
14998
a261b8f5 14999 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15000 to hw_execute.
15001 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15002 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15003 hardware breakpoint.
15004
aa7c7447
JK
150052012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15006
15007 * gdbserver/linux-low.c (initialize_low): Call
15008 linux_ptrace_init_warnings.
15009
7f216e7c
DE
150102012-07-02 Doug Evans <dje@google.com>
15011
15012 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15013 pointer to int.
15014
d3ce09f5
SS
150152012-07-02 Stan Shebs <stan@codesourcery.com>
15016
15017 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15018 (ax.o): Add it to build rule.
15019 (ax-ipa.o): Ditto.
15020 (OBS): Add format.o.
15021 (IPA_OBS): Add format.o.
15022 * server.c (handle_query): Claim support for breakpoint commands.
15023 (process_point_options): Add command case.
15024 (process_serial_event): Leave running if there are printfs in
15025 effect.
15026 * mem-break.h (any_persistent_commands): Declare.
15027 (add_breakpoint_commands): Declare.
15028 (gdb_no_commands_at_breakpoint): Declare.
15029 (run_breakpoint_commands): Declare.
15030 * mem-break.c (struct point_command_list): New struct.
15031 (struct breakpoint): New field command_list.
15032 (any_persistent_commands): New function.
15033 (add_commands_to_breakpoint): New function.
15034 (add_breakpoint_commands): New function.
15035 (gdb_no_commands_at_breakpoint): New function.
15036 (run_breakpoint_commands): New function.
15037 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15038 locally.
15039 * ax.c: Include format.h.
15040 (ax_printf): New function.
15041 (gdb_eval_agent_expr): Add printf opcode.
15042
2f8f6aed
YQ
150432012-06-13 Yao Qi <yao@codesourcery.com>
15044
15045 * server.c (start_inferior): Remove duplicated writes to fields
15046 'last_resume_kind' and 'last_status' of 'current_inferior'.
15047
0c9070b3
YQ
150482012-06-12 Yao Qi <yao@codesourcery.com>
15049 Pedro Alves <palves@redhat.com>
15050
15051 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15052 comment.
15053 * server.c (handle_v_cont): Extend comment.
15054
c52daf70
YQ
150552012-06-11 Yao Qi <yao@codesourcery.com>
15056
15057 * linux-low.c (linux_attach): Add 'static'.
15058
d38bbb0a
YQ
150592012-06-06 Yao Qi <yao@codesourcery.com>
15060
15061 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15062
89dc0afd
JK
150632012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15064
15065 Fix gcc -flto compilation warning.
15066 * server.c (main): Make variable multi_mode and attach volatile.
15067
75f62ce7
TJB
150682012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15069
15070 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15071 if the platform doesn't know about it.
15072
65f479b6
PA
150732012-05-30 Jeff Kenton <jkenton@tilera.com>
15074
15075 * Makefile.in (SFILES): Add linux-tile-low.c.
15076 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15077 * configure.srv: Handle tilegx-*-linux*.
15078 * linux-tile-low.c: New file.
15079
0c5bf5a9
JK
150802012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15081
15082 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15083
a493e3e2
PA
150842012-05-24 Pedro Alves <palves@redhat.com>
15085
15086 PR gdb/7205
15087
43aaf8b6 15088 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15089
2ea28649
PA
150902012-05-24 Pedro Alves <palves@redhat.com>
15091
15092 PR gdb/7205
15093
15094 Replace target_signal with gdb_signal throughout.
15095
8d409d16
MR
150962012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15097
15098 * linux-low.c (linux_store_registers): Avoid the copying sequence
15099 when no data has been retrieved by ptrace.
15100
23512c01
MGD
151012012-05-22 Will Deacon <will.deacon@arm.com>
15102
15103 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15104 Include asm/ptrace.h.
15105 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15106 already defined.
15107
4934b29e
MR
151082012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15109
15110 * linux-low.c (linux_store_registers): Don't re-retrieve data
15111 with ptrace that has already been obtained from /proc. Always
15112 copy any data retrieved with ptrace to the buffer supplied.
15113
bde24c0a
PA
151142012-05-11 Yao Qi <yao@codesourcery.com>
15115 Pedro Alves <palves@redhat.com>
15116
15117 * linux-low.c (enum stopping_threads_kind): New.
15118 (stopping_threads): Change type to `enum stopping_threads_kind'.
15119 (handle_extended_wait): If stopping and suspending threads, leave
15120 the new_lwp suspended too.
15121 (linux_wait_for_event): Adjust.
15122 (stop_all_lwps): Set `stopping_threads' to
15123 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15124 whether we're suspending threads or just stopping them. Assert no
15125 recursion happens.
15126
623b6bdf
YQ
151272012-04-29 Yao Qi <yao@codesourcery.com>
15128
15129 * server.h: Move some code to ...
15130 * gdbthread.h: ... here. New.
15131 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15132 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15133 (nto-low.o, win32-low.o): Likewise.
15134 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15135 * regcache.c, remote-utils.c, server.c: Likewise.
15136 * target.c, tracepoint.c, win32-low.c: Likewise.
15137
f15f9948
TJB
151382012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15139
15140 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15141 (PTRACE_ARG4_TYPE): Likewise.
15142 (PTRACE_XFER_TYPE): Likewise.
15143 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15144 ptrace to PTRACE_ARG3_TYPE.
15145 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15146 (PTRACE_ARG4_TYPE): Likewise.
15147 (PTRACE_XFER_TYPE): Likewise.
15148 (linux_detach_one_lwp): Cast fourth argument of
15149 ptrace to long then PTRACE_ARG4_TYPE.
15150 (regsets_fetch_inferior_registers): Cast third argument of
15151 ptrace to long then PTRACE_ARG3_TYPE.
15152 (regsets_store_inferior_registers): Likewise.
15153
38ea300a
PA
151542012-04-20 Pedro Alves <palves@redhat.com>
15155
15156 * configure: Regenerate.
15157
c971b7fa
PA
151582012-04-19 Pedro Alves <palves@redhat.com>
15159
43aaf8b6 15160 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15161 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15162 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15163 (all, install-only, uninstall, clean-info, all-lib, clean): No
15164 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15165 (maintainer-clean realclean distclean): Use subdir_do.
15166 (subdir_do): New.
15167 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15168 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15169 * acinclude.m4: Include acx_configure_dir.m4.
15170 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15171 calls. Call AC_PROG_RANLIB. Configure gnulib using
15172 ACX_CONFIGURE_DIR.
15173 (GNULIB): New.
15174 (GNULIB_STDINT_H): Adjust.
15175 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15176 * gdbreplay.c: Include build-gnulib/config.h.
15177 * server.h: Likewise.
15178 * aclocal.m4: Regenerate.
15179 * config.in: Regenerate.
15180 * configure: Regenerate.
c971b7fa 15181
809277f8
PA
151822012-04-19 Pedro Alves <palves@redhat.com>
15183
15184 * Makefile.in (LIBGNU, INCGNU): Adjust.
15185 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15186 (all, install-only, uninstall, clean-info, all-lib, clean)
15187 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15188 * configure.ac: Adjust AC_OUTPUT output.
15189 * aclocal.m4: Regenerate.
15190 * configure: Regenerate.
15191
fd9bb8b8
PA
151922012-04-19 Pedro Alves <palves@redhat.com>
15193
15194 * Makefile.in (generated_files): New.
15195 (server_h): Remove the explicit dependency on config.h, and depend
15196 on $generated_files.
15197
1c298c66
PA
151982012-04-19 Pedro Alves <palves@redhat.com>
15199
15200 * Makefile.in (INCGNU): Add -Ignulib.
15201
57c4b50b
PA
152022012-04-19 Pedro Alves <palves@redhat.com>
15203
15204 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15205 (INCGNU): ... this, and spell out -I here.
15206 (GNULIB_LIB): Rename to ...
15207 (LIBGNU): ... this.
15208 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15209
1030e047
PA
152102012-04-19 Pedro Alves <palves@redhat.com>
15211
15212 * config.in: Regenerate.
15213
447d4319
PA
152142012-04-19 Pedro Alves <palves@redhat.com>
15215
15216 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15217 * server.h (memmem): Remove declaration.
15218 * config.in: Regenerate.
15219 * configure: Regenerate.
15220
aad9eab9
YQ
152212012-04-19 Yao Qi <yao@codesourcery.com>
15222
15223 * Makefile.in (SFILES): Add common/vec.c.
15224 (OBS): Add vec.o.
15225 (vec.o): New rule.
15226
3e10640f
YQ
152272012-04-19 Yao Qi <yao@codesourcery.com>
15228
15229 * remote-utils.c (prepare_resume_reply): Replace with macro
15230 target_core_of_thread.
15231 * server.c (handle_qxfer_threads_proper): Likewise.
15232 * target.h (traget_core_of_thread): New macro.
15233
71622373
PA
152342012-04-18 Pedro Alves <palves@redhat.com>
15235
15236 * aclocal.m4: Regenerate.
15237 * configure: Regenerate.
15238
80d26939
YQ
152392012-04-16 Yao Qi <yao@codesourcery.com>
15240
15241 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15242 duplicated on address.
15243
42476b70
YQ
152442012-04-16 Yao Qi <yao@codesourcery.com>
15245
15246 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15247 (struct tracepoint_action_ops) <send>: New field.
15248 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15249 (agent_expr_send, x_tracepoint_action_send): New.
15250 (l_tracepoint_action_send): New.
15251 (cmd_qtdp): Download and install tracepoint
15252 according to `use_agent'.
15253 (run_inferior_command): Add one more parameter `len'.
15254 Update callers.
15255 (tracepoint_send_agent): New.
15256 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15257
7bc83639
YQ
152582012-04-16 Yao Qi <yao@codesourcery.com>
15259
15260 * tracepoint.c (download_tracepoints): Moved to ...
15261 (cmd_qtstart): ... here.
15262
5f18041e
YQ
152632012-04-14 Yao Qi <yao@codesourcery.com>
15264
15265 * tracepoint.c: Include inttypes.h.
15266 (struct collect_memory_action): Use sized types.
15267 (struct tracepoint): Likewise.
15268 (cmd_qtdp, stop_tracing): Update print specifiers.
15269 (cmd_qtp, response_tracepoint): Likewise.
15270 (collect_data_at_tracepoint): Likewise.
15271 (collect_data_at_step): Likewise.
15272
55a8c076
YQ
152732012-04-14 Yao Qi <yao@codesourcery.com>
15274
15275 Import gnulib module inttypes.
15276 * aclocal.m4, config.in, configure: Regenerated.
15277
dc750257
YQ
152782012-04-14 Yao Qi <yao@codesourcery.com>
15279
15280 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15281 Makefile and config.status at last.
15282
0ab5faf9
YQ
152832012-04-13 Yao Qi <yao@codesourcery.com>
15284
15285 * tracepoint.c: Include stdint.h unconditionally.
15286
18f5fd81
TJB
152872012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15288
15289 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15290 on BFD_HAVE_SYS_PROCFS_TYPE.
15291 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15292 * configure: Regenerate.
15293 * config.in: Likewise.
15294
4d47af5c
L
152952012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15296
15297 * Makefile.in (clean): Also remove x32.c x32-linux.c
15298 x32-avx.c x32-avx-linux.c.
15299 (x32.o): New target.
15300 (x32.c): Likewise.
15301 (x32-linux.o): Likewise.
15302 (x32-linux.c): Likewise.
15303 (x32-avx.o): Likewise.
15304 (x32-avx.c): Likewise.
15305 (x32-avx-linux.o): Likewise.
15306 (x32-avx-linux.c): Likewise.
15307
15308 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15309 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15310 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15311 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15312 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15313 i386/x32-avx-linux.xml.
15314
15315 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15316 (init_registers_x32_avx_linux): Likwise.
15317 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15318 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15319
ecedbe58
PA
153202012-04-13 Pedro Alves <palves@redhat.com>
15321
15322 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15323 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15324 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15325 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15326 the sub-make.
15327
c92b5177
L
153282012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15329
15330 * linux-x86-low.c (compat_x32_clock_t): New.
15331 (compat_x32_siginfo_t): Likewise.
15332 (compat_x32_siginfo_from_siginfo): Likewise.
15333 (siginfo_from_compat_x32_siginfo): Likewise.
15334 (linux_is_elf64): Likewise.
15335 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15336 and siginfo_from_compat_x32_siginfo for x32.
15337 (x86_arch_setup): Set linux_is_elf64.
15338
214d508e
L
153392012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15340
15341 PR gdb/13969
15342 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15343 e_machine field.
15344 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15345 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15346 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15347 compatible with process.
15348
c9a1864a
YQ
153492012-04-12 Yao Qi <yao@codesourcery.com>
15350
15351 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15352 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15353 (install-only, install-info, clean): Handle sub dir gnulib.
15354 (all-lib, am--refresh): New targets.
15355 (memmem.o): Remove target.
15356 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15357 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15358 (AC_REPLACE_FUNCS): Remove memmem.
15359 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15360 (AC_OUTPUT): Generate Makefile in gnulib/.
15361 * aclocal.m4, config.in, configure: Regenerated.
15362
367ba2c2
MR
153632012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15364
15365 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15366
9d236627
PA
153672012-04-05 Pedro Alves <palves@redhat.com>
15368
15369 -Werror=strict-aliasing
15370
15371 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15372 pointer.
15373
111217b3
PA
153742012-04-04 Pedro Alves <palves@redhat.com>
15375
15376 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15377 (sparc_store_gregset_from_stack, sparc_store_gregset)
15378 (sparc_breakpoint_at): Fix formatting.
15379
8365dcf5
TJB
153802012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15381
15382 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15383 are available.
15384 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15385 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15386 * config.in: Regenerate.
15387 * configure: Likewise.
15388
689cc2ae
PA
153892012-03-29 Pedro Alves <palves@redhat.com>
15390
15391 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15392 Correct ptrace arguments.
15393
c14dfd32
PA
153942012-03-28 Pedro Alves <palves@redhat.com>
15395
15396 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15397 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15398 (IA64_FR1_REGNUM): New defines.
15399 (ia64_fetch_register): New.
15400 (the_low_target): Install it.
15401 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15402 field.
15403 * linux-low.c (linux_fetch_registers): Try the
15404 the_low_target.fetch_register hook first.
15405
15406 * linux-arm-low.c (the_low_target): Adjust.
15407 * linux-bfin-low.c (the_low_target): Adjust.
15408 * linux-cris-low.c (the_low_target): Adjust.
15409 * linux-crisv32-low.c (the_low_target): Adjust.
15410 * linux-m32r-low.c (the_low_target): Adjust.
15411 * linux-m68k-low.c (the_low_target): Adjust.
15412 * linux-mips-low.c (the_low_target): Adjust.
15413 * linux-ppc-low.c (the_low_target): Adjust.
15414 * linux-s390-low.c (the_low_target): Adjust.
15415 * linux-sh-low.c (the_low_target): Adjust.
15416 * linux-sparc-low.c (the_low_target): Adjust.
15417 * linux-tic6x-low.c (the_low_target): Adjust.
15418 * linux-x86-low.c (the_low_target): Adjust.
15419 * linux-xtensa-low.c (the_low_target): Adjust.
15420
63c88e13
PA
154212012-03-26 Pedro Alves <palves@redhat.com>
15422
15423 * server.c (handle_qxfer_libraries): Don't bail early if
15424 the_target->qxfer_libraries_svr4 is not NULL.
15425
fb723180
PA
154262012-03-26 Pedro Alves <palves@redhat.com>
15427
15428 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15429
0afae3cf
PA
154302012-03-23 Pedro Alves <palves@redhat.com>
15431
15432 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15433 "library-list-svr4" element's start tag when the the DSO list is
15434 empty.
15435
485f1ee4
PA
154362012-03-23 Pedro Alves <palves@redhat.com>
15437
15438 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15439 a variable whose type size is the same as the inferior's pointer
15440 size.
15441
a5362b9a
TS
154422012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15443
15444 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15445 struct siginfo.
15446 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15447 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15448 * linux-low.h: Include <signal.h>.
15449 (struct siginfo): Remove forward declaration.
15450 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15451 struct siginfo.
15452
d226c142
MF
154532012-03-21 Mike Frysinger <vapier@gentoo.org>
15454
15455 * .gitignore: Ignore more files.
15456
122f36ef
PA
154572012-03-19 Pedro Alves <palves@redhat.com>
15458 Jan Kratochvil <jan.kratochvil@redhat.com>
15459
15460 * server.c (cont_thread, general_thread): Add describing comments.
15461 (start_inferior): Clear `cont_thread'.
15462 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15463 of a process.
15464
fc3e5175
YQ
154652012-03-15 Yao Qi <yao@codesourcery.com>
15466
15467 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15468 handling to ...
15469 (cmd_qtdp): ... here.
15470
8d0d92cd
YQ
154712012-03-15 Yao Qi <yao@codesourcery.com>
15472
15473 * tracepoint.c (struct tracepoint_action_ops): New.
15474 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15475 (m_tracepoint_action_download): New.
15476 (r_tracepoint_action_download): New.
15477 (x_tracepoint_action_download): New.
15478 (l_tracepoint_action_download): New.
15479 (add_tracepoint_action): Install `action->ops' according type.
15480 (download_tracepoint_1): Move code `download' function pointer
15481 of various tracepoint_action_ops.
15482
87b0bb13
JK
154832012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15484
15485 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15486 linux_ptrace_attach_warnings.
15487
5f572dec
JK
154882012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15489
15490 * Makefile.in (linux-ptrace.o): New.
15491 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15492 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15493 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15494 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15495 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15496 of these targets.
15497 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15498
f4647387
YQ
154992012-03-08 Yao Qi <yao@codesourcery.com>
15500 Pedro Alves <palves@redhat.com>
15501
15502 Fix PR server/13392.
15503 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15504 offset of JMP insn.
15505 * tracepoint.c (remove_tracepoint): New.
15506 (cmd_qtdp): Call remove_tracepoint when failed to install.
15507
9b224c5e
PA
155082012-03-07 Pedro Alves <palves@redhat.com>
15509
15510 * linux-low.c (get_detach_signal): New.
15511 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15512 Pass on pending signals to PTRACE_DETACH. Check the result of the
15513 ptrace call.
15514 * server.c (program_signals, program_signals_p): New.
15515 (handle_general_set): Handle QProgramSignals.
15516 * server.h (program_signals, program_signals_p): Declare.
15517
e237a7e2
JK
155182012-03-05 Pedro Alves <palves@redhat.com>
15519 Jan Kratochvil <jan.kratochvil@redhat.com>
15520
15521 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15522 New comment why.
15523
5808517f
YQ
155242012-03-03 Yao Qi <yao@codesourcery.com>
15525
15526 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15527 agent_look_up_symbols.
15528
58b4daa5
YQ
155292012-03-03 Yao Qi <yao@codesourcery.com>
15530
15531 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15532 (linux-x86-low.o): Likewise.
15533 * server.h: Remove in_process_agent_loaded.
15534 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15535 common/agent.c.
15536 Update callers.
15537
8ffcbaaf
YQ
155382012-03-03 Yao Qi <yao@codesourcery.com>
15539
15540 * tracepoint.c (gdb_agent_capability): New global.
15541 (in_process_agent_loaded_ust): Renamed to
15542 `in_process_agent_supports_ust'.
15543 Update callers.
15544 (in_process_agent_supports_ust): Call agent_capability_check.
15545 (clear_installed_tracepoints): Assert that agent supports
15546 agent.
15547
d1feda86
YQ
155482012-03-03 Yao Qi <yao@codesourcery.com>
15549
15550 * linux-low.c (linux_supports_agent): New.
15551 (linux_target_ops): Initialize field `supports_agent' with
15552 linux_supports_agent.
15553 * target.h (struct target_ops) <supports_agent>: New.
15554 (target_supports_agent): New macro.
15555 * server.c (handle_general_set): Handle packet 'QAgent'.
15556 (handle_query): Send `QAgent+'.
15557 * Makefile.in (server.o): Depends on agent.h.
15558
2fa291ac
YQ
155592012-03-03 Yao Qi <yao@codesourcery.com>
15560
15561 * Makefile.in (OBS): Add agent.o.
15562 Add new rule for agent.o.
15563 Track dependence of tracepoint.c on agent.h.
15564 * tracepoint.c (run_inferior_command_1):
15565 (run_inferior_command): Call agent_run_command.
15566 (gdb_ust_connect_sync_socket): Deleted. Move it to
15567 common/agent.c.
15568 (resume_thread, stop_thread): Likewise.
15569 (gdb_ust_socket_init): Renamed to ...
15570 (gdb_agent_socket_init): ... New.
15571 (gdb_ust_thread): Renamed to ...
15572 (gdb_agent_helper_thread): ... New.
15573 (gdb_ust_init): Move some code to ...
15574 (gdb_agent_init): ... here. New.
15575 [HAVE_UST]: Call gdb_ust_init.
15576 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15577 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15578 * config.in, configure: Regenerated.
15579
05044653
PA
155802012-03-02 Pedro Alves <palves@redhat.com>
15581
15582 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15583 * linux-low.c (struct simple_pid_list): New.
15584 (stopped_pids): New a struct simple_pid_list pointer.
15585 (add_to_pid_list, pull_pid_from_list): New.
15586 (handle_extended_wait): Don't assume the first signal new children
15587 report is SIGSTOP. Adjust call to pull_pid_from_list.
15588 (linux_wait_for_lwp): Adjust.
15589
8d00225b
YQ
155902012-03-02 Yao Qi <yao@codesourcery.com>
15591
15592 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15593 debug log.
15594
19560ba5
YQ
155952012-03-02 Yao Qi <yao@codesourcery.com>
15596
15597 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15598 `stop_pc' and `tpoint'. Update caller.
15599
1faeff08
MR
156002012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15601
15602 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15603 * linux-low.c (use_linux_regsets): New macro.
15604 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15605 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15606 (linux_register_in_regsets): New function.
15607 (usr_fetch_inferior_registers): Skip registers covered by
15608 regsets.
15609 (usr_store_inferior_registers): Likewise.
15610 (usr_fetch_inferior_registers): New macro.
15611 (usr_store_inferior_registers): Likewise.
15612 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15613 (linux_store_registers): Likewise.
15614 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15615 prototype.
15616 (init_registers_mips64_dsp_linux): Likewise.
15617 (init_registers_mips_linux): New macro.
15618 (init_registers_mips_dsp_linux): Likewise.
15619 (mips_dsp_num_regs): Likewise.
15620 (DSP_BASE, DSP_CONTROL): New fallback macros.
15621 (mips_base_regs): New macro.
15622 (mips_regmap): Use it. Fix the size.
15623 (mips_dsp_regmap): New variable.
15624 (mips_dsp_regset_bitmap): Likewise.
15625 (mips_arch_setup): New function.
15626 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15627 than mips_regmap.
15628 (mips_cannot_store_register): Likewise.
15629 (the_low_target): Update .arch_setup, .num_regs and .regmap
15630 initializers. Add .regset_bitmap initializer.
15631 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15632 initializer.
15633 * linux-bfin-low.c (the_low_target): Likewise.
15634 * linux-cris-low.c (the_low_target): Likewise.
15635 * linux-crisv32-low.c (the_low_target): Likewise.
15636 * linux-ia64-low.c (the_low_target): Likewise.
15637 * linux-m32r-low.c (the_low_target): Likewise.
15638 * linux-m68k-low.c (the_low_target): Likewise.
15639 * linux-ppc-low.c (the_low_target): Likewise.
15640 * linux-s390-low.c (the_low_target): Likewise.
15641 * linux-sh-low.c (the_low_target): Likewise.
15642 * linux-sparc-low.c (the_low_target): Likewise.
15643 * linux-tic6x-low.c (the_low_target): Likewise.
15644 * linux-x86-low.c (the_low_target): Likewise.
15645 * linux-xtensa-low.c (the_low_target): Likewise.
15646 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15647 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15648 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15649 srv_xmlfiles.
15650 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15651 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15652
c03e6ccc
YQ
156532012-02-29 Yao Qi <yao@codesourcery.com>
15654 Pedro Alves <palves@redhat.com>
15655
15656 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15657 `step_over_finished' is true.
15658
644cebc9
PA
156592012-02-27 Pedro Alves <palves@redhat.com>
15660
15661 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15662 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15663
c14d7ab2
PA
156642012-02-27 Pedro Alves <palves@redhat.com>
15665
15666 PR server/9684
15667 * linux-low.c (pid_is_stopped): New.
15668 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15669
412c89dd
LM
156702012-02-25 Luis Machado <lgustavo@codesourcery.com>
15671
15672 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15673 of conditions.
15674
b745defe
MR
156752012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15676
15677 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15678
9f3a5c85
LM
156792012-02-24 Luis Machado <lgustavo@codesourcery>
15680
15681 * server.c (handle_query): Advertise support for target-side
15682 breakpoint condition evaluation.
15683 (process_point_options): New function.
15684 (process_serial_event): When inserting a breakpoint, check for
15685 a target-side condition that should be evaluated.
15686
15687 * mem-break.c: Include regcache.h and ax.h.
15688 (point_cond_list_t): New data structure.
15689 (breakpoint) <cond_list>: New field.
15690 (find_gdb_breakpoint_at): Make non-static.
15691 (delete_gdb_breakpoint_at): Clear any target-side
15692 conditions.
15693 (clear_gdb_breakpoint_conditions): New function.
15694 (add_condition_to_breakpoint): Likewise.
15695 (add_breakpoint_condition): Likewise.
15696 (gdb_condition_true_at_breakpoint): Likewise.
15697 (gdb_breakpoint_here): Return result directly instead
15698 of going through a local variable.
15699
15700 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15701 (clear_gdb_breakpoint_conditions): Likewise.
15702 (add_breakpoint_condition): Likewise.
15703 (gdb_condition_true_at_breakpoint): Likewise.
15704
15705 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15706 (need_step_over_p): Take target-side breakpoint condition into
15707 consideration.
15708
5e1dc496
LM
157092012-02-24 Luis Machado <lgustavo@codesourcery>
15710
15711 * server.h: Include tracepoint.h.
15712 (agent_mem_read, agent_get_trace_state_variable_value,
15713 agent_set_trace_state_variable_value,
15714 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15715 get_set_tsv_func_addr): New prototypes.
15716
15717 * ax.h: New include file.
15718 * ax.c: New source file.
15719
15720 * tracepoint.c: Include ax.h.
15721 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15722 agent_expr, eval_result_type): Move to ax.h.
15723 (parse_agent_expr): Rename to ...
15724 (gdb_parse_agent_expr): ... this, make it non-static and move
15725 to ax.h.
15726 (unparse_agent_expr) Rename to ...
15727 (gdb_unparse_agent_expr): ... this, make it non-static and move
15728 to ax.h.
15729 (eval_agent_expr): Rename to ...
15730 (eval_tracepoint_agent_expr): ... this.
15731 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15732 forward declarations.
15733 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15734 (agent_get_trace_state_variable_value): New function.
15735 (agent_set_trace_state_variable_value): New function.
15736 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15737 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15738 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15739 (condition_true_at_tracepoint): Likewise.
15740 (parse_agent_expr): Rename to ...
15741 (gdb_parse_agent_expr): ... this and move to ax.c.
15742 (unparse_agent_expr): Rename to ...
15743 (gdb_unparse_agent_expr): ... this and move to ax.c.
15744 (gdb_agent_op_name): Move to ax.c.
15745 (eval_agent_expr): Rename to ...
15746 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15747 and move to ax.c.
15748 (eval_tracepoint_agent_expr): New function.
15749 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15750 non-static.
5e1dc496
LM
15751 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15752 ax.c.
15753 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15754 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15755 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15756 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15757 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15758 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15759 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15760 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15761 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15762 (compile_bytecodes): Remove forward declaration.
15763 (is_goto_target): Move to ax.c.
15764 (compile_bytecodes): Move to ax.c and call
15765 agent_get_trace_state_variable_value (...) and
15766 agent_set_trace_state_variable_value (...).
15767
15768 * Makefile.in: Update ax.c and IPA dependencies.
15769
277e4e52
PA
157702012-02-24 Pedro Alves <palves@redhat.com>
15771
15772 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15773 (cmd_bigqtbuffer_circular): ... this. Only handle
15774 'QTBuffer:circular:'.
15775 (handle_tracepoint_general_set): Adjust.
15776
bf4c19f7
YQ
157772012-02-16 Yao Qi <yao@codesourcery.com>
15778
15779 * inferiors.c: Move code to ...
15780 * dll.c: .... here. New.
15781 * server.h: Declare clear_dlls.
15782 * Makefile.in (SFILES): Add dll.c.
15783 (OBS): Add dll.o
15784 (dll.o): New rule.
15785
d73f2619
YQ
157862012-02-11 Yao Qi <yao@codesourcery.com>
15787
15788 * server.c: (handle_monitor_command): Add a new parameter
15789 `own_buf'.
15790 (handle_query): Update caller.
15791
f8255c2a
JB
157922012-02-09 Joel Brobecker <brobecker@adacore.com>
15793
15794 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15795 * configure, config.in: Regenerate.
15796 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15797 is not defined.
15798
da84f473
PA
157992012-02-02 Pedro Alves <palves@redhat.com>
15800
15801 Try SIGKILL first, then PTRACE_KILL.
15802 * linux-low.c (linux_kill_one_lwp): New.
15803 (linux_kill_one_lwp): Rename to ...
15804 (kill_one_lwp_callback): ... this. Use the new
15805 linux_kill_one_lwp.
15806
e886a173
PA
158072012-02-02 Pedro Alves <palves@redhat.com>
15808
15809 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15810 inferior.
15811
be07f1a2
PA
158122012-01-27 Pedro Alves <palves@redhat.com>
15813
15814 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15815 (elf_64_file_p): Make static.
15816 (linux_pid_exe_is_elf_64_file): New.
15817 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15818 Delete declarations.
15819 (linux_pid_exe_is_elf_64_file): Declare.
15820 * linux-x86-low.c (x86_arch_setup): Use
15821 linux_pid_exe_is_elf_64_file.
15822
d8301ad1
JK
158232012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15824
15825 * linux-low.c (linux_wait_for_event_1): Rename to ...
15826 (linux_wait_for_event): ... here and merge it with former
15827 linux_wait_for_event - new variable wait_ptid, use it.
15828 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15829
01b17894
PA
158302012-01-23 Pedro Alves <palves@redhat.com>
15831
15832 * server.c (main): Avoid yet another case of infinite loop while
15833 detaching/killing after a longjmp.
15834
e825046f
JK
158352012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15836
15837 Code cleanup.
15838 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15839
b9e7b9c3
UW
158402012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15841
15842 * hostio.c (handle_readlink): New function.
15843 (handle_vFile): Call it to handle "vFile:readlink" packets.
15844
901f9912
UW
158452012-01-20 Pedro Alves <palves@redhat.com>
15846 Ulrich Weigand <ulrich.weigand@linaro.org>
15847
15848 * server.c (handle_v_requests): Only support vAttach and vRun to
15849 start multiple processes when in extended protocol mode.
15850
fc1ab1a0
PA
158512012-01-17 Pedro Alves <palves@redhat.com>
15852
15853 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15854 memalign plus mprotect to allocate the scratch buffer.
15855
7d5d4e98
PA
158562012-01-13 Pedro Alves <palves@redhat.com>
15857
15858 * server.c (attach_inferior): Clear `cont_thread'.
15859
f128d5e9
PA
158602012-01-13 Pedro Alves <palves@redhat.com>
15861
15862 * server.c (main): Avoid infinite loop while detaching/killing
15863 after a longjmp.
15864
06db92f0
DE
158652012-01-09 Doug Evans <dje@google.com>
15866
15867 * server.c (start_inferior): Set last_ptid in --wrapper case.
15868
32d92999
YQ
158692012-01-06 Yao Qi <yao@codesourcery.com>
15870
15871 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15872 defined.
15873 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15874
5e0a92a9
YQ
158752012-01-04 Yao Qi <yao@codesourcery.com>
15876
15877 * tracepoint.c (cmd_qtdp): Print debug message
15878 for static tracepoint.
15879
ae639e8c
YQ
158802012-01-04 Yao Qi <yao@codesourcery.com>
15881
15882 * tracepoint.c (trace_vdebug): Differentiate debug message
15883 between gdbserver and IPA.
15884
f72429c5
YQ
158852012-01-03 Yao Qi <yao@codesourcery.com>
15886
15887 * tracepoint.c (tracepoint_was_hit): Don't collect for
15888 static tracepoint.
15889
12c3e59c
JB
158902012-01-02 Joel Brobecker <brobecker@adacore.com>
15891
15892 * terminal.h: Reformat copyright header.
15893
67827812
JB
158942012-01-02 Joel Brobecker <brobecker@adacore.com>
15895
15896 * server.c (gdbserver_version): Update copyright year.
15897 * gdbreplay.c (gdbreplay_version): Likewise.
15898
3e52c33d
JK
158992011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15900
15901 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15902
15903 Revert:
15904 2011-12-18 Hui Zhu <teawater@gmail.com>
15905 * linux-low.c (linux_create_inferior): Save return value to ret.
15906
66f1260e
HZ
159072011-12-18 Hui Zhu <teawater@gmail.com>
15908
15909 * linux-low.c (linux_create_inferior): Save return value to ret.
15910
e77616d7
DE
159112011-12-16 Doug Evans <dje@google.com>
15912
e7b06c57
DE
15913 * linux-low.c (linux_create_inferior): If stdio connection,
15914 redirect stdin from /dev/null, stdout to stderr.
15915 * remote-utils.c (remote_is_stdio): New static global.
15916 (remote_connection_is_stdio): New function.
15917 (remote_prepare): Handle stdio connection.
15918 (remote_open): Ditto.
15919 (remote_close): Don't close stdin for stdio connections.
15920 (read_prim,write_prim): New functions. Replace all calls to
15921 read/write to these.
15922 * server.c (main): Watch for "-" argument. Move call to
15923 remote_prepare before start_inferior.
15924 * server.h (STDIO_CONNECTION_NAME): New macro.
15925 (remote_connection_is_stdio): Declare.
15926
e77616d7
DE
15927 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15928 in debugging output.
15929
82067193
YQ
159302011-12-15 Yao Qi <yao@codesourcery.com>
15931
15932 * tracepoint.c: Include sys/syscall.h.
15933 (gdb_ust_thread): Remove preprocessor conditional.
15934
82bfbe7e
PA
159352011-12-14 Pedro Alves <pedro@codesourcery.com>
15936
15937 * linux-low.c (linux_detach_one_lwp): Call
15938 the_low_target.prepare_to_resume before detaching.
15939
712c6575
YQ
159402011-12-14 Yao Qi <yao@codesourcery.com>
15941
15942 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15943 of write.
15944
d54d1edf
YQ
159452011-12-14 Yao Qi <yao@codesourcery.com>
15946
15947 * i386-low.c (i386_low_stopped_data_address): Initialize local
15948 variable `control'.
15949
6210a125
PA
159502011-12-13 Pedro Alves <pedro@codesourcery.com>
15951
15952 PR remote/13492
15953
15954 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15955 DR_CONTROL unless necessary. Extend comments.
15956 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15957 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15958
2ece8244
YQ
159592011-12-13 Yao Qi <yao@codesourcery.com>
15960
15961 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15962 macros.
15963 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15964
784867a5
JK
159652011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15966
15967 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15968 Print new debug message for such case.
15969
6bf36717
JK
159702011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15971
15972 Fix overlapping memcpy.
15973 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15974 the read_inferior_memory transfer.
15975 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15976 write_inferior_memory transfer.
15977 (set_fast_tracepoint_jump): New variable buf. Use it for the
15978 read_inferior_memory and write_inferior_memory transfers.
15979 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15980 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15981 Use it for the write_inferior_memory transfer.
15982 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15983 buffers.
15984
50275556
MR
159852011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15986
15987 * linux-low.c (fetch_register, store_register): Make code
15988 consistent, fix formatting.
15989
7325beb4
MR
159902011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15991
15992 * linux-low.c (usr_store_inferior_registers): Factor out code
15993 to handle individual registers into...
15994 (store_register): ... this new function.
15995
c642a434
UW
159962011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15997
15998 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15999 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16000 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16001 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16002 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16003 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16004 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16005 (srv_xmlfiles): Add new XML files.
16006
16007 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16008 and <sys/uio.h>.
16009 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16010 (init_registers_s390_linux32v1): Add prototype.
16011 (init_registers_s390_linux32v2): Likewise.
16012 (init_registers_s390_linux64v1): Likewise.
16013 (init_registers_s390_linux64v2): Likewise.
16014 (init_registers_s390x_linux64v1): Likewise.
16015 (init_registers_s390x_linux64v2): Likewise.
16016 (s390_num_regs): Increment to 52.
16017 (s390_regmap): Add orig_r2 register.
16018 (s390_num_regs_3264): Increment to 68.
16019 (s390_regmap_3264): Add orig_r2 register.
16020 (s390_collect_ptrace_register): Handle orig_r2 register.
16021 (s390_supply_ptrace_register): Likewise.
16022 (s390_fill_last_break): New function.
16023 (s390_store_last_break): Likewise.
16024 (s390_fill_system_call): New function.
16025 (s390_store_system_call): Likewise.
16026 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16027 register sets.
16028 (s390_check_regset): New function.
16029 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16030 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16031 Update target_regsets for available register sets.
16032
2268b414
JK
160332011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16034 Jan Kratochvil <jan.kratochvil@redhat.com>
16035
16036 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16037 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16038 New.
16039 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16040 * linux-low.h (struct process_info_private): New member r_debug.
16041 * server.c (handle_qxfer_libraries): Call
16042 the_target->qxfer_libraries_svr4.
16043 (handle_qxfer_libraries_svr4): New function.
16044 (qxfer_packets): New entry "libraries-svr4".
16045 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16046 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16047 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16048 PACKET_qXfer_libraries_svr4.
16049
d6db1fab
UW
160502011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16051
16052 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16053 PSW address/mask between 8-byte and 16-byte formats.
16054 (s390_supply_ptrace_register): Likewise.
16055 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16056 basic addressing mode bit.
16057
242f5f1c
SS
160582011-11-24 Stan Shebs <stan@codesourcery.com>
16059
16060 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16061
f196051f
SS
160622011-11-17 Stan Shebs <stan@codesourcery.com>
16063
16064 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16065 (tracing_start_time): New global.
16066 (tracing_stop_time): New global.
16067 (tracing_user_name): New global.
16068 (tracing_notes): New global.
16069 (tracing_stop_note): New global.
16070 (cmd_qtstart): Set traceframe_usage, start_time.
16071 (stop_tracing): Set stop_time.
16072 (cmd_qtstatus): Report additional status.
16073 (cmd_qtp): New function.
16074 (handle_tracepoint_query): Call it.
16075 (cmd_qtnotes): New function.
16076 (handle_tracepoint_general_set): Call it.
16077 (get_timestamp): Rename from tsv_get_timestamp.
16078
405f8e94
SS
160792011-11-14 Stan Shebs <stan@codesourcery.com>
16080 Kwok Cheung Yeung <kcy@codesourcery.com>
16081
16082 * linux-x86-low.c (small_jump_insn): New.
16083 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16084 trampoline and error message, build a trampoline and issue a small
16085 jump instruction to it.
16086 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16087 trampoline and error message.
16088 (x86_get_min_fast_tracepoint_insn_len): New.
16089 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16090 * linux-low.h (struct linux_target_ops): Add arguments to
16091 install_fast_tracepoint_jump_pad operation, add new operation.
16092 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16093 arguments.
16094 (linux_get_min_fast_tracepoint_insn_len): New function.
16095 (linux_target_op): Add new operation.
16096 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16097 (gdb_trampoline_buffer_end): Ditto.
16098 (gdb_trampoline_buffer_error): Ditto.
16099 (struct ipa_sym_addresses): Add fields for new IPA variables.
16100 (symbol_list): Add entries for new IPA variables.
16101 (struct tracepoint): Add fields to hold the address range of the
16102 trampoline used by the tracepoint.
16103 (trampoline_buffer_head): New static variable.
16104 (trampoline_buffer_tail): Ditto.
16105 (claim_trampoline_space): New function.
16106 (have_fast_tracepoint_trampoline_buffer): New function.
16107 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16108 structure.
16109 (install_fast_tracepoint): Ditto, also add error buffer argument.
16110 (cmd_qtminftpilen): New function.
16111 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16112 (fast_tracepoint_from_trampoline_address): New function.
16113 (fast_tracepoint_collecting): Handle trampoline as part of jump
16114 pad space.
16115 (set_trampoline_buffer_space): New function.
16116 (initialize_tracepoint): Initialize new IPA variables.
16117 * target.h (struct target_ops): Add arguments to
16118 install_fast_tracepoint_jump_pad operation, add new
16119 get_min_fast_tracepoint_insn_len operation.
16120 (target_get_min_fast_tracepoint_insn_len): New.
16121 (install_fast_tracepoint_jump_pad): Add arguments.
16122 * server.h (IPA_BUFSIZ): Define.
16123 * linux-i386-ipa.c: Include extra header files.
16124 (initialize_fast_tracepoint_trampoline_buffer): New function.
16125 (initialize_low_tracepoint): Call it.
16126 * server.h (set_trampoline_buffer_space): Declare.
16127 (claim_trampoline_space): Ditto.
16128 (have_fast_tracepoint_trampoline_buffer): Ditto.
16129
1e4d1764
YQ
161302011-11-14 Yao Qi <yao@codesourcery.com>
16131
16132 * server.c (handle_query): Handle InstallInTrace for qSupported.
16133 * tracepoint.c (add_tracepoint): Sort list.
16134 (install_tracepoint, download_tracepoint): New.
16135 (cmd_qtdp): Call them to install and download tracepoints.
16136 (sort_tracepoints): Removed.
16137 (cmd_qtstart): Update.
16138
5c73ff4e
YQ
161392011-11-14 Yao Qi <yao@codesourcery.com>
16140
16141 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16142 * mem-break.h: Declare.
16143 * tracepoint.c (cmd_qtstart): Move some code to ...
16144 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16145 New.
16146 (download_tracepoints): Move some code to ...
16147 (download_tracepoint_1): ... here. New.
16148
86a30030
YQ
161492011-11-08 Yao Qi <yao@codesourcery.com>
16150
16151 * remote-utils.c (relocate_instruction): A comment fix.
16152
8d26e50c
JB
161532011-11-07 Joel Brobecker <brobecker@adacore.com>
16154
16155 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16156 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16157 dr_status_mirror and dr_control_mirror from debug_reg_state.
16158 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16159 (i386_initial_stuff): Remove use of deleted globals.
16160 (i386_get_thread_context, i386_set_thread_context,
16161 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16162 from debug_reg_state.
16163
a59306a3
YQ
161642011-11-05 Yao Qi <yao@codesourcery.com>
16165
16166 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16167 address as TPOINT's.
16168
3065dfb6
SS
161692011-11-02 Stan Shebs <stan@codesourcery.com>
16170
16171 * tracepoint.c (agent_mem_read_string): New function.
16172 (eval_agent_expr): Call it for tracenz.
16173 * server.c (handle_query): Report support for tracenz.
16174
fd0d8c7c
YQ
161752011-11-02 Yao Qi <yao@codesourcery.com>
16176
16177 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16178
609086b1
YQ
161792011-11-02 Yao Qi <yao@codesourcery.com>
16180
16181 * target.h: Fix a typo in comment.
16182
b9fd1791
PA
161832011-10-31 Pedro Alves <pedro@codesourcery.com>
16184
16185 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16186 clobber the breakpoints' shadows with fast tracepoint jumps.
16187 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16188 * target.c (write_inferior_memory): Also pass MYADDR down to
16189 check_mem_write.
16190
03583c20
UW
161912011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16192
16193 * configure.ac: Check support for personality routine.
16194 * configure: Regenerate.
16195 * config.in: Likewise.
16196 * linux-low.c: Include <sys/personality.h>.
16197 Define ADDR_NO_RANDOMIZE if necessary.
16198 (linux_create_inferior): Disable address space randomization when
16199 forking inferior, if requested.
16200 (linux_supports_disable_randomization): New function.
16201 (linux_target_ops): Install it.
16202 * server.h (disable_randomization): Declare.
16203 * server.c (disable_randomization): New global variable.
16204 (handle_general_set): Handle QDisableRandomization.
16205 (handle_query): Likewise for qSupported.
16206 (main): Support --disable-randomization and --no-disable-randomization
16207 command line arguments.
16208 * target.h (struct target_ops): Add supports_disable_randomization.
16209 (target_supports_disable_randomization): New macro.
16210
723b724b
MF
162112011-09-29 Mike Frysinger <vapier@gentoo.org>
16212
16213 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16214 ifdef check.
16215 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16216 [!PT_GETDSBT] (target_loadmap): New definition.
16217 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16218 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16219 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16220 and PT_GETDSBT to LINUX_LOADMAP.
16221 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16222 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16223
55329a5c 162242011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16225
16226 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16227 (arm_linux_hwbp_cap): New static variable.
16228 (arm_linux_get_hwbp_cap): Replace by ...
16229 (arm_linux_init_hwbp_cap): ... this new function.
16230 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16231 (arm_linux_get_hw_watchpoint_count): Likewise.
16232 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16233 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16234 (arm_prepare_to_resume): Use perror_with_name instead of error.
16235
55329a5c 162362011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16237
16238 * linux-arm-low.c: Include <signal.h>.
16239 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16240 (struct arm_linux_hwbp_cap): New data type.
16241 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16242 (struct arm_linux_hw_breakpoint): New data type.
16243 (MAX_BPTS, MAX_WPTS): Define.
16244 (struct arch_process_info, struct arch_lwp_info): New data types.
16245 (arm_linux_get_hwbp_cap): New function.
16246 (arm_linux_get_hw_breakpoint_count): Likewise.
16247 (arm_linux_get_hw_watchpoint_count): Likewise.
16248 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16249 (arm_hwbp_control_initialize): Likewise.
16250 (arm_hwbp_control_is_enabled): Likewise.
16251 (arm_hwbp_control_is_initialized): Likewise.
16252 (arm_hwbp_control_disable): Likewise.
16253 (arm_linux_hw_breakpoint_equal): Likewise.
16254 (arm_linux_hw_point_initialize): Likewise.
16255 (struct update_registers_data): New data structure.
16256 (update_registers_callback: New function.
16257 (arm_insert_point): Likewise.
16258 (arm_remove_point): Likewise.
16259 (arm_stopped_by_watchpoint): Likewise.
16260 (arm_stopped_data_address): Likewise.
16261 (arm_new_process): Likewise.
16262 (arm_new_thread): Likewise.
16263 (arm_prepare_to_resume): Likewise.
16264 (the_low_target): Register arm_insert_point, arm_remove_point,
16265 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16266 arm_new_thread, and arm_prepare_to_resume.
16267
6b9801d4
SS
162682011-09-15 Stan Shebs <stan@codesourcery.com>
16269
16270 * server.h (struct emit_ops): Add compare-goto fields.
16271 * tracepoint.c (gdb_agent_op_sizes): New table.
16272 (emit_eq_goto): New function.
16273 (emit_ne_goto): New function.
16274 (emit_lt_goto): New function.
16275 (emit_le_goto): New function.
16276 (emit_gt_goto): New function.
16277 (emit_ge_goto): New function.
16278 (is_goto_target): New function.
16279 (compile_bytecodes): Recognize special cases of compare-goto
16280 combinations and call specialized emitters for them.
16281 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16282 (amd64_emit_ne_goto): New function.
16283 (amd64_emit_lt_goto): New function.
16284 (amd64_emit_le_goto): New function.
16285 (amd64_emit_gt_goto): New function.
16286 (amd64_emit_ge_goto): New function.
16287 (amd64_emit_ops): Add the new functions.
16288 (i386_emit_eq_goto): New function.
16289 (i386_emit_ne_goto): New function.
16290 (i386_emit_lt_goto): New function.
16291 (i386_emit_le_goto): New function.
16292 (i386_emit_gt_goto): New function.
16293 (i386_emit_ge_goto): New function.
16294 (i386_emit_ops): Add the new functions.
16295
bf15cbda
SS
162962011-09-08 Stan Shebs <stan@codesourcery.com>
16297
16298 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16299 (i386_emit_epilogue): Restore %ebx.
16300
943ca1dd
JZ
163012011-08-31 Jie Zhang <jzhang918@gmail.com>
16302
16303 * server.c (step_thread): Remove definition.
16304 (process_serial_event): Don't handle Hs.
16305 * server.h (step_thread): Remove declaration.
16306 * target.c (set_desired_inferior): Remove use of step_thread.
16307
e3deef73
LM
163082011-08-24 Luis Machado <lgustavo@codesourcery.com>
16309
16310 * linux-low.c: Include linux-procfs.h.
16311 (linux_attach_lwp_1): Update comments.
16312 (linux_attach): Scan for existing threads when attaching to a
16313 process that is the tgid.
16314 * Makefile.in: Update dependencies.
16315
13da1c97
LM
163162011-08-24 Luis Machado <lgustavo@codesourcery.com>
16317
16318 * configure.srv: Add linux-procfs.o dependencies.
16319
881127c9
YQ
163202011-08-14 Yao Qi <yao@codesourcery.com>
16321
16322 * target.h (struct target_ops): Fix indent.
16323 * win32-low.c (win32_target_ops): Fix comment.
16324
58dbd541
YQ
163252011-08-14 Andrew Jenner <andrew@codesourcery.com>
16326 Yao Qi <yao@codesourcery.com>
16327
16328 * Makefile.in (clean): Remove tic6x-*.c files.
16329 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16330 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16331 (tic6x-c64xp-linux.c): Likewise.
16332 * configure.srv: Add support for tic6x-*-uclinux.
16333 * linux-tic6x-low.c: New.
16334 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16335
78d85199
YQ
163362011-08-14 Andrew Stubbs <ams@codesourcery.com>
16337 Yao Qi <yao@codesourcery.com>
16338
16339 * target.h (struct target_ops): Add read_loadmap.
16340 * linux-low.c (struct target_loadseg): New type.
16341 (struct target_loadmap): New type.
16342 (linux_read_loadmap): New function.
16343 (linux_target_ops): Add linux_read_loadmap.
16344 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16345 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16346 to NULL.
78d85199 16347
a959a88d
EZ
163482011-08-05 Eli Zaretskii <eliz@gnu.org>
16349
16350 * win32-low.c: Include <stdint.h>.
16351
1ced966e
PA
163522011-07-22 Pedro Alves <pedro@codesourcery.com>
16353
16354 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16355 to the inferior here.
16356 (i386_remove_aligned_watchpoint): Ditto.
16357 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16358 fit part of the watchpoint in the debug registers.
16359 (i386_update_inferior_debug_regs): New.
16360 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16361 registers, and only update the inferior on success.
16362 (i386_low_remove_watchpoint): Ditto.
16363
d26e3629
KY
163642011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16365
16366 * linux-low.c (compare_ints, unique, list_threads, show_process,
16367 linux_core_of_thread): Delete.
16368 (linux_target_ops): Change linux_core_of_thread to
16369 linux_common_core_of_thread.
16370 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16371 * utils.c (malloc_failure): Change type of argument.
16372 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16373 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16374 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16375 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16376 (IPA_OBJS): Add common-utils-ipa.o.
16377 (ptid_h, linux_osdata_h): New macros.
16378 (server_h): Add common/common-utils.h, common/xml-utils.h,
16379 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16380 common/ptid.h.
16381 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16382 ptid.o, buffer.o): New rules.
16383 (linux-low.o): Add common/linux-osdata.h as a dependency.
16384 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16385 * configure.ac: Add AC_HEADER_DIRENT check.
16386 * config.in: Regenerate.
16387 * configure: Regenerate.
16388 * remote-utils.c (xml_escape_text): Delete.
16389 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16390 buffer_xml_printf): Move to common/buffer.c.
16391 * server.c (main): Remove call to initialize_inferiors.
16392 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16393 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16394 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16395 internal_error, gdb_assert, gdb_assert_fail): Delete.
16396 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16397 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16398 common/buffer.h.
16399 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16400 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16401 initialize_inferiors): Delete.
16402
2275a1a7
PA
164032011-07-20 Pedro Alves <pedro@codesourcery.com>
16404
16405 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16406 symbol error.
16407
0a5b1e09
PA
164082011-05-31 Pedro Alves <pedro@codesourcery.com>
16409
16410 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16411 assertion.
16412 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16413
6938fd34
YQ
164142011-05-26 Yao Qi <yao@codesourcery.com>
16415
16416 * Makefile.in (thread-db.o): Track dependence to
16417 common/gdb_thread_db.h.
16418 * thread-db.c: include gdb_thread_db.h from right place.
16419
b481f9e0
TT
164202011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16421
16422 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16423 __FILE__ and __LINE__ to internal_error.
16424
98a5dd13
DE
164252011-05-13 Doug Evans <dje@google.com>
16426
16427 * thread-db.c (try_thread_db_load_from_sdir): New function.
16428 (try_thread_db_load_from_dir): New function.
16429 (thread_db_load_search): Handle $sdir, ignore $pdir.
16430 Remove trying of system directories if search of
16431 libthread-db-search-path fails, that is now done via $sdir.
16432
d248b706
KY
164332011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16434
16435 * server.c (handle_query): Add EnableDisableTracepoints to the list
16436 of supported features.
43aaf8b6 16437 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16438 tracepoints.
43aaf8b6
PA
16439 (cmd_qtenable_disable): New.
16440 (cmd_qtstart): Install tracepoints even if disabled.
16441 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16442 receiving a QTEnable or QTDisable packet.
16443 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16444 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16445 tracepoints.
16446 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16447
84e578fb
DE
164482011-05-10 Doug Evans <dje@google.com>
16449
16450 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16451
71f55dd8
DE
164522011-05-04 Doug Evans <dje@google.com>
16453
16454 * linux-low.c (linux_join): Skip process lookup.
16455 * spu-low.c (spu_join): Ditto.
16456 * server.c (join_inferiors_callback): Delete.
16457 (process_serial_event): For 'D' packet (detach) call join_inferior
16458 directly.
16459
4d393d60
JM
164602011-05-04 Joseph Myers <joseph@codesourcery.com>
16461
16462 * README: Don't mention xscale*-*-linux*.
16463 * configure.srv (xscale*-*-linux*): Don't handle target.
16464
b00ad6ff
NF
164652011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16466
16467 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16468 casting pointers.
16469 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16470 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16471 (i386_emit_void_call_2): Likewise.
16472
af96c192
YQ
164732011-04-26 Yao Qi <yao@codesourcery.com>
16474
43aaf8b6
PA
16475 * linux-low.c: Move common macros to linux-ptrace.h.
16476 Include linux-ptrace.h.
af96c192
YQ
16477 * Makefile.in (linux_ptrace_h): New.
16478 (linux-low.o): Depends on linux-ptrace.h.
16479
03f2bd59
JK
164802011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16481
16482 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16483 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16484 (remote_prepare): New function with most of the TCP code from ...
16485 (remote_open): ... here. Detect PORT here unconditionally. Move also
16486 setting transport_is_reliable.
16487 * server.c (run_once): New variable.
16488 (gdbserver_usage): Document it.
16489 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16490 the first run if RUN_ONCE.
16491 * server.h (run_once, remote_prepare): New declarations.
16492
7a9dd1b2
TT
164932011-04-19 Tom Tromey <tromey@redhat.com>
16494
16495 * win32-low.c (handle_load_dll): Remove duplicate "the".
16496
81239425
PM
164972011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16498
16499 Remove support for old Cygwin 1.5 versions.
16500 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16501 function to avoid warning.
16502 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16503 warning.
16504
9e0627f1
PM
165052011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16506
16507 * gdbserver/server.h (Macro _): Define it if not available.
16508
588eebee
MS
165092011-03-14 Michael Snyder <msnyder@vmware.com>
16510
348af9f7 16511 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16512
43f70d4c
JB
165132011-03-10 Joel Brobecker <brobecker@adacore.com>
16514
16515 * Makefile.in (maintainer-clean realclean distclean): Remove
16516 "make ... subdir_do" command.
16517
348af9f7
MS
165182011-03-10 Michael Snyder <msnyder@vmware.com>
16519
16520 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16521
16522 * server.c (handle_v_run): Free alloced buffer on early return.
16523
e637a4f5
YQ
165242011-03-09 Yao Qi <yao@codesourcery.com>
16525
16526 Revert:
16527 2011-03-04 Yao Qi <yao@codesourcery.com>
16528
16529 * Makefile.in: Remove GNU make feature --directory.
16530
16531 2011-03-05 Yao Qi <yao@codesourcery.com>
16532
16533 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16534 (subdir_do): New make target. Copied from gdb/Makefile.
16535 (maintainer-clean, realclean, distclean, clean): Call corresponding
16536 make targets in common/Makefile.
16537
16538 2011-02-11 Yao Qi <yao@codesourcery.com>
16539
16540 * configure.ac: Call AC_PROG_RANLIB.
16541 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16542 * configure: Regenerate.
16543
e6edda56
JK
165442011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16545
16546 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16547
e5141119
JB
165482011-03-06 Yao Qi <yao@codesourcery.com>
16549
16550 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16551
64794aa4
JB
165522011-03-05 Yao Qi <yao@codesourcery.com>
16553
16554 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16555 (subdir_do): New make target. Copied from gdb/Makefile.
16556 (maintainer-clean, realclean, distclean, clean): Call corresponding
16557 make targets in common/Makefile.
16558
7a762829
YQ
165592011-03-04 Yao Qi <yao@codesourcery.com>
16560
16561 * Makefile.in: Remove GNU make feature --directory.
16562
348af9f7
MS
165632011-03-04 Michael Snyder <msnyder@vmware.com>
16564
16565 * server.c (queue_stop_reply): Call xmalloc not malloc.
16566
165672011-03-02 Michael Snyder <msnyder@vmware.com>
16568
16569 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16570
9f72fee2
MS
165712011-02-28 Michael Snyder <msnyder@vmware.com>
16572
588eebee
MS
16573 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16574 (cmd_qtframe): Ditto.
16575 (cmd_qtbuffer): Ditto.
16576 (cmd_bigqtbuffer): Ditto.
16577
9f72fee2
MS
16578 * utils.c (decimal2str): Initialize 'width' to nine, then
16579 don't mess with it.
16580
8040bd49
UW
165812011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16582
16583 * hostio.c (require_data): Free *data, not data.
16584
7e52cbd0
JK
165852011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16586
16587 * hostio.c (require_data): Use free, not xfree.
16588
9130f83e
MS
165892011-02-27 Michael Snyder <msnyder@vmware.com>
16590
4b812f4e
MS
16591 * server.c (handle_query): Discard unused value.
16592
9130f83e
MS
16593 * hostio.c (require_data): Free malloc memory before returning
16594 error.
16595
69d37113
MS
165962011-02-26 Michael Snyder <msnyder@vmware.com>
16597
16598 * linux-low.c (list_threads): Call closedir for dirent.
16599
35f5825a
MS
166002011-02-27 Michael Snyder <msnyder@vmware.com>
16601
2a589cef
MS
16602 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16603 a case statement falls through.
16604
0adea5f7
MS
16605 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16606
35f5825a
MS
16607 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16608 in comparison.
16609
238f1c74
MS
166102011-02-26 Michael Snyder <msnyder@vmware.com>
16611
16612 * utils.c (decimal2str): Eliminate dead code and dead param.
16613 (pulongest): Drop dead param from call to decimal2str.
16614 (plongest): Ditto.
16615
633ff500
JB
166162011-02-24 Joel Brobecker <brobecker@adacore.com>
16617
16618 Revert the following patch (not approved yet):
16619 2011-02-21 Hui Zhu <teawater@gmail.com>
16620 * tracepoint.c (tp_printf): New function.
16621 (eval_agent_expr): Handle gdb_agent_op_printf.
16622
f9c6ff72
HZ
166232011-02-21 Hui Zhu <teawater@gmail.com>
16624
16625 * tracepoint.c (tp_printf): New function.
16626 (eval_agent_expr): Handle gdb_agent_op_printf.
16627
94d5e490
TT
166282011-02-18 Tom Tromey <tromey@redhat.com>
16629
16630 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16631 (tracepoint.o): Likewise.
16632 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16633 (gdb_agent_op_names): Likewise.
16634
c7f96d2b
TT
166352011-02-18 Tom Tromey <tromey@redhat.com>
16636
16637 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16638 gdb_agent_op_rot>: New constants.
16639 (gdb_agent_op_names): Add pick and roll.
16640 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16641 cases.
16642
0feedb2c
JK
166432011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16644
16645 * aclocal.m4: Regenerated with aclocal-1.11.1.
16646
b3b9301e
PA
166472011-02-14 Pedro Alves <pedro@codesourcery.com>
16648
16649 * server.c (handle_qxfer_traceframe_info): New.
16650 (qxfer_packets): Register "traceframe-info".
16651 (handle_query): Report support for qXfer:traceframe-info:read+.
16652 * tracepoint.c (match_blocktype): New.
16653 (traceframe_find_block_type): Rename to ...
16654 (traceframe_walk_blocks): ... this. Add callback filter argument,
16655 and use it.
16656 (traceframe_find_block_type): New, reimplemented on top of
16657 traceframe_walk_blocks.
16658 (build_traceframe_info_xml): New.
16659 (traceframe_read_info): New.
16660 * server.h (traceframe_read_info): Declare.
16661
4f3e6fb7
YQ
166622011-02-11 Yao Qi <yao@codesourcery.com>
16663
16664 * configure.ac: Call AC_PROG_RANLIB.
16665 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16666 * configure: Regenerate.
16667
764880b7
PA
166682011-02-07 Pedro Alves <pedro@codesourcery.com>
16669
16670 * server.c (gdb_read_memory): Change return semantics to allow
16671 partial transfers.
16672 (handle_search_memory_1): Adjust.
16673 (process_serial_event) <'m' packet>: Handle partial transfers.
16674 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16675
1c79eb8a
PA
166762011-01-28 Pedro Alves <pedro@codesourcery.com>
16677
16678 * regcache.c (init_register_cache): Initialize
16679 regcache->register_status.
16680 (free_register_cache): Release regcache->register_status.
16681 (regcache_cpy): Copy register_status.
16682 (registers_to_string): Print 'x's for unavailable registers.
16683 (supply_register): Mark the register's status valid or
16684 unavailable, depending on whether a buffer was passed in or not.
16685 (supply_register_zeroed): New.
16686 (supply_regblock): Mark the registers' status valid or
16687 unavailable, depending on whether a buffer was passed in or not.
16688 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16689 (struct regcache): New `register_status' field.
16690 (supply_register_zeroed): Declare.
16691 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16692 supply_register_zeroed, rather than passing a NULL buffer to
16693 supply_register.
16694 * tracepoint.c (fetch_traceframe_registers): Update comment.
16695
85724a0e
PA
166962011-01-28 Pedro Alves <pedro@codesourcery.com>
16697
16698 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16699 buffer explicit.
16700
d08aafef
PA
167012011-01-25 Pedro Alves <pedro@codesourcery.com>
16702
16703 * server.h (decode_xfer_write): Change prototype.
16704 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16705 and don't extract the annex here.
16706 * server.c (decode_xfer_read): Remove `annex' parameter,
16707 and don't extract the annex here.
16708 (decode_xfer): New.
16709 (struct qxfer): New.
16710 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16711 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16712 (handle_qxfer_statictrace): New functions, abstracted out from
16713 handle_query, and made to use the struct qxfer interface.
16714 (handle_threads_qxfer_proper): Rename to ...
16715 (handle_qxfer_threads_proper): ... this.
16716 (handle_threads_qxfer): Rename to ...
16717 (handle_qxfer_threads): ... this. Adjust.
16718 (qxfer_packets): New array.
16719 (handle_qxfer): New function.
16720 (handle_query): Use handle_qxfer.
16721
493e2a69
MS
167222011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16723
16724 * gdbreplay.c: Shorten lines of >= 80 columns.
16725 * linux-low.c: Ditto.
16726 * linux-ppc-low.c: Ditto.
16727 * linux-s390-low.c: Ditto.
16728 * linux-sparc-low.c: Ditto.
16729 * linux-x86-low.c: Ditto.
16730 * linux-xtensa-low.c: Ditto.
16731 * mem-break.c: Ditto.
16732 * nto-low.c: Ditto.
16733 * regcache.h: Ditto.
16734 * remote-utils.c: Ditto.
16735 * server.c: Ditto.
16736 * server.h: Ditto.
16737 * thread-db.c: Ditto.
16738 * tracepoint.c: Ditto.
16739 * utils.c: Ditto.
16740 * win32-low.h: Ditto.
16741
44944448
JB
167422011-01-05 Joel Brobecker <brobecker@adacore.com>
16743
16744 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16745 update.
16746
71ce852c
JB
167472011-01-01 Joel Brobecker <brobecker@adacore.com>
16748
16749 * server.c (gdbserver_version): Update copyright year in version
16750 output.
16751 * gdbreplay.c (gdbreplay_version): Ditto.
16752
eb826dc6
MF
167532010-12-29 Jie Zhang <jie.zhang@analog.com>
16754
16755 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16756 * linux-bfin-low.c: New file.
16757 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16758 PT_DATA_ADDR for BFIN targets.
16759 * Makefile.in (SFILES): Add linux-bfin-low.c.
16760 (clean): Remove reg-bfin.c.
16761 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16762 * README: Mention supported Blackfin targets.
16763
39ab222a
MF
167642010-12-23 Mike Frysinger <vapier@gentoo.org>
16765
16766 * .gitignore: New file.
16767
a1f2ce7d
MF
167682010-11-16 Mike Frysinger <vapier@gentoo.org>
16769
16770 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16771
f474844c
JZ
167722010-10-22 Jie Zhang <jie@codesourcery.com>
16773
16774 * Makefile.in: Add FLAGS_TO_PASS variable.
16775 (install): Remove dependency of install-only and recursively
16776 invoke make for install-only.
16777
f1048712
DE
167782010-10-04 Doug Evans <dje@google.com>
16779
16780 * Makefile.in (uninstall): Use $(DESTDIR).
16781
b53a1623
PA
167822010-09-24 Pedro Alves <pedro@codesourcery.com>
16783
e6ee044d
PA
16784 PR gdb/11842
16785
b53a1623
PA
16786 * linux-x86-low.c (compat_siginfo_from_siginfo)
16787 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16788 si_code is < 0. Check for si_code == SI_TIMER before checking for
16789 si_code < 0.
16790
fa1bd1e4
JB
167912010-09-13 Joel Brobecker <brobecker@adacore.com>
16792
16793 * lynx-i386-low.c: New file.
16794 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16795
47fac8f8
JB
167962010-09-13 Joel Brobecker <brobecker@adacore.com>
16797
16798 * lynx-low.c (ptrace_request_to_str): Remove handling for
16799 request values that have been removed in LynxOS 5.x.
16800
1adfc54d
JB
168012010-09-13 Joel Brobecker <brobecker@adacore.com>
16802
16803 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16804 <ptrace.h>
16805
c2a66c29
NS
168062010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16807
16808 * configure.ac: Add --enable-inprocess-agent option.
16809 * configure: Rebuilt.
16810
32fcada3
YQ
168112010-09-06 Yao Qi <yao@codesourcery.com>
16812
16813 * linux-low.c (linux_kill): Remove unused variable.
16814 (linux_stabilize_threads): Likewise.
16815 * server.c (start_inferior): Likewise.
16816 (queue_stop_reply_callback): Likewise.
16817 * tracepoint.c (do_action_at_tracepoint): Likewise.
16818
0cccb683
YQ
168192010-09-06 Yao Qi <yao@codesourcery.com>
16820
16821 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16822 on return.
16823
423ec54c
JK
168242010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16825
16826 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16827
12ac6819
PA
168282010-09-06 Pedro Alves <pedro@codesourcery.com>
16829
16830 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16831 "$(IPA_DEPFILES)".
16832
8ed54b31
JB
168332010-09-01 Joel Brobecker <brobecker@adacore.com>
16834
16835 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16836 gdbserver/lynx-ppc-low.c: New files.
16837 * Makefile.in (lynx_low_h): New variable.
16838 (lynx-low.o, lynx-ppc-low.o): New rules.
16839 * configure.ac: On LynxOS, link with -lnetinet.
16840 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16841 * configure: regenerate.
16842
bb0116a4
JB
168432010-09-01 Joel Brobecker <brobecker@adacore.com>
16844
16845 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16846 * configure.ac: Add check for vasprintf and vsnprintf.
16847 * configure, config.in: Regenerate.
16848 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16849
a778ab81 168502010-09-01 Joel Brobecker <brobecker@adacore.com>
16851
16852 * gdbreplay.c: Move include of alloca.h up, next to include of
16853 malloc.h.
16854 * server.h: Add include of malloc.h.
16855 * mem-break.c: Remove include of malloc.h.
16856 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16857
8b034a19 168582010-09-01 Joel Brobecker <brobecker@adacore.com>
16859
16860 * Makefile.in (memmem.o): Build with -Wno-error.
16861
168622010-09-01 Joel Brobecker <brobecker@adacore.com>
16863
16864 * utils.c (xsnprintf): Make non-static.
16865 * server.h: Add xsnprintf declaration.
16866 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16867 replace calls to snprintf by calls to xsnprintf throughout.
16868
168692010-09-01 Joel Brobecker <brobecker@adacore.com>
16870
16871 * configure.ac: Add configure check for alloca.
16872 * configure, config.in: Regenerate.
16873 * server.h: Include alloca.h if it exists.
16874 * gdbreplay.c: Include alloca.h if it exists.
16875
1a981360
PA
168762010-08-28 Pedro Alves <pedro@codesourcery.com>
16877
16878 * linux-low.c (__SIGRTMIN): Define if not already defined.
16879 (linux_create_inferior): Check for __ANDROID__ rather than
16880 __SIGRTMIN.
16881 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16882 are already deferred.
16883 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16884 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16885 stopped and already has a pending signal to report.
16886 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16887 a pending signal to report or is moving out of a jump pad.
16888 (linux_init_signals): Check for __ANDROID__ rather than
16889 __SIGRTMIN.
16890
b4d51a55
PA
168912010-08-28 Pedro Alves <pedro@codesourcery.com>
16892
16893 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16894 debug_threads check. Avoid a linear search when not doing debug
16895 output.
16896
ec48365d
PA
168972010-08-27 Pedro Alves <pedro@codesourcery.com>
16898
16899 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16900 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16901 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16902 (process_event): Change local fd's type to gdb_fildes_t.
16903 (create_file_handler): Adjust prototype.
16904 (delete_file_handler): Adjust prototype.
16905 (handle_file_event): Adjust prototype. Use pfildes.
16906 (create_file_event): Adjsut prototype.
16907 * remote-utils.c (remote_desc, listen_desc): Change type to
16908 gdb_fildes_t.
16909 * server.h: New gdb_fildes_t typedef.
16910 [USE_WIN32API]: Include winsock2.h.
16911 (delete_file_handler, add_file_handler): Adjust prototypes.
16912 (pfildes): Declare.
16913 * utils.c (pfildes): New.
16914
854d88f0
PA
169152010-08-27 Pedro Alves <pedro@codesourcery.com>
16916
16917 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16918 * configure: Regenerate.
16919
0146f85b
PA
169202010-08-27 Pedro Alves <pedro@codesourcery.com>
16921
16922 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16923 (linux_done_accessing_memory): ... this.
16924 (linux_target_ops): Adjust.
16925 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16926 * nto-low.c (nto_target_ops): Adjust comment.
16927 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16928 * spu-low.c (spu_target_ops): Adjust comment.
16929 * target.h (target_ops): Rename unprepare_to_access_memory field
16930 to done_accessing_memory.
16931 (unprepare_to_access_memory): Rename to ...
16932 (done_accessing_memory): ... this.
16933
90d74c30
PA
169342010-08-26 Pedro Alves <pedro@codesourcery.com>
16935
16936 * linux-low.c (linux_prepare_to_access_memory): New.
16937 (linux_unprepare_to_access_memory): New.
16938 (linux_target_ops): Install them.
16939 * server.c (read_memory): Rename to ...
16940 (gdb_read_memory): ... this. Use
16941 prepare_to_access_memory/prepare_to_access_memory.
16942 (write_memory): Rename to ...
16943 (gdb_write_memory): ... this. Use
16944 prepare_to_access_memory/prepare_to_access_memory.
16945 (handle_search_memory_1): Adjust.
16946 (process_serial_event): Adjust.
16947 * target.h (struct target_ops): New fields
16948 prepare_to_access_memory and unprepare_to_access_memory.
16949 (prepare_to_access_memory, unprepare_to_access_memory): New.
16950 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16951 prepare_to_access_memory/prepare_to_access_memory.
16952 * nto-low.c (nto_target_ops): Adjust.
16953 * spu-low.c (spu_target_ops): Adjust.
16954 * win32-low.c (win32_target_ops): Adjust.
16955
fd467969
PA
169562010-08-26 Pedro Alves <pedro@codesourcery.com>
16957
16958 * Makefile.in (WARN_CFLAGS): Get it from configure.
16959 (WERROR_CFLAGS): New.
16960 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16961 * configure.ac: Introduce --enable-werror, which adds -Werror to
16962 the compiler command line. Enabled by default. Disable with
16963 --disable-werror. Add -Wdeclaration-after-statement
16964 Wpointer-arith and -Wformat-nonliteral to warning flags.
16965 * configure: Regenerate.
16966
331e2f5f
PA
169672010-08-26 Pedro Alves <pedro@codesourcery.com>
16968
16969 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16970
e581f2b4
PA
169712010-08-26 Pedro Alves <pedro@codesourcery.com>
16972
16973 * gdbreplay.c (remote_error): New.
16974 (gdbchar): New.
16975 (expect): Use gdbchar. Check for error reading from GDB.
16976 Clarify sync error output.
16977 (play): Check for errors writing to GDB.
16978 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16979 * remote-utils.c (getpkt): Check for errors writing to the remote
16980 descriptor.
16981
3c11dd79
PA
169822010-08-25 Pedro Alves <pedro@codesourcery.com>
16983
16984 * linux-low.c (linux_wait_1): Move non-debugging code out of
16985 `debug_threads' control.
16986
d20a8ad9
PA
169872010-08-25 Pedro Alves <pedro@codesourcery.com>
16988
16989 * linux-low.c (linux_wait_1): Don't set last_status here.
16990 * server.c (push_event, queue_stop_reply_callback): Assert we're
16991 not pushing a TARGET_WAITKIND_IGNORE event.
16992 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16993 (myresume, handle_target_event): Set the thread's last_resume_kind
16994 and last_status from the target returned status.
16995
964e4306
PA
169962010-08-25 Pedro Alves <pedro@codesourcery.com>
16997
16998 PR threads/10729
16999
17000 * linux-x86-low.c (update_debug_registers_callback): New.
17001 (i386_dr_low_set_addr): Use it.
17002 (i386_dr_low_get_addr): New.
17003 (i386_dr_low_set_control): Use update_debug_registers_callback.
17004 (i386_dr_low_get_control): New.
17005 (i386_dr_low_get_status): Adjust.
17006 * linux-low.c (linux_stop_lwp): New.
17007 * linux-low.h (linux_stop_lwp): Declare.
17008
17009 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17010 argument instead of a i386_debug_reg_state.
17011 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17012 a i386_debug_reg_state.
17013 (i386_insert_aligned_watchpoint): Adjust.
17014 (i386_remove_aligned_watchpoint): Adjust.
17015 (i386_low_stopped_data_address): Read the debug registers from the
17016 inferior instead of from the mirrors.
17017 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17018 (i386_dr_low_get_addr): Declare.
17019 (i386_dr_low_get_control): Declare.
17020 (i386_dr_low_get_status): Change prototype.
17021
17022 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17023 (i386_dr_low_get_addr): New.
17024 (i386_dr_low_get_control): New.
17025 (i386_dr_low_get_status): Adjust prototype. Return
17026 dr_status_mirror.
17027 (i386_initial_stuff): Clear dr_status_mirror and
17028 dr_control_mirror.
17029 (i386_get_thread_context): Adjust.
17030 (i386_set_thread_context): Adjust.
17031 (i386_thread_added): Adjust.
17032
5f21a75b
PA
170332010-08-24 Pedro Alves <pedro@codesourcery.com>
17034
17035 * linux-low.h (linux_thread_area): Delete declaration.
17036
3e4c1235
TS
170372010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17038
17039 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17040 after its termination.
17041
1971b033
PA
170422010-08-09 Pedro Alves <pedro@codesourcery.com>
17043
17044 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17045 (gdb_wants_all_stopped): Delete.
17046 (linux_wait_1): Don't call them.
17047 * server.c (handle_v_cont): Tag all threads as want-stopped.
17048 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17049 stopped as "client-wants-stopped".
17050
310444ac
PA
170512010-07-31 Pedro Alves <pedro@codesourcery.com>
17052
17053 * Makefile.in (signals_h): New.
17054 (server_h): Depend on it.
17055 (server.o): Don't depend on $(signals_def).
17056 (signals.o): Depend on $(signals_def).
17057
a19cae16
JK
170582010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17059
17060 * Makefile.in (signals_def): New.
17061 (server_h): Append include/gdb/signals.h and signals_def.
17062 (server.o): Append signals_def.
17063
30d50328
JK
170642010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17065
17066 * server.c (handle_target_event): Use target_signal_to_host for
17067 resume_info.sig initialization.
17068 * target.h (struct thread_resume) <sig>: New comment.
17069
5c3216e2
OS
170702010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17071
c6f46ca0
OS
17072 * server.c (handle_query): strcpy() the returned string from paddress()
17073 instead of sprintf().
5c3216e2
OS
17074 * utils.c (paddress): Return phex_nz().
17075
6bd31874
JB
170762010-07-07 Joel Brobecker <brobecker@adacore.com>
17077
17078 * server.c (handle_v_cont): Call mourn_inferior if process
17079 just exited.
17080 (myresume): Likewise.
17081
0fb4aa4b
PA
170822010-07-01 Pedro Alves <pedro@codesourcery.com>
17083
17084 Static tracepoints, and integration with UST.
17085
17086 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17087 * mem-break.c (uninsert_all_breakpoints)
17088 (reinsert_all_breakpoints): New.
17089 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17090 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17091 (gdb_agent_ust_loaded, helper_thread_id)
17092 (gdb_agent_helper_thread_id): New macros.
17093 (struct ipa_sym_addresses): Add addr_ust_loaded,
17094 addr_helper_thread_id, addr_cmd_buf.
17095 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17096 (in_process_agent_loaded_ust): New.
17097 (write_e_ust_not_loaded): New.
17098 (maybe_write_ipa_ust_not_loaded): New.
17099 (struct collect_static_trace_data_action): New.
17100 (enum tracepoint_type) <static_tracepoint>: New.
17101 (struct tracepoint) <handle>: Mention static tracepoints.
17102 (struct static_tracepoint_ctx): New.
17103 (CMD_BUF_SIZE): New.
17104 (add_tracepoint_action): Handle static tracepoint actions.
17105 (unprobe_marker_at): New.
17106 (clear_installed_tracepoints): Handle static tracepoints.
17107 (cmd_qtdp): Handle static tracepoints.
17108 (probe_marker_at): New.
17109 (cmd_qtstart): Handle static tracepoints.
17110 (response_tracepoint): Handle static tracepoints.
17111 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17112 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17113 (get_context_regcache): Handle static tracepoints.
17114 (do_action_at_tracepoint): Handle static tracepoint actions.
17115 (traceframe_find_block_type): Handle static trace data blocks.
17116 (traceframe_read_sdata): New.
17117 (download_tracepoints): Download static tracepoint actions.
17118 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17119 (GDB_PROBE_NAME): New.
17120 (ust_ops): New.
17121 (GET_UST_SYM): New.
17122 (USTF): New.
17123 (dlsym_ust): New.
17124 (ust_marker_to_static_tracepoint): New.
17125 (gdb_probe): New.
17126 (collect_ust_data_at_tracepoint): New.
17127 (gdb_ust_probe): New.
17128 (UNIX_PATH_MAX, SOCK_DIR): New.
17129 (gdb_ust_connect_sync_socket): New.
17130 (resume_thread, stop_thread): New.
17131 (run_inferior_command): New.
17132 (init_named_socket): New.
17133 (gdb_ust_socket_init): New.
17134 (cstr_to_hexstr): New.
17135 (next_st): New.
17136 (first_marker, next_marker): New.
17137 (response_ust_marker): New.
17138 (cmd_qtfstm, cmd_qtsstm): New.
17139 (unprobe_marker_at, probe_marker_at): New.
17140 (cmd_qtstmat, gdb_ust_thread): New.
17141 (gdb_ust_init): New.
17142 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17143 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17144 (ST_REGENTRY): New.
17145 (x86_64_st_collect_regmap): New.
17146 (X86_64_NUM_ST_COLLECT_GREGS): New.
17147 (AMD64_RIP_REGNUM): New.
17148 (supply_static_tracepoint_registers): New.
17149 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17150 (ST_REGENTRY): New.
17151 (i386_st_collect_regmap): New.
17152 (i386_NUM_ST_COLLECT_GREGS): New.
17153 (supply_static_tracepoint_registers): New.
17154 * server.c (handle_query): Handle qXfer:statictrace:read.
17155 <qSupported>: Report support for StaticTracepoints, and
17156 qXfer:statictrace:read features.
17157 * server.h (traceframe_read_sdata)
17158 (supply_static_tracepoint_registers): Declare.
17159 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17160 (unpack_varlen_hex): Include in IPA build.
17161 * Makefile.in (ustlibs, ustinc): New.
17162 (IPA_OBJS): Add remote-utils-ipa.o.
17163 ($(IPA_LIB)): Link -ldl and -lpthread.
17164 (UST_CFLAGS): New.
17165 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17166 * config.in, configure: Regenerate.
17167
9e4344e5
PA
171682010-06-20 Ian Lance Taylor <iant@google.com>
17169 Pedro Alves <pedro@codesourcery.com>
17170
17171 * linux-x86-low.c (always_true): Delete.
17172 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17173 trying to fool the compiler with always_true.
17174
c6beb2cb
PA
171752010-06-20 Pedro Alves <pedro@codesourcery.com>
17176
17177 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17178 conditions in gdbserver.
17179
d2ed6730
UW
171802010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17181
17182 * spu-low.c (spu_read_memory): Wrap around local store limit.
17183 (spu_write_memory): Likewise.
17184
4e29fb54
PA
171852010-06-15 Pedro Alves <pedro@codesourcery.com>
17186
17187 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17188 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17189 LONGEST uses.
17190 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17191 uses.
17192 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17193 uses with LONGEST uses.
17194
6a271cae
PA
171952010-06-14 Stan Shebs <stan@codesourcery.com>
17196 Pedro Alves <pedro@codesourcery.com>
17197
17198 Bytecode compiler.
17199
17200 * linux-x86-low.c: Include limits.h.
17201 (add_insns): New.
17202 (always_true): New.
17203 (EMIT_ASM): New.
17204 (EMIT_ASM32): New.
17205 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17206 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17207 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17208 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17209 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17210 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17211 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17212 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17213 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17214 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17215 (amd64_emit_void_call_2): New.
17216 (amd64_emit_ops): New.
17217 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17218 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17219 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17220 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17221 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17222 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17223 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17224 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17225 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17226 (i386_emit_stack_adjust, i386_emit_int_call_1)
17227 (i386_emit_void_call_2): New.
17228 (i386_emit_ops): New.
17229 (x86_emit_ops): New.
17230 (the_low_target): Install x86_emit_ops.
17231 * server.h (struct emit_ops): New.
17232 (get_raw_reg_func_addr): Declare.
17233 (current_insn_ptr, emit_error): Declare.
17234 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17235 (set_trace_state_variable_value): New defines.
17236 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17237 addr_get_trace_state_variable_value and
17238 addr_set_trace_state_variable_value.
17239 (symbol_list): New fields for get_raw_reg,
17240 get_trace_state_variable_value and set_trace_state_variable_value.
17241 (condfn): New typedef.
17242 (struct tracepoint): New field `compiled_cond'.
17243 (do_action_at_tracepoint): Clear compiled_cond.
17244 (get_trace_state_variable_value, set_trace_state_variable_value):
17245 Export in the IPA.
17246 (condition_true_at_tracepoint): If there's a compiled condition,
17247 run that.
17248 (current_insn_ptr, emit_error): New globals.
17249 (struct bytecode_address): New.
17250 (get_raw_reg_func_addr): New.
17251 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17252 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17253 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17254 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17255 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17256 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17257 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17258 (compile_tracepoint_condition, compile_bytecodes): New.
17259 * target.h (emit_ops): Forward declare.
17260 (struct target_ops): New field emit_ops.
17261 (target_emit_ops): New.
17262 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17263 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17264 * linux-low.c (linux_emit_ops): New.
17265 (linux_target_ops): Install it.
17266 * linux-low.h (struct linux_target_ops): New field emit_ops.
17267
92b72907
UW
172682010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17269
17270 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17271 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17272
fa593d66
PA
172732010-06-01 Pedro Alves <pedro@codesourcery.com>
17274 Stan Shebs <stan@codesourcery.com>
17275
17276 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17277 (all): Depend on $(extra_libraries).
17278 (install-only): Install the IPA.
17279 (IPA_OBJS, IPA_LIB): New.
17280 (clean): Remove the IPA lib.
17281 (IPAGENT_CFLAGS): New.
17282 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17283 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17284 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17285 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17286 * configure.ac: Check for atomic builtins support in the compiler.
17287 (IPA_DEPFILES, extra_libraries): Define.
17288 * configure.srv (ipa_obj): Add description.
17289 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17290 (i[34567]86-*-linux*): Set ipa_obj.
17291 (x86_64-*-linux*): Set ipa_obj.
17292 * linux-low.c (stabilizing_threads): New.
17293 (supports_fast_tracepoints): New.
17294 (linux_detach): Stabilize threads before detaching.
17295 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17296 the lwp is either not stabilizing, or is moving out of a jump pad.
17297 (linux_fast_tracepoint_collecting): New.
17298 (maybe_move_out_of_jump_pad): New.
17299 (enqueue_one_deferred_signal): New.
17300 (dequeue_one_deferred_signal): New.
17301 (linux_wait_for_event_1): If moving out of a jump pad, defer
17302 pending signals to later.
17303 (linux_stabilize_threads): New.
17304 (linux_wait_1): Check if threads need moving out of jump pads, and
17305 do it if so.
17306 (stuck_in_jump_pad_callback): New.
17307 (move_out_of_jump_pad_callback): New.
17308 (lwp_running): New.
17309 (linux_resume_one_lwp): Handle moving out of jump pads.
17310 (linux_set_resume_request): Dequeue deferred signals.
17311 (need_step_over_p): Also step over fast tracepoint jumps.
17312 (start_step_over): Also uninsert fast tracepoint jumps.
17313 (finish_step_over): Also reinsert fast tracepoint jumps.
17314 (linux_install_fast_tracepoint_jump): New.
17315 (linux_target_ops): Install linux_stabilize_threads and
17316 linux_install_fast_tracepoint_jump_pad.
17317 * linux-low.h (linux_target_ops) <get_thread_area,
17318 install_fast_tracepoint_jump_pad>: New fields.
17319 (struct lwp_info) <collecting_fast_tracepoint,
17320 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17321 (linux_get_thread_area): Declare.
17322 * linux-x86-low.c (jump_insn): New.
17323 (x86_get_thread_area): New.
17324 (append_insns): New.
17325 (push_opcode): New.
17326 (amd64_install_fast_tracepoint_jump_pad): New.
17327 (i386_install_fast_tracepoint_jump_pad): New.
17328 (x86_install_fast_tracepoint_jump_pad): New.
17329 (the_low_target): Install x86_get_thread_area and
17330 x86_install_fast_tracepoint_jump_pad.
17331 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17332 (struct fast_tracepoint_jump): New.
17333 (fast_tracepoint_jump_insn): New.
17334 (fast_tracepoint_jump_shadow): New.
17335 (find_fast_tracepoint_jump_at): New.
17336 (fast_tracepoint_jump_here): New.
17337 (delete_fast_tracepoint_jump): New.
17338 (set_fast_tracepoint_jump): New.
17339 (uninsert_fast_tracepoint_jumps_at): New.
17340 (reinsert_fast_tracepoint_jumps_at): New.
17341 (set_breakpoint_at): Use write_inferior_memory.
17342 (uninsert_raw_breakpoint): Use write_inferior_memory.
17343 (check_mem_read): Mask out fast tracepoint jumps.
17344 (check_mem_write): Mask out fast tracepoint jumps.
17345 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17346 (set_fast_tracepoint_jump): Declare.
17347 (delete_fast_tracepoint_jump)
17348 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17349 (reinsert_fast_tracepoint_jumps_at): Declare.
17350 * regcache.c: Don't compile many functions when building the
17351 in-process agent library.
17352 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17353 the register buffer in the heap.
17354 (free_register_cache): If the register buffer isn't owned by the
17355 regcache, don't free it.
17356 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17357 pre-existing register caches.
17358 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17359 type.
17360 (convert_ascii_to_int): : Constify `from' parameter type.
17361 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17362 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17363 the needed buffer in-place.
17364 (relocate_instruction): New.
17365 * server.c (handle_query) <qSymbols>: If the target supports
17366 tracepoints, give it a chance of looking up symbols. Report
17367 support for fast tracepoints.
17368 (handle_status): Stabilize threads.
17369 (process_serial_event): Adjust.
17370 * server.h (struct fast_tracepoint_jump): Forward declare.
17371 (struct process_info) <fast_tracepoint_jumps>: New field.
17372 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17373 (decode_X_packet, decode_M_packet): Adjust.
17374 (relocate_instruction): Declare.
17375 (in_process_agent_loaded): Declare.
17376 (tracepoint_look_up_symbols): Declare.
17377 (struct fast_tpoint_collect_status): Declare.
17378 (fast_tracepoint_collecting): Declare.
17379 (force_unlock_trace_buffer): Declare.
17380 (handle_tracepoint_bkpts): Declare.
17381 (initialize_low_tracepoint)
17382 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17383 * target.h (struct target_ops) <stabilize_threads,
17384 install_fast_tracepoint_jump_pad>: New fields.
17385 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17386 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17387 [HAVE_STDINT_H]: Include stdint.h.
17388 (trace_debug_1): Rename to ...
17389 (trace_vdebug): ... this.
17390 (trace_debug): Rename to ...
17391 (trace_debug_1): ... this. Add `level' parameter.
17392 (trace_debug): New.
17393 (ATTR_USED, ATTR_NOINLINE): New.
17394 (IP_AGENT_EXPORT): New.
17395 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17396 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17397 (about_to_request_buffer_space, trace_buffer_is_full)
17398 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17399 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17400 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17401 (traceframe_write_count, traceframes_created)
17402 (trace_state_variables)
17403 New renaming defines.
17404 (struct ipa_sym_addresses): New.
17405 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17406 (symbol_list): New.
17407 (ipa_sym_addrs): New.
17408 (all_tracepoint_symbols_looked_up): New.
17409 (in_process_agent_loaded): New.
17410 (write_e_ipa_not_loaded): New.
17411 (maybe_write_ipa_not_loaded): New.
17412 (tracepoint_look_up_symbols): New.
17413 (debug_threads) [IN_PROCESS_AGENT]: New.
17414 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17415 (UNKNOWN_SIDE_EFFECTS): New.
17416 (stop_tracing): New.
17417 (flush_trace_buffer): New.
17418 (stop_tracing_bkpt): New.
17419 (flush_trace_buffer_bkpt): New.
17420 (read_inferior_integer): New.
17421 (read_inferior_uinteger): New.
17422 (read_inferior_data_pointer): New.
17423 (write_inferior_data_pointer): New.
17424 (write_inferior_integer): New.
17425 (write_inferior_uinteger): New.
17426 (struct collect_static_trace_data_action): Delete.
17427 (enum tracepoint_type): New.
17428 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17429 <actions_str, step_actions, step_actions_str>: Only include in
17430 GDBserver.
fa593d66
PA
17431 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17432 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17433 (tracepoints): Use IP_AGENT_EXPORT.
17434 (last_tracepoint): Don't include in the IPA.
17435 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17436 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17437 (alloced_trace_state_variables): New.
17438 (trace_state_variables): Use IP_AGENT_EXPORT.
17439 (traceframe_t): Delete unused variable.
17440 (circular_trace_buffer): Don't include in the IPA.
17441 (trace_buffer_start): Delete.
17442 (struct trace_buffer_control): New.
17443 (trace_buffer_free): Delete.
17444 (struct ipa_trace_buffer_control): New.
17445 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17446 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17447 New.
17448 (trace_buffer_ctrl): New.
17449 (TRACE_BUFFER_CTRL_CURR): New.
17450 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17451 Reimplement as macros.
17452 (trace_buffer_wrap): Delete.
17453 (traceframe_write_count, traceframe_read_count)
17454 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17455 (struct tracepoint_hit_ctx) <type>: New field.
17456 (struct fast_tracepoint_ctx): New.
17457 (memory_barrier): New.
17458 (cmpxchg): New.
17459 (record_tracepoint_error): Update atomically in the IPA.
17460 (clear_inferior_trace_buffer): New.
17461 (about_to_request_buffer_space): New.
17462 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17463 updating the same buffer.
17464 (add_tracepoint): Default the tracepoint's type to trap
17465 tracepoint, and orig_size to -1.
17466 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17467 internal variables.
17468 (create_trace_state_variable): New parameter `gdb'. Handle it.
17469 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17470 (cmd_qtdp): Handle fast tracepoints.
17471 (cmd_qtdv): Adjust.
17472 (max_jump_pad_size): New.
17473 (gdb_jump_pad_head): New.
17474 (get_jump_space_head): New.
17475 (claim_jump_space): New.
17476 (sort_tracepoints): New.
17477 (MAX_JUMP_SIZE): New.
17478 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17479 IPA.
17480 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17481 support. Upload fast traceframes, and delete internal IPA
17482 breakpoints.
17483 (stop_tracing_handler): New.
17484 (flush_trace_buffer_handler): New.
17485 (cmd_qtstop): Upload fast tracepoints.
17486 (response_tracepoint): Handle fast tracepoints.
17487 (tracepoint_finished_step): Upload fast traceframes. Set the
17488 tracepoint hit context's tracepoint type.
17489 (handle_tracepoint_bkpts): New.
17490 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17491 type. Add comment about fast tracepoints.
17492 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17493 non-existing action_str field.
17494 (get_context_regcache): Handle fast tracepoints.
17495 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17496 to the regcache.
17497 (fast_tracepoint_from_jump_pad_address): New.
17498 (fast_tracepoint_from_ipa_tpoint_address): New.
17499 (collecting_t): New.
17500 (force_unlock_trace_buffer): New.
17501 (fast_tracepoint_collecting): New.
17502 (collecting): New.
17503 (gdb_collect): New.
17504 (write_inferior_data_ptr): New.
17505 (target_tp_heap): New.
17506 (target_malloc): New.
17507 (download_agent_expr): New.
17508 (UALIGN): New.
17509 (download_tracepoints): New.
17510 (download_trace_state_variables): New.
17511 (upload_fast_traceframes): New.
17512 (IPA_FIRST_TRACEFRAME): New.
17513 (IPA_NEXT_TRACEFRAME_1): New.
17514 (IPA_NEXT_TRACEFRAME): New.
17515 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17516 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17517 (gdb_jump_pad_buffer_end): New.
17518 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17519 (initialize_tracepoint): Adjust.
17520 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17521 buffer. Initialize the low module.
17522 * utils.c (PREFIX, TOOLNAME): New.
17523 (malloc_failure): Use PREFIX.
17524 (error): In the IPA, an error causes an exit.
17525 (fatal, warning): Use PREFIX.
17526 (internal_error): Use TOOLNAME.
17527 (NUMCELLS): Increase to 10.
17528 * configure, config.in: Regenerate.
17529
d149dd1d
PA
175302010-06-01 Pedro Alves <pedro@codesourcery.com>
17531
17532 * server.c (handle_query) <qSupported>: Do two passes over the
17533 qSupported string to avoid nesting strtok.
17534
f6528abd
JK
175352010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17536
17537 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17538 (CDEPS): New.
17539 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17540 -Wl,--dynamic-list.
17541 * configure: Regenerate.
17542 * proc-service.list: New.
17543
ca2a87a0
JK
175442010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17545
17546 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17547 New comment.
17548
363a6e9f
OS
175492010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17550
17551 * gdbreplay.c (remote_open): Check error return from socket() call by
17552 its equality to -1 not by it being negative.
17553 * remote-utils.c (remote_open): Likewise.
17554
d23b6cb1
PA
175552010-05-23 Pedro Alves <pedro@codesourcery.com>
17556
17557 * config.h: Regenerate.
17558
28d3cf85
MK
175592010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17560
17561 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17562 doesn't provide PTRACE_GET_THREAD_AREA.
17563
fea36a59
MK
175642010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17565
17566 * linux-m68k-low.c: Include <asm/ptrace.h>
17567 (ps_get_thread_area): Implement.
17568
24b066ba
DE
175692010-05-03 Doug Evans <dje@google.com>
17570
17571 * event-loop.c (struct callback_event): New struct.
17572 (callback_list): New global.
17573 (append_callback_event, delete_callback_event): New functions.
17574 (process_callback): New function.
17575 (start_event_loop): Call it.
17576 * remote-utils.c (NOT_SCHEDULED): Define.
17577 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17578 moved out of readchar.
17579 (readchar): Rewrite. Call reschedule before returning.
17580 (reset_readchar): New function.
17581 (remote_close): Call it.
17582 (process_remaining, reschedule): New functions.
17583 * server.h (callback_handler_func): New typedef.
17584 (append_callback_event, delete_callback_event): Declare.
17585
9836d6ea
PA
175862010-05-03 Pedro Alves <pedro@codesourcery.com>
17587
17588 * proc-service.c (ps_pglobal_lookup): Use
17589 thread_db_look_up_one_symbol.
17590 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17591 parameter. Use it instead of all_symbols_looked_up.
17592 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17593 field.
17594 (all_symbols_looked_up): Don't declare.
17595 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17596 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17597 field.
17598 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17599 Set all_symbols_looked_up here.
17600 (thread_db_look_up_one_symbol): New.
17601 (thread_db_get_tls_address): Adjust.
17602 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17603 thread_db object on the heap, and tentatively set it in the
17604 process structure.
17605 (thread_db_init): Don't set all_symbols_looked_up here.
17606 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17607
7984d532
PA
176082010-05-03 Pedro Alves <pedro@codesourcery.com>
17609
17610 * linux-low.c (linux_kill, linux_detach): Adjust.
17611 (status_pending_p_callback): Remove redundant statement. Check
17612 for !TARGET_WAITIKIND_IGNORE, instead of
17613 TARGET_WAITKIND_STOPPED.
17614 (handle_tracepoints): Make sure LWP is locked. Adjust.
17615 (linux_wait_for_event_1): Adjust.
17616 (linux_cancel_breakpoints): New.
17617 (unsuspend_one_lwp): New.
17618 (unsuspend_all_lwps): New.
17619 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17620 (send_sigstop_callback): Change return type to int, add new
17621 `except' parameter and handle it.
17622 (suspend_and_send_sigstop_callback): New.
17623 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17624 pass them down. If SUSPEND, also increment the lwp's suspend
17625 count.
17626 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17627 (need_step_over_p): Don't consider suspended LWPs.
17628 (start_step_over): Adjust.
17629 (proceed_one_lwp): Change return type to int, add new `except'
17630 parameter and handle it.
17631 (unsuspend_and_proceed_one_lwp): New.
17632 (proceed_all_lwps): Use find_inferior instead of
17633 for_each_inferior.
17634 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17635 also decrement the suspend count of LWPs. Pass `except' down,
17636 instead of hacking its suspend count.
17637 (linux_pause_all): Add `freeze' parameter. Adjust.
17638 (linux_unpause_all): New.
17639 (linux_target_ops): Install linux_unpause_all.
17640 * server.c (handle_status): Adjust.
17641 * target.h (struct target_ops): New fields `unpause_all' and
17642 `cancel_breakpoints'. Add new parameter to `pause_all'.
17643 (pause_all): Add new `freeze' parameter.
17644 (unpause_all): New.
17645 (cancel_breakpoints): New.
17646 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17647 cancel breakpoints.
17648 (cmd_qtstart): Pause threads.
17649 (stop_tracing): Pause threads, and cancel breakpoints.
17650 * win32-low.c (win32_target_ops): Adjust.
17651
e471f25b
PA
176522010-05-03 Pedro Alves <pedro@codesourcery.com>
17653
17654 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17655 the inferior right away from here...
17656 (linux_wait_1): ... to here, and adjust to check the thread's
17657 last_resume_kind instead of the lwp's step or stop_expected flags.
17658
1915ef4f
PA
176592010-05-02 Pedro Alves <pedro@codesourcery.com>
17660
17661 * README: Use consistent `GDB' and `GDBserver' spellings.
17662
f9e39928
PA
176632010-05-02 Pedro Alves <pedro@codesourcery.com>
17664
17665 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17666 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17667 (linux_detach_one_lwp): Assume the lwp is stopped.
17668 (any_thread_of): Delete.
17669 (linux_detach): Stop all lwps here. Don't blindly delete all
17670 breakpoints.
17671 (delete_lwp_callback): New.
17672 (linux_mourn): Delete all lwps of the process that is gone.
17673 (linux_wait_1): Don't delete the last lwp of the process here.
17674 * mem-break.h (mark_breakpoints_out): Declare.
17675 * mem-break.c (mark_breakpoints_out): New.
17676 (free_all_breakpoints): Use it.
17677 * server.c (handle_target_event): If the process is gone, mark
17678 breakpoints out.
17679 * thread-db.c (struct thread_db) <create_bp>: New field.
17680 (thread_db_enable_reporting): Fix prototype. Store a thread event
17681 breakpoint reference in the thread_db struct.
17682 (thread_db_load_search): Clear the thread_db object.
17683 (try_thread_db_load_1): Ditto.
17684 (switch_to_process): New.
17685 (disable_thread_event_reporting): Use it.
17686 (remove_thread_event_breakpoints): New.
17687 (thread_db_detach, thread_db_mourn): Use it.
17688
1e7fc18c
PA
176892010-05-01 Pedro Alves <pedro@codesourcery.com>
17690
17691 * linux-low.c (linux_enable_event_reporting): New.
17692 (linux_wait_for_event_1, handle_extended_wait): Use it.
17693
02fc4de7
PA
176942010-04-30 Pedro Alves <pedro@codesourcery.com>
17695
17696 * linux-low.c (linux_kill_one_lwp, linux_kill)
17697 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17698 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17699 SIGSTOP even if the LWP is stopped.
17700 (send_sigstop_callback): New.
17701 (stop_all_lwps): Use send_sigstop_callback instead.
17702 (linux_resume_one_thread): Adjust.
17703 (proceed_one_lwp): Still proceed an LWP that the client has
17704 requested to stop, if we haven't reported it as stopped yet. Make
17705 sure that LWPs the client want stopped, have a pending SIGSTOP.
17706
bc3b5632
DE
177072010-04-26 Doug Evans <dje@google.com>
17708
ae1ada35
DE
17709 * server.c (handle_general_set): Make static.
17710
bc3b5632
DE
17711 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17712 Print received char after testing for error/eof instead of before.
17713 (input_interrupt): Tweak comment.
17714
65730243
DE
177152010-04-23 Doug Evans <dje@google.com>
17716
17717 * server.c (start_inferior): Print inferior argv if --debug.
17718
a8ae7dc0
AR
177192010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17720
17721 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17722 * nto-x86-low.c: Include server.h
17723
1c07cc19
PM
177242010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17725
17726 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17727 be consistent with other sources of this directory.
17728 (init_registers_amd64): Correct name of source file of this function
17729 in the comment.
17730
e0a61e09
PM
177312010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17732
17733 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17734 64-bit executables.
17735
54709339
PM
177362010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17737
17738 * win32-i386-low.c: Add 64-bit support.
17739 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17740 (init_registers_amd64): Declare.
17741 (mappings): Add 64-bit version of array.
17742 (init_windows_x86): New function.
17743 (the_low_target): Change init_arch field to init_windows_x86.
17744
e8f0053d
PM
177452010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17746
17747 * win32-low.c: Adapt to support also 64-bit architecture.
17748 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17749 (get_image_name): Use SIZE_T type for local variable `done'.
17750 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17751 (toolhelp_get_dll_name): Idem.
17752 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17753 Use uintptr_t typecast to avoid warning.
17754 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17755 (handle_exception): Use phex_nz to avoid warning.
17756 (win32_wait): Remove unused local variable `process'.
17757
c481e77e
PM
177582010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17759
17760 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17761 `amd64-avx.o'.
17762
12ea4b69
PM
177632010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17764
17765 * configure.ac: Use `ws2_32' library for srv_mingw.
17766 * configure: Regenerate.
17767 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17768 * remote-utils.c: Likewise.
17769
f6d1620c
L
177702010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17771
17772 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17773 if __x86_64__ is defined.
17774
8e642873
PM
177752010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17776
17777 * configure: Regenerate.
17778
711e434b
PM
177792010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17780
17781 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17782 * target.h (target_ops): New get_tib_address field.
17783 * win32-low.h (win32_thread_info): Add thread_local_base field.
17784 * win32-low.c (child_add_thread): Add tlb argument.
17785 Set thread_local_base field to TLB.
17786 (get_child_debug_event): Adapt to child_add_thread change.
17787 (win32_get_tib_address): New function.
17788 (win32_target_ops): Set get_tib_address field to
17789 win32_get_tib_address.
17790 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17791
505106cd
PA
177922010-04-12 Pedro Alves <pedro@codesourcery.com>
17793
505106cd
PA
17794 * linux-low.c (linux_mourn): Also remove the process.
17795 * server.c (handle_target_event): Don't remove the process here.
17796 * nto-low.c (nto_mourn): New.
17797 (nto_target_ops): Install it.
17798 * spu-low.c (spu_mourn): New.
17799 (spu_target_ops): Install it.
17800 * win32-low.c (win32_mourn): New.
17801 (win32_target_ops): Install it.
17802
e8470a06
PA
178032010-04-12 Pedro Alves <pedro@codesourcery.com>
17804
17805 * server.h (buffer_xml_printf): Remove redundant `;'.
17806
45ba0d02
PA
178072010-04-12 Pedro Alves <pedro@codesourcery.com>
17808
17809 * regcache.c (set_register_cache): Invalidate regcaches before
17810 changing the register cache layout.
17811 (regcache_invalidate_one): Allow a NULL regcache.
17812 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17813 regcaches before changing the register cache layout or the target
17814 regsets.
17815
59e04013
L
178162010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17817
17818 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17819 variable warning on Linux/x86-64.
17820
8336d594
PA
178212010-04-11 Pedro Alves <pedro@codesourcery.com>
17822
17823 GDBserver disconnected tracing support.
17824
17825 * linux-low.c (linux_remove_process): Delete.
17826 (add_lwp): Don't set last_resume_kind here.
17827 (linux_kill): Use `mourn'.
17828 (linux_detach): Use `thread_db_detach', and `mourn'.
17829 (linux_mourn): New.
17830 (linux_attach_lwp_1): Adjust comment.
17831 (linux_attach): last_resume_kind moved the thread_info; adjust.
17832 (status_pending_p_callback): Adjust.
17833 (linux_wait_for_event_1): Adjust.
17834 (count_events_callback, select_singlestep_lwp_callback)
17835 (select_event_lwp_callback, cancel_breakpoints_callback)
17836 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17837 (proceed_one_lwp): Adjust.
17838 (linux_async): Add debug output.
17839 (linux_thread_stopped): New.
17840 (linux_pause_all): New.
17841 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17842 linux_pause_all.
17843 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17844 (thread_db_free): Delete declaration.
17845 (thread_db_detach, thread_db_mourn): Declare.
17846 * thread-db.c (thread_db_init): Use thread_db_mourn.
17847 (thread_db_free): Delete, split in two.
17848 (disable_thread_event_reporting): New.
17849 (thread_db_detach): New.
17850 (thread_db_mourn): New.
17851
17852 * server.h (struct thread_info) <last_resume_kind>: New field.
17853 <attached>: Add comment.
17854 <gdb_detached>: New field.
17855 (handler_func): Change return type to int.
17856 (handle_serial_event, handle_target_event): Ditto.
17857 (gdb_connected): Declare.
17858 (tracing): Delete.
17859 (disconnected_tracing): Declare.
17860 (stop_tracing): Declare.
17861
17862 * server.c (handle_query) <qSupported>: Report support for
17863 disconnected tracing.
17864 (queue_stop_reply_callback): Account for running threads.
17865 (gdb_wants_thread_stopped): New.
17866 (gdb_wants_all_threads_stopped): New.
17867 (gdb_reattached_process): New.
17868 (handle_status): Clear the `gdb_detached' flag of all processes.
17869 In all-stop, stop all threads.
17870 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17871 (process_serial_event): If the remote connection breaks, or if an
17872 exit was forced with "monitor exit", force an event loop exit.
17873 Handle disconnected tracing on detach.
17874 (handle_serial_event): Adjust.
17875 (handle_target_event): If GDB isn't connected, forward events back
17876 to the inferior, unless the last process exited, in which case,
17877 exit gdbserver. Adjust interface.
17878
17879 * remote-utils.c (remote_open): Don't block in accept. Instead
17880 register an event loop source on the listen socket file
17881 descriptor. Refactor bits into ...
17882 (listen_desc): ... this new global.
17883 (gdb_connected): ... this new function.
17884 (enable_async_notification): ... this new function.
17885 (handle_accept_event): ... this new function.
17886 (remote_close): Clear remote_desc.
17887
17888 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17889
17890 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17891 New fields.
17892 (mourn_inferior): Define.
17893 (target_process_qsupported): Avoid the dangling else problem.
17894 (thread_stopped): Define.
17895 (pause_all): Define.
17896 (target_waitstatus_to_string): Declare.
17897 * target.c (target_waitstatus_to_string): New.
17898
17899 * tracepoint.c (tracing): Make extern.
17900 (disconnected_tracing): New.
17901 (stop_tracing): Make extern. Handle tracing stops due to GDB
17902 disconnecting.
17903 (cmd_qtdisconnected): New.
17904 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17905 (handle_tracepoint_general_set): Handle QTDisconnected.
17906
17907 * event-loop.c (event_handler_func): Change return type to int.
17908 (process_event): Bail out if the event handler wants the event
17909 loop to stop.
17910 (handle_file_event): Ditto.
17911 (start_event_loop): Bail out if the event handler wants the event
17912 loop to stop.
17913
17914 * nto-low.c (nto_target_ops): Adjust.
17915 * spu-low.c (spu_wait): Don't remove the process here.
17916 (spu_target_ops): Adjust.
17917 * win32-low.c (win32_wait): Don't remove the process here.
17918 (win32_target_ops): Adjust.
17919
5d267c4c
PA
179202010-04-11 Pedro Alves <pedro@codesourcery.com>
17921
17922 * regcache.c (realloc_register_cache): Invalidate inferior's
17923 regcache before recreating it.
17924
623ccd72
PA
179252010-04-09 Pedro Alves <pedro@codesourcery.com>
17926
17927 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17928
219f2f23
PA
179292010-04-09 Stan Shebs <stan@codesourcery.com>
17930 Pedro Alves <pedro@codesourcery.com>
17931
17932 * server.h (LONGEST): New.
17933 (struct thread_info) <while_stepping>: New field.
17934 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17935 Declare.
17936 (initialize_tracepoint, handle_tracepoint_general_set)
17937 (handle_tracepoint_query, tracepoint_finished_step)
17938 (tracepoint_was_hit, release_while_stepping_state_list):
17939 (current_traceframe): Declare.
17940 * server.c (handle_general_set): Handle tracepoint packets.
17941 (read_memory): New.
17942 (write_memory): New.
17943 (handle_search_memory_1): Use read_memory.
17944 (handle_query): Report support for conditional tracepoints, trace
17945 state variables, and tracepoint sources. Handle tracepoint
17946 queries.
17947 (main): Initialize the tracepoints module.
17948 (process_serial_event): Handle traceframe reads/writes.
17949
17950 * linux-low.c (handle_tracepoints): New.
17951 (linux_wait_1): Call it.
17952 (linux_resume_one_lwp): Handle while-stepping.
17953 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17954 (linux_target_ops): Install them.
17955 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17956 New field.
17957 * linux-x86-low.c (x86_supports_tracepoints): New.
17958 (the_low_target). Install it.
17959
17960 * mem-break.h (delete_breakpoint): Declare.
17961 * mem-break.c (delete_breakpoint): Make external.
17962
17963 * target.h (struct target_ops): Add `supports_tracepoints',
17964 `read_pc', and `write_pc' fields.
17965 (target_supports_tracepoints): Define.
17966 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17967 (phex_nz): New.
17968
17969 * regcache.h (struct regcache) <registers_owned>: New field.
17970 (init_register_cache, regcache_cpy): Declare.
17971 (regcache_read_pc, regcache_write_pc): Declare.
17972 (register_cache_size): Declare.
17973 (supply_regblock): Declare.
17974 * regcache.c (init_register_cache): New.
17975 (new_register_cache): Use it.
17976 (regcache_cpy): New.
17977 (register_cache_size): New.
17978 (supply_regblock): New.
17979 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17980
219f2f23
PA
17981 * tracepoint.c: New.
17982
17983 * Makefile.in (OBS): Add tracepoint.o.
17984 (tracepoint.o): New rule.
17985
3a13a53b
L
179862010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17987
17988 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17989 (i386-mmx.o): New.
17990 (i386-mmx.c): Likewise.
17991 (i386-mmx-linux.o): Likewise.
17992 (i386-mmx-linux.c): Likewise.
17993
17994 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17995 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17996 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17997 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17998
17999 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18000 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18001 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18002
1570b33e
L
180032010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18004
18005 * Makefile.in (clean): Updated.
18006 (i386-avx.o): New.
18007 (i386-avx.c): Likewise.
18008 (i386-avx-linux.o): Likewise.
18009 (i386-avx-linux.c): Likewise.
18010 (amd64-avx.o): Likewise.
18011 (amd64-avx.c): Likewise.
18012 (amd64-avx-linux.o): Likewise.
18013 (amd64-avx-linux.c): Likewise.
18014
18015 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18016 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18017 (srv_amd64_regobj): Add amd64-avx.o.
18018 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18019 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18020 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18021 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18022 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18023 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18024 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18025
18026 * i387-fp.c: Include "i386-xstate.h".
18027 (i387_xsave): New.
18028 (i387_cache_to_xsave): Likewise.
18029 (i387_xsave_to_cache): Likewise.
18030 (x86_xcr0): Likewise.
18031
18032 * i387-fp.h (i387_cache_to_xsave): Likewise.
18033 (i387_xsave_to_cache): Likewise.
18034 (x86_xcr0): Likewise.
18035
18036 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18037 * linux-crisv32-low.c (target_regsets): Likewise.
18038 * linux-m68k-low.c (target_regsets): Likewise.
18039 * linux-mips-low.c (target_regsets): Likewise.
18040 * linux-ppc-low.c (target_regsets): Likewise.
18041 * linux-s390-low.c (target_regsets): Likewise.
18042 * linux-sh-low.c (target_regsets): Likewise.
18043 * linux-sparc-low.c (target_regsets): Likewise.
18044 * linux-xtensa-low.c (target_regsets): Likewise.
18045
18046 * linux-low.c: Include <sys/uio.h>.
18047 (regsets_fetch_inferior_registers): Support nt_type.
18048 (regsets_store_inferior_registers): Likewise.
18049 (linux_process_qsupported): New.
18050 (linux_target_ops): Add linux_process_qsupported.
18051
18052 * linux-low.h (regset_info): Add nt_type.
18053 (linux_target_ops): Add process_qsupported.
18054
18055 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18056 and <sys/uio.h>.
18057 (init_registers_i386_avx_linux): New.
18058 (init_registers_amd64_avx_linux): Likewise.
18059 (xmltarget_i386_linux_no_xml): Likewise.
18060 (xmltarget_amd64_linux_no_xml): Likewise.
18061 (PTRACE_GETREGSET): Likewise.
18062 (PTRACE_SETREGSET): Likewise.
18063 (x86_fill_xstateregset): Likewise.
18064 (x86_store_xstateregset): Likewise.
18065 (use_xml): Likewise.
18066 (x86_linux_update_xmltarget): Likewise.
18067 (x86_linux_process_qsupported): Likewise.
18068 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18069 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18070 init_registers_i386_linux here. Call
18071 x86_linux_update_xmltarget.
18072 (the_low_target): Add x86_linux_process_qsupported.
18073
18074 * server.c (handle_query): Call target_process_qsupported.
18075
18076 * target.h (target_ops): Add process_qsupported.
18077 (target_process_qsupported): New.
18078
fc7238bb
PA
180792010-04-03 Pedro Alves <pedro@codesourcery.com>
18080
18081 * inferiors.c (add_thread): Set last_status kind to
18082 TARGET_WAITKIND_IGNORE.
18083 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18084 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18085 (linux_wait_1): Move `thread' local definition to block that uses
18086 it. Don't NULL initialize `event_child'.
18087 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18088 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18089 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18090
bdabb078
PA
180912010-04-01 Pedro Alves <pedro@codesourcery.com>
18092
18093 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18094 an extended waitstatus, or by a watchpoint.
18095 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18096 thread was stepping or has been stopped by a watchpoint.
18097
d3bbe7a0
PA
180982010-04-01 Pedro Alves <pedro@codesourcery.com>
18099
18100 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18101 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18102 of another, then delete the previous, and validate all
18103 breakpoints.
18104 (validate_inserted_breakpoint): New.
18105 (delete_disabled_breakpoints): New.
18106 (validate_breakpoints): New.
18107 (check_mem_read): Validate breakpoints before trusting their
18108 shadow. Delete disabled breakpoints.
18109 (check_mem_write): Validate breakpoints before trusting they
18110 should be inserted. Delete disabled breakpoints.
18111 * mem-break.h (validate_breakpoints):
18112 * server.c (handle_query): Validate breakpoints when we see a
18113 qSymbol query.
18114
8b07ae33
PA
181152010-04-01 Pedro Alves <pedro@codesourcery.com>
18116
18117 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18118 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18119 if we could tell there's a GDB breakpoint at stop_pc.
18120 (need_step_over_p): Don't do a step over if we find a GDB
18121 breakpoint at the resume PC.
18122
18123 * mem-break.c (struct raw_breakpoint): New.
18124 (enum bkpt_type): New type `gdb_breakpoint'.
18125 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18126 fields. New field `raw'.
18127 (find_raw_breakpoint_at): New.
18128 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18129 breakpoint instead.
18130 (set_breakpoint_at): Adjust.
18131 (delete_raw_breakpoint): New.
18132 (release_breakpoint): New.
18133 (delete_breakpoint): Rename to...
18134 (delete_breakpoint_1): ... this. Add proc parameter. Use
18135 release_breakpoint. Return ENOENT.
18136 (delete_breakpoint): Reimplement.
18137 (find_breakpoint_at): Delete.
18138 (find_gdb_breakpoint_at): New.
18139 (delete_breakpoint_at): Delete.
18140 (set_gdb_breakpoint_at): New.
18141 (delete_gdb_breakpoint_at): New.
18142 (gdb_breakpoint_here): New.
18143 (set_reinsert_breakpoint): Use release_breakpoint.
18144 (uninsert_breakpoint): Rename to ...
18145 (uninsert_raw_breakpoint): ... this.
18146 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18147 (reinsert_raw_breakpoint): Change parameter type to
18148 raw_breakpoint.
18149 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18150 instead.
18151 (check_breakpoints): Adjust. Use release_breakpoint.
18152 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18153 (breakpoint_inserted_here): Ditto.
18154 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18155 Don't trust the breakpoint's shadow if it is not inserted.
18156 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18157 (delete_all_breakpoints): Adjust.
18158 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18159 use delete_breakpoint_1.
18160
18161 * mem-break.h (breakpoints_supported): Delete declaration.
18162 (set_gdb_breakpoint_at): Declare.
18163 (gdb_breakpoint_here): Declare.
18164 (delete_breakpoint_at): Delete.
18165 (delete_gdb_breakpoint_at): Declare.
18166
18167 * server.h (struct raw_breakpoint): Forward declare.
18168 (struct process_info): New field `raw_breakpoints'.
18169
18170 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18171 breakpoints.
18172
6bf5e0ba
PA
181732010-03-24 Pedro Alves <pedro@codesourcery.com>
18174
18175 * linux-low.c (status_pending_p_callback): Fix comment.
18176 (linux_wait_for_event_1): Move most of the internal breakpoint
18177 handling from here...
18178 (linux_wait_1): ... to here.
18179 (count_events_callback): New.
18180 (select_singlestep_lwp_callback): New.
18181 (select_event_lwp_callback): New.
18182 (cancel_breakpoints_callback): New.
18183 (select_event_lwp): New.
18184 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18185 priority to all LWPs that have had events that should be reported
18186 to the client. Cancel breakpoints when about to reporting the
18187 event to the client, not while stopping lwps. No longer cancel
18188 finished single-steps here.
18189 (cancel_finished_single_step): Delete.
18190 (cancel_finished_single_steps): Delete.
18191
414a389f
PA
181922010-03-24 Pedro Alves <pedro@codesourcery.com>
18193
18194 * mem-break.c (enum bkpt_type): New.
18195 (struct breakpoint): New field `type'.
18196 (set_breakpoint_at): Change return type to struct breakpoint
18197 pointer. Set type to `other_breakpoint' by default.
18198 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18199 in the breakpoint list.
18200 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18201 (reinsert_breakpoint): Rename to ...
18202 (reinsert_raw_breakpoint): ... this.
18203 (reinsert_breakpoints_at): Adjust.
18204 * mem-break.h (struct breakpoint): Declare.
18205 (set_breakpoint_at): Change return type to struct breakpoint
18206 pointer.
18207
2280c721
PA
182082010-03-24 Pedro Alves <pedro@codesourcery.com>
18209
18210 * server.c (handle_query): Assign, not compare.
18211
d50171e4
PA
182122010-03-24 Pedro Alves <pedro@codesourcery.com>
18213
18214 Teach linux gdbserver to step-over-breakpoints.
18215
18216 * linux-low.c (can_hardware_single_step): New.
18217 (supports_breakpoints): New.
18218 (handle_extended_wait): If stopping threads, read the stop pc of
18219 the new cloned LWP.
18220 (get_pc): New.
18221 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18222 low target doesn't support retrieving the PC.
18223 (add_lwp): Set last_resume_kind to resume_continue.
18224 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18225 (linux_attach): Don't clear stop_expected. Set the lwp's
18226 last_resume_kind to resume_stop.
18227 (linux_detach_one_lwp): Don't check for removed breakpoints.
18228 (check_removed_breakpoint): Delete.
18229 (status_pending_p): Rename to ...
18230 (status_pending_p_callback): ... this. Don't check for removed
18231 breakpoints. Don't consider threads that are stopped from GDB's
18232 perspective.
18233 (linux_wait_for_lwp): Always read the stop_pc here.
18234 (cancel_breakpoint): New.
18235 (step_over_bkpt): New global.
18236 (linux_wait_for_event_1): Implement stepping over breakpoints.
18237 (gdb_wants_lwp_stopped): New.
18238 (gdb_wants_all_stopped): New.
18239 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18240 single-step traps here. Store the thread's last reported target
18241 wait status.
18242 (send_sigstop): Don't clear stop_expected. Always set it,
18243 instead.
18244 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18245 (cancel_finished_single_step): New.
18246 (cancel_finished_single_steps): New.
18247 (wait_for_sigstop): Don't cancel finished single-step traps here.
18248 (linux_resume_one_lwp): Don't check for removed breakpoints.
18249 Don't set `step' on non-hardware step archs.
18250 (linux_set_resume_request): Ignore resume_stop requests if already
18251 stopping or stopped. Set the lwp's last_resume_kind.
18252 (resume_status_pending_p): Don't check for removed breakpoints.
18253 (need_step_over_p): New.
18254 (start_step_over): New.
18255 (finish_step_over): New.
18256 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18257 requests. Clear the thread's last reported target waitstatus.
18258 Don't use the `suspended' flag. Don't consider pending breakpoints.
18259 (linux_resume): Start a step-over if necessary.
18260 (proceed_one_lwp): New.
18261 (proceed_all_lwps): New.
18262 (unstop_all_lwps): New.
18263 * linux-low.h (struct lwp_info): Rewrite comment for the
18264 `suspended' flag. Add the `stop_pc' field. Delete the
18265 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18266 Add `'last_resume_kind' and `need_step_over' fields.
18267 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18268 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18269 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18270 (set_raw_breakpoint_at): New.
18271 (set_breakpoint_at): Rewrite to use it.
18272 (reinsert_breakpoint_handler): Delete.
18273 (set_reinsert_breakpoint): New.
18274 (reinsert_breakpoint_by_bp): Delete.
18275 (delete_reinsert_breakpoints): New.
18276 (uninsert_breakpoint): Rewrite.
18277 (uninsert_breakpoints_at): New.
18278 (reinsert_breakpoint): Rewrite.
18279 (reinsert_breakpoints_at): New.
18280 (check_breakpoints): Rewrite.
18281 (breakpoint_here): New.
18282 (breakpoint_inserted_here): New.
18283 (check_mem_read): Adjust.
18284 * mem-break.h (breakpoints_supported, breakpoint_here)
18285 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18286 (reinsert_breakpoint_by_bp): Delete declaration.
18287 (delete_reinsert_breakpoints): Declare.
18288 (reinsert_breakpoint): Delete declaration.
18289 (reinsert_breakpoints_at): Declare.
18290 (uninsert_breakpoint): Delete declaration.
18291 (uninsert_breakpoints_at): Declare.
18292 (check_breakpoints): Adjust prototype.
18293 * server.h: Adjust include order.
18294 (struct thread_info): Declare here. Add a `last_status' field.
18295
30ba68cb
MS
182962010-03-23 Michael Snyder <msnyder@vmware.com>
18297
18298 * server.c (crc32): New function.
18299 (handle_query): Add handling for 'qCRC:' request.
18300
b9a881c2
PA
183012010-03-23 Pedro Alves <pedro@codesourcery.com>
18302
18303 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18304 lwp had been stopped by a watchpoint.
18305
e92d13d5
PA
183062010-03-16 Pedro Alves <pedro@codesourcery.com>
18307
18308 * server.h (internal_error): Declare.
18309 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18310 * utils.c (internal_error): New function.
18311
64daa791
AS
183122010-03-15 Andreas Schwab <schwab@redhat.com>
18313
18314 * configure.srv: Fix typo setting srv_regobj.
18315
f52cd8cd
PA
183162010-03-15 Pedro Alves <pedro@codesourcery.com>
18317
18318 * linux-low.c (fetch_register): Avoid passing a non string literal
18319 format to `error'.
18320 (usr_store_inferior_registers): Ditto.
18321
93ae6fdc
PA
183222010-03-14 Pedro Alves <pedro@codesourcery.com>
18323
18324 * linux-low.c (linux_write_memory): Bail out early if peeking
18325 memory failed.
18326
c3adc08c
PA
183272010-03-14 Pedro Alves <pedro@codesourcery.com>
18328
18329 * linux-low.h (struct lwp_info): New fields
18330 `stopped_by_watchpoint' and `stopped_data_address'.
18331 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18332 here, and cache them in the lwp object.
18333 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18334 directly.
18335 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18336 field.
18337 (linux_stopped_by_watchpoint): Rewrite.
18338 (linux_stopped_data_address): Rewrite.
18339
bce522a2
PA
183402010-03-06 Simo Melenius <simo.melenius@iki.fi>
18341
18342 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18343 switching the current inferior, not before.
18344
90884b2b
L
183452010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18346
18347 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18348 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18349 i386-linux.c and amd64-linux.c.
18350 (reg-i386.o): Removed.
18351 (reg-i386.c): Likewise.
18352 (reg-i386-linux.o): Likewise.
18353 (reg-i386-linux.c): Likewise.
18354 (reg-x86-64.o): Likewise.
18355 (reg-x86-64.c): Likewise.
18356 (reg-x86-64-linux.o): Likewise.
18357 (reg-x86-64-linux.c): Likewise.
18358 (i386.o): New.
18359 (i386.c): Likewise.
18360 (i386-linux.o): Likewise.
18361 (i386-linux.c): Likewise.
18362 (amd64.o): Likewise.
18363 (amd64.c): Likewise.
18364 (amd64-linux.o): Likewise.
18365 (amd64-linux.c): Likewise.
18366
18367 * configure.srv (srv_i386_regobj): New.
18368 (srv_i386_linux_regobj): Likewise.
18369 (srv_amd64_regobj): Likewise.
18370 (srv_amd64_linux_regobj): Likewise.
18371 (srv_i386_32bit_xmlfiles): Likewise.
18372 (srv_i386_64bit_xmlfiles): Likewise.
18373 (srv_i386_xmlfiles): Likewise.
18374 (srv_amd64_xmlfiles): Likewise.
18375 (srv_i386_linux_xmlfiles): Likewise.
18376 (srv_amd64_linux_xmlfiles): Likewise.
18377 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18378 srv_xmlfiles to $srv_i386_xmlfiles.
18379 (i[34567]86-*-mingw32ce*): Likewise.
18380 (i[34567]86-*-mingw*): Likewise.
18381 (i[34567]86-*-nto*): Likewise.
18382 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18383 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18384 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18385 (x86_64-*-linux*): Likewise.
18386
18387 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18388 (init_registers_amd64_linux): New.
18389 (x86_arch_setup): Replace init_registers_x86_64_linux with
18390 init_registers_amd64_linux.
18391
193f13e6
MK
183922010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18393
18394 * configure.ac: Check for libdl. If it is not available link against
18395 static libthread_db.
18396 * configure: Regenerate.
18397
85d721b8
PA
183982010-02-22 Pedro Alves <pedro@codesourcery.com>
18399
18400 PR9605
18401
18402 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18403 handing a read watchpoint.
18404 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18405
6076632b
DE
184062010-02-12 Doug Evans <dje@google.com>
18407
18408 * linux-low.c (linux_supports_tracefork_flag): Document.
18409 (linux_look_up_symbols): Add comment.
18410
3327ccf7
L
184112010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18412
18413 * regcache.c (supply_register): Clear regcache if buf is NULL.
18414
0718675c 184152010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18416 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18417
18418 * inferiors.c (find_inferior): Add function documentation.
18419 (unloaded_dll): Handle the case where the unloaded dll has not
18420 been previously registered in the dll list.
18421
177321bd
DJ
184222010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18423
18424 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18425 (thumb2_breakpoint): New.
18426 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18427
2b009048
DJ
184282010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18429
18430 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18431 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18432 breakpoints.
18433
3be029c7
PA
184342010-01-21 Pedro Alves <pedro@codesourcery.com>
18435
18436 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18437
18f5de3b
JK
184382010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18439
18440 * linux-s390-low.c (s390_collect_ptrace_register)
18441 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18442
3743bb4f
DE
184432010-01-21 Doug Evans <dje@google.com>
18444
14ce3065
DE
18445 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18446 (PTRACE_ARG4_TYPE): New macro.
18447 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18448 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18449 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18450 (usr_store_inferior_registers): Ditto.
18451 (linux_read_memory, linux_write_memory): Ditto.
18452 (linux_test_for_tracefork): Ditto.
18453
3743bb4f
DE
18454 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18455 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18456
8b315be5
PA
184572010-01-21 Pedro Alves <pedro@codesourcery.com>
18458
18459 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18460 target.
18461
85492558
PA
184622010-01-21 Pedro Alves <pedro@codesourcery.com>
18463
18464 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18465 prototype to take a regcache. Adjust.
18466
442ea881
PA
184672010-01-20 Pedro Alves <pedro@codesourcery.com>
18468
18469 * regcache.h (struct thread_info): Forward declare.
18470 (struct regcache): New.
18471 (new_register_cache): Adjust prototype.
18472 (get_thread_regcache): Declare.
18473 (free_register_cache): Adjust prototype.
18474 (registers_to_string, registers_from_string): Ditto.
18475 (supply_register, supply_register_by_name, collect_register)
18476 (collect_register_as_string, collect_register_by_name): Ditto.
18477 * regcache.c (struct inferior_regcache_data): Delete.
18478 (get_regcache): Rename to ...
18479 (get_thread_regcache): ... this. Adjust. Switch inferior before
18480 fetching registers.
18481 (regcache_invalidate_one): Adjust.
18482 (regcache_invalidate): Fix prototype.
18483 (new_register_cache): Return the new register cache.
18484 (free_register_cache): Change prototype.
18485 (realloc_register_cache): Adjust.
18486 (registers_to_string): Change prototype to take a regcache. Adjust.
18487 (registers_from_string): Ditto.
18488 (register_data): Ditto.
18489 (supply_register): Ditto.
18490 (supply_register_by_name): Ditto.
18491 (collect_register): Ditto.
18492 (collect_register_as_string): Ditto.
18493 (collect_register_by_name): Ditto.
18494 * server.c (process_serial_event): Adjust.
18495 * linux-low.h (regset_fill_func, regset_store_func): Change
18496 prototype.
18497 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18498 Change prototype.
18499 * linux-low.c (get_stop_pc): Adjust.
18500 (check_removed_breakpoint): Adjust.
18501 (linux_wait_for_event): Adjust.
18502 (linux_resume_one_lwp): Adjust.
18503 (fetch_register): Add regcache parameter. Adjust.
18504 (usr_store_inferior_registers): Ditto.
18505 (regsets_fetch_inferior_registers): Ditto.
18506 (regsets_store_inferior_registers): Ditto.
18507 (linux_fetch_registers, linux_store_registers): Ditto.
18508 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18509 regcache. Adjust.
43aaf8b6
PA
18510 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18511 Ditto.
442ea881
PA
18512 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18513 prototype to take a regcache.
18514 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18515 * remote-utils.c (convert_ascii_to_int, outreg)
18516 (prepare_resume_reply): Change prototype to take a regcache.
18517 Adjust.
18518 * target.h (struct target_ops) <fetch_registers, store_registers>:
18519 Change prototype to take a regcache.
18520 (fetch_inferior_registers, store_inferior_registers): Change
18521 prototype to take a regcache. Adjust.
18522 * proc-service.c (ps_lgetregs): Adjust.
18523 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18524 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18525 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18526 take a regcache. Adjust.
18527 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18528 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18529 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18530 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18531 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18532 (cris_cannot_fetch_register):
18533 (cris_breakpoint_at): Change prototype to take a regcache.
18534 Adjust.
18535 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18536 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18537 to take a regcache. Adjust.
18538 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18539 Adjust.
18540 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18541 take a regcache. Adjust.
18542 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18543 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18544 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18545 * linux-mips-low.c (mips_get_pc):
18546 (mips_set_pc): Change prototype to take a regcache. Adjust.
18547 (mips_reinsert_addr): Adjust.
18548 (mips_collect_register): Change prototype to take a regcache.
18549 Adjust.
18550 (mips_supply_register):
18551 (mips_collect_register_32bit, mips_supply_register_32bit)
18552 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18553 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18554 * linux-ppc-low.c (ppc_supply_ptrace_register)
18555 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18556 (parse_spufs_run): Adjust.
18557 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18558 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18559 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18560 take a regcache. Adjust.
18561 * linux-s390-low.c (s390_collect_ptrace_register)
18562 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18563 (s390_set_pc): Change prototype to take a regcache. Adjust.
18564 (s390_arch_setup): Adjust.
18565 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18566 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18567 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18568 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18569 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18570 regcache. Adjust.
18571 (sparc_breakpoint_at): Adjust.
18572 * linux-xtensa-low.c (xtensa_fill_gregset):
18573 (xtensa_store_gregset):
18574 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18575 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18576 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18577 prototype to take a regcache. Adjust.
18578 * win32-arm-low.c (arm_fetch_inferior_register)
18579 (arm_store_inferior_register): Change prototype to take a
18580 regcache. Adjust.
18581 * win32-i386-low.c (i386_fetch_inferior_register)
18582 (i386_store_inferior_register): Change prototype to take a
18583 regcache. Adjust.
18584 * win32-low.c (child_fetch_inferior_registers)
18585 (child_store_inferior_registers): Change prototype to take a
18586 regcache. Adjust.
18587 (win32_wait): Adjust.
18588 (win32_fetch_inferior_registers): Change prototype to take a
18589 regcache. Adjust.
18590 (win32_store_inferior_registers): Adjust.
18591 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18592 store_inferior_register>: Change prototype to take a regcache.
18593
60c3d7b0
DE
185942010-01-20 Doug Evans <dje@google.com>
18595
18596 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18597 #ifdef.
18598 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18599 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18600
dc146f7c
VP
186012010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18602
18603 * linux-low.c (linux_core_of_thread): New.
18604 (compare_ints, show_process, list_threads): New.
18605 (linux_qxfer_osdata): Report threads and cores.
18606 (linux_target_op): Register linux_core_of_thread.
18607 * remote-utils.c (prepare_resume_reply): Report the core.
18608 (buffer_xml_printf): Support %d specifier.
18609 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18610 New.
18611 (handle_query): Handle qXfer:threads. Announce availability
18612 thereof.
18613 * target.h (struct target_ops): New field core_of_thread.
18614
7803799a
UW
186152010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18616
18617 * Makefile.in (clean): Remove new generated files.
18618 (reg-s390.o, reg-s390.c): Remove rules.
18619 (reg-s390x.o, reg-s390x.c): Likewise.
18620 (s390-linux32.o, s390-linux32.c): Add rules.
18621 (s390-linux64.o, s390-linux64.c): Likewise.
18622 (s390x-linux64.o, s390x-linux64.c): Likewise.
18623 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18624 * linux-s390-low.c: Include <elf.h>.
18625 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18626 (init_registers_s390): Remove prototype.
18627 (init_registers_s390x): Likewise.
18628 (init_registers_s390_linux32): Add prototype.
18629 (init_registers_s390_linux64): Likewise.
18630 (init_registers_s390x_linux64): Likewise.
18631 (s390_num_regs_3264): New define.
18632 (s390_regmap_3264): New global variable.
18633 (s390_cannot_fetch_register): Remove obsolete check.
18634 (s390_cannot_store_register): Likewise.
18635 (s390_collect_ptrace_register): Handle upper/lower register halves.
18636 (s390_supply_ptrace_register): Likewise.
18637 (s390_fill_gregset): Update to register number changes.
18638 (s390_get_hwcap): New routine.
18639 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18640 Install appropriate regmap and register set.
18641
6e7ffa39
JB
186422010-01-01 Joel Brobecker <brobecker@adacore.com>
18643
18644 * server.c (gdbserver_version): Update copyright year to 2010.
18645 * gdbreplay.c (gdbreplay_version): Likewise.
18646
957f3f49
DE
186472009-12-28 Doug Evans <dje@google.com>
18648
18649 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18650 elf/external.h. Include <elf.h> instead but only if necessary.
18651
ca5c370d
PA
186522009-12-28 Pedro Alves <pedro@codesourcery.com>
18653
18654 * linux-low.c (linux_remove_process): Remove `detaching'
18655 parameter. Don't release/detach from thread_db here.
18656 (linux_kill): Release/detach from thread_db here, ...
18657 (linux_detach): ... and here, before actually detaching.
18658 (linux_wait_1): ... and here, when a process exits.
18659 * thread-db.c (any_thread_of): New.
18660 (thread_db_free): Switch the current inferior to a thread of the
18661 passed in process.
18662
4ee62156
DE
186632009-12-21 Doug Evans <dje@google.com>
18664
d90e6a88
DE
18665 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18666
c5f62d5f
DE
18667 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18668 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18669 warning ifndef __NR_tkill. Move setting of errno there too.
18670 Delete unnecessary resetting of errno after syscall.
18671 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18672
10e86dd7
DE
18673 * configure.ac: Check for dladdr.
18674 * config.in: Regenerate.
18675 * configure: Regenerate.
18676 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18677 (try_thread_db_load): Update.
18678
4ee62156
DE
18679 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18680
00f515da
DE
186812009-12-18 Doug Evans <dje@google.com>
18682
e9464885
DE
18683 * event-loop.c: Include unistd.h if it exists.
18684
07d4f67e
DE
18685 * linux-low.c (my_waitpid): Move definition away from being in
18686 between linux_tracefork_child/linux_test_for_tracefork.
18687
00f515da
DE
18688 * gdb_proc_service.h (psaddr_t): Fix type.
18689 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18690 signature to match glibc.
18691
1de1badb
DE
186922009-12-16 Doug Evans <dje@google.com>
18693
18694 * linux-low.c (linux_read_memory): Fix argument to read.
18695
aeeb81d1
PA
186962009-11-26 Pedro Alves <pedro@codesourcery.com>
18697
18698 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18699 events, don't leave current_inferior pointing at null.
18700
10357975
PA
187012009-11-26 Pedro Alves <pedro@codesourcery.com>
18702
18703 * win32-low.c (LOG): Delete.
18704 (OUTMSG): Output to stderr.
18705 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18706 on compile time LOG macro.
18707 (win32_wait): Fix debug output.
18708
cf6e3471
PA
187092009-11-26 Pedro Alves <pedro@codesourcery.com>
18710
18711 * win32-low.c (win32_add_one_solib): If the dll name is
18712 "ntdll.dll", prepend the system directory to the dll path.
18713
0c85e18e
MK
187142009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18715
18716 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18717
9ac544ce 187182009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18719 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18720
18721 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18722 * configure.ac: Check for __mcoldfire__ and set
18723 gdb_cv_m68k_is_coldfire.
18724 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18725 reg-cf.o and reg-m68k.o.
18726 * configure: Regenerated.
18727
fd7dd3e6
PA
187282009-11-16 Pedro Alves <pedro@codesourcery.com>
18729
18730 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18731 Pass it to thread_db_free.
18732 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18733 proper `detaching' argument to linux_remove_process.
18734 * linux-low.h (thread_db_free): Add `detaching' parameter.
18735 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18736 to thread_db_free.
18737 (thread_db_free): Add `detaching' parameter. Only
18738 call td_ta_clear_event if detaching from process.
18739
75aa492e
MK
187402009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18741
18742 * thread-db.c (thread_db_free): Fix typo.
18743
21e1bee4
PP
187442009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18745
18746 PR gdb/10838
18747 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18748
8838b45e
NS
187492009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18750
18751 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18752 with an i686 compiler.
18753 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18754 needed.
18755 * configure: Rebuilt.
18756
8a35fb51
SL
187572009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18758
18759 PR gdb/10783
18760
18761 * server.c (handle_search_memory_1): Correct read_addr initialization
18762 in loop for searching subsequent chunks.
18763
96f15937
PP
187642009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18765
18766 * configure.ac: New --with-libthread-db option.
18767 * thread-db.c: Allow direct dependence on libthread_db.
18768 (thread_db_free): Adjust.
18769 * config.in: Regenerate.
18770 * configure: Likewise.
889bf7c5 18771
5f7d1694
PP
187722009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18773
18774 PR gdb/10757
18775 * thread-db.c (attach_thread): New function.
18776 (maybe_attach_thread): Return success/failure.
18777 (find_new_threads_callback): Adjust.
889bf7c5
PA
18778 (thread_db_find_new_threads): Loop until no new threads.
18779
88e3b899
PA
187802009-10-13 Pedro Alves <pedro@codesourcery.com>
18781
18782 * proc-service.c (ps_lgetregs): Formatting.
18783
cdbfd419
PP
187842009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18785
18786 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18787 * configure.ac: Adjust.
18788 * linux-low.h (struct process_info_private): Move members to struct
18789 thread_db.
18790 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18791 * linux-low.c (linux_remove_process): Adjust.
18792 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18793 * server.c (handle_query): Move code ...
18794 (handle_monitor_command): ... here. New function.
18795 * target.h (struct target_ops): New member.
18796 * thread-db.c (struct thread_db): New.
18797 (libthread_db_search_path): New variable.
18798 (thread_db_create_event, thread_db_enable_reporting)
18799 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18800 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18801 (try_thread_db_load_1, dladdr_to_soname): New functions.
18802 (try_thread_db_load, thread_db_load_search): New functions.
18803 (thread_db_init): Search for libthread_db.
18804 (thread_db_free): New function.
18805 (thread_db_handle_monitor_command): Likewise.
18806 * config.in: Regenerate.
18807 * configure: Regenerate.
889bf7c5 18808
4168d2d6
UW
188092009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18810
18811 * spu-low.c (spu_kill): Wait for inferior to terminate.
18812 Call clear_inferiors.
18813 (spu_detach): Call clear_inferiors.
18814
81ecdfbb
RW
188152009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18816
18817 * aclocal.m4: Regenerate.
18818 * config.in: Likewise.
18819 * configure: Likewise.
18820
0b9ff2c0
UW
188212009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18822
18823 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18824 (parse_spufs_run): New function.
18825 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18826 (ppc_breakpoint_at): Handle SPU breakpoints.
18827
efcbbd14
UW
188282009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18829
18830 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18831 (SPUFS_MAGIC): Define.
18832 (spu_enumerate_spu_ids): New function.
18833 (linux_qxfer_spu): New function.
18834 (linux_target_ops): Install linux_qxfer_spu.
18835
f4d9bade
UW
188362009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18837
18838 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18839 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18840 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18841 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18842 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18843 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18844 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18845 (init_registers_powerpc_cell32l): Add prototype.
18846 (init_registers_powerpc_cell64l): Likewise.
18847 (ppc_arch_setup): Detect Cell/B.E. architecture.
18848
96e946ca
RW
188492009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18850
18851 * Makefile.in (datarootdir): New variable.
18852
58d6951d
DJ
188532009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18854
18855 * linux-low.c (linux_write_memory): Update debugging output.
18856 * Makefile.in (clean): Add new descriptions.
18857 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18858 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18859 * configure.srv: Add new files for arm*-*-linux*.
18860 * linux-arm-low.c: Add new declarations.
18861 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18862 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18863 (HWCAP_VFPv3D16): New.
18864 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18865 instead of __IWMMXT__.
18866 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18867 (arm_arch_setup): New.
18868 (target_regsets): Remove #ifdef. Add VFP regset.
18869 (the_low_target): Use arm_arch_setup.
18870
12b42a12
DJ
188712009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18872
18873 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18874 the main thread again.
18875
ac8c974e
AR
188762009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18877
18878 Adding Neutrino gdbserver.
18879 * configure: Regenerated.
18880 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18881 * configure.srv (i[34567]86-*-nto*): New target.
18882 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18883 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18884 (nto_comctrl) [__QNX__]: New function.
18885 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18886
4424e0c3 188872009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18888
18889 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18890 srv_tgtobj.
18891
912cf4ba
PA
188922009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18893 Pedro Alves <pedro@codesourcery.com>
18894
18895 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18896 don't support CONTEXT_EXTENDED_REGISTERS.
18897 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18898 (the_low_target): Install them.
18899 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18900 failing with ERROR_PIPE_NOT_CONNECTED.
18901
aa5ca48f
DE
189022009-06-30 Doug Evans <dje@google.com>
18903 Pierre Muller <muller@ics.u-strasbg.fr>
18904
18905 Add h/w watchpoint support to x86-linux, win32-i386.
18906 * Makefile.in (SFILES): Add i386-low.c
18907 (i386_low_h): Define.
18908 (i386-low.o): Add dependencies.
18909 (linux-x86-low.o): Add i386-low.h dependency.
18910 (win32-i386-low.o): Ditto.
18911 * i386-low.c: New file.
18912 * i386-low.h: New file.
18913 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18914 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18915 * linux-low.c (linux_add_process): Initialize arch_private.
18916 (linux_remove_process): Free arch_private.
18917 (add_lwp): Initialize arch_private.
18918 (delete_lwp): Free arch_private.
18919 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18920 provided.
18921 * linux-low.h (process_info_private): New member arch_private.
18922 (lwp_info): New member arch_private.
18923 (linux_target_ops): New members new_process, new_thread,
18924 prepare_to_resume.
18925 (ptid_of): New macro.
18926 * linux-x86-low.c: Include stddef.h, i386-low.h.
18927 (arch_process_info): New struct.
18928 (arch_lwp_info): New struct.
18929 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18930 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18931 (i386_dr_low_get_status): New function.
18932 (x86_insert_point, x86_remove_point): New functions.
18933 (x86_stopped_by_watchpoint): New function.
18934 (x86_stopped_data_address): New function.
18935 (x86_linux_new_process, x86_linux_new_thread): New functions.
18936 (x86_linux_prepare_to_resume): New function.
18937 (the_low_target): Add entries for insert_point, remove_point,
18938 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18939 prepare_to_resume.
18940 * server.c (debug_hw_points): New global.
18941 (monitor_show_help): Document set debug-hw-points.
18942 (handle_query): Process "set debug-hw-points".
18943 * server.h (debug_hw_points): Declare.
18944 (paddress): Declare.
18945 * utils.c (NUMCELLS, CELLSIZE): New macros.
18946 (get_sell, xsnprintf, paddress): New functions.
18947 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18948 remove_point, stopped_by_watchpoint, stopped_data_address.
18949 * win32-i386-low.c: Include i386-low.h.
18950 (debug_reg_state): Replaces dr.
18951 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18952 (i386_dr_low_get_status): New function.
18953 (i386_insert_point, i386_remove_point): New functions.
18954 (i386_stopped_by_watchpoint): New function.
18955 (i386_stopped_data_address): New function.
18956 (i386_initial_stuff): Update.
18957 (get_thread_context,set_thread_context,i386_thread_added): Update.
18958 (the_low_target): Add entries for insert_point,
18959 remove_point, stopped_by_watchpoint, stopped_data_address.
18960 * win32-low.c (win32_insert_watchpoint): New function.
18961 (win32_remove_watchpoint): New function.
18962 (win32_stopped_by_watchpoint): New function.
18963 (win32_stopped_data_address): New function.
18964 (win32_target_ops): Add entries for insert_watchpoint,
18965 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18966 * win32-low.h (win32_target_ops): New members insert_point,
18967 remove_point, stopped_by_watchpoint, stopped_data_address.
18968
d993e290
PA
189692009-06-25 Pedro Alves <pedro@codesourcery.com>
18970
18971 * server.c (process_serial_event): Re-return unsupported, not
18972 error, if the type isn't recognized. Re-allow supporting only
18973 insert or remove packets. Also call require_running for
18974 breakpoints. Add missing break statement to default case. Tidy.
18975 * target.h (struct target_ops): Rename insert_watchpoint to
18976 insert_point, and remove_watchpoint to remove_point.
18977
18978 * linux-low.h (struct linux_target_ops): Likewise.
18979 * linux-low.c (linux_insert_watchpoint): Rename to ...
18980 (linux_insert_point): ... this. Adjust.
18981 (linux_remove_watchpoint): Rename to ...
18982 (linux_remove_point): ... this. Adjust.
18983 (linux_target_ops): Adjust.
18984 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18985 (cris_insert_point): ... this.
18986 (cris_remove_watchpoint): Rename to ...
18987 (cris_remove_point): ... this.
18988 (the_low_target): Adjust.
18989
0f54c268
PM
189902009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18991
18992 * server.c (handle_v_kill): Pass signal_pid to
18993 kill_inferior if multi_process is zero.
18994
c6314022
AR
189952009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18996
18997 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18998 * target.h (target_ops): Comment for *_watchpoint to make it clear
18999 the functions can get types '0' and '1'.
19000
4463ce24
AR
190012009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19002
19003 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19004 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19005 * regcache.c (get_regcache): Likewise.
19006 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19007 * win32-low.c (child_fetch_inferior_registers): Remove check for
19008 regno 0.
19009
cf8fd78b
PA
190102009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19011 Pedro Alves <pedro@codesourcery.com>
19012
19013 * target.h (struct target_ops) <supports_multi_process>: New
19014 callback.
19015 (target_supports_multi_process): New.
19016 * server.c (handle_query): Even if GDB reports support, only
19017 enable multi-process if the target also supports it. Report
19018 multi-process support only if the target backend supports it.
19019 * linux-low.c (linux_supports_multi_process): New function.
19020 (linux_target_ops): Install it as target_supports_multi_process
19021 callback.
19022
47c0c975
DE
190232009-05-24 Doug Evans <dje@google.com>
19024
e09875d4
DE
19025 Global renaming of find_thread_pid to find_thread_ptid.
19026 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19027 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19028 All callers updated.
19029
e27d73f6
DE
19030 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19031 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19032 directly.
19033
47c0c975
DE
19034 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19035 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19036 (linux_resume_one_lwp): Ditto.
19037
2acc282a
DE
190382009-05-23 Doug Evans <dje@google.com>
19039
19040 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19041 from struct inferior_list_entry * to struct lwp_info *.
19042 All callers updated.
19043
9f1036c1
DE
190442009-05-13 Doug Evans <dje@google.com>
19045
19046 * linux-x86-low.c: Don't include assert.h.
19047 (x86_siginfo_fixup): Use fatal, not assert.
19048 (x86_arch_setup): Fix comment.
19049
d0722149
DE
190502009-05-12 Doug Evans <dje@google.com>
19051
19052 Biarch support for i386/amd64 gdbserver.
19053 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19054 Add linux-x86-low.c.
19055 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19056 (linux-x86-low.o): Add.
19057 * linux-x86-64-low.c: Delete.
19058 * linux-i386-low.c: Delete.
19059 * linux-x86-low.c: New file.
19060 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19061 linux-x86-low.o.
19062 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19063 linux-x86-low.o.
19064 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19065 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19066 (linux_child_pid_to_exec_file): New function.
19067 (elf_64_header_p, elf_64_file_p): New functions.
19068 (siginfo_fixup): New function.
19069 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19070 give target a chance to convert layout.
19071 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19072 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19073
fdeb2a12
DE
190742009-05-07 Doug Evans <dje@google.com>
19075
19076 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19077 (regsets_store_inferior_registers): Ditto.
19078
a6dbe5df
PA
190792009-05-06 Pedro Alves <pedro@codesourcery.com>
19080
19081 PR server/10048
19082
19083 * linux-low.c (must_set_ptrace_flags): Delete.
19084 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19085 of the global.
19086 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19087 `lwp->must_set_ptrace_flags' instead.
ba42693b 19088 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19089 (linux_wait_1): ... not here.
19090
5091eb23
DE
190912009-04-30 Doug Evans <dje@google.com>
19092
9f767825
DE
19093 * inferiors.c (started_inferior_callback): New function.
19094 (attached_inferior_callback): New function.
19095 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19096 * server.c (print_started_pid, print_attached_pid): New functions.
19097 (detach_or_kill_for_exit): New function.
19098 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19099 * server.h (have_started_inferiors_p): Declare.
19100 (have_attached_inferiors_p): Declare.
19101
5091eb23
DE
19102 * inferiors.c (remove_process): Fix memory leak, free process.
19103 * linux-low.c (linux_remove_process): New function.
19104 (linux_kill): Call it instead of remove_process.
19105 (linux_detach, linux_wait_1): Ditto.
19106
155c8968
PA
191072009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19108
19109 * configure.srv: Add x86 Windows CE target.
19110
7fe519cb
UW
191112009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19112
19113 * inferiors.c (get_thread_process): Make global.
19114 * server.h (get_thread_process): Add prototype.
19115 * thread-db.c (find_one_thread): Use get_thread_process
19116 instead of current_process.
19117 (thread_db_get_tls_address): Do not crash if called when
19118 thread layer is not yet initialized.
19119
5472f405
UW
191202009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19121
19122 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19123 * spu-low.c (current_tid): Rename to ...
19124 (current_ptid): ... this.
19125 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19126 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19127 ptid_get_lwp (current_ptid) instead of current_tid.
19128 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19129 instead of current_tid. Use find_process_pid to verify pid
19130 argument is valid. Pass proper argument to remove_process.
19131 (spu_thread_alive): Compare current_ptid instead of current_tid.
19132 (spu_resume): Likewise.
19133
55ac2b99
PA
191342009-04-02 Pedro Alves <pedro@codesourcery.com>
19135
19136 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19137 variable.
19138
95954743
PA
191392009-04-01 Pedro Alves <pedro@codesourcery.com>
19140
19141 Implement the multiprocess extensions, and add linux multiprocess
19142 support.
19143
19144 * server.h (ULONGEST): Declare.
19145 (struct ptid, ptid_t): New.
19146 (minus_one_ptid, null_ptid): Declare.
19147 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19148 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19149 (struct inferior_list_entry): Change `id' type from unsigned from
19150 to ptid_t.
19151 (struct sym_cache, struct breakpoint, struct
19152 process_info_private): Forward declare.
19153 (struct process_info): Declare.
19154 (current_process): Declare.
19155 (all_processes): Declare.
19156 (initialize_inferiors): Declare.
19157 (add_thread): Adjust to use ptid_t.
19158 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19159 (add_process, remove_process, find_thread_pid): Declare.
19160 (find_inferior_id): Adjust to use ptid_t.
19161 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19162 (multi_process): Declare.
19163 (push_event): Adjust to use ptid_t.
19164 (read_ptid, write_ptid): Declare.
19165 (prepare_resume_reply): Adjust to use ptid_t.
19166 (clear_symbol_cache): Declare.
19167 * inferiors.c (all_processes): New.
19168 (null_ptid, minus_one_ptid): New.
19169 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19170 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19171 (add_thread): Change unsigned long to ptid. Remove gdb_id
19172 parameter. Adjust.
19173 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19174 (gdb_id_to_thread): Rename to ...
19175 (find_thread_pid): ... this. Change unsigned long to ptid.
19176 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19177 (loaded_dll, pull_pid_from_list): Adjust.
19178 (add_process, remove_process, find_process_pid)
19179 (get_thread_process, current_process, initialize_inferiors): New.
19180 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19181 (struct target_waitstatus) <related_pid>: Ditto.
19182 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19183 return type to int.
19184 (struct target_ops) <join>: Add `pid' argument.
19185 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19186 (struct target_ops) <wait>: Add `ptid' field. Change return type
19187 to ptid.
19188 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19189 (mywait): Add `ptid' argument. Change return type to ptid_t.
19190 (target_pid_to_str): Declare.
19191 * target.c (set_desired_inferior): Adjust to use ptids.
19192 (mywait): Add new `ptid' argument. Adjust.
19193 (target_pid_to_str): New.
19194 * mem-break.h (free_all_breakpoints): Declare.
19195 * mem-break.c (breakpoints): Delelete.
19196 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19197 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19198 to use per-process breakpoint list.
19199 (free_all_breakpoints): New.
19200 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19201 (symbol_cache, all_symbols_looked_up): Delete.
19202 (hexchars): New.
19203 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19204 read_ptid): New.
19205 (prepare_resume_reply): Change ptid argument's type from unsigned
19206 long to ptid_t. Adjust. Implement W;process and X;process.
19207 (free_sym_cache, clear_symbol_cache): New.
19208 (look_up_one_symbol): Adjust to per-process symbol cache. *
19209 * server.c (cont_thread, general_thread, step_thread): Change type
19210 to ptid_t.
19211 (attached): Delete.
19212 (multi_process): New.
19213 (last_ptid): Change type to ptid_t.
19214 (struct vstop_notif) <ptid>: Change type to ptid_t.
19215 (queue_stop_reply, push_event): Change `ptid' argument's type to
19216 ptid_t.
19217 (discard_queued_stop_replies): Add `pid' argument.
19218 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19219 changes. Don't reference the `attached' global.
19220 (attach_inferior): Adjust to mywait interface changes.
19221 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19222 features. Handle and report "multiprocess+". Handle
19223 "qAttached:PID".
19224 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19225 changes.
19226 (handle_v_kill): New.
19227 (handle_v_stopped): Adjust to use target_pid_to_str.
19228 (handle_v_requests): Allow multiple attaches and runs when
19229 multiprocess extensions are in effect. Handle "vKill".
19230 (myresume): Adjust to use ptids.
19231 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19232 (handle_status): Adjust to discard_queued_stop_replies interface
19233 change.
19234 (first_thread_of, kill_inferior_callback)
19235 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19236 (main): Call initialize_inferiors. Adjust to use ptids, killing
19237 and detaching from all inferiors. Handle multiprocess packet
19238 variants.
19239 * linux-low.h: Include gdb_proc_service.h.
19240 (struct process_info_private): New.
19241 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19242 <lwpid_of>: Use ptid_get_lwp.
19243 (get_lwp_thread): Adjust.
19244 (struct lwp_info): Add `dead' member.
19245 (find_lwp_pid): Declare.
19246 * linux-low.c (thread_db_active): Delete.
19247 (new_inferior): Adjust comment.
19248 (inferior_pid): Delete.
19249 (linux_add_process): New.
19250 (handle_extended_wait): Adjust.
19251 (add_lwp): Change unsigned long to ptid.
19252 (linux_create_inferior): Add process to processes table. Adjust
19253 to use ptids. Don't set new_inferior here.
19254 (linux_attach_lwp): Rename to ...
19255 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19256 it. Adjust to use ptids.
19257 (linux_attach_lwp): New.
19258 (linux_attach): Add process to processes table. Don't set
19259 new_inferior here.
19260 (struct counter): New.
19261 (second_thread_of_pid_p, last_thread_of_process_p): New.
19262 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19263 multiple processes.
19264 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19265 processes. Remove process from process table.
19266 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19267 to multiple processes.
19268 (any_thread_of): New.
19269 (linux_detach): Add `pid' argument, and handle it. Remove process
19270 from processes table.
19271 (linux_join): Add `pid' argument. Handle it.
19272 (linux_thread_alive): Change unsighed long argument to ptid_t.
19273 Consider dead lwps as not being alive.
19274 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19275 threads we're not interested in.
19276 (same_lwp, find_lwp_pid): New.
19277 (linux_wait_for_lwp): Change `pid' argument's type from int to
19278 ptid_t. Adjust.
19279 (linux_wait_for_event): Rename to ...
19280 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19281 from int to ptid_t. Adjust.
19282 (linux_wait_for_event): New.
19283 (linux_wait_1): Add `ptid' argument. Change return type to
19284 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19285 that exit from the process table.
19286 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19287 Adjust.
19288 (mark_lwp_dead): New.
19289 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19290 stopping all threads, mark its main lwp as dead.
19291 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19292 ptids.
19293 (fetch_register, usr_store_inferior_registers)
19294 (regsets_fetch_inferior_registers)
19295 (regsets_store_inferior_registers, linux_read_memory)
19296 (linux_write_memory): Inline `inferior_pid'.
19297 (linux_look_up_symbols): Adjust to use per-process
19298 `thread_db_active'.
19299 (linux_request_interrupt): Adjust to use ptids.
19300 (linux_read_auxv): Inline `inferior_pid'.
19301 (initialize_low): Don't reference thread_db_active.
19302 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19303 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19304 (ps_getpid): Return the pid of the current inferior.
19305 * thread-db.c (proc_handle, thread_agent): Delete.
19306 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19307 per-process data.
19308 (find_one_thread): Change argument type to ptid_t. Adjust to
19309 per-process data.
19310 (maybe_attach_thread): Adjust to per-process data and ptids.
19311 (thread_db_find_new_threads): Ditto.
19312 (thread_db_init): Ditto.
19313 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19314 processes table. Adjust to use ptids.
19315 (spu_kill, spu_detach): Adjust interface. Remove process from
19316 processes table.
19317 (spu_join, spu_thread_alive): Adjust interface.
19318 (spu_wait): Adjust interface. Remove process from processes
19319 table. Adjust to use ptids.
19320 * win32-low.c (current_inferior_tid): Delete.
19321 (current_inferior_ptid): New.
19322 (debug_event_ptid): New.
19323 (thread_rec): Take a ptid. Adjust.
19324 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19325 (child_delete_thread): Ditto.
19326 (do_initial_child_stuff): Add `attached' argument. Add process to
19327 processes table.
19328 (child_fetch_inferior_registers, child_store_inferior_registers):
19329 Adjust.
19330 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19331 (win32_attach): Pass 1 to do_initial_child_stuff.
19332 (win32_kill): Adjust interface. Remove process from processes
19333 table.
19334 (win32_detach): Ditto.
19335 (win32_join): Adjust interface.
19336 (win32_thread_alive): Take a ptid.
19337 (win32_resume): Adjust to use ptids.
19338 (get_child_debug_event): Ditto.
19339 (win32_wait): Adjust interface. Remove exiting process from
19340 processes table.
19341
bd99dc85
PA
193422009-04-01 Pedro Alves <pedro@codesourcery.com>
19343
19344 Non-stop mode support.
19345
19346 * server.h (non_stop): Declare.
19347 (gdb_client_data, handler_func): Declare.
19348 (delete_file_handler, add_file_handler, start_event_loop):
19349 Declare.
19350 (handle_serial_event, handle_target_event, push_event)
19351 (putpkt_notif): Declare.
19352 * target.h (enum resume_kind): New.
19353 (struct thread_resume): Replace `step' field by `kind' field.
19354 (TARGET_WNOHANG): Define.
19355 (struct target_ops) <wait>: Add `options' argument.
19356 <supports_non_stop, async, start_non_stop>: New fields.
19357 (target_supports_non_stop, target_async): New.
19358 (start_non_stop): Declare.
19359 (mywait): Add `options' argument.
19360 * target.c (mywait): Add `options' argument. Print child exit
19361 notifications here.
19362 (start_non_stop): New.
19363 * server.c (non_stop, own_buf, mem_buf): New globals.
19364 (struct vstop_notif): New.
19365 (notif_queue): New global.
19366 (queue_stop_reply, push_event, discard_queued_stop_replies)
19367 (send_next_stop_reply): New.
19368 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19369 interface changes.
19370 (attach_inferior): In non-stop mode, don't wait for the target
19371 here.
19372 (handle_general_set): Handle QNonStop.
19373 (handle_query): When handling qC, return the current general
19374 thread, instead of the first thread of the list.
19375 (handle_query): If the backend supports non-stop mode, include
19376 QNonStop+ in the qSupported query response.
19377 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19378 and non-stop mode.
19379 (handle_v_attach, handle_v_run): Handle non-stop mode.
19380 (handle_v_stopped): New.
19381 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19382 (myresume): Adjust to use resume_kind. Handle non-stop.
19383 (queue_stop_reply_callback): New.
19384 (handle_status): Handle non-stop mode.
19385 (main): Clear non_stop flag on reconnection. Use the event-loop.
19386 Refactor serial protocol handling from here ...
19387 (process_serial_event): ... to this new function. When GDB
19388 selects any thread, select one here. In non-stop mode, wait until
19389 GDB acks all pending events before exiting.
19390 (handle_serial_event, handle_target_event): New.
19391 * remote-utils.c (remote_open): Install remote_desc in the event
19392 loop.
19393 (remote_close): Remove remote_desc from the event loop.
19394 (putpkt_binary): Rename to...
19395 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19396 (putpkt_binary): New as wrapper around putpkt_binary_1.
19397 (putpkt_notif): New.
19398 (prepare_resume_reply): In non-stop mode, don't change the
19399 general_thread.
19400 * event-loop.c: New.
19401 * Makefile.in (OBJ): Add event-loop.o.
19402 (event-loop.o): New rule.
19403
19404 * linux-low.h (pid_of): Moved here.
19405 (lwpid_of): New.
19406 (get_lwp_thread): Use lwpid_of.
19407 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19408 * linux-low.c (pid_of): Delete.
19409 (inferior_pid): Use lwpid_of.
19410 (linux_event_pipe): New.
19411 (target_is_async_p): New.
19412 (delete_lwp): New.
19413 (handle_extended_wait): Use lwpid_of.
19414 (add_lwp): Don't set lwpid field.
19415 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19416 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19417 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19418 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19419 first. Adjust to linux_wait_for_event interface changes. Use
19420 lwpid_of.
19421 (linux_detach): Don't delete the main lwp here.
19422 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19423 (status_pending_p): Don't consider explicitly suspended lwps.
19424 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19425 pointer. Add OPTIONS argument. Change return type to int. Use
19426 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19427 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19428 pointer. Add status pointer argument. Return a pid instead of a
19429 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19430 changes. In non-stop mode, don't switch to a random thread.
19431 (linux_wait): Rename to...
19432 (linux_wait_1): ... this. Add target_options argument, and handle
19433 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19434 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19435 clean exit and signal exit code. Don't stop all threads in
19436 non-stop mode. In all-stop mode, only stop all threads when
19437 reporting a stop to GDB. Handle explicit thread stop requests.
19438 (async_file_flush, async_file_mark): New.
19439 (linux_wait): New.
19440 (send_sigstop): Use lwpid_of.
19441 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19442 interface changes. In non-stop mode, don't switch to a random
19443 thread.
19444 (linux_resume_one_lwp): Use lwpid_of.
19445 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19446 (linux_resume_one_thread): ... this. Handle resume_stop. In
19447 non-stop mode, don't look for pending flag in all threads.
19448 (resume_status_pending_p): Don't consider explicitly suspended
19449 threads.
19450 (my_waitpid): Reimplement. Emulate __WALL.
19451 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19452 Use lwpid_of.
19453 (sigchld_handler, linux_supports_non_stop, linux_async)
19454 (linux_start_non_stop): New.
19455 (linux_target_ops): Register linux_supports_non_stop, linux_async
19456 and linux_start_non_stop.
19457 (initialize_low): Install SIGCHLD handler.
19458 * thread-db.c (thread_db_create_event, find_one_thread)
19459 (thread_db_get_tls_address): Use lwpid_of.
19460 * win32-low.c (win32_detach): Adjust to use resume_kind.
19461 (win32_wait): Add `options' argument.
19462 * spu-low.c (spu_resume): Adjust to use resume_kind.
19463 (spu_wait): Add `options' argument.
19464
5b1c542e
PA
194652009-04-01 Pedro Alves <pedro@codesourcery.com>
19466
19467 Decouple target code from remote protocol.
19468
19469 * target.h (enum target_waitkind): New.
19470 (struct target_waitstatus): New.
19471 (struct target_ops) <wait>: Return an unsigned long. Take a
19472 target_waitstatus pointer instead of a char pointer.
19473 (mywait): Likewise.
19474 * target.c (mywait): Change prototype to return an unsigned long.
19475 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19476 * server.h (thread_from_wait, old_thread_from_wait): Delete
19477 declarations.
19478 (prepare_resume_reply): Change prototype to take a
19479 target_waitstatus.
19480 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19481 (last_status, last_ptid): New.
19482 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19483 pid instead of a signal.
19484 (attach_inferior): Remove "status" and "signal" parameters.
19485 Adjust.
19486 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19487 not as an address.
19488 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19489 (handle_v_requests, myresume): Remove "status" and "signal"
19490 parameters. Adjust.
19491 (handle_status): New.
19492 (main): Delete local `status'. Adjust.
19493 * remote-utils.c: Include target.h.
19494 (prepare_resume_reply): Change prototype to take a
19495 target_waitstatus. Adjust.
19496
19497 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19498 interface.
19499 * spu-low.c (spu_wait): Adjust.
19500 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19501 Delete.
19502 (win32_wait): Adjust.
19503
2bd7c093
PA
195042009-04-01 Pedro Alves <pedro@codesourcery.com>
19505
19506 * target.h (struct thread_resume): Delete leave_stopped member.
19507 (struct target_ops): Add a `n' argument to the `resume' callback.
19508 * server.c (start_inferior): Adjust.
19509 (handle_v_cont, myresume): Adjust.
19510 * linux-low.c (check_removed_breakpoint): Adjust to resume
19511 interface change, and to removed leave_stopped field.
19512 (resume_ptr): Delete.
19513 (struct thread_resume_array): New.
19514 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19515 resume interface change.
19516 (linux_continue_one_thread, linux_queue_one_thread)
19517 (resume_status_pending_p): Check if the resume field is NULL
19518 instead of checking the leave_stopped member.
19519 (linux_resume): Adjust to the target resume interface change.
19520 * spu-low.c (spu_resume): Adjust to the target resume interface
19521 change.
19522 * win32-low.c (win32_detach, win32_resume): Ditto.
19523
c35fafde
PA
195242009-04-01 Pedro Alves <pedro@codesourcery.com>
19525
19526 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19527 flag.
19528 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19529 pending.
19530 (linux_continue_one_thread): Only preserve the stepping flag if
19531 there's a pending breakpoint.
19532
0a59d50b
PA
195332009-03-31 Pedro Alves <pedro@codesourcery.com>
19534
19535 * server.c (main): After the inferior having exited, call
19536 remote_close before exiting gdbserver.
19537
f04c6d38
TJB
195382009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19539
19540 Fix size of FPSCR in Power 7 processors.
19541 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19542 (PPC_FEATURE_HAS_DFP): New #define.
19543 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19544 size of the FPSCR.
19545
78e5cee6
PA
195462009-03-23 Pedro Alves <pedro@codesourcery.com>
19547
19548 * server.c (handle_query) Whitespace and formatting.
19549
1b3f6016
PA
195502009-03-22 Pedro Alves <pedro@codesourcery.com>
19551
19552 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19553 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19554 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19555 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19556 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19557 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19558 Makefile.in, configure.ac: Fix whitespace throughout.
19559 * configure: Regenerate.
19560
a07b2135
PA
195612009-03-22 Pedro Alves <pedro@codesourcery.com>
19562
19563 * inferiors.c (find_inferior): Make it safe for the callback
19564 function to delete the currently iterated inferior.
19565
67cc2626
PA
195662009-03-22 Pedro Alves <pedro@codesourcery.com>
19567
19568 * Makefile.in (linuw_low_h): Move higher.
19569 (thread-db.o): Depend on $(linux_low_h).
19570
54a0b537
PA
195712009-03-17 Pedro Alves <pedro@codesourcery.com>
19572
19573 Rename "process" to "lwp" throughout.
19574
19575 * linux-low.c (all_processes): Rename to...
19576 (all_lwps): ... this.
19577 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19578 (add_process): Rename to ...
19579 (add_lwp): ... this. Adjust.
19580 (linux_create_inferior): Adjust.
19581 (linux_attach_lwp): Adjust.
19582 (linux_attach): Adjust.
19583 (linux_kill_one_process): Rename to ...
19584 (linux_kill_one_lwp): ... this. Adjust.
19585 (linux_kill): Adjust.
19586 (linux_detach_one_process): Rename to ...
19587 (linux_detach_one_lwp): ... this. Adjust.
19588 (linux_detach): Adjust.
19589 (check_removed_breakpoint): Adjust.
19590 (status_pending_p): Adjust.
19591 (linux_wait_for_process): Rename to ...
19592 (linux_wait_for_lwp): ... this. Adjust.
19593 (linux_wait_for_event): Adjust.
19594 (send_sigstop): Adjust.
19595 (wait_for_sigstop): Adjust.
19596 (stop_all_processes): Rename to ...
19597 (stop_all_lwps): ... this.
19598 (linux_resume_one_process): Rename to ...
19599 (linux_resume_one_lwp): ... this. Adjust.
19600 (linux_set_resume_request, linux_continue_one_thread)
19601 (linux_queue_one_thread, resume_status_pending_p)
19602 (usr_store_inferior_registers, regsets_store_inferior_registers)
19603 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19604 Adjust.
19605 * linux-low.h (get_process): Rename to ...
19606 (get_lwp): ... this. Adjust.
19607 (get_thread_process): Rename to ...
19608 (get_thread_lwp): ... this. Adjust.
19609 (get_process_thread): Rename to ...
19610 (get_lwp_thread): ... this. Adjust.
19611 (struct process_info): Rename to ...
19612 (struct lwp_info): ... this.
19613 (all_processes): Rename to ...
19614 (all_lwps): ... this.
19615 * proc-service.c (ps_lgetregs): Adjust.
19616 * thread-db.c (thread_db_create_event, find_one_thread)
19617 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19618
0b16c5cf
PA
196192009-03-14 Pedro Alves <pedro@codesourcery.com>
19620
19621 * server.c (handle_query): Handle "qAttached".
19622
32de4b9d
NS
196232009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19624
19625 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19626 GPLv3, update license URL.
19627
2aecd87f
DE
196282009-03-01 Doug Evans <dje@google.com>
19629
93efd302 19630 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19631 (server_h): Add gdb_signals.h.
19632 (signals.o): Update.
19633 * server.h (target_signal_from_host,target_signal_to_host_p)
19634 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19635
86b1f9c5
PM
196362009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19637
19638 * remote-utils.c (getpkt): Also generate remote-debug
19639 information if noack_mode is set.
19640
4aa995e1
PA
196412009-02-06 Pedro Alves <pedro@codesourcery.com>
19642
19643 * server.c (handle_query): Report qXfer:siginfo:read and
19644 qXfer:siginfo:write as supported and handle them.
19645 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19646 * linux-low.c (linux_xfer_siginfo): New.
19647 (linux_target_ops): Set it.
19648
62709adf
PA
196492009-01-26 Pedro Alves <pedro@codesourcery.com>
19650
19651 * server.c (gdbserver_usage): Mention --remote-debug.
19652 (main): Accept '--remote-debug' switch.
19653
aef93bd7
DE
196542009-01-18 Doug Evans <dje@google.com>
19655
19656 * regcache.c (new_register_cache): No need to check result of xcalloc.
19657 * server.c (handle_search_memory): Back out calls to xmalloc,
19658 result is checked and error is returned to user upon failure.
19659 (handle_query): Ditto. Add more checks for result of malloc.
19660 (handle_v_cont): Check result of malloc, report error back to
19661 user upon failure.
19662 (handle_v_run): Ditto. Call freeargv.
19663 * server.h (freeargv): Declare.
19664 * utils.c (freeargv): New fn.
19665
54363045
DE
196662009-01-15 Doug Evans <dje@google.com>
19667
f626972c
DE
19668 * gdbreplay.c (perror_with_name): Make arg const char *.
19669 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19670 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19671 * utils.c (perror_with_name): Make arg const char *.
54363045 19672
18aae699
PA
196732009-01-14 Pedro Alves <pedro@codesourcery.com>
19674
19675 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19676 when handling a EXIT_PROCESS_DEBUG_EVENT.
19677
ff703abe
JB
196782009-01-06 Joel Brobecker <brobecker@adacore.com>
19679
19680 * gdbreplay.c (gdbreplay_version): Update copyright year.
19681 * server.c (gdbserver_version): Likewise.
19682
f21cc1a2 196832009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19684
19685 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19686 (handle_extended_wait): Improve comment.
0e21c1ec 19687
bca929d3
DE
196882008-12-13 Doug Evans <dje@google.com>
19689
19690 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19691 * server.h (ATTR_MALLOC): New macro.
19692 (xmalloc,xcalloc,xstrdup): Declare.
19693 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19694 * inferiors.c: Ditto.
19695 * linux-low.c: Ditto.
19696 * mem-break.c: Ditto.
19697 * regcache.c: Ditto.
19698 * remote-utils.c: Ditto.
19699 * server.c: Ditto.
19700 * target.c: Ditto.
19701 * win32-low.c: Ditto.
19702
97438e3f
DE
197032008-12-12 Doug Evans <dje@google.com>
19704
896c7fbb
DE
19705 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19706 in debugging printf.
19707
97438e3f
DE
19708 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19709
e3b886f8
DE
197102008-12-09 Doug Evans <dje@google.com>
19711
19712 * linux-low.h (struct process_info): Delete member tid, unused.
19713 * thread-db.c (find_one_thread): Update.
19714 (maybe_attach_thread): Update.
19715
07e059b5
VP
197162008-12-02 Pedro Alves <pedro@codesourcery.com>
19717
889bf7c5
PA
19718 * target.h (struct target_ops): Add qxfer_osdata member.
19719 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19720 and dirent.h.
19721 (linux_qxfer_osdata): New functions.
19722 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19723 callback.
19724 * server.c (handle_query): Handle "qXfer:osdata:read:".
19725 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19726 (buffer_xml_printf): New functions.
19727 * server.h (struct buffer): New.
19728 (buffer_grow_str, buffer_grow_str0): New macros.
19729 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19730 (buffer_xml_printf): Declare.
07e059b5 19731
4cab47ab
DE
197322008-11-24 Doug Evans <dje@google.com>
19733
19734 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19735
f142445f
DJ
197362008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19737
19738 * server.c (handle_v_run): Always use the supplied argument list.
19739
d0107bb6 197402008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19741
d0107bb6
BW
19742 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19743 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19744
2c4ad781
TJB
197452008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19746
19747 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19748 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19749 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19750 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19751 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19752 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19753 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19754 XML target descriptions.
19755 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19756 when inferior is running on an ISA 2.05 or later processor. Add
19757 special case to return offset for full 64-bit slot of FPSCR when
19758 in 32-bits.
19759
dfb64f85
DJ
197602008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19761
19762 * Makefile.in (SFILES, clean): Added sparc64 files.
19763 (reg-sparc64.o, reg-sparc64.c): New.
19764 * configure.srv (sparc*-*-linux*): New configuration.
19765 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19766 syscall arguments for SPARC.
19767 (regsets_store_inferior_registers): Likewise.
19768 * linux-sparc-low.c: New file.
19769
66b6e1dd
DE
197702008-10-21 Doug Evans <dje@google.com>
19771
19772 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19773 (READLINE_DIR,READLINE_DEP): Delete.
19774 (INTERNAL_CFLAGS): Update.
19775 (LINTFLAGS): Update.
19776
9b710a42
PA
197772008-10-10 Pedro Alves <pedro@codesourcery.com>
19778
19779 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19780 whole argv from the last run, not just argv[0].
19781
5822d809
PA
197822008-09-08 Pedro Alves <pedro@codesourcery.com>
19783
19784 * regcache.c (new_register_cache): Return NULL if the register
19785 cache size isn't known yet.
19786 (free_register_cache): Avoid dereferencing a NULL regcache.
19787
74aac56f
DJ
197882008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19789
19790 * configure.srv: Merge MIPS and MIPS64.
19791
400b20f5
MR
197922008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19793
19794 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19795
677c5bb1
LM
197962008-08-18 Luis Machado <luisgpm@br.ibm.com>
19797
19798 * Makefile.in: Add required vsx dependencies.
19799
19800 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19801 Declare init_registers_powerpc_vsx32l.
19802 Declare init_registers_powerpc_vsx64l.
19803 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19804 (ppc_arch_setup): Check for VSX in hwcap.
19805 (ppc_fill_vsxregset): New function.
19806 (ppc_store_vsxregset): New function.
19807 Add new VSX entry in regset_info target_regsets.
19808
19809 * configure.srv: Add new VSX dependencies.
19810
a6f3e723
SL
198112008-08-12 Pedro Alves <pedro@codesourcery.com>
19812
19813 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19814 (remote_open): Set or clear transport_is_reliable.
19815 (putpkt_binary): Don't expect acks in noack mode.
19816 (getpkt): Don't send ack/nac in noack mode.
19817 * server.c (handle_general_set): Handle QStartNoAckMode.
19818 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19819 qSupported.
19820 (main): Reset noack_mode on every connection.
19821 * server.h (noack_mode): Declare.
19822
a417dc56
RW
198232008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19824
19825 * Makefile.in (GDBREPLAY_OBS): New variable.
19826 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19827
3221518c
UW
198282008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19829 Daniel Jacobowitz <dan@codesourcery.com>
19830
19831 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19832 (usr_store_inferior_registers): Likewise.
19833 (regsets_store_inferior_registers): Likewise.
19834
ec56be1b
PA
198352008-07-31 Rolf Jansen <rj@surtec.com>
19836 Pedro Alves <pedro@codesourcery.com>
19837
19838 * configure.ac: Check for memmem declaration.
19839 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19840 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19841 (disable_packet_qfThreadInfo): Unconditionally compile.
19842 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19843 * configure, config.in: Regenerate.
19844
2fe5e3ff
DE
198452008-07-28 Doug Kwan <dougkwan@google.com>
19846
19847 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19848 (linux_write_memory): Remove declaration of errno.
19849
836acd6d
UW
198502008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19851
19852 * linux-low.c (handle_extended_wait): Do not use "status"
19853 variable uninitialized.
19854
aeba519e
PA
198552008-07-07 Pedro Alves <pedro@codesourcery.com>
19856
19857 * server.c (handle_v_attach): Inhibit reporting dll changes.
19858
db42f210
PA
198592008-06-27 Pedro Alves <pedro@codesourcery.com>
19860
19861 * remote-utils.c (prepare_resume_reply): If requested, don't
19862 output "thread:TID" in the T stop reply.
19863
19864 * server.c (disable_packet_vCont, disable_packet_Tthread)
19865 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19866 (handle_query): If requested, disable support for qC, qfThreadInfo
19867 and qsThreadInfo.
19868 (handle_v_requests): If requested, disable support for vCont.
19869 (gdbserver_show_disableable): New.
19870 (main): Handle --disable-packet and --disable-packet=LIST.
19871
19872 * server.h (disable_packet_vCont, disable_packet_Tthread)
19873 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19874
8e4c5421
CD
198752008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19876
19877 * server.c (gdbserver_usage): Mention --version.
19878
6e23a804
DJ
198792008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19880
19881 * Makefile.in (gdbreplay.o): New rule.
19882
90aa6a40
JM
198832008-06-06 Joseph Myers <joseph@codesourcery.com>
19884
19885 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19886 message, not gdbserver.
19887
c16158bc 198882008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19889 Nathan Sidwell <nathan@codesourcery.com>
19890 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19891
19892 * acinclude.m4: Include ../../config/acx.m4.
19893 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19894 * configure, config.in: Regenerate.
19895 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19896 * server.c (gdbserver_version): Print PKGVERSION.
19897 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19898 (main): Adjust gdbserver_usage calls.
19899 * gdbreplay.c (version, host_name): Add declarations.
19900 (gdbreplay_version, gdbreplay_usage): New.
19901 (main): Accept --version and --help options.
19902
aeb75bf5
DJ
199032008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19904
19905 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19906 (arm_breakpoint_at): Handle Thumb.
19907 (the_low_target): Add comment.
19908
76b233dd
UW
199092008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19910
19911 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19912
08388c79
DE
199132008-05-09 Doug Evans <dje@google.com>
19914
a3c83fae
DE
19915 * server.h (decode_search_memory_packet): Declare.
19916 * remote-utils.c (decode_search_memory_packet): New fn.
19917 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19918 (handle_search_memory): New fn.
19919 (handle_query): Process qSearch:memory packets.
19920
bb9c3d36
UW
199212008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19922
19923 * regcache.c (registers_length): Remove.
19924 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19925 full register packet.
19926 * regcache.h (registers_length): Remove prototype.
19927 * server.h (PBUFSIZ): Define to 16384.
19928
7284e1be
UW
199292008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19930
19931 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19932 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19933 powerpc-64l.o, and powerpc-altivec64l.o.
19934 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19935 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19936 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19937 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19938 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19939 to srv_xmlfiles.
19940
19941 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19942 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19943 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19944 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19945 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19946 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19947 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19948 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19949 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19950 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19951 (clean): Update.
19952
19953 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19954 (init_registers_powerpc_32l): ... this new prototype.
19955 (init_registers_powerpc_32): Remove, replace by ...
19956 (init_registers_powerpc_altivec32l): ... this new prototype.
19957 (init_registers_powerpc_e500): Remove, replace by ...
19958 (init_registers_powerpc_e500l): ... this new prototype.
19959 (init_registers_ppc64): Remove, replace by ...
19960 (init_registers_powerpc_64l): ... this new prototype.
19961 (init_registers_powerpc_64): Remove, replace by ...
19962 (init_registers_powerpc_altivec64l): ... this new prototype.
19963 (ppc_num_regs): Set to 73.
19964 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19965 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19966 (ppc_cannot_store_register): Handle orig_r3 and trap.
19967 (ppc_arch_setup): Update init_registers_... calls.
19968 (ppc_fill_gregset): Handle orig_r3 and trap.
19969
19970 * inferiors.c (clear_inferiors): Reset current_inferior.
19971
fdc59709
PB
199722008-04-23 Paolo Bonzini <bonzini@gnu.org>
19973
889bf7c5
PA
19974 * acinclude.m4: Add override.m4.
19975 * configure: Regenerate.
fdc59709 19976
c9b2f845
UW
199772008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19978
19979 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19980 initial call to init_register_ppc64.
19981
550512b8
UW
199822008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19983
43aaf8b6
PA
19984 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19985 single powerpc*-*-linux* case.
550512b8
UW
19986 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19987
b6430ec3
UW
199882008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19989
19990 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19991 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19992 from reg_xmlfiles.
19993 * linux-ppc-low.c: Include <elf.h>.
19994 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19995 (ppc_hwcap): New global variable.
19996 (ppc_regmap): Remove __SPE__ #ifdef sections.
19997 (ppc_regmap_e500): New global variable.
19998 (ppc_cannot_store_register): Update __SPE__ special case.
19999 (ppc_get_hwcap): New function.
20000 (ppc_arch_setup): Use it to determine whether inferior supports
20001 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20002 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20003 Do not access registers if target does not support AltiVec.
20004 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20005 Do not access registers if target does not support SPE.
20006 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20007
52fa2412
UW
200082008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20009
20010 * linux-low.c (disabled_regsets, num_regsets): New.
20011 (use_regsets_p): Delete.
20012 (linux_wait_for_process): Clear disabled_regsets.
20013 (regsets_fetch_inferior_registers): Check and set it.
20014 (regsets_store_inferior_registers): Likewise.
20015 (linux_fetch_registers, linux_store_registers): Do not use
20016 use_regsets_p.
20017 (initialize_low): Allocate disabled_regsets.
20018
e28b3332
DJ
200192008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20020
20021 * Makefile.in (LIBOBJS): New.
20022 (OBS): Use LIBOBJS.
20023 (memmem.o): New rule.
20024 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20025 * configure: Regenerated.
20026
4536995d
UW
200272008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20028
20029 * server.c (handle_query): Never return "unsupported" for
20030 qXfer:features:read queries.
20031
221c031f
UW
200322008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20033
20034 * server.c (get_features_xml): Fix inverted condition.
20035 (handle_query): Always support qXfer:feature:read.
20036
ccd213ac
DJ
200372008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20038
20039 * server.c (wrapper_argv): New.
20040 (start_inferior): Handle wrapper_argv. If set, expect an extra
20041 trap.
20042 (gdbserver_usage): Document --wrapper.
20043 (main): Parse --wrapper.
20044
6fe305f7
UW
200452008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20046
20047 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20048 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20049 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20050 (ppc_set_pc): Likewise.
20051 (ppc_arch_setup): New function.
20052 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20053 of collect_register.
889bf7c5 20054 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20055
5b0a002e
UW
200562008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20057
20058 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20059 instead of linux-ppc64-low.o.
20060 * linux-ppc64-low.c: Remove file.
20061 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20062 (linux-ppc64-low.o): Remove rule.
20063
20064 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20065 (init_registers_powerpc_64): Likewise.
20066 (ppc_regmap): Conditionally define depending on __powerpc64__.
20067 (ppc_cannot_store_register): Do not special-case "fpscr" when
20068 compiled on __powerpc64__.
20069 (ppc_collect_ptrace_register): New function.
20070 (ppc_supply_ptrace_register): New function.
20071 (ppc_breakpoint): Change type to "unsigned int".
20072 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20073 (the_low_target): Conditionally provide initializers for the
889bf7c5 20074 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20075 collect_ptrace_register and supply_ptrace_register members.
20076
9b4b61c8
UW
200772008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20078
20079 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20080 * server.c (gdbserver_xmltarget): Define.
20081 (get_features_xml): Use it to replace "target.xml" and arch_string.
20082
20083 * configure.srv: Remove srv_xmltarget. Add XML files that were
20084 mentioned there to srv_xmlfiles instead. Remove conditional tests
20085 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20086 srv_xmlfiles and srv_regobj to include all possible choices.
20087 * configure.ac (srv_xmltarget): Remove.
20088 (srv_xmlfiles): Do not add "target.xml".
20089 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20090 checks for supplementary target information.
20091 * configure: Regenerate.
20092 * Makefile.in (XML_TARGET): Remove.
20093 (target.xml): Remove rule.
20094 (clean): Do not clean up target.xml.
20095 (.PRECIOUS): Do not mention target.xml.
20096
20097 * target.h (struct target_ops): Remove arch_string member.
20098 * linux-low.c (linux_arch_string): Remove.
20099 (linux_target_ops): Remove arch_string initializer.
20100 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20101 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20102 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20103 * spu-low.c (spu_arch_string): Remove.
20104 (spu_target_ops): Remove arch_string initializer.
20105 * win32-low.c (win32_arch_string): Remove.
20106 (win32_target_ops): Remove arch_string initializer.
20107 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20108 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20109 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20110
ee1a7ae4
UW
201112008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20112
20113 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20114 by collect_ptrace_register and supply_ptrace_register hooks.
20115 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20116 instead of checking for the_low_target.left_pad_xfer.
20117 (usr_store_inferior_registers): Use collect_ptrace_register callback
20118 instead of checking for the_low_target.left_pad_xfer.
20119
20120 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20121 (s390_supply_ptrace_register): Likewise.
20122 (s390_fill_gregset): Call s390_collect_ptrace_register.
20123 (the_low_target): Update.
20124
20125 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20126 (ppc_supply_ptrace_register): Likewise.
20127 (the_low_target): Update.
20128
20129 * linux-i386-low.c (the_low_target): Update.
20130 * linux-x86-64-low.c (the_low_target): Update.
20131
d61ddec4
UW
201322008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20133
20134 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20135 reg-s390.o and reg-s390x.o.
20136
20137 * linux-low.c (new_inferior): New global variable.
20138 (linux_create_inferior, linux_attach): Set it.
20139 (linux_wait_for_process): Call the_low_target.arch_setup after the
20140 target has stopped for the first time.
20141 (initialize_low): Do not call the_low_target.arch_setup.
20142
20143 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20144 (s390_set_pc): Likewise.
20145 (s390_arch_setup): New function.
20146 (the_low_target): Use s390_arch_setup as arch_setup routine.
20147
20148 * regcache.c (realloc_register_cache): New function.
20149 (set_register_cache): Call it for each existing regcache.
20150
d05b4ac3
UW
201512008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20152
20153 * server.h (init_registers): Remove prototype.
20154
20155 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20156 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20157 instead of init_registers ().
20158 * linux-arm-low.c (init_registers_arm): Add prototype.
20159 (init_registers_arm_with_iwmmxt): Likewise.
20160 (the_low_target): Add initializer for arch_setup field.
20161 * linux-cris-low.c (init_registers_cris): Add prototype.
20162 (the_low_target): Add initializer for arch_setup field.
20163 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20164 (the_low_target): Add initializer for arch_setup field.
20165 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20166 (the_low_target): Add initializer for arch_setup field.
20167 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20168 (the_low_target): Add initializer for arch_setup field.
20169 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20170 (the_low_target): Add initializer for arch_setup field.
20171 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20172 (the_low_target): Add initializer for arch_setup field.
20173 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20174 (init_registers_mips64_linux): Likewise.
20175 (the_low_target): Add initializer for arch_setup field.
20176 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20177 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20178 (the_low_target): Add initializer for arch_setup field.
20179 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20180 (init_registers_powerpc_64): Likewise.
20181 (the_low_target): Add initializer for arch_setup field.
20182 * linux-s390-low.c (init_registers_s390): Add prototype.
20183 (init_registers_s390x): Likewise.
20184 (the_low_target): Add initializer for arch_setup field.
20185 * linux-sh-low.c (init_registers_sh): Add prototype.
20186 (the_low_target): Add initializer for arch_setup field.
20187 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20188 (the_low_target): Add initializer for arch_setup field.
20189 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20190 (the_low_target): Add initializer for arch_setup field.
20191
20192 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20193 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20194 instead of init_registers ().
20195 * win32-arm-low.c (init_registers_arm): Add prototype.
20196 (the_low_target): Add initializer for arch_setup field.
20197 * win32-i386-low.c (init_registers_i386): Add prototype.
20198 (the_low_target): Add initializer for arch_setup field.
20199
20200 * spu-low.c (init_registers_spu): Add prototype.
20201 (initialize_low): Call initialie_registers_spu () instead of
20202 initialize_registers ().
20203
fd96d250
PA
202042008-02-19 Pedro Alves <pedro@codesourcery.com>
20205
20206 * server.c (handle_v_requests): When handling the vRun and vAttach
20207 packets, if already debugging a process, don't kill it. Return an
20208 error instead.
20209
d41b6bb4
DJ
202102008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20211
20212 * server.c (handle_query): Correct length check.
20213
5ac588cf
PA
202142008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20215
20216 * win32-low.c (do_initial_child_stuff): Add process handle
20217 parameter. Set current_process_handle and current_process_id from the
20218 parameters. Clear globals.
20219 (win32_create_inferior): Don't set current_process_handle and
20220 current_process_id here. Instead pass them on the call to
20221 do_initial_child_stuff.
20222 (win32_attach): Likewise.
20223 (win32_clear_inferiors): New.
20224 (win32_kill): Don't close the current process handle or the
20225 current thread handle here. Instead call win32_clear_inferiors.
20226 (win32_detach): Don't open a new handle to the process. Call
20227 win32_clear_inferiors.
20228 (win32_join): Don't rely on current_process_handle; open a new
20229 handle using the process id.
20230 (win32_wait): Call win32_clear_inferiors when the inferior process
20231 has exited.
20232
ecd7ecbc
DJ
202332008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20234
20235 * server.c (monitor_show_help): Add "exit".
20236
1525d545
MG
202372008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20238
ecd7ecbc 20239 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20240 (clean): Add reg-xtensa.c.
20241 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20242 * configure.srv (xtensa*-*-linux*) New target.
20243 * linux-xtensa-low.c: New.
20244 * xtensa-xtregs.c: New.
1525d545 20245
59a016f0
PA
202462008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20247
20248 * hostio.c: Don't include errno.h.
20249 (errno_to_fileio_errno): Move to hostio-errno.
20250 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20251 error number outputting to the target->hostio_last_error callback.
20252 (hostio_packet_error): Use FILEIO_EINVAL directly.
20253 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20254 calls to hostio_error.
20255 * hostio-errno.c: New.
20256 * server.h (hostio_last_error_from_errno): Declare.
20257 * target.h (target_ops): Add hostio_last_error member.
20258 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20259 as hostio_last_error handler.
889bf7c5 20260 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20261 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20262 (wince_hostio_last_error): New functions.
20263 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20264 as hostio_last_error handler.
20265 (win32_target_ops) [!_WIN32_WCE]: Register
20266 hostio_last_error_from_errno as hostio_last_error handler.
20267 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20268 (hostio-errno.o): New rule.
20269 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20270 * configure.srv (srv_hostio_err_objs): New variable. Default to
20271 hostio-errno.o.
20272 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20273 * configure: Regenerate.
20274
2d717e4f
DJ
202752008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20276
20277 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20278 (linux_kill, linux_detach): Clean up the process list.
20279 * remote-utils.c (remote_open): Improve port number parsing.
20280 (putpkt_binary, input_interrupt): Only send interrupts if the target
20281 is running.
20282 * server.c (extended_protocol): Make static.
20283 (attached): Define earlier.
20284 (exit_requested, response_needed, program_argv): New variables.
20285 (target_running): New.
20286 (start_inferior): Clear attached here.
20287 (attach_inferior): Set attached here.
20288 (require_running): Define.
20289 (handle_query): Use require_running and target_running. Implement
20290 "monitor exit".
20291 (handle_v_attach, handle_v_run): New.
20292 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20293 (gdbserver_usage): Update.
20294 (main): Redo argument parsing. Handle --debug and --multi. Handle
20295 --attach along with other options or after the port. Save
20296 program_argv. Support no initial program. Resynchronize
20297 communication with GDB after an error. Handle "monitor exit".
20298 Use require_running and target_running. Always allow the extended
20299 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20300 restart in extended mode.
20301 * README: Refer to the GDB manual. Update --attach usage.
20302
7407e2de
AS
203032007-12-20 Andreas Schwab <schwab@suse.de>
20304
20305 * linux-low.c (STACK_SIZE): Define.
20306 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20307 (linux_test_for_tracefork): Likewise.
20308
b65d95c5
DJ
203092007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20310
20311 * linux-low.c (linux_wait_for_event): Update messages. Do not
20312 reinsert auto-delete breakpoints.
20313 * mem-break.c (struct breakpoint): Change return type of handler to
20314 int.
20315 (set_breakpoint_at): Update handler type.
20316 (reinsert_breakpoint_handler): Return 1 instead of calling
20317 delete_breakpoint.
20318 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20319 setting a new one.
20320 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20321 * mem-break.h (set_breakpoint_at): Update handler type.
20322 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20323 * win32-low.c (auto_delete_breakpoint): New.
20324 (get_child_debug_event): Use it.
20325
4e799345
DJ
203262007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20327
20328 * configure.ac: Check for pread and pwrite.
20329 * hostio.c (handle_pread): Fall back to lseek and read.
20330 (handle_pwrite): Fall back to lseek and write.
20331 * config.in, configure: Regenerated.
20332
27524b67
DJ
203332007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20334
20335 * server.c (myresume): Add own_buf argument.
20336 (main): Update calls.
20337
a20d5e98
DJ
203382007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20339
20340 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20341 * remote-utils.c (remote_open): Do not call disable_async_io.
20342 (block_async_io): Delete.
20343 (unblock_async_io): Make static.
20344 (initialize_async_io): New.
20345 * server.c (handle_v_cont): Handle async I/O here.
20346 (myresume): Likewise. Move other common resume tasks here...
20347 (main): ... from here. Call initialize_async_io. Disable async
20348 I/O before the main loop.
20349 * server.h (initialize_async_io): Declare.
20350 (block_async_io, unblock_async_io): Delete prototypes.
20351 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20352
b79d787e
DJ
203532007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20354
20355 * remote-utils.c (readchar): Allow binary data in received messages.
20356
d97903b2
PA
203572007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20358
20359 * win32-low.c (attaching): New global.
20360 (win32_create_inferior): Clear the `attaching' global.
20361 (win32_attach): Set the `attaching' global.
20362 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20363 attaching. Only set a breakpoint at the entry point if not
20364 attaching.
20365
311de423
PA
203662007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20367
20368 * server.c (main): Don't report dll events on the initial
20369 connection on attaches.
20370
6c2d16d2
PA
203712007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20372
20373 * server.c (main): Relax numerical bases supported for the pid of
20374 the --attach command line argument.
20375
5ca906e6
PA
203762007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20377
20378 * win32-low.c (win32_attach): Call OpenProcess before
20379 DebugActiveProcess, not after. Add last error output to error
20380 call.
20381
9c6c8194
PA
203822007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20383
20384 * win32-low.c (win32_get_thread_context)
20385 (win32_set_thread_context): New functions.
20386 (thread_rec): Use win32_get_thread_context.
20387 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20388 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20389 field.
20390
4d5d1aaa
PA
203912007-12-03 Leo Zayas
20392 Pedro Alves <pedro_alves@portugalmail.pt>
20393
20394 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20395 global variables.
20396 (child_add_thread): Minor cleanup.
20397 (child_continue): Resume artificially suspended threads before
20398 calling ContinueDebugEvent.
20399 (suspend_one_thread): New.
20400 (fake_breakpoint_event): New.
20401 (get_child_debug_event): Change return type to int. Check here if
20402 gdb sent an interrupt request. If a soft interrupt was requested,
20403 fake a breakpoint event. Return 0 if there is no event to handle,
20404 and 1 otherwise.
20405 (win32_wait): Don't check here if gdb sent an interrupt request.
20406 Ensure there is a valid event to handle.
20407 (win32_request_interrupt): Add soft interruption method as last
20408 resort.
20409
c436e841
PA
204102007-12-03 Leo Zayas
20411 Pedro Alves <pedro_alves@portugalmail.pt>
20412
20413 * win32-low.h (win32_thread_info): Add descriptions to the
20414 structure members. Replace `suspend_count' counter by a
20415 `suspended' flag.
20416 * win32-low.c (thread_rec): Update condition of when to get the
20417 context from the inferior. Rely on ContextFlags being set if it
20418 has already been retrieved. Only suspend the inferior thread if
20419 we haven't already. Warn if that fails.
20420 (continue_one_thread): s/suspend_count/suspended/. Only call
20421 ResumeThread once. Warn if that fails.
20422
e7b5fa67
PA
204232007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20424
20425 * win32-low.c (win32_wait): Don't read from the inferior when it
20426 has already exited.
20427
a385171d
PA
204282007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20429
20430 * Makefile.in (win32_low_h): New variable.
20431 (win32-low.o): Add dependency on $(win32_low_h).
20432 (win32-arm-low.o, win32-i386-low.o): New rules.
20433
f80c84b3
DJ
204342007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20435
20436 * hostio.c: Correct copyright year.
20437
a6b151f1
DJ
204382007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20439
20440 * Makefile.in (OBS): Add hostio.o.
20441 (hostio.o): New rule.
20442 * server.h (handle_vFile): Declare.
20443 * hostio.c: New file.
20444 * server.c (handle_v_requests): Take packet_len and new_packet_len
20445 for binary packets. Call handle_vFile.
20446 (main): Update call to handle_v_requests.
20447
f9387fc3
DJ
204482007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20449
20450 * linux-low.c: Include <sched.h>.
20451
51c2684e
DJ
204522007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20453
20454 * linux-low.c (linux_tracefork_grandchild): New.
20455 (linux_tracefork_child): Use clone.
20456 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20457
75f83163
JB
204582007-10-31 Joel Brobecker <brobecker@adacore.com>
20459
20460 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20461
da5898ce
DJ
204622007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20463
20464 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20465
24a09b5f
DJ
204662007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20467
20468 * inferiors.c (change_inferior_id): Delete.
20469 (add_pid_to_list, pull_pid_from_list): New.
20470 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20471 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20472 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20473 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20474 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20475 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20476 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20477 (using_threads): Always set to 1.
20478 (handle_extended_wait): New.
20479 (add_process): Do not set TID.
20480 (linux_create_inferior): Set must_set_ptrace_flags.
20481 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20482 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20483 (linux_thread_alive): Rename TID argument to LWPID.
20484 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20485 (linux_wait_for_event): Do not use TID or check using_threads. Update
20486 call to dead_thread_notify. Call handle_extended_wait.
20487 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20488 (send_sigstop): Delete sigstop_sent.
20489 (wait_for_sigstop): Avoid TID.
20490 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20491 (linux_test_for_tracefork): New.
20492 (linux_lookup_signals): Use thread_db_active and
20493 linux_supports_tracefork_flag.
20494 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20495 * linux-low.h (get_process_thread): Avoid TID.
20496 (struct process_ifo): Move thread_known and tid to the end. Remove
20497 sigstop_sent.
20498 (linux_attach_lwp, thread_db_init): Update prototypes.
20499 * server.h (change_inferior_id): Delete prototype.
20500 (add_pid_to_list, pull_pid_from_list): New prototypes.
20501 * thread-db.c (thread_db_use_events): New.
20502 (find_first_thread): Rename to...
20503 (find_one_thread): ...this. Update callers and messages. Do not
20504 call fatal. Check thread_db_use_events. Do not call
20505 change_inferior_id or new_thread_notify.
20506 (maybe_attach_thread): Update. Do not call new_thread_notify.
20507 (thread_db_init): Set thread_db_use_events. Check use_events.
20508 * utils.c (fatal, warning): Correct message prefix.
20509
30ed0a8f
DJ
205102007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20511
20512 * Makefile.in (clean): Remove new files.
20513 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20514 (powerpc-64.o, powerpc-64.c): New rules.
20515 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20516 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20517 with SPE.
20518 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20519 SPE targets.
20520 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20521 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20522 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20523 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20524 (target_regsets): Add AltiVec and SPE register sets.
20525 * configure.ac: Check for AltiVec and SPE.
20526 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20527 (ppc_fill_vrregset, ppc_store_vrregset): New.
20528 (target_regsets): Add AltiVec register set.
20529 * configure: Regenerated.
20530
fd462a61
DJ
205312007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20532
20533 * linux-low.c (O_LARGEFILE): Define.
20534 (linux_read_memory): Use /proc/PID/mem.
20535 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20536 * configure, config.in: Regenerated.
20537
69f223ed
DJ
205382007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20539
20540 * linux-low.c (linux_wait_for_event): Do not pass signals while
20541 single-stepping.
20542
aec18585
PA
205432007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20544
20545 * win32-low.c (create_process): New.
20546 (win32_create_inferior): Use create_process instead of
20547 CreateProcess. If create_process failed retry appending an ".exe"
20548 suffix. Store the GetLastError result immediatelly after
20549 create_process calls and use it on the call to error.
20550
34d86ddd
PA
205512007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20552
20553 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20554
5a0e3bd0
JB
205552007-08-23 Joel Brobecker <brobecker@adacore.com>
20556
20557 * configure.ac: Switch license to GPLv3.
20558
f88c79e6
MS
205592007-08-01 Michael Snyder <msnyder@access-company.com>
20560
20561 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20562
6b3d9b83
PA
205632007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20564
20565 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20566 typedef.
20567 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20568 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20569 CloseToolhelp32Snapshot.
20570 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20571 CloseToolhelp32Snapshot.
20572
c588c53c
MS
205732007-07-27 Michael Snyder <michael.snyder@access-company.com>
20574
20575 * server.c (main): Check for inferior exit before main loop.
20576
aa0403d9
PA
205772007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20578
20579 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20580 instead of on tmp_desc.
20581
255e7678
DJ
205822007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20583 Daniel Jacobowitz <dan@codesourcery.com>
20584
20585 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20586 (add_thread): Minor cleanups.
20587 (clear_inferiors): Move lower in the file. Clear the DLL
20588 list.
20589 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20590 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20591 (xml_escape_text): New.
20592 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20593 for qSupported.
20594 (handle_v_cont): Report errors.
20595 (gdbserver_version): Update.
20596 (main): Correct size of own_buf. Do not report initial DLL events.
20597 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20598 (unloaded_dll, xml_escape_text): New.
20599 * win32-low.c (enum target_waitkind): Update comments.
20600 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20601 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20602 (win32_EnumProcessModules, win32_GetModuleInformation)
20603 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20604 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20605 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20606 (win32_Module32First, win32_Module32Next, load_toolhelp)
20607 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20608 (get_child_debug_event): Handle DLL events.
20609 (win32_wait): Likewise.
20610
0d37add9
DJ
206112007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20612
20613 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20614 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20615
45e2715e
PA
206162007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20617
20618 * win32-low.c (handle_output_debug_string): Ignore event if not
20619 waiting.
20620
c5674cf1
PA
206212007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20622
20623 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20624
2bbe3cc1
DJ
206252007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20626
20627 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20628
ae13219e
DJ
206292007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20630
20631 * inferiors.c (change_inferior_id): Add comment.
20632 * linux-low.c (check_removed_breakpoint): Add an early
20633 prototype. Improve debug output.
20634 (linux_attach): Doc update.
20635 (linux_detach_one_process, linux_detach): Clean up before releasing
20636 each process.
20637 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20638 * linux-low.h (struct process_info): Doc improvement.
20639 * mem-break.c (delete_all_breakpoints): New.
20640 * mem-break.h (delete_all_breakpoints): New prototype.
20641 * thread-db.c (find_first_thread): New.
20642 (thread_db_create_event): Call it instead of
20643 thread_db_find_new_threads. Clean up unused variables.
20644 (maybe_attach_thread): Remove first thread handling.
20645 (thread_db_find_new_threads): Use find_first_thread.
20646 (thread_db_get_tls_address): Likewise.
20647
4105de34
DJ
206482007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20649
20650 * thread-db.c (thread_db_find_new_threads): Add prototype.
20651 (thread_db_create_event): Check for the main thread before adding
20652 a new thread.
20653 (maybe_attach_thread): Only enable event reporting if TID == 0.
20654 (thread_db_get_tls_address): Check for new threads.
20655
2b876972
DJ
206562007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20657
20658 * linux-low.c (linux_create_inferior): Try execv before execvp.
20659 * spu-low.c (spu_create_inferior): Likewise.
20660
7a245884
DJ
206612007-06-13 Mike Frysinger <vapier@gentoo.org>
20662
20663 * linux-low.c (linux_create_inferior): Change execv to execvp.
20664 * spu-low.c (spu_create_inferior): Likewies.
20665
117ce543
DJ
206662007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20667
20668 * Makefile.in (clean): Clean new files instead of deleted ones.
20669 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20670 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20671 rules.
20672 * configure.srv: Specify XML files and new regformats for MIPS and
20673 MIPS64 GNU/Linux.
20674 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20675 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20676 an entry for the restart register.
20677 (mips_cannot_fetch_register, mips_cannot_store_register)
20678 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20679 register names to match the XML descriptions.
20680 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20681 restart register instead of $0.
20682
0e7f50da
UW
206832007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20684 Markus Deuling <deuling@de.ibm.com>
20685
20686 * remote-utils.c (decode_xfer_write): New function.
20687 * server.h (decode_xfer_write): Add prototype.
20688 * server.c (handle_query): Add PACKET_LEN argument. Support
20689 qXfer:spu:read and qXfer:spu:write packets.
20690 (main): Pass packet_len to handle_query.
20691 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20692 * target.h (target_ops): Add qxfer_spu.
20693
374c1d38
UW
206942007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20695
20696 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20697 accessing non-seekable spufs files.
20698
bb63802a
UW
206992007-05-16 Markus Deuling <deuling@de.ibm.com>
20700
889bf7c5 20701 * server.c (handle_query): Add reply for qC packet.
bb63802a 20702
7390519e
PA
207032007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20704 Leo Zayas <lerele@champenstudios@com>
20705
20706 * server.h (check_remote_input_interrupt_request): New function.
20707 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20708 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20709 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20710 (check_remote_input_interrupt_request): New function.
20711 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20712 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20713 winapi_GenerateConsoleCtrlEvent): New typedefs.
20714 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20715 to 250 ms.
20716 (win32_wait): Check for remote interrupt request
20717 with check_remote_input_interrupt_request.
20718 (win32_request_interrupt): New function.
20719 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20720
34b34921
PA
207212007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20722
20723 * win32-low.c (debug_registers_changed,
20724 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20725 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20726 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20727 (thread_rec): Get context using the low target.
20728 (child_add_thread): Call thread_added on the low target,
20729 which does the same thing.
20730 (regptr): Delete.
20731 (do_initial_child_stuff): Remove debug registers references.
20732 Set context using the low target. Resume threads after
20733 setting the contexts.
20734 (child_continue): Remove dead variable. Remove debug
20735 registers references.
20736 (child_fetch_inferior_registers): Go through the low target.
20737 (do_child_store_inferior_registers): Remove.
20738 (child_store_inferior_registers): Go through the low target.
20739 (win32_resume): Remove debug registers references.
20740 Set context using the low target.
20741 (handle_exception): Change return type to void. Don't record
20742 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20743 first chance exception.
889bf7c5 20744 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20745 goto loop. Always return after waiting for debug event.
20746 (win32_wait): Convert to switch statement. Handle spurious
20747 events.
20748
20749 * win32-i386-low.c (debug_registers_changed,
20750 debug_registers_used): New.
20751 (initial_stuff): Rename to ...
20752 (i386_initial_stuff): ... this. Clear debug registers
20753 state variables.
20754 (store_debug_registers): Delete.
20755 (i386_get_thread_context): New.
20756 (load_debug_registers): Delete.
20757 (i386_set_thread_context): New.
20758 (i386_thread_added): New.
20759 (single_step): Rename to ...
20760 (i386_single_step): ... this.
20761 (do_fetch_inferior_registers): Rename to ...
20762 (i386_fetch_inferior_register): ... this.
20763 (i386_store_inferior_register): New.
20764 (the_low_target): Adapt to new interface.
20765
20766 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20767 (arm_get_thread_context): New.
20768 (arm_set_thread_context): New.
20769 (regptr): New.
20770 (do_fetch_inferior_registers): Rename to ...
20771 (arm_fetch_inferior_register): ... this.
20772 (arm_store_inferior_register): New.
20773 (arm_wince_breakpoint): Reimplement as unsigned long.
20774 (arm_wince_breakpoint_len): Define.
20775 (the_low_target): Adapt to new interface.
20776
20777 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20778 load_debug_registers. Add get_thread_context, set_thread_context,
20779 thread_added and store_inferior_register. Rename
20780 fetch_inferior_registers to fetch_inferior_register.
20781 (regptr): Remove declaration.
20782
dd6953e1
PA
207832007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20784
20785 * linux-low.c (linux_detach): Change return type to int. Return 0.
20786 * spu-low.c (spu_detach): Likewise.
20787
444d6139
PA
207882007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20789
20790 * target.h (target_ops): Change return type of detach to int.
20791 Add join.
20792 (join_inferior): New.
20793 * server.c (main): Don't skip detach support on mingw32.
20794 If the inferior doesn't support detaching return error.
20795 Call join_inferior instead of using waitpid.
20796 * linux-low.c (linux_join): New.
20797 (linux_target_op): Add linux_join.
20798 * spu-low.c (spu_join): New.
20799 (spu_target_ops): Add spu_join.
20800 * win32-low.c (win32_detach): Adapt to new interface.
20801 Reopen current_process_handle before detaching. Issue a child
20802 resume before detaching.
20803 (win32_join): New.
20804 (win32_target_op): Add win32_join.
20805
1d5315fe
PA
208062007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20807
20808 * win32-low.c (win32-attach): Fix return value.
20809 * target.h (target_ops): Describe ATTACH return values.
20810
bf914831
PA
208112007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20812
20813 * win32-low.c (GETPROCADDRESS): Define.
20814 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20815 (winapi_DebugSetProcessKillOnExit): Likewise.
20816 (win32_create_inferior): Force usage of ansi CreateProcessA.
20817 (win32_attach): Use GETPROCADDRESS.
20818 (win32_detach): Likewise.
20819
f72f3e60
PA
208202007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20821
20822 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20823
ed50f18f
PA
208242007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20825
20826 * win32-low.c: Commit leftover changes from 2007-03-29.
20827
0c2ead7e
DJ
208282007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20829
20830 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20831 fields short instead of int. Add explicit padding.
20832 (i387_cache_to_fsave): Remove unnecessary casts.
20833 (i387_fsave_to_cache): Doc fix.
20834 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20835
73725ff3
DJ
208362007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20837
20838 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20839 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20840
d99f33d8
PA
208412007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20842
20843 * configure.srv (arm*-*-mingw32ce*): Move near the other
20844 arm targets.
20845
68070c10
PA
208462007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20847
2482afc6 20848 * configure.ac: Add errno checking.
68070c10
PA
20849 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20850 sys/file.h and malloc.h.
20851 (AC_CHECK_DECLS): Add perror.
20852 (srv_mingwce): Handle.
2482afc6 20853 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20854 win32-i386-low.o to srv_tgtobj.
20855 (i[34567]86-*-mingw*): Likewise.
20856 (arm*-*-mingw32ce*): Add case.
20857 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20858 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20859 [__MINGW32CE__] (strerror): New function.
20860 [__MINGW32CE__] (errno): Define to GetLastError.
20861 [__MINGW32CE__] (COUNTOF): New macro.
20862 (remote_open): Remove extra close call.
20863 * mem-break.c (delete_breakpoint_at): New function.
20864 * mem-break.h (delete_breakpoint_at): Declare.
20865 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20866 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20867 [USE_WIN32API] (read, write): Add char* casts.
20868 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20869 * server.h: Include wincecompat.h on Windows CE.
20870 [HAVE_ERRNO_H]: Check.
20871 (perror): Declare if not declared.
20872 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20873 (perror_with_name): Remove errno declaration.
20874 * wincecompat.h: New.
20875 * wincecompat.c: New.
20876 * win32-low.h: New.
20877 * win32-arm-low.c: New.
20878 * win32-i386-low.c: New.
20879 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20880 (OUTMSG2): Make it safe.
20881 (_T): New macro.
20882 (COUNTOF): New macro.
20883 (NUM_REGS): Get it from the low target.
20884 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20885 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20886 (thread_rec): Let low target handle debug registers.
20887 (child_add_thread): Likewise.
20888 (child_init_thread_list): Likewise.
20889 (continue_one_thread): Likewise.
20890 (regptr): New.
20891 (do_child_fetch_inferior_registers): Move to ...
20892 * win32-i386-low.c: ... here, and rename to ...
20893 (do_fetch_inferior_registers): ... this.
889bf7c5 20894 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20895 Go through the low target.
20896 (do_child_store_inferior_registers): Use regptr.
20897 (strwinerror): New function.
20898 (win32_create_inferior): Handle Windows CE.
20899 Use strwinerror instead of strerror on Windows error
20900 codes. Add program to the error output.
20901 Don't close the main thread handle on Windows CE.
20902 (win32_attach): Use coredll.dll on Windows CE.
20903 (win32_kill): Close current process and current
20904 thread handles.
20905 (win32_detach): Use coredll.dll on Windows CE.
20906 (win32_resume): Let low target handle debug registers, and
20907 step request.
20908 (handle_exception): Add/Remove initial breakpoint. Avoid
20909 non-existant WSTOPSIG on Windows CE.
20910 (win32_read_inferior_memory): Cast to remove warning.
20911 (win32_arch_string): Go through the low target.
20912 (initialize_low): Call set_breakpoint_data with the low
20913 target's breakpoint.
20914 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20915 FOP_REGNUM, mappings): Move to ...
20916 * win32-i386-low.c: ... here.
20917 * win32-low.c (win32_thread_info): Move to ...
20918 * win32-low.h: ... here.
20919 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20920 win32-arm-low.c and wincecompat.c.
20921 (all:): Add $EXEEXT.
20922 (install-only:): Likewise.
20923 (gdbserver:): Likewise.
20924 (gdbreplay:): Likewise.
20925 * config.in: Regenerate.
20926 * configure: Regenerate.
20927
41093d81
PA
209282007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20929
20930 * win32-low.c: Rename typedef thread_info to
20931 win32_thread_info throughout.
20932
544afa54
PA
209332007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20934
20935 * win32-i386-low.c: Rename to ...
20936 * win32-low.c: ... this.
20937 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20938 * Makefile.in: Likewise.
20939
bce7165d
PA
209402007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20941
20942 * remote-utils.c (monitor_output): Constify msg parameter.
20943 * server.h (monitor_output): Likewise.
20944 * win32-i386-low.c (handle_output_debug_string): New.
20945 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20946 handle_output_debug_string.
20947 (get_child_debug_event): Likewise.
20948
506c7aa0
DJ
209492007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20950
20951 * server.c (main): Correct strtoul check.
20952
42c81e2a
DJ
209532007-03-27 Jon Ringle <jon@ringle.org>
20954
20955 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20956
9453113a
DJ
209572007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20958
20959 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20960
64a69107
DJ
209612007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20962
20963 * terminal.h: Check HAVE_SGTTY_H.
20964
209652007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20966
20967 * remote-utils.c (remote_open): Print out the assigned port number.
20968
c74d0ad8
DJ
209692007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20970
20971 * remote-utils.c (monitor_output): New function.
20972 * server.c (debug_threads): Define here.
20973 (monitor_show_help): New function.
20974 (handle_query): Handle qRcmd.
20975 (main): Do not handle 'd' packet.
20976 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20977 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20978 of debug_threads.
20979
de7c3b4a
PA
209802007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20981
20982 * Makefile.in (EXEEXT): New.
20983 (clean): Use $(EXEEXT).
20984
ef57601b
PA
209852007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20986
20987 * target.h (target_ops): Rename send_signal to request_interrupt,
20988 and remove enum target_signal parameter.
20989 * linux-low.c (linux_request_interrupt): Rename from
20990 linux_send_signal, and always send SIGINT.
20991 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20992 and always send SIGINT.
20993 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20994 of send_signal.
20995 (input_interrupt): Likewise.
20996
820f2bda
PA
209972007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20998
20999 * server.c (get_features_xml): Check if target implemented
21000 arch_string.
21001 * win32-i386-low.c (win32_arch_string): New.
21002 (win32_target_ops): Add win32_arch_string as arch_string member.
21003
ab39bf24
UW
210042007-02-22 Markus Deuling <deuling@de.ibm.com>
21005
21006 * spu-low.c (spu_arch_string): New.
21007 (spu_target_ops): Add spu_arch_string.
21008
61ff6e04
DJ
210092007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21010
21011 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21012 * configure.ac: Do not check for terminal.h.
21013 * configure, config.in: Regenerated.
21014
fb1e4ffc
DJ
210152007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21016
21017 * Makefile.in (OBS): Add $(XML_BUILTIN).
21018 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21019 (clean): Update.
21020 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21021 (arm-with-iwmmxt.c): New.
21022 * config.in, configure: Regenerate.
21023 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21024 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21025 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21026 (arm*-*-linux*): Add iWMMXt and regset support.
21027 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21028 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21029 (arm_store_wmmxregset, target_regsets): New.
21030 * server.c (get_features_xml): Take annex argument. Check builtin
21031 XML documents.
21032 (handle_query): Handle multiple annexes.
21033
0f48aa01
DJ
210342007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21035
21036 * remote-utils.c [USE_WIN32API] (read, write): Define.
21037 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21038 write.
21039
23181151
DJ
210402007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21041
21042 * linux-i386-low.c (the_low_target): Set arch_string.
21043 * linux-x86-64-low.c (the_low_target): Likewise.
21044 * linux-low.c (linux_arch_string): New.
21045 (linux_target_ops): Add it.
21046 * linux-low.h (struct linux_target_ops): Add arch_string.
21047 * server.c (write_qxfer_response): Use const void * for DATA.
21048 (get_features_xml): New.
21049 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21050 * target.h (struct target_ops): Add arch_string method.
21051
9d606399
DJ
210522007-01-03 Denis Pilat <denis.pilat@st.com>
21053 Daniel Jacobowitz <dan@codesourcery.com>
21054
21055 * linux-low.c (linux_kill): Handle being called with no threads.
21056 * win32-i386-low.c (win32_kill): Likewise.
21057 (get_child_debug_event): Clear current_process_handle.
21058
210592006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21060 Daniel Jacobowitz <dan@codesourcery.com>
21061
21062 * remote-utils.c (remote_open): Check the type of specified
21063 serial port devices before opening them.
21064 * server.c (main): Kill the inferior if an error occurs during
21065 the first remote_open.
21066
a5e13d24
DJ
210672006-12-05 Markus Deuling <deuling@de.ibm.com>
21068
21069 * README: Update supported targets.
21070
186947f7
DJ
210712006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21072
21073 * Makefile.in (clean): Remove reg-mips64.c.
21074 (reg-mips64.c, reg-mips64.o): New rules.
21075 * configure.srv: Handle mips64. Include regset support for mips.
21076 * linux-mips-low.c (union mips_register): New.
21077 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21078 (mips_breakpoint, mips_breakpoint_at): Use int.
21079 (mips_collect_register, mips_supply_register)
21080 (mips_collect_register_32bit, mips_supply_register_32bit)
21081 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21082 (mips_store_fpregset, target_regsets): New.
21083 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21084
a13e2c95
UW
210852006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21086
21087 * configure.srv: Add target "spu*-*-*".
21088 * Makefile.in (clean): Remove reg-spu.c.
21089 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21090 * spu-low.c: New file.
21091
cb7283db
DJ
210922006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21093
21094 * configure.ac: Correct td_thr_tls_get_addr test.
21095 * configure: Regenerated.
21096
89be2091
DJ
210972006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21098
21099 * linux-low.c (linux_wait_for_event): Reformat. Use the
21100 pass_signals array.
21101 * remote-utils.c (decode_address_to_semicolon): New.
21102 * server.c (pass_signals, handle_general_set): New.
21103 (handle_query): Mention QPassSignals for qSupported.
21104 (main): Call handle_general_set.
21105 * server.h (pass_signals, decode_address_to_semicolon): New.
21106
000ef4f0
DJ
211072006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21108
21109 * server.c (handle_query): Correct error handling for read_auxv.
21110
b7149293
UW
211112005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21112
21113 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21114 and srv_linux_thread_db to yes.
21115 * linux-s390-low.c (s390_fill_gregset): New function.
21116 (target_regsets): Define data structure.
21117
dae5f5cf
DJ
211182006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21119
21120 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21121 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21122 * config.in, configure: Regenerated.
21123 * inferiors.c (gdb_id_to_thread): New function.
21124 (gdb_id_to_thread_id): Use it.
21125 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21126 * linux-low.h (struct process_info): Add th member.
21127 (thread_db_get_tls_address): New prototype.
21128 * remote-utils.c (decode_address): Make non-static.
21129 * server.c (handle_query): Handle qGetTLSAddr.
21130 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21131 * target.h (struct target_ops): Add get_tls_address.
21132 * thread-db.c (maybe_attach_thread): Save the thread handle.
21133 (thread_db_get_tls_address): New.
21134
32ca6d61
DJ
211352006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21136
21137 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21138 (linux_resume_one_process): Take a siginfo_t *. Update all
21139 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21140 (struct pending_signals): Add a siginfo_t.
21141 (linux_wait_for_process): Always set last_status.
21142 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21143 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21144 * linux-low.h (struct process_info): Add last_status.
21145
5ffff7c1
DJ
211462006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21147
21148 * remote-utils.c (try_rle): New function.
21149 (putpkt_binary): Use it.
21150
8695c747
DJ
211512006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21152
21153 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21154 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21155 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21156 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21157 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21158 point registers.
21159
290fadea
RS
211602006-08-08 Richard Sandiford <richard@codesourcery.com>
21161
21162 * server.c (terminal_fd): New variable.
21163 (old_foreground_pgrp): Likewise.
21164 (restore_old_foreground_pgrp): New function.
21165 (start_inferior): Record the terminal file descriptor in terminal_fd
21166 and its original foreground group in old_foreground_pgrp. Register
21167 restore_old_foreground_pgrp with atexit().
21168
9f2e1e63
DJ
211692006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21170
21171 * server.c (handle_query): Correct qPart to qXfer.
21172
b80864fb
DJ
211732006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21174
21175 * configure.ac: Check for more headers which are missing on
21176 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21177 * configure.srv: Add Cygwin and mingw32.
21178 * remote-utils.c: Don't include headers unconditionally which
21179 are missing on mingw32. Include <winsock.h> for mingw32.
21180 (remote_open): Adjust for mingw32 support. Flush
21181 standard error after writing to it.
21182 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21183 (unblock_async_io, enable_async_io, disable_async_io)
21184 (readchar, getpkt): Update for Winsock support.
21185 (prepare_resume_reply): Expect a protocol signal number.
21186 * server.c: Disable <sys/wait.h> on mingw32.
21187 (start_inferior): Adjust for mingw32 support. Flush
21188 standard error after writing to it.
21189 (attach_inferior): Likewise. Use protocol signal
21190 numbers.
21191 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21192 and names.
21193 * win32-i386-low.c: New file.
21194 * Makefile.in (XM_CLIBS): Set.
21195 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21196 (win32-i386-low.o): New dependency rule.
21197 * linux-low.c (linux_wait): Use target signal numbers.
21198 * target.h (struct target_ops): Doc fix.
21199 * server.h (target_signal_to_name): New prototype.
21200 * gdbreplay.c: Don't include headers unconditionally which
21201 are missing on mingw32. Include <winsock.h> for mingw32.
21202 (remote_close, remote_open): Adjust for Winsock support.
21203 * configure, config.in: Regenerated.
21204
0876f84a
DJ
212052006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21206
21207 * server.c (decode_xfer_read, write_qxfer_response): New.
21208 (handle_query): Take a packet length argument. Handle
21209 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21210 the qSupported response.
21211 (main): Update call to handle_query.
21212
01f9e8fa
DJ
212132006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21214
21215 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21216 (putpkt_binary): Renamed from putpkt and adjusted for binary
21217 data.
21218 (putpkt): New wrapper for putpkt_binary.
21219 (readchar): Don't mask off the high bit.
21220 (decode_X_packet): New function.
21221 * server.c (main): Call putpkt_binary if a handler sets the packet
21222 length. Save the length of the incoming packet. Handle 'X'.
21223 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21224
be2a5f71
DJ
212252006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21226
21227 * server.c (handle_query): Handle qSupported.
21228
ea025f5f
DJ
212292006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21230
21231 * remote-utils.c (all_symbols_looked_up): New variable.
21232 (look_up_one_symbol): Check it.
21233 * server.h (look_up_one_symbol): New declaration.
21234 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21235
9308fc88
DJ
212362006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21237
21238 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21239 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21240 (PTRACE_GET_THREAD_AREA): Define.
21241 (ps_get_thread_area): New function.
21242
52fb6437
NS
212432006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21244
21245 * configure.srv (m68k*-*-uclinux*): New target.
21246 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21247 (linux_resume_one_process): Remove extraneous cast.
21248 (linux_read_offsets): New.
21249 (linux_target_op): Add linux_read_offsets on mmuless systems.
21250 * server.c (handle_query): Add qOffsets logic.
21251 * target.h (struct target_ops): Add read_offsets.
21252
21b0f40c
DJ
212532006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21254
21255 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21256 (PTRACE_GET_THREAD_AREA): Define.
21257 (ps_get_thread_area): New function.
21258 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21259 (linux-x86-64-low.o): Update.
21260
0050a760
DJ
212612006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21262
21263 * configure.ac: Remove checks for prfpregset_t.
21264 * gdb_proc_service.h: New file.
21265 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21266 new "gdb_proc_service.h".
21267 * proc-service.c: Likewise.
21268 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21269 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21270 * Makefile.in (gdb_proc_service_h): Updated.
21271 * configure, config.in: Regenerated.
21272
b92a518e
DJ
212732006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21274
21275 * remote-utils.c (prepare_resume_reply): Move declaration
21276 of gdb_id_from_wait to the top of the block.
21277
545587ee
DJ
212782006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21279
21280 * linux-low.c (regsets_store_inferior_registers): Read the regset
21281 from the target before filling it.
21282
9db87ebd
DJ
212832006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21284
21285 * server.c (attach_inferior): Return SIGTRAP for a successful
21286 attach.
21287
dd24457d
DJ
212882006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21289
21290 * Makefile.in (OBS): Add version.o.
21291 (STAGESTUFF): Delete.
21292 (version.o): Add dependencies.
21293 (version.c): Replace rule.
21294 (clean): Remove version.c.
21295 * server.c (gdbserver_version): New.
21296 (gdbserver_usage): Use printf.
21297 (main): Handle --version and --help.
21298 * server.h (version, host_name): Add declarations.
21299
6f0f660e
EZ
213002005-12-23 Eli Zaretskii <eliz@gnu.org>
21301
889bf7c5
PA
21302 * linux-arm-low.c:
21303 * linux-arm-low.c:
21304 * inferiors.c:
21305 * i387-fp.h:
21306 * i387-fp.c:
21307 * gdbreplay.c:
21308 * regcache.c:
21309 * proc-service.c:
21310 * mem-break.h:
21311 * mem-break.c:
21312 * linux-x86-64-low.c:
21313 * linux-sh-low.c:
21314 * linux-s390-low.c:
21315 * linux-ppc64-low.c:
21316 * linux-ppc-low.c:
21317 * linux-mips-low.c:
21318 * linux-m68k-low.c:
21319 * linux-m32r-low.c:
21320 * linux-low.h:
21321 * linux-low.c:
21322 * linux-ia64-low.c:
21323 * linux-i386-low.c:
21324 * linux-crisv32-low.c:
21325 * thread-db.c:
21326 * terminal.h:
21327 * target.h:
21328 * target.c:
21329 * server.h:
21330 * server.c:
21331 * remote-utils.c:
21332 * regcache.h:
21333 * utils.c:
21334 * Makefile.in:
21335 * configure.ac:
6f0f660e
EZ
21336 * gdbserver.1: Add (C) after Copyright. Update the FSF
21337 address.
21338
9d1fb177
DJ
213392005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21340
21341 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21342 (arm_breakpoint_at): Recognize both breakpoints.
21343 (the_low_target): Use the correct breakpoint instruction.
21344
011a70c2
DJ
213452005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21346
21347 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21348 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21349 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21350 (the_low_target): Update.
21351
7fb85e41
AS
213522005-10-25 Andreas Schwab <schwab@suse.de>
21353
21354 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21355
21356 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21357 (ia64_num_regs): Reduce to 462.
21358
3db0444b
DJ
213592005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21360
21361 * acinclude.m4: Correct quoting.
21362 * aclocal.m4: Regenerated.
21363
21364 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21365 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21366 (thread_db_init): Call thread_db_err_str.
21367 * configure.ac: Check for TD_VERSION.
21368 * config.in, configure: Regenerated.
21369
bee0189a
DJ
213702005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21371
21372 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21373
e9d25b98
DJ
213742005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21375
21376 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21377 is not available. Define HAVE_PTRACE_GETREGS if it is.
21378 * config.in, configure: Regenerated.
21379 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21380 * linux-i386-low.c, linux-m68k-low.c: Update to use
21381 HAVE_PTRACE_GETREGS.
21382 * linux-low.c (regsets_fetch_inferior_registers)
21383 (regsets_store_inferior_registers): Only return 0 if we processed
21384 GENERAL_REGS.
21385 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21386 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21387
a06660f7
DJ
213882005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21389
21390 * inferiors.c (struct thread_info): Add gdb_id.
21391 (add_thread): Add gdb_id argument.
21392 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21393 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21394 calls to add_thread.
21395 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21396 * server.c (handle_query): Use thread_to_gdb_id.
21397 (handle_v_cont, main): Use gdb_id_to_thread_id.
21398 * server.h (add_thread): Update prototype.
21399 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21400 prototypes.
21401
5a1f5858
DJ
214022005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21403
21404 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21405 left-padded registers.
21406 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21407 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21408
e122f1f5
SE
214092005-07-01 Steve Ellcey <sje@cup.hp.com>
21410
21411 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21412 * configure: Regenerate.
21413 * config.in: Regenerate.
21414 * server.h (NEED_DECLARATION_STRERROR):
21415 Replace with !HAVE_DECL_STRERROR.
21416
d592fa2f
DJ
214172005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21418
21419 * linux-low.c (linux_wait, linux_send_signal): Don't test
21420 an unsigned long variable for > 0 if it could be MAX_ULONG.
21421 * server.c (myresume): Likewise.
21422 * target.c (set_desired_inferior): Likewise.
21423
ccbd4912
MK
214242005-06-13 Mark Kettenis <kettenis@gnu.org>
21425
21426 * configure.ac: Simplify and improve check for socklen_t.
21427 * configure, config.in: Regenerate.
21428
f450004a
DJ
214292005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21430
21431 * acconfig.h: Remove.
21432 * configure.ac: Add a test for socklen_t. Use three-argument
21433 AC_DEFINE throughout.
21434 * config.in: Regenerated using autoheader 2.59.
21435 * configure: Regenerated.
21436
21437 * gdbreplay.c (socklen_t): Provide a default.
21438 (remote_open): Use socklen_t.
21439 * remote-utils.c (socklen_t): Provide a default.
21440 (remote_open): Use socklen_t.
21441 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21442 unsigned char.
21443
21444 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21445 char for buffers.
21446 * linux-low.c (linux_read_memory, linux_write_memory)
21447 (linux_read_auxv): Likewise.
21448 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21449 (check_mem_write): Likewise.
21450 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21451 Likewise.
21452 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21453 (registers_from_string, register_data): Likewise.
21454 * server.c (handle_query, main): Likewise.
21455 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21456 (decode_M_packet): Likewise.
21457 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21458 * target.h (struct target_ops): Update read_memory, write_memory,
21459 and read_auxv.
21460 (read_inferior_memory, write_inferior_memory): Update.
21461 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21462 to unsigned char *.
21463 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21464 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21465 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21466 linux-s390-low.c, linux-sh-low.c: Update for changes in
21467 read_inferior_memory and the_low_target->breakpoint.
21468
eee84df1
DJ
214692005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21470
21471 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21472 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21473 * configure.srv: Add powerpc64-*-linux*.
21474 * linux-ppc64-low.c: New file.
21475
45b134e5
OF
214762005-05-23 Orjan Friberg <orjanf@axis.com>
21477
21478 * linux-cris-low.c: New file with support for CRIS.
21479 * linux-crisv32-low.c: Ditto for CRISv32.
21480 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21481 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21482 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21483 reg-crisv32.o, and reg-crisv32.c to make rules.
21484 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21485 recognized targets.
21486
48d93c75
UW
214872005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21488
21489 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21490 of sizeof (PTRACE_XFER_TYPE).
21491 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21492
e013ee27
OF
214932005-05-12 Orjan Friberg <orjanf@axis.com>
21494
889bf7c5 21495 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21496 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21497 pointers for hardware watchpoint support.
21498 * linux-low.h (struct linux_target_ops): Ditto.
21499 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21500 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21501 to linux_target_ops.
21502 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21503 reply packet.
21504 * server.c (main): Recognize 'Z' and 'z' packets.
21505
b0ded00b
UW
215062005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21507
21508 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21509 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21510 (the_low_target): Add new members.
21511
8643e2ad
DJ
215122005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21513
21514 * proc-service.c (ps_lgetregs): Search all_processes instead of
21515 all_threads.
21516
fc620387
DJ
215172005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21518
21519 * server.c (start_inferior): Change return type to int.
21520 (attach_inferior): Change sigptr to int *.
21521 (handle_v_cont, handle_v_requests): Change signal to int *.
21522 (main): Change signal to int.
21523
215242005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21525
21526 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21527 * configure.srv: Add m32r*-*-linux*.
21528 * linux-m32r-low.c: New file.
21529
e0e76420
DJ
215302005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21531
21532 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21533
a1928bad
DJ
215342005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21535
21536 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21537 Take unsigned long arguments for PIDs.
21538 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21539 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21540 (wait_for_sigstop, linux_resume_one_process)
21541 (regsets_fetch_inferior_registers, linux_send_signal)
21542 (linux_read_auxv): Likewise. Update the types of variables holding
21543 PIDs. Update format string specifiers.
21544 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21545 * remote-utils.c (prepare_resume_reply): Likewise.
21546 * server.c (cont_thread, general_thread, step_thread)
21547 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21548 unsigned long.
21549 (handle_query): Update format specifiers.
21550 (handle_v_cont, main): Use strtoul for thread IDs.
21551 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21552 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21553 (general_thread, step_thread, thread_from_wait)
21554 (old_thread_from_wait): Update.
21555 * target.h (struct thread_resume): Use unsigned long for THREAD.
21556 (struct target_ops): Use unsigned long for arguments to attach and
21557 thread_alive.
21558
dcdb98d2
DJ
215592005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21560
21561 * acinclude.m4: Include bfd/bfd.m4 directly.
21562 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21563 <agriffis@toolchain.org>.
21564 * aclocal.m4, configure: Regenerated.
21565
bec39cab
AC
215662005-01-07 Andrew Cagney <cagney@gnu.org>
21567
21568 * configure.ac: Rename configure.in, require autoconf 2.59.
21569 * configure: Re-generate.
21570
434c4c77
DJ
215712004-12-08 Daniel Jacobowitz <dan@debian.org>
21572
21573 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21574 LIBS when finished.
21575 * aclocal.m4: Regenerated.
21576 * configure: Regenerated.
21577
db1d3e1b
AS
215782004-11-21 Andreas Schwab <schwab@suse.de>
21579
21580 * linux-m68k-low.c (m68k_num_gregs): Define.
21581 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21582 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21583 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21584 (m68k_breakpoint_at): New. Add to the_low_target.
21585
21586 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21587 srv_linux_thread_db to yes.
21588
43360365
JB
215892004-10-20 Joel Brobecker <brobecker@gnat.com>
21590
21591 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21592 (ARCH_SET_FS): Likewise.
21593 (ARCH_GET_FS): Likewise.
21594 (ARCH_GET_GS): Likewise.
21595
fd500816
DJ
215962004-10-16 Daniel Jacobowitz <dan@debian.org>
21597
21598 * linux-i386-low.c (ps_get_thread_area): New.
21599 * linux-x86-64-low.c (ps_get_thread_area): New.
21600 * linux-low.c: Include <sys/syscall.h>.
21601 (linux_kill_one_process): Don't kill the first thread here.
21602 (linux_kill): Kill the first thread here.
21603 (kill_lwp): New function.
21604 (send_sigstop, linux_send_signal): Use it.
21605 * proc-service.c: Clean up #ifdefs.
21606 (fpregset_info): Delete.
21607 (ps_lgetregs): Update and enable implementation.
21608 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21609 implementations.
21610 * remote-utils.c (struct sym_cache, symbol_cache): New.
21611 (input_interrupt): Print a clearer message.
21612 (async_io_enabled): New variable.
21613 (enable_async_io, disable_async_io): Use it. Update comments.
21614 (look_up_one_symbol): Use the symbol cache.
21615 * thread-db.c (thread_db_look_up_symbols): New function.
21616 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21617
f6de3c42
DJ
216182004-10-16 Daniel Jacobowitz <dan@debian.org>
21619
21620 * configure.in: Test for -rdynamic.
21621 * configure: Regenerated.
21622 * Makefile (INTERNAL_LDFLAGS): New.
21623 (gdbserver, gdbreplay): Use it.
21624
2c0fc042
AC
216252004-09-02 Andrew Cagney <cagney@gnu.org>
21626
21627 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21628
075b3282
DJ
216292004-03-23 Daniel Jacobowitz <drow@mvista.com>
21630
21631 * linux-low.c (linux_wait): Clear all_processes list also.
21632
fa6a77dc
DJ
216332004-03-12 Daniel Jacobowitz <drow@mvista.com>
21634
21635 * linux-low.c: Include <errno.h>. Remove extern declaration of
21636 errno.
21637
6d782a97
DJ
216382004-03-12 Daniel Jacobowitz <drow@mvista.com>
21639
21640 * gdbreplay.c, server.h, utils.c: Update copyright years.
21641
3a7fb99b
DJ
216422004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21643
21644 * server.c (main): Print child status or termination signal from
21645 variable 'signal', not 'sig'.
21646
c3e735a6
DJ
216472004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21648
21649 * linux-low.c (linux_read_memory): Change return type to
21650 int. Check for and return error from ptrace().
21651 * target.c (read_inferior_memory): Change return type to int. Pass
21652 back return status from the_target->read_memory().
21653 * target.h (struct target_ops): Adapt *read_memory() prototype.
21654 Update comment.
21655 (read_inferior_memory): Adapt prototype.
21656 * server.c (main): Return an error packet if
21657 read_inferior_memory() returns an error.
21658
a59d1c82
DJ
216592004-03-04 Daniel Jacobowitz <drow@mvista.com>
21660
21661 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21662 Unify with other clean targets.
21663
dc3f8883
DJ
216642004-02-29 Daniel Jacobowitz <drow@mvista.com>
21665
21666 * server.c (handle_v_cont): Call set_desired_inferior.
21667
89a208da
DJ
216682004-02-29 Daniel Jacobowitz <drow@mvista.com>
21669
21670 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21671
62ea82f5
DJ
216722004-02-29 Daniel Jacobowitz <drow@mvista.com>
21673
21674 * linux-low.c (linux_wait): Unblock async I/O.
21675 (linux_resume): Block and enable async I/O.
21676 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21677 * server.h (block_async_io, unblock_async_io): Add prototypes.
21678
6910d122
DJ
216792004-02-29 Daniel Jacobowitz <drow@mvista.com>
21680
21681 * remote-utils.c (remote_open): Print a status notice after
21682 opening a TCP port.
21683 * server.c (attach_inferior): Print a status notice after
21684 attaching.
21685
216862004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21687
21688 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21689
c89dc5d4
DJ
216902004-02-26 Daniel Jacobowitz <drow@mvista.com>
21691
21692 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21693 error packet.
21694 * server.c, target.h: Update copyright years.
21695
4b8dad4a
RM
216962004-02-25 Roland McGrath <roland@redhat.com>
21697
21698 * target.h (struct target_ops): New member `read_auxv'.
21699 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21700 * linux-low.c (linux_read_auxv): New function.
21701 (linux_target_ops): Initialize `read_auxv' member to that.
21702
d7446758
JB
217032004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21704
21705 Committed by Jim Blandy <jimb@redhat.com>.
21706
21707 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21708 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21709 instead of GPR_SIZE to distiguish s390 and s390x targets.
21710
5544ad89
DJ
217112004-01-31 Daniel Jacobowitz <drow@mvista.com>
21712
21713 * linux-low.c: Update copyright year.
21714 (check_removed_breakpoint): Clear pending_is_breakpoint.
21715 (linux_set_resume_request, linux_queue_one_thread)
21716 (resume_status_pending_p): New functions.
21717 (linux_continue_one_thread): Use process->resume.
21718 (linux_resume): Only resume threads if there are no pending events.
21719 * linux-low.h (struct process_info): Add resume request
21720 pointer.
21721
2a68b70e
DJ
217222004-01-30 Daniel Jacobowitz <drow@mvista.com>
21723
21724 * regcache.c (new_register_cache): Clear the allocated register
21725 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21726
64386c31
DJ
217272003-10-13 Daniel Jacobowitz <drow@mvista.com>
21728
21729 * linux-low.c (linux_resume): Take a struct thread_resume *
21730 argument.
21731 (linux_wait): Update call.
21732 (resume_ptr): New static variable.
21733 (linux_continue_one_thread): Renamed from
21734 linux_continue_one_process. Use resume_ptr.
21735 (linux_resume): Use linux_continue_one_thread.
21736 * server.c (handle_v_cont, handle_v_requests): New functions.
21737 (myresume): New function.
21738 (main): Handle 'v' case.
21739 * target.h (struct thread_resume): New type.
21740 (struct target_ops): Change argument of "resume" to struct
21741 thread_resume *.
21742 (myresume): Delete macro.
21743
c938e9b0
L
217442003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21745
21746 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21747 (uninstall): Support DESTDIR.
21748
7f313d07
BC
21749Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21750
21751 * configure.srv: Add xscale*linux copy of arm*linux entry.
21752
3b2fc2ea
DJ
217532003-07-24 Daniel Jacobowitz <drow@mvista.com>
21754
21755 * linux-arm-low.c (arm_reinsert_addr): New function.
21756 (the_low_target): Add arm_reinsert_addr.
21757
1c0a559e
MK
217582003-07-08 Mark Kettenis <kettenis@gnu.org>
21759
21760 * mem-break.c: Remove whitespace at end of file.
21761
43d5792c
DJ
217622003-06-28 Daniel Jacobowitz <drow@mvista.com>
21763
21764 * configure.in: Check whether we need to prototype strerror.
21765 * server.h: Optionally prototype strerror.
21766 * gdbreplay.c (perror_with_name): Use strerror.
21767 * linux-low.c (linux_attach_lwp): Use strerror.
21768 * utils.c (perror_with_name): Use strerror.
21769 * config.in, configure: Regenerated.
21770
c8a86edf
DJ
217712003-06-28 Daniel Jacobowitz <drow@mvista.com>
21772
21773 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21774 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21775
73d37363
DJ
217762003-06-20 Daniel Jacobowitz <drow@mvista.com>
21777
21778 * Makefile.in (SFILES): Update.
21779 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21780 low-sun3.c: Remove files.
21781
6ad8ae5c
DJ
217822003-06-17 Daniel Jacobowitz <drow@mvista.com>
21783
21784 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21785 (linux_detach_one_process, linux_detach): New functions.
21786 (linux_target_ops): Add linux_detach.
21787 * server.c (main): Handle 'D' packet.
21788 * target.h (struct target_ops): Add "detach" member.
21789 (detach_inferior): Define.
21790
1581182a
MK
217912003-06-13 Mark Kettenis <kettenis@gnu.org>
21792
21793 From Kelley Cook <kelleycook@wideopenwest.com>:
21794 * configure.srv: Accept i[34567]86 variants.
21795
e5379b03
DJ
217962003-06-05 Daniel Jacobowitz <drow@mvista.com>
21797
21798 * linux-low.c (linux_wait_for_event): Correct comment typos.
21799 (linux_resume_one_process): Call check_removed_breakpoint.
21800 (linux_send_signal): New function.
21801 (linux_target_ops): Add linux_send_signal.
21802 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21803 of kill.
21804 * target.h (struct target_ops): Add send_signal.
21805
2ff29de4
JB
218062003-05-29 Jim Blandy <jimb@redhat.com>
21807
21808 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21809 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21810 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21811 away part of the register's value.
21812
254787d4
DJ
218132003-03-26 Daniel Jacobowitz <drow@mvista.com>
21814
21815 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21816 (linux_wait_for_event, linux_init_signals): Likewise.
21817
94e10508
DJ
218182003-03-17 Daniel Jacobowitz <drow@mvista.com>
21819
21820 * configure.in: Check for stdlib.h.
21821 * configure: Regenerated.
21822 * config.in: Regenerated.
21823
4c0711e0
DJ
218242003-01-04 Andreas Schwab <schwab@suse.de>
21825
21826 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21827
ef66e766
AC
218282003-01-02 Andrew Cagney <ac131313@redhat.com>
21829
21830 * Makefile.in: Remove obsolete code.
21831
a1358604
DJ
218322002-11-20 Daniel Jacobowitz <drow@mvista.com>
21833
21834 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21835 defined(PT_FPR0_HI).
21836
23ce3b1c
DJ
218372002-11-17 Stuart Hughes <seh@zee2.com>
21838
21839 * linux-arm-low.c (arm_num_regs): Increase.
21840 (arm_regmap): Include status register.
21841
218422002-11-17 Daniel Jacobowitz <drow@mvista.com>
21843
21844 * linux-low.c (register_addr): Remove incorrect -1 check.
21845
a9fa9f7d
DJ
218462002-08-29 Daniel Jacobowitz <drow@mvista.com>
21847
21848 * linux-low.c (linux_create_inferior): Call setpgid. Return
21849 the new PID.
21850 (unstopped_p, linux_signal_pid): Remove.
21851 (linux_target_ops): Remove linux_signal_pid.
21852 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21853 global instead of target method.
21854 * target.h (struct target_ops): Remove signal_pid. Update comment
21855 for create_inferior.
21856 * server.c (signal_pid): New variable.
21857 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21858 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21859 (attach_inferior): Set signal_pid.
21860
17574093
DJ
218612002-08-23 Daniel Jacobowitz <drow@mvista.com>
21862
21863 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21864
218652002-08-20 Jim Blandy <jimb@redhat.com>
21866
21867 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21868 default for this.
21869
218702002-08-01 Andrew Cagney <cagney@redhat.com>
21871
21872 * Makefile.in: Make chill references obsolete.
21873
218742002-07-24 Kevin Buettner <kevinb@redhat.com>
21875
21876 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21877 * configure: Regenerate.
21878 * config.in: Regenerate.
21879
218802002-07-09 David O'Brien <obrien@FreeBSD.org>
21881
21882 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21883 (perror_with_name, remote_close, remote_open, expect, play): Static.
21884
218852002-07-04 Michal Ludvig <mludvig@suse.cz>
21886
4b8dad4a 21887 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21888 byte offsets instead of an array of indexes.
21889 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21890
218912002-06-13 Daniel Jacobowitz <drow@mvista.com>
21892
21893 * regcache.c: Add comment.
21894
218952002-06-11 Daniel Jacobowitz <drow@mvista.com>
21896
21897 * thread-db.c: New file.
21898 * proc-service.c: New file.
21899 * acinclude.m4: New file.
21900 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21901 proc-service.o, and thread-db.o.
21902 (linux-low.o): Add USE_THREAD_DB.
21903 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21904 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21905 * aclocal.m4: Regenerated.
21906 * config.in: Regenerated.
21907 * configure: Regenerated.
21908 * configure.in: Check for proc_service.h, sys/procfs.h,
21909 thread_db.h, and linux/elf.h headrs.
21910 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21911 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21912 Check for -lthread_db and thread support.
21913 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21914 PowerPC, and SuperH.
21915 * i387-fp.c: Constify arguments.
21916 * i387-fp.h: Likewise.
21917 * inferiors.c: (struct thread_info): Renamed from
21918 `struct inferior_info'. Remove PID member. Use generic inferior
21919 list header. All uses updated.
21920 (inferiors, signal_pid): Removed.
21921 (all_threads): New variable.
21922 (get_thread): Define.
21923 (add_inferior_to_list): New function.
21924 (for_each_inferior): New function.
21925 (change_inferior_id): New function.
21926 (add_inferior): Removed.
21927 (remove_inferior): New function.
21928 (add_thread): New function.
21929 (free_one_thread): New function.
21930 (remove_thread): New function.
21931 (clear_inferiors): Use for_each_inferior and free_one_thread.
21932 (find_inferior): New function.
21933 (find_inferior_id): New function.
21934 (inferior_target_data): Update argument type.
21935 (set_inferior_target_data): Likewise.
21936 (inferior_regcache_data): Likewise.
21937 (set_inferior_regcache_data): Likewise.
21938 * linux-low.c (linux_bp_reinsert): Remove.
21939 (all_processes, stopping_threads, using_thrads)
21940 (struct pending_signals, debug_threads, pid_of): New.
21941 (inferior_pid): Replace with macro.
21942 (struct inferior_linux_data): Remove.
21943 (get_stop_pc, add_process): New functions.
21944 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21945 Use add_process and add_thread.
21946 (linux_attach_lwp): New function, based on old linux_attach. Use
21947 add_process and add_thread. Set stop_expected for new threads.
21948 (linux_attach): New function.
21949 (linux_kill_one_process): New function.
21950 (linux_kill): Kill all LWPs.
21951 (linux_thread_alive): Use find_inferior_id.
21952 (check_removed_breakpoints, status_pending_p): New functions.
21953 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21954 Update. Use WNOHANG. Wait for cloned processes also. Update process
21955 struct for the found process.
21956 (linux_wait_for_event): New function.
21957 (linux_wait): Use it. Support LWPs.
21958 (send_sigstop, wait_for_sigstop, stop_all_processes)
21959 (linux_resume_one_process, linux_continue_one_process): New functions.
21960 (linux_resume): Support LWPs.
21961 (REGISTER_RAW_SIZE): Remove.
21962 (fetch_register): Use register_size instead. Call supply_register.
21963 (usr_store_inferior_registers): Likewise. Call collect_register.
21964 Fix recursive case.
21965 (regsets_fetch_inferior_registers): Improve error message.
21966 (regsets_store_inferior_registers): Add debugging.
21967 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21968 (unstopped_p, linux_signal_pid): New functions.
21969 (linux_target_ops): Add linux_signal_pid.
21970 (linux_init_signals): New function.
21971 (initialize_low): Call it. Initialize using_threads.
21972 * regcache.c (inferior_regcache_data): Add valid
21973 flag.
21974 (get_regcache): Fetch registers lazily. Add fetch argument
21975 and update all callers.
21976 (regcache_invalidate_one, regcache_invalidate): New
21977 functions.
21978 (new_register_cache): Renamed from create_register_cache.
21979 Return the new regcache.
21980 (free_register_cache): Change argument to a void *.
21981 (registers_to_string, registers_from_string): Call get_regcache
21982 with fetch flag set.
21983 (register_data): Make static. Pass fetch flag to get_regcache.
21984 (supply_register): Call get_regcache with fetch flag clear.
21985 (collect_register): Call get_regcache with fetch flag set.
21986 (collect_register_as_string): New function.
21987 * regcache.h: Update.
21988 * remote-utils.c (putpkt): Flush after debug output and use
21989 stderr.
21990 Handle input interrupts while waiting for an ACK.
21991 (input_interrupt): Use signal_pid method.
21992 (getpkt): Flush after debug output and use stderr.
21993 (outreg): Use collect_register_as_string.
21994 (new_thread_notify, dead_thread_notify): New functions.
21995 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21996 and general_thread.
21997 (look_up_one_symbol): Flush after debug output.
21998 * server.c (step_thread, server_waiting): New variables.
21999 (start_inferior): Don't use signal_pid. Update call to mywait.
22000 (attach_inferior): Update call to mywait.
22001 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22002 (main): Don't fetch/store registers explicitly. Use
22003 set_desired_inferior. Support proposed ``Hs'' packet. Update
22004 calls to mywait.
22005 * server.h: Update.
22006 (struct inferior_list, struct_inferior_list_entry): New.
22007 * target.c (set_desired_inferior): New.
22008 (write_inferior_memory): Constify.
22009 (mywait): New function.
22010 * target.h: Update.
22011 (struct target_ops): New signal_pid method.
22012 (mywait): Removed macro, added prototype.
22013
22014 * linux-low.h (regset_func): Removed.
22015 (regset_fill_func, regset_store_func): New.
22016 (enum regset_type): New.
22017 (struct regset_info): Add type field. Use new operation types.
22018 (struct linux_target_ops): stop_pc renamed to get_pc.
22019 Add decr_pc_after_break and breakpoint_at.
22020 (get_process, get_thread_proess, get_process_thread)
22021 (strut process_info, all_processes, linux_attach_lwp)
22022 (thread_db_init): New.
22023
22024 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22025 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22026 (the_low_target): Add new members.
22027 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22028 (i386_store_fpxregset): Constify.
22029 (target_regsets): Add new kind identifier.
22030 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22031 (i386_set_pc): Add debugging.
22032 (i386_breakpoint_at): New function.
22033 (the_low_target): Add new members.
22034 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22035 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22036 (mips_breakpoint_at): New.
22037 (the_low_target): Add new members.
22038 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22039 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22040 (the_low_target): Add new members.
22041 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22042 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22043 (the_low_target): Add new members.
22044 * linux-x86-64-low.c (target_regsets): Add new kind
22045 identifier.
22046
220472002-05-15 Daniel Jacobowitz <drow@mvista.com>
22048
22049 From Martin Pool <mbp@samba.org>:
22050 * server.c (gdbserver_usage): New function.
22051 (main): Call it.
22052
220532002-05-14 Daniel Jacobowitz <drow@mvista.com>
22054
22055 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22056 stop_at -> stop_pc.
22057
220582002-05-04 Andrew Cagney <ac131313@redhat.com>
22059
22060 * Makefile.in: Remove obsolete code.
22061
220622002-04-24 Michal Ludvig <mludvig@suse.cz>
22063
22064 * linux-low.c (regsets_fetch_inferior_registers),
22065 (regsets_store_inferior_registers): Removed cast to int from
22066 ptrace() calls.
22067 * regcache.h: Added declaration of struct inferior_info.
22068
220692002-04-20 Daniel Jacobowitz <drow@mvista.com>
22070
22071 * inferiors.c (struct inferior_info): Add regcache_data.
22072 (add_inferior): Call create_register_cache.
22073 (clear_inferiors): Call free_register_cache.
22074 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22075 * regcache.c (struct inferior_regcache_data): New.
22076 (registers): Remove.
22077 (get_regcache): New function.
22078 (create_register_cache, free_register_cache): New functions.
22079 (set_register_cache): Don't initialize the register cache here.
22080 (registers_to_string, registers_from_string, register_data): Call
22081 get_regcache.
22082 * regcache.h: Add prototypes.
22083 * server.h: Likewise.
22084
220852002-04-20 Daniel Jacobowitz <drow@mvista.com>
22086
22087 * mem-break.c: New file.
22088 * mem-break.h: New file.
22089 * Makefile.in: Add mem-break.o rule; update server.h
22090 dependencies.
22091 * inferiors.c (struct inferior_info): Add target_data
22092 member.
22093 (clear_inferiors): Free target_data member if set.
22094 (inferior_target_data, set_inferior_target_data): New functions.
22095 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22096 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22097 * linux-low.c (linux_bp_reinsert): New variable.
22098 (struct inferior_linux_data): New.
22099 (linux_create_inferior): Use set_inferior_target_data.
22100 (linux_attach): Likewise. Call add_inferior.
22101 (linux_wait_for_one_inferior): New function.
22102 (linux_wait): Call it.
22103 (linux_write_memory): Add const.
22104 (initialize_low): Call set_breakpoint_data.
22105 * linux-low.h (struct linux_target_ops): Add breakpoint
22106 handling members.
22107 * server.c (attach_inferior): Remove extra add_inferior
22108 call.
22109 * server.h: Include mem-break.h. Update inferior.c
22110 prototypes.
22111 * target.c (read_inferior_memory)
22112 (write_inferior_memory): New functions.
22113 * target.h (read_inferior_memory)
22114 (write_inferior_memory): Change macros to prototypes.
22115 (struct target_ops): Update comments. Add const to write_memory
22116 definition.
22117
221182002-04-11 Daniel Jacobowitz <drow@mvista.com>
22119
22120 * linux-low.c (usr_store_inferior_registers): Support
22121 registers which are allowed to fail to store.
22122 * linux-low.h (linux_target_ops): Likewise.
22123 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22124 (ppc_cannot_store_register): FPSCR may not be storable.
22125
221262002-04-09 Daniel Jacobowitz <drow@mvista.com>
22127
22128 * server.h: Include <string.h> if HAVE_STRING_H.
22129 * ChangeLog: Correct paths in last ChangeLog entry.
22130
221312002-04-09 Daniel Jacobowitz <drow@mvista.com>
22132
22133 * linux-low.h: Remove obsolete prototypes.
22134 (struct linux_target_ops): New.
22135 (extern the_low_target): New.
22136 * linux-low.c (num_regs, regmap): Remove declarations.
22137 (register_addr): Use the_low_target explicitly.
22138 (fetch_register): Likewise.
22139 (usr_fetch_inferior_registers): Likewise.
22140 (usr_store_inferior_registers): Likewise.
22141 * linux-arm-low.c (num_regs): Remove.
22142 (arm_num_regs): Define.
22143 (arm_regmap): Renamed from regmap, made static.
22144 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22145 made static.
22146 (arm_cannot_store_register): Renamed from cannot_store_register,
22147 made static.
22148 (the_low_target): New.
22149 * linux-i386-low.c (num_regs): Remove.
22150 (i386_num_regs): Define.
22151 (i386_regmap): Renamed from regmap, made static.
22152 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22153 made static.
22154 (i386_cannot_store_register): Renamed from cannot_store_register,
22155 made static.
22156 (the_low_target): New.
22157 * linux-ia64-low.c (num_regs): Remove.
22158 (ia64_num_regs): Define.
22159 (ia64_regmap): Renamed from regmap, made static.
22160 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22161 made static.
22162 (ia64_cannot_store_register): Renamed from cannot_store_register,
22163 made static.
22164 (the_low_target): New.
22165 * linux-m68k-low.c (num_regs): Remove.
22166 (m68k_num_regs): Define.
22167 (m68k_regmap): Renamed from regmap, made static.
22168 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22169 made static.
22170 (m68k_cannot_store_register): Renamed from cannot_store_register,
22171 made static.
22172 (the_low_target): New.
22173 * linux-mips-low.c (num_regs): Remove.
22174 (mips_num_regs): Define.
22175 (mips_regmap): Renamed from regmap, made static.
22176 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22177 made static.
22178 (mips_cannot_store_register): Renamed from cannot_store_register,
22179 made static.
22180 (the_low_target): New.
22181 * linux-ppc-low.c (num_regs): Remove.
22182 (ppc_num_regs): Define.
22183 (ppc_regmap): Renamed from regmap, made static.
22184 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22185 made static.
22186 (ppc_cannot_store_register): Renamed from cannot_store_register,
22187 made static.
22188 (the_low_target): New.
22189 * linux-s390-low.c (num_regs): Remove.
22190 (s390_num_regs): Define.
22191 (s390_regmap): Renamed from regmap, made static.
22192 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22193 made static.
22194 (s390_cannot_store_register): Renamed from cannot_store_register,
22195 made static.
22196 (the_low_target): New.
22197 * linux-sh-low.c (num_regs): Remove.
22198 (sh_num_regs): Define.
22199 (sh_regmap): Renamed from regmap, made static.
22200 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22201 made static.
22202 (sh_cannot_store_register): Renamed from cannot_store_register,
22203 made static.
22204 (the_low_target): New.
22205 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22206 (the_low_target): New.
22207
222082002-04-09 Daniel Jacobowitz <drow@mvista.com>
22209
22210 * Makefile.in: Add stamp-h target.
22211 * configure.in: Create stamp-h.
22212 * configure: Regenerated.
22213
222142002-04-09 Daniel Jacobowitz <drow@mvista.com>
22215
22216 * inferiors.c: New file.
22217 * target.c: New file.
22218 * target.h: New file.
22219 * Makefile.in: Add target.o and inferiors.o. Update
22220 dependencies.
22221 * linux-low.c (inferior_pid): New static variable,
22222 moved from server.c.
22223 (linux_create_inferior): Renamed from create_inferior.
22224 Call add_inferior. Return 0 on success instead of a PID.
22225 (linux_attach): Renamed from myattach.
22226 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22227 (linux_thread_alive): Renamed from mythread_alive.
22228 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22229 child dies.
22230 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22231 (regsets_store_inferior_registers): Correct error message.
22232 Add missing ``return 0''.
22233 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22234 (linux_store_registers): Renamed from store_inferior_registers.
22235 (linux_read_memory): Renamed from read_inferior_memory.
22236 (linux_write_memory): Renamed from write_inferior_memory.
22237 (linux_target_ops): New structure.
22238 (initialize_low): Call set_target_ops ().
22239 * remote-utils.c (unhexify): New function.
22240 (hexify): New function.
22241 (input_interrupt): Send signals to ``signal_pid''.
22242 * server.c (inferior_pid): Remove.
22243 (start_inferior): Update create_inferior call.
22244 (attach_inferior): Call add_inferior.
22245 (handle_query): New function.
22246 (main): Call handle_query for `q' packets.
22247 * server.h: Include "target.h". Remove obsolete prototypes.
22248 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22249
222502002-04-09 Daniel Jacobowitz <drow@mvista.com>
22251
22252 * Makefile.in: Add WARN_CFLAGS. Update configury
22253 dependencies.
22254 * configure.in: Check for <string.h>
22255 * configure: Regenerate.
22256 * config.in: Regenerate.
22257 * gdbreplay.c: Include needed system headers.
22258 (remote_open): Remove strchr prototype.
22259 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22260 * regcache.c (supply_register): Change buf argument to const void *.
22261 (supply_register_by_name): Likewise.
22262 (collect_register): Change buf argument to void *.
22263 (collect_register_by_name): Likewise.
22264 * regcache.h: Add missing prototypes.
22265 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22266 * server.c (handle_query): New function.
22267 (attached): New static variable, moved out of main.
22268 (main): Quiet longjmp clobber warnings.
22269 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22270 * utils.c (error): Remove NORETURN.
22271 (fatal): Likewise.
This page took 2.969937 seconds and 4 git commands to generate.