gdbsupport: Let construct_inferior_arguments take gdb::array_view param
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
51e2cfa2
PA
12020-05-23 Pedro Alves <palves@redhat.com>
2
3 * gdb-safe-ctype.h: New.
4
8bbf0394
TBA
52020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6
7 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
8 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
9 (ia64_target::low_breakpoint_at): Ditto.
10
01370779
HD
112020-05-15 Hannes Domani <ssbssa@yahoo.de>
12
13 * win32-i386-low.cc (i386_supports_z_point_type): Handle
14 Z_PACKET_HW_BP z_type.
15 (i386_insert_point): Handle raw_bkpt_type type.
16 (i386_remove_point): Likewise.
17
7d186bc0
HD
182020-04-30 Hannes Domani <ssbssa@yahoo.de>
19
20 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
21 Add arch/i386.o.
22 * win32-arm-low.cc (arm_num_regs): New function.
23 (struct win32_target_ops): Use arm_num_regs.
24 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
25 processes.
26 (i386_get_thread_context): Likewise.
27 (i386_prepare_to_resume): Likewise.
28 (i386_thread_added): Likewise.
29 (i386_single_step): Likewise.
30 (i386_fetch_inferior_register): Likewise.
31 (i386_store_inferior_register): Likewise.
32 (i386_arch_setup): Likewise.
33 (i386_win32_num_regs): New function.
34 (struct win32_target_ops): Use i386_win32_num_regs.
35 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
36 processes.
37 (win32_require_context): Likewise.
38 (child_add_thread): Likewise.
39 (do_initial_child_stuff): Likewise.
40 (continue_one_thread): Likewise.
41 (win32_process_target::resume): Likewise.
42 (load_psapi): Likewise.
43 (win32_add_all_dlls): Likewise.
44 (maybe_adjust_pc): Likewise.
45 (win32_process_target::qxfer_siginfo): Likewise.
46 (initialize_low): Likewise.
47 * win32-low.h (struct win32_target_ops): Change num_regs to
48 callback function.
49
1eb39914
SM
502020-04-27 Simon Marchi <simon.marchi@efficios.com>
51
52 * configure.ac: Remove check for fs_base/gs_base in
53 user_regs_struct.
54 * configure: Re-generate.
55 * config.in: Re-generate.
56 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
57 x86_store_gregset): Adjust.
58
51ac8e22
HD
592020-04-22 Hannes Domani <ssbssa@yahoo.de>
60
61 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
62 comparison.
63
a010605f
TT
642020-04-16 Tom Tromey <tromey@adacore.com>
65
66 * win32-low.cc (windows_nat::handle_access_violation): New
67 function.
68
e2275c6e
SM
692020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
70
71 * win32-low.cc (get_child_debug_event): Fix format string warning.
72
73944e9f
TT
732020-04-13 Tom Tromey <tom@tromey.com>
74
75 * server.h (gdb_fildes_t): Remove typedef.
76 * remote-utils.c (remote_desc, list_desc): Now int.
77 (INVALID_DESCRIPTOR): Remove.
78 (gdb_connected, remote_close)
79 (check_remote_input_interrupt_request): Update.
80 * utils.h (pfildes): Don't declare.
81 * utils.c (pfildes): Remove.
82
55d7aec8
TT
832020-04-13 Tom Tromey <tom@tromey.com>
84
85 * server.h (handle_serial_event, handle_target_event): Update.
86 * server.c: Don't call initialize_event_loop.
87 (keep_processing_events): New global.
88 (handle_serial_event): Return void. Set keep_processing_events.
89 (handle_target_event): Return void.
90 (start_event_loop): Move from event-loop.c. Rewrite.
91 * remote-utils.c (handle_accept_event): Return void.
92 (reset_readchar): Use delete_timer.
93 (process_remaining): Return void.
94 (reschedule): Use create_timer.
95 * event-loop.h: Remove.
96 * event-loop.cc: Remove.
97 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
98
e487f994
TT
992020-04-13 Tom Tromey <tom@tromey.com>
100
101 * server.c (invoke_async_signal_handlers)
102 (check_async_event_handlers, flush_streams, gdb_select): New
103 functions.
104
8ae8e197
TT
1052020-04-13 Tom Tromey <tom@tromey.com>
106
107 * configure: Rebuild.
108 * config.in: Rebuild.
109
360ad8b3
TT
1102020-04-08 Tom Tromey <tromey@adacore.com>
111
112 PR gdb/22992
113 * win32-low.c (child_continue): Call matching_pending_stop.
114 (get_child_debug_event): Call fetch_pending_stop. Push pending
115 stop when needed.
116
523d4f80
TT
1172020-04-08 Tom Tromey <tromey@adacore.com>
118
119 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
120 (win32_process_target::supports_stopped_by_sw_breakpoint):
121 Declare.
122 * win32-low.c (win32_supports_z_point_type): Always handle
123 Z_PACKET_SW_BP.
124 (win32_insert_point): Call insert_memory_breakpoint when needed.
125 (win32_remove_point): Call remove_memory_breakpoint when needed.
126 (win32_process_target::stopped_by_sw_breakpoint)
127 (win32_process_target::supports_stopped_by_sw_breakpoint): New
128 methods.
129 (win32_target_ops): Update.
130 (maybe_adjust_pc): New function.
131 (win32_wait): Call maybe_adjust_pc.
132
e54e5929
TT
1332020-04-08 Tom Tromey <tromey@adacore.com>
134
135 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
136 field.
137 * win32-i386-low.c (the_low_target): Update.
138 * win32-arm-low.c (the_low_target): Update.
139
d6225aff
TT
1402020-04-08 Tom Tromey <tromey@adacore.com>
141
142 * win32-low.h (win32_process_target::read_pc)
143 (win32_process_target::write_pc): Declare.
144 * win32-low.c (win32_process_target::read_pc)
145 (win32_process_target::write_pc): New methods.
146 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
147 functions.
148 (the_low_target): Update.
149 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
150 functions.
151 (the_low_target): Update.
152
2c1d95e8
TT
1532020-04-08 Tom Tromey <tromey@adacore.com>
154
155 * win32-low.c (win32_kill, get_child_debug_event): Use
156 wait_for_debug_event.
157
e758e19c
TT
1582020-04-08 Tom Tromey <tromey@adacore.com>
159
160 * win32-low.c (child_continue): Call continue_last_debug_event.
161
8d30e395
TT
1622020-04-08 Tom Tromey <tromey@adacore.com>
163
164 * win32-low.c (handle_exception): Remove.
165 (windows_nat::handle_ms_vc_exception): New function.
166 (get_child_debug_event): Add "continue_status" parameter.
167 Update.
168 (win32_wait): Update.
169
a816ba18
TT
1702020-04-08 Tom Tromey <tromey@adacore.com>
171
172 * win32-low.c (windows_nat::handle_load_dll): Rename from
173 handle_load_dll. No longer static.
174 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
175 No longer static.
176
d41b524f
TT
1772020-04-08 Tom Tromey <tromey@adacore.com>
178
179 * win32-low.c (handle_output_debug_string): Add parameter. Change
180 return type.
181 (win32_kill, get_child_debug_event): Update.
182
3c76026d
TT
1832020-04-08 Tom Tromey <tromey@adacore.com>
184
185 * win32-low.c (current_process_handle, current_process_id)
186 (main_thread_id, last_sig, current_event, siginfo_er): Move to
187 nat/windows-nat.c.
188
9d8679cc
TT
1892020-04-08 Tom Tromey <tromey@adacore.com>
190
191 * win32-low.c (get_image_name): Remove.
192 (handle_load_dll): Update.
193
28688adf
TT
1942020-04-08 Tom Tromey <tromey@adacore.com>
195
196 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
197 No longer static. Change parameters.
198 (child_add_thread, child_fetch_inferior_registers)
199 (child_store_inferior_registers, win32_resume)
200 (win32_get_tib_address): Update.
201
4834dad0
TT
2022020-04-08 Tom Tromey <tromey@adacore.com>
203
204 * win32-low.h (struct win32_target_ops): Use qualified names where
205 needed.
206 * win32-i386-low.c: Add "using namespace".
207 * win32-low.c: Add "using namespace".
208 * win32-arm-low.c: Add "using namespace".
209
65bafd5b
TT
2102020-04-08 Tom Tromey <tromey@adacore.com>
211
212 * win32-low.c (delete_thread_info): Don't call CloseHandle.
213
98a03287
TT
2142020-04-08 Tom Tromey <tromey@adacore.com>
215
216 * win32-low.c (win32_require_context, suspend_one_thread): Use
217 windows_thread_info::suspend.
218 (continue_one_thread): Use windows_thread_info::resume.
219 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
220
62fe396b
TT
2212020-04-08 Tom Tromey <tromey@adacore.com>
222
223 * win32-i386-low.c (update_debug_registers)
224 (i386_prepare_to_resume, i386_thread_added): Update.
225
e9534bd2
TT
2262020-04-08 Tom Tromey <tromey@adacore.com>
227
228 * win32-low.c (child_add_thread): Use new.
229 (delete_thread_info): Use delete.
230
ae1f8880
TT
2312020-04-08 Tom Tromey <tromey@adacore.com>
232
233 * win32-low.h (struct windows_thread_info): Remove.
234
e56f8ccb
TT
2352020-04-08 Tom Tromey <tromey@adacore.com>
236
237 * win32-low.h (struct windows_thread_info): Rename from
238 win32_thread_info. Remove typedef.
239 (struct win32_target_ops, win32_require_context): Update.
240 * win32-low.c (win32_get_thread_context)
241 (win32_set_thread_context, win32_prepare_to_resume)
242 (win32_require_context, thread_rec, child_add_thread)
243 (delete_thread_info, continue_one_thread)
244 (child_fetch_inferior_registers, child_store_inferior_registers)
245 (win32_resume, suspend_one_thread, win32_get_tib_address):
246 Update.
247 * win32-i386-low.c (update_debug_registers)
248 (win32_get_current_dr, i386_get_thread_context)
249 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
250 (i386_fetch_inferior_register, i386_store_inferior_register):
251 Update.
252 * win32-arm-low.c (arm_get_thread_context)
253 (arm_fetch_inferior_register, arm_store_inferior_register):
254 Update.
255
0dd7b52e
TBA
2562020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
257
258 * linux-low.h (struct linux_target_ops): Remove.
259 (the_low_target): Remove.
260 * linux-x86-low.cc (the_low_target): Remove.
261 * linux-aarch64-low.cc (the_low_target): Ditto.
262 * linux-arm-low.cc (the_low_target): Ditto.
263 * linux-bfin-low.cc (the_low_target): Ditto.
264 * linux-cris-low.cc (the_low_target): Ditto.
265 * linux-crisv32-low.cc (the_low_target): Ditto.
266 * linux-ia64-low.cc (the_low_target): Ditto.
267 * linux-m32r-low.cc (the_low_target): Ditto.
268 * linux-m68k-low.cc (the_low_target): Ditto.
269 * linux-mips-low.cc (the_low_target): Ditto.
270 * linux-nios2-low.cc (the_low_target): Ditto.
271 * linux-ppc-low.cc (the_low_target): Ditto.
272 * linux-riscv-low.cc (the_low_target): Ditto.
273 * linux-s390-low.cc (the_low_target): Ditto.
274 * linux-sh-low.cc (the_low_target): Ditto.
275 * linux-sparc-low.cc (the_low_target): Ditto.
276 * linux-tic6x-low.cc (the_low_target): Ditto.
277 * linux-tile-low.cc (the_low_target): Ditto.
278 * linux-xtensa-low.cc (the_low_target): Ditto.
279
fc5ecdb6
TBA
2802020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
281
282 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
283 linux target define the op by overriding the declaration in
284 process_stratum_target.
285
286 * linux-low.h (struct linux_target_ops): Remove the op.
287 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
288 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
289 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
290 (x86_get_ipa_tdesc_idx): Turn into...
291 (x86_target::get_ipa_tdesc_idx): ...this.
292 (the_low_target): Remove the op field.
293 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
294 (ppc_get_ipa_tdesc_idx): Turn into...
295 (ppc_target::get_ipa_tdesc_idx): ...this.
296 (the_low_target): Remove the op field.
297 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
298 (s390_get_ipa_tdesc_idx): Turn into...
299 (s390_target::get_ipa_tdesc_idx): ...this.
300 (the_low_target): Remove the op field.
301
9eedd27d
TBA
3022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
303
304 Turn the 'get_syscall_trapinfo' linux target op into a method
305 of process_stratum_target.
306
307 * linux-low.h (struct linux_target_ops): Remove the op.
308 (class linux_process_target) <get_syscall_trapinfo>
309 <gdb_catch_this_syscall>
310 <low_supports_catch_syscall>
311 <low_get_syscall_trapinfo>: Declare.
312 * linux-low.cc (get_syscall_trapinfo): Turn into...
313 (linux_process_target::get_syscall_trapinfo): ...this.
314 (linux_process_target::low_get_syscall_trapinfo): Define.
315 (gdb_catch_this_syscall_p): Turn into...
316 (linux_process_target::gdb_catch_this_syscall): ...this.
317 (linux_process_target::low_supports_catch_syscall): Define.
318
319 Update the callers below.
320
321 (linux_process_target::wait_1)
322 (linux_process_target::supports_catch_syscall)
323
324 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
325 <low_get_syscall_trapinfo>: Declare.
326 (x86_target::low_supports_catch_syscall): Define.
327 (x86_get_syscall_trapinfo): Turn into...
328 (x86_target::low_get_syscall_trapinfo): ...this.
329 (the_low_target): Remove the op field.
330 * linux-aarch64-low.cc (class aarch64_target)
331 <low_supports_catch_syscall>
332 <low_get_syscall_trapinfo>: Declare.
333 (aarch64_target::low_supports_catch_syscall): Define.
334 (aarch64_get_syscall_trapinfo): Turn into...
335 (aarch64_target::low_get_syscall_trapinfo): ...this.
336 (the_low_target): Remove the op field.
337 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
338 <low_get_syscall_trapinfo>: Declare.
339 (arm_target::low_supports_catch_syscall): Define.
340 (arm_get_syscall_trapinfo): Turn into...
341 (arm_target::low_get_syscall_trapinfo): ...this.
342 (the_low_target): Remove the op field.
343 * linux-ppc-low.cc (the_low_target): Remove the op field.
344 * linux-s390-low.cc (the_low_target): Remove the op field.
345
b31cdfa6
TBA
3462020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
347
348 Remove the 'supports_hardware_single_step' linux target op and
349 override the process_stratum_target's op definition in
350 linux_process_target to return true.
351
352 * linux-low.h (struct linux_target_ops): Remove the op.
353 (class linux_process_target) <finish_step_over>
354 <maybe_hw_step>: Declare.
355 * linux-low.cc (can_hardware_single_step): Remove.
356 (maybe_hw_step): Turn into...
357 (linux_process_target::maybe_hw_step): ...this.
358 (finish_step_over): Turn into...
359 (linux_process_target::finish_step_over): ...this.
360 (linux_process_target::supports_hardware_single_step): Update
361 to return true.
362
363 Update the callers below.
364
365 (linux_process_target::single_step)
366 (linux_process_target::resume_one_lwp_throw)
367
368 * linux-arm-low.cc (class arm_target)
369 <supports_hardware_single_step>: Declare.
370 (arm_supports_hardware_single_step): Turn into...
371 (arm_target::supports_hardware_single_step): ...this.
372 (the_low_target): Remove the op field.
373 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
374 (the_low_target): Remove the op field.
375 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
376 Remove.
377 (the_low_target): Remove the op field.
378 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
379 (the_low_target): Remove the op field.
380 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
381 (the_low_target): Remove the op field.
382 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
383 (the_low_target): Remove the op field.
384 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
385 (the_low_target): Remove the op field.
386 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
387 (the_low_target): Remove the op field.
388 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
389 (the_low_target): Remove the op field.
390 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
391 (the_low_target): Remove the op field.
392 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
393 (the_low_target): Remove the op field.
394 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
395 (the_low_target): Remove the op field.
396 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
397 Remove.
398 (the_low_target): Remove the op field.
399
9cfd8715
TBA
4002020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
401
402 Turn the 'supports_range_stepping' linux target op into a method
403 of linux_process_target.
404
405 * linux-low.h (struct linux_target_ops): Remove the op.
406 (class linux_process_target) <low_supports_range_stepping>: Declare.
407 * linux-low.cc (linux_process_target::low_supports_range_stepping):
408 Define.
409 (linux_process_target::supports_range_stepping): Update the call
410 site.
411 * linux-x86-low.cc (class x86_target)
412 <low_supports_range_stepping>: Declare.
413 (x86_supports_range_stepping): Turn into...
414 (x86_target::low_supports_range_stepping): ...this.
415 (the_low_target): Remove the op field.
416 * linux-aarch64-low.cc (class aarch64_target)
417 <low_supports_range_stepping>: Declare.
418 (aarch64_supports_range_stepping): Turn into...
419 (aarch64_target::low_supports_range_stepping): ...this.
420 (the_low_target): Remove the op field.
421 * linux-arm-low.cc (the_low_target): Remove the op field.
422 * linux-bfin-low.cc (the_low_target): Ditto.
423 * linux-crisv32-low.cc (the_low_target): Ditto.
424 * linux-m32r-low.cc (the_low_target): Ditto.
425 * linux-m68k-low.cc (the_low_target): Ditto.
426 * linux-ppc-low.cc (the_low_target): Ditto.
427 * linux-s390-low.cc (the_low_target): Ditto.
428 * linux-sh-low.cc (the_low_target): Ditto.
429 * linux-tic6x-low.cc (the_low_target): Ditto.
430 * linux-tile-low.cc (the_low_target): Ditto.
431 * linux-xtensa-low.cc (the_low_target): Ditto.
432
ab64c999
TBA
4332020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
434
435 Remove the 'emit_ops' linux target ops and let the concrete
436 linux target define the op by overriding the declaration of
437 process_stratum_target.
438
439 * linux-low.h (struct linux_target_ops): Remove the op.
440 (class linux_process_target) <emit_ops>: Remove.
441 * linux-low.cc (linux_process_target::emit_ops): Remove.
442 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
443 (x86_emit_ops): Turn into...
444 (x86_target::emit_ops): ...this.
445 (the_low_target): Remove the op field.
446 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
447 (aarch64_emit_ops): Turn into...
448 (aarch64_target::emit_ops): ...this.
449 (the_low_target): Remove the op field.
450 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
451 (ppc_emit_ops): Turn into...
452 (ppc_target::emit_ops): ...this.
453 (the_low_target): Remove the op field.
454 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
455 (s390_emit_ops): Turn into...
456 (s390_target::emit_ops): ...this.
457 (the_low_target): Remove the op field.
458 * linux-arm-low.cc (the_low_target): Remove the op field.
459 * linux-bfin-low.cc (the_low_target): Ditto.
460 * linux-crisv32-low.cc (the_low_target): Ditto.
461 * linux-m32r-low.cc (the_low_target): Ditto.
462 * linux-m68k-low.cc (the_low_target): Ditto.
463 * linux-sh-low.cc (the_low_target): Ditto.
464 * linux-tic6x-low.cc (the_low_target): Ditto.
465 * linux-tile-low.cc (the_low_target): Ditto.
466 * linux-xtensa-low.cc (the_low_target): Ditto.
467
809a0c35
TBA
4682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
469
470 Remove the 'install_fast_tracepoint_jump_pad' and
471 'get_min_fast_tracepoint_insn_len' linux target ops to let the
472 concrete linux target define the ops by overriding the declarations
473 of process_stratum_target.
474
475 * linux-low.h (struct linux_target_ops): Remove the ops.
476 (class linux_process_target) <supports_fast_tracepoints>
477 <install_fast_tracepoint_jump_pad>
478 <get_min_fast_tracepoint_insn_len>: Remove.
479 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
480 (linux_process_target::install_fast_tracepoint_jump_pad)
481 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
482 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
483 <install_fast_tracepoint_jump_pad>
484 <get_min_fast_tracepoint_insn_len>: Declare.
485 (x86_target::supports_fast_tracepoints): Define.
486 (x86_install_fast_tracepoint_jump_pad): Turn into...
487 (x86_target::install_fast_tracepoint_jump_pad): ...this.
488 (x86_get_min_fast_tracepoint_insn_len): Turn into...
489 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
490 (the_low_target): Remove the op fields.
491 * linux-aarch64-low.cc (class aarch64_target)
492 <supports_fast_tracepoints>
493 <install_fast_tracepoint_jump_pad>
494 <get_min_fast_tracepoint_insn_len>: Declare.
495 (aarch64_target::supports_fast_tracepoints): Define.
496 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
497 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
498 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
499 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
500 (the_low_target): Remove the op fields.
501 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
502 <install_fast_tracepoint_jump_pad>
503 <get_min_fast_tracepoint_insn_len>: Declare.
504 (ppc_target::supports_fast_tracepoints): Define.
505 (ppc_install_fast_tracepoint_jump_pad): Turn into...
506 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
507 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
508 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
509 (the_low_target): Remove the op fields.
510 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
511 <install_fast_tracepoint_jump_pad>
512 <get_min_fast_tracepoint_insn_len>: Declare.
513 (s390_target::supports_fast_tracepoints): Define.
514 (s390_install_fast_tracepoint_jump_pad): Turn into...
515 (s390_target::install_fast_tracepoint_jump_pad): ...this.
516 (s390_get_min_fast_tracepoint_insn_len): Turn into...
517 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
518 (the_low_target): Remove the op fields.
519 * linux-arm-low.cc (the_low_target): Remove the op fields.
520 * linux-bfin-low.cc (the_low_target): Ditto.
521 * linux-crisv32-low.cc (the_low_target): Ditto.
522 * linux-m32r-low.cc (the_low_target): Ditto.
523 * linux-m68k-low.cc (the_low_target): Ditto.
524 * linux-sh-low.cc (the_low_target): Ditto.
525 * linux-tic6x-low.cc (the_low_target): Ditto.
526 * linux-tile-low.cc (the_low_target): Ditto.
527 * linux-xtensa-low.cc (the_low_target): Ditto.
528
13e567af
TBA
5292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
530
531 Turn the 'get_thread_area' linux target op into a method of
532 process_stratum_target.
533
534 * linux-low.h (struct linux_target_ops): Remove the op.
535 (class linux_process_target) <stuck_in_jump_pad>
536 <linux_fast_tracepoint_collecting>
537 <low_get_thread_area>: Declare.
538 * linux-low.cc (supports_fast_tracepoints): Remove.
539 (linux_fast_tracepoint_collecting): Turn into...
540 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
541 (linux_process_target::low_get_thread_area): Define.
542 (stuck_in_jump_pad_callback): Turn into...
543 (linux_process_target::stuck_in_jump_pad): ...this.
544
545 Update the caller below.
546
547 (linux_process_target::stabilize_threads)
548
549 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
550 Declare.
551 (x86_get_thread_area): Turn into...
552 (x86_target::low_get_thread_area): ...this.
553 (the_low_target): Remove the op field.
554 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
555 Declare.
556 (aarch64_get_thread_area): Turn into...
557 (aarch64_target::low_get_thread_area): ...this.
558 (the_low_target): Remove the op field.
559 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
560 Declare.
561 (ppc_get_thread_area): Turn into...
562 (ppc_target::low_get_thread_area): ...this.
563 (the_low_target): Remove the op field.
564 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
565 Declare.
566 (s390_get_thread_area): Turn into...
567 (s390_target::low_get_thread_area): ...this.
568 (the_low_target): Remove the op field.
569 * linux-arm-low.cc (the_low_target): Remove the op field.
570 * linux-bfin-low.cc (the_low_target): Ditto.
571 * linux-crisv32-low.cc (the_low_target): Ditto.
572 * linux-m32r-low.cc (the_low_target): Ditto.
573 * linux-m68k-low.cc (the_low_target): Ditto.
574 * linux-sh-low.cc (the_low_target): Ditto.
575 * linux-tic6x-low.cc (the_low_target): Ditto.
576 * linux-tile-low.cc (the_low_target): Ditto.
577 * linux-xtensa-low.cc (the_low_target): Ditto.
578
47f70aa7
TBA
5792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
580
581 Remote the 'supports_tracepoints' linux target op and let the
582 concrete linux target define it by overriding the op declared in
583 process_stratum_target.
584
585 * linux-low.h (struct linux_target_ops): Remove the op.
586 (class linux_process_target) <supports_tracepoints>: Remove.
587 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
588 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
589 Declare.
590 (x86_supports_tracepoints): Turn into...
591 (x86_target::supports_tracepoints): ...this.
592 (the_low_target): Remove the op field.
593 * linux-aarch64-low.cc (class aarch64_target)
594 <supports_tracepoints>: Declare.
595 (aarch64_supports_tracepoints): Turn into...
596 (aarch64_target::supports_tracepoints): ...this.
597 (the_low_target): Remove the op field.
598 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
599 Declare.
600 (ppc_supports_tracepoints): Turn into...
601 (ppc_target::supports_tracepoints): ...this.
602 (the_low_target): Remove the op field.
603 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
604 Declare.
605 (s390_supports_tracepoints): Turn into...
606 (s390_target::supports_tracepoints): ...this.
607 (the_low_target): Remove the op field.
608 * linux-arm-low.cc (the_low_target): Remove the op field.
609 * linux-bfin-low.cc (the_low_target): Ditto.
610 * linux-crisv32-low.cc (the_low_target): Ditto.
611 * linux-m32r-low.cc (the_low_target): Ditto.
612 * linux-m68k-low.cc (the_low_target): Ditto.
613 * linux-sh-low.cc (the_low_target): Ditto.
614 * linux-tic6x-low.cc (the_low_target): Ditto.
615 * linux-tile-low.cc (the_low_target): Ditto.
616 * linux-xtensa-low.cc (the_low_target): Ditto.
617
a5b5da92
TBA
6182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
619
620 Remove the 'process_qsupported' linux target op and let a concrete
621 linux target define the op by overriding the op declaration in
622 process_stratum_target.
623
624 * linux-low.h (struct linux_target_ops): Remove the op.
625 (class linux_process_target) <process_qsupported>: Remove.
626 * linux-low.cc (linux_process_target::process_qsupported): Remove.
627 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
628 (x86_linux_process_qsupported): Turn into...
629 (x86_target::process_qsupported): ...this.
630 (the_low_target): Remove the op field.
631 * linux-aarch64-low.cc (the_low_target): Remove the op
632 field.
633 * linux-arm-low.cc (the_low_target): Ditto.
634 * linux-bfin-low.cc (the_low_target): Ditto.
635 * linux-crisv32-low.cc (the_low_target): Ditto.
636 * linux-m32r-low.cc (the_low_target): Ditto.
637 * linux-m68k-low.cc (the_low_target): Ditto.
638 * linux-ppc-low.cc (the_low_target): Ditto.
639 * linux-s390-low.cc (the_low_target): Ditto.
640 * linux-sh-low.cc (the_low_target): Ditto.
641 * linux-tic6x-low.cc (the_low_target): Ditto.
642 * linux-tile-low.cc (the_low_target): Ditto.
643 * linux-xtensa-low.cc (the_low_target): Ditto.
644
d7599cc0
TBA
6452020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
646
647 Turn the 'prepare_to_resume' linux target op into a method of
648 linux_process_target.
649
650 * linux-low.h (struct linux_target_ops): Remove the op.
651 (class linux_process_target) <low_prepare_to_resume>: Declare.
652 * linux-low.cc (linux_process_target::low_prepare_to_resume):
653 Define.
654
655 Update the callers below:
656
657 (linux_process_target::resume_one_lwp_throw)
658 (linux_process_target::low_prepare_to_resume)
659
660 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
661 Declare.
662 (x86_target::low_prepare_to_resume): Define.
663 (the_low_target): Remove the op field.
664 * linux-aarch64-low.cc (class aarch64_target)
665 <low_prepare_to_resume>: Declare.
666 (aarch64_target::low_prepare_to_resume): Define.
667 (the_low_target): Remove the op field.
668 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
669 Declare.
670 (arm_prepare_to_resume): Turn into...
671 (arm_target::low_prepare_to_resume): ...this.
672 (the_low_target): Remove the op field.
673 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
674 Declare.
675 (mips_linux_prepare_to_resume): Turn into...
676 (mips_target::low_prepare_to_resume): ...this.
677 (the_low_target): Remove the op field.
678 * linux-bfin-low.cc (the_low_target): Remove the op field.
679 * linux-crisv32-low.cc (the_low_target): Ditto.
680 * linux-m32r-low.cc (the_low_target): Ditto.
681 * linux-m68k-low.cc (the_low_target): Ditto.
682 * linux-ppc-low.cc (the_low_target): Ditto.
683 * linux-s390-low.cc (the_low_target): Ditto.
684 * linux-sh-low.cc (the_low_target): Ditto.
685 * linux-tic6x-low.cc (the_low_target): Ditto.
686 * linux-tile-low.cc (the_low_target): Ditto.
687 * linux-xtensa-low.cc (the_low_target): Ditto.
688
fd000fb3
TBA
6892020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
690
691 Turn the 'new_process', 'delete_process', 'new_thread',
692 'delete_thread', and 'new_fork' linux target ops into methods
693 of linux_process_target.
694
695 * linux-low.h (struct linux_target_ops): Remove the ops.
696 (class linux_process_target) <add_linux_process>
697 <add_lwp>
698 <delete_lwp>
699 <attach_lwp>
700 <detach_one_lwp>
701 <check_zombie_leaders>
702 <filter_exit_event>
703 <low_new_process>
704 <low_delete_process>
705 <low_new_thread>
706 <low_delete_thread>
707 <low_new_fork>: Declare.
708 * linux-low.cc (delete_lwp): Turn into...
709 (linux_process_target::delete_lwp): ...this.
710 (linux_process_target::low_delete_thread): Define.
711 (linux_add_process): Turn into...
712 (linux_process_target::add_linux_process): ...this.
713 (linux_process_target::low_new_process): Define.
714 (linux_process_target::low_delete_process): Define.
715 (linux_process_target::low_new_fork): Define.
716 (add_lwp): Turn into...
717 (linux_process_target::add_lwp): ...this.
718 (linux_process_target::low_new_thread): Define.
719 (linux_attach_lwp): Turn into...
720 (linux_process_target::attach_lwp): ...this.
721 (linux_detach_one_lwp): Turn into...
722 (linux_process_target::detach_one_lwp): ...this.
723 (linux_detach_lwp_callback): Remove and inline...
724 (linux_process_target::detach): ...here.
725 (check_zombie_leaders): Turn into...
726 (linux_process_target::check_zombie_leaders): ...this.
727 (filter_exit_event): Turn into...
728 (linux_process_target::filter_exit_event): ...this.
729
730 Update the callers below.
731
732 (linux_process_target::handle_extended_wait)
733 (linux_process_target::create_inferior)
734 (attach_proc_task_lwp_callback)
735 (linux_process_target::attach)
736 (linux_process_target::detach)
737 (linux_process_target::mourn)
738 * thread-db.cc (attach_thread)
739
740 * linux-x86-low.cc (class x86_target) <low_new_process>
741 <low_delete_process>
742 <low_new_thread>
743 <low_delete_thread>
744 <low_new_fork>: Declare.
745 (x86_linux_new_process): Turn into...
746 (x86_target::low_new_process): ...this.
747 (x86_linux_delete_process): Turn into...
748 (x86_target::low_delete_process): ...this.
749 (x86_target::low_new_thread): Define.
750 (x86_target::low_delete_thread): Define.
751 (x86_linux_new_fork): Turn into...
752 (x86_target::low_new_fork): ...this.
753 (the_low_target): Remove the op fields.
754 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
755 <low_delete_process>
756 <low_new_thread>
757 <low_delete_thread>
758 <low_new_fork>: Declare.
759 (aarch64_linux_new_process): Turn into...
760 (aarch64_target::low_new_process): ...this.
761 (aarch64_linux_delete_process): Turn into...
762 (aarch64_target::low_delete_process): ...this.
763 (aarch64_target::low_new_thread): Define.
764 (aarch64_target::low_delete_thread): Define.
765 (aarch64_linux_new_fork): Turn into...
766 (aarch64_target::low_new_fork): ...this.
767 (the_low_target): Remove the op fields.
768 * linux-arm-low.cc (class arm_target) <low_new_process>
769 <low_delete_process>
770 <low_new_thread>
771 <low_delete_thread>
772 <low_new_fork>: Declare.
773 (arm_new_process): Turn into...
774 (arm_target::low_new_process): ...this.
775 (arm_delete_process): Turn into...
776 (arm_target::low_delete_process): ...this.
777 (arm_new_thread): Turn into...
778 (arm_target::low_new_thread): ...this.
779 (arm_delete_thread): Turn into...
780 (arm_target::low_delete_thread): ...this.
781 (arm_new_fork): Turn into...
782 (arm_target::low_new_fork): ...this.
783 (the_low_target): Remove the op fields.
784 * linux-mips-low.cc (class mips_target) <low_new_process>
785 <low_delete_process>
786 <low_new_thread>
787 <low_delete_thread>
788 <low_new_fork>: Declare.
789 (mips_linux_new_process): Turn into...
790 (mips_target::low_new_process): ...this.
791 (mips_linux_delete_process): Turn into...
792 (mips_target::low_delete_process): ...this.
793 (mips_linux_new_thread): Turn into...
794 (mips_target::low_new_thread): ...this.
795 (mips_linux_delete_thread): Turn into...
796 (mips_target::low_delete_thread): ...this.
797 (mips_linux_new_fork): Turn into...
798 (mips_target::low_new_fork): ...this.
799 (the_low_target): Remove the op fields.
800 * linux-bfin-low.cc (the_low_target): Remove the op fields.
801 * linux-crisv32-low.cc (the_low_target): Ditto.
802 * linux-m32r-low.cc (the_low_target): Ditto.
803 * linux-m68k-low.cc (the_low_target): Ditto.
804 * linux-ppc-low.cc (the_low_target): Ditto.
805 * linux-s390-low.cc (the_low_target): Ditto.
806 * linux-sh-low.cc (the_low_target): Ditto.
807 * linux-tic6x-low.cc (the_low_target): Ditto.
808 * linux-tile-low.cc (the_low_target): Ditto.
809 * linux-xtensa-low.cc (the_low_target): Ditto.
810
cb63de7c
TBA
8112020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
812
813 Turn the 'siginfo_fixup' linux target op into a method of
814 linux_process_target.
815
816 * linux-low.h (struct linux_target_ops): Remove the op.
817 (class linux_process_target) <siginfo_fixup>
818 <low_siginfo_fixup>: Declare.
819 * linux-low.cc (siginfo_fixup): Turn into...
820 (linux_process_target::siginfo_fixup): ...this.
821 (linux_process_target::low_siginfo_fixup): Define.
822 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
823 (x86_siginfo_fixup): Turn into...
824 (x86_target::low_siginfo_fixup): ...this.
825 (the_low_target): Remove the op field.
826 * linux-aarch64-low.cc (class aarch64_target):
827 <low_siginfo_fixup>: Declare.
828 (aarch64_linux_siginfo_fixup): Turn into...
829 (aarch64_target::low_siginfo_fixup): ...this.
830 (the_low_target): Remove the op field.
831 * linux-arm-low.cc (the_low_target): Remove the op field.
832 * linux-bfin-low.cc (the_low_target): Ditto.
833 * linux-crisv32-low.cc (the_low_target): Ditto.
834 * linux-m32r-low.cc (the_low_target): Ditto.
835 * linux-m68k-low.cc (the_low_target): Ditto.
836 * linux-mips-low.cc (the_low_target): Ditto.
837 * linux-ppc-low.cc (the_low_target): Ditto.
838 * linux-s390-low.cc (the_low_target): Ditto.
839 * linux-sh-low.cc (the_low_target): Ditto.
840 * linux-tic6x-low.cc (the_low_target): Ditto.
841 * linux-tile-low.cc (the_low_target): Ditto.
842 * linux-xtensa-low.cc (the_low_target): Ditto.
843
b35db733
TBA
8442020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
845
846 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
847 linux target ops into methods of linux_process_target.
848
849 * linux-low.h (struct linux_target_ops): Remove the ops.
850 (class linux_process_target) <low_collect_ptrace_register>
851 <low_store_ptrace_register>: Declare.
852 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
853 (linux_process_target::low_supply_ptrace_register): Define.
854
855 Update the callers below.
856
857 (linux_process_target::fetch_register)
858 (linux_process_target::store_register)
859
860 * linux-x86-low.cc (the_low_target): Remove the op fields.
861 * linux-aarch64-low.cc (the_low_target): Ditto.
862 * linux-arm-low.cc (the_low_target): Ditto.
863 * linux-bfin-low.cc (the_low_target): Ditto.
864 * linux-crisv32-low.cc (the_low_target): Ditto.
865 * linux-m32r-low.cc (the_low_target): Ditto.
866 * linux-m68k-low.cc (the_low_target): Ditto.
867 * linux-sh-low.cc (the_low_target): Ditto.
868 * linux-sparc-low.cc (the_low_target): Ditto.
869 * linux-tic6x-low.cc (the_low_target): Ditto.
870 * linux-tile-low.cc (the_low_target): Ditto.
871 * linux-xtensa-low.cc (the_low_target): Ditto.
872 * linux-mips-low.cc (class mips_target)
873 <low_collect_ptrace_register>
874 <low_supply_ptrace_register>: Declare.
875 (mips_collect_ptrace_register): Turn into ...
876 (mips_target::low_collect_ptrace_register): ...this.
877 (mips_supply_ptrace_register): Turn into...
878 (mips_target::low_supply_ptrace_register): ...this.
879 (the_low_target): Remove the op fields.
880 * linux-ppc-low.cc (class ppc_target)
881 <low_collect_ptrace_register>
882 <low_supply_ptrace_register>: Declare.
883 (ppc_collect_ptrace_register): Turn into ...
884 (ppc_target::low_collect_ptrace_register): ...this.
885 (ppc_supply_ptrace_register): Turn into ...
886 (ppc_target::low_supply_ptrace_register): ...this.
887 (ppc_fill_gregset): Update for the calls to
888 low_collect_ptrace_register.
889 (the_low_target): Remove the op fields.
890 * linux-s390-low.cc (class s390_target)
891 <low_collect_ptrace_register>
892 <low_supply_ptrace_register>: Declare.
893 (s390_collect_ptrace_register): Turn into ...
894 (s390_target::low_collect_ptrace_register): ...this.
895 (s390_supply_ptrace_register): Turn into ...
896 (s390_target::low_supply_ptrace_register): ...this.
897 (s390_fill_gregset): Update for the calls to
898 low_collect_ptrace_register.
899 (the_low_target): Remove the op fields.
900
ac1bbaca
TBA
9012020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
902
903 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
904 target ops into methods of linux_process_target.
905
906 * linux-low.h (struct linux_target_ops): Remove the ops.
907 (class linux_process_target) <check_stopped_by_watchpoint>
908 <low_stopped_by_watchpoint>
909 <low_stopped_data_address>: Declare.
910 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
911 (linux_process_target::check_stopped_by_watchpoint): ...this.
912 (linux_process_target::low_stopped_by_watchpoint): Define.
913 (linux_process_target::low_stopped_data_address): Define.
914 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
915 <low_stopped_data_address>: Declare.
916 (x86_stopped_by_watchpoint): Turn into...
917 (x86_target::low_stopped_by_watchpoint): ...this.
918 (x86_stopped_data_address): Turn into...
919 (x86_target::low_stopped_data_address): ...this.
920 (the_low_target): Remove the op fields.
921 * linux-aarch64-low.cc (class aarch64_target)
922 <low_stopped_by_watchpoint>
923 <low_stopped_data_address>: Declare.
924 (aarch64_stopped_by_watchpoint): Turn into...
925 (aarch64_target::low_stopped_by_watchpoint): ...this.
926 (aarch64_stopped_data_address): Turn into...
927 (aarch64_target::low_stopped_data_address): ...this.
928 (the_low_target): Remove the op fields.
929 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
930 <low_stopped_data_address>: Declare.
931 (arm_stopped_by_watchpoint): Turn into...
932 (arm_target::low_stopped_by_watchpoint): ...this.
933 (arm_stopped_data_address): Turn into...
934 (arm_target::low_stopped_data_address): ...this.
935 (the_low_target): Remove the op fields.
936 * linux-crisv32-low.cc (class crisv32_target)
937 <low_stopped_by_watchpoint>
938 <low_stopped_data_address>: Declare.
939 (cris_stopped_by_watchpoint): Turn into...
940 (crisv32_target::low_stopped_by_watchpoint): ...this.
941 (cris_stopped_data_address): Turn into...
942 (crisv32_target::low_stopped_data_address): ...this.
943 (the_low_target): Remove the op fields.
944 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
945 <low_stopped_data_address>: Declare.
946 (mips_stopped_by_watchpoint): Turn into...
947 (mips_target::low_stopped_by_watchpoint): ...this.
948 (mips_stopped_data_address): Turn into...
949 (mips_target::low_stopped_data_address): ...this.
950 (the_low_target): Remove the op fields.
951 * linux-bfin-low.cc (the_low_target): Remove the op fields.
952 * linux-m32r-low.cc (the_low_target): Ditto.
953 * linux-m68k-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-sparc-low.cc (the_low_target): Ditto.
958 * linux-tic6x-low.cc (the_low_target): Ditto.
959 * linux-tile-low.cc (the_low_target): Ditto.
960 * linux-xtensa-low.cc (the_low_target): Ditto.
961
9db9aa23
TBA
9622020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
963
964 Turn the 'insert_point' and 'remove_point' linux target ops into
965 methods of linux_process_target.
966
967 * linux-low.h (struct linux_target_ops): Remove the ops.
968 (class linux_process_target) <low_insert_point>
969 <low_remove_point>: Declare.
970 * linux-low.cc (linux_process_target::low_insert_point)
971 (linux_process_target::low_remove_point): Define.
972 (linux_process_target::insert_point)
973 (linux_process_target::remove_point): Update for calls to
974 low_insert_point and low_remove_point.
975 * linux-x86-low.cc (class x86_target) <low_insert_point>
976 <low_remove_point>: Declare.
977 (x86_insert_point): Turn into...
978 (x86_target::low_insert_point): ...this.
979 (x86_remove_point): Turn into...
980 (x86_target::low_remove_point): ...this.
981 (the_low_target): Remove the op fields.
982 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
983 <low_remove_point>: Declare.
984 (aarch64_insert_point): Turn into...
985 (aarch64_target::low_insert_point): ...this.
986 (aarch64_remove_point): Turn into...
987 (aarch64_target::low_remove_point): ...this.
988 (the_low_target): Remove the op fields.
989 * linux-arm-low.cc (class arm_target) <low_insert_point>
990 <low_remove_point>: Declare.
991 (arm_insert_point): Turn into...
992 (arm_target::low_insert_point): ...this.
993 (arm_remove_point): Turn into...
994 (arm_target::low_remove_point): ...this.
995 (the_low_target): Remove the op fields.
996 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
997 <low_remove_point>: Declare.
998 (crisv32_insert_point): Turn into...
999 (crisv32_target::low_insert_point): ...this.
1000 (crisv32_remove_point): Turn into...
1001 (crisv32_target::low_remove_point): ...this.
1002 (the_low_target): Remove the op fields.
1003 * linux-mips-low.cc (class mips_target) <low_insert_point>
1004 <low_remove_point>: Declare.
1005 (mips_insert_point): Turn into...
1006 (mips_target::low_insert_point): ...this.
1007 (mips_remove_point): Turn into...
1008 (mips_target::low_remove_point): ...this.
1009 (the_low_target): Remove the op fields.
1010 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1011 <low_remove_point>: Declare.
1012 (ppc_insert_point): Turn into...
1013 (ppc_target::low_insert_point): ...this.
1014 (ppc_remove_point): Turn into...
1015 (ppc_target::low_remove_point): ...this.
1016 (the_low_target): Remove the op fields.
1017 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1018 * linux-m32r-low.cc (the_low_target): Ditto.
1019 * linux-m68k-low.cc (the_low_target): Ditto.
1020 * linux-s390-low.cc (the_low_target): Ditto.
1021 * linux-sh-low.cc (the_low_target): Ditto.
1022 * linux-sparc-low.cc (the_low_target): Ditto.
1023 * linux-tic6x-low.cc (the_low_target): Ditto.
1024 * linux-tile-low.cc (the_low_target): Ditto.
1025 * linux-xtensa-low.cc (the_low_target): Ditto.
1026
007c9b97
TBA
10272020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1028
1029 Remove the 'supports_z_point_type' linux target op and let the
1030 concrete linux target define it by overriding the op declared in
1031 process_stratum_target.
1032
1033 * linux-low.cc (linux_process_target::supports_z_point_type):
1034 Remove.
1035 * linux-low.h (struct linux_target_ops): Remove the op.
1036 (class linux_process_target) <supports_z_point_type>: Remove.
1037 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1038 Declare.
1039 (x86_supports_z_point_type): Turn into...
1040 (x86_target::supports_z_point_type): ...this.
1041 (the_low_target): Remove the op field.
1042 * linux-aarch64-low.cc (class aarch64_target)
1043 <supports_z_point_type>: Declare.
1044 (aarch64_supports_z_point_type): Turn into...
1045 (aarch64_target::supports_z_point_type): ...this.
1046 (the_low_target): Remove the op field.
1047 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1048 Declare.
1049 (arm_supports_z_point_type): Turn into...
1050 (arm_target::supports_z_point_type): ...this.
1051 (the_low_target): Remove the op field.
1052 * linux-crisv32-low.cc (class crisv32_target)
1053 <supports_z_point_type>: Declare.
1054 (cris_supports_z_point_type): Turn into...
1055 (crisv32_target::supports_z_point_type): ...this.
1056 (the_low_target): Remove the op field.
1057 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1058 Declare.
1059 (mips_supports_z_point_type): Turn into...
1060 (mips_target::supports_z_point_type): ...this.
1061 (the_low_target): Remove the op field.
1062 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1063 Declare.
1064 (ppc_supports_z_point_type): Turn into...
1065 (ppc_target::supports_z_point_type): ...this.
1066 (the_low_target): Remove the op field.
1067 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1068 Declare.
1069 (s390_supports_z_point_type): Turn into...
1070 (s390_target::supports_z_point_type): ...this.
1071 (the_low_target): Remove the op field.
1072 * linux-bfin-low.cc (the_low_target): Remove the op field.
1073 * linux-m32r-low.cc (the_low_target): Ditto.
1074 * linux-m68k-low.cc (the_low_target): Ditto.
1075 * linux-sh-low.cc (the_low_target): Ditto.
1076 * linux-sparc-low.cc (the_low_target): Ditto.
1077 * linux-tic6x-low.cc (the_low_target): Ditto.
1078 * linux-tile-low.cc (the_low_target): Ditto.
1079 * linux-xtensa-low.cc (the_low_target): Ditto.
1080
d7146cda
TBA
10812020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1082
1083 Turn the 'breakpoint_at' linux target op into a method of
1084 linux_process_target.
1085
1086 * linux-low.h (struct linux_target_ops): Remove the op.
1087 (class linux_process_target) <low_breakpoint_at>: Declare.
1088
1089 Update the callers below:
1090
1091 * linux-low.cc (linux_process_target::save_stop_reason)
1092 (linux_process_target::thread_still_has_status_pending)
1093 (linux_process_target::wait_1)
1094
1095 * linux-x86-low.cc (class x86_target)
1096 <low_breakpoint_at>: Declare.
1097 (x86_breakpoint_at): Turn into...
1098 (x86_target::low_breakpoint_at): ...this.
1099 (the_low_target): Remove the op field.
1100 * linux-aarch64-low.cc (class aarch64_target)
1101 <low_breakpoint_at>: Declare.
1102 (aarch64_breakpoint_at): Turn into...
1103 (aarch64_target::low_breakpoint_at): ...this.
1104 (the_low_target): Remove the op field.
1105 * linux-arm-low.cc (class arm_target)
1106 <low_breakpoint_at>: Declare.
1107 (arm_target::low_breakpoint_at): Define.
1108 (the_low_target): Remove the op field.
1109 * linux-bfin-low.cc (class bfin_target)
1110 <low_breakpoint_at>: Declare.
1111 (bfin_breakpoint_at): Turn into...
1112 (bfin_target::low_breakpoint_at): ...this.
1113 (the_low_target): Remove the op field.
1114 * linux-cris-low.cc (class cris_target)
1115 <low_breakpoint_at>: Declare.
1116 (cris_breakpoint_at): Turn into...
1117 (cris_target::low_breakpoint_at): ...this.
1118 (the_low_target): Remove the op field.
1119 * linux-crisv32-low.cc (class crisv32_target)
1120 <low_breakpoint_at>: Declare.
1121 (crisv32_breakpoint_at): Turn into...
1122 (crisv32_target::low_breakpoint_at): ...this.
1123 (the_low_target): Remove the op field.
1124 * linux-ia64-low.cc (class ia64_target)
1125 <low_breakpoint_at>: Declare.
1126 (ia64_target::low_breakpoint_at): Define.
1127 * linux-m32r-low.cc (class m32r_target)
1128 <low_breakpoint_at>: Declare.
1129 (m32r_breakpoint_at): Turn into...
1130 (m32r_target::low_breakpoint_at): ...this.
1131 (the_low_target): Remove the op field.
1132 * linux-m68k-low.cc (class m68k_target)
1133 <low_breakpoint_at>: Declare.
1134 (m68k_breakpoint_at): Turn into...
1135 (m68k_target::low_breakpoint_at): ...this.
1136 (the_low_target): Remove the op field.
1137 * linux-mips-low.cc (class mips_target)
1138 <low_breakpoint_at>: Declare.
1139 (mips_breakpoint_at): Turn into...
1140 (mips_target::low_breakpoint_at): ...this.
1141 (the_low_target): Remove the op field.
1142 * linux-nios2-low.cc (class nios2_target)
1143 <low_breakpoint_at>: Declare.
1144 (nios2_breakpoint_at): Turn into...
1145 (nios2_target::low_breakpoint_at): ...this.
1146 (the_low_target): Remove the op field.
1147 * linux-ppc-low.cc (class ppc_target)
1148 <low_breakpoint_at>: Declare.
1149 (ppc_breakpoint_at): Turn into...
1150 (ppc_target::low_breakpoint_at): ...this.
1151 (the_low_target): Remove the op field.
1152 * linux-riscv-low.cc (class riscv_target)
1153 <low_breakpoint_at>: Declare.
1154 (riscv_breakpoint_at): Turn into...
1155 (riscv_target::low_breakpoint_at): ...this.
1156 (the_low_target): Remove the op field.
1157 * linux-s390-low.cc (class s390_target)
1158 <low_breakpoint_at>: Declare.
1159 (s390_breakpoint_at): Turn into...
1160 (s390_target::low_breakpoint_at): ...this.
1161 (the_low_target): Remove the op field.
1162 * linux-sh-low.cc (class sh_target)
1163 <low_breakpoint_at>: Declare.
1164 (sh_breakpoint_at): Turn into...
1165 (sh_target::low_breakpoint_at): ...this.
1166 (the_low_target): Remove the op field.
1167 * linux-sparc-low.cc (class sparc_target)
1168 <low_breakpoint_at>: Declare.
1169 (sparc_breakpoint_at): Turn into...
1170 (sparc_target::low_breakpoint_at): ...this.
1171 (the_low_target): Remove the op field.
1172 * linux-tic6x-low.cc (class tic6x_target)
1173 <low_breakpoint_at>: Declare.
1174 (tic6x_breakpoint_at): Turn into...
1175 (tic6x_target::low_breakpoint_at): ...this.
1176 (the_low_target): Remove the op field.
1177 * linux-tile-low.cc (class tile_target)
1178 <low_breakpoint_at>: Declare.
1179 (tile_breakpoint_at): Turn into...
1180 (tile_target::low_breakpoint_at): ...this.
1181 (the_low_target): Remove the op field.
1182 * linux-xtensa-low.cc (class xtensa_target)
1183 <low_breakpoint_at>: Declare.
1184 (xtensa_breakpoint_at): Turn into...
1185 (xtensa_target::low_breakpoint_at): ...this.
1186 (the_low_target): Remove the op field.
1187
d4807ea2
TBA
11882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1189
1190 Turn the 'decr_pc_after_break' linux_target_ops field into
1191 a method of linux_process_target.
1192
1193 * linux-low.h (struct linux_target_ops)
1194 <decr_pc_after_break>: Remove.
1195 (class linux_process_target) <low_decr_pc_after_break>: New method
1196 declaration.
1197 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1198 New method implementation.
1199
1200 Update the users below.
1201
1202 (linux_process_target::save_stop_reason)
1203 (linux_process_target::wait_1)
1204 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1205 New declaration.
1206 (x86_target::low_decr_pc_after_break): New method implementation.
1207 (the_low_target): Remove the field.
1208 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1209 New declaration.
1210 (bfin_target::low_decr_pc_after_break): New method implementation.
1211 (the_low_target): Remove the field.
1212 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1213 New declaration.
1214 (m68k_target::low_decr_pc_after_break): New method implementation.
1215 (the_low_target): Remove the field.
1216 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1217 New declaration.
1218 (s390_target::low_decr_pc_after_break): New method implementation.
1219 (the_low_target): Remove the field.
1220 * linux-aarch64-low.cc (the_low_target): Remove the field.
1221 * linux-arm-low.cc (the_low_target): Remove the field.
1222 * linux-cris-low.cc (the_low_target): Remove the field.
1223 * linux-crisv32-low.cc (the_low_target): Remove the field.
1224 * linux-m32r-low.cc (the_low_target): Remove the field.
1225 * linux-mips-low.cc (the_low_target): Remove the field.
1226 * linux-nios2-low.cc (the_low_target): Remove the field.
1227 * linux-ppc-low.cc (the_low_target): Remove the field.
1228 * linux-riscv-low.cc (the_low_target): Remove the field.
1229 * linux-sh-low.cc (the_low_target): Remove the field.
1230 * linux-sparc-low.cc (the_low_target): Remove the field.
1231 * linux-tic6x-low.cc (the_low_target): Remove the field.
1232 * linux-tile-low.cc (the_low_target): Remove the field.
1233 * linux-xtensa-low.cc (the_low_target): Remove the field.
1234
7582c77c
TBA
12352020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1236
1237 Remove the 'supports_software_single_step' linux target op and let
1238 the concrete linux target define it by overriding the op in
1239 process_stratum_target.
1240 Turn the 'get_next_pcs' linux target op into a method of
1241 linux_process_target.
1242
1243 * linux-low.h (struct linux_target_ops): Remove the ops.
1244 (class linux_process_target) <supports_software_single_step>:
1245 Remove.
1246 <low_get_next_pcs>: Declare.
1247 * linux-low.cc (can_software_single_step): Remove.
1248 (linux_process_target::low_get_next_pcs): Define.
1249 (linux_process_target::supports_software_single_step): Remove.
1250
1251 Update the callers below.
1252
1253 (linux_process_target::handle_extended_wait)
1254 (linux_process_target::wait_1)
1255 (linux_process_target::install_software_single_step_breakpoints)
1256 (linux_process_target::single_step)
1257 (linux_process_target::thread_needs_step_over)
1258 (linux_process_target::proceed_one_lwp)
1259 (linux_process_target::supports_range_stepping)
1260
1261 * linux-x86-low.cc (the_low_target): Remove the op field.
1262 * linux-aarch64-low.cc (the_low_target): Ditto.
1263 * linux-bfin-low.cc (the_low_target): Ditto.
1264 * linux-cris-low.cc (the_low_target): Ditto.
1265 * linux-crisv32-low.cc (the_low_target): Ditto.
1266 * linux-m32r-low.cc (the_low_target): Ditto.
1267 * linux-m68k-low.cc (the_low_target): Ditto.
1268 * linux-mips-low.cc (the_low_target): Ditto.
1269 * linux-nios2-low.cc (the_low_target): Ditto.
1270 * linux-ppc-low.cc (the_low_target): Ditto.
1271 * linux-riscv-low.cc (the_low_target): Ditto.
1272 * linux-s390-low.cc (the_low_target): Ditto.
1273 * linux-sh-low.cc (the_low_target): Ditto.
1274 * linux-sparc-low.cc (the_low_target): Ditto.
1275 * linux-tic6x-low.cc (the_low_target): Ditto.
1276 * linux-tile-low.cc (the_low_target): Ditto.
1277 * linux-xtensa-low.cc (the_low_target): Ditto.
1278 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1279 <supports_software_single_step>: Declare.
1280 (arm_target::supports_software_single_step): Define.
1281 (arm_gdbserver_get_next_pcs): Turn into...
1282 (arm_target::low_get_next_pcs): ...this.
1283 (the_low_target): Remove the op field.
1284
3ca4edb6
TBA
12852020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1286
1287 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1288 the concrete linux target define it by overriding the op
1289 in process_stratum_target.
1290
1291 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1292 Remove.
1293 * linux-low.h (struct linux_target_ops): Remove the op.
1294 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1295 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1296 Declare.
1297 (x86_sw_breakpoint_from_kind): Turn into...
1298 (x86_target::sw_breakpoint_from_kind): ...this.
1299 (the_low_target): Remove the op field.
1300 * linux-aarch64-low.cc (class aarch64_target)
1301 <sw_breakpoint_from_kind>: Declare.
1302 (aarch64_sw_breakpoint_from_kind): Turn into...
1303 (aarch64_target::sw_breakpoint_from_kind): ...this.
1304 (the_low_target): Remove the op field.
1305 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1306 Declare.
1307 (arm_target::sw_breakpoint_from_kind): Define.
1308 (the_low_target): Remove the op field.
1309 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1310 Declare.
1311 (bfin_sw_breakpoint_from_kind): Turn into...
1312 (bfin_target::sw_breakpoint_from_kind): ...this.
1313 (the_low_target): Remove the op field.
1314 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1315 Declare.
1316 (cris_sw_breakpoint_from_kind): Turn into...
1317 (cris_target::sw_breakpoint_from_kind): ...this.
1318 (the_low_target): Remove the op field.
1319 * linux-crisv32-low.cc (class crisv32_target)
1320 <sw_breakpoint_from_kind>: Declare.
1321 (cris_sw_breakpoint_from_kind): Turn into...
1322 (crisv32_target::sw_breakpoint_from_kind): ...this.
1323 (the_low_target): Remove the op field.
1324 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1325 Declare.
1326 (ia64_target::sw_breakpoint_from_kind): Define.
1327 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1328 Declare.
1329 (m32r_sw_breakpoint_from_kind): Turn into...
1330 (m32r_target::sw_breakpoint_from_kind): ...this.
1331 (the_low_target): Remove the op field.
1332 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1333 Declare.
1334 (m68k_sw_breakpoint_from_kind): Turn into...
1335 (m68k_target::sw_breakpoint_from_kind): ...this.
1336 (the_low_target): Remove the op field.
1337 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1338 Declare.
1339 (mips_sw_breakpoint_from_kind): Turn into...
1340 (mips_target::sw_breakpoint_from_kind): ...this.
1341 (the_low_target): Remove the op field.
1342 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1343 Declare.
1344 (nios2_sw_breakpoint_from_kind): Turn into...
1345 (nios2_target::sw_breakpoint_from_kind): ...this.
1346 (the_low_target): Remove the op field.
1347 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1348 Declare.
1349 (ppc_sw_breakpoint_from_kind): Turn into...
1350 (ppc_target::sw_breakpoint_from_kind): ...this.
1351 (the_low_target): Remove the op field.
1352 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1353 Declare.
1354 (riscv_sw_breakpoint_from_kind): Turn into...
1355 (riscv_target::sw_breakpoint_from_kind): ...this.
1356 (the_low_target): Remove the op field.
1357 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1358 Declare.
1359 (s390_sw_breakpoint_from_kind): Turn into...
1360 (s390_target::sw_breakpoint_from_kind): ...this.
1361 (the_low_target): Remove the op field.
1362 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1363 Declare.
1364 (sh_sw_breakpoint_from_kind): Turn into...
1365 (sh_target::sw_breakpoint_from_kind): ...this.
1366 (the_low_target): Remove the op field.
1367 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1368 Declare.
1369 (sparc_sw_breakpoint_from_kind): Turn into...
1370 (sparc_target::sw_breakpoint_from_kind): ...this.
1371 (the_low_target): Remove the op field.
1372 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1373 Declare.
1374 (tic6x_sw_breakpoint_from_kind): Turn into...
1375 (tic6x_target::sw_breakpoint_from_kind): ...this.
1376 (the_low_target): Remove the op field.
1377 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1378 Declare.
1379 (tile_sw_breakpoint_from_kind): Turn into...
1380 (tile_target::sw_breakpoint_from_kind): ...this.
1381 (the_low_target): Remove the op field.
1382 * linux-xtensa-low.cc (class xtensa_target)
1383 <sw_breakpoint_from_kind>: Declare.
1384 (xtensa_sw_breakpoint_from_kind): Turn into...
1385 (xtensa_target::sw_breakpoint_from_kind): ...this.
1386 (the_low_target): Remove the op field.
1387
06250e4e
TBA
13882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1389
1390 Remove the 'breakpoint_kind_from_pc' and
1391 'breakpoint_kind_from_current_state' linux target ops, and let the
1392 concrete linux target define them by overriding the ops of
1393 process_stratum_target.
1394
1395 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1396 Remove.
1397 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1398 * linux-low.h (struct linux_target_ops): Remove ops.
1399 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1400 <breakpoint_kind_from_current_state>: Remove.
1401 * linux-x86-low.cc (the_low_target): Remove the op fields.
1402 * linux-bfin-low.cc (the_low_target): Ditto.
1403 * linux-cris-low.cc (the_low_target): Ditto.
1404 * linux-crisv32-low.cc (the_low_target): Ditto.
1405 * linux-m32r-low.cc (the_low_target): Ditto.
1406 * linux-m68k-low.cc (the_low_target): Ditto.
1407 * linux-mips-low.cc (the_low_target): Ditto.
1408 * linux-nios2-low.cc (the_low_target): Ditto.
1409 * linux-ppc-low.cc (the_low_target): Ditto.
1410 * linux-s390-low.cc (the_low_target): Ditto.
1411 * linux-sh-low.cc (the_low_target): Ditto.
1412 * linux-sparc-low.cc (the_low_target): Ditto.
1413 * linux-tic6x-low.cc (the_low_target): Ditto.
1414 * linux-tile-low.cc (the_low_target): Ditto.
1415 * linux-xtensa-low.cc (the_low_target): Ditto.
1416 * linux-aarch64-low.cc (class aarch64_target)
1417 <breakpoint_kind_from_pc>
1418 <breakpoint_kind_from_current_state>: Declare.
1419 (aarch64_breakpoint_kind_from_pc): Turn into...
1420 (aarch64_target::breakpoint_kind_from_pc): ...this.
1421 (aarch64_breakpoint_kind_from_current_state): Turn into...
1422 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1423 (the_low_target): Remove the op fields.
1424 * linux-arm-low.cc (class arm_target):
1425 <breakpoint_kind_from_pc>
1426 <breakpoint_kind_from_current_state>: Declare.
1427 (arm_target::breakpoint_kind_from_pc): Define.
1428 (arm_target::breakpoint_kind_from_current_state): Define.
1429 (the_low_target): Remove the op fields.
1430 * linux-riscv-low.cc (class riscv_target):
1431 <breakpoint_kind_from_pc>: Declare.
1432 (riscv_breakpoint_kind_from_pc): Turn into...
1433 (riscv_target::breakpoint_kind_from_pc): ...this.
1434 (the_low_target): Remove the op fields.
1435
bf9ae9d8
TBA
14362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1437
1438 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1439 of linux_process_target.
1440
1441 * linux-low.h (struct linux_target_ops): Remove the ops.
1442 (class linux_process_target) <low_supports_breakpoints>
1443 <low_get_pc>
1444 <low_set_pc>: Declare.
1445 * linux-low.cc (supports_breakpoints): Turn into...
1446 (linux_process_target::low_supports_breakpoints): ...this.
1447 (linux_process_target::low_get_pc): Define.
1448 (linux_process_target::low_set_pc): Define.
1449
1450 Update the callers below.
1451
1452 (linux_process_target::get_pc)
1453 (linux_process_target::save_stop_reason)
1454 (linux_process_target::maybe_move_out_of_jump_pad)
1455 (linux_process_target::wait_1)
1456 (linux_process_target::resume_one_lwp_throw)
1457 (linux_process_target::resume)
1458 (linux_process_target::proceed_all_lwps)
1459 (linux_process_target::read_pc)
1460 (linux_process_target::write_pc)
1461
1462 * linux-x86-low.cc (class linux_process_target)
1463 <low_supports_breakpoints>
1464 <low_get_pc>
1465 <low_set_pc>: Declare.
1466 (x86_target::low_supports_breakpoints): Define.
1467 (x86_get_pc): Turn into...
1468 (x86_target::low_get_pc): ...this.
1469 (x86_set_pc): Turn into...
1470 (x86_target::low_set_pc): ...this.
1471 (the_low_target): Remove the op fields.
1472 * linux-arm-low.cc (class arm_target)
1473 <low_supports_breakpoints>
1474 <low_get_pc>
1475 <low_set_pc>: Declare.
1476 (arm_target::low_supports_breakpoints)
1477 (arm_target::low_get_pc)
1478 (arm_target::low_set_pc): Define.
1479 (the_low_target): Remove the op fields.
1480 * linux-bfin-low.cc (class bfin_target)
1481 <low_supports_breakpoints>
1482 <low_get_pc>
1483 <low_set_pc>: Declare.
1484 (bfin_target::low_supports_breakpoints)
1485 (bfin_target::low_get_pc)
1486 (bfin_target::low_set_pc): Define.
1487 (the_low_target): Remove the op fields.
1488 * linux-cris-low.cc (class cris_target)
1489 <low_supports_breakpoints>
1490 <low_get_pc>
1491 <low_set_pc>: Declare.
1492 (cris_target::low_supports_breakpoints)
1493 (cris_target::low_get_pc)
1494 (cris_target::low_set_pc): Define.
1495 (the_low_target): Remove the op fields.
1496 * linux-crisv32-low.cc (class crisv32_target)
1497 <low_supports_breakpoints>
1498 <low_get_pc>
1499 <low_set_pc>: Declare.
1500 (crisv32_target::low_supports_breakpoints)
1501 (crisv32_target::low_get_pc)
1502 (crisv32_target::low_set_pc): Define.
1503 (the_low_target): Remove the op fields.
1504 * linux-m32r-low.cc (class m32r_target)
1505 <low_supports_breakpoints>
1506 <low_get_pc>
1507 <low_set_pc>: Declare.
1508 (m32r_target::low_supports_breakpoints)
1509 (m32r_target::low_get_pc)
1510 (m32r_target::low_set_pc): Define.
1511 (the_low_target): Remove the op fields.
1512 * linux-m68k-low.cc (class m68k_target)
1513 <low_supports_breakpoints>
1514 <low_get_pc>
1515 <low_set_pc>: Declare.
1516 (m68k_target::low_supports_breakpoints)
1517 (m68k_target::low_get_pc)
1518 (m68k_target::low_set_pc): Define.
1519 (the_low_target): Remove the op fields.
1520 * linux-nios2-low.cc (class nios2_target)
1521 <low_supports_breakpoints>
1522 <low_get_pc>
1523 <low_set_pc>: Declare.
1524 (nios2_target::low_supports_breakpoints)
1525 (nios2_target::low_get_pc)
1526 (nios2_target::low_set_pc): Define.
1527 (the_low_target): Remove the op fields.
1528 * linux-sh-low.cc (class sh_target)
1529 <low_supports_breakpoints>
1530 <low_get_pc>
1531 <low_set_pc>: Declare.
1532 (sh_target::low_supports_breakpoints)
1533 (sh_target::low_get_pc)
1534 (sh_target::low_set_pc): Define.
1535 (the_low_target): Remove the op fields.
1536 * linux-xtensa-low.cc (class xtensa_target)
1537 <low_supports_breakpoints>
1538 <low_get_pc>
1539 <low_set_pc>: Declare.
1540 (xtensa_target::low_supports_breakpoints)
1541 (xtensa_target::low_get_pc)
1542 (xtensa_target::low_set_pc): Define.
1543 (the_low_target): Remove the op fields.
1544 * linux-sparc-low.cc (class sparc_target)
1545 <low_supports_breakpoints>
1546 <low_get_pc>: Declare.
1547 (sparc_target::low_supports_breakpoints)
1548 (sparc_target::low_get_pc): Define.
1549 (the_low_target): Remove the op fields.
1550 * linux-tile-low.cc (class tile_target)
1551 <low_supports_breakpoints>
1552 <low_get_pc>
1553 <low_set_pc>: Declare.
1554 (tile_target::low_supports_breakpoints)
1555 (tile_target::low_get_pc)
1556 (tile_target::low_set_pc): Define.
1557 (the_low_target): Remove the op fields.
1558 * linux-aarch64-low.cc (class aarch64_target)
1559 <low_supports_breakpoints>
1560 <low_get_pc>
1561 <low_set_pc>: Declare.
1562 (aarch64_target::low_supports_breakpoints): Define.
1563 (aarch64_get_pc): Turn into...
1564 (aarch64_target::low_get_pc): ...this.
1565 (aarch64_set_pc): Turn into...
1566 (aarch64_target::low_set_pc): ...this.
1567 (the_low_target): Remove the op fields.
1568 * linux-mips-low.cc (class mips_target)
1569 <low_supports_breakpoints>
1570 <low_get_pc>
1571 <low_set_pc>: Declare.
1572 (mips_target::low_supports_breakpoints): Define.
1573 (mips_get_pc): Turn into...
1574 (mips_target::low_get_pc): ...this.
1575 (mips_set_pc): Turn into...
1576 (mips_target::low_set_pc): ...this.
1577 (the_low_target): Remove the op fields.
1578 * linux-ppc-low.cc (class ppc_target)
1579 <low_supports_breakpoints>
1580 <low_get_pc>
1581 <low_set_pc>: Declare.
1582 (ppc_target::low_supports_breakpoints): Define.
1583 (ppc_get_pc): Turn into...
1584 (ppc_target::low_get_pc): ...this.
1585 (ppc_set_pc): Turn into...
1586 (ppc_target::low_set_pc): ...this.
1587 (the_low_target): Remove the op fields.
1588 * linux-riscv-low.cc (class riscv_target)
1589 <low_supports_breakpoints>
1590 <low_get_pc>
1591 <low_set_pc>: Declare.
1592 (riscv_target::low_supports_breakpoints): Define.
1593 (riscv_get_pc): Turn into...
1594 (riscv_target::low_get_pc): ...this.
1595 (riscv_set_pc): Turn into...
1596 (riscv_target::low_set_pc): ...this.
1597 (the_low_target): Remove the op fields.
1598 * linux-s390-low.cc (class s390_target)
1599 <low_supports_breakpoints>
1600 <low_get_pc>
1601 <low_set_pc>: Declare.
1602 (s390_target::low_supports_breakpoints): Define.
1603 (s390_get_pc): Turn into...
1604 (s390_target::low_get_pc): ...this.
1605 (s390_set_pc): Turn into...
1606 (s390_target::low_set_pc): ...this.
1607 (the_low_target): Remove the op fields.
1608 * linux-tic6x-low.cc (class tic6x_target)
1609 <low_supports_breakpoints>
1610 <low_get_pc>
1611 <low_set_pc>: Declare.
1612 (tic6x_target::low_supports_breakpoints): Define.
1613 (tic6x_get_pc): Turn into...
1614 (tic6x_target::low_get_pc): ...this.
1615 (tic6x_set_pc): Turn into...
1616 (tic6x_target::low_set_pc): ...this.
1617 (the_low_target): Remove the op fields.
1618
df95181f
TBA
16192020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1620
1621 Turn some more static methods in linux-low into private methods
1622 of linux_process_target.
1623
1624 * linux-low.cc (get_pc): Turn into...
1625 (linux_process_target::get_pc): ...this.
1626 (save_stop_reason): Turn into...
1627 (linux_process_target::save_stop_reason): ...this.
1628 (thread_still_has_status_pending_p): Turn into...
1629 (linux_process_target::thread_still_has_status_pending): ...this.
1630 (status_pending_p_callback): Turn into...
1631 (linux_process_target::status_pending_p_callback): ...this.
1632 (resume_stopped_resumed_lwps): Turn into...
1633 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1634 (install_software_single_step_breakpoints): Turn into...
1635 (linux_process_target::install_software_single_step_breakpoints):
1636 ...this.
1637 (single_step): Turn into...
1638 (linux_process_target::single_step): ...this.
1639 (linux_resume_one_lwp_throw): Turn into...
1640 (linux_process_target::resume_one_lwp_throw): ...this.
1641 (linux_resume_one_lwp): Turn into...
1642 (linux_process_target::resume_one_lwp): ...this.
1643 (resume_status_pending_p): Turn into...
1644 (linux_process_target::resume_status_pending): ...this.
1645 (need_step_over_p): Turn into...
1646 (linux_process_target::thread_needs_step_over): ...this.
1647 (linux_resume_one_thread): Turn into...
1648 (linux_process_target::resume_one_thread): ...this.
1649 (proceed_one_lwp): Turn into...
1650 (linux_process_target::proceed_one_lwp): ...this.
1651 (unsuspend_and_proceed_one_lwp): Turn into...
1652 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1653
1654 Update the calls/references to the above functions below.
1655
1656 (linux_process_target::handle_extended_wait)
1657 (linux_process_target::filter_event)
1658 (linux_process_target::wait_for_event_filtered)
1659 (linux_process_target::wait_1)
1660 (linux_process_target::move_out_of_jump_pad)
1661 (linux_process_target::start_step_over)
1662 (linux_process_target::resume)
1663 (linux_process_target::proceed_all_lwps)
1664 (regsets_store_inferior_registers)
1665 (linux_process_target::store_register)
1666
1667 * linux-low.h (class linux_process_target)
1668 <get_pc>
1669 <save_stop_reason>
1670 <thread_still_has_status_pending>
1671 <status_pending_p_callback>
1672 <resume_stopped_resumed_lwps>
1673 <install_software_single_step_breakpoints>
1674 <single_step>
1675 <resume_one_lwp_throw>
1676 <resume_one_lwp>
1677 <resume_status_pending>
1678 <thread_needs_step_over>
1679 <resume_one_thread>
1680 <proceed_one_lwp>
1681 <unsuspend_and_proceed_one_lwp>: Declare.
1682
bd70b1f2
TBA
16832020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1684
1685 Turn the 'fetch_register' linux target op into a method of
1686 linux_process_target.
1687
1688 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1689 (class linux_process_target) <low_fetch_register>: Declare.
1690 * linux-x86-low.cc (the_low_target)
1691 * linux-aarch64-low.cc (the_low_target)
1692 * linux-arm-low.cc (the_low_target)
1693 * linux-bfin-low.cc (the_low_target)
1694 * linux-cris-low.cc (the_low_target)
1695 * linux-crisv32-low.cc (the_low_target)
1696 * linux-m32r-low.cc (the_low_target)
1697 * linux-m68k-low.cc (the_low_target)
1698 * linux-nios2-low.cc (the_low_target)
1699 * linux-ppc-low.cc (the_low_target)
1700 * linux-s390-low.cc (the_low_target)
1701 * linux-sh-low.cc (the_low_target)
1702 * linux-sparc-low.cc (the_low_target)
1703 * linux-tic6x-low.cc (the_low_target)
1704 * linux-tile-low.cc (the_low_target)
1705 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1706 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1707 Declare.
1708 (ia64_fetch_register): Turn into...
1709 (ia64_target::low_fetch_register): ...this.
1710 (the_low_target): Remove the op field.
1711 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1712 Declare.
1713 (mips_fetch_register): Turn into...
1714 (mips_target::low_fetch_register): ...this.
1715 (the_low_target): Remove the op field.
1716 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1717 Declare.
1718 (riscv_fetch_register): Turn into...
1719 (riscv_target::low_fetch_register): ...this.
1720 (the_low_target): Remove the op field.
1721
1722 Update the callers below.
1723
1724 * linux-low.cc (linux_process_target::fetch_registers)
1725 (linux_process_target::low_fetch_register)
1726
daca57a7
TBA
17272020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1728
1729 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1730 linux target ops into methods of linux_process_target.
1731
1732 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1733 (class linux_process_target) <fetch_register>
1734 <store_register>
1735 <usr_fetch_inferior_registers>
1736 <usr_store_inferior_registers>
1737 <low_cannot_fetch_register>
1738 <low_cannot_fetch_register> Declare.
1739 * linux-low.cc (fetch_register): Turn into...
1740 (linux_process_target::fetch_register): ...this.
1741 (store_register): Turn into ...
1742 (linux_process_target::store_register): ...this.
1743 (usr_fetch_inferior_registers): Turn into...
1744 (linux_process_target::usr_fetch_inferior_registers): ...this.
1745 (usr_store_inferior_registers): Turn into...
1746 (linux_process_target::usr_store_inferior_registers): ...this.
1747 * linux-x86-low.cc (class x86_target)
1748 <low_cannot_fetch_register>
1749 <low_cannot_store_register>: Declare.
1750 (x86_cannot_store_register): Turn into...
1751 (x86_target::low_cannot_store_register): ...this.
1752 (x86_cannot_fetch_register): Turn into...
1753 (x86_target::low_cannot_fetch_register): ...this.
1754 (the_low_target): Remove the target op fields.
1755 * linux-aarch64-low.cc (class aarch64_target)
1756 <low_cannot_fetch_register>
1757 <low_cannot_store_register>: Declare.
1758 (aarch64_target::low_cannot_fetch_register)
1759 (aarch64_target::low_cannot_store_register): Define.
1760 (the_low_target): Remove the op fields.
1761 * linux-arm-low.cc (class arm_target)
1762 <low_cannot_fetch_register>
1763 <low_cannot_store_register>: Declare.
1764 (arm_cannot_fetch_register): Turn into...
1765 (arm_target::low_cannot_fetch_register): ...this.
1766 (arm_cannot_store_register): Turn into...
1767 (arm_target::low_cannot_store_register): ...this.
1768 (the_low_target): Remove the op fields.
1769 * linux-bfin-low.cc (class bfin_target)
1770 <low_cannot_fetch_register>
1771 <low_cannot_store_register>: Declare.
1772 (bfin_cannot_fetch_register): Turn into...
1773 (bfin_target::low_cannot_fetch_register): ...this.
1774 (bfin_cannot_store_register): Turn into...
1775 (bfin_target::low_cannot_store_register): ...this.
1776 (the_low_target): Remove the op fields.
1777 * linux-cris-low.cc (class cris_target)
1778 <low_cannot_fetch_register>
1779 <low_cannot_store_register>: Declare.
1780 (cris_cannot_fetch_register): Turn into...
1781 (cris_target::low_cannot_fetch_register): ...this.
1782 (cris_cannot_store_register): Turn into...
1783 (cris_target::low_cannot_store_register): ...this.
1784 (the_low_target): Remove the op fields.
1785 * linux-crisv32-low.cc (class crisv32_target)
1786 <low_cannot_fetch_register>
1787 <low_cannot_store_register>: Declare.
1788 (crisv32_target::low_cannot_fetch_register)
1789 (crisv32_target::low_cannot_store_register): Define.
1790 (the_low_target): Remove the op fields.
1791 * linux-ia64-low.cc (class ia64_target)
1792 <low_cannot_fetch_register>
1793 <low_cannot_store_register>: Declare.
1794 (ia64_cannot_fetch_register): Turn into...
1795 (ia64_target::low_cannot_fetch_register): ...this.
1796 (ia64_cannot_store_register): Turn into...
1797 (ia64_target::low_cannot_store_register): ...this.
1798 (the_low_target): Remove the op fields.
1799 * linux-m32r-low.cc (class m32r_target)
1800 <low_cannot_fetch_register>
1801 <low_cannot_store_register>: Declare.
1802 (m32r_cannot_fetch_register): Turn into...
1803 (m32r_target::low_cannot_fetch_register): ...this.
1804 (m32r_cannot_store_register): Turn into...
1805 (m32r_target::low_cannot_store_register): ...this.
1806 (the_low_target): Remove the op fields.
1807 * linux-m68k-low.cc (class m68k_target)
1808 <low_cannot_fetch_register>
1809 <low_cannot_store_register>: Declare.
1810 (m68k_cannot_fetch_register): Turn into...
1811 (m68k_target::low_cannot_fetch_register): ...this.
1812 (m68k_cannot_store_register): Turn into...
1813 (m68k_target::low_cannot_store_register): ...this.
1814 (the_low_target): Remove the op fields.
1815 * linux-mips-low.cc (class mips_target)
1816 <low_cannot_fetch_register>
1817 <low_cannot_store_register>: Declare.
1818 (mips_cannot_fetch_register): Turn into...
1819 (mips_target::low_cannot_fetch_register): ...this.
1820 (mips_cannot_store_register): Turn into...
1821 (mips_target::low_cannot_store_register): ...this.
1822 (get_usrregs_info): Inline at the call sites in
1823 low_cannot_fetch_register and low_cannot_store_register,
1824 and remove.
1825 (the_low_target): Remove the op fields.
1826 * linux-nios2-low.cc (class nios2_target)
1827 <low_cannot_fetch_register>
1828 <low_cannot_store_register>: Declare.
1829 (nios2_cannot_fetch_register): Turn into...
1830 (nios2_target::low_cannot_fetch_register): ...this.
1831 (nios2_cannot_store_register): Turn into...
1832 (nios2_target::low_cannot_store_register): ...this.
1833 (the_low_target): Remove the op fields.
1834 * linux-ppc-low.cc (class ppc_target)
1835 <low_cannot_fetch_register>
1836 <low_cannot_store_register>: Declare.
1837 (ppc_cannot_fetch_register): Turn into...
1838 (ppc_target::low_cannot_fetch_register): ...this.
1839 (ppc_cannot_store_register): Turn into...
1840 (ppc_target::low_cannot_store_register): ...this.
1841 (the_low_target): Remove the op fields.
1842 * linux-riscv-low.cc (class riscv_target)
1843 <low_cannot_fetch_register>
1844 <low_cannot_store_register>: Declare.
1845 (riscv_target::low_cannot_fetch_register)
1846 (riscv_target::low_cannot_store_register): Define.
1847 (the_low_target): Remove the op fields.
1848 * linux-s390-low.cc (class s390_target)
1849 <low_cannot_fetch_register>
1850 <low_cannot_store_register>: Declare.
1851 (s390_cannot_fetch_register): Turn into...
1852 (s390_target::low_cannot_fetch_register): ...this.
1853 (s390_cannot_store_register): Turn into...
1854 (s390_target::low_cannot_store_register): ...this.
1855 (the_low_target): Remove the op fields.
1856 * linux-sh-low.cc (class sh_target)
1857 <low_cannot_fetch_register>
1858 <low_cannot_store_register>: Declare.
1859 (sh_cannot_fetch_register): Turn into...
1860 (sh_target::low_cannot_fetch_register): ...this.
1861 (sh_cannot_store_register): Turn into...
1862 (sh_target::low_cannot_store_register): ...this.
1863 (the_low_target): Remove the op fields.
1864 * linux-sparc-low.cc (class sparc_target)
1865 <low_cannot_fetch_register>
1866 <low_cannot_store_register>: Declare.
1867 (sparc_cannot_fetch_register): Turn into...
1868 (sparc_target::low_cannot_fetch_register): ...this.
1869 (sparc_cannot_store_register): Turn into...
1870 (sparc_target::low_cannot_store_register): ...this.
1871 (the_low_target): Remove the op fields.
1872 * linux-tic6x-low.cc (class tic6x_target)
1873 <low_cannot_fetch_register>
1874 <low_cannot_store_register>: Declare.
1875 (tic6x_cannot_fetch_register): Turn into...
1876 (tic6x_target::low_cannot_fetch_register): ...this.
1877 (tic6x_cannot_store_register): Turn into...
1878 (tic6x_target::low_cannot_store_register): ...this.
1879 (the_low_target): Remove the op fields.
1880 * linux-tile-low.cc (class tile_target)
1881 <low_cannot_fetch_register>
1882 <low_cannot_store_register>: Declare.
1883 (tile_cannot_fetch_register): Turn into...
1884 (tile_target::low_cannot_fetch_register): ...this.
1885 (tile_cannot_store_register): Turn into...
1886 (tile_target::low_cannot_store_register): ...this.
1887 (the_low_target): Remove the op fields.
1888 * linux-xtensa-low.cc (class xtensa_target)
1889 <low_cannot_fetch_register>
1890 <low_cannot_store_register>: Declare.
1891 (xtensa_target::low_cannot_fetch_register)
1892 (xtensa_target::low_cannot_store_register): Define.
1893 (the_low_target): Remove the op fields.
1894
aa8d21c9
TBA
18952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1896
1897 Turn the 'regs_info' linux target op into a method of
1898 linux_process_target.
1899
1900 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1901 (class linux_process_target) <get_regs_info>: Define.
1902
1903 Update the callers below.
1904
1905 * linux-low.cc (linux_process_target::fetch_registers)
1906 (linux_process_target::store_registers)
1907 * proc-service.cc (gregset_info)
1908
1909 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1910 (x86_linux_regs_info): Turn into ...
1911 (x86_target::get_regs_info): ...this.
1912 (the_low_target): Remove the op field.
1913 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1914 Declare.
1915 (aarch64_regs_info): Turn into ...
1916 (aarch64_target::get_regs_info): ...this.
1917 (the_low_target): Remove the op field.
1918 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1919 (arm_regs_info): Turn into ...
1920 (arm_target::get_regs_info): ...this.
1921 (the_low_target): Remove the op field.
1922 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1923 (bfin_regs_info): Turn into ...
1924 (bfin_target::get_regs_info): ...this.
1925 (the_low_target): Remove the op field.
1926 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1927 (cris_regs_info): Turn into ...
1928 (cris_target::get_regs_info): ...this.
1929 (the_low_target): Remove the op field.
1930 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1931 Declare.
1932 (crisv32_regs_info): Turn into ...
1933 (crisv32_target::get_regs_info): ...this.
1934 (the_low_target): Remove the op field.
1935 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1936 (ia64_regs_info): Turn into ...
1937 (ia64_target::get_regs_info): ...this.
1938 (the_low_target): Remove the op field.
1939 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1940 (m32r_regs_info): Turn into ...
1941 (m32r_target::get_regs_info): ...this.
1942 (the_low_target): Remove the op field.
1943 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1944 (m68k_regs_info): Turn into ...
1945 (m68k_target::get_regs_info): ...this.
1946 (the_low_target): Remove the op field.
1947 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1948 (mips_regs_info): Turn into ...
1949 (mips_target::get_regs_info): ...this.
1950 (the_low_target): Remove the op field.
1951 (get_usrregs_info): Update the call to the op.
1952 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1953 (nios2_regs_info): Turn into ...
1954 (nios2_target::get_regs_info): ...this.
1955 (the_low_target): Remove the op field.
1956 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1957 (ppc_regs_info): Turn into ...
1958 (ppc_target::get_regs_info): ...this.
1959 (the_low_target): Remove the op field.
1960 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1961 (riscv_regs_info): Turn into ...
1962 (riscv_target::get_regs_info): ...this.
1963 (the_low_target): Remove the op field.
1964 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1965 (s390_regs_info): Turn into ...
1966 (s390_target::get_regs_info): ...this.
1967 (the_low_target): Remove the op field.
1968 (s390_collect_ptrace_register)
1969 (s390_supply_ptrace_register)
1970 (s390_fill_gregset): Update the call to the op.
1971 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1972 (sh_regs_info): Turn into ...
1973 (sh_target::get_regs_info): ...this.
1974 (the_low_target): Remove the op field.
1975 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1976 (sparc_regs_info): Turn into ...
1977 (sparc_target::get_regs_info): ...this.
1978 (the_low_target): Remove the op field.
1979 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1980 (tic6x_regs_info): Turn into ...
1981 (tic6x_target::get_regs_info): ...this.
1982 (the_low_target): Remove the op field.
1983 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1984 (tile_regs_info): Turn into ...
1985 (tile_target::get_regs_info): ...this.
1986 (the_low_target): Remove the op field.
1987 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1988 Declare.
1989 (xtensa_regs_info): Turn into ...
1990 (xtensa_target::get_regs_info): ...this.
1991 (the_low_target): Remove the op field.
1992
797bcff5
TBA
19932020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1994
1995 Turn the 'arch_setup' linux target op into a method of
1996 linux_process_target.
1997
1998 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1999 (class linux_process_target) <arch_setup_thread>
2000 <low_arch_setup>: New declarations.
2001 * linux-low.cc (linux_arch_setup): Delete.
2002 (linux_arch_setup_thread): Turn into...
2003 (linux_process_target::arch_setup_thread): ... this.
2004
2005 Update the callers below.
2006
2007 (linux_process_target::handle_extended_wait)
2008 (linux_process_target::post_create_inferior)
2009 (linux_process_target::filter_event)
2010
2011 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2012 declaration.
2013 (x86_linux_update_xmltarget): Turn into...
2014 (x86_target::update_xmltarget): ...this.
2015 (x86_linux_process_qsupported): Update the call to
2016 x86_linux_update_xmltarget.
2017 (x86_arch_setup): Turn into ...
2018 (x86_target::low_arch_setup): ...this.
2019 (the_low_target): Remove the op field.
2020 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2021 declaration.
2022 (aarch64_arch_setup): Turn into ...
2023 (aarch64_target::low_arch_setup): ...this.
2024 (the_low_target): Remove the op field.
2025 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2026 declaration.
2027 (arm_arch_setup): Turn into ...
2028 (arm_target::low_arch_setup): ...this.
2029 (the_low_target): Remove the op field.
2030 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2031 declaration.
2032 (bfin_arch_setup): Turn into ...
2033 (bfin_target::low_arch_setup): ...this.
2034 (the_low_target): Remove the op field.
2035 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2036 declaration.
2037 (cris_arch_setup): Turn into ...
2038 (cris_target::low_arch_setup): ...this.
2039 (the_low_target): Remove the op field.
2040 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2041 declaration.
2042 (crisv32_arch_setup): Turn into ...
2043 (crisv32_target::low_arch_setup): ...this.
2044 (the_low_target): Remove the op field.
2045 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2046 declaration.
2047 (ia64_arch_setup): Turn into ...
2048 (ia64_target::low_arch_setup): ...this.
2049 (the_low_target): Remove the op field.
2050 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2051 declaration.
2052 (m32r_arch_setup): Turn into ...
2053 (m32r_target::low_arch_setup): ...this.
2054 (the_low_target): Remove the op field.
2055 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2056 declaration.
2057 (m68k_arch_setup): Turn into ...
2058 (m68k_target::low_arch_setup): ...this.
2059 (the_low_target): Remove the op field.
2060 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2061 declaration.
2062 (mips_arch_setup): Turn into ...
2063 (mips_target::low_arch_setup): ...this.
2064 (the_low_target): Remove the op field.
2065 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2066 declaration.
2067 (nios2_arch_setup): Turn into ...
2068 (nios2_target::low_arch_setup): ...this.
2069 (the_low_target): Remove the op field.
2070 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2071 declaration.
2072 (ppc_arch_setup): Turn into ...
2073 (ppc_target::low_arch_setup): ...this.
2074 (the_low_target): Remove the op field.
2075 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2076 declaration.
2077 (riscv_arch_setup): Turn into ...
2078 (riscv_target::low_arch_setup): ...this.
2079 (the_low_target): Remove the op field.
2080 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2081 declaration.
2082 (s390_arch_setup): Turn into ...
2083 (s390_target::low_arch_setup): ...this.
2084 (the_low_target): Remove the op field.
2085 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2086 declaration.
2087 (sh_arch_setup): Turn into ...
2088 (sh_target::low_arch_setup): ...this.
2089 (the_low_target): Remove the op field.
2090 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2091 declaration.
2092 (sparc_arch_setup): Turn into ...
2093 (sparc_target::low_arch_setup): ...this.
2094 (the_low_target): Remove the op field.
2095 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2096 declaration.
2097 (tic6x_arch_setup): Turn into ...
2098 (tic6x_target::low_arch_setup): ...this.
2099 (the_low_target): Remove the op field.
2100 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2101 declaration.
2102 (tile_arch_setup): Turn into ...
2103 (tile_target::low_arch_setup): ...this.
2104 (the_low_target): Remove the op field.
2105 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2106 declaration.
2107 (xtensa_arch_setup): Turn into ...
2108 (xtensa_target::low_arch_setup): ...this.
2109 (the_low_target): Remove the op field.
2110
ef0478f6
TBA
21112020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2112
2113 * linux-low.h (the_linux_target): New extern declaration.
2114 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2115 'the_target'.
2116 (the_linux_target): Remove.
2117 * linux-x86-low.cc (class x86_target): New class.
2118 (the_x86_target): New static object.
2119 (the_linux_target): Define as pointer to the_x86_target.
2120 * linux-aarch64-low.cc (class aarch64_target): New class.
2121 (the_aarch64_target): New static object.
2122 (the_linux_target): Define as pointer to the_aarch64_target.
2123 * linux-arm-low.cc (class arm_target): New class.
2124 (the_arm_target): New static object.
2125 (the_linux_target): Define as pointer to the_arm_target.
2126 * linux-bfin-low.cc (class bfin_target): New class.
2127 (the_bfin_target): New static object.
2128 (the_linux_target): Define as pointer to the_bfin_target.
2129 * linux-cris-low.cc (class cris_target): New class.
2130 (the_cris_target): New static object.
2131 (the_linux_target): Define as pointer to the_cris_target.
2132 * linux-crisv32-low.cc (class crisv32_target): New class.
2133 (the_crisv32_target): New static object.
2134 (the_linux_target): Define as pointer to the_crisv32_target.
2135 * linux-ia64-low.cc (class ia64_target): New class.
2136 (the_ia64_target): New static object.
2137 (the_linux_target): Define as pointer to the_ia64_target.
2138 * linux-m32r-low.cc (class m32r_target): New class.
2139 (the_m32r_target): New static object.
2140 (the_linux_target): Define as pointer to the_m32r_target.
2141 * linux-m68k-low.cc (class m68k_target): New class.
2142 (the_m68k_target): New static object.
2143 (the_linux_target): Define as pointer to the_m68k_target.
2144 * linux-mips-low.cc (class mips_target): New class.
2145 (the_mips_target): New static object.
2146 (the_linux_target): Define as pointer to the_mips_target.
2147 * linux-nios2-low.cc (class nios2_target): New class.
2148 (the_nios2_target): New static object.
2149 (the_linux_target): Define as pointer to the_nios2_target.
2150 * linux-ppc-low.cc (class ppc_target): New class.
2151 (the_ppc_target): New static object.
2152 (the_linux_target): Define as pointer to the_ppc_target.
2153 * linux-riscv-low.cc (class riscv_target): New class.
2154 (the_riscv_target): New static object.
2155 (the_linux_target): Define as pointer to the_riscv_target.
2156 * linux-s390-low.cc (class s390_target): New class.
2157 (the_s390_target): New static object.
2158 (the_linux_target): Define as pointer to the_s390_target.
2159 * linux-sh-low.cc (class sh_target): New class.
2160 (the_sh_target): New static object.
2161 (the_linux_target): Define as pointer to the_sh_target.
2162 * linux-sparc-low.cc (class sparc_target): New class.
2163 (the_sparc_target): New static object.
2164 (the_linux_target): Define as pointer to the_sparc_target.
2165 * linux-tic6x-low.cc (class tic6x_target): New class.
2166 (the_tic6x_target): New static object.
2167 (the_linux_target): Define as pointer to the_tic6x_target.
2168 * linux-tile-low.cc (class tile_target): New class.
2169 (the_tile_target): New static object.
2170 (the_linux_target): Define as pointer to the_tile_target.
2171 * linux-xtensa-low.cc (class xtensa_target): New class.
2172 (the_xtensa_target): New static object.
2173 (the_linux_target): Define as pointer to the_xtensa_target.
2174
d16f3f6c
TBA
21752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2176
2177 Turn some static functions in linux-low.cc into private methods of
2178 linux_process_target.
2179
2180 * linux-low.cc (handle_extended_wait): Turn into ...
2181 (linux_process_target::handle_extended_wait): ...this. Call
2182 'mourn' on 'this' object instead of 'the_target'.
2183 (maybe_move_out_of_jump_pad): Turn into...
2184 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2185 (linux_low_filter_event): Turn into...
2186 (linux_process_target::filter_event): ...this.
2187 (linux_wait_for_event_filtered): Turn into...
2188 (linux_process_target::wait_for_event_filtered): ...this.
2189 (linux_wait_for_event): Turn into...
2190 (linux_process_target::wait_for_event): ...this.
2191 (linux_wait_1): Turn into...
2192 (linux_process_target::wait_1): ...this.
2193 (wait_for_sigstop): Turn into...
2194 (linux_process_target::wait_for_sigstop): ...this.
2195 (move_out_of_jump_pad_callback): Turn into...
2196 (linux_process_target::move_out_of_jump_pad): ...this.
2197 (stop_all_lwps): Turn into...
2198 (linux_process_target::stop_all_lwps): ...this.
2199 (start_step_over): Turn into...
2200 (linux_process_target::start_step_over): ...this.
2201 (complete_ongoing_step_over): Turn into...
2202 (linux_process_target::complete_ongoing_step_over): ...this.
2203 (proceed_all_lwps): Turn into...
2204 (linux_process_target::proceed_all_lwps): ...this.
2205 (unstop_all_lwps): Turn into...
2206 (linux_process_target::unstop_all_lwps): ...this.
2207
2208 * linux-low.h (class linux_process_target)
2209 <handle_extended_wait>
2210 <maybe_move_out_of_jump_pad>
2211 filter_event>
2212 <wait_for_event_filtered>
2213 <wait_for_event>
2214 <wait_1>
2215 <wait_for_sigstop>
2216 <move_out_of_jump_pad>
2217 <stop_all_lwps>
2218 <start_step_over>
2219 <complete_ongoing_step_over>
2220 <proceed_all_lwps>
2221 <unstop_all_lwps>: Declare.
2222
2223 Update the callers below.
2224
2225 * linux-low.cc (linux_process_target::attach): Update.
2226 (linux_process_target::stabilize_threads): Ditto.
2227 (linux_process_target::wait): Ditto.
2228
a5863204
TBA
22292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2230
2231 * linux-low.h (struct linux_target_ops): Update the comment for
2232 'cannot_store_register' to return 0 or 1.
2233 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2234 of 2.
2235
c884cc46
SM
22362020-03-20 Simon Marchi <simon.marchi@efficios.com>
2237
2238 * config.in: Re-generate.
2239 * configure: Re-generate.
2240
5a82b8a1
KR
22412020-03-17 Kamil Rytarowski <n54@gmx.com>
2242
2243 * regcache.cc (find_register_by_number): Update.
2244 * tdesc.cc (init_target_desc): Likewise.
2245 * tdesc.h (target_desc::reg_defs): Likewise.
2246
4635ff97
TT
22472020-03-12 Tom Tromey <tom@tromey.com>
2248
2249 * configure: Rebuild.
2250 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2251 (WIN32APILIBS): New subst.
2252 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2253 gdbsupport files.
2254 (gdbsupport/%.o): Remove target.
2255 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2256 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2257 (WIN32APILIBS): New variable.
2258 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2259 (gdbreplay$(EXEEXT)): Likewise.
2260
9a665d62
TT
22612020-03-12 Tom Tromey <tom@tromey.com>
2262
2263 * config.in, configure: Rebuild.
2264 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2265 * acinclude.m4: Include gettext-sister.m4.
2266 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2267 variables.
2268 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2269 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2270
272cd5a3
SM
22712020-03-12 Simon Marchi <simon.marchi@efficios.com>
2272
2273 * acinclude.m4: Update path to selftest.m4.
2274
db6878ac
SM
22752020-03-12 Simon Marchi <simon.marchi@efficios.com>
2276
2277 * configure.ac: Don't source bfd/development.sh, move
2278 GDB_AC_COMMON higher.
2279 * configure: Re-generate.
2280
4d696a5c
SM
22812020-03-12 Simon Marchi <simon.marchi@efficios.com>
2282
2283 * configure: Re-generate.
2284
a0761e34
SM
22852020-03-11 Simon Marchi <simon.marchi@efficios.com>
2286
2287 * configure: Re-generate.
2288
20ea4a60
AB
22892020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2290
2291 * .dir-locals.el: New file.
2292
842806cb
TBA
22932020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2294
2295 * .gitattributes: New file.
2296
442131c1
AB
22972020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2298
2299 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2300 reply into an S reply.
2301 * server.cc (disable_packet_T): New global.
2302 (captured_main): Set new global when appropriate.
2303 * server.h (disable_packet_T): Declare.
2304
dda42c0b
TT
23052020-02-21 Tom Tromey <tom@tromey.com>
2306
2307 * Makefile.in (mostlyclean): New target.
2308
52405d85
TBA
23092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2310
2311 * target.h (struct process_stratum_target): Remove.
2312 (class process_target): Rename to ...
2313 (class process_stratum_target): ... this.
2314 * linux-low.h (class linux_process_target): Derive from
2315 'process_stratum_target'.
2316 * linux-low.cc (linux_target_ops): Remove.
2317 (initialize_low): Set the_target to the singleton instance of
2318 linux_process_target.
2319 * lynx-low.h (class lynx_process_target): Derive from
2320 'process_stratum_target'.
2321 * lynx-low.cc (lynx_target_ops): Remove.
2322 (initialize_low): Set the_target to the singleton instance of
2323 lynx_process_target.
2324 * nto-low.h (class nto_process_target): Derive from
2325 'process_stratum_target'.
2326 * nto-low.cc (nto_target_ops): Remove.
2327 (initialize_low): Set the_target to the singleton instance of
2328 nto_process_target.
2329 * win32-low.h (class win32_process_target): Derive from
2330 'process_stratum_target'.
2331 * win32-low.cc (win32_target_ops): Remove.
2332 (initialize_low): Set the_target to the singleton instance of
2333 win32_process_target.
2334
2335 Replace 'the_target->pt' with 'the_target' in the uses below.
2336
2337 * hostio.cc (hostio_error)
2338 (handle_setfs)
2339 (handle_open)
2340 (handle_unlink)
2341 (handle_readlink)
2342 * linux-aarch32-low.cc (arm_breakpoint_at)
2343 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2344 * linux-arm-low.cc (arm_sigreturn_next_pc)
2345 (arm_get_hwcap)
2346 (arm_get_syscall_trapinfo)
2347 * linux-cris-low.cc (cris_breakpoint_at)
2348 * linux-crisv32-low.cc (cris_breakpoint_at)
2349 * linux-low.cc (handle_extended_wait)
2350 (linux_wait_1)
2351 (linux_read_memory)
2352 (linux_process_target::breakpoint_kind_from_pc)
2353 (linux_get_auxv)
2354 * linux-m32r-low.cc (m32r_breakpoint_at)
2355 * linux-mips-low.cc (mips_breakpoint_at)
2356 * linux-nios2-low.cc (nios2_breakpoint_at)
2357 * linux-ppc-low.cc (ppc_breakpoint_at)
2358 * linux-s390-low.cc (s390_get_hwcap)
2359 * linux-sh-low.cc (sh_breakpoint_at)
2360 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2361 (sparc_store_gregset_from_stack)
2362 (sparc_breakpoint_at)
2363 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2364 * linux-tile-low.cc (tile_breakpoint_at)
2365 * linux-x86-low.cc (x86_breakpoint_at)
2366 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2367 * mem-break.cc (bp_size)
2368 (bp_opcode)
2369 (insert_memory_breakpoint)
2370 (set_raw_breakpoint_at)
2371 (delete_raw_breakpoint)
2372 (z_type_supported)
2373 (uninsert_raw_breakpoint)
2374 (reinsert_raw_breakpoint)
2375 (validate_inserted_breakpoint)
2376 * regcache.cc (regcache_read_pc)
2377 (regcache_write_pc)
2378 * remote-utils.cc (putpkt_binary_1)
2379 (input_interrupt)
2380 (getpkt)
2381 (prepare_resume_reply)
2382 * server.cc (handle_general_set)
2383 (handle_detach)
2384 (handle_qxfer_auxv)
2385 (handle_qxfer_exec_file)
2386 (handle_qxfer_libraries_svr4)
2387 (handle_qxfer_osdata)
2388 (handle_qxfer_siginfo)
2389 (handle_qxfer_fdpic)
2390 (handle_query)
2391 (resume)
2392 (handle_v_requests)
2393 (queue_stop_reply_callback)
2394 (captured_main)
2395 * target.cc (prepare_to_access_memory)
2396 (done_accessing_memory)
2397 (read_inferior_memory)
2398 (target_write_memory)
2399 (target_stop_and_wait)
2400 (target_wait)
2401 (target_mourn_inferior)
2402 (target_continue_no_signal)
2403 (target_continue)
2404 (target_supports_multi_process)
2405 (kill_inferior)
2406 * target.h
2407 (target_create_inferior)
2408 (target_post_create_inferior)
2409 (myattach)
2410 (target_supports_fork_events)
2411 (target_supports_vfork_events)
2412 (target_supports_exec_events)
2413 (target_handle_new_gdb_connection)
2414 (detach_inferior)
2415 (mythread_alive)
2416 (fetch_inferior_registers)
2417 (store_inferior_registers)
2418 (join_inferior)
2419 (target_supports_non_stop)
2420 (target_async)
2421 (target_process_qsupported)
2422 (target_supports_catch_syscall)
2423 (target_get_ipa_tdesc_idx)
2424 (target_supports_tracepoints)
2425 (target_supports_fast_tracepoints)
2426 (target_get_min_fast_tracepoint_insn_len)
2427 (target_thread_stopped)
2428 (target_pause_all)
2429 (target_unpause_all)
2430 (target_stabilize_threads)
2431 (target_install_fast_tracepoint_jump_pad)
2432 (target_emit_ops)
2433 (target_supports_disable_randomization)
2434 (target_supports_agent)
2435 (target_enable_btrace)
2436 (target_disable_btrace)
2437 (target_read_btrace)
2438 (target_read_btrace_conf)
2439 (target_supports_range_stepping)
2440 (target_supports_stopped_by_sw_breakpoint)
2441 (target_stopped_by_sw_breakpoint)
2442 (target_supports_stopped_by_hw_breakpoint)
2443 (target_supports_hardware_single_step)
2444 (target_stopped_by_hw_breakpoint)
2445 (target_breakpoint_kind_from_pc)
2446 (target_breakpoint_kind_from_current_state)
2447 (target_supports_software_single_step)
2448 (target_core_of_thread)
2449 (target_thread_name)
2450 (target_thread_handle)
2451 * win32-low.cc (do_initial_child_stuff)
2452
2453 Rename target op default definitions listed below.
2454
2455 * target.cc (process_target::post_create_inferior): Rename as ...
2456 (process_stratum_target::post_create_inferior): ... this.
2457 (process_target::prepare_to_access_memory): Rename as ...
2458 (process_stratum_target::prepare_to_access_memory): ... this.
2459 (process_target::done_accessing_memory): Rename as ...
2460 (process_stratum_target::done_accessing_memory): ... this.
2461 (process_target::look_up_symbols): Rename as ...
2462 (process_stratum_target::look_up_symbols): ... this.
2463 (process_target::supports_read_auxv): Rename as ...
2464 (process_stratum_target::supports_read_auxv): ... this.
2465 (process_target::read_auxv): Rename as ...
2466 (process_stratum_target::read_auxv): ... this.
2467 (process_target::supports_z_point_type): Rename as ...
2468 (process_stratum_target::supports_z_point_type): ... this.
2469 (process_target::insert_point): Rename as ...
2470 (process_stratum_target::insert_point): ... this.
2471 (process_target::remove_point): Rename as ...
2472 (process_stratum_target::remove_point): ... this.
2473 (process_target::stopped_by_sw_breakpoint): Rename as ...
2474 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2475 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2476 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2477 (process_target::stopped_by_hw_breakpoint): Rename as ...
2478 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2479 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2480 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2481 (process_target::supports_hardware_single_step): Rename as ...
2482 (process_stratum_target::supports_hardware_single_step): ... this.
2483 (process_target::stopped_by_watchpoint): Rename as ...
2484 (process_stratum_target::stopped_by_watchpoint): ... this.
2485 (process_target::stopped_data_address): Rename as ...
2486 (process_stratum_target::stopped_data_address): ... this.
2487 (process_target::supports_read_offsets): Rename as ...
2488 (process_stratum_target::supports_read_offsets): ... this.
2489 (process_target::read_offsets): Rename as ...
2490 (process_stratum_target::read_offsets): ... this.
2491 (process_target::supports_get_tls_address): Rename as ...
2492 (process_stratum_target::supports_get_tls_address): ... this.
2493 (process_target::get_tls_address): Rename as ...
2494 (process_stratum_target::get_tls_address): ... this.
2495 (process_target::hostio_last_error): Rename as ...
2496 (process_stratum_target::hostio_last_error): ... this.
2497 (process_target::supports_qxfer_osdata): Rename as ...
2498 (process_stratum_target::supports_qxfer_osdata): ... this.
2499 (process_target::qxfer_osdata): Rename as ...
2500 (process_stratum_target::qxfer_osdata): ... this.
2501 (process_target::supports_qxfer_siginfo): Rename as ...
2502 (process_stratum_target::supports_qxfer_siginfo): ... this.
2503 (process_target::qxfer_siginfo): Rename as ...
2504 (process_stratum_target::qxfer_siginfo): ... this.
2505 (process_target::supports_non_stop): Rename as ...
2506 (process_stratum_target::supports_non_stop): ... this.
2507 (process_target::async): Rename as ...
2508 (process_stratum_target::async): ... this.
2509 (process_target::start_non_stop): Rename as ...
2510 (process_stratum_target::start_non_stop): ... this.
2511 (process_target::supports_multi_process): Rename as ...
2512 (process_stratum_target::supports_multi_process): ... this.
2513 (process_target::supports_fork_events): Rename as ...
2514 (process_stratum_target::supports_fork_events): ... this.
2515 (process_target::supports_vfork_events): Rename as ...
2516 (process_stratum_target::supports_vfork_events): ... this.
2517 (process_target::supports_exec_events): Rename as ...
2518 (process_stratum_target::supports_exec_events): ... this.
2519 (process_target::handle_new_gdb_connection): Rename as ...
2520 (process_stratum_target::handle_new_gdb_connection): ... this.
2521 (process_target::handle_monitor_command): Rename as ...
2522 (process_stratum_target::handle_monitor_command): ... this.
2523 (process_target::core_of_thread): Rename as ...
2524 (process_stratum_target::core_of_thread): ... this.
2525 (process_target::supports_read_loadmap): Rename as ...
2526 (process_stratum_target::supports_read_loadmap): ... this.
2527 (process_target::read_loadmap): Rename as ...
2528 (process_stratum_target::read_loadmap): ... this.
2529 (process_target::process_qsupported): Rename as ...
2530 (process_stratum_target::process_qsupported): ... this.
2531 (process_target::supports_tracepoints): Rename as ...
2532 (process_stratum_target::supports_tracepoints): ... this.
2533 (process_target::read_pc): Rename as ...
2534 (process_stratum_target::read_pc): ... this.
2535 (process_target::write_pc): Rename as ...
2536 (process_stratum_target::write_pc): ... this.
2537 (process_target::supports_thread_stopped): Rename as ...
2538 (process_stratum_target::supports_thread_stopped): ... this.
2539 (process_target::thread_stopped): Rename as ...
2540 (process_stratum_target::thread_stopped): ... this.
2541 (process_target::supports_get_tib_address): Rename as ...
2542 (process_stratum_target::supports_get_tib_address): ... this.
2543 (process_target::get_tib_address): Rename as ...
2544 (process_stratum_target::get_tib_address): ... this.
2545 (process_target::pause_all): Rename as ...
2546 (process_stratum_target::pause_all): ... this.
2547 (process_target::unpause_all): Rename as ...
2548 (process_stratum_target::unpause_all): ... this.
2549 (process_target::stabilize_threads): Rename as ...
2550 (process_stratum_target::stabilize_threads): ... this.
2551 (process_target::supports_fast_tracepoints): Rename as ...
2552 (process_stratum_target::supports_fast_tracepoints): ... this.
2553 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2554 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2555 (process_target::emit_ops): Rename as ...
2556 (process_stratum_target::emit_ops): ... this.
2557 (process_target::supports_disable_randomization): Rename as ...
2558 (process_stratum_target::supports_disable_randomization): ... this.
2559 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2560 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2561 (process_target::qxfer_libraries_svr4): Rename as ...
2562 (process_stratum_target::qxfer_libraries_svr4): ... this.
2563 (process_target::supports_agent): Rename as ...
2564 (process_stratum_target::supports_agent): ... this.
2565 (process_target::enable_btrace): Rename as ...
2566 (process_stratum_target::enable_btrace): ... this.
2567 (process_target::disable_btrace): Rename as ...
2568 (process_stratum_target::disable_btrace): ... this.
2569 (process_target::read_btrace): Rename as ...
2570 (process_stratum_target::read_btrace): ... this.
2571 (process_target::read_btrace_conf): Rename as ...
2572 (process_stratum_target::read_btrace_conf): ... this.
2573 (process_target::supports_range_stepping): Rename as ...
2574 (process_stratum_target::supports_range_stepping): ... this.
2575 (process_target::supports_pid_to_exec_file): Rename as ...
2576 (process_stratum_target::supports_pid_to_exec_file): ... this.
2577 (process_target::pid_to_exec_file): Rename as ...
2578 (process_stratum_target::pid_to_exec_file): ... this.
2579 (process_target::supports_multifs): Rename as ...
2580 (process_stratum_target::supports_multifs): ... this.
2581 (process_target::multifs_open): Rename as ...
2582 (process_stratum_target::multifs_open): ... this.
2583 (process_target::multifs_unlink): Rename as ...
2584 (process_stratum_target::multifs_unlink): ... this.
2585 (process_target::multifs_readlink): Rename as ...
2586 (process_stratum_target::multifs_readlink): ... this.
2587 (process_target::breakpoint_kind_from_pc): Rename as ...
2588 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2589 (process_target::breakpoint_kind_from_current_state): Rename as ...
2590 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2591 (process_target::thread_name): Rename as ...
2592 (process_stratum_target::thread_name): ... this.
2593 (process_target::thread_handle): Rename as ...
2594 (process_stratum_target::thread_handle): ... this.
2595 (process_target::supports_software_single_step): Rename as ...
2596 (process_stratum_target::supports_software_single_step): ... this.
2597 (process_target::supports_catch_syscall): Rename as ...
2598 (process_stratum_target::supports_catch_syscall): ... this.
2599 (process_target::get_ipa_tdesc_idx): Rename as ...
2600 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2601
478f9adf
PA
26022020-02-20 Pedro Alves <palves@redhat.com>
2603
2604 * target.cc (set_target_ops): Simply copy the given target pointer
2605 instead of creating a copy of the pointed object.
2606
d633e831
TBA
26072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2608
2609 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2610 of process_target.
2611
2612 * target.h (struct process_stratum_target): Remove the target op.
2613 (class process_target): Add the target op.
2614 (target_get_ipa_tdesc_idx): Update the macro.
2615 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2616
2617 Update the derived classes and callers below.
2618
2619 * linux-low.cc (linux_target_ops): Update.
2620 (linux_get_ipa_tdesc_idx): Turn into ...
2621 (linux_process_target::get_ipa_tdesc_idx): ... this.
2622 * linux-low.h (class linux_process_target): Update.
2623 * lynx-low.cc (lynx_target_ops): Update.
2624 * nto-low.cc (nto_target_ops): Update.
2625 * win32-low.cc (win32_target_ops): Update.
2626
bc8d3ae4
TBA
26272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2628
2629 Turn process_stratum_target's supports_catch_syscall op into a
2630 method of process_target.
2631
2632 * target.h (struct process_stratum_target): Remove the target op.
2633 (class process_target): Add the target op.
2634 (target_supports_catch_syscall): Update the macro.
2635 * target.cc (process_target::supports_catch_syscall): Define.
2636
2637 Update the derived classes and callers below.
2638
2639 * linux-low.cc (linux_target_ops): Update.
2640 (linux_supports_catch_syscall): Turn into ...
2641 (linux_process_target::supports_catch_syscall): ... this.
2642 * linux-low.h (class linux_process_target): Update.
2643 * lynx-low.cc (lynx_target_ops): Update.
2644 * nto-low.cc (nto_target_ops): Update.
2645 * win32-low.cc (win32_target_ops): Update.
2646
5303a34f
TBA
26472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2648
2649 Turn process_stratum_target's supports_software_single_step op
2650 into a method of process_target.
2651
2652 * target.h (struct process_stratum_target): Remove the target op.
2653 (class process_target): Add the target op.
2654 (target_supports_software_single_step): Update the macro.
2655 * target.cc (process_target::supports_software_single_step): Define.
2656
2657 Update the derived classes and callers below.
2658
2659 * linux-low.cc (linux_target_ops): Update.
2660 (linux_supports_software_single_step): Turn into ...
2661 (linux_process_target::supports_software_single_step): ... this.
2662 * linux-low.h (class linux_process_target): Update.
2663 * lynx-low.cc (lynx_target_ops): Update.
2664 * nto-low.cc (nto_target_ops): Update.
2665 * win32-low.cc (win32_target_ops): Update.
2666
7f63b89b
TBA
26672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2668
2669 Turn process_stratum_target's thread_name and thread_handle ops
2670 into methods of process_target.
2671
2672 * target.h (struct process_stratum_target): Remove the target ops.
2673 (class process_target): Add the target ops.
2674 (target_thread_name): Update the macro.
2675 (target_thread_handle): Update the macro.
2676 * target.cc (process_target::thread_name): Define.
2677 (process_target::thread_handle): Define.
2678
2679 Update the derived classes and callers below.
2680
2681 * linux-low.cc (linux_target_ops): Update.
2682 (linux_process_target::thread_name): Define.
2683 (linux_process_target::thread_handle): Define.
2684 * linux-low.h (class linux_process_target): Update.
2685 * lynx-low.cc (lynx_target_ops): Update.
2686 * nto-low.cc (nto_target_ops): Update.
2687 * win32-low.cc (win32_target_ops): Update.
2688
d367006f
TBA
26892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2690
2691 Turn process_stratum_target's breakpoint_kind_from_pc,
2692 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2693 ops into methods of process_target.
2694
2695 * target.h (struct process_stratum_target): Remove the target op.
2696 (class process_target): Add the target op.
2697 (target_breakpoint_kind_from_pc): Update the macro.
2698 (target_breakpoint_kind_from_current_state): Update the macro.
2699 (default_breakpoint_kind_from_pc): Remove declaration.
2700 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2701 (process_target::breakpoint_kind_from_pc): ... this.
2702 (process_target::breakpoint_kind_from_current_state): Define.
2703
2704 Update the derived classes and callers below.
2705
2706 * mem-break.cc (bp_size): Update.
2707 (bp_opcode): Update.
2708 * linux-low.cc (linux_target_ops): Update.
2709 (linux_wait_1): Update.
2710 (linux_breakpoint_kind_from_pc): Turn into ...
2711 (linux_process_target::breakpoint_kind_from_pc): ... this.
2712 (linux_sw_breakpoint_from_kind): Turn into ...
2713 (linux_process_target::sw_breakpoint_from_kind): ... this.
2714 (linux_breakpoint_kind_from_current_state): Turn into ...
2715 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2716 * linux-low.h (class linux_process_target): Update.
2717 * lynx-low.cc (lynx_target_ops): Update.
2718 (lynx_process_target::sw_breakpoint_from_kind): Define.
2719 * lynx-low.h (class lynx_process_target): Update.
2720 * nto-low.cc (nto_target_ops): Update.
2721 (nto_sw_breakpoint_from_kind): Turn into ...
2722 (nto_process_target::sw_breakpoint_from_kind): ... this.
2723 * nto-low.h (class nto_process_target): Update.
2724 * win32-low.cc (win32_target_ops): Update.
2725 (win32_sw_breakpoint_from_kind): Turn into ...
2726 (win32_process_target::sw_breakpoint_from_kind): ... this.
2727 * win32-low.h (class win32_process_target): Update.
2728
c9b7b804
TBA
27292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2730
2731 Turn process_stratum_target's multifs_open, multifs_readlink,
2732 multifs_unlink ops into methods of process_target.
2733
2734 * target.h (struct process_stratum_target): Remove the target ops.
2735 (class process_target): Add the target ops. Also add
2736 'supports_multifs'.
2737 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2738 "sys/stat.h".
2739 (process_target::supports_multifs): Define.
2740 (process_target::multifs_open): Define.
2741 (process_target::multifs_readlink): Define.
2742 (process_target::multifs_unlink): Define.
2743
2744 Update the derived classes and callers below.
2745
2746 * hostio.cc (handle_setfs): Update.
2747 (handle_open): Update.
2748 (handle_unlink): Update.
2749 (handle_readlink): Update.
2750 * linux-low.cc (linux_target_ops): Update.
2751 (linux_process_target::supports_multifs): Define.
2752 (linux_process_target::multifs_open): Define.
2753 (linux_process_target::multifs_readlink): Define.
2754 (linux_process_target::multifs_unlink): Define.
2755 * linux-low.h (class linux_process_target): Update.
2756 * lynx-low.cc (lynx_target_ops): Update.
2757 * nto-low.cc (nto_target_ops): Update.
2758 * win32-low.cc (win32_target_ops): Update.
2759
8247b823
TBA
27602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2761
2762 Turn process_stratum_target's pid_to_exec_file op into a method
2763 of process_target.
2764
2765 * target.h (struct process_stratum_target): Remove the target op.
2766 (class process_target): Add the target op. Also add
2767 'supports_pid_to_exec_file'.
2768 * target.cc (process_target::pid_to_exec_file): Define.
2769 (process_target::supports_pid_to_exec_file): Define.
2770
2771 Update the derived classes and callers below.
2772
2773 * server.cc (handle_qxfer_exec_file): Update.
2774 (handle_query): Update.
2775 * linux-low.cc (linux_target_ops): Update.
2776 (linux_process_target::supports_pid_to_exec_file): Define.
2777 (linux_process_target::pid_to_exec_file): Define.
2778 * linux-low.h (class linux_process_target): Update.
2779 * lynx-low.cc (lynx_target_ops): Update.
2780 * nto-low.cc (nto_target_ops): Update.
2781 * win32-low.cc (win32_target_ops): Update.
2782
2526e0cd
TBA
27832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2784
2785 Turn process_stratum_target's supports_range_stepping op into a
2786 method of process_target.
2787
2788 * target.h (struct process_stratum_target): Remove the target op.
2789 (class process_target): Add the target op.
2790 (target_supports_range_stepping): Update the macro.
2791 * target.cc (process_target::supports_range_stepping): Define.
2792
2793 Update the derived classes and callers below.
2794
2795 * linux-low.cc (linux_target_ops): Update.
2796 (linux_supports_range_stepping): Turn into ...
2797 (linux_process_target::supports_range_stepping): ... this.
2798 * linux-low.h (class linux_process_target): Update.
2799 * lynx-low.cc (lynx_target_ops): Update.
2800 * nto-low.cc (nto_target_ops): Update.
2801 * win32-low.cc (win32_target_ops): Update.
2802
79597bdd
TBA
28032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2804
2805 Turn process_stratum_target's btrace-related ops (enable_btrace,
2806 disable_btrace, read_btrace, read_btrace_conf) into methods of
2807 process_target.
2808
2809 * target.h (struct process_stratum_target): Remove the target ops.
2810 (class process_target): Add the target ops.
2811 (target_enable_btrace): Update.
2812 (target_disable_btrace): Update.
2813 (target_read_btrace): Update.
2814 (target_read_btrace_conf): Update.
2815 * target.cc (process_target::enable_btrace): Define.
2816 (process_target::disable_btrace): Define.
2817 (process_target::read_btrace): Define.
2818 (process_target::read_btrace_conf): Define.
2819
2820 Update the derived classes and callers below.
2821
2822 * linux-low.cc (linux_target_ops): Update.
2823 (linux_process_target:enable_btrace): Define as a wrapper around
2824 linux_enable_btrace.
2825 (linux_low_disable_btrace): Turn into ...
2826 (linux_process_target::disable_btrace): ... this.
2827 (linux_low_read_btrace): Turn into ...
2828 (linux_process_target::read_btrace): ... this.
2829 (linux_low_btrace_conf): Turn into ...
2830 (linux_process_target::read_btrace_conf): ... this.
2831 * linux-low.h (class linux_process_target): Update.
2832 * lynx-low.cc (lynx_target_ops): Update.
2833 * nto-low.cc (nto_target_ops): Update.
2834 * win32-low.cc (win32_target_ops): Update.
2835
c0245cb9
TBA
28362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2837
2838 Turn process_stratum_target's supports_agent op into a method of
2839 process_target.
2840
2841 * target.h (struct process_stratum_target): Remove the target op.
2842 (class process_target): Add the target op.
2843 (target_supports_agent): Update the macro.
2844 * target.cc (process_target::supports_agent): Define.
2845
2846 Update the derived classes and callers below.
2847
2848 * linux-low.cc (linux_target_ops): Update.
2849 (linux_supports_agent): Turn into ...
2850 (linux_process_target::supports_agent): ... this.
2851 * linux-low.h (class linux_process_target): Update.
2852 * lynx-low.cc (lynx_target_ops): Update.
2853 * nto-low.cc (nto_target_ops): Update.
2854 * win32-low.cc (win32_target_ops): Update.
2855
974387bb
TBA
28562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2857
2858 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2859 method of process_target.
2860
2861 * target.h (struct process_stratum_target): Remove the target op.
2862 (class process_target): Add the target op. Also add
2863 'supports_qxfer_libraries_svr4'.
2864 * target.cc (process_target::qxfer_libraries_svr4): Define.
2865 (process_target::supports_qxfer_libraries_svr4): Define.
2866
2867 Update the derived classes and callers below.
2868
2869 * server.cc (handle_qxfer_libraries_svr4): Update.
2870 (handle_query): Update.
2871 * linux-low.cc (linux_target_ops): Update.
2872 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2873 (linux_qxfer_libraries_svr4): Turn into ...
2874 (linux_process_target::qxfer_libraries_svr4): ... this.
2875 * linux-low.h (class linux_process_target): Update.
2876 * lynx-low.cc (lynx_target_ops): Update.
2877 * nto-low.cc (nto_target_ops): Update.
2878 * win32-low.cc (win32_target_ops): Update.
2879
c756403b
TBA
28802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2881
2882 Turn process_stratum_target's supports_disable_randomization op
2883 into a method of process_target.
2884
2885 * target.h (struct process_stratum_target): Remove the target op.
2886 (class process_target): Add the target op.
2887 (target_supports_disable_randomization): Update the macro.
2888 * target.cc (process_target::supports_disable_randomization): Define.
2889
2890 Update the derived classes and callers below.
2891
2892 * linux-low.cc (linux_target_ops): Update.
2893 (linux_supports_disable_randomization): Turn into ...
2894 (linux_process_target::supports_disable_randomization): ... this.
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
345dafad
TBA
29002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2901
2902 Turn process_stratum_target's emit_ops op into a method of
2903 process_target.
2904
2905 * target.h (struct process_stratum_target): Remove the target op.
2906 (class process_target): Add the target op.
2907 (target_emit_ops): Update the macro.
2908 * target.cc (process_target::emit_ops): Define.
2909
2910 Update the derived classes and callers below.
2911
2912 * linux-low.cc (linux_target_ops): Update.
2913 (linux_emit_ops): Turn into ...
2914 (linux_process_target::emit_ops): ... 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
c23c9391
TBA
29202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2921
2922 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2923 and get_min_fast_tracepoint_insn_len ops 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. Also add
2928 'supports_fast_tracepoints'.
2929 (target_supports_fast_tracepoints): Update the macro.
2930 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2931 (install_fast_tracepoint_jump_pad): Update and rename the macro
2932 to ...
2933 (target_install_fast_tracepoint_jump_pad): ... this.
2934 * target.cc (process_target::supports_fast_tracepoints): Define.
2935 (process_target::install_fast_tracepoint_jump_pad): Define.
2936 (process_target::get_min_fast_tracepoint_insn_len): Define.
2937
2938 Update the derived classes and callers below.
2939
2940 * tracepoint.cc (install_fast_tracepoint): Update.
2941 * linux-low.cc (linux_target_ops): Update.
2942 (linux_process_target::supports_fast_tracepoints): Define.
2943 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2944 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2945 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2946 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2947 * linux-low.h (class linux_process_target): Update.
2948 * lynx-low.cc (lynx_target_ops): Update.
2949 * nto-low.cc (nto_target_ops): Update.
2950 * win32-low.cc (win32_target_ops): Update.
2951
5c9eb2f2
TBA
29522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2953
2954 Turn process_stratum_target's stabilize_threads op into a
2955 method of process_target.
2956
2957 * target.h (struct process_stratum_target): Remove the target op.
2958 (class process_target): Add the target op.
2959 (target_stabilize_threads): Update the macro.
2960 * target.cc (process_target::stabilize_threads): Define.
2961
2962 Update the derived classes and callers below.
2963
2964 * server.cc (handle_status): Update.
2965 * tracepoint.cc (cmd_qtdp): Update.
2966 (cmd_qtstart): Update.
2967 * linux-low.cc (linux_target_ops): Update.
2968 (linux_stabilize_threads): Turn into ...
2969 (linux_process_target::stabilize_threads): ... this.
2970 (linux_wait_1): Update.
2971 * linux-low.h (class linux_process_target): Update.
2972 * lynx-low.cc (lynx_target_ops): Update.
2973 * nto-low.cc (nto_target_ops): Update.
2974 * win32-low.cc (win32_target_ops): Update.
2975
29e8dc09
TBA
29762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2977
2978 Turn process_stratum_target's pause_all and unpause_all ops
2979 into methods of process_target.
2980
2981 * target.h (struct process_stratum_target): Remove the target ops.
2982 (class process_target): Add the target ops.
2983 (pause_all): Update the macro and rename to...
2984 (target_pause_all): ... this.
2985 (unpause_all): Update the macro and rename to...
2986 (target_unpause_all): ... this.
2987 * target.cc (process_target::pause_all): Define.
2988 (process_target::unpause_all): Define.
2989
2990 Update the derived classes and callers below.
2991
2992 * server.cc (handle_status): Update.
2993 * tracepoint.cc (clear_installed_tracepoints): Update.
2994 (cmd_qtdp): Update.
2995 (cmd_qtstart): Update.
2996 (stop_tracing): Update.
2997 (cmd_qtstatus): Update.
2998 (upload_fast_traceframes): Update.
2999 (run_inferior_command): Update.
3000 * linux-low.cc (linux_target_ops): Update.
3001 (linux_pause_all): Turn into ...
3002 (linux_process_target::pause_all): ... this.
3003 (linux_unpause_all): Turn into ...
3004 (linux_process_target::unpause_all): ... this.
3005 (linux_process_target::prepare_to_access_memory): Update.
3006 (linux_process_target::done_accessing_memory): Update.
3007 * linux-low.h (class linux_process_target): Update.
3008 * lynx-low.cc (lynx_target_ops): Update.
3009 * nto-low.cc (nto_target_ops): Update.
3010 * win32-low.cc (win32_target_ops): Update.
3011
4e2e869c
TBA
30122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3013
3014 Turn process_stratum_target's get_tib_address op into a method of
3015 process_target.
3016
3017 * target.h (struct process_stratum_target): Remove the target op.
3018 (class process_target): Add the target op. Also add
3019 'supports_get_tib_address'.
3020 * target.cc (process_target::get_tib_address): Define.
3021 (process_target::supports_get_tib_address): Define.
3022
3023 Update the derived classes and callers below.
3024
3025 * server.cc (handle_query): Update.
3026 * linux-low.cc (win32_target_ops): Update.
3027 * lynx-low.cc (lynx_target_ops): Update.
3028 * nto-low.cc (nto_target_ops): Update.
3029 * win32-low.cc (win32_target_ops): Update.
3030 (win32_process_target::supports_get_tib_address): Define.
3031 (win32_get_tib_address): Turn into ...
3032 (win32_process_target::get_tib_address): ... this.
3033 * win32-low.h (class win32_process_target): Update.
3034
68119632
TBA
30352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3036
3037 Turn process_stratum_target's thread_stopped op into a method of
3038 process_target.
3039
3040 * target.h (struct process_stratum_target): Remove the target op.
3041 (class process_target): Add the target op. Also add
3042 'supports_thread_stopped'.
3043 (target_thread_stopped): Update the macro.
3044 * target.cc (process_target::thread_stopped): Define.
3045 (process_target::supports_thread_stopped): Define.
3046 (prepare_to_access_memory): Update.
3047
3048 Update the derived classes and callers below.
3049
3050 * server.cc (queue_stop_reply_callback): Update.
3051 * linux-low.cc (linux_target_ops): Update.
3052 (linux_process_target::supports_thread_stopped): Define.
3053 (linux_thread_stopped): Turn into ...
3054 (linux_process_target::thread_stopped): ... this.
3055 * linux-low.h (class linux_process_target): Update.
3056 * lynx-low.cc (lynx_target_ops): Update.
3057 * nto-low.cc (nto_target_ops): Update.
3058 * win32-low.cc (win32_target_ops): Update.
3059
770d8f6a
TBA
30602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3061
3062 Turn process_stratum_target's read_pc and write_pc ops into
3063 methods of process_target.
3064
3065 * target.h (struct process_stratum_target): Remove the target ops.
3066 (class process_target): Add the target ops.
3067 * target.cc (process_target::read_pc): Define.
3068 (process_target::write_pc): Define.
3069
3070 Update the derived classes and callers below.
3071
3072 * regcache.cc (regcache_read_pc): Update.
3073 (regcache_write_pc): Update.
3074 * linux-low.cc (linux_target_ops): Update.
3075 (linux_read_pc): Turn into ...
3076 (linux_process_target::read_pc): ... this.
3077 (linux_write_pc): Turn into ...
3078 (linux_process_target::write_pc): ... this.
3079 * linux-low.h (class linux_process_target): Update.
3080 * lynx-low.cc (lynx_target_ops): Update.
3081 * nto-low.cc (nto_target_ops): Update.
3082 * win32-low.cc (win32_target_ops): Update.
3083
290732bf
TBA
30842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3085
3086 Turn process_stratum_target's supports_tracepoints op into a
3087 method of process_target.
3088
3089 * target.h (struct process_stratum_target): Remove the target op.
3090 (class process_target): Add the target op.
3091 (target_supports_tracepoints): Update the macro.
3092 * target.cc (process_target::supports_tracepoints): Define.
3093
3094 Update the derived classes and callers below.
3095
3096 * linux-low.cc (linux_target_ops): Update.
3097 (linux_supports_tracepoints): Turn into ...
3098 (linux_process_target::supports_tracepoints): ... this.
3099 * linux-low.h (class linux_process_target): Update.
3100 * lynx-low.cc (lynx_target_ops): Update.
3101 * nto-low.cc (nto_target_ops): Update.
3102 * win32-low.cc (win32_target_ops): Update.
3103
0df28b1b
TBA
31042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3105
3106 Turn process_stratum_target's process_qsupported op into a method
3107 of process_target.
3108
3109 * target.h (struct process_stratum_target): Remove the target op.
3110 (class process_target): Add the target op.
3111 (target_process_qsupported): Update the macro.
3112 * target.cc (process_target::process_qsupported): Define.
3113
3114 Update the derived classes and callers below.
3115
3116 * linux-low.cc (linux_target_ops): Update.
3117 (linux_process_qsupported): Turn into ...
3118 (linux_process_target::process_qsupported): ... this.
3119 * linux-low.h (class linux_process_target): Update.
3120 * lynx-low.cc (lynx_target_ops): Update.
3121 * nto-low.cc (nto_target_ops): Update.
3122 * win32-low.cc (win32_target_ops): Update.
3123
9da41fda
TBA
31242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3125
3126 Turn process_stratum_target's read_loadmap op into a method of
3127 process_target.
3128
3129 * target.h (struct process_stratum_target): Remove the target op.
3130 (class process_target): Add the target op. Also add
3131 'supports_read_loadmap'.
3132 * target.cc (process_target::read_loadmap): Define.
3133 (process_target::supports_read_loadmap): Define.
3134
3135 Update the derived classes and callers below.
3136
3137 * server.cc (handle_qxfer_fdpic): Update.
3138 (handle_query): Update.
3139 * linux-low.cc (linux_target_ops): Update.
3140 (linux_process_target::supports_read_loadmap): Define.
3141 (linux_read_loadmap): Turn into ...
3142 (linux_process_target::read_loadmap): ... this.
3143 * linux-low.h (class linux_process_target): 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
95a45fc1
TBA
31482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3149
3150 Turn process_stratum_target's core_of_thread op into a method of
3151 process_target.
3152
3153 * target.h (struct process_stratum_target): Remove the target op.
3154 (class process_target): Add the target op.
3155 (target_core_of_thread): Update the macro.
3156 * target.cc (process_target::core_of_thread): Define.
3157
3158 Update the derived classes and callers below.
3159
3160 * linux-low.cc (linux_target_ops): Update.
3161 (linux_process_target::core_of_thread): Define.
3162 * linux-low.h (class linux_process_target): Update.
3163 * lynx-low.cc (lynx_target_ops): Update.
3164 * nto-low.cc (nto_target_ops): Update.
3165 * win32-low.cc (win32_target_ops): Update.
3166
55cf3021
TBA
31672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3168
3169 Turn process_stratum_target's handle_monitor_command op into a
3170 method of process_target.
3171
3172 * target.h (struct process_stratum_target): Remove the target op.
3173 (class process_target): Add the target op.
3174 (target_handle_monitor_command): Update the macro.
3175 * target.cc (process_target::handle_monitor_command): Define.
3176
3177 Update the derived classes and callers below.
3178
3179 * server.cc (handle_query): Update.
3180 * linux-low.cc (linux_target_ops): Update.
3181 (linux_process_target::handle_monitor_command): Define.
3182 * linux-low.h (class linux_process_target): Update.
3183 * lynx-low.cc (lynx_target_ops): Update.
3184 * nto-low.cc (nto_target_ops): Update.
3185 * win32-low.cc (win32_target_ops): Update.
3186
fb00dfce
TBA
31872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3188
3189 Turn process_stratum_target's handle_new_gdb_connection op into a
3190 method of process_target.
3191
3192 * target.h (struct process_stratum_target): Remove the target op.
3193 (class process_target): Add the target op.
3194 (target_handle_new_gdb_connection): Update the macro.
3195 * target.cc (process_target::handle_new_gdb_connection): Define.
3196
3197 Update the derived classes and callers below.
3198
3199 * linux-low.cc (linux_target_ops): Update.
3200 (linux_handle_new_gdb_connection): Turn into ...
3201 (linux_process_target::handle_new_gdb_connection): ... this.
3202 * linux-low.h (class linux_process_target): Update.
3203 * lynx-low.cc (lynx_target_ops): Update.
3204 * nto-low.cc (nto_target_ops): Update.
3205 * win32-low.cc (win32_target_ops): Update.
3206
9690a72a
TBA
32072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3208
3209 Turn process_stratum_target's supports_fork_events,
3210 supports_vfork_events, and supports_exec_events ops into methods
3211 of process_target.
3212
3213 * target.h (struct process_stratum_target): Remove the target ops.
3214 (class process_target): Add the target ops.
3215 (target_supports_fork_events): Update the macro.
3216 (target_supports_vfork_events): Update the macro.
3217 (target_supports_exec_events): Update the macro.
3218 * target.cc (process_target::supports_fork_events): Define.
3219 (process_target::supports_vfork_events): Define.
3220 (process_target::supports_exec_events): Define.
3221
3222 Update the derived classes and callers below.
3223
3224 * linux-low.cc (linux_target_ops): Update.
3225 (linux_supports_fork_events): Turn into ...
3226 (linux_process_target::supports_fork_events): ... this.
3227 (linux_supports_vfork_events): Turn into ...
3228 (linux_process_target::supports_vfork_events): ... this.
3229 (linux_supports_exec_events): Turn into ...
3230 (linux_process_target::supports_exec_events): ... this.
3231 * linux-low.h (class linux_process_target): Update.
3232 * lynx-low.cc (lynx_target_ops): Update.
3233 * nto-low.cc (nto_target_ops): Update.
3234 * win32-low.cc (win32_target_ops): Update.
3235
652aef77
TBA
32362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3237
3238 Turn process_stratum_target's supports_multi_process op into a
3239 method of process_target.
3240
3241 * target.h (struct process_stratum_target): Remove the target op.
3242 (class process_target): Add the target op.
3243 * target.cc (process_target::supports_multi_process): Define.
3244 (target_supports_multi_process): Update.
3245
3246 Update the derived classes and callers below.
3247
3248 * linux-low.cc (linux_target_ops): Update.
3249 (linux_supports_multi_process): Turn into ...
3250 (linux_process_target::supports_multi_process): ... this.
3251 * linux-low.h (class linux_process_target): Update.
3252 * lynx-low.cc (lynx_target_ops): Update.
3253 * nto-low.cc (nto_target_ops): Update.
3254 * win32-low.cc (win32_target_ops): Update.
3255
0dc587d4
TBA
32562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3257
3258 Turn process_stratum_target's supports_non_stop, async, and
3259 start_non_stop ops into methods of process_target.
3260
3261 * target.h (struct process_stratum_target): Remove the target ops.
3262 (class process_target): Add the target ops.
3263 (target_supports_non_stop): Update the macro.
3264 (target_async): Update the macro.
3265 (start_non_stop): Remove declaration.
3266 * target.cc (process_target::supports_non_stop): Define.
3267 (process_target::async): Define.
3268 (process_target::start_non_stop): Define.
3269 (start_non_stop): Remove.
3270
3271 Update the derived classes and callers below.
3272
3273 * server.cc (handle_qxfer_siginfo): Update.
3274 (handle_query): Update.
3275 * linux-low.cc (linux_target_ops): Update.
3276 (linux_supports_non_stop): Turn into ...
3277 (linux_process_target::supports_non_stop): ... this.
3278 (linux_async): Turn into ...
3279 (linux_process_target::async): ... this.
3280 (linux_start_non_stop): Turn into ...
3281 (linux_process_target::start_non_stop): ... this.
3282 * linux-low.h (class linux_process_target): Update.
3283 * lynx-low.cc (lynx_target_ops): Update.
3284 * nto-low.cc (nto_target_ops): Update.
3285 (nto_supports_non_stop): Remove; rely on the default behavior
3286 instead.
3287 * win32-low.cc (win32_target_ops): Update.
3288
d7abedf7
TBA
32892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3290
3291 Turn process_stratum_target's qxfer_siginfo op into a method of
3292 process_target.
3293
3294 * target.h (struct process_stratum_target): Remove the target op.
3295 (class process_target): Add the target op. Also add
3296 'supports_qxfer_siginfo'.
3297 * target.cc (process_target::qxfer_siginfo): Define.
3298 (process_target::supports_qxfer_siginfo): Define.
3299
3300 Update the derived classes and callers below.
3301
3302 * server.cc (handle_qxfer_siginfo): Update.
3303 (handle_query): Update.
3304 * linux-low.cc (linux_target_ops): Update.
3305 (linux_process_target::supports_qxfer_siginfo): Define.
3306 (linux_xfer_siginfo): Turn into ...
3307 (linux_process_target::qxfer_siginfo): ... this.
3308 * linux-low.h (class linux_process_target): Update.
3309 * lynx-low.cc (lynx_target_ops): Update.
3310 * nto-low.cc (nto_target_ops): Update.
3311 * win32-low.cc (win32_target_ops): Update.
3312
2d0795ee
TBA
33132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3314
3315 Turn process_stratum_target's qxfer_osdata op into a method of
3316 process_target.
3317
3318 * target.h (struct process_stratum_target): Remove the target op.
3319 (class process_target): Add the target op. Also add
3320 'supports_qxfer_osdata'.
3321 * target.cc (process_target::qxfer_osdata): Define.
3322 (process_target::supports_qxfer_osdata): Define.
3323
3324 Update the derived classes and callers below.
3325
3326 * server.cc (handle_qxfer_osdata): Update.
3327 (handle_query): Update.
3328 * linux-low.cc (linux_target_ops): Update.
3329 (linux_process_target::supports_qxfer_osdata): Define.
3330 (linux_qxfer_osdata): Turn into ...
3331 (linux_process_target::qxfer_osdata): ... this.
3332 * linux-low.h (class linux_process_target): Update.
3333 * lynx-low.cc (lynx_target_ops): Update.
3334 * nto-low.cc (nto_target_ops): Update.
3335 * win32-low.cc (win32_target_ops): Update.
3336
ea06bbaa
TBA
33372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3338
3339 Turn process_stratum_target's hostio_last_error op into a
3340 method of process_target.
3341
3342 * target.h (struct process_stratum_target): Remove the target op.
3343 (class process_target): Add the target op.
3344 * target.cc: Add "hostio.h" to includes.
3345 (process_target::hostio_last_error): Define.
3346
3347 Update the derived classes and callers below.
3348
3349 * hostio.cc (hostio_error): Update.
3350 * linux-low.cc: Remove "hostio.h" from includes.
3351 (linux_target_ops): Update.
3352 * lynx-low.cc (lynx_target_ops): Update.
3353 * nto-low.cc (nto_target_ops): Update.
3354 * win32-low.h (class win32_process_target): Update.
3355 * win32-low.cc (win32_target_ops): Update.
3356 (wince_hostio_last_error): Turn into ...
3357 (win32_process_target::hostio_last_error): ... this.
3358
6e3fd7e9
TBA
33592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3360
3361 Turn process_stratum_target's get_tls_address op into a method of
3362 process_target.
3363
3364 * target.h (struct process_stratum_target): Remove the target op.
3365 (class process_target): Add the target op. Also add
3366 'supports_get_tls_address'.
3367 * target.cc (process_target::get_tls_address): Define.
3368 (process_target::supports_get_tls_address): Define.
3369
3370 Update the derived classes and callers below.
3371
3372 * server.cc (handle_query): Update.
3373 * linux-low.cc (linux_target_ops): Update.
3374 (linux_process_target::supports_get_tls_address): Define.
3375 (linux_process_target::get_tls_address): Define.
3376 * linux-low.h (class linux_process_target): Update.
3377 * lynx-low.cc (lynx_target_ops): Update.
3378 * nto-low.cc (nto_target_ops): Update.
3379 * win32-low.cc (win32_target_ops): Update.
3380
5203ae1e
TBA
33812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3382
3383 Turn process_stratum_target's read_offsets op into a method of
3384 process_target.
3385
3386 * target.h (struct process_stratum_target): Remove the target op.
3387 (class process_target): Add the target op. Also add
3388 'supports_read_offsets'.
3389 * target.cc (process_target::read_offsets): Define.
3390 (process_target::supports_read_offsets): Define.
3391
3392 Update the derived classes and callers below.
3393
3394 * server.cc (handle_query): Update.
3395 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3396 (linux_target_ops): Update.
3397 (linux_process_target::supports_read_offsets): Define.
3398 (linux_read_offsets): Turn into ...
3399 (linux_process_target::read_offsets): ... this.
3400 * linux-low.h (class linux_process_target): Update.
3401 * lynx-low.cc (lynx_target_ops): Update.
3402 * nto-low.cc (nto_target_ops): Update.
3403 * win32-low.cc (win32_target_ops): Update.
3404
6eeb5c55
TBA
34052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3406
3407 Turn process_stratum_target's stopped_by_watchpoint and
3408 stopped_data_address ops into methods of process_target.
3409
3410 * target.h (struct process_stratum_target): Remove the target ops.
3411 (class process_target): Add the target ops.
3412 * target.cc (process_target::stopped_by_watchpoint): Define.
3413 (process_target::stopped_data_address): Define.
3414
3415 Update the derived classes and callers below.
3416
3417 * remote-utils.cc (prepare_resume_reply): Update.
3418 * linux-low.cc (linux_target_ops): Update.
3419 (linux_stopped_by_watchpoint): Turn into ...
3420 (linux_process_target::stopped_by_watchpoint): ... this.
3421 (linux_stopped_data_address): Turn into ...
3422 (linux_process_target::stopped_data_address): ... this.
3423 * linux-low.h (class linux_process_target): Update.
3424 * lynx-low.cc (lynx_target_ops): Update.
3425 * nto-low.cc (nto_target_ops): Update.
3426 (nto_stopped_by_watchpoint): Turn into ...
3427 (nto_process_target::stopped_by_watchpoint): ... this.
3428 (nto_stopped_data_address): Turn into ...
3429 (nto_process_target::stopped_data_address): ... this.
3430 * nto-low.h (class nto_process_target): Update.
3431 * win32-low.cc (win32_target_ops): Update.
3432 (win32_stopped_by_watchpoint): Turn into ...
3433 (win32_process_target::stopped_by_watchpoint): ... this.
3434 (win32_stopped_data_address): Turn into ...
3435 (win32_process_target::stopped_data_address): ... this.
3436 * win32-low.h (class win32_process_target): Update.
3437
22aa6223
TBA
34382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3439
3440 Turn process_stratum_target's supports_hardware_single_step op into
3441 a method of process_target.
3442
3443 * target.h (struct process_stratum_target): Remove the target op.
3444 (class process_target): Add the target op.
3445 (target_supports_hardware_single_step): Update the macro.
3446 (target_can_do_hardware_single_step): Remove declaration.
3447 * target.cc (process_target::supports_hardware_single_step): Define.
3448 (target_can_do_hardware_single_step): Remove.
3449
3450 Update the derived classes and callers below.
3451
3452 * linux-low.h (class linux_process_target): Update.
3453 * linux-low.cc (linux_target_ops): Update.
3454 (linux_supports_hardware_single_step): Turn into ...
3455 (linux_process_target::supports_hardware_single_step): ... this.
3456 * lynx-low.h (class lynx_process_target): Update.
3457 * lynx-low.cc (lynx_target_ops): Update.
3458 (lynx_process_target::supports_hardware_single_step): Define.
3459 * nto-low.h (class nto_process_target): Update.
3460 * nto-low.cc (nto_target_ops): Update.
3461 (nto_process_target::supports_hardware_single_step): Define.
3462 * win32-low.h (class win32_process_target): Update.
3463 * win32-low.cc (win32_target_ops): Update.
3464 (win32_process_target::supports_hardware_single_step): Define.
3465
93fe88b2
TBA
34662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3467
3468 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3469 ops into methods of process_target.
3470
3471 * target.h (struct process_stratum_target): Remove the target ops.
3472 (class process_target): Add the target ops.
3473 (target_stopped_by_hw_breakpoint): Update the macro.
3474 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3475 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3476 (process_target::supports_stopped_by_hw_breakpoint): Define.
3477
3478 Update the derived classes and callers below.
3479
3480 * linux-low.cc (linux_target_ops): Update.
3481 (linux_stopped_by_hw_breakpoint): Turn into ...
3482 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3483 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3484 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3485 * linux-low.h (class linux_process_target): Update.
3486 * lynx-low.cc (lynx_target_ops): Update.
3487 * nto-low.cc (nto_target_ops): Update.
3488 * win32-low.cc (win32_target_ops): Update.
3489
84320c4e
TBA
34902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3491
3492 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3493 ops into methods of process_target.
3494
3495 * target.h (struct process_stratum_target): Remove the target ops.
3496 (class process_target): Add the target ops.
3497 (target_stopped_by_sw_breakpoint): Update the macro.
3498 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3499 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3500 (process_target::supports_stopped_by_sw_breakpoint): Define.
3501
3502 Update the derived classes and callers below.
3503
3504 * linux-low.cc (linux_target_ops): Update.
3505 (linux_stopped_by_sw_breakpoint): Turn into ...
3506 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3507 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3508 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3509 * linux-low.h (class linux_process_target): Update.
3510 * lynx-low.cc (lynx_target_ops): Update.
3511 * nto-low.cc (nto_target_ops): Update.
3512 * win32-low.cc (win32_target_ops): Update.
3513
7e0bde70
TBA
35142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3515
3516 Turn process_stratum_target's insert_point and remove_point ops
3517 into methods of process_target.
3518
3519 * target.h (struct process_stratum_target): Remove the target ops.
3520 (class process_target): Add the target ops.
3521 * target.cc (process_target::insert_point): Define.
3522 (process_target::remove_point): Define.
3523
3524 Update the derived classes and callers below.
3525
3526 * mem-break.cc (set_raw_breakpoint_at): Update.
3527 (delete_raw_breakpoint): Update.
3528 (uninsert_raw_breakpoint): Update.
3529 (reinsert_raw_breakpoint): Update.
3530 * linux-low.cc (linux_target_ops): Update.
3531 (linux_insert_point): Turn into ...
3532 (linux_process_target::insert_point): ... this.
3533 (linux_remove_point): Turn into ...
3534 (linux_process_target::remove_point): ... this.
3535 * linux-low.h (class linux_process_target): Update.
3536 * lynx-low.cc (lynx_target_ops): Update.
3537 * nto-low.cc (nto_target_ops): Update.
3538 (nto_insert_point): Turn into ...
3539 (nto_process_target::insert_point): ... this.
3540 (nto_remove_point): Turn into ...
3541 (nto_process_target::remove_point): ... this.
3542 * nto-low.h (class nto_process_target): Update.
3543 * win32-low.cc (win32_target_ops): Update.
3544 (win32_insert_point): Turn into ...
3545 (win32_process_target::insert_point): ... this.
3546 (win32_remove_point): Turn into ...
3547 (win32_process_target::remove_point): ... this.
3548 * win32-low.h (class win32_process_target): Update.
3549
a2b2297a
TBA
35502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3551
3552 Turn process_stratum_target's supports_z_point_type op into a
3553 method of process_target.
3554
3555 * target.h (struct process_stratum_target): Remove the target op.
3556 (class process_target): Add the target op.
3557 * target.cc (process_target::supports_z_point_type): Define.
3558
3559 Update the derived classes and callers below.
3560
3561 * mem-break.cc (z_type_supported): Update.
3562 * linux-low.cc (linux_target_ops): Update.
3563 (linux_supports_z_point_type): Turn into ...
3564 (linux_process_target::supports_z_point_type): ... this.
3565 * linux-low.h (class linux_process_target): Update.
3566 * lynx-low.cc (lynx_target_ops): Update.
3567 * nto-low.cc (nto_target_ops): Update.
3568 (nto_supports_z_point_type): Turn into ...
3569 (nto_process_target::supports_z_point_type): ... this.
3570 * nto-low.h (class nto_process_target): Update.
3571 * win32-low.cc (win32_target_ops): Update.
3572 (win32_supports_z_point_type): Turn into ...
3573 (win32_process_target::supports_z_point_type): ... this.
3574 * win32-low.h (class win32_process_target): Update.
3575
eac215cc
TBA
35762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3577
3578 Turn process_stratum_target's read_auxv op into a method of
3579 process_target.
3580
3581 * target.h (class process_stratum_target): Remove the target op.
3582 (struct process_target): Add the target op. Also add
3583 'supports_read_auxv'.
3584 * target.cc (process_target::read_auxv): Define.
3585 (process_target::supports_read_auxv): Define.
3586
3587 Update the derived classes and callers below.
3588
3589 * server.cc (handle_qxfer_auxv): Update.
3590 (handle_query): Update.
3591 * linux-low.cc (linux_target_ops): Update.
3592 (linux_process_target::supports_read_auxv): Define.
3593 (linux_read_auxv): Turn into ...
3594 (linux_process_target::read_auxv): ... this.
3595 * linux-low.h (class linux_process_target): Update.
3596 * lynx-low.cc (lynx_target_ops): Update.
3597 * nto-low.cc (nto_target_ops): Update.
3598 (nto_process_target::supports_read_auxv): Define.
3599 (nto_read_auxv): Turn into ...
3600 (nto_process_target::read_auxv): ... this.
3601 * nto-low.h (class nto_process_target): Update.
3602 * win32-low.cc (win32_target_ops): Update.
3603
eb497a2a
TBA
36042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3605
3606 Turn process_stratum_target's request_interrupt op into a method of
3607 process_target.
3608
3609 * target.h (struct process_stratum_target): Remove the target op.
3610 (class process_target): Add the target op.
3611
3612 Update the derived classes and callers below.
3613
3614 * remote-utils.cc (putpkt_binary_1): Update.
3615 (input_interrupt): Update.
3616 (getpkt): Update.
3617 * server.cc (handle_v_requests): Update.
3618 * linux-low.cc (linux_target_ops): Update.
3619 (linux_request_interrupt): Turn into ...
3620 (linux_process_target::request_interrupt): ... this.
3621 * linux-low.h (class linux_process_target): Update.
3622 * lynx-low.cc (lynx_target_ops): Update.
3623 (lynx_request_interrupt): Turn into ...
3624 (lynx_process_target::request_interrupt): ... this.
3625 * lynx-low.h (class lynx_process_target): Update.
3626 * nto-low.cc (nto_target_ops): Update.
3627 (nto_request_interrupt): Turn into ...
3628 (nto_process_target::request_interrupt): ... this.
3629 * nto-low.h (class nto_process_target): Update.
3630 * win32-low.cc (win32_target_ops): Update.
3631 (win32_request_interrupt): Turn into ...
3632 (win32_process_target::request_interrupt): ... this.
3633 * win32-low.h (class win32_process_target): Update.
3634
2a31c7aa
TBA
36352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3636
3637 Turn process_stratum_target's look_up_symbols op into a method of
3638 process_target.
3639
3640 * target.h (struct process_stratum_target): Remove the target op.
3641 (class process_target): Add the target op.
3642 * target.cc (process_target::look_up_symbols): Define.
3643
3644 Update the derived classes and callers below.
3645
3646 * server.cc (handle_query): Update.
3647 * linux-low.cc (linux_target_ops): Update.
3648 (linux_look_up_symbols): Turn into ...
3649 (linux_process_target::look_up_symbols): ... this.
3650 * linux-low.h (class linux_process_target): Update.
3651 * lynx-low.cc (lynx_target_ops): Update.
3652 * nto-low.cc (nto_target_ops): Update.
3653 * win32-low.cc (win32_target_ops): Update.
3654
e2558df3
TBA
36552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3656
3657 Turn process_stratum_target's read_memory and write_memory
3658 ops into methods of process_target.
3659
3660 * target.h (struct process_stratum_target): Remove the target ops.
3661 (class process_target): Add the target ops.
3662
3663 Update the derived classes and callers below.
3664
3665 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3666 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3667 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3668 (arm_get_syscall_trapinfo): Update.
3669 * linux-cris-low.cc (cris_breakpoint_at): Update.
3670 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3671 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3672 * linux-mips-low.cc (mips_breakpoint_at): Update.
3673 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3674 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3675 * linux-sh-low.cc (sh_breakpoint_at): Update.
3676 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3677 (sparc_store_gregset_from_stack): Update.
3678 (sparc_breakpoint_at): Update.
3679 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3680 * linux-tile-low.cc (tile_breakpoint_at): Update.
3681 * linux-x86-low.cc (x86_breakpoint_at): Update.
3682 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3683 * mem-brea.cc (insert_memory_breakpoint): Update.
3684 (validate_inserted_breakpoint): Update.
3685 * target.cc (read_inferior_memory): Update.
3686 (target_write_memory): Update.
3687 * linux-low.cc (linux_target_ops): Update.
3688 (linux_read_memory): Make a wrapper around the read_memory target
3689 op call.
3690 (linux_process_target::read_memory): Rename from linux_read_memory.
3691 (linux_write_memory): Turn into ...
3692 (linux_process_target::write_memory): ... this.
3693 * linux-low.h (class linux_process_target): Update.
3694 * lynx-low.cc (lynx_target_ops): Update.
3695 (lynx_read_memory): Turn into ...
3696 (lynx_process_target::read_memory): ... this.
3697 (lynx_write_memory): Turn into ...
3698 (lynx_process_target::write_memory): ... this.
3699 * lynx-low.h (class lynx_process_target): Update.
3700 * nto-low.cc (nto_target_ops): Update.
3701 (nto_read_memory): Turn into ...
3702 (nto_process_target::read_memory): ... this.
3703 (nto_write_memory): Turn into ...
3704 (nto_process_target::write_memory): ... this.
3705 * nto-low.h (class nto_process_target): Update.
3706 * win32-low.cc (win32_target_ops): Update.
3707 (win32_read_inferior_memory): Turn into ...
3708 (win32_process_target::read_memory): ... this.
3709 (win32_write_inferior_memory): Turn into ...
3710 (win32_process_target::write_memory): ... this.
3711 * win32-low.h (class win32_process_target): Update.
3712
79b44087
TBA
37132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3714
3715 Turn process_stratum_target's prepare_to_access_memory and
3716 done_accessing_memory ops into methods of process_target.
3717
3718 * target.h (struct process_stratum_target): Remove the target ops.
3719 (class process_target): Add the target ops.
3720 * target.cc (process_target::prepare_to_access_memory): Define.
3721 (process_target::done_accessing_memory): Define.
3722 (prepare_to_access_memory): Update.
3723 (done_accessing_memory): Update.
3724
3725 Update the derived classes and callers below.
3726
3727 * linux-low.cc (linux_target_ops): Update.
3728 (linux_prepare_to_access_memory): Turn into ...
3729 (linux_process_target::prepare_to_access_memory): ... this.
3730 (linux_done_accessing_memory): Turn into ...
3731 (linux_process_target::done_accessing_memory): ... this.
3732 * linux-low.h (class linux_process_target): Update.
3733 * lynx-low.cc (lynx_target_ops): Update.
3734 * nto-low.cc (nto_target_ops): Update.
3735 * win32-low.cc (win32_target_ops): Update.
3736
a5a4d4cd
TBA
37372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3738
3739 Turn process_stratum_target's fetch_registers and store_registers
3740 ops into methods of process_target.
3741
3742 * target.h (struct process_stratum_target): Remove the target ops.
3743 (class process_target): Add the target ops.
3744 (fetch_inferior_registers): Update the macro.
3745 (store_inferior_registers): Update the macro.
3746
3747 Update the derived classes and callers below.
3748
3749 * linux-low.cc (linux_target_ops): Update.
3750 (linux_fetch_registers): Turn into ...
3751 (linux_process_target::fetch_registers): ... this.
3752 (linux_store_registers): Turn into ...
3753 (linux_process_target::store_registers): ... this.
3754 * linux-low.h (class linux_process_target): Update.
3755 * lynx-low.cc (lynx_target_ops): Update.
3756 (lynx_fetch_registers): Turn into ...
3757 (lynx_process_target::fetch_registers): ... this.
3758 (lynx_store_registers): Turn into ...
3759 (lynx_process_target::store_registers): ... this.
3760 * lynx-low.h (class lynx_process_target): Update.
3761 * nto-low.cc (nto_target_ops): Update.
3762 (nto_fetch_registers): Turn into ...
3763 (nto_process_target::fetch_registers): ... this.
3764 (nto_store_registers): Turn into ...
3765 (nto_process_target::store_registers): ... this.
3766 * nto-low.h (class nto_process_target): Update.
3767 * win32-low.cc (win32_target_ops): Update.
3768 (win32_fetch_inferior_registers): Turn into ...
3769 (win32_process_target::fetch_registers): ... this.
3770 (win32_store_inferior_registers): Turn into ...
3771 (win32_process_target::store_registers): ... this.
3772 * win32-low.h (class win32_process_target): Update.
3773
6532e7e3
TBA
37742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3775
3776 Turn process_stratum_target's wait op into a method of
3777 process_target.
3778
3779 * target.h (struct process_stratum_target): Remove the target op.
3780 (class process_target): Add the target op.
3781
3782 Update the derived classes and callers below.
3783
3784 * target.cc (target_wait): Update.
3785 * linux-low.cc (linux_target_ops): Update.
3786 (linux_wait): Turn into ...
3787 (linux_process_target::wait): ... this.
3788 * linux-low.h (class linux_process_target): Update.
3789 * lynx-low.cc (lynx_target_ops): Update.
3790 (lynx_wait): Turn into ...
3791 (lynx_process_target::wait): ... this.
3792 * lynx-low.h (class lynx_process_target): Update.
3793 * nto-low.cc (nto_target_ops): Update.
3794 (nto_wait): Turn into ...
3795 (nto_process_target::wait): ... this.
3796 * nto-low.h (class nto_process_target): Update.
3797 * win32-low.cc (win32_target_ops): Update.
3798 (win32_wait): Turn into ...
3799 (win32_process_target::wait): ... this.
3800 (do_initial_child_stuff): Update.
3801 * win32-low.h (class win32_process_target): Update.
3802
0e4d7e35
TBA
38032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3804
3805 Turn process_stratum_target's resume op into a method of
3806 process_target.
3807
3808 * target.h (struct process_stratum_target): Remove the target op.
3809 (class process_target): Add the target op.
3810
3811 Update the derived classes and callers below.
3812
3813 * server.cc (resume): Update.
3814 * target.cc (target_stop_and_wait): Update.
3815 (target_continue_no_signal): Update.
3816 (target_continue): Update.
3817 * linux-low.cc (linux_target_ops): Update.
3818 (linux_resume): Turn into ...
3819 (linux_process_target::resume): ... this.
3820 * linux-low.h (class linux_process_target): Update.
3821 * lynx-low.cc (lynx_target_ops): Update.
3822 (lynx_resume): Turn into ...
3823 (lynx_process_target::resume): ... this.
3824 * lynx-low.h (class lynx_process_target): Update.
3825 * nto-low.cc (nto_target_ops): Update.
3826 (nto_resume): Turn into ...
3827 (nto_process_target::resume): ... this.
3828 * nto-low.h (class nto_process_target): Update.
3829 * win32-low.cc (win32_target_ops): Update.
3830 (win32_resume): Turn into ...
3831 (win32_process_target::resume): ... this.
3832 (win32_process_target::detach): Update.
3833 (do_initial_child_stuff): Update.
3834 * win32-low.h (class win32_process_target): Update.
3835
13d3d99b
TBA
38362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3837
3838 Turn process_stratum_target's thread_alive op into a method of
3839 process_target.
3840
3841 * target.h (struct process_stratum_target): Remove the target op.
3842 (class process_target): Add the target op.
3843 (mythread_alive): Update the macro.
3844
3845 Update the derived classes and callers below.
3846
3847 * linux-low.cc (linux_target_ops): Update.
3848 (linux_thread_alive): Turn into ...
3849 (linux_process_target::thread_alive): ... this.
3850 (wait_for_sigstop): Update.
3851 * linux-low.h (class linux_process_target): Update.
3852 * lynx-low.cc (lynx_target_ops): Update.
3853 (lynx_thread_alive): Turn into ...
3854 (lynx_process_target::thread_alive): ... this.
3855 * lynx-low.h (class lynx_process_target): Update.
3856 * nto-low.cc (nto_target_ops): Update.
3857 (nto_thread_alive): Turn into ...
3858 (nto_process_target::thread_alive): ... this.
3859 * nto-low.h (class nto_process_target): Update.
3860 * win32-low.cc (win32_target_ops): Update.
3861 (win32_thread_alive): Turn into ...
3862 (win32_process_target::thread_alive): ... this.
3863 * win32-low.h (class win32_process_target): Update.
3864
95a49a39
TBA
38652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3866
3867 Turn process_stratum_target's join op into a method of
3868 process_target.
3869
3870 * target.h (struct process_stratum_target): Remove the target op.
3871 (class process_target): Add the target op.
3872 (join_inferior): Update the macro.
3873
3874 Update the derived classes and callers below.
3875
3876 * linux-low.cc (linux_target_ops): Update.
3877 (linux_join): Turn into ...
3878 (linux_process_target::join): ... this.
3879 * linux-low.h (class linux_process_target): Update.
3880 * lynx-low.cc (lynx_target_ops): Update.
3881 (lynx_join): Turn into ...
3882 (lynx_process_target::join): ... this.
3883 * lynx-low.h (class lynx_process_target): Update.
3884 * nto-low.cc (nto_target_ops): Update.
3885 (nto_process_target::join): Define.
3886 * nto-low.h (class nto_process_target): Update.
3887 * win32-low.cc (win32_target_ops): Update.
3888 (win32_join): Turn into ...
3889 (win32_process_target::join): ... this.
3890 * win32-low.h (class win32_process_target): Update.
3891
8adb37b9
TBA
38922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3893
3894 Turn process_stratum_target's mourn op into a method of
3895 process_target.
3896
3897 * target.h (struct process_stratum_target): Remove the target op.
3898 (class process_target): Add the target op.
3899
3900 Update the derived classes and callers below.
3901
3902 * target.cc (target_mourn_inferior): Update.
3903 * linux-low.cc (linux_target_ops): Update.
3904 (linux_mourn): Turn into ...
3905 (linux_process_target::mourn): ... this.
3906 (handle_extended_wait): Update.
3907 (linux_process_target::kill): Update.
3908 (linux_process_target::detach): Update.
3909 * linux-low.h (class linux_process_target): Update.
3910 * lynx-low.cc (lynx_target_ops): Update.
3911 (lynx_mourn): Turn into ...
3912 (lynx_process_target::mourn): ... this.
3913 * lynx-low.h (class lynx_process_target): Update.
3914 * nto-low.cc (nto_target_ops): Update.
3915 (nto_mourn): Turn into ...
3916 (nto_process_target::mourn): ... this.
3917 * nto-low.h (class nto_process_target): Update.
3918 * win32-low.cc (win32_target_ops): Update.
3919 (win32_mourn): Turn into ...
3920 (win32_process_target::mourn): ... this.
3921 * win32-low.h (class win32_process_target): Update.
3922
9061c9cf
TBA
39232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3924
3925 Turn process_stratum_target's detach op into a method of
3926 process_target.
3927
3928 * target.h (struct process_stratum_target): Remove the target op.
3929 (class process_target): Add the target op.
3930 (detach_inferior): Update the macro.
3931
3932 Update the derived classes and callers below.
3933
3934 * linux-low.cc (linux_target_ops): Update.
3935 (linux_detach): Turn into ...
3936 (linux_process_target::detach): ... this.
3937 * linux-low.h (class linux_process_target): Update.
3938 * lynx-low.cc (lynx_target_ops): Update.
3939 (lynx_detach): Turn into ...
3940 (lynx_process_target::detach): ... this.
3941 * lynx-low.h (class lynx_process_target): Update.
3942 * nto-low.cc (nto_target_ops): Update.
3943 (nto_detach): Turn into ...
3944 (nto_process_target::detach): ... this.
3945 * nto-low.h (class nto_process_target): Update.
3946 * win32-low.cc (win32_target_ops): Update.
3947 (win32_detach): Turn into ...
3948 (win32_process_target::detach): ... this.
3949 * win32-low.h (class win32_process_target): Update.
3950
c6885a57
TBA
39512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3952
3953 Turn process_stratum_target's kill op into a method of
3954 process_target.
3955
3956 * target.h (struct process_stratum_target): Remove the target op.
3957 (class process_target): Add the target op.
3958
3959 Update the derived classes and callers below.
3960
3961 * target.cc (kill_inferior): Update.
3962 * linux-low.cc (linux_target_ops): Update.
3963 (linux_kill): Turn into ...
3964 (linux_process_target::kill): ... this.
3965 * linux-low.h (class linux_process_target): Update.
3966 * lynx-low.cc (lynx_target_ops): Update.
3967 (lynx_kill): Turn into ...
3968 (lynx_process_target::kill): ... this.
3969 * lynx-low.h (class lynx_process_target): Update.
3970 * nto-low.cc (nto_target_ops): Update.
3971 (nto_kill): Turn into ...
3972 (nto_process_target::kill): ... this.
3973 * nto-low.h (class nto_process_target): Update.
3974 * win32-low.cc (win32_target_ops): Update.
3975 (win32_kill): Turn into ...
3976 (win32_process_target::kill): ... this.
3977 * win32-low.h (class win32_process_target): Update.
3978
ef03dad8
TBA
39792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3980
3981 Turn process_stratum_target's attach op into a method of
3982 process_target.
3983
3984 * target.h (struct process_stratum_target): Remove the target op.
3985 (class process_target): Add the target op.
3986 (myattach): Update the macro.
3987
3988 Update the derived classes and callers below.
3989
3990 * linux-low.cc (linux_target_ops): Update.
3991 (linux_attach): Turn into ...
3992 (linux_process_target::attach): ... this.
3993 * linux-low.h (class linux_process_target): Update.
3994 * lynx-low.cc (lynx_target_ops): Update.
3995 (lynx_attach): Turn into ...
3996 (lynx_process_target::attach): ... this.
3997 * lynx-low.h (class lynx_process_target): Update.
3998 * nto-low.cc (nto_target_ops): Update.
3999 (nto_attach): Turn into ...
4000 (nto_process_target::attach): ... this.
4001 * nto-low.h (class nto_process_target): Update.
4002 * win32-low.cc (win32_target_ops): Update.
4003 (win32_attach): Turn into ...
4004 (win32_process_target::attach): ... this.
4005 * win32-low.h (class win32_process_target): Update.
4006
6dee9afb
TBA
40072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4008
4009 Turn process_stratum_target's post_create_inferior op into a method
4010 of process_target.
4011
4012 * target.h (struct process_stratum_target): Remove the target op.
4013 (class process_target): Add the target op.
4014 (target_post_create_inferior): Update the macro.
4015 * target.cc (process_target::post_create_inferior): Define.
4016
4017 Update the derived classes and callers below.
4018
4019 * linux-low.cc (linux_target_ops): Update.
4020 (linux_post_create_inferior): Turn into ...
4021 (linux_process_target::post_create_inferior): ... this.
4022 * linux-low.h (class linux_process_target): Update.
4023 * lynx-low.cc (lynx_target_ops): Update.
4024 * nto-low.cc (nto_target_ops): Update.
4025 * win32-low.cc (win32_target_ops): Update.
4026
15295543
TBA
40272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4028
4029 Turn process_stratum_target's create_inferior op into a method of
4030 process_target.
4031
4032 * target.h (struct process_stratum_target): Remove the target op.
4033 (class process_target): Add the target op.
4034 (create_inferior): Rename the macro to ...
4035 (target_create_inferior): ... this.
4036
4037 Update the derived classes and callers below.
4038
4039 * server.cc (handle_v_run): Update.
4040 (captured_main): Update.
4041 (process_serial_event): Update.
4042 * linux-low.cc (linux_target_ops): Update.
4043 (linux_create_inferior): Turn into ...
4044 (linux_process_target::create_inferior): ... this.
4045 * linux-low.h (class linux_process_target): Update.
4046 * lynx-low.cc (lynx_target_ops): Update.
4047 (lynx_create_inferior): Turn into ...
4048 (lynx_process_target::create_inferior): ... this.
4049 * lynx-low.h (class lynx_process_target): Update.
4050 * nto-low.cc (nto_target_ops): Update.
4051 (nto_create_inferior): Turn into ...
4052 (nto_process_target::create_inferior): ... this.
4053 * nto-low.h (class nto_process_target): Update.
4054 * win32-low.cc (win32_target_ops): Update.
4055 (win32_create_inferior): Turn into ...
4056 (win32_process_target::create_inferior): ... this.
4057 * win32-low.h (class win32_process_target): Update.
4058
5ef9273d
TBA
40592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4060
4061 * target.h (class process_target): New class definition.
4062 (struct process_stratum_target) <pt>: New field with type
4063 'process_target*'.
4064 * linux-low.h (class linux_process_target): Define as a derived
4065 class of 'process_target'.
4066 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4067 as the 'pt' field.
4068 * lynx-low.h (class lynx_process_target): Define as a derived
4069 class of 'process_target'.
4070 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4071 as the 'pt' field.
4072 * nto-low.h (class nto_process_target): Define as a derived
4073 class of 'process_target'.
4074 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4075 as the 'pt' field.
4076 * win32-low.h (class win32_process_target): Define as a derived
4077 class of 'process_target'.
4078 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4079 as the 'pt' field.
4080
9f1528a1
AB
40812020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4082
4083 * configure: Regenerate.
4084
bf84f706
MR
40852020-02-19 Maciej W. Rozycki <macro@wdc.com>
4086 Andrew Burgess <andrew.burgess@embecosm.com>
4087
4088 * linux-riscv-low.cc: New file.
4089 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4090 and nat/riscv-linux-tdesc.c.
4091 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4092 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4093 Define.
4094
1a627e7e
TT
40952020-02-14 Tom Tromey <tom@tromey.com>
4096
4097 * acinclude.m4: Don't include acx_configure_dir.m4.
4098 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4099 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4100 (all, install-only, uninstall, clean-info, clean)
4101 (maintainer-clean): Don't recurse.
4102 (subdir_do, all-lib): Remove.
4103 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4104 (GNULIB_H): Remove.
4105 (generated_files): Update.
4106 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4107 * configure: Rebuild.
4108 * configure.ac: Don't configure gnulib or libiberty.
4109 (GNULIB): Update.
4110
a9b34532
EZ
41112020-02-14 Eli Zaretskii <eliz@gnu.org>
4112
4113 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4114 preparing the command line for CreateProcess.
4115 (win32_create_inferior): Reflect the program name in debugging
4116 output that shows the process and its command line.
4117
feacfcac
SM
41182020-02-13 Simon Marchi <simon.marchi@efficios.com>
4119
4120 * Makefile.in: Rename source files from .c to .cc.
4121 * %.c: Rename to %.cc.
4122 * configure.ac: Rename server.c to server.cc.
4123 * configure: Re-generate.
4124
06b3c5bd
SM
41252020-02-13 Simon Marchi <simon.marchi@efficios.com>
4126
4127 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4128
052793ad
HD
41292020-02-12 Hannes Domani <ssbssa@yahoo.de>
4130
4131 * win32-low.c (win32_create_inferior): Set signal_pid.
4132
f20e3e82
MR
41332020-02-12 Maciej W. Rozycki <macro@wdc.com>
4134 Pedro Alves <palves@redhat.com>
4135
4136 Skip building gdbserver in a cross-configuration.
4137 * configure.srv: Set $gdbserver_host depending on whether $target
4138 is $host. Use $gdbserver_host instead of $host.
4139
8ddd8e0e
SM
41402020-02-11 Simon Marchi <simon.marchi@efficios.com>
4141
4142 * configure: Re-generate.
4143
898e7f60
SM
41442020-02-11 Simon Marchi <simon.marchi@efficios.com>
4145
4146 * configure: Re-generate.
4147
58df732b
SM
41482020-02-11 Simon Marchi <simon.marchi@efficios.com>
4149
4150 * acinclude.m4: Update warning.m4 path.
4151
7928d571
HD
41522020-02-09 Hannes Domani <ssbssa@yahoo.de>
4153
4154 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4155 (handle_exception): Set siginfo_er.
4156 (win32_xfer_siginfo): New function.
4157
919adfe8
TT
41582020-02-07 Tom Tromey <tom@tromey.com>
4159 Pedro Alves <palves@redhat.com>
4160
4161 * README: Update build documentation.
4162 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4163 host, not target.
4164 * configure.ac: Update paths.
4165 * configure: Rebuild.
4166 * acinclude.m4: Update paths.
4167 * Makefile.in: Update include paths.
4168 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4169 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4170 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4171 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4172 (%-generated.c): Update paths.
4173 * Move entire directory from ../gdb/gdbserver.
4174
287c844a
MR
41752020-01-29 Maciej W. Rozycki <macro@wdc.com>
4176
4177 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4178
548a204f
PFC
41792020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4180
4181 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4182 assignment instead of srv_linux_obj.
4183
a2236a08
HD
41842020-01-28 Hannes Domani <ssbssa@yahoo.de>
4185
4186 * server.c (handle_qxfer_libraries): Write segment-address with
4187 paddress.
4188
bdaed379
HD
41892020-01-24 Hannes Domani <ssbssa@yahoo.de>
4190
4191 * Makefile.in (install-strip): New target.
4192 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4193 * aclocal.m4: Regenerate.
4194 * configure: Regenerate.
4195 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4196
42cd72aa
MR
41972020-01-24 Maciej W. Rozycki <macro@wdc.com>
4198
4199 * Makefile.in (SFILES): Adjust paths to point to real files.
4200 (OBS): Move waitstatus.o to target/waitstatus.o.
4201 (TAGS): Transform paths appropriately.
4202 (%.o): Rename to...
4203 (nat/%.o): ... this pattern rule.
4204 (%.o): Rename to...
4205 (target/%.o): ... this pattern rule.
4206 * configure.srv: Adjust paths throughout to include nat/ prefix
4207 with the revant files.
4208 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4209 * configure: Regenerate.
4210
42ba50ec
MR
42112020-01-24 Maciej W. Rozycki <macro@wdc.com>
4212
4213 * Makefile.in (TAGS): Remove config files from the recipe.
4214
05ea2a05
TT
42152020-01-14 Tom Tromey <tom@tromey.com>
4216
4217 * configure: Rebuild.
4218 * configure.ac: Remove any checks that were added to common.m4.
4219 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4220 lib-link.m4.
4221
01027315
TT
42222020-01-14 Tom Tromey <tom@tromey.com>
4223
4224 * server.h: Include config.h.
4225 * gdbreplay.c: Include config.h.
4226 * configure: Rebuild.
4227 * configure.ac: Don't source common.host.
4228 * acinclude.m4: Update path.
4229 * Makefile.in (INCSUPPORT): New variable.
4230 (INCLUDE_CFLAGS): Add INCSUPPORT.
4231 (SFILES): Update paths.
4232 (version-generated.c): Update path to create-version.sh.
4233 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4234
b2ceabe8
TT
42352020-01-14 Tom Tromey <tom@tromey.com>
4236
4237 * configure.ac (LIBS): Use WIN32APILIBS.
4238 (USE_WIN32API): Don't define.
4239 * configure: Rebuild.
4240
25c51f71
TT
42412020-01-14 Tom Tromey <tom@tromey.com>
4242
4243 * configure: Rebuild.
4244
c0bd321d
SM
42452020-01-13 Simon Marchi <simon.marchi@efficios.com>
4246
4247 * Makefile.in (%-generated.c): Remove rule for files from
4248 regformats/i386.
4249
bb564c58
SM
42502020-01-13 Simon Marchi <simon.marchi@efficios.com>
4251
4252 * configure: Re-generate.
4253
6e37c371
SM
42542020-01-13 Simon Marchi <simon.marchi@efficios.com>
4255
4256 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4257 Define to static.
4258 * tracepoint.c (stop_tracing, flush_trace_buffer,
4259 about_to_request_buffer_space, get_trace_state_variable_value,
4260 set_trace_state_variable_value, gdb_collect): Add declaration.
4261
df4a0200
SM
42622020-01-13 Simon Marchi <simon.marchi@efficios.com>
4263
4264 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4265 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4266 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4267 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4268 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4269 static.
4270
89e94ec9
SM
42712020-01-13 Simon Marchi <simon.marchi@efficios.com>
4272
4273 * inferiors.c: Include gdbsupport/common-inferior.h.
4274
2552728a
SM
42752020-01-13 Simon Marchi <simon.marchi@efficios.com>
4276
4277 * hostio-errno.c: Include hostio.h.
4278
4025fa09
SM
42792020-01-13 Simon Marchi <simon.marchi@efficios.com>
4280
4281 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4282 prerequisite.
4283
c0b0a142
SM
42842020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4285
4286 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4287 * linux-arm-tdesc.h: Include arch/arm.h.
4288
bb1183e2
SM
42892020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4290
4291 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4292
f5df0b5f
SM
42932020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4294
4295 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4296 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4297
5b6d1e4f
PA
42982020-01-10 Pedro Alves <palves@redhat.com>
4299
4300 * fork-child.c (post_fork_inferior): Pass target down to
4301 startup_inferior.
4302 * inferiors.c (switch_to_thread): Add process_stratum_target
4303 parameter.
4304 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4305 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4306 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4307 * remote-utils.c (prepare_resume_reply): Pass the target to
4308 switch_to_thread.
4309 * target.c (the_target): Now a process_stratum_target.
4310 (done_accessing_memory): Pass the target to switch_to_thread.
4311 (set_target_ops): Ajust to use process_stratum_target.
4312 * target.h (struct target_ops): Rename to ...
4313 (struct process_stratum_target): ... this.
4314 (the_target, set_target_ops): Adjust.
4315 (prepare_to_access_memory): Adjust comment.
4316 * win32-low.c (child_xfer_memory): Adjust to use
4317 process_stratum_target.
4318 (win32_target_ops): Now a process_stratum_target.
4319
559e7e50
EZ
43202020-01-06 Eli Zaretskii <eliz@gnu.org>
4321 Pedro Alves <palves@redhat.com>
4322
4323 * win32-low.c (get_child_debug_event): Extract the fatal exception
4324 from the exit status and convert to the equivalent Posix signal
4325 number.
4326 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4327 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4328
48189bec
HD
43292020-01-01 Hannes Domani <ssbssa@yahoo.de>
4330
4331 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4332
5dd8bf88
JB
43332020-01-01 Joel Brobecker <brobecker@adacore.com>
4334
4335 * server.c (gdbserver_version): Change copyright year to 2020.
4336 * gdbreplay.c (gdbreplay_version): Likewise.
4337
0ad6b8ee
CB
43382019-12-19 Christian Biesinger <cbiesinger@google.com>
4339
4340 * configure: Regenerate.
4341 * configure.ac: Quote variable arguments of test.
4342
1ee7b812
BE
43432019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4344
4345 * Makefile.in: Fix build with GNU Make 3.81
4346
d9fa87f4
TT
43472019-12-16 Tom Tromey <tromey@adacore.com>
4348
4349 * server.c (get_exec_file): Constify result.
4350
ab7d13f0
CB
43512019-12-10 Christian Biesinger <cbiesinger@google.com>
4352
4353 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4354 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4355 * config.in: Regenerate.
4356 * configure: Regenerate.
4357 * configure.ac: Don't check for strerror.
4358 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4359 Call safe_strerror instead of strerror.
4360 * server.h (strerror): Remove this now-unnecessary declaration.
4361 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4362 strerror.
4363 (gdb_agent_helper_thread): Likewise.
4364 * utils.c (perror_with_name): Likewise.
4365
4da8c3a8
TT
43662019-11-26 Tom Tromey <tom@tromey.com>
4367
4368 * configure, config.in: Rebuild.
4369
21987b9c
TT
43702019-11-26 Tom Tromey <tom@tromey.com>
4371
4372 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4373 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4374 gdb_sigmask.
4375 * configure, config.in: Rebuild.
4376
5e030278
TT
43772019-11-26 Tom Tromey <tom@tromey.com>
4378
4379 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4380 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4381 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4382 * acinclude.m4: Include ax_pthread.m4.
4383 * config.in, configure: Rebuild.
4384
6d91ce9a
CB
43852019-11-26 Christian Biesinger <cbiesinger@google.com>
4386
4387 * debug.c (debug_set_output): Call safe_strerror instead of
4388 strerror.
4389 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4390 (linux_kill_one_lwp): Likewise.
4391 (linux_detach_one_lwp): Likewise.
4392 (linux_wait_for_event_filtered): Likewise.
4393 (store_register): Likewise.
4394 * lynx-low.c (lynx_attach): Likewise.
4395 * mem-break.c (insert_memory_breakpoint): Likewise.
4396 (remove_memory_breakpoint): Likewise.
4397 (delete_fast_tracepoint_jump): Likewise.
4398 (set_fast_tracepoint_jump): Likewise.
4399 (uninsert_fast_tracepoint_jumps_at): Likewise.
4400 (reinsert_fast_tracepoint_jumps_at): Likewise.
4401 * nto-low.c (nto_xfer_memory): Likewise.
4402 (nto_resume): Likewise.
4403
6cdd651f
LM
44042019-11-20 Luis Machado <luis.machado@linaro.org>
4405
4406 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4407 instead of register count.
4408 * tdesc.c (tdesc_contains_feature): New function.
4409 * tdesc.h (tdesc_contains_feature): New prototype.
4410
cd850b40
CB
44112019-11-15 Christian Biesinger <cbiesinger@google.com>
4412
4413 * Makefile.in: Add safe-strerror.c.
4414 * configure: Regenerate.
4415 * configure.ac: Don't source common.host.
4416
5abebf3c
CB
44172019-11-15 Christian Biesinger <cbiesinger@google.com>
4418
4419 * config.in: Regenerate.
4420 * configure: Regenerate.
4421
e06f3d6e
AB
44222019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4423
4424 * ax.c (ax_printf): Handle size_t_arg.
4425
ca3a04f6
CB
44262019-11-06 Christian Biesinger <cbiesinger@google.com>
4427
4428 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4429 * mi/mi-main.c (output_cores): Likewise.
4430 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4431 (linux_xfer_osdata_modules): Likewise.
4432 * remote.c (register_remote_support_xml): Likewise.
4433 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4434 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4435
e48f6033
CB
44362019-11-01 Christian Biesinger <cbiesinger@google.com>
4437
4438 * configure: Regenerate.
4439 * configure.ac: Remove check for strerror_r.
4440
e7e97a2e
CB
44412019-10-31 Christian Biesinger <cbiesinger@google.com>
4442
4443 * config.in: Regenerate.
4444 * configure: Regenerate.
4445 * configure.ac: Also check for strerror_r.
4446
75cafaa6
CB
44472019-10-31 Christian Biesinger <cbiesinger@google.com>
4448
4449 * ax.h (debug_agent): Remove duplicate declaration.
4450
30baf67b
TV
44512019-10-26 Tom de Vries <tdevries@suse.de>
4452
4453 * linux-aarch64-low.c: Fix typos in comments.
4454 * linux-arm-low.c: Same.
4455 * linux-low.c: Same.
4456 * linux-ppc-low.c: Same.
4457 * proc-service.c: Same.
4458 * regcache.h: Same.
4459 * server.c: Same.
4460 * tracepoint.c: Same.
4461 * win32-low.c: Same.
4462
52c64cf7
TT
44632019-10-25 Tom Tromey <tromey@adacore.com>
4464
4465 * utils.c (xstrdup): Remove.
4466
c12d372d
TT
44672019-10-23 Tom Tromey <tom@tromey.com>
4468
4469 * configure, config.in: Rebuild.
4470
4d0b984b
TT
44712019-10-23 Tom Tromey <tom@tromey.com>
4472
4473 * configure: Rebuild.
4474 * acinclude.m4: Use m4_include, not sinclude.
4475
c5adaa19
TT
44762019-10-17 Tom Tromey <tromey@adacore.com>
4477
4478 * configure: Rebuild.
4479 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4480 in AC_CONFIG_FILES invocation.
4481 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4482 invocation.
4483
fec4e896
CB
44842019-10-16 Christian Biesinger <cbiesinger@google.com>
4485
4486 * server.c: Include xml-builtin.h.
4487 (get_xml_features): Don't declare xml_builtins here.
4488
00975ff6
AB
44892019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4490
4491 * Makefile.in: Remove references to vec-ipa.o.
4492
0dc32745
AB
44932019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4494
4495 * Makefile.in: Remove references to vec.c.
4496
3e6ec53a
CB
44972019-10-02 Christian Biesinger <cbiesinger@google.com>
4498
4499 * server.c (server_waiting): Change to bool.
4500 (extended_protocol): Likewise.
4501 (response_needed): Likewise.
4502 (exit_requested): Likewise.
4503 (run_once): Likewise.
4504 (report_no_resumed): Likewise.
4505 (non_stop): Likewise.
4506 (disable_packet_vCont): Likewise.
4507 (disable_packet_Tthread): Likewise.
4508 (disable_packet_qC): Likewise.
4509 (disable_packet_qfThreadInfo): Likewise.
4510 (handle_general_set): Update.
4511 (handle_detach): Update.
4512 (handle_monitor_command): Update.
4513 (handle_query): Update.
4514 (captured_main): Update.
4515 (process_serial_event): Update.
4516 * server.h (server_waiting): Change to bool.
4517 (disable_packet_vCont): Likewise.
4518 (disable_packet_Tthread): Likewise.
4519 (disable_packet_qC): Likewise.
4520 (disable_packet_qfThreadInfo): Likewise.
4521 (run_once): Likewise.
4522 (non_stop): Likewise.
4523 * target.c (target_stop_and_wait): Update.
4524
80fd2826
TT
45252019-10-02 Tom Tromey <tromey@adacore.com>
4526
4527 * Makefile.in (SFILES): Add common-inferior.c.
4528 (OBS): Add common-inferior.o.
4529 * server.c (startup_with_shell): Don't define.
4530
46f29a9a
AB
45312019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4532
4533 * linux-low.c (linux_low_read_btrace): Update for change to
4534 std::vector.
4535
f9d949fb
CB
45362019-09-20 Christian Biesinger <cbiesinger@google.com>
4537
4538 * debug.c (debug_threads): Remove comment in favor of the header.
4539 * debug.h (using_threads): Add declaration.
4540 (debug_threads): Add comment.
4541 * linux-aarch64-low.c: Include debug.h and remove declaration of
4542 debug_threads.
4543 * nto-low.c: Likewise.
4544 * remote-utils.c: Likewise.
4545 * thread-db.c: Likewise.
4546
abf516c6
UW
45472019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4548
4549 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4550 and powerpc-cell64l-ipa.o.
4551 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4552 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4553 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4554 (spu*-*-*): Remove.
4555
4556 * spu-low.c: Remove file.
4557
4558 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4559 (parse_spufs_run): Remove.
4560 (ppc_get_pc): Remove Cell/B.E. support.
4561 (ppc_set_pc): Likewise.
4562 (ppc_breakpoint_at): Likewise.
4563 (ppc_arch_setup): Likewise.
4564 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4565 tdesc_powerpc_cell32l.
4566 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4567 or init_registers_powerpc_cell32l.
4568 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4569 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4570 or init_registers_powerpc_cell32l.
4571 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4572 (init_registers_powerpc_cell32l): Remove prototype.
4573 (init_registers_powerpc_cell64l): Likewise.
4574
4575 * target.h (struct target_ops): Remove qxfer_spu member.
4576 * server.c (handle_qxfer_spu): Remove.
4577 (qxfer_packets): Remove entry for "spu".
4578 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4579 * linux-low.c (SPUFS_MAGIC): Remove.
4580 (spu_enumerate_spu_ids): Remove.
4581 (linux_qxfer_spu): Remove.
4582 (linux_target_ops): Remove qxfer_spu member.
4583 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4584 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4585 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4586
2d41fa11
SDJ
45872019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4588
4589 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4590 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4591 * config.in: Regenerate.
4592 * configure: Regenerate.
4593
d59b55f0
TT
45942019-08-15 Tom Tromey <tromey@adacore.com>
4595
4596 * target.c (target_write_memory): Use gdb::byte_vector.
4597
4196ab2a
TT
45982019-08-15 Tom Tromey <tromey@adacore.com>
4599
4600 * tracepoint.c (write_inferior_data_pointer)
4601 (write_inferior_integer, write_inferior_int8)
4602 (write_inferior_uinteger, m_tracepoint_action_download)
4603 (r_tracepoint_action_download, x_tracepoint_action_download)
4604 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4605 (download_agent_expr, download_tracepoint_1)
4606 (download_trace_state_variables, upload_fast_traceframes): Update.
4607 * server.c (gdb_write_memory): Update.
4608 * remote-utils.c (relocate_instruction): Update.
4609 * proc-service.c (ps_pdwrite): Update.
4610 * mem-break.c (remove_memory_breakpoint)
4611 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4612 (uninsert_fast_tracepoint_jumps_at)
4613 (reinsert_fast_tracepoint_jumps_at): Update.
4614 * linux-x86-low.c (append_insns)
4615 (i386_install_fast_tracepoint_jump_pad)
4616 (amd64_write_goto_address, i386_write_goto_address): Update.
4617 * linux-s390-low.c (append_insns, s390_write_goto_address):
4618 Update.
4619 * linux-ppc-low.c (ppc_relocate_instruction)
4620 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4621 (ppc_write_goto_address): Update.
4622 * linux-aarch64-low.c (append_insns): Update.
4623 * target.h (struct target_ops): Update.
4624 (write_inferior_memory): Don't declare.
4625 * target.c (target_write_memory): Rename from
4626 write_inferior_memory. Remove old target_write_memory.
4627
c6778d00
TT
46282019-08-15 Tom Tromey <tromey@adacore.com>
4629
4630 * target.c (write_inferior_memory): Use std::vector.
4631
404f2902
FCE
46322019-08-06 Frank Ch. Eigler <fche@redhat.com>
4633
4634 PR build/24886
4635 * configure.ac: Drop enable-libmcheck support.
4636 * configure, config.in: Rebuild.
4637 * acinclude.m4: Don't include it.
4638
4c5aa8e0
AH
46392019-07-19 Alan Hayward <alan.hayward@arm.com>
4640
4641 * configure.srv: Remove Arm xml files.
4642
7cc17433
AH
46432019-07-19 Alan Hayward <alan.hayward@arm.com>
4644
4645 * configure.srv: Add new files. Remove xml generated files.
4646 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4647 registers.
4648 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4649 * linux-aarch32-tdesc.c: New file.
4650 * linux-aarch32-tdesc.h: New file.
4651 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4652 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4653 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4654 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4655 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4656 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4657 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4658 (arm_read_description): Call arm_linux_read_description.
4659 (initialize_low_arch): Don't init registers.
4660 * linux-arm-tdesc.c: New file.
4661 * linux-arm-tdesc.h: New file.
4662
166a82be
AH
46632019-07-10 Alan Hayward <alan.hayward@arm.com>
4664
4665 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4666 Move counter inside for.
4667 (arm_read_description): Check ptrace earlier.
4668 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4669
268a13a5
TT
46702019-07-09 Tom Tromey <tom@tromey.com>
4671
4672 * configure: Rebuild.
4673 * configure.ac: Change common to gdbsupport.
4674 * acinclude.m4: Change common to gdbsupport.
4675 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4676 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4677 common to gdbsupport.
4678 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4679 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4680 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4681 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4682 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4683 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4684 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4685 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4686 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4687 common to gdbsupport.
4688
350fab54
AH
46892019-07-04 Alan Hayward <alan.hayward@arm.com>
4690
4691 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4692 defines.
4693 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4694
2b40fda7
AH
46952019-07-04 Alan Hayward <alan.hayward@arm.com>
4696
4697 * configure.srv: Remove legacy xml.
4698 * linux-aarch64-low.c (initialize_low_arch): Remove
4699 initialize_low_tdesc call.
4700 * linux-aarch64-tdesc-selftest.c: Remove file.
4701 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4702 * linux-x86-low.c (initialize_low_arch): Remove
4703 initialize_low_tdesc call.
4704 * linux-x86-tdesc-selftest.c: Remove file.
4705 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4706
7d10623d
TV
47072019-06-20 Tom de Vries <tdevries@suse.de>
4708
4709 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4710 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4711
8d6a48df
TV
47122019-06-19 Tom de Vries <tdevries@suse.de>
4713
4714 * debug.h (debug_write): Change return type to ssize_t.
4715 * debug.c (debug_write): Same.
4716
73cc7272
TT
47172019-06-14 Tom Tromey <tom@tromey.com>
4718
4719 * configure.ac: Use new path to gnulib.
4720 * configure: Rebuild.
4721 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4722 to gnulib.
4723
08f10e02
TT
47242019-06-11 Tom Tromey <tom@tromey.com>
4725
4726 * Makefile.in (SFILES): Add alloc.c.
4727 (OBS): Add alloc.o.
4728 (IPA_OBJS): Add alloc-ipa.o.
4729 (alloc-ipa.o): New target.
4730 (%.o: ../%.c): New pattern rule.
4731
422186a9
TT
47322019-06-10 Tom Tromey <tromey@adacore.com>
4733
4734 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4735 end warning with a newline.
4736 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4737 newline.
4738 * thread-db.c (attach_thread): Don't end warning with a newline.
4739 (thread_db_notice_clone): Likewise.
4740 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4741 newline.
4742 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4743 end warning with a newline.
4744
b02f78f9
PA
47452019-06-04 Pedro Alves <palves@redhat.com>
4746
4747 * server.c (captured_main): Use make_unique_xstrdup.
4748
88ed7edb
TT
47492019-06-02 Tom Tromey <tom@tromey.com>
4750
4751 * gdbreplay.c (fromhex): Remove.
4752 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4753
33a6bc35
TT
47542019-05-29 Tom Tromey <tromey@adacore.com>
4755
4756 * configure: Rebuild.
4757
e90a813d
KB
47582019-05-06 Kevin Buettner <kevinb@redhat.com>
4759
4760 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4761 sign extension code on 32-bit builds.
4762
353ea2d1
EZ
47632019-05-03 Eli Zaretskii <eliz@gnu.org>
4764
4765 * remote-utils.c:
4766 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4767
b494cdff
TT
47682019-04-19 Tom Tromey <tom@tromey.com>
4769
4770 * server.c (struct vstop_notif): Derive from notif_event.
4771 <base>: Remove.
4772 (queue_stop_reply): Update.
4773 (remove_all_on_match_ptid): Change type. Rewrite.
4774 (discard_queued_stop_replies): Rewrite.
4775 (in_queued_stop_replies_ptid): Change type.
4776 (in_queued_stop_replies): Rewrite.
4777 (notif_stop): Update.
4778 (queue_stop_reply_callback): Update.
4779 (captured_main): Don't call initialize_notif.
4780 (push_stop_notification): Update.
4781 * notif.c (notif_write_event, handle_notif_ack)
4782 (notif_event_enque, notif_push): Update.
4783 (notif_event_xfree, initialize_notif): Remove.
4784 * notif.h (struct notif_event): Include <list>, not
4785 "common/queue.h".
4786 (struct notif_server) <queue>: Now a std::list.
4787 (notif_event_p): Remove typedef.
4788 (initialize_notif): Don't declare.
4789 (struct notif_event): Add virtual destructor.
4790
a7e559cc
AH
47912019-04-17 Alan Hayward <alan.hayward@arm.com>
4792
4793 * ax.c (ax_vdebug): Call debug_printf.
4794 * debug.c (debug_write): New function.
4795 * debug.h (debug_write): New declaration.
4796 * linux-low.c (sigchld_handler): Call debug_write.
4797
aeb2e706
AH
47982019-04-17 Alan Hayward <alan.hayward@arm.com>
4799
4800 * debug.c (debug_set_output): New function.
4801 (debug_vprintf): Send output to debug_file.
4802 (debug_flush): Likewise.
4803 * debug.h (debug_set_output): New declaration.
4804 * server.c (handle_monitor_command): Add debug-file option.
4805 (captured_main): Likewise.
4806
c1bc0935
AH
48072019-04-17 Alan Hayward <alan.hayward@arm.com>
4808
4809 * debug.c (remote_debug): Add definition.
4810 * debug.h (remote_debug): Add declaration.
4811 * hostio.c (remote_debug): Remove declaration.
4812 * remote-utils.c (struct ui_file): Likewise.
4813 (remote_debug): Likewise.
4814 * remote-utils.h (remote_debug): Likewise,
4815 * server.c (remote_debug): Remove definition.
4816
3f52fdbc
KB
48172019-04-10 Kevin Buettner <kevinb@redhat.com>
4818
4819 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4820 when using a 64-bit gdbserver.
4821
b0319eaa
TT
48222019-04-09 Tom Tromey <tromey@adacore.com>
4823
4824 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4825
eedc3f4f
TT
48262019-04-08 Tom Tromey <tom@tromey.com>
4827
4828 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4829 throw.
4830 (linux_resume_one_lwp): Likewise.
4831
230d2906
TT
48322019-04-08 Tom Tromey <tom@tromey.com>
4833
4834 * gdbreplay.c: Update.
4835 * linux-low.c: Update.
4836 * server.c: Update.
4837
a70b8144
TT
48382019-04-08 Tom Tromey <tom@tromey.com>
4839
4840 * server.c: Use C++ exception handling.
4841 * linux-low.c: Use C++ exception handling.
4842 * gdbreplay.c: Use C++ exception handling.
4843
3d6e9d23
TT
48442019-04-08 Tom Tromey <tom@tromey.com>
4845
4846 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4847 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4848 (captured_main, main): Update.
4849 * gdbreplay.c (main): Update.
4850
0570503d
PFC
48512019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4852
4853 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4854 value in argument pointer, return 1 if the entry is found and 0
4855 otherwise. Move comment.
4856 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4857 * linux-low.h (linux_get_auxv): Declare.
4858 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4859
227a9e65
TT
48602019-04-05 Tom Tromey <tromey@adacore.com>
4861
4862 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4863 variables.
4864
69f4c9cc
AH
48652019-03-28 Alan Hayward <alan.hayward@arm.com>
4866
4867 * linux-low.c (AT_HWCAP2): Add define if not already included.
4868
974c89e0
AH
48692019-03-26 Alan Hayward <alan.hayward@arm.com>
4870
4871 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4872 (aarch64_arch_setup): Call linux_get_hwcap.
4873 * linux-arm-low.c (arm_get_hwcap): Remove function.
4874 (arm_read_description): Call linux_get_hwcap.
4875 * linux-low.c (linux_get_auxv): New function.
4876 (linux_get_hwcap): Likewise.
4877 (linux_get_hwcap2): Likewise.
4878 * linux-low.h (linux_get_hwcap): New declaration.
4879 (linux_get_hwcap2): Likewise.
4880 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4881 (ppc_arch_setup): Call linux_get_hwcap.
4882 * linux-s390-low.c (s390_get_hwcap): Remove function.
4883 (s390_arch_setup): Call linux_get_hwcap.
4884
1ef53e6b
AH
48852019-03-22 Alan Hayward <alan.hayward@arm.com>
4886 Jiong Wang <jiong.wang@arm.com>
4887
4888 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4889 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4890 to fail.
4891 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4892
ee4fbcfa
AH
48932019-03-22 Alan Hayward <alan.hayward@arm.com>
4894 Jiong Wang <jiong.wang@arm.com>
4895
4896 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4897 (aarch64_get_hwcap): New function.
4898 (aarch64_arch_setup): Read APIA hwcap.
4899
6dc0ebde
AH
49002019-03-22 Alan Hayward <alan.hayward@arm.com>
4901 Jiong Wang <jiong.wang@arm.com>
4902
4903 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4904 (initialize_low_tracepoint): Likewise.
4905 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4906 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4907 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4908 (aarch64_linux_read_description): Likewise.
4909 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4910
1163a4b7
JB
49112019-03-12 John Baldwin <jhb@FreeBSD.org>
4912
4913 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4914 i386_create_target_description for 'segments' parameter.
4915 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4916 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4917 * win32-i386-low.c (i386_arch_setup): Likewise.
4918
d3a70e03
TT
49192019-03-12 Tom Tromey <tromey@adacore.com>
4920
4921 * linux-low.c (iterate_over_lwps): Update.
4922
37991b4f
TT
49232019-03-06 Tom Tromey <tom@tromey.com>
4924
4925 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4926 (captured_main): Use SCOPE_EXIT.
4927
45950eb6
SDJ
49282019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4929
4930 * configure.srv: Use '$enable_unittest' instead of '$development'
4931 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4932 case.
4933
43ac54fc
TT
49342019-02-27 Tom Tromey <tromey@adacore.com>
4935
4936 * gdbreplay.c (logchar): Handle \r\n.
4937
df0da8a2
AH
49382019-02-07 Alan Hayward <alan.hayward@arm.com>
4939
4940 * linux-low.c (linux_attach): Add process before lwp.
4941 * server.c (attach_inferior): Check if already attached.
4942
1a5c2598
TT
49432019-02-07 Tom Tromey <tom@tromey.com>
4944
4945 * x86-tdesc.h: Rename include guard.
4946 * x86-low.h: Add include guard.
4947 * wincecompat.h: Rename include guard.
4948 * win32-low.h: Add include guard.
4949 * utils.h: Rename include guard.
4950 * tracepoint.h: Rename include guard.
4951 * tdesc.h: Rename include guard.
4952 * target.h: Rename include guard.
4953 * server.h: Rename include guard.
4954 * remote-utils.h: Rename include guard.
4955 * regcache.h: Rename include guard.
4956 * nto-low.h: Rename include guard.
4957 * notif.h: Add include guard.
4958 * mem-break.h: Rename include guard.
4959 * lynx-low.h: Add include guard.
4960 * linux-x86-tdesc.h: Add include guard.
4961 * linux-s390-tdesc.h: Add include guard.
4962 * linux-ppc-tdesc-init.h: Add include guard.
4963 * linux-low.h: Add include guard.
4964 * linux-aarch64-tdesc.h: Add include guard.
4965 * linux-aarch32-low.h: Add include guard.
4966 * inferiors.h: Rename include guard.
4967 * i387-fp.h: Rename include guard.
4968 * hostio.h: Rename include guard.
4969 * gdbthread.h: Rename include guard.
4970 * gdb_proc_service.h: Rename include guard.
4971 * event-loop.h: Rename include guard.
4972 * dll.h: Rename include guard.
4973 * debug.h: Rename include guard.
4974 * ax.h: Rename include guard.
4975
956cc47c
SN
49762018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4977
4978 PR gdb/23985
4979 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4980 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4981
a0707f3c
TT
49822019-01-25 Tom Tromey <tom@tromey.com>
4983
4984 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4985
0747795c
TT
49862019-01-25 Tom Tromey <tom@tromey.com>
4987
4988 * win32-low.c: Fix common/ includes.
4989 * win32-i386-low.c: Fix common/ includes.
4990 * tracepoint.c: Fix common/ includes.
4991 * thread-db.c: Fix common/ includes.
4992 * target.h: Fix common/ includes.
4993 * symbol.c: Fix common/ includes.
4994 * spu-low.c: Fix common/ includes.
4995 * server.h: Fix common/ includes.
4996 * server.c: Fix common/ includes.
4997 * remote-utils.c: Fix common/ includes.
4998 * regcache.h: Fix common/ includes.
4999 * regcache.c: Fix common/ includes.
5000 * nto-x86-low.c: Fix common/ includes.
5001 * notif.h: Fix common/ includes.
5002 * mem-break.h: Fix common/ includes.
5003 * lynx-low.c: Fix common/ includes.
5004 * lynx-i386-low.c: Fix common/ includes.
5005 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5006 * linux-x86-low.c: Fix common/ includes.
5007 * linux-low.c: Fix common/ includes.
5008 * inferiors.h: Fix common/ includes.
5009 * i387-fp.c: Fix common/ includes.
5010 * hostio.c: Fix common/ includes.
5011 * hostio-errno.c: Fix common/ includes.
5012 * gdbthread.h: Fix common/ includes.
5013 * gdbreplay.c: Fix common/ includes.
5014 * fork-child.c: Fix common/ includes.
5015 * event-loop.c: Fix common/ includes.
5016 * ax.c:
5017 (enum gdb_agent_op): Fix common/ includes.
5018
be6d4f74
TT
50192019-01-21 Tom Tromey <tom@tromey.com>
5020
5021 * tracepoint.c: Fix includes.
5022 * remote-utils.c: Fix includes.
5023 * linux-x86-low.c: Fix includes.
5024
66d91b39
JB
50252019-01-01 Joel Brobecker <brobecker@adacore.com>
5026
5027 * gdbreplay.c (gdbreplay_version): Update copyright year in
5028 version message.
5029 * server.c (gdbserver_version): Likewise.
5030
754e3168
AH
50312018-12-05 Alan Hayward <alan.hayward@arm.com>
5032
5033 * linux-low.c (add_lwp): Switch ordering.
5034
d105de22
TT
50352018-11-29 Tom Tromey <tom@tromey.com>
5036
5037 * win32-low.c (win32_join): Take pid, not process.
5038 * target.h (struct target_ops) <join>: Change argument type.
5039 (join_inferior): Change argument name.
5040 * spu-low.c (spu_join): Take pid, not process.
5041 * server.c (handle_detach): Preserve pid before destroying
5042 process.
5043 * lynx-low.c (lynx_join): Take pid, not process.
5044 * linux-low.c (linux_join): Take pid, not process.
5045
50138245
AH
50462018-11-23 Alan Hayward <alan.hayward@arm.com>
5047
5048 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5049 (aarch64_cannot_fetch_register): Likewise.
5050 (struct linux_target_ops): Update references.
5051
64f57f3d
PFC
50522018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5053
5054 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5055
8d619c01
EBM
50562018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5057
5058 * configure.srv (ipa_ppc_linux_regobj): Add
5059 powerpc-isa207-htm-vsx32l-ipa.o and
5060 powerpc-isa207-htm-vsx64l-ipa.o.
5061 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5062 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5063 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5064 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5065 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5066 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5067 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5068 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5069 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5070 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5071 (init_registers_powerpc_isa207_htm_vsx32l)
5072 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5073 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5074 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5075 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5076 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5077 (ppc_store_tm_ctarregset): New functions.
5078 (ppc_regsets): Add entries for HTM regsets.
5079 (ppc_arch_setup): Set htm in features struct when needed. Set
5080 sizes for the HTM regsets.
5081 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5082 (initialize_low_arch): Call
5083 init_registers_powerpc_isa207_htm_vsx32l and
5084 init_registers_powerpc_isa207_htm_vsx64l.
5085 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5086 PPC_TDESC_ISA207_HTM_VSX.
5087 (initialize_low_tracepoint): Call
5088 init_registers_powerpc_isa207_htm_vsx32l and
5089 init_registers_powerpc_isa207_htm_vsx64l.
5090
232bfb86
EBM
50912018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5092
5093 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5094 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5095 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5096 (ppc_store_pmuregset): New functions.
5097 (ppc_regsets): Add entries for ebb and pmu regsets.
5098 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5099 pmu regsets are available. Set sizes for these regsets.
5100
f2cf6173
EBM
51012018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5102
5103 * configure.srv (ipa_ppc_linux_regobj): Add
5104 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5105 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5106 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5107 rs6000/powerpc-isa207-vsx32l.xml, and
5108 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5109 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5110 <PPC_TDESC_ISA207_VSX>: New enum value.
5111 (init_registers_powerpc_isa207_vsx32l): Declare.
5112 (init_registers_powerpc_isa207_vsx64l): Declare.
5113 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5114 (ppc_store_tarregset): New function.
5115 (ppc_regsets): Add entry for the TAR regset.
5116 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5117 size for the TAR regsets.
5118 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5119 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5120 and init_registers_powerpc_isa207_vsx64l.
5121 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5122 (initialize_low_tracepoint): Call
5123 init_registers_powerpc_isa207_vsx32l and
5124 init_registers_powerpc_isa207_vsx64l.
5125
7ca18ed6
EBM
51262018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5127 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5128
5129 * configure.srv (ipa_ppc_linux_regobj): Add
5130 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5131 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5132 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5133 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5134 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5135 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5136 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5137 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5138 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5139 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5140 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5141 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5142 (ppc_hwcap): Add comment.
5143 (ppc_hwcap2): New global.
5144 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5145 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5146 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5147 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5148 when needed. Set sizes for the the DSCR and PPR regsets.
5149 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5150 (initialize_low_arch): Call
5151 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5152 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5153 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5154 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5155 (initialize_low_tracepoint): Call
5156 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5157 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5158
5c849b22
PFC
51592018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5160
5161 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5162
8ecfd7bd
SDJ
51632018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5164 Simon Marchi <simark@simark.ca>
5165
5166 * acinclude.m4: Include "../selftest.m4".
5167 * configure: Regenerate.
5168 * configure.ac: Use "GDB_AC_SELFTEST".
5169 * configure.srv: Use "$enable_unittests" instead of
5170 "$development" when checking whether unit tests have been
5171 enabled.
5172 * server.c (captured_main): Update message informing that
5173 selftests have been disabled.
5174
96643e35
TT
51752018-10-04 Tom Tromey <tom@tromey.com>
5176
5177 * configure: Rebuild.
5178
da4ae14a
TT
51792018-10-04 Tom Tromey <tom@tromey.com>
5180
5181 * server.c (handle_status): Rename inner "thread".
5182 (process_serial_event): Declare "res" in 'm' case.
5183 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5184 (iterate_over_lwps): Rename inner "thread".
5185 (linux_qxfer_libraries_svr4): Rename inner "len".
5186 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5187
7c619dbd
GB
51882018-10-01 Gary Benson <gbenson@redhat.com>
5189
5190 * gdb_proc_service.h: Moved common code to
5191 common/gdb_proc_service.h.
5192
3795e814
GB
51932018-10-01 Gary Benson <gbenson@redhat.com>
5194
5195 * gdb_proc_service.h: Synchronize comments and whitespace with
5196 GDB's version of this file.
5197
49b036f1
TT
51982018-09-25 Tom Tromey <tom@tromey.com>
5199
5200 * configure: Rebuild.
5201 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5202
8ff03f0b
SM
52032018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5204
5205 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5206 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5207 ($(IPA_LIB)): Sort IPA_OBJS.
5208
a1cd91dc
SM
52092018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5210
5211 * Makefile.in: Remove references to $(ADD_DEPS).
5212
752312ba
TT
52132018-09-16 Tom Tromey <tom@tromey.com>
5214
5215 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5216 variables.
5217 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5218 variables.
5219
f1628857
TT
52202018-09-05 Tom Tromey <tom@tromey.com>
5221
5222 * configure: Rebuild.
5223
ad202fcc
SM
52242018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5225
5226 PR build/23399
5227 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5228
d3d8724a
TT
52292018-08-27 Tom Tromey <tom@tromey.com>
5230
5231 PR build/23087:
5232 * configure: Rebuild.
5233
b4f183d2
TT
52342018-08-27 Tom Tromey <tom@tromey.com>
5235
5236 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5237 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5238 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5239 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5240 (s390x_emit_stack_adjust): Add casts to unsigned char.
5241
4e2aa472
SM
52422018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5243
5244 PR gdb/23374
5245 PR gdb/23375
5246 * server.h (struct client_state) <disable_randomization>:
5247 Initialize to 1.
5248
cf4088a9
SM
52492018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5250
5251 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5252 variable.
5253 (mips_supply_ptrace_register): Likewise.
5254
a0de763e
TT
52552018-07-22 Tom Tromey <tom@tromey.com>
5256
5257 * configure: Rebuild.
5258
b0a7723d
TT
52592018-07-22 Tom Tromey <tom@tromey.com>
5260
5261 * win32-low.c (win32_create_inferior): Remove unused variables.
5262 * gdbreplay.c (remote_open): Remove unused variable.
5263 * remote-utils.c (remote_prepare): Remove unused variable.
5264 * x86-tdesc.h (X86_TDESC_H): Define.
5265 (amd64_expedite_regs): Define conditionally.
5266 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5267 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5268 * remote-utils.c (readchar): Remove unused variable.
5269
a780ef4f
PA
52702018-07-13 Pedro Alves <palves@redhat.com>
5271
5272 * linux-low.c (linux_kill): Change parameter to process_info
5273 pointer instead of pid. Adjust.
5274 * lynx-low.c (lynx_kill): Likewise.
5275 * nto-low.c (nto_kill): Likewise.
5276 * spu-low.c (spu_kill): Likewise.
5277 * win32-low.c (win32_kill): Likewise.
5278 * server.c (handle_v_kill, kill_inferior_callback)
5279 (detach_or_kill_for_exit): Adjust.
5280 * target.c (kill_inferior): Change parameter to process_info
5281 pointer instead of pid. Adjust.
5282 * target.h (struct target_ops) <kill>: Change parameter to
5283 process_info pointer instead of pid. Adjust all implementations
5284 and callers.
5285 (kill_inferior): Likewise.
5286
ef2ddb33
PA
52872018-07-13 Pedro Alves <palves@redhat.com>
5288
5289 * linux-low.c (linux_detach, linux_join): Change parameter to
5290 process_info pointer instead of pid. Adjust.
5291 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5292 * nto-low.c (nto_detach): Likewise.
5293 * spu-low.c (spu_detach, spu_join): Likewise.
5294 * win32-low.c (win32_detach, win32_join): Likewise.
5295 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5296 * target.h (struct target_ops) <detach, join>: Change parameter to
5297 process_info pointer instead of pid. Adjust all implementations
5298 and callers.
5299 (detach_inferior, join_inferior): Rename 'pid' parameter to
5300 'proc'.
5301
c7ab0aef
SDJ
53022018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5303 Jan Kratochvil <jan.kratochvil@redhat.com>
5304 Paul Fertser <fercerpav@gmail.com>
5305 Tsutomu Seki <sekiriki@gmail.com>
5306
5307 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5308 (OBS): Add 'common/netstuff.o'.
5309 (GDBREPLAY_OBS): Likewise.
5310 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5311 (remote_open): Implement support for IPv6
5312 connections.
5313 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5314 and 'wspiapi.h'.
5315 (handle_accept_event): Accept connections from IPv6 sources.
5316 (remote_prepare): Handle IPv6-style hostnames; implement
5317 support for IPv6 connections.
5318 (remote_open): Implement support for printing connections from
5319 IPv6 sources.
5320
31445d10
PA
53212018-07-11 Pedro Alves <palves@redhat.com>
5322
5323 PR gdb/23377
5324 * mem-break.c (any_persistent_commands): Add process_info
5325 parameter and use it instead of relying on the current process.
5326 Change return type to bool.
5327 * mem-break.h (any_persistent_commands): Add process_info
5328 parameter and change return type to bool.
5329 * server.c (handle_detach): Remove require_running_or_return call.
5330 Look up the process_info for the process we're about to detach.
5331 If not found, return back error to GDB. Adjust
5332 any_persistent_commands call to pass down a process pointer.
5333
cb197132
PA
53342018-07-11 Pedro Alves <palves@redhat.com>
5335
5336 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5337 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5338 instead of collect_register_by_name.
5339 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5340 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5341
1b919490
VB
53422018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5343 Pedro Alves <palves@redhat.com>
5344
5345 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5346
d7e15655
TT
53472018-07-03 Tom Tromey <tom@tromey.com>
5348
5349 * linux-low.c: Update.
5350 * lynx-low.c: Update.
5351 * mem-break.c: Update.
5352 * nto-low.c: Update.
5353 * remote-utils.c: Update.
5354 * server.c: Update.
5355 * spu-low.c: Update.
5356 * target.c: Update.
5357 * win32-low.c: Update.
5358
26a57c92
TT
53592018-07-03 Tom Tromey <tom@tromey.com>
5360
5361 * server.c: Update.
5362
0e998d96
TT
53632018-07-03 Tom Tromey <tom@tromey.com>
5364
5365 * linux-low.c: Update.
5366
cc6bcb54
TT
53672018-07-03 Tom Tromey <tom@tromey.com>
5368
5369 * target.c: Update.
5370
e38504b3
TT
53712018-07-03 Tom Tromey <tom@tromey.com>
5372
5373 * linux-low.c: Update.
5374 * linux-mips-low.c: Update.
5375 * lynx-low.c: Update.
5376 * nto-low.c: Update.
5377 * remote-utils.c: Update.
5378 * server.c: Update.
5379 * spu-low.c: Update.
5380 * target.c: Update.
5381 * thread-db.c: Update.
5382
e99b03dc
TT
53832018-07-03 Tom Tromey <tom@tromey.com>
5384
5385 * linux-low.c: Update.
5386 * linux-mips-low.c: Update.
5387 * lynx-low.c: Update.
5388 * mem-break.c: Update.
5389 * nto-low.c: Update.
5390 * remote-utils.c: Update.
5391 * server.c: Update.
5392 * spu-low.c: Update.
5393 * target.c: Update.
5394 * tracepoint.c: Update.
5395
f2907e49
TT
53962018-07-03 Tom Tromey <tom@tromey.com>
5397
5398 * linux-low.c: Update.
5399 * linux-ppc-low.c: Update.
5400 * linux-x86-low.c: Update.
5401 * proc-service.c: Update.
5402 * server.c: Update.
5403 * spu-low.c: Update.
5404 * thread-db.c: Update.
5405 * win32-low.c: Update.
5406
fd79271b
TT
54072018-07-03 Tom Tromey <tom@tromey.com>
5408
5409 * linux-low.c: Update.
5410 * lynx-low.c: Update.
5411 * nto-low.c: Update.
5412 * remote-utils.c: Update.
5413 * spu-low.c: Update.
5414 * thread-db.c: Update.
5415 * win32-low.c: Update.
5416
c0867626
SDJ
54172018-06-29 Joel Brobecker <brobecker@adacore.com>
5418
5419 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5420 parameter in call to 'amd64_create_target_description'.
5421
2512d7ef
JK
54222018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5423
5424 * x86-tdesc.h: Remove executable permission flag.
5425
d0ac1c44
SM
54262018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5427
5428 * configure.ac: Remove AC_PREREQ, add missing quoting.
5429 * configure: Re-generate.
5430 * config.in: Re-generate.
5431 * aclocal.m4: Re-generate.
5432
c4eb05ff
SM
54332018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5434
5435 * tracepoint.h (current_traceframe): Remove declaration.
5436
02895270
AH
54372018-06-18 Alan Hayward <alan.hayward@arm.com>
5438
5439 * linux-aarch64-low.c (is_sve_tdesc): New function.
5440 (aarch64_sve_regs_copy_to_regcache): Likewise.
5441 (aarch64_sve_regs_copy_from_regcache): Likewise.
5442 (aarch64_regs_info): Add SVE checks.
5443 (initialize_low_arch): Initialize SVE.
5444
e9902bfc
AH
54452018-06-18 Alan Hayward <alan.hayward@arm.com>
5446
5447 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5448
fefa175e
AH
54492018-06-11 Alan Hayward <alan.hayward@arm.com>
5450
5451 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5452 (initialize_low_tracepoint): Likewise
5453 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5454 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5455 param.
5456 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5457 checks.
5458 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5459
b91ad3ff
AH
54602018-06-11 Alan Hayward <alan.hayward@arm.com>
5461
5462 * server.h (PBUFSIZ): Increase size
5463
f868386e
AH
54642018-06-11 Alan Hayward <alan.hayward@arm.com>
5465
5466 * regcache.c (regcache::raw_compare): New function.
5467 * regcache.h (regcache::raw_compare): New declaration.
5468
9c861883
AH
54692018-06-11 Alan Hayward <alan.hayward@arm.com>
5470
5471 * regcache.c (new_register_cache): Use new.
5472 (free_register_cache): Use delete.
5473 (register_data): Use const.
5474 (supply_register): Move body inside regcache.
5475 (regcache::raw_supply): New override function.
5476 (collect_register): Move body inside regcache.
5477 (regcache::raw_collect): New override function.
5478 (regcache::get_register_status): New override function.
5479 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5480
40591844
TT
54812018-06-09 Tom Tromey <tom@tromey.com>
5482
5483 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5484 declare queue.
5485 (event_queue): Use std::queue.
5486 (gdb_event_xfree): Remove.
5487 (initialize_event_loop, process_event, wait_for_event): Update.
5488
6341380d
SC
54892018-06-08 Stan Cox <scox@redhat.com>
5490
5491 * win32-low.c (win32_create_inferior): last_ptid and last_status
5492 moved to client_state.
5493
03349c93
PA
54942018-06-08 Pedro Alves <palves@redhat.com>
5495
5496 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5497 common/common-exceptions.o, common/common-utils.o,
5498 common/errors.o, common/print-utils.o and utils.o.
5499 * gdbreplay.c: Include "common-defs.h" instead of the two
5500 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5501 string.h or alloca.h.
5502 (perror_with_name): Delete.
5503 (remote_open): Use xstrdup instead of strdup.
5504 (main): Rename to ...
5505 (captured_main): ... this.
5506 (main): New.
5507
8dcc53b3
TT
55082018-06-08 Tom Tromey <tom@tromey.com>
5509
5510 * linux-low.c (linux_low_read_btrace): Update.
5511
c12a5089
SC
55122018-06-04 Stan Cox <scox@redhat.com>
5513
5514 * server.h (struct client_state): New.
5515 * server.c (cont_thread, general_thread, multi_process)
5516 (report_fork_events, report_vfork_events, report_exec_events)
5517 (report_thread_events, swbreak_feature, hwbreak_feature)
5518 (vCont_supported, disable_randomization, pass_signals)
5519 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5520 Moved to client_state.
5521 * remote-utils.c (remote_debug, noack_mode)
5522 (transport_is_reliable): Moved to client_state.
5523 * tracepoint.c (current_traceframe): Moved to client_state.
5524
5525 Update all callers.
5526 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5527 linux-low.c, remote-utils.h, target.c: Use client_state.
5528
122394f1
AH
55292018-05-31 Alan Hayward <alan.hayward@arm.com>
5530
5531 * configure.srv: Add new c/h file.
5532
95228a0d
AH
55332018-05-31 Alan Hayward <alan.hayward@arm.com>
5534
5535 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5536 null VQ.
5537
d8dab6c3
MR
55382018-05-25 Maciej W. Rozycki <macro@mips.com>
5539
5540 * gdb.arch/mips-fpregset-core.exp: New test.
5541 * gdb.arch/mips-fpregset-core.c: New test source.
5542
81e25b7c
EK
55432018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5544
5545 PR server/23198
5546 * hostio.c (require_int): Do not report overflow for integers
5547 between 0xfffffff and 0x7fffffff.
5548
7e947ad3
MR
55492018-05-22 Maciej W. Rozycki <macro@mips.com>
5550
5551 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5552 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5553 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5554 functions.
5555 (the_low_target): Wire them.
5556
1d75a658
PFC
55572018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5558
5559 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5560 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5561 mode. Call collect_register_by_name with vscr using
5562 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5563 (ppc_store_vrregset): Add and set vscr_offset variable as in
5564 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5565 vscr_offset.
5566
d078308a
PFC
55672018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5568
5569 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5570 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5571 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5572
7273b5fc
PFC
55732018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5574
5575 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5576 (ppc_store_vsxregset): Likewise.
5577 (ppc_fill_vrregset): Likewise.
5578 (ppc_store_vrregset): Likewise.
5579 (ppc_fill_evrregset): Likewise.
5580 (ppc_store_evrregset): Likewise.
5581 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5582 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5583 needed.
5584
2e077f5e
PFC
55852018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5586
5587 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5588 wordsize of the inferior. Call ppc_linux_target_wordsize.
5589
bd64614e
PFC
55902018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5591
5592 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5593 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5594 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5595 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5596 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5597 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5598 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5599 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5600 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5601 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5602 (tdesc_powerpc_e500l): Remove.
5603 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5604 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5605 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5606 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5607 linux-ppc-tdesc.h.
5608 (ppc_arch_setup): Remove target description matching code. Fill a
5609 ppc_linux_features struct and call ppc_linux_match_description
5610 with it.
5611
75d74cca
MR
56122018-05-22 Maciej W. Rozycki <macro@mips.com>
5613
5614 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5615 width of the requested register exceeds the width of the
5616 `ptrace' data type.
5617 (mips_cannot_store_register): Likewise.
5618
e4439e43
MR
56192018-05-21 Maciej W. Rozycki <macro@mips.com>
5620
5621 * linux-mips-low.c (mips_fetch_register): New function. Update
5622 preceding comment.
5623 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5624 (the_low_target): Wire `mips_fetch_register'.
5625
55271bf9
JB
56262018-05-10 Joel Brobecker <brobecker@adacore.com>
5627
5628 * lynx-i386-low.c (LYNXOS_178): New macro.
5629 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5630 the layout on LynxOS-178.
5631 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5632 handle floating point registers that are not supported by
5633 LynxOS-178.
5634
1a34f210
TT
56352018-05-10 Tom Tromey <tom@tromey.com>
5636
5637 * configure: Rebuild.
5638
190852c8
JB
56392018-05-10 Joel Brobecker <brobecker@adacore.com>
5640
5641 PR server/23158:
5642 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5643 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5644 Use it to set the expedite_regs field in the given tdesc.
5645 * x86-tdesc.h: New file.
5646 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5647 Adjust following the addition of the new expedite_regs parameter
5648 to init_target_desc.
5649 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5650 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5651 (i386_linux_read_description, amd64_linux_read_description):
5652 Adjust following the addition of the new expedite_regs parameter
5653 to init_target_desc.
5654 * lynx-i386-low.c: #include "x86-tdesc.h".
5655 (lynx_i386_arch_setup): Adjust following the addition of the new
5656 expedite_regs parameter to init_target_desc.
5657 * nto-x86-low.c: #include "x86-tdesc.h".
5658 (nto_x86_arch_setup): Adjust following the addition of the new
5659 expedite_regs parameter to init_target_desc.
5660 * win32-i386-low.c: #include "x86-tdesc.h".
5661 (i386_arch_setup): Adjust following the addition of the new
5662 expedite_regs parameter to init_target_desc.
5663
7dbac825
JB
56642018-05-10 Joel Brobecker <brobecker@adacore.com>
5665
5666 PR server/23158:
5667 * win32-low.c (win32_create_inferior): Add call to my_wait
5668 setting last_status global.
5669
906994d9
JB
56702018-05-10 Joel Brobecker <brobecker@adacore.com>
5671
5672 PR server/23158:
5673 * win32-low.c (create_process): Only call gdb_tilde_expand if
5674 inferior_cwd is not NULL.
5675
8ee22052
AB
56762018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5677
5678 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5679 registers to the cache if their values have changed.
5680 (i387_xsave_to_cache): Provide default values for x87 control
5681 registers when these features are available, but disabled.
5682 * regcache.c (supply_register_by_name_zeroed): New function.
5683 * regcache.h (supply_register_by_name_zeroed): Declare new
5684 function.
5685
aff689d3
TT
56862018-05-07 Tom Tromey <tom@tromey.com>
5687
5688 * configure: Rebuild.
5689
85e26832
TT
56902018-05-04 Tom Tromey <tom@tromey.com>
5691
5692 * configure: Rebuild.
5693
a3b60e45
JK
56942018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5695 Pedro Alves <palves@redhat.com>
5696
5697 * linux-aarch64-low.c (aarch64_stopped_data_address):
5698 Likewise.
5699
632e107b
TT
57002018-04-27 Tom Tromey <tom@tromey.com>
5701
5702 * configure: Rebuild.
5703
458412c3
TT
57042018-04-23 Tom Tromey <tom@tromey.com>
5705
5706 * configure: Rebuild.
5707
f31c089e
SM
57082018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5709
5710 * Makefile.in (depcomp): Add "..".
5711 (all_deps_files): New and use it.
5712
b319b098
AH
57132018-04-18 Alan Hayward <alan.hayward@arm.com>
5714
5715 * configure.srv (aarch64*-*-linux*): Don't include xml.
5716 (i[34567]86-*-cygwin*): Likewise.
5717 (i[34567]86-*-linux*): Likewise.
5718 (i[34567]86-*-lynxos*): Likewise.
5719 (i[34567]86-*-mingw32ce*): Likewise.
5720 (i[34567]86-*-mingw*): Likewise.
5721 (i[34567]86-*-nto*): Likewise.
5722 (tic6x-*-uclinux): Likewise.
5723 (x86_64-*-linux*): Likewise.
5724 (x86_64-*-mingw*): Likewise.
5725 (x86_64-*-cygwin*): Likewise.
5726
3b74854b
AH
57272018-04-18 Alan Hayward <alan.hayward@arm.com>
5728
5729 * tdesc.c: Remove xml parameter.
5730
e98577a9
AH
57312018-04-18 Alan Hayward <alan.hayward@arm.com>
5732
5733 * server.c (get_features_xml): Remove cast.
5734 * tdesc.c (void target_desc::accept): Fill in function.
5735 (tdesc_get_features_xml): Remove old xml creation.
5736 (print_xml_feature::visit_pre): Add xml vistor.
5737 * tdesc.h (struct target_desc): Make xmltarget mutable.
5738 (tdesc_get_features_xml): Remove declaration.
5739
d278f585
AH
57402018-04-18 Alan Hayward <alan.hayward@arm.com>
5741
5742 * tdesc.c (tdesc_architecture_name): Add new function.
5743 (tdesc_osabi_name): Likewise.
5744 (tdesc_get_features_xml): Use new functions.
5745
eee8a18d
AH
57462018-04-18 Alan Hayward <alan.hayward@arm.com>
5747
5748 * tdesc.c (tdesc_create_flags): Remove.
5749 (tdesc_add_flag): Likewise.
5750 (tdesc_named_type): Likewise.
5751 (tdesc_create_union): Likewise.
5752 (tdesc_create_struct): Likewise.
5753 (tdesc_create_vector): Likewise.
5754 (tdesc_add_bitfield): Likewise.
5755 (tdesc_add_field): Likewise.
5756 (tdesc_set_struct_size): Likewise.
5757
82ec9bc7
AH
57582018-04-18 Alan Hayward <alan.hayward@arm.com>
5759
5760 * tdesc.c (~target_desc): Remove implictly deleted items.
5761 (init_target_desc): Iterate all features.
5762 (tdesc_get_features_xml): Use vector.
5763 (tdesc_create_feature): Create feature.
5764 * tdesc.h (tdesc_feature) Remove
5765 (target_desc): Add features.
5766
ea3e7d71
AH
57672018-04-18 Alan Hayward <alan.hayward@arm.com>
5768
5769 * Makefile.in: Add common/tdesc.c
5770 * tdesc.c (init_target_desc): init all reg_defs from register
5771 vector.
5772 (tdesc_create_reg): Create tdesc_reg.
5773 * tdesc.h (tdesc_feature): Add register vector.
5774
17d08cd4
SM
57752018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5776
5777 * tdesc.h (struct target_desc) <features>: Change type to
5778 std::vector<std::string>.
5779 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5780 changes.
5781 (tdesc_get_features_xml): Likewise.
5782 (tdesc_create_feature): Likewise.
5783
5cd3e386
AH
57842018-03-26 Alan Hayward <alan.hayward@arm.com>
5785
5786 * regcache.c (find_register_by_number): Return a ref.
5787 (find_regno): Use references.
5788 (register_size): Likewise.
5789 (register_data): Likewise.
5790 * tdesc.c (target_desc::~target_desc): Remove free calls.
5791 (target_desc::operator==): Use std::vector compare.
5792 (init_target_desc): Use reference.
5793 (tdesc_create_reg): Use reg constructors.
5794 * tdesc.h (struct target_desc): Replace pointer with object.
5795
dff7492c
AH
57962018-03-23 Alan Hayward <alan.hayward@arm.com>
5797
5798 * regcache.c (find_register_by_number): Make static.
5799 (find_regno): Use find_register_by_number
5800 * regcache.h (struct reg): Remove declaration.
5801
d80e5242
AH
58022018-03-23 Alan Hayward <alan.hayward@arm.com>
5803
5804 * tdesc.c (target_desc::~target_desc): Move to here.
5805 (target_desc::operator==): Likewise.
5806 * tdesc.h (target_desc::~target_desc): Move from here.
5807 (target_desc::operator==): Likewise.
5808
f69c5afb
AA
58092018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5810
5811 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5812
ce29f843
AA
58132018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5814
5815 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5816 S390_TDESC_GS.
5817 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5818 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5819 and init_registers_s390_gs_linux64.
5820
c49bd90b
AA
58212018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5822
5823 * linux-s390-low.c (s390_fill_gs): Remove function.
5824 (s390_fill_gsbc): Remove function.
5825 (s390_regsets): Set fill functions for the guarded storage regsets
5826 to NULL.
5827
7edb9bd3
AA
58282018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5829
5830 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5831 the word size. Add comment.
5832 (s390_get_wordsize): New function.
5833 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5834 pswm with it. Instead, use s390_get_wordsize to determine the
5835 word size first and derive the correct tdesc from that directly.
5836
39be3c7e
SM
58372018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5838
5839 * Makefile.in: Include silent-rules.mk.
5840 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5841 (COMPILE): Add ECHO_CXX.
5842 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5843 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5844 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5845 (version-generated.c): Add ECHO_GEN.
5846 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5847 (IPAGENT_COMPILE): Add ECHO_CXX.
5848 (%-generated.c): Add ECHO_REGDAT.
5849
3ae9ce5d
TT
58502018-03-14 Tom Tromey <tom@tromey.com>
5851
5852 PR cli/14977:
5853 * ax.c (ax_printf): Special case for NULL.
5854
e6a58aa8
SM
58552018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5856
5857 * linux-low.c (linux_qxfer_libraries_svr4): Use
5858 xml_escape_text_append.
5859
f6e8a41e
SM
58602018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5861
5862 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5863
b9671caf
SM
58642018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5865
5866 * server.c (handle_general_set): Remove unnecessary xstrdup.
5867
e80aaf61
SM
58682018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5869
5870 * server.c (parse_debug_format_options): Adjust to
5871 delim_string_to_char_ptr_vec changes.
5872 * thread-db.c (thread_db_load_search): Adjust to
5873 dirnames_to_char_ptr_vec changes.
5874
b1223e78
MM
58752018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5876
5877 * target.h (target_enable_btrace, target_disable_btrace)
5878 (target_read_btrace, target_read_btrace_conf): Turn macro into
5879 inline function. Throw error if target method is not defined.
5880 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5881 check for btrace target method. Be prepared to handle exceptions
5882 from btrace target methods.
5883
81561546
SDJ
58842018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5885
5886 * server.c (captured_main): Change order of error message printed
5887 when the current working directory cannot be found.
5888
25e3c82c
SDJ
58892018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5890
5891 * server.c: Include "filenames.h" and "pathstuff.h".
5892 (program_name): Delete variable.
5893 (program_path): New anonymous class.
5894 (get_exec_wrapper): Use "program_path" instead of
5895 "program_name".
5896 (handle_v_run): Likewise.
5897 (captured_main): Likewise.
5898 (process_serial_event): Likewise.
5899
b4987c95
SDJ
59002018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5901
5902 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5903 (OBJS): Add "pathstuff.o".
5904 * server.c (current_directory): New global variable.
5905 (captured_main): Initialize "current_directory".
5906
f46cd62a
AH
59072018-02-26 Alan Hayward <alan.hayward@arm.com>
5908
5909 * tdesc.c: Use common/tdesc.h.
5910 * tdesc.h: Likewise.
5911
a543c5ca
AH
59122018-02-20 Alan Hayward <alan.hayward@arm.com>
5913 Simon Marchi <simon.marchi@ericsson.com>
5914
5915 * Makefile.in: Switch order of make rules.
5916
b5884fa7
AH
59172018-02-19 Alan Hayward <alan.hayward@arm.com>
5918
5919 * Makefile.in: Add common directory in build.
5920 * configure.ac: Add common reference.
5921 * configure: Regenerate.
5922
de6242d3
MM
59232018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5924
5925 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5926 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5927 * spu-low.c (spu_target_ops): Likewise.
5928 * win32-low.c (win32_target_ops): Likewise.
5929 * server.c (supported_btrace_packets): Report packets unconditionally.
5930 * target.h (target_ops) <supports_btrace>: Remove.
5931 (target_supports_btrace): Remove.
5932
9ee23a85
MM
59332018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5934
5935 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5936 (handle_btrace_disable): Change return type to void. Use exceptions
5937 to report errors.
5938 (handle_btrace_general_set): Catch exception and copy message to
5939 return message.
5940
8ce47547
TT
59412018-02-08 Tom Tromey <tom@tromey.com>
5942
5943 * linux-low.c (install_software_single_step_breakpoints): Use
5944 make_scoped_restore.
5945 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5946 (do_restore_current_thread_cleanup): Remove.
5947 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5948 declare.
5949
45dd3607
TT
59502018-02-08 Tom Tromey <tom@tromey.com>
5951
5952 * mem-break.c (set_raw_breakpoint_at): Use
5953 gdb::unique_xmalloc_ptr.
5954
e671cd59
PA
59552018-01-30 Pedro Alves <palves@redhat.com>
5956
5957 PR gdb/13211
5958 * target.c (target_terminal::terminal_state): Rename to ...
5959 (target_terminal::m_terminal_state): ... this.
5960
a0aad537
JC
59612018-01-19 James Clarke <jrtc27@jrtc27.com>
5962
5963 * linux-low.c (handle_extended_wait): Surround call to
5964 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5965
4d9b86e1
SM
59662018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5967
5968 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5969 linux_ptrace_attach_fail_reason_string now returning an
5970 std::string.
5971 (linux_attach): Likewise.
5972 * thread-db.c (attach_thread): Likewise.
5973
f517c180
EA
59742018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5975
5976 PR gdb/21559
5977 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5978 checking for fs_base/gs_base fields in struct user_regs_struct.
5979 * configure: Regenerate.
5980
9a70f35c
YQ
59812018-01-16 Yao Qi <yao.qi@linaro.org>
5982
5983 PR gdb/18749
5984 * linux-low.c (fetch_register): Call supply_register instead of
5985 error.
5986
605fd3c6
YQ
59872018-01-08 Yao Qi <yao.qi@linaro.org>
5988 Simon Marchi <simon.marchi@ericsson.com>
5989
5990 * Makefile.in (OBS): Remove selftest.o.
5991 * configure.ac: Set srv_selftest_objs if $development is true.
5992 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5993 * configure: Re-generated.
5994 * server.c (captured_main): Wrap variable selftest_filter with
5995 GDB_SELF_TEST.
5996
2cc05030
SM
59972018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5998
5999 * server.c (parse_debug_format_options): Return std::string.
6000 (handle_monitor_command, captured_main): Adjust.
6001
e379cee6
PA
60022018-01-05 Pedro Alves <palves@redhat.com>
6003
6004 PR gdb/18653
6005 * server.c (captured_main): Pass quiet=false to
6006 save_original_signals_state.
6007
82e1e79a
JB
60082018-01-01 Joel Brobecker <brobecker@adacore.com>
6009
6010 * gdbreplay.c (gdbreplay_version): Update copyright year in
6011 version message.
6012 * server.c (gdbserver_version): Likewise.
6013
8e481c3b
TT
60142017-12-08 Tom Tromey <tom@tromey.com>
6015
6016 * ax.c (ax_printf): Update.
6017
a8806230
YQ
60182017-12-07 Yao Qi <yao.qi@linaro.org>
6019
6020 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6021 aarch64_linux_read_description.
6022 * linux-amd64-ipa.c (idx2mask): New array.
6023 (get_ipa_tdesc): Move idx2mask out.
6024 (initialize_low_tracepoint): Initialize target descriptions.
6025 * linux-i386-ipa.c (idx2mask): New array.
6026 (get_ipa_tdesc): Move idx2mask out.
6027 (initialize_low_tracepoint): Initialize target descriptions.
6028
d4a0e8b5
SM
60292017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6030
6031 * tdesc.c (struct tdesc_type): Change return type.
6032 (tdesc_add_flag): Change parameter type.
6033 (tdesc_add_bitfield): Likewise.
6034 (tdesc_add_field): Likewise.
6035 (tdesc_set_struct_size): Likewise.
6036
798a7429
SM
60372017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6038
6039 * regcache.c (registers_to_string): Remove unused variable.
6040
c0e15c9b
SM
60412017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6042
6043 * inferiors.c (for_each_inferior_with_data): Remove.
6044 * inferiors.h (for_each_inferior_with_data): Remove.
6045 * server.c (handle_qxfer_threads_worker): Change parameter type.
6046 (handle_qxfer_threads_proper): Use for_each_thread.
6047
f0045347
SM
60482017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6049
6050 * inferiors.c (for_each_inferior): Remove.
6051 (clear_inferiors): Use for_each_thread.
6052 * inferiors.h (for_each_inferior): Remove.
6053 * linux-low.c (linux_wait_for_event_filtered): Use
6054 for_each_thread.
6055 (linux_stabilize_threads): Likewise.
6056 * regcache.c (regcache_release): Likewise.
6057 * server.c (gdb_wants_all_threads_stopped): Likewise.
6058 (clear_pending_status_callback): Remove.
6059 (handle_status): Use for_each_thread.
6060 (captured_main): Likewise.
6061 * win32-low.c (child_init_thread_list): Likewise.
6062 (win32_clear_inferiors): Likewise.
6063 (fake_breakpoint_event): Likewise.
6064
9521758b
SM
60652017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6066
6067 * inferiors.h (find_inferior): Remove.
6068 * inferiors.c (find_inferior): Remove.
6069
8f86d7aa
SM
60702017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6071
6072 * linux-low.c (resume_status_pending_p): Update comment.
6073 (need_step_over_p): Update comment.
6074
e2b44075
SM
60752017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6076
6077 * linux-low.c (proceed_one_lwp): Return void, change parameter
6078 type.
6079 (unsuspend_and_proceed_one_lwp): Likewise.
6080 (proceed_all_lwps): Use for_each_thread.
6081 (unstop_all_lwps): Likewise.
6082
c80825ff
SM
60832017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6084
6085 * linux-low.c (linux_resume_one_thread): Return void, take
6086 parameter directly.
6087 (linux_resume): Use for_each_thread.
6088
df3e4dbe
SM
60892017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6090
6091 * linux-low.c (send_sigstop_callback): Return void, change
6092 parameter type. Rename to...
6093 (send_sigstop): ... this.
6094 (suspend_and_send_sigstop_callback): Return void, change parameter
6095 type. Rename to...
6096 (suspend_and_send_sigstop): ... this.
6097 (stop_all_lwps): Use for_each_thread.
6098
5a6b0a41
SM
60992017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6100
6101 * linux-low.c (lwp_running): Return bool, remove unused
6102 argument.
6103 (linux_stabilize_threads): Use find_thread.
6104
39a64da5
SM
61052017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6106
6107 * linux-low.c (select_singlestep_lwp_callback): Remove.
6108 (count_events_callback): Remove.
6109 (select_event_lwp_callback): Remove.
6110 (select_event_lwp): Use find_thread/for_each_thread.
6111
a1385b7b
SM
61122017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6113
6114 * linux-low.c (not_stopped_callback): Return bool, take filter
6115 argument directly.
6116 (linux_wait_for_event_filtered): Use find_thread.
6117 (linux_wait_1): Likewise.
6118
454296a2
SM
61192017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6120
6121 * linux-low.c (same_lwp): Remove.
6122 (find_lwp_pid): Use find_thread.
6123
6b2a85da
SM
61242017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6125
6126 * linux-low.c (delete_lwp_callback): Remove.
6127 (linux_mourn): Use for_each_thread.
6128
798a38e8
SM
61292017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6130
6131 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6132 args parameter, don't check for pid.
6133 (linux_detach): Use for_each_thread.
6134
e4eb0dec
SM
61352017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6136
6137 * linux-low.c (struct counter): Remove.
6138 (second_thread_of_pid_p): Remove.
6139 (last_thread_of_process_p): Use find_thread.
6140
83e1b6c1
SM
61412017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6142
6143 * inferiors.c (find_inferior_in_random): Remove.
6144 * inferiors.h (find_inferior_in_random): Remove.
6145 * linux-low.c (status_pending_p_callback): Return bool, accept
6146 parameter ptid directly.
6147 (linux_wait_for_event_filtered): Use find_thread_in_random.
6148 (linux_wait_1): Likewise.
6149
8dc7b443
SM
61502017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6151
6152 * inferiors.c (find_inferior_id): Remove.
6153 (find_thread_ptid): Move implemention from find_inferior_id to
6154 here.
6155 * inferiors.h (find_inferior_id): Remove.
6156 * server.c (handle_status): Use find_thread_ptid.
6157 (process_serial_event): Likewise.
6158 * thread-db.c (find_one_thread): Likewise.
6159 (thread_db_thread_handle): Likewise.
6160 * win32-low.c (thread_rec): Likewise.
6161 (child_delete_thread): Likewise.
6162 (win32_thread_alive): Likewise.
6163 (get_child_debug_event): Likewise.
6164
da25033c
SM
61652017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6166
6167 * linux-mips-low.c (update_watch_registers_callback): Return
6168 void, remove pid_p parameter, don't check for pid.
6169 (mips_insert_point, mips_remove_point): Use for_each_thread.
6170
c91bb56b
SM
61712017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6172
6173 * lynx.low (lynx_delete_thread_callback): Remove.
6174 (lynx_mourn): Use for_each_thread.
6175
634a3254
SM
61762017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6177
6178 * regcache.c (regcache_invalidate_one): Remove.
6179 (regcache_invalidate_pid): use for_each_thread.
6180
41272101
TT
61812017-11-26 Tom Tromey <tom@tromey.com>
6182
6183 * linux-low.c (linux_create_inferior): Update.
6184
f5291a6f
UW
61852017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6186
6187 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6188
6654d750
AH
61892017-11-24 Alan Hayward <alan.hayward@arm.com>
6190
6191 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6192 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6193 * linux-aarch64-tdesc-selftest.c: New file.
6194 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6195
61962017-11-24 Alan Hayward <alan.hayward@arm.com>
6197
6198 * configure.srv: Add new file.
6199 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6200 * linux-aarch64-tdesc-selftest.c: New file.
6201 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6202
49bdb7ee
AH
62032017-11-24 Alan Hayward <alan.hayward@arm.com>
6204
6205 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6206 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6207 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6208
d6d7ce56
AH
62092017-11-24 Alan Hayward <alan.hayward@arm.com>
6210
6211 * configure.srv: Add new files.
6212 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6213 aarch64_linux_read_description.
6214 * linux-aarch64-low.c (aarch64_linux_read_description):
6215 Merge with aarch64_arch_setup.
6216 (aarch64_arch_setup): Call aarch64_linux_read_description.
6217 * linux-aarch64-tdesc.c: New file.
6218 * linux-aarch64-tdesc.h: New file.
6219
506fe5f4
YQ
62202017-11-24 Yao Qi <yao.qi@linaro.org>
6221
6222 * configure.srv: Set $srv_regobj for tic6x-linux.
6223 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6224 (tic6x_read_description): Move some code to tic6x_arch_setup.
6225 (tic6x_tdesc_test): New function.
6226 (initialize_low_arch): Call selftests::register_test.
6227
29f9a567
YQ
62282017-11-22 Yao Qi <yao.qi@linaro.org>
6229
6230 * remote-utils.c (prepare_resume_reply): Use memcpy.
6231
578290ec
SM
62322017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6233
6234 * linux-low.c (kill_one_lwp_callback): Return void, take
6235 argument directly, don't filter on pid.
6236 (linux_kill): Use for_each_thread.
6237
eca55aec
SM
62382017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6239
6240 * linux-low.c (need_step_over_p): Return bool, remove dummy
6241 argument.
6242 (linux_resume, proceed_all_lwps): Use find_thread.
6243
25c28b4d
SM
62442017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6245
6246 * linux-low.c (resume_status_pending_p): Return bool, remove
6247 flag_p argument.
6248 (linux_resume): Use find_thread.
6249
5fdda392
SM
62502017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6251
6252 * linux-low.c (struct thread_resume_array): Remove.
6253 (linux_set_resume_request): Return void, take arguments
6254 directly.
6255 (linux_resume): Use for_each_thread.
6256
fcb056a5
SM
62572017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6258
6259 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6260 return bool, remove data argument.
6261 (linux_stabilize_threads): Use find_thread.
6262
139720c5
SM
62632017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6264
6265 * linux-low.c (unsuspend_one_lwp): Remove.
6266 (unsuspend_all_lwps): Use for_each_thread, inline code from
6267 unsuspend_one_lwp.
6268
6d1e5673
SM
62692017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6270
6271 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6272 * linux-low.c (struct iterate_over_lwps_args): Remove.
6273 (iterate_over_lwps_filter): Remove.
6274 (iterate_over_lwps): Use find_thread.
6275
bbf550d5
SM
62762017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6277
6278 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6279 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6280 code from reset_lwp_ptrace_options_callback.
6281
00192f77
SM
62822017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6283
6284 * linux-arm-low.c (struct update_registers_data): Remove.
6285 (update_registers_callback): Return void, take arguments
6286 directly, don't check thread's pid.
6287 (arm_insert_point, arm_remove_point): Use for_each_thread.
6288
2bee2b6c
SM
62892017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6290
6291 * win32-low.c (continue_one_thread): Return void, take argument
6292 directly.
6293 (child_continue): Use for_each_thread.
6294
0b360f19
SM
62952017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6296
6297 * win32-i386-low.c (update_debug_registers_callback): Rename
6298 to ...
6299 (update_debug_registers): ... this, return void, remove pid_p arg.
6300 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6301
f27866ba
SM
63022017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6303
6304 * inferiors.h (struct process_info): Add constructor, initialize
6305 fields..
6306 <syscalls_to_catch>: Change type to std::vector<int>.
6307 * inferiors.c (add_process): Allocate process_info with new.
6308 (remove_process): Free process_info with delete.
6309 * linux-low.c (handle_extended_wait): Adjust.
6310 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6311 * server.c (handle_general_set): Adjust.
6312
e849ea89
PA
63132017-11-16 Pedro Alves <palves@redhat.com>
6314
6315 * remote-utils.c (remote_close): Block SIGIO signals instead of
6316 uninstalling the SIGIO handler.
6317
1d0aa65c
AH
63182017-11-16 Alan Hayward <alan.hayward@arm.com>
6319
6320 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6321
3491a34c
YQ
63222017-11-16 Yao Qi <yao.qi@linaro.org>
6323
6324 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6325 (tic6x_store_gregset): Likewise.
6326 (tic6x_usrregs_info): Move it up.
6327
a602f924
AH
63282017-11-15 Alan Hayward <alan.hayward@arm.com>
6329
6330 * Makefile.in: Update arch rules.
6331 * configure.srv: Explicitly mark arch/ files.
6332
5616b6c3
AS
63332017-11-13 Andreas Schwab <schwab@suse.de>
6334
6335 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6336 function.
6337 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6338
d1928160
PA
63392017-11-06 Pedro Alves <palves@redhat.com>
6340
6341 * config.in, configure: Regenerate.
6342
bac608e7
SM
63432017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6344
6345 * target.c (struct thread_search): Remove.
6346 (thread_search_callback): Remove.
6347 (prepare_to_access_memory): Use for_each_thread instead of
6348 find_inferior. Inline code from thread_search_callback.
6349
eaddb425
SM
63502017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6351
6352 * server.c (struct visit_actioned_threads_data): Remove.
6353 (visit_actioned_threads): Change prototype to take arguments
6354 directly.
6355 (resume): Use find_thread instead of find_inferior.
6356
99078d34
SM
63572017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6358
6359 * server.c (queue_stop_reply_callback): Change prototype, return
6360 void.
6361 (find_status_pending_thread_callback): Remove.
6362 (handle_status): Replace find_inferior with find_thread and
6363 for_each_thread.
6364
cc628f3d
AH
63652017-10-25 Alan Hayward <alan.hayward@arm.com>
6366
6367 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6368 with REGNO.
6369 (aarch64_store_gregset): Likewise.
6370 (aarch64_fill_fpregset): Likewise.
6371 (aarch64_store_fpregset): Likewise.
6372
4d3bb80e
SM
63732017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6374
6375 * gdbthread.h (find_thread, for_each_thread): New functions.
6376 * inferiors.c (thread_of_pid): Remove.
6377 (find_any_thread_of_pid): Use find_thread.
6378 * linux-low.c (num_lwps): Use for_each_thread.
6379
7a7cdfa0
YQ
63802017-10-17 Yao Qi <yao.qi@linaro.org>
6381
6382 * Makefile.in: Remove one rule.
6383 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6384
e675d170
YQ
63852017-10-17 Yao Qi <yao.qi@linaro.org>
6386
6387 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6388 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6389
7eb4e0f9
YQ
63902017-10-17 Yao Qi <yao.qi@linaro.org>
6391
6392 * configure.srv: Rename arm.o with arch/arm.o.
6393
60d6cfc9
YQ
63942017-10-17 Yao Qi <yao.qi@linaro.org>
6395
6396 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6397 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6398 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6399 (arch-i386.o, arch-amd64.o): Remove rules.
6400 (arch/%.o): New rule.
6401 Update POSTCOMPILE and COMPILE.pre.
6402 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6403 * configure: Re-generated.
6404 * configure.srv: Replace arch-i386.o with arch/i386.o.
6405 Replace arch-amd64.o with arch/amd64.o.
6406
5bfda255
YQ
64072017-10-16 Yao Qi <yao.qi@linaro.org>
6408
6409 * configure: Regenerated.
6410
9c80ecd6
SM
64112017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6412
6413 * inferiors.h: (struct inferior_list): Remove.
6414 (struct inferior_list_entry); Remove.
6415 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6416 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6417 get_first_inferior): Remove.
6418 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6419 find_inferior_id, find_inferior_in_random): Change signature.
6420 * inferiors.c (all_threads): Change type to
6421 std::list<thread_info *>.
6422 (get_thread): Remove macro.
6423 (find_inferior, find_inferior_id): Change signature, implement
6424 using find_thread.
6425 (find_inferior_in_random): Change signature, implement using
6426 find_thread_in_random.
6427 (for_each_inferior, for_each_inferior_with_data): Change
6428 signature, implement using for_each_thread.
6429 (add_inferior_to_list, remove_inferior): Remove.
6430 (add_thread, get_first_thread, thread_of_pid,
6431 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6432 (get_first_inferior, one_inferior_p, clear_inferior_list):
6433 Remove.
6434 (clear_inferiors, get_thread_process): Update.
6435 * gdbthread.h: Include <list>.
6436 (struct thread_info) <entry>: Remove field.
6437 <id>: New field.
6438 (all_threads): Change type to std::list<thread_info *>.
6439 (get_first_inferior): Add doc.
6440 (find_thread, for_each_thread, find_thread_in_random): New
6441 functions.
6442 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6443 * linux-arm-low.c (update_registers_callback): Update.
6444 * linux-low.c (second_thread_of_pid_p): Update.
6445 (kill_one_lwp_callback, linux_detach_lwp_callback,
6446 delete_lwp_callback, status_pending_p_callback, same_lwp,
6447 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6448 iterate_over_lwps, not_stopped_callback,
6449 resume_stopped_resumed_lwps, count_events_callback,
6450 select_singlestep_lwp_callback, select_event_lwp_callback,
6451 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6452 suspend_and_send_sigstop_callback, wait_for_sigstop,
6453 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6454 lwp_running, linux_set_resume_request, resume_status_pending_p,
6455 need_step_over_p, start_step_over, linux_resume_one_thread,
6456 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6457 reset_lwp_ptrace_options_callback): Update.
6458 * linux-mips-low.c (update_watch_registers_callback): Update.
6459 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6460 Update.
6461 (free_register_cache_thread_one): Remove.
6462 (regcache_release): Update.
6463 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6464 handle_qxfer_threads_worker): Update.
6465 (handle_query): Update, use list iterator.
6466 (visit_actioned_threads, handle_pending_status,
6467 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6468 clear_pending_status_callback, set_pending_status_callback,
6469 find_status_pending_thread_callback, handle_status,
6470 process_serial_event): Update.
6471 * target.c (thread_search_callback): Update.
6472 * thread-db.c (thread_db_get_tls_address): Update.
6473 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6474 Update.
6475 * win32-i386-low.c (update_debug_registers_callback): Update.
6476 * win32-low.c (delete_thread_info, child_delete_thread,
6477 continue_one_thread, suspend_one_thread,
6478 get_child_debug_event): Adjust.
6479
9179355e
SM
64802017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6481
6482 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6483 * inferiors.h: Include <list>.
6484 (struct process_info) <entry>: Remove field.
6485 <pid>: New field.
6486 (pid_of): Change macro to function.
6487 (ptid_of, lwpid_of): Remove macro.
6488 (all_processes): Change type to std::list<process_info *>.
6489 (ALL_PROCESSES): Remove macro.
6490 (for_each_process, find_process): New function.
6491 * inferiors.c (all_processes): Change type to
6492 std::list<process_info *>.
6493 (find_thread_process): Adjust.
6494 (add_process): Likewise.
6495 (remove_process): Likewise.
6496 (find_process_pid): Likewise.
6497 (get_first_process): Likewise.
6498 (started_inferior_callback): Remove.
6499 (have_started_inferiors_p): Adjust.
6500 (attached_inferior_callback): Remove.
6501 (have_attached_inferiors_p): Adjust.
6502 * linux-low.c (check_zombie_leaders): Likewise.
6503 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6504 (x86_linux_update_xmltarget): Adjust.
6505 * server.c (handle_query): Likewise.
6506 (gdb_reattached_process): Remove.
6507 (handle_status): Adjust.
6508 (kill_inferior_callback): Likewise.
6509 (detach_or_kill_inferior): Remove.
6510 (print_started_pid): Likewise.
6511 (print_attached_pid): Likewise.
6512 (detach_or_kill_for_exit): Update.
6513 (process_serial_event): Likewise.
6514 * linux-arm-low.c (arm_new_fork): Likewise.
6515
c9cb8905
SM
65162017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6517
6518 * dll.h: Include <list>.
6519 (struct dll_info): Add constructor.
6520 <entry>: Remove field.
6521 (all_dlls): Change type to std::list<dll_info>.
6522 * dll.c: Include <algorithm>.
6523 (get_dll): Remove macro.
6524 (all_dlls): Change type to std::list<dll_info *>.
6525 (free_one_dll): Remove.
6526 (match_dll): Likewise.
6527 (loaded_dll): Adjust.
6528 (unloaded_dll): Adjust to all_dlls type change, use
6529 std::find_if. Inline code from match_dll.
6530 (clear_dlls): Adjust to all_dlls type change.
6531 * server.c (emit_dll_description): Remove.
6532 (handle_qxfer_libraries): Adjust to all_dlls type change,
6533 integrate emit_dll_description's functionality.
6534
04ec7890
SM
65352017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6536
6537 * linux-low.h (struct linux_target_ops) <delete_process>: New
6538 field.
6539 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6540 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6541 (struct linux_target_ops): Add delete_process callback.
6542 * linux-arm-low.c (arm_delete_process): New.
6543 (struct linux_target_ops): Add delete_process callback.
6544 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6545 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6546 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6547 * linux-mips-low.c (mips_linux_delete_process): New.
6548 (struct linux_target_ops): Add delete_process callback.
6549 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6550 * linux-s390-low.c (struct linux_target_ops): Likewise.
6551 * linux-sh-low.c (struct linux_target_ops): Likewise.
6552 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6553 * linux-tile-low.c (struct linux_target_ops): Likewise.
6554 * linux-x86-low.c (x86_linux_delete_process): New.
6555 (struct linux_target_ops): Add delete_process callback.
6556 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6557
466eecee
SM
65582017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6559
6560 * linux-aarch64-low.c (the_low_target): Add thread delete
6561 callback.
6562 * linux-arm-low.c (arm_delete_thread): New function.
6563 (the_low_target): Add thread delete callback.
6564 * linux-bfin-low.c (the_low_target): Likewise.
6565 * linux-crisv32-low.c (the_low_target): Likewise.
6566 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6567 set.
6568 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6569 field.
6570 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6571 * linux-mips-low.c (mips_linux_delete_thread): New function.
6572 (the_low_target): Add thread delete callback.
6573 * linux-ppc-low.c (the_low_target): Likewise.
6574 * linux-s390-low.c (the_low_target): Likewise.
6575 * linux-sh-low.c (the_low_target): Likewise.
6576 * linux-tic6x-low.c (the_low_target): Likewise.
6577 * linux-tile-low.c (the_low_target): Likewise.
6578 * linux-x86-low.c (the_low_target): Likewise.
6579 * linux-xtensa-low.c (the_low_target): Likewise.
6580
b79f7801
YZ
65812017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6582
6583 * win32-low.c: Include "common-inferior.h".
6584
bc3b087d
SDJ
65852017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6586
6587 * inferiors.c (set_inferior_cwd): New function.
6588 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6589 (handle_query): Inform that QSetWorkingDir is supported.
6590 * win32-low.c (create_process): Pass the inferior's cwd to
6591 CreateProcess.
6592
d092c5a2
SDJ
65932017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6594
6595 * inferiors.c (current_inferior_cwd): New global variable.
6596 (get_inferior_cwd): New function.
6597 * inferiors.h (struct process_info) <cwd>: New field.
6598
7da0a886
SDJ
65992017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6600
6601 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6602 (OBS): Add gdb_tilde_expand.o.
6603
289a6840
SM
66042017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6605
6606 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6607 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6608
256642e8
PA
66092017-09-29 Pedro Alves <palves@redhat.com>
6610
6611 * ax.c (gdb_parse_agent_expr): Constify.
6612 * ax.h (gdb_parse_agent_expr): Constify.
6613 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6614 Constify.
6615 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6616 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6617 * remote-utils.h (read_ptid): Constify.
6618 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6619 (process_point_options, process_serial_event): Constify.
6620 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6621 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6622 (cmd_qtbuffer): Constify.
6623
5b9ca4d4
PA
66242017-09-29 Pedro Alves <palves@redhat.com>
6625
6626 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6627 fails.
6628
94c207e0
PA
66292017-09-29 Pedro Alves <palves@redhat.com>
6630
6631 * linux-low.c (handle_extended_wait): Pass parent thread instead
6632 of process to thread_db_notice_clone.
6633 * linux-low.h (thread_db_notice_clone): Replace parent process
6634 parameter with parent thread parameter.
6635 * thread-db.c (find_one_thread): Add comment.
6636 (thread_db_notice_clone): Replace parent process parameter with
6637 parent thread parameter. Temporarily switch to the parent thread.
6638
75352e28
SDJ
66392017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6640
6641 * gdbthread.h: Include "common-gdbthread.h".
6642 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6643 "if" when validating the ptid.
6644 * remote-utils.c: Include "gdbthread.h".
6645 (prepare_resume_reply): Use "switch_to_thread".
6646 * target.c (done_accessing_memory): Likewise.
6647
ad339634
AA
66482017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6649
6650 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6651 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6652 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6653 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6654 s390x-gs-linux64-ipa.o to ipa_obj.
6655 * linux-s390-low.c (HWCAP_S390_GS): New define.
6656 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6657 New functions.
6658 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6659 (s390_arch_setup): Check for guarded-storage support and choose
6660 appropriate tdesc.
6661 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6662 init_registers_s390x_gs_linux64.
6663 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6664 enum value.
6665 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6666 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6667
cc4d742f
SM
66682017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6669
6670 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6671
f6327dcb
KB
66722017-09-21 Kevin Buettner <kevinb@redhat.com>
6673
6674 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6675 (thread_db_thread_handle): Declare.
6676 * linux-low.c (linux_target_ops): Initialize thread_handle.
6677 * server.c (handle_qxfer_threads_worker): Add support for
6678 "handle" attribute.
6679 * target.h (struct target_ops): Add new function pointer,
6680 thread_handle.
6681 (target_thread_handle): Define.
6682 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6683 field in lwp.
6684 (thread_db_thread_handle): New function.
6685
86299109
KB
66862017-09-21 Kevin Buettner <kevinb@redhat.com>
6687
6688 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6689 * linux-low.h (thread_db_notice_clone): Declare.
6690 * thread-db.c (thread_db_notice_clone): New function.
6691
f557a88a
PA
66922017-09-21 Pedro Alves <palves@redhat.com>
6693
6694 * server.c (gdb_read_memory, handle_status, process_serial_event)
6695 (handle_serial_event, handle_target_event): Adjust to
6696 set_desired_thread prototype change.
6697 * target.c (set_desired_thread): Remove 'use_general' parameter
6698 and adjust.
6699 * target.h (set_desired_thread): Remove 'use_general' parameter.
6700
223ffa71
TT
67012017-09-20 Tom Tromey <tom@tromey.com>
6702
6703 * target.c (target_terminal::terminal_state): Define.
6704 (target_terminal::init): Rename from target_terminal_init.
6705 (target_terminal::inferior): Rename from
6706 target_terminal_inferior.
6707 (target_terminal::ours): Rename from target_terminal_ours.
6708 (target_terminal::ours_for_output, target_terminal::info): New.
6709
04fd3ba9
SM
67102017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6711
6712 * server.c (accumulate_file_name_length): Remove.
6713 (emit_dll_description): Adjust to std::string change.
6714 (handle_qxfer_libraries): Use std::string to hold document.
6715
5e187554
SM
67162017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6717
6718 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6719 return type of xml_escape_text.
6720 * server.c (emit_dll_description): Likewise.
6721
1526853e
SM
67222017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6723
6724 * server.c (captured_main): Accept argument for --selftest.
6725 Update run_tests call.
6726 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6727 when registering selftests.
6728
c4dfafab
SDJ
67292017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6730
6731 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6732 instead of "VEC" for "target_desc.reg_defs".
6733 (regcache_cpy): Likewise.
6734 (registers_to_string): Likewise.
6735 (registers_from_string): Likewise.
6736 (find_regno): Likewise.
6737 (supply_regblock): Likewise.
6738 (regcache_raw_read_unsigned): Likewise.
6739 * tdesc.c (init_target_desc): Likewise.
6740 (tdesc_create_reg): Likewise.
6741 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6742 (struct target_desc) <reg_defs>: Convert to "std::vector".
6743 (target_desc): Do not initialize "reg_defs".
6744 (~target_desc): Update code to use "std::vector" instead of "VEC"
6745 for "target_desc.reg_defs".
6746 (operator==): Likewise.
6747
124aceb4
SM
67482017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6749
6750 * inferiors.h (thread_to_gdb_id): Remove.
6751 * inferiors.c (thread_to_gdb_id): Remove.
6752 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6753 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6754 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6755 Likewise.
6756 * nto-low.c (nto_fetch_registers, nto_store_registers,
6757 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6758
96cde54f
SM
67592017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6760
6761 * inferiors.h (gdb_id_to_thread_id): Remove.
6762 * inferiors.c (gdb_id_to_thread_id): Remove.
6763 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6764 removal. Move pid declaration closer to where it's used.
6765
e8ca139e
SM
67662017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6767
6768 * server.c (handle_detach): New function.
6769 (process_serial_event): Move code out, call handle_detach.
6770
f8a4e119
SM
67712017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6772
6773 * server.c (require_running): Rename to ...
6774 (require_running_or_return): ... this ...
6775 (require_running_or_break): ... and this.
6776 (handle_query, process_serial_event): Adjust.
6777
0eb0a407
SM
67782017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6779
6780 * linux-low.c (linux_set_resume_request): Remove unused
6781 variables.
6782
785922a5
SM
67832017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6784
6785 * server.c (first_thread_of): Remove.
6786 (process_serial_event): Replace usage of first_thread_of with
6787 find_any_thread_of_pid.
6788 * tracepoint.c (same_process_p): Remove.
6789 (gdb_agent_about_to_close): Replace usage of same_process_p with
6790 find_any_thread_of_pid.
6791 * linux-x86-low.c (same_process_callback): Remove.
6792 (x86_arch_setup_process_callback): Replace usage of
6793 same_process_callback with find_any_thread_of_pid.
6794 * thread-db.c (any_thread_of): Remove.
6795 (switch_to_process): Replace usage of any_thread_of with
6796 find_any_thread_of_pid.
6797 * inferiors.c (thread_pid_matches_callback): Remove.
6798 (find_thread_process): Adjust to use find_any_thread_of_pid.
6799
a059f00c
SDJ
68002017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6801
6802 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6803 with "!VEC_empty".
a059f00c 6804
cc397f3a
SDJ
68052017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6806
6807 * linux-low.c (handle_extended_wait): Use
6808 "allocate_target_description" instead of "XNEW".
6809 * linux-x86-low.c (initialize_low_arch): Likewise.
6810
22916b07
YQ
68112017-09-05 Yao Qi <yao.qi@linaro.org>
6812
6813 * configure.srv (srv_i386_regobj): Remove.
6814 (srv_amd64_regobj): Remove.
6815 (srv_regobj): Set it to "" for x86 non-linux targets.
6816 * linux-x86-tdesc.c (i386_linux_read_description):
6817 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6818 (init_registers_i386): Remove the declaration.
6819 (tdesc_i386): Remove the declaration.
6820 (lynx_i386_arch_setup): Call i386_create_target_description.
6821 * nto-x86-low.c: Likewise.
6822 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6823 [!__x86_64__]: include arch/i386.h.
6824 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6825
38602d55
YQ
68262017-09-05 Yao Qi <yao.qi@linaro.org>
6827
6828 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6829 i386/amd64-XXX-linux from it.
6830
44b886ff
YQ
68312017-09-05 Yao Qi <yao.qi@linaro.org>
6832
6833 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6834 false.
6835 (ipa_amd64_linux_regobj): Remove.
6836 (ipa_x32_linux_regobj): Remove.
6837
b4570e4b
YQ
68382017-09-05 Yao Qi <yao.qi@linaro.org>
6839
6840 * Makefile.in (arch-amd64.o): New rule.
6841 * configure.srv: Append arch-amd64.o.
6842 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6843 (get_ipa_tdesc): Call amd64_linux_read_description.
6844 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6845 and init_registers_amd64_XXX.
6846 * linux-x86-low.c (x86_linux_read_description): Call
6847 amd64_linux_read_description.
6848 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6849 (initialize_low_arch): Don't call init_registers_x32_XXX and
6850 init_registers_amd64_XXX.
6851 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6852 and tdesc_amd64_XXX.
6853 [__x86_64__] (amd64_tdesc_test): New function.
6854 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6855 and init_registers_amd64_XXX.
6856 * linux-x86-tdesc.c: Include arch/amd64.h.
6857 (xcr0_to_tdesc_idx): New function.
6858 (i386_linux_read_description): New function.
6859 (amd64_get_ipa_tdesc_idx): New function.
6860 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6861 (amd64_get_ipa_tdesc): Declare.
6862
d1f28ea2
YQ
68632017-09-05 Yao Qi <yao.qi@linaro.org>
6864
6865 * configure.srv (srv_i386_linux_xmlfiles): Remove
6866 i386/i386-XXX-linux.xml from it.
6867
25a93583
YQ
68682017-09-05 Yao Qi <yao.qi@linaro.org>
6869
6870 * configure.srv: Set srv_i386_linux_regobj empty if $development
6871 is false.
6872 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6873 initialize_low_tdesc.
6874 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6875 with #if initialize_low_tdesc.
6876 * linux-x86-tdesc-selftest.c: New file.
6877 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6878
5f035c07
YQ
68792017-09-05 Yao Qi <yao.qi@linaro.org>
6880
6881 * Makefile.in (arch-i386.o): New rule.
6882 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6883 (x86_64-*-linux*): Likewise.
6884 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6885 include arch/i386.h.
6886 (i386_linux_read_description): Remove code and call
6887 i386_create_target_description.
6888 * tdesc.c (allocate_target_description): New function.
6889 * tdesc.h (set_tdesc_architecture): Remove declaration.
6890 (set_tdesc_osabi): Likewise.
6891
0abe8a89
YQ
68922017-09-05 Yao Qi <yao.qi@linaro.org>
6893
6894 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6895 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6896 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6897 .xmltarget.
6898 * server.c (get_features_xml): Call tdesc_get_features_xml.
6899 * tdesc.c (set_tdesc_architecture): New function.
6900 (set_tdesc_osabi): New function.
6901 (tdesc_get_features_xml): New function.
6902 (tdesc_create_feature): Add an argument.
6903 * tdesc.h (struct target_desc) <features>: New field.
6904 <arch, osabi>: New field.
6905 (~target_desc): xfree features, arch, and osabi.
6906 (target_desc::oerator==): Don't compare .xmltarget.
6907 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6908 (set_tdesc_osabi): Likewise.
6909 (tdesc_get_features_xml): Likewise.
6910
0a188386
YQ
69112017-09-05 Yao Qi <yao.qi@linaro.org>
6912
6913 * linux-x86-tdesc.c: Include selftest.h.
6914 (i386_tdesc_test): New function.
6915 (initialize_low_tdesc): Call selftests::register_test.
6916 * tdesc.h: Include regdef.h.
6917 (target_desc): Override operator == and !=.
6918
f49ff000
YQ
69192017-09-05 Yao Qi <yao.qi@linaro.org>
6920
6921 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6922 (ipa_obj): Likewise.
6923 * linux-i386-ipa.c: Include common/x86-xstate.h
6924 (get_ipa_tdesc): Call i386_linux_read_description.
6925 (initialize_low_tracepoint): Don't call init_registers_XXX
6926 functions, call initialize_low_tdesc instead.
6927 * linux-x86-low.c (x86_linux_read_description): Call
6928 i386_linux_read_description.
6929 (initialize_low_arch): Don't call init_registers_i386_XXX
6930 functions, call initialize_low_tdesc.
6931 * linux-x86-tdesc.c: New file.
6932 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6933 (i386_get_ipa_tdesc_idx): Declare.
6934 (i386_get_ipa_tdesc): Declare.
6935 (initialize_low_tdesc): Declare.
6936
2b68ef2f
YQ
69372017-09-05 Yao Qi <yao.qi@linaro.org>
6938
6939 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6940 instead of 0.
6941
f7000548
YQ
69422017-09-05 Yao Qi <yao.qi@linaro.org>
6943
6944 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6945 * regcache.c (get_thread_regcache): Use VEC_length.
6946 (init_register_cache): Likewise.
6947 (regcache_cpy): Likewise.
6948 (registers_to_string): Iterate reg_defs via VEC_iterate.
6949 (find_regno): Likewise.
6950 (find_register_by_number): Use VEC_index.
6951 (register_size): Call find_register_by_number.
6952 (register_data): Call find_register_by_number.
6953 (supply_regblock): Use VEC_length.
6954 (regcache_raw_read_unsigned): Likewise.
6955 * tdesc.c (init_target_desc): Iterate reg_defs via
6956 VEC_iterate.
6957 (default_description): Update initializer.
6958 (copy_target_description): Don't update field num_registers.
6959 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6960 <num_registers>: Remove.
6961
50a421ac
SM
69622017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6963
6964 * Makefile.in (.SECONDARY): Define target.
6965
23fdd69e
SM
69662017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6967
6968 * linux-low.c (linux_wait_1): Adjust.
6969 * server.c (queue_stop_reply_callback): Adjust.
6970
0a2dde4a
SDJ
69712017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6972
6973 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6974 QEnvironmentUnset and QEnvironmentReset packets.
6975 (handle_query): Inform remote that QEnvironmentHexEncoded,
6976 QEnvironmentUnset and QEnvironmentReset are supported.
6977
6afd337d
SM
69782017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6979
6980 * inferiors.h (inferior_target_data): Rename to ...
6981 (thread_target_data): ... this.
6982 (inferior_regcache_data): Rename to ...
6983 (thread_regcache_data): ... this.
6984 (set_inferior_regcache_data): Rename to ...
6985 (set_thread_regcache_data): ... this.
6986 * inferiors.c (inferior_target_data): Rename to ...
6987 (thread_target_data): ... this.
6988 (inferior_regcache_data): Rename to ...
6989 (thread_regcache_data): ... this.
6990 (set_inferior_regcache_data): Rename to ...
6991 (set_thread_regcache_data): ... this.
6992 (free_one_thread): Update.
6993 * linux-low.h (get_thread_lwp): Update.
6994 * regcache.c (get_thread_regcache): Update.
6995 (regcache_invalidate_thread): Update.
6996 (free_register_cache_thread): Update.
6997 * win32-i386-low.c (update_debug_registers_callback): Update.
6998 (win32_get_current_dr): Update.
6999 * win32-low.c (thread_rec): Update.
7000 (delete_thread_info): Update.
7001 (continue_one_thread): Update.
7002 (suspend_one_thread): Update.
7003
a160cc46
SM
70042017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7005
7006 * inferiors.c (set_inferior_target_data): Remove.
7007 * inferiors.h (set_inferior_target_data): Remove.
7008
6d580b63
YQ
70092017-08-18 Yao Qi <yao.qi@linaro.org>
7010
7011 * Makefile.in (OBS): Add selftest.o.
7012 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7013 * configure, config.in: Re-generated.
7014 * server.c: Include common/sefltest.h.
7015 (captured_main): Handle option --selftest.
7016
f5a29eb0
YQ
70172017-08-09 Yao Qi <yao.qi@linaro.org>
7018
7019 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7020 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7021 i386-avx-mpx.o and i386-mmx.o.
7022 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7023 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7024 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7025 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7026 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7027 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7028 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7029 i386/amd64-avx-mpx.xml.
7030
57757c2f
YQ
70312017-08-09 Yao Qi <yao.qi@linaro.org>
7032
7033 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7034 and x32-avx-avx512.o.
7035 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7036 i386/x32-avx-avx512.xml.
7037
229d26fc
SM
70382017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7039
7040 * tracepoint.h (enum class fast_tpoint_collect_result): New
7041 enumeration.
7042 (fast_tracepoint_collecting): Change return type to
7043 fast_tpoint_collect_result.
7044 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7045 * linux-low.h: Include tracepoint.h.
7046 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7047 fast_tpoint_collect_result.
7048 * linux-low.c (handle_tracepoints): Adjust.
7049 (linux_fast_tracepoint_collecting): Change return type to
7050 fast_tpoint_collect_result.
7051 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7052 linux_wait_1, stuck_in_jump_pad_callback,
7053 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7054 proceed_one_lwp): Adjust to type change.
7055
2e1e43e1
YQ
70562017-07-10 Yao Qi <yao.qi@linaro.org>
7057
7058 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7059
adc764e7
YQ
70602017-06-29 Yao Qi <yao.qi@linaro.org>
7061
7062 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7063 Remove.
7064 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7065
a206891a
SM
70662017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7067
7068 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7069
9a6c7d9c
SDJ
70702017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7071
7072 * linux-low.c (linux_create_inferior): Adjust code to access the
7073 environment information via 'gdb_environ' class.
7074 * lynx-low.c (lynx_create_inferior): Likewise.
7075 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7076 (get_environ): Return a pointer to 'our_environ'.
7077 (captured_main): Initialize 'our_environ'.
7078 * server.h (get_environ): Adjust prototype.
7079 * spu-low.c (spu_create_inferior): Adjust code to access the
7080 environment information via 'gdb_environ' class.
7081
ae3e2ccf
SM
70822017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7083
7084 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7085 usage of "register" keyword.
7086
3e019bdc
SM
70872017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7088
7089 * configure: Re-generate.
7090
8465943a
SM
70912017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7092
7093 * configure: Re-generate.
7094
cf0dd6f0
SM
70952017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7096
7097 * Makefile.in (COMPILE.pre): Add "-x c++".
7098
9845682b
SDJ
70992017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7100
7101 * fork-child.c: Conditionally include <signal.h>.
7102
aefd8b33
SDJ
71032017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7104
7105 * server.c (handle_general_set): Handle new packet
7106 "QStartupWithShell".
7107 (handle_query): Add "QStartupWithShell" to the list of supported
7108 packets.
7109 (gdbserver_usage): Add help text explaining the
7110 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7111 options.
7112 (captured_main): Recognize and act upon the presence of the new
7113 CLI options.
7114
2090129c
SDJ
71152017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7116 Pedro Alves <palves@redhat.com>
7117
7118 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7119 * configure: Regenerate.
7120 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7121 "fork-inferior.o".
7122 (i[34567]86-*-lynxos*): Likewise.
7123 (spu*-*-*): Likewise.
7124 * fork-child.c: New file.
7125 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7126 and "environ.h".
7127 (linux_ptrace_fun): New function.
7128 (linux_create_inferior): Adjust function prototype to reflect
7129 change on "target.h". Adjust function code to use
7130 "fork_inferior".
7131 (linux_request_interrupt): Delete "signal_pid".
7132 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7133 (lynx_ptrace_fun): New function.
7134 (lynx_create_inferior): Adjust function prototype to reflect
7135 change on "target.h". Adjust function code to use
7136 "fork_inferior".
7137 * nto-low.c (nto_create_inferior): Adjust function prototype and
7138 code to reflect change on "target.h". Update comments.
7139 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7140 "common-terminal.h" and "environ.h".
7141 (terminal_fd): Moved to fork-child.c.
7142 (old_foreground_pgrp): Likewise.
7143 (restore_old_foreground_pgrp): Likewise.
7144 (last_status): Make it global.
7145 (last_ptid): Likewise.
7146 (our_environ): New variable.
7147 (startup_with_shell): Likewise.
7148 (program_name): Likewise.
7149 (program_argv): Rename to...
7150 (program_args): ...this.
7151 (wrapper_argv): New variable.
7152 (start_inferior): Delete function.
7153 (get_exec_wrapper): New function.
7154 (get_exec_file): Likewise.
7155 (get_environ): Likewise.
7156 (prefork_hook): Likewise.
7157 (post_fork_inferior): Likewise.
7158 (postfork_hook): Likewise.
7159 (postfork_child_hook): Likewise.
7160 (handle_v_run): Update code to deal with arguments coming from the
7161 remote host. Update calls from "start_inferior" to
7162 "create_inferior".
7163 (captured_main): Likewise. Initialize environment variable. Call
7164 "have_job_control".
7165 * server.h (post_fork_inferior): New prototype.
7166 (get_environ): Likewise.
7167 (last_status): Declare.
7168 (last_ptid): Likewise.
7169 (signal_pid): Likewise.
7170 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7171 (spu_ptrace_fun): New function.
7172 (spu_create_inferior): Adjust function prototype to reflect change
7173 on "target.h". Adjust function code to use "fork_inferior".
7174 * target.c (target_terminal_init): New function.
7175 (target_terminal_inferior): Likewise.
7176 (target_terminal_ours): Likewise.
7177 * target.h: Include <vector>.
7178 (struct target_ops) <create_inferior>: Update prototype.
7179 (create_inferior): Update macro.
7180 * utils.c (gdb_flush_out_err): New function.
7181 * win32-low.c (win32_create_inferior): Adjust function prototype
7182 and code to reflect change on "target.h".
7183
043a4934
SDJ
71842017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7185
7186 * inferiors.c (switch_to_thread): New function.
7187
15652511
SDJ
71882017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7189
7190 * Makefile.in (SFILE): Add "common/job-control.c".
7191 (OBS): Add "job-control.o".
7192
21ea5acd
SDJ
71932017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7194
7195 * Makefile: Remove "@host_makefile_frag@".
7196
e13cb306
PA
71972017-05-05 Pedro Alves <palves@redhat.com>
7198
7199 * configure: Regenerate.
7200
c94fee56
SDJ
72012017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7202
7203 * configure: Regenerate.
7204
a0ff9e1a
SM
72052017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7206
7207 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7208 software_single_step change of return type to
7209 std::vector<CORE_ADDR>.
7210 * linux-low.c (install_software_single_step_breakpoints):
7211 Likewise.
7212 * linux-low.h (install_software_single_step_breakpoints):
7213 Likewise.
7214
be628ab8
SDJ
72152017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7216
7217 * remote-utils.c: Include "gdb_termios.h" instead of
7218 "terminal.h".
7219 * terminal.h: Delete file.
7220
7c5ded6a
SDJ
72212017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7222
7223 * server.c: Include <vector>.
7224 <program_argv, wrapper_argv>: Convert to std::vector.
7225 (start_inferior): Rewrite function to use C++.
7226 (handle_v_run): Likewise. Update code that calculates the argv
7227 based on the vRun packet; use C++.
7228 (captured_main): Likewise.
7229
436252de
SM
72302017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7231
7232 * server.c (handle_v_cont): Initialize thread_resume::thread
7233 with null_ptid.
7234
9bf2a700
PA
72352017-04-05 Pedro Alves <palves@redhat.com>
7236
7237 * configure: Regenerate.
7238
a121b7c1
PA
72392017-04-05 Pedro Alves <palves@redhat.com>
7240
7241 * gdbreplay.c (sync_error): Constify.
7242 * linux-x86-low.c (push_opcode): Constify.
7243
21c8a587
PA
72442017-04-05 Pedro Alves <palves@redhat.com>
7245
7246 * win32-low.c (get_child_debug_event)
7247 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7248 Report TARGET_WAITKIND_SPURIOUS instead.
7249
fb32b4f7
PA
72502017-04-05 Pedro Alves <palves@redhat.com>
7251
e79be6e5
SM
7252 * remote-utils.c (remote_prepare, remote_open): Constify.
7253 * remote-utils.h (remote_prepare, remote_open): Constify.
7254 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7255
65dd1e59
SM
72562017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7257
7258 * Makefile.in (clean): Clear .deps.
7259
8fa5b777
SM
72602017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7261
7262 * .gitignore: Remove generated files, replace with wildcard.
7263 * (clean): Replace removal of generated files with wildcard.
7264 (version.c): Replace with...
7265 (version-generated.c): ...this.
7266 (xml-builtin.c): Replace with...
7267 (xml-builtin-generated.c): ...this.
7268 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7269 (%.c: *regformats*): Replace with...
7270 (%-generated.c: *regformats*): ...this.
7271
a12e714b
MF
72722017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7273
7274 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7275 (xtensa_fill_gregset): Call collect_register_by_name for
7276 threadptr register.
7277 (xtensa_store_gregset): Call supply_register_by_name for
7278 threadptr register.
7279
1a09b50a
MF
72802017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7281
7282 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7283 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7284 (xtensa_store_gregset): Call supply_register for all registers in
7285 a0_regnum..a0_regnum + C0_NREGS range.
7286
1a01e7c6
SM
72872017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7288
7289 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7290 (ax-ipa.o: ax.c): Remove.
7291 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7292 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7293 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7294 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7295 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7296
36bc18a8
SM
72972017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7298
7299 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7300 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7301 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7302 (errors-ipa.o: ../common/errors.c): Remove.
7303 (format-ipa.o: ../common/format.c): Remove.
7304 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7305
a8ebe3d5
SM
73062017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7307
7308 * Makefile.in (%-ipa.o: %.c): New rule.
7309 (tracepoint-ipa.o: tracepoint.c): Remove.
7310 (utils-ipa.o: utils.c): Remove.
7311 (remote-utils-ipa.o: remote-utils.c): Remove.
7312 (regcache-ipa.o: regcache.c): Remove.
7313 (i386-linux-ipa.o: i386-linux.c): Remove.
7314 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7315 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7316 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7317 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7318 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7319 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7320 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7321 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7322 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7323 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7324 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7325 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7326 (aarch64-ipa.o: aarch64.c): Remove.
7327 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7328 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7329 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7330 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7331 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7332 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7333 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7334 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7335 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7336 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7337 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7338 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7339 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7340 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7341 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7342 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7343 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7344 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7345 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7346 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7347 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7348 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7349 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7350 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7351 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7352 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7353 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7354 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7355 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7356 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7357 (tdesc-ipa.o: tdesc.c): Remove.
7358 (x32-linux-ipa.o: x32-linux.c): Remove.
7359 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7360 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7361
50cfacb7
SM
73622017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7363
7364 * Makefile.in (%.o: ../arch/%.c): New rule.
7365 (arm.o: ../arch/arm.c): Remove.
7366 (arm-linux.o: ../arch/arm-linux.c): Remove.
7367 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7368 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7369
c5a22423
SM
73702017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7371
7372 * Makefile.in (%.o: ../nat/%.c): New rule.
7373 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7374 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7375 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7376 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7377 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7378 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7379 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7380 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7381 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7382 (linux-personality.o: ../nat/linux-personality.c): Remove.
7383 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7384 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7385 (x86-linux.o: ../nat/x86-linux.c): Remove.
7386 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7387 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7388
6bda016b
SM
73892017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7390
7391 * Makefile.in (%.o: ../common/%.c): New rule.
7392 (signals.o: ../common/signals.c): Remove.
7393 (print-utils.o: ../common/print-utils.c): Remove.
7394 (rsp-low.o: ../common/rsp-low.c): Remove.
7395 (common-utils.o: ../common/common-utils.c): Remove.
7396 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7397 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7398 (vec.o: ../common/vec.c): Remove.
7399 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7400 (xml-utils.o: ../common/xml-utils.c): Remove.
7401 (ptid.o: ../common/ptid.c): Remove.
7402 (buffer.o: ../common/buffer.c): Remove.
7403 (format.o: ../common/format.c): Remove.
7404 (filestuff.o: ../common/filestuff.c): Remove.
7405 (agent.o: ../common/agent.c): Remove.
7406 (errors.o: ../common/errors.c): Remove.
7407 (environ.o: ../common/environ.c): Remove.
7408 (common-debug.o: ../common/common-debug.c): Remove.
7409 (cleanups.o: ../common/cleanups.c): Remove.
7410 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7411 (fileio.o: ../common/fileio.c): Remove.
7412 (common-regcache.o: ../common/common-regcache.c): Remove.
7413 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7414 (new-op.o: ../common/new-op.c): Remove.
7415 (btrace-common.o: ../common/btrace-common.c): Remove.
7416
21122961
SM
74172017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7418
7419 * Makefile.in (%.o: ../target/%.c): New rule.
7420 (waitstatus.o: ../target/waitstatus.c): Remove.
7421
c362e621
SM
74222017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7423
7424 * Makefile.in
7425 (%.c: ../regformats/%.dat,
7426 (%.c: ../regformats/arm/%.dat,
7427 (%.c: ../regformats/i386/%.dat,
7428 (%.c: ../regformats/rs6000/%.dat): New rules.
7429 (aarch64.c): Remove.
7430 (reg-arm.c): Remove.
7431 (arm-with-iwmmxt.c): Remove.
7432 (arm-with-vfpv2.c): Remove.
7433 (arm-with-vfpv3.c): Remove.
7434 (arm-with-neon.c): Remove.
7435 (reg-bfin.c): Remove.
7436 (reg-cris.c): Remove.
7437 (reg-crisv32.c): Remove.
7438 (i386.c): Remove.
7439 (i386-linux.c): Remove.
7440 (i386-avx.c): Remove.
7441 (i386-avx-linux.c): Remove.
7442 (i386-avx-avx512.c): Remove.
7443 (i386-avx-avx512-linux.c): Remove.
7444 (i386-mpx.c): Remove.
7445 (i386-mpx-linux.c): Remove.
7446 (i386-avx-mpx-avx512-pku.c): Remove.
7447 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7448 (i386-avx-mpx.c): Remove.
7449 (i386-avx-mpx-linux.c): Remove.
7450 (i386-mmx.c): Remove.
7451 (i386-mmx-linux.c): Remove.
7452 (reg-ia64.c): Remove.
7453 (reg-m32r.c): Remove.
7454 (reg-m68k.c): Remove.
7455 (reg-cf.c): Remove.
7456 (mips-linux.c): Remove.
7457 (mips-dsp-linux.c): Remove.
7458 (mips64-linux.c): Remove.
7459 (mips64-dsp-linux.c): Remove.
7460 (nios2-linux.c): Remove.
7461 (powerpc-32.c): Remove.
7462 (powerpc-32l.c): Remove.
7463 (powerpc-altivec32l.c): Remove.
7464 (powerpc-cell32l.c): Remove.
7465 (powerpc-vsx32l.c): Remove.
7466 (powerpc-isa205-32l.c): Remove.
7467 (powerpc-isa205-altivec32l.c): Remove.
7468 (powerpc-isa205-vsx32l.c): Remove.
7469 (powerpc-e500l.c): Remove.
7470 (powerpc-64l.c): Remove.
7471 (powerpc-altivec64l.c): Remove.
7472 (powerpc-cell64l.c): Remove.
7473 (powerpc-vsx64l.c): Remove.
7474 (powerpc-isa205-64l.c): Remove.
7475 (powerpc-isa205-altivec64l.c): Remove.
7476 (powerpc-isa205-vsx64l.c): Remove.
7477 (s390-linux32.c): Remove.
7478 (s390-linux32v1.c): Remove.
7479 (s390-linux32v2.c): Remove.
7480 (s390-linux64.c): Remove.
7481 (s390-linux64v1.c): Remove.
7482 (s390-linux64v2.c): Remove.
7483 (s390-te-linux64.c): Remove.
7484 (s390-vx-linux64.c): Remove.
7485 (s390-tevx-linux64.c): Remove.
7486 (s390x-linux64.c): Remove.
7487 (s390x-linux64v1.c): Remove.
7488 (s390x-linux64v2.c): Remove.
7489 (s390x-te-linux64.c): Remove.
7490 (s390x-vx-linux64.c): Remove.
7491 (s390x-tevx-linux64.c): Remove.
7492 (tic6x-c64xp-linux.c): Remove.
7493 (tic6x-c64x-linux.c): Remove.
7494 (tic6x-c62x-linux.c): Remove.
7495 (reg-sh.c): Remove.
7496 (reg-sparc64.c): Remove.
7497 (reg-spu.c): Remove.
7498 (amd64.c): Remove.
7499 (amd64-linux.c): Remove.
7500 (amd64-avx.c): Remove.
7501 (amd64-avx-linux.c): Remove.
7502 (amd64-avx-avx512.c): Remove.
7503 (amd64-avx-avx512-linux.c): Remove.
7504 (amd64-mpx.c): Remove.
7505 (amd64-mpx-linux.c): Remove.
7506 (amd64-avx-mpx-avx512-pku.c): Remove.
7507 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7508 (amd64-avx-mpx.c): Remove.
7509 (amd64-avx-mpx-linux.c): Remove.
7510 (x32.c): Remove.
7511 (x32-linux.c): Remove.
7512 (x32-avx.c): Remove.
7513 (x32-avx-linux.c): Remove.
7514 (x32-avx-avx512.c): Remove.
7515 (x32-avx-avx512-linux.c): Remove.
7516 (reg-xtensa.c): Remove.
7517 (reg-tilegx.c): Remove.
7518 (reg-tilegx32.c): Remove.
7519
1672e0d9
SDJ
75202017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7521
7522 * Makefile.in (SFILES): Add "common/environ.c".
7523 (OBJS): Add "common/environ.h".
7524
239b6d10
WT
75252017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7526
7527 * configure.ac: Check if the fs_base and gs_base members of
7528 `struct user_regs_struct' exist.
7529 * config.in: Regenerated.
7530 * configure: Likewise.
7531
694b382c
AT
75322017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7533
7534 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7535 target_read_memory.
7536 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7537 (get_next_pcs_syscall_next_pc): Likewise.
7538
7dc53023
LM
75392016-12-23 Luis Machado <lgustavo@codesourcery.com>
7540
7541 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7542 * nto-x86-low.c: Likewise.
7543
ad02e4fe
SM
75442016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7545
7546 * Makefile.in: Include disable-implicit-rules.mk.
7547
dcb07cfa
PA
75482016-11-23 Pedro Alves <palves@redhat.com>
7549
7550 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7551 (debug_vprintf): Use std::chrono::steady_clock instead of
7552 gettimeofday. Use '.' instead of ':'.
7553 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7554 (get_timestamp): Use std::chrono::steady_clock instead of
7555 gettimeofday.
7556
8629c02c
SM
75572016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7558
7559 * Makefile.in: Fix whitespace formatting.
7560
b593ecca
SM
75612016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7562
7563 * Makefile.in (SFILES, OBS): Flatten list and order
7564 alphabetically.
7565
9986ba08
PA
75662016-11-23 Pedro Alves <palves@redhat.com>
7567
7568 * event-loop.c (handle_file_event): Use warning.
7569 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7570 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7571 Use warning.
7572
4eefa7bc
PA
75732016-11-23 Pedro Alves <palves@redhat.com>
7574
7575 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7576 output.
7577 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7578 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7579 debug_printf and debug_flush for debug output.
7580 * server.c (handle_general_set): Likewise.
7581 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7582 output.
7583
5443506e
SM
75842016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7585
7586 * Makefile.in (.c.o): Replace rule with ...
7587 (%.o: %.c): ... this one.
7588
3b165252
SM
75892016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7590
7591 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7592 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7593 make.
7594 * configure.ac: Remove checks for the make program.
7595 * configure: Re-generate.
7596
0bcda685
PA
75972016-10-28 Pedro Alves <palves@redhat.com>
7598
7599 * Makefile.in (CXX_DIALECT): Get from configure.
7600 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7601 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7602 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7603 * config.in: Regenerate.
7604 * configure: Regenerate.
7605
c3805894
YQ
76062016-10-27 Yao Qi <yao.qi@linaro.org>
7607
7608 * linux-low.c (linux_supports_range_stepping): Return true if
7609 can_software_single_step return true.
7610
89342618
YQ
76112016-10-27 Yao Qi <yao.qi@linaro.org>
7612
7613 * inferiors.c (find_inferior_in_random): New function.
7614 * inferiors.h (find_inferior_in_random): Declare.
7615 * linux-low.c (linux_wait_for_event_filtered): Call
7616 find_inferior_in_random instead of find_inferior.
7617
e3652c84
YQ
76182016-10-27 Yao Qi <yao.qi@linaro.org>
7619
7620 * linux-low.c (linux_wait_1): If single-step breakpoints are
7621 inserted, remove them.
7622
5a04c4cf
PA
76232016-10-26 Pedro Alves <palves@redhat.com>
7624
7625 * linux-low.c (handle_extended_wait): Link parent/child fork
7626 threads.
7627 (linux_wait_1): Unlink them.
7628 (linux_set_resume_request): Ignore resume requests for
7629 already-resumed and unhandled fork child threads.
7630 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7631 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7632 New functions.
7633 (handle_v_requests) <vCont>: Don't call require_running.
7634 * server.h (in_queued_stop_replies): New declaration.
7635
cb93dc7f
YQ
76362016-10-24 Yao Qi <yao.qi@linaro.org>
7637
7638 PR server/20733
7639 * linux-aarch64-low.c (append_insns): Cast the return value to
7640 'uint32_t *'.
7641
a1078bea
YQ
76422016-10-10 Yao Qi <yao.qi@linaro.org>
7643
7644 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7645
1fb77080
SDJ
76462016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7647
7648 * target.c (target_supports_multi_process): New function, moved
7649 from...
7650 * target.h (target_supports_multi_process): ... here. Remove
7651 macro.
7652
39b5a3b9
TT
76532016-10-05 Tom Tromey <tom@tromey.com>
7654
7655 PR remote/20655:
7656 * tracepoint.c (handle_tracepoint_bkpts): Check
7657 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7658
c1d0b70a
YQ
76592016-10-05 Yao Qi <yao.qi@linaro.org>
7660
7661 * configure.srv: Update the path of arm-*.xml files.
7662
0a69eedb
YQ
76632016-10-05 Terry Guo <terry.guo@arm.com>
7664 Yao Qi <yao.qi@linaro.org>
7665
7666 * Makefile.in: Adjust the path of rules.
7667 * configure.srv: Update the path of xml files.
7668 * regformats/arm-with-iwmmxt.dat: Regenerated.
7669 * regformats/arm-with-neon.dat: Likewise.
7670 * regformats/arm-with-vfpv2.dat: Likewise.
7671 * regformats/arm-with-vfpv3.dat Likewise.
7672
17e16485
YQ
76732016-09-30 Yao Qi <yao.qi@linaro.org>
7674
7675 PR gdbserver/20627
7676 * target.c (target_stop_and_wait): Don't call
7677 target_continue_no_signal, use resume_stop instead.
7678
edeeb602
YQ
76792016-09-26 Yao Qi <yao.qi@linaro.org>
7680
7681 * linux-low.c (linux_wait_1): Call debug_exit.
7682
503b1c39
PA
76832016-09-23 Pedro Alves <palves@redhat.com>
7684
7685 * Makefile.in (SFILES): Add common/new-op.c.
7686 (OBS): Add common/new-op.o.
7687 (new-op.o): New rule.
7688
74172ecf
SM
76892016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7690
7691 * .gitinore: Ignore more files.
7692
fc6cda2e
YQ
76932016-09-21 Yao Qi <yao.qi@linaro.org>
7694
7695 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7696 23.
7697
bc1e6c81
SDJ
76982016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7699
7700 * server.c (start_inferior): Call target_mourn_inferior instead of
7701 mourn_inferior; pass ptid_t argument to it.
7702 (resume): Likewise.
7703 (handle_target_event): Likewise.
7704 * target.c (target_mourn_inferior): New function.
7705 * target.h (mourn_inferior): Delete macro.
7706
0e00e962
AA
77072016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7708
7709 * linux-low.c (lwp_is_stepping): New function.
7710
1d8cb77d
CL
77112016-09-06 Carl Love <cel@us.ibm.com>
7712
7713 * server.c (start_inferior): Fixed comment, requested comment change
7714 didn't get updated correctly. Removed reference to ptrace () call as
7715 it is only true on Linux systems.
7716
7313bced
CL
77172016-09-06 Carl Love <cel@us.ibm.com>
7718
7719 * server.c (start_inferior): Do not call
7720 function target_post_create_inferior () if the
7721 inferior process has already exited.
7722
cf6de44d
PA
77232016-09-05 Pedro Alves <palves@redhat.com>
7724
7725 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7726 (COMPILE.pre, CC_LD): Use CXX directly.
7727 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7728 * acinclude.m4: Don't include build-with-cxx.m4.
7729 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7730 * configure: Regenerate.
7731
c1da6748
AT
77322016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7733
7734 PR gdb/19495
7735 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7736 call writing data to own_buf.
7737
f2b9e3df
SDJ
77382016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7739
7740 * target.c (mywait): Call target_wait instead of
7741 the_target->wait.
7742 (target_wait): New function.
7743
049a8570
SDJ
77442016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7745
7746 * server.c (start_inferior): New variable 'ptid'. Replace calls
7747 to the_target->resume by target_continue{,_no_signal}, depending
7748 on the case.
7749 * target.c (target_stop_and_wait): Call target_continue_no_signal
7750 instead of the_target->resume.
7751 (target_continue): New function.
7752
3aa5cfa0
AT
77532016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7754
7755 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7756
754653a7
AZ
77572016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7758
7759 PR server/20491
7760 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7761 ps_prochandle.
7762 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7763 * linux-arm-low.c (ps_get_thread_area): Likewise.
7764 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7765 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7766 * linux-mips-low.c (ps_get_thread_area): Likewise.
7767 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7768 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7769 * linux-x86-low.c (ps_get_thread_area): Likewise.
7770 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7771
ed036b40
PA
77722016-08-19 Pedro Alves <palves@redhat.com>
7773
7774 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7775
c8ef42ee
PA
77762016-08-19 Pedro Alves <palves@redhat.com>
7777
7778 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7779 comment. Use memcpy instead of casting through unsigned long.
7780
9c235a72
PA
77812016-08-19 Pedro Alves <palves@redhat.com>
7782
7783 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7784 allocating around 0x80000000.
7785
201506da
PA
77862016-08-19 Pedro Alves <palves@redhat.com>
7787
7788 PR gdb/20415
7789 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7790 (x32-avx512-linux-ipa.o): New rules.
7791 * configure.ac (x86_64-*-linux*): New x32 check.
7792 * configure.srv (ipa_x32_linux_regobj): New.
7793 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7794 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7795 descriptions.
7796 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7797 descriptions.
7798 * configure: Regenerate.
7799
f348d89a
PA
78002016-08-09 Pedro Alves <palves@redhat.com>
7801
7802 PR gdb/18653
7803 * Makefile.in (OBS): Add signals-state-save-restore.o.
7804 (signals-state-save-restore.o): New rule.
7805 * config.in: Regenerate.
7806 * configure: Regenerate.
7807 * linux-low.c: Include "signals-state-save-restore.h".
7808 (linux_create_inferior): Call
7809 restore_original_signals_state.
7810 * server.c: Include "dispositions-save-restore.h".
7811 (captured_main): Call save_original_signals_state.
7812
1baf5149
PA
78132016-08-05 Pedro Alves <palves@redhat.com>
7814
7815 * configure: Regenerate.
7816
fcd4a73d
YQ
78172016-08-04 Yao Qi <yao.qi@linaro.org>
7818
7819 * linux-low.c (regsets_fetch_inferior_registers): Check
7820 errno is ESRCH or not.
7821
979659d0
YQ
78222016-08-02 Yao Qi <yao.qi@linaro.org>
7823
7824 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7825 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7826 (thread_db_load_search): Update.
7827 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7828 td_ta_set_event and td_ta_event_getmsg.
7829
6598661d
PA
78302016-07-26 Pedro Alves <palves@redhat.com>
7831
7832 PR server/20414
7833 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7834 of unsigned long for 64-bit registers and use uint32_t instead of
7835 unsigned int for 32-bit registers.
7836
9cf12d57
PA
78372016-07-26 Pedro Alves <palves@redhat.com>
7838
7839 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7840 to 'ptrace'.
7841
305450ed
TT
78422016-07-21 Tom Tromey <tom@tromey.com>
7843
7844 * configure: Rebuild.
7845
2583da7c
YQ
78462016-07-21 Yao Qi <yao.qi@linaro.org>
7847
7848 * mem-break.c (find_gdb_breakpoint): Cast bp to
7849 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7850
21536b36
YQ
78512016-07-21 Yao Qi <yao.qi@linaro.org>
7852
7853 * server.c (handle_v_requests): Support s and S actions
7854 if target_supports_software_single_step return true.
7855
8901d193
YQ
78562016-07-21 Yao Qi <yao.qi@linaro.org>
7857
7858 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7859 is resume_step, call maybe_hw_step.
7860 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7861 and unstop them.
7862 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7863 breakpoints or not.
7864 (proceed_one_lwp): If resume request is resume_step, install
7865 reinsert breakpoints and call maybe_hw_step.
7866
0e9a339e
YQ
78672016-07-21 Yao Qi <yao.qi@linaro.org>
7868
7869 * linux-low.c (proceed_one_lwp): Declare.
7870 (linux_resume_one_thread): Remove local variable 'step'.
7871 Lift code enqueue signal. Call proceed_one_lwp instead of
7872 linux_resume_one_lwp.
7873
4281b351
YQ
78742016-07-21 Yao Qi <yao.qi@linaro.org>
7875
7876 * linux-low.c (linux_resume_one_thread): Call
7877 enqueue_pending_signal.
7878
984a2c04
YQ
78792016-07-21 Yao Qi <yao.qi@linaro.org>
7880
7881 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7882 * inferiors.c (do_restore_current_thread_cleanup): New function.
7883 (make_cleanup_restore_current_thread): Likewise.
7884 * linux-low.c (install_software_single_step_breakpoints): Call
7885 make_cleanup_restore_current_thread. Switch current_thread to
7886 thread.
7887
bec903c9
YQ
78882016-07-21 Yao Qi <yao.qi@linaro.org>
7889
7890 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7891 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7892 (clone_one_breakpoint): Likewise.
7893 (delete_reinsert_breakpoints): Change parameter to thread.
7894 Callers updated.
7895 (has_reinsert_breakpoints): Likewise.
7896 (uninsert_reinsert_breakpoints): Likewise.
7897 (reinsert_reinsert_breakpoints): Likewise.
7898 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7899 (delete_reinsert_breakpoints): Likewise.
7900 (reinsert_reinsert_breakpoints): Likewise.
7901 (uninsert_reinsert_breakpoints): Likewise.
7902 (has_reinsert_breakpoints): Likewise.
7903
63c40ec7
YQ
79042016-07-21 Yao Qi <yao.qi@linaro.org>
7905
7906 * inferiors.c (get_thread_process): Make parameter const.
7907 * inferiors.h (get_thread_process): Update declaration.
7908 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7909 Add new parameters child_thread and parent_thread. Callers
7910 updated.
7911 * mem-break.h (clone_all_breakpoints): Update declaration.
7912
9aa76cd0
YQ
79132016-07-21 Yao Qi <yao.qi@linaro.org>
7914
7915 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7916 <command_list, handler>: Remove.
7917 (struct gdb_breakpoint): New.
7918 (struct other_breakpoint): New.
7919 (struct reinsert_breakpoint): New.
7920 (is_gdb_breakpoint): New function.
7921 (any_persistent_commands): Update command_list if
7922 is_gdb_breakpoint returns true.
7923 (set_breakpoint): Create breakpoints according to their types.
7924 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7925 (set_gdb_breakpoint_1): Likewise.
7926 (set_gdb_breakpoint): Likewise.
7927 (clear_breakpoint_conditions): Change parameter type to
7928 'struct gdb_breakpoint *'.
7929 (clear_breakpoint_commands): Likewise.
7930 (clear_breakpoint_conditions_and_commands): Likewise.
7931 (add_condition_to_breakpoint): Likewise.
7932 (add_breakpoint_condition): Likewise.
7933 (add_commands_to_breakpoint): Likewise.
7934 (check_breakpoints): Check other_breakpoint.
7935 (clone_one_breakpoint): Clone breakpopint according to its type.
7936 * mem-break.h (struct gdb_breakpoint): Declare.
7937 (set_gdb_breakpoint): Update declaration.
7938 (clear_breakpoint_conditions_and_commands): Likewise.
7939 (add_breakpoint_condition): Likewise.
7940 (add_breakpoint_commands): Likewise.
7941 * server.c (process_point_options): Change parameter type to
7942 'struct gdb_breakpoint *'.
7943
811f8301
YQ
79442016-07-21 Yao Qi <yao.qi@linaro.org>
7945
7946 * mem-break.c (set_breakpoint_at): Rename it to ...
7947 (set_breakpoint_type_at): ... it.
7948 (set_breakpoint_at): Call set_breakpoint_type_at.
7949 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7950 * mem-break.h (set_breakpoint_at): Update comments.
7951
b1c51e36
CLT
79522016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7953
7954 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7955 to buf parameter.
7956 (nios2_store_gregset): Likewise.
7957
ced2dffb
PA
79582016-07-01 Pedro Alves <palves@redhat.com>
7959 Antoine Tremblay <antoine.tremblay@ericsson.com>
7960
7961 * linux-low.c: Change interface to take the target lwp_info
7962 pointer directly and return void. Handle detaching from a zombie
7963 thread.
7964 (linux_detach_lwp_callback): New function.
7965 (linux_detach): Detach from the leader thread after detaching from
7966 the clone threads.
7967
2ac09a5b
YQ
79682016-06-28 Yao Qi <yao.qi@linaro.org>
7969
7970 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7971 for variable new_offset.
7972 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7973 (aarch64_ftrace_insn_reloc_cb): Likewise.
7974 (aarch64_ftrace_insn_reloc_tb): Likewise.
7975 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7976 PRIx64 instead of PRIx32.
7977
79e7fd4f
YQ
79782016-06-28 Yao Qi <yao.qi@linaro.org>
7979
7980 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7981 (the_low_target): Install arm_get_syscall_trapinfo.
7982
061fc021
YQ
79832016-06-28 Yao Qi <yao.qi@linaro.org>
7984
7985 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7986 function.
7987 (the_low_target): Install aarch64_get_syscall_trapinfo.
7988
4cc32bec
YQ
79892016-06-28 Yao Qi <yao.qi@linaro.org>
7990
7991 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7992 Callers updated.
7993 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7994 Remove parameter sysno.
7995 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7996 sysret.
7997
782c1122
AA
79982016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7999
8000 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8001 (s390_emit_ne_goto): Likewise.
8002 (s390_emit_lt_goto): Likewise.
8003 (s390_emit_le_goto): Likewise.
8004 (s390_emit_gt_goto): Likewise.
8005 (s390_emit_ge_goto): Likewise.
8006 (s390x_emit_eq_goto): Likewise.
8007 (s390x_emit_ne_goto): Likewise.
8008 (s390x_emit_lt_goto): Likewise.
8009 (s390x_emit_le_goto): Likewise.
8010 (s390x_emit_gt_goto): Likewise.
8011 (s390x_emit_ge_goto): Likewise.
8012 (s390_emit_ops_impl): Mark variable static.
8013 (s390x_emit_ops): Likewise.
8014
2e7b624b
YQ
80152016-06-17 Yao Qi <yao.qi@linaro.org>
8016
8017 * linux-low.c (handle_extended_wait): Call
8018 uninsert_reinsert_breakpoints for the parent process. Remove
8019 reinsert breakpoints from the child process. Reinsert them to
8020 the parent process when vfork is done.
8021 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8022 (reinsert_reinsert_breakpoints): New function.
8023 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8024 (reinsert_reinsert_breakpoints): Declare.
8025
8a81c5d7
YQ
80262016-06-17 Yao Qi <yao.qi@linaro.org>
8027
8028 * linux-low.c (handle_extended_wait): If the parent is doing
8029 step-over, remove the reinsert breakpoints from the forked child.
8030
f50bf8e5
YQ
80312016-06-17 Yao Qi <yao.qi@linaro.org>
8032
8033 * linux-low.c (unsuspend_all_lwps): Declare.
8034 (linux_low_filter_event): If thread exited, call finish_step_over.
8035 If step-over is finished, unsuspend other threads.
8036
8376a3cb
YQ
80372016-06-17 Yao Qi <yao.qi@linaro.org>
8038
8039 * linux-low.c (linux_resume_one_lwp_throw): Assert
8040 has_reinsert_breakpoints returns false.
8041 * mem-break.c (delete_disabled_breakpoints): Assert
8042 bp type isn't reinsert_breakpoint.
8043
f79b145d
YQ
80442016-06-17 Yao Qi <yao.qi@linaro.org>
8045
8046 * linux-low.c (maybe_hw_step): New function.
8047 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8048 (finish_step_over): Switch current_thread to lwp temporarily,
8049 and assert has_reinsert_breakpoints returns true.
8050 (proceed_one_lwp): Call maybe_hw_step.
8051 * mem-break.c (has_reinsert_breakpoints): New function.
8052 * mem-break.h (has_reinsert_breakpoints): Declare.
8053
0ae534d2
JT
80542016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8055
8056 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8057
fcdad592
YQ
80582016-05-17 Yao Qi <yao.qi@linaro.org>
8059
8060 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8061 instead of find_inferior.
8062
9e784964
YQ
80632016-05-05 Yao Qi <yao.qi@linaro.org>
8064
8065 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8066 Initialize res to zero.
8067
cf2ebb6e
YQ
80682016-05-05 Yao Qi <yao.qi@linaro.org>
8069
8070 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8071 to uint32_t.
8072
c1aebf87
UW
80732016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8074
8075 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8076 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8077 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8078
35fd2deb 80792016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8080 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8081
8082 * tracepoint.c (write_inferior_int8): New function.
8083 (cmd_qtenable_disable): Write enable flag using
8084 write_inferior_int8.
8085
484b3c32
YQ
80862016-04-25 Yao Qi <yao.qi@linaro.org>
8087
8088 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8089 (need_step_over_p): Return zero if the LWP has pending signals
8090 can be delivered on software single step target.
8091
85ba7d86
YQ
80922016-04-25 Yao Qi <yao.qi@linaro.org>
8093
8094 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8095 return instead of error.
8096
3539aa13
YQ
80972016-04-22 Yao Qi <yao.qi@linaro.org>
8098
8099 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8100 to 23.
8101
5b061e98
YQ
81022016-04-22 Yao Qi <yao.qi@linaro.org>
8103
8104 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8105 signal when stepping over breakpoint with software single
8106 step.
8107
3451269c
PA
81082016-04-21 Pedro Alves <palves@redhat.com>
8109
8110 * linux-s390-low.c (s390_collect_ptrace_register)
8111 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8112 add casts.
8113 (s390_check_regset): Use void * instead of gdb_byte *.
8114
a2358508
PA
81152016-04-20 Pedro Alves <palves@redhat.com>
8116
8117 * configure: Renegerate.
8118
6885166d
YQ
81192016-04-20 Yao Qi <yao.qi@linaro.org>
8120
8121 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8122 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8123 number 16.
8124 (arm_store_gregset): Likewise.
8125
2b863f51
WT
81262016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8127
8128 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8129 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8130 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8131 (amd64-avx-mpx-linux.c): New rules.
8132 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8133 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8134 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8135 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8136 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8137 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8138 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8139 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8140 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8141 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8142 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8143 * linux-x86-low.c (x86_linux_read_description): Add case for
8144 X86_XSTATE_AVX_MPX_MASK.
8145 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8146 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8147 init_registers_i386_avx_mpx_linux.
8148 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8149 (initialize_low_tracepoint): Call
8150 init_registers_i386_avx_mpx_linux.
8151 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8152 (initialize_low_tracepoint): Call
8153 init_registers_amd64_avx_mpx_linux.
8154 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8155 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8156 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8157 declarations.
8158
9b30624b
PA
81592016-04-18 Pedro Alves <palves@redhat.com>
8160
8161 * configure: Regenerate.
8162
45e3745e
AT
81632016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8164
8165 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8166 (aarch64_emit_sub): Likewise.
8167
2afc13ff
PA
81682016-04-12 Pedro Alves <palves@redhat.com>
8169
8170 * utils.c (prepare_to_throw_exception): Delete.
8171
6e774b13
SM
81722016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8173
8174 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8175
4dca19f8
MK
81762016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8177
8178 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8179
d0a9981f
MK
81802016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8181
8182 * linux-aarch64-ipa.c: Add <elf.h> include.
8183 * linux-ppc-ipa.c: Add <elf.h> include.
8184 * linux-s390-ipa.c: Add <elf.h> include.
8185
252db07e
MK
81862016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8187
8188 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8189 (get_raw_reg_ptr): Likewise.
8190 (get_trace_state_variable_value_ptr): Likewise.
8191 (set_trace_state_variable_value_ptr): Likewise.
8192 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8193 char *.
8194
14e2b6d9
MK
81952016-03-31 Wei-cheng Wang <cole945@gmail.com>
8196 Marcin Kościelnicki <koriakin@0x04.net>
8197
8198 PR/17221
8199 * linux-ppc-low.c (emit_insns): New function.
8200 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8201 (ppc_emit_prologue): New function.
8202 (ppc_emit_epilogue): New function.
8203 (ppc_emit_add): New function.
8204 (ppc_emit_sub): New function.
8205 (ppc_emit_mul): New function.
8206 (ppc_emit_lsh): New function.
8207 (ppc_emit_rsh_signed): New function.
8208 (ppc_emit_rsh_unsigned): New function.
8209 (ppc_emit_ext): New function.
8210 (ppc_emit_zero_ext): New function.
8211 (ppc_emit_log_not): New function.
8212 (ppc_emit_bit_and): New function.
8213 (ppc_emit_bit_or): New function.
8214 (ppc_emit_bit_xor): New function.
8215 (ppc_emit_bit_not): New function.
8216 (ppc_emit_equal): New function.
8217 (ppc_emit_less_signed): New function.
8218 (ppc_emit_less_unsigned): New function.
8219 (ppc_emit_ref): New function.
8220 (ppc_emit_const): New function.
8221 (ppc_emit_reg): New function.
8222 (ppc_emit_pop): New function.
8223 (ppc_emit_stack_flush): New function.
8224 (ppc_emit_swap): New function.
8225 (ppc_emit_stack_adjust): New function.
8226 (ppc_emit_call): New function.
8227 (ppc_emit_int_call_1): New function.
8228 (ppc_emit_void_call_2): New function.
8229 (ppc_emit_if_goto): New function.
8230 (ppc_emit_goto): New function.
8231 (ppc_emit_eq_goto): New function.
8232 (ppc_emit_ne_goto): New function.
8233 (ppc_emit_lt_goto): New function.
8234 (ppc_emit_le_goto): New function.
8235 (ppc_emit_gt_goto): New function.
8236 (ppc_emit_ge_goto): New function.
8237 (ppc_write_goto_address): New function.
8238 (ppc_emit_ops_impl): New static variable.
8239 (ppc64v1_emit_prologue): New function.
8240 (ppc64v2_emit_prologue): New function.
8241 (ppc64_emit_epilogue): New function.
8242 (ppc64_emit_add): New function.
8243 (ppc64_emit_sub): New function.
8244 (ppc64_emit_mul): New function.
8245 (ppc64_emit_lsh): New function.
8246 (ppc64_emit_rsh_signed): New function.
8247 (ppc64_emit_rsh_unsigned): New function.
8248 (ppc64_emit_ext): New function.
8249 (ppc64_emit_zero_ext): New function.
8250 (ppc64_emit_log_not): New function.
8251 (ppc64_emit_bit_and): New function.
8252 (ppc64_emit_bit_or): New function.
8253 (ppc64_emit_bit_xor): New function.
8254 (ppc64_emit_bit_not): New function.
8255 (ppc64_emit_equal): New function.
8256 (ppc64_emit_less_signed): New function.
8257 (ppc64_emit_less_unsigned): New function.
8258 (ppc64_emit_ref): New function.
8259 (ppc64_emit_const): New function.
8260 (ppc64v1_emit_reg): New function.
8261 (ppc64v2_emit_reg): New function.
8262 (ppc64_emit_pop): New function.
8263 (ppc64_emit_stack_flush): New function.
8264 (ppc64_emit_swap): New function.
8265 (ppc64v1_emit_call): New function.
8266 (ppc64v2_emit_call): New function.
8267 (ppc64v1_emit_int_call_1): New function.
8268 (ppc64v2_emit_int_call_1): New function.
8269 (ppc64v1_emit_void_call_2): New function.
8270 (ppc64v2_emit_void_call_2): New function.
8271 (ppc64_emit_if_goto): New function.
8272 (ppc64_emit_eq_goto): New function.
8273 (ppc64_emit_ne_goto): New function.
8274 (ppc64_emit_lt_goto): New function.
8275 (ppc64_emit_le_goto): New function.
8276 (ppc64_emit_gt_goto): New function.
8277 (ppc64_emit_ge_goto): New function.
8278 (ppc64v1_emit_ops_impl): New static variable.
8279 (ppc64v2_emit_ops_impl): New static variable.
8280 (ppc_emit_ops): New function.
8281 (linux_low_target): Wire in ppc_emit_ops.
8282
a2174ba4
MK
82832016-03-31 Wei-cheng Wang <cole945@gmail.com>
8284 Marcin Kościelnicki <koriakin@0x04.net>
8285
8286 PR/17221
8287 * Makefile.in: Add powerpc-*-ipa.o
8288 * configure.srv: Add ipa_obj for powerpc*-linux.
8289 * linux-ppc-ipa.c: New file.
8290 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8291 includes.
8292 (PPC_FIELD): New macro.
8293 (PPC_SEXT): New macro.
8294 (PPC_OP6): New macro.
8295 (PPC_BO): New macro.
8296 (PPC_LI): New macro.
8297 (PPC_BD): New macro.
8298 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8299 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8300 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8301 (ppc_get_thread_area): New function.
8302 (is_elfv2_inferior): New function.
8303 (gen_ds_form): New function.
8304 (GEN_STD): New macro.
8305 (GEN_STDU): New macro.
8306 (GEN_LD): New macro.
8307 (GEN_LDU): New macro.
8308 (gen_d_form): New function.
8309 (GEN_ADDI): New macro.
8310 (GEN_ADDIS): New macro.
8311 (GEN_LI): New macro.
8312 (GEN_LIS): New macro.
8313 (GEN_ORI): New macro.
8314 (GEN_ORIS): New macro.
8315 (GEN_LWZ): New macro.
8316 (GEN_STW): New macro.
8317 (GEN_STWU): New macro.
8318 (gen_xfx_form): New function.
8319 (GEN_MFSPR): New macro.
8320 (GEN_MTSPR): New macro.
8321 (GEN_MFCR): New macro.
8322 (GEN_MTCR): New macro.
8323 (GEN_SYNC): New macro.
8324 (GEN_LWSYNC): New macro.
8325 (gen_x_form): New function.
8326 (GEN_OR): New macro.
8327 (GEN_MR): New macro.
8328 (GEN_LWARX): New macro.
8329 (GEN_STWCX): New macro.
8330 (GEN_CMPW): New macro.
8331 (gen_md_form): New function.
8332 (GEN_RLDICL): New macro.
8333 (GEN_RLDICR): New macro.
8334 (gen_i_form): New function.
8335 (GEN_B): New macro.
8336 (GEN_BL): New macro.
8337 (gen_b_form): New function.
8338 (GEN_BNE): New macro.
8339 (GEN_LOAD): New macro.
8340 (GEN_STORE): New macro.
8341 (gen_limm): New function.
8342 (gen_atomic_xchg): New function.
8343 (gen_call): New function.
8344 (ppc_relocate_instruction): New function.
8345 (ppc_install_fast_tracepoint_jump_pad): New function.
8346 (ppc_get_min_fast_tracepoint_insn_len): New function.
8347 (ppc_get_ipa_tdesc_idx): New function.
8348 (the_low_target): Wire in the new functions.
8349 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8350 tdescs.
8351 * linux-ppc-tdesc.h: New file.
8352
a13c4696
MK
83532016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8354
8355 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8356 (alloc_jump_pad_buffer): New function.
8357 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8358 (alloc_jump_pad_buffer): New function.
8359 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8360 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8361 (alloc_jump_pad_buffer): New function.
8362 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8363 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8364 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8365 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8366
1cda1512
MK
83672016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8368
8369 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8370 * linux-amd64-ipa.c: Likewise.
8371 * linux-i386-ipa.c: Likewise.
8372 * linux-s390-ipa.c: Likewise.
8373 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8374 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8375 set_trace_state_variable_value_ptr.
8376 (struct ipa_sym_addresses): Likewise.
8377 (symbol_list): Likewise.
8378 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8379 accessing gdb_collect directly.
8380 (gdb_collect_ptr_type): New typedef.
8381 (get_raw_reg_ptr_type): New typedef.
8382 (get_trace_state_variable_value_ptr_type): New typedef.
8383 (set_trace_state_variable_value_ptr_type): New typedef.
8384 (gdb_collect_ptr): New global.
8385 (get_raw_reg_ptr): New global.
8386 (get_trace_state_variable_value_ptr): New global.
8387 (set_trace_state_variable_value_ptr): New global.
8388 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8389 accessing get_raw_reg directly.
8390 (get_get_tsv_func_addr): Likewise for
8391 get_trace_state_variable_value_ptr.
8392 (get_set_tsv_func_addr): Likewise for
8393 set_trace_state_variable_value_ptr.
8394 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8395
72fb5488
SM
83962016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8397
8398 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8399
28170b88
MK
84002016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8401
8402 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8403 packets.
8404 (relocate_instruction): Remove own_buf.
8405 * server.c (own_buf): Make global.
8406 (handle_v_requests): Make global.
8407 * server.h (own_buf): New declaration.
8408 (handle_v_requests): New prototype.
8409
f39e8743
MK
84102016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8411
8412 PR 18377
8413 * linux-s390-low.c (add_insns): New function.
8414 (s390_emit_prologue): New function.
8415 (s390_emit_epilogue): New function.
8416 (s390_emit_add): New function.
8417 (s390_emit_sub): New function.
8418 (s390_emit_mul): New function.
8419 (s390_emit_lsh): New function.
8420 (s390_emit_rsh_signed): New function.
8421 (s390_emit_rsh_unsigned): New function.
8422 (s390_emit_ext): New function.
8423 (s390_emit_log_not): New function.
8424 (s390_emit_bit_and): New function.
8425 (s390_emit_bit_or): New function.
8426 (s390_emit_bit_xor): New function.
8427 (s390_emit_bit_not): New function.
8428 (s390_emit_equal): New function.
8429 (s390_emit_less_signed): New function.
8430 (s390_emit_less_unsigned): New function.
8431 (s390_emit_ref): New function.
8432 (s390_emit_if_goto): New function.
8433 (s390_emit_goto): New function.
8434 (s390_write_goto_address): New function.
8435 (s390_emit_litpool): New function.
8436 (s390_emit_const): New function.
8437 (s390_emit_call): New function.
8438 (s390_emit_reg): New function.
8439 (s390_emit_pop): New function.
8440 (s390_emit_stack_flush): New function.
8441 (s390_emit_zero_ext): New function.
8442 (s390_emit_swap): New function.
8443 (s390_emit_stack_adjust): New function.
8444 (s390_emit_set_r2): New function.
8445 (s390_emit_int_call_1): New function.
8446 (s390_emit_void_call_2): New function.
8447 (s390_emit_eq_goto): New function.
8448 (s390_emit_ne_goto): New function.
8449 (s390_emit_lt_goto): New function.
8450 (s390_emit_le_goto): New function.
8451 (s390_emit_gt_goto): New function.
8452 (s390_emit_ge_goto): New function.
8453 (s390x_emit_prologue): New function.
8454 (s390x_emit_epilogue): New function.
8455 (s390x_emit_add): New function.
8456 (s390x_emit_sub): New function.
8457 (s390x_emit_mul): New function.
8458 (s390x_emit_lsh): New function.
8459 (s390x_emit_rsh_signed): New function.
8460 (s390x_emit_rsh_unsigned): New function.
8461 (s390x_emit_ext): New function.
8462 (s390x_emit_log_not): New function.
8463 (s390x_emit_bit_and): New function.
8464 (s390x_emit_bit_or): New function.
8465 (s390x_emit_bit_xor): New function.
8466 (s390x_emit_bit_not): New function.
8467 (s390x_emit_equal): New function.
8468 (s390x_emit_less_signed): New function.
8469 (s390x_emit_less_unsigned): New function.
8470 (s390x_emit_ref): New function.
8471 (s390x_emit_if_goto): New function.
8472 (s390x_emit_const): New function.
8473 (s390x_emit_call): New function.
8474 (s390x_emit_reg): New function.
8475 (s390x_emit_pop): New function.
8476 (s390x_emit_stack_flush): New function.
8477 (s390x_emit_zero_ext): New function.
8478 (s390x_emit_swap): New function.
8479 (s390x_emit_stack_adjust): New function.
8480 (s390x_emit_int_call_1): New function.
8481 (s390x_emit_void_call_2): New function.
8482 (s390x_emit_eq_goto): New function.
8483 (s390x_emit_ne_goto): New function.
8484 (s390x_emit_lt_goto): New function.
8485 (s390x_emit_le_goto): New function.
8486 (s390x_emit_gt_goto): New function.
8487 (s390x_emit_ge_goto): New function.
8488 (s390_emit_ops): New function.
8489 (struct linux_target_ops): Fill in emit_ops hook.
8490
abd9baf9
MK
84912016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8492
8493 PR 18377
8494 * Makefile.in: Add s390 IPA files.
8495 * configure.srv: Build IPA for s390.
8496 * linux-s390-ipa.c: New file.
8497 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8498 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8499 (tdesc_s390_linux32): Likewise.
8500 (init_registers_s390_linux32v1): Likewise.
8501 (tdesc_s390_linux32v1): Likewise.
8502 (init_registers_s390_linux32v2): Likewise.
8503 (tdesc_s390_linux32v2): Likewise.
8504 (init_registers_s390_linux64): Likewise.
8505 (tdesc_s390_linux64): Likewise.
8506 (init_registers_s390_linux64v1): Likewise.
8507 (tdesc_s390_linux64v1): Likewise.
8508 (init_registers_s390_linux64v2): Likewise.
8509 (tdesc_s390_linux64v2): Likewise.
8510 (init_registers_s390_te_linux64): Likewise.
8511 (tdesc_s390_te_linux64): Likewise.
8512 (init_registers_s390_vx_linux64): Likewise.
8513 (tdesc_s390_vx_linux64): Likewise.
8514 (init_registers_s390_tevx_linux64): Likewise.
8515 (tdesc_s390_tevx_linux64): Likewise.
8516 (init_registers_s390x_linux64): Likewise.
8517 (tdesc_s390x_linux64): Likewise.
8518 (init_registers_s390x_linux64v1): Likewise.
8519 (tdesc_s390x_linux64v1): Likewise.
8520 (init_registers_s390x_linux64v2): Likewise.
8521 (tdesc_s390x_linux64v2): Likewise.
8522 (init_registers_s390x_te_linux64): Likewise.
8523 (tdesc_s390x_te_linux64): Likewise.
8524 (init_registers_s390x_vx_linux64): Likewise.
8525 (tdesc_s390x_vx_linux64): Likewise.
8526 (init_registers_s390x_tevx_linux64): Likewise.
8527 (tdesc_s390x_tevx_linux64): Likewise.
8528 (have_hwcap_s390_vx): New static variable.
8529 (s390_arch_setup): Fill have_hwcap_s390_vx.
8530 (s390_get_thread_area): New function.
8531 (s390_ft_entry_gpr_esa): New const.
8532 (s390_ft_entry_gpr_zarch): New const.
8533 (s390_ft_entry_misc): New const.
8534 (s390_ft_entry_fr): New const.
8535 (s390_ft_entry_vr): New const.
8536 (s390_ft_main_31): New const.
8537 (s390_ft_main_64): New const.
8538 (s390_ft_exit_fr): New const.
8539 (s390_ft_exit_vr): New const.
8540 (s390_ft_exit_misc): New const.
8541 (s390_ft_exit_gpr_esa): New const.
8542 (s390_ft_exit_gpr_zarch): New const.
8543 (append_insns): New function.
8544 (s390_relocate_instruction): New function.
8545 (s390_install_fast_tracepoint_jump_pad): New function.
8546 (s390_get_min_fast_tracepoint_insn_len): New function.
8547 (s390_get_ipa_tdesc_idx): New function.
8548 (struct linux_target_ops): Wire in the above functions.
8549 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8550 * linux-s390-tdesc.h: New file.
8551
a4105d04
MK
85522016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8553
8554 * linux-s390-low.c (s390_supports_tracepoints): New function.
8555 (struct linux_target_ops): Fill supports_tracepoints hook.
8556
35ac8b3e
YQ
85572016-03-18 Yao Qi <yao.qi@linaro.org>
8558
8559 * linux-low.c (lwp_signal_can_be_delivered): New function.
8560 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8561
94610ec4
YQ
85622016-03-18 Yao Qi <yao.qi@linaro.org>
8563
8564 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8565 0 if signal is enqueued. Remove 'signal' from one debugging
8566 message. Move one debugging message to some lines below.
8567 Remove code setting 'signal' to 0.
8568
80aea927
YQ
85692016-03-18 Yao Qi <yao.qi@linaro.org>
8570
8571 * linux-low.c (linux_low_filter_event): Remove redundant
8572 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8573
b04fd3be
MK
85742016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8575
8576 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8577 (struct linux_target_ops): Wire in the above.
8578
c40c8d4b
YQ
85792016-03-03 Yao Qi <yao.qi@linaro.org>
8580
8581 * linux-low.c: Update comments to start_step_over.
8582
0f8288ae
YQ
85832016-03-03 Yao Qi <yao.qi@linaro.org>
8584
8585 PR server/19736
8586 * linux-low.c (handle_extended_wait): Set child suspended
8587 if event_lwp->bp_reinsert isn't zero.
8588
fdbd04a8
YQ
85892016-03-02 Yao Qi <yao.qi@linaro.org>
8590
8591 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8592 enqueue_pending_signal.
8593
6896a8fa
MK
85942016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8595
8596 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8597 is actually loaded.
8598
ab503087
MK
85992016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8600
8601 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8602 (s390_regmap_3264) [!__s390x__]: New global.
8603 (s390_collect_ptrace_register): Skip map entries containing -1.
8604 (s390_supply_ptrace_register): Ditto.
8605 (s390_fill_gprs_high): New function.
8606 (s390_store_gprs_high): New function.
8607 (s390_regsets): Add NT_S390_HIGH_GPRS.
8608 (s390_get_hwcap): Enable on 31-bit.
8609 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8610 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8611 Detect NT_S390_HIGH_GPRS.
8612 (s390_usrregs_info_3264): Enable on 31-bit.
8613 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8614 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8615
ae91f625
MK
86162016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8617
8618 PR gdb/13808
8619 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8620 * configure.srv: Ditto.
8621 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8622 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8623 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8624 (init_registers_amd64_linux): Remove prototype.
8625 (tdesc_amd64_linux): Remove declaration.
8626 (get_ipa_tdesc): New function.
8627 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8628 initialize remaining tdescs.
8629 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8630 (init_registers_i386_linux): Remove prototype.
8631 (tdesc_i386_linux): Remove declaration.
8632 (get_ipa_tdesc): New function.
8633 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8634 initialize remaining tdescs.
8635 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8636 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8637 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8638 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8639 (x86_get_ipa_tdesc_idx): New function.
8640 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8641 * linux-x86-tdesc.h: New file.
8642 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8643 (target_get_ipa_tdesc_idx): New macro.
8644 * tracepoint.c (ipa_tdesc_idx): New macro.
8645 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8646 (symbol_list): Add ipa_tdesc_idx.
8647 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8648 (ipa_tdesc): Remove.
8649 (ipa_tdesc_idx): New variable.
8650 (get_context_regcache): Use get_ipa_tdesc.
8651 (gdb_collect): Ditto.
8652 (gdb_probe): Ditto.
8653 * tracepoint.h (get_ipa_tdesc): New prototype.
8654 (ipa_tdesc): Remove.
8655
e7ad2f14
PA
86562016-02-24 Pedro Alves <palves@redhat.com>
8657
8658 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8659 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8660 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8661 Factor out common code between the USE_SIGTRAP_SIGINFO and
8662 !USE_SIGTRAP_SIGINFO blocks.
8663 (linux_low_filter_event): Call save_stop_reason instead of
8664 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8665 Update comments.
8666 (linux_wait_1): Update comments.
8667
657f9cde
WW
86682016-02-24 Wei-cheng Wang <cole945@gmail.com>
8669
8670 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8671 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8672 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8673 ppc_insert_point, ppc_remove_point.
8674
b00b61e1
MK
86752016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8676
8677 * linux-s390-low.c (s390_supports_z_point_type): New function.
8678 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8679
553cb527
YQ
86802016-02-16 Yao Qi <yao.qi@linaro.org>
8681
8682 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8683 PC. Get pc from regcache_read_pc.
8684
a5652c21
YQ
86852016-02-12 Yao Qi <yao.qi@linaro.org>
8686
8687 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8688 or linux_get_pc_32bit.
8689 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8690
ed443b61
YQ
86912016-02-12 Yao Qi <yao.qi@linaro.org>
8692
8693 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8694 arm_linux_get_next_pcs_fixup.
8695
020ecd38
MK
86962016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8697
8698 * tracepoint.c (x_tracepoint_action_download): Change
8699 write_inferior_data_ptr to write_inferior_data_pointer.
8700 (cmd_qtstart): Likewise.
8701 (write_inferior_data_ptr): Remove.
8702 (download_agent_expr): Change write_inferior_data_ptr to
8703 write_inferior_data_pointer.
8704 (download_tracepoint_1): Likewise.
8705 (download_tracepoint): Likewise.
8706 (download_trace_state_variables): Likewise.
8707
7cae9051
WW
87082016-02-11 Wei-cheng Wang <cole945@gmail.com>
8709 Marcin Kościelnicki <koriakin@0x04.net>
8710
8711 * tracepoint.c (struct tracepoint_action_ops): Remove.
8712 (struct tracepoint_action): Remove ops.
8713 (m_tracepoint_action_download, r_tracepoint_action_download)
8714 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8715 size and offset accordingly.
8716 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8717 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8718 (tracepoint_action_send, tracepoint_action_download): New functions.
8719 Helpers for trace action handlers.
8720 (add_tracepoint_action): Remove setup actions ops.
8721 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8722
9f6a71b4
YQ
87232016-02-10 Yao Qi <yao.qi@linaro.org>
8724
8725 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8726
1e94266c
SM
87272016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8728
8729 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8730 to AC_OUTPUT.
8731 * configure: Regenerate.
8732
8adce034
SM
87332016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8734
8735 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8736 void * to gdb_byte *.
8737 * linux-low.c (siginfo_fixup): Likewise.
8738 (linux_xfer_siginfo): Likewise.
8739 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8740 Likewise.
8741 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8742
93813b37
WT
87432016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8744
8745 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8746 to srv_tgtobj.
8747 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8748 to srv_tgtobj.
8749 * linux-x86-low.c [__x86_64__]: Include
8750 "nat/amd64-linux-siginfo.h".
8751 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8752 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8753 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8754 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8755 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8756 (cpt_si_fd, si_timerid, si_overrun): Move from
8757 nat/amd64-linux-siginfo.c.
8758 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8759
8424cc97
SM
87602016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8761
8762 * server.c (skip_to_semicolon): Remove.
8763 (process_point_options): Use strchrnul instead of
8764 skip_to_semicolon.
8765
4d18591b
YQ
87662016-01-26 Yao Qi <yao.qi@linaro.org>
8767
8768 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8769 * linux-low.c (install_software_single_step_breakpoints): Don't
8770 call regcache_read_pc.
8771 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8772 argument pc.
8773
d8020970
YQ
87742016-01-26 Yao Qi <yao.qi@linaro.org>
8775
8776 * linux-low.c (install_software_single_step_breakpoints): Call
8777 regcache_read_pc instead of get_pc.
8778
8b207339
YQ
87792016-01-26 Yao Qi <yao.qi@linaro.org>
8780
8781 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8782 (unblock_async_io): Rename to ...
8783 (block_unblock_async_io): ... it. New function.
8784 (enable_async_io): Don't install SIGIO handler. Unblock it
8785 instead.
8786 (disable_async_io): Don't ignore SIGIO. Block it instead.
8787 (initialize_async_io): Install SIGIO handler. Don't call
8788 unblock_async_io.
8789
18879fef
YQ
87902016-01-26 Yao Qi <yao.qi@linaro.org>
8791
8792 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8793 first character is '\003', call *the_target->request_interrupt.
8794
a0f8e08a
YQ
87952016-01-25 Yao Qi <yao.qi@linaro.org>
8796
8797 * remote-utils.c (new_thread_notify): Remove.
8798 (dead_thread_notify): Likewise.
8799 * remote-utils.h (new_thread_notify): Remove declaration.
8800 (dead_thread_notify): Likewise.
8801
cc5fd9ab
MK
88022016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8803
8804 * gdb.trace/pending.exp: Fix expected message on continue.
8805
99e8eb11
MK
88062016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8807
8808 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8809 it works properly on big-endian machines where sizeof (CORE_ADDR)
8810 != sizeof (void *).
8811
a994041d
PA
88122016-01-21 Pedro Alves <palves@redhat.com>
8813
8814 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8815 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8816 * configure: Regenerate.
8817
f7a6a40d
YQ
88182016-01-21 Yao Qi <yao.qi@linaro.org>
8819
8820 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8821 is_thumb and set it according to CPSR saved on the stack.
8822 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8823 arm_sigreturn_next_pc.
8824
6f69e520
YQ
88252016-01-18 Yao Qi <yao.qi@linaro.org>
8826
8827 * linux-low.c (linux_set_pc_64bit): New function.
8828 (linux_get_pc_64bit): New function.
8829 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8830 Declare.
8831 * linux-sparc-low.c (debug_threads): Remove declaration.
8832 (sparc_get_pc): Remove.
8833 (the_low_target): Use linux_get_pc_64bit instead of
8834 sparc_get_pc.
8835 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8836 (the_low_target): Use linux_get_pc_64bit and
8837 linux_set_pc_64bit.
8838
276d4552
YQ
88392016-01-18 Yao Qi <yao.qi@linaro.org>
8840
8841 * linux-arm-low.c (debug_threads): Remove declaration.
8842 (arm_get_pc, arm_set_pc): Remove.
8843 (the_low_target): Use linux_get_pc_32bit and
8844 linux_set_pc_32bit.
8845 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8846 (the_low_target): Use linux_get_pc_32bit and
8847 linux_set_pc_32bit.
8848 * linux-cris-low.c (debug_threads): Remove declaration.
8849 (cris_get_pc, cris_set_pc,): Remove.
8850 (the_low_target): Use linux_get_pc_32bit and
8851 linux_set_pc_32bit.
8852 * linux-crisv32-low.c (debug_threads): Remove declaration.
8853 (cris_get_pc, cris_set_pc): Remove.
8854 (the_low_target): Use linux_get_pc_32bit and
8855 linux_set_pc_32bit.
8856 * linux-low.c: Include inttypes.h.
8857 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8858 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8859 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8860 (the_low_target): Use linux_get_pc_32bit and
8861 linux_set_pc_32bit.
8862 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8863 (the_low_target): Use linux_get_pc_32bit and
8864 linux_set_pc_32bit.
8865 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8866 (the_low_target): Use linux_get_pc_32bit and
8867 linux_set_pc_32bit.
8868 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8869 (the_low_target): Use linux_get_pc_32bit and
8870 linux_set_pc_32bit.
8871 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8872 (the_low_target): Use linux_get_pc_32bit and
8873 linux_set_pc_32bit.
8874
eb0edac8
GB
88752016-01-18 Gary Benson <gbenson@redhat.com>
8876
8877 * configure.ac (AC_FUNC_FORK): New check.
8878 * config.in: Regenerate.
8879 * configure: Likewise.
8880
1b451dda
YQ
88812016-01-14 Yao Qi <yao.qi@linaro.org>
8882
8883 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8884 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8885 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8886 arm_get_next_pcs_ctor.
8887
82075af2
JS
88882016-01-12 Josh Stone <jistone@redhat.com>
8889 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8890
8891 * inferiors.h: Include "gdb_vecs.h".
8892 (struct process_info): Add syscalls_to_catch.
8893 * inferiors.c (remove_process): Free syscalls_to_catch.
8894 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8895 syscall_return stops.
8896 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8897 * server.c (handle_general_set): Handle QCatchSyscalls.
8898 (handle_query): Report support for QCatchSyscalls.
8899 * target.h (struct target_ops): Add supports_catch_syscall.
8900 (target_supports_catch_syscall): New macro.
8901 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8902 (struct lwp_info): Add syscall_state.
8903 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8904 Maintain syscall_state and syscalls_to_catch across exec.
8905 (get_syscall_trapinfo): New function, proxy to the_low_target.
8906 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8907 (linux_low_filter_event): Toggle syscall_state entry/return for
8908 syscall traps, and set it ignored for all others.
8909 (gdb_catching_syscalls_p): New function.
8910 (gdb_catch_this_syscall_p): New function.
8911 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8912 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8913 (linux_supports_catch_syscall): New function.
8914 (linux_target_ops): Install it.
8915 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8916 (the_low_target): Install it.
8917
8f13a3ce
MF
89182016-01-12 Mike Frysinger <vapier@gentoo.org>
8919
8920 * acinclude.m4: Include new ../warning.m4 file.
8921 * configure: Regenerated.
8922 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8923
5b3da067
MF
89242016-01-12 Mike Frysinger <vapier@gentoo.org>
8925
8926 * ax.c (is_goto_target): Mark static.
8927 * linux-low.c (register_addr): Likewise.
8928 (linux_fetch_registers, linux_store_registers): Likewise.
8929 * mem-break.c (any_persistent_commands): Fix old prototype.
8930 (add_commands_to_breakpoint): Mark static.
8931 * regcache.c (find_register_by_name): Delete unused func.
8932 * remote-utils.c (hex_or_minus_one): Mark static.
8933 * server.c (monitor_show_help): Mark static.
8934 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8935 handle_v_requests): Likewise.
8936
bc504a31
PA
89372016-01-12 Pedro Alves <palves@redhat.com>
8938
8939 Remove use of the registered trademark symbol throughout.
8940
5a0dd67a
YQ
89412016-01-08 Yao Qi <yao.qi@linaro.org>
8942
8943 * remote-utils.c (getpkt): If c is '\003', call target hook
8944 request_interrupt.
8945
b2ca446f
YQ
89462016-01-06 Yao Qi <yao.qi@linaro.org>
8947
8948 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8949 linux-aarch32-low.c.
8950 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8951 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8952 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8953 (thumb2_breakpoint): Declare.
8954 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8955 linux-aarch32-low.h.
8956 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8957 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8958 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8959
edd88788
JB
89602016-01-01 Joel Brobecker <brobecker@adacore.com>
8961
8962 * gdbreplay.c (gdbreplay_version): Change copyright year in
8963 version message.
8964 * server.c (gdbserver_version): Likewise.
8965
65da7f14
PP
89662015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8967
8968 * server.c (crc32_table): Delete.
8969 (crc32): Use libiberty's xcrc32 function.
8970
4abd5ed2
JB
89712015-12-22 Joel Brobecker <brobecker@adacore.com>
8972
8973 * lynx-low.c (lynx_delete_thread_callback): New function.
8974 (lynx_mourn): Properly delete our process and all of its
8975 threads. Remove call to clear_inferiors.
8976
0e50fe5c
JB
89772015-12-22 Joel Brobecker <brobecker@adacore.com>
8978
8979 * target.c (thread_search_callback): Add check that
8980 the thread_stopped target callback is not NULL before
8981 calling it.
8982
35adc03f
YQ
89832015-12-21 Yao Qi <yao.qi@linaro.org>
8984
8985 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8986 arm breakpoint.
8987
bd2b2909
AT
89882015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8989
8990 * server.c (handle_query): Call target_supports_software_single_step.
8991
7fe5e27e
AT
89922015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8993
8994 * linux-low.c (single_step): New function.
8995 (linux_resume_one_lwp_throw): Call single_step.
8996 (start_step_over): Likewise.
8997
d9311bfa
AT
89982015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8999
9000 * Makefile.in (SFILES): Append arch/arm-linux.c,
9001 arch/arm-get-next-pcs.c.
9002 (arm-linux.o): New rule.
9003 (arm-get-next-pcs.o): New rule.
9004 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9005 arm-linux.o.
9006 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9007 to linux-aarch32-low.c.
9008 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9009 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9010 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9011 (thumb2_breakpoint_len): Likewise.
9012 (arm_is_thumb_mode): Make non-static.
9013 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9014 from linux-aarch32-low.c.
9015 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9016 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9017 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9018 (thumb2_breakpoint_len): Likewise.
9019 (arm_is_thumb_mode): New declaration.
9020 * linux-arm-low.c: Include arch/arm-linux.h
9021 aarch/arm-get-next-pcs.h, sys/syscall.h.
9022 (get_next_pcs_ops): New struct.
9023 (get_next_pcs_addr_bits_remove): New function.
9024 (get_next_pcs_is_thumb): New function.
9025 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9026 (arm_sigreturn_next_pc): Likewise.
9027 (get_next_pcs_syscall_next_pc): Likewise.
9028 (arm_gdbserver_get_next_pcs): Likewise.
9029 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9030 Initialize.
9031 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9032 * server.h: Include gdb_vecs.h.
9033
68ce2059
AT
90342015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9035
9036 * Makefile.in (SFILES): Append common/common-regcache.c.
9037 (OBS): Append common-regcache.o.
9038 (common-regcache.o): New rule.
9039 * regcache.c (init_register_cache): Initialize cache to
9040 REG_UNAVAILABLE.
9041 (regcache_raw_read_unsigned): New function.
9042 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9043 register_status enum.
9044
fa5308bd
AT
90452015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9046
9047 * linux-aarch64-low.c (the_low_targets): Rename
9048 breakpoint_reinsert_addr to get_next_pcs.
9049 * linux-arm-low.c (the_low_targets): Likewise.
9050 * linux-bfin-low.c (the_low_targets): Likewise.
9051 * linux-cris-low.c (the_low_targets): Likewise.
9052 * linux-crisv32-low.c (the_low_targets): Likewise.
9053 * linux-low.c (can_software_single_step): Likewise.
9054 (install_software_single_step_breakpoints): New function.
9055 (start_step_over): Use install_software_single_step_breakpoints.
9056 * linux-low.h: New CORE_ADDR vector.
9057 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9058 get_next_pcs.
9059 * linux-mips-low.c (the_low_targets): Likewise.
9060 * linux-nios2-low.c (the_low_targets): Likewise.
9061 * linux-sparc-low.c (the_low_targets): Likewise.
9062
4a6ed09b
PA
90632015-12-17 Pedro Alves <palves@redhat.com>
9064
9065 * linux-low.c (linux_kill_one_lwp): Remove references to
9066 LinuxThreads.
9067 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9068 to 'kill'.
9069 (linux_init_signals): Delete.
9070 (initialize_low): Adjust.
9071 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9072
7544db95
PA
90732015-12-16 Pedro Alves <palves@redhat.com>
9074
9075 * configure.ac (compiler warning flags): When testing a
9076 -Wno-foo option, check whether -Wfoo works instead.
9077 * configure: Regenerate.
9078
8020350c
DB
90792015-12-11 Don Breazeal <donb@codesourcery.com>
9080
9081 * server.c (process_serial_event): Don't exit from gdbserver
9082 in remote mode if there are still active inferiors.
9083
db91f502
YQ
90842015-12-11 Yao Qi <yao.qi@linaro.org>
9085
9086 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9087 arm_breakpoint_at if the process is 32-bit.
9088
b37a6290
YQ
90892015-12-11 Yao Qi <yao.qi@linaro.org>
9090
9091 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9092 arm breakpoint.
9093
17b1509a
YQ
90942015-12-07 Yao Qi <yao.qi@linaro.org>
9095
9096 * configure.srv: Append arm.o to srv_tgtobj for
9097 aarch64*-*-linux* target.
9098 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9099 from linux-arm-low.c.
9100 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9101 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9102 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9103 (thumb2_breakpoint_len): Likewise.
9104 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9105 (arm_breakpoint_kinds): Likewise.
9106 (arm_breakpoint_kind_from_pc): Likewise.
9107 (arm_sw_breakpoint_from_kind): Likewise.
9108 (arm_breakpoint_kind_from_current_state): Likewise.
9109 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9110 (arm_sw_breakpoint_from_kind): Declare.
9111 (arm_breakpoint_kind_from_current_state): Declare.
9112 (arm_breakpoint_at): Declare.
9113 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9114 arm_sw_breakpoint_from_kind if process is 32-bit.
9115 (aarch64_breakpoint_kind_from_pc): New function.
9116 (aarch64_breakpoint_kind_from_current_state): New function.
9117 (the_low_target): Initialize fields breakpoint_kind_from_pc
9118 and breakpoint_kind_from_current_state.
9119 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9120 linux-aarch32-low.c.
9121 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9122 (arm_breakpoint, arm_breakpoint_len): Likewise.
9123 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9124 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9125 (arm_is_thumb_mode): Likewise.
9126 (arm_breakpoint_at): Likewise.
9127 (arm_breakpoint_kind_from_pc): Likewise.
9128 (arm_sw_breakpoint_from_kind): Likewise.
9129 (arm_breakpoint_kind_from_current_state): Likewise.
9130
9131 Revert:
9132 2015-08-04 Yao Qi <yao.qi@linaro.org>
9133
9134 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9135 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9136 * server.c (extended_protocol): Remove "static".
9137 * server.h (extended_protocol): Declare it.
9138
ece66d65
JS
91392015-12-04 Josh Stone <jistone@redhat.com>
9140
9141 * target.h (struct target_ops) <arch_setup>: Rename to ...
9142 (struct target_ops) <post_create_inferior>: ... this.
9143 (target_arch_setup): Rename to ...
9144 (target_post_create_inferior): ... this, calling post_create_inferior.
9145 * server.c (start_inferior): Update target_arch_setup calls to
9146 target_post_create_inferior.
9147 * linux-low.c (linux_low_ptrace_options): Forward declare.
9148 (linux_arch_setup): Update its comment for general use.
9149 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9150 (struct linux_target_ops): Use linux_post_create_inferior.
9151 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9152 to post_create_inferior.
9153 * nto-low.c (struct nto_target_ops): Likewise.
9154 * spu-low.c (struct spu_target_ops): Likewise.
9155 * win32-low.c (struct win32_target_ops): Likewise.
9156
e58c48b4
AT
91572015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9158
9159 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9160
fbec8956
AT
91612015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9162
9163 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9164 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9165 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9166 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9167 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9168 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9169 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9170 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9171 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9172 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9173 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9174 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9175
9b4c5f87
AT
91762015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9177
9178 * linux-low.c (linux_look_up_symbols): Don't call
9179 linux_supports_traceclone.
9180 * linux-low.h (thread_db_init): Remove use_events argument.
9181 * thread-db.c (thread_db_use_event): Remove global variable.
9182 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9183 (struct thread_db) <td_create_bp>: Remove field.
9184 (thread_db_create_event): Remove function.
9185 (thread_db_enable_reporting): Likewise.
9186 (find_one_thread): Don't check for thread_db_use_events.
9187 (attach_thread): Likewise.
9188 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9189 (try_thread_db_load_1): Don't check for thread_db_use_events.
9190 (thread_db_init): Remove use_events argument and thread events
9191 handling.
9192 (remove_thread_event_breakpoints): Remove function.
9193 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9194
7d00775e
AT
91952015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9196
9197 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9198 New function.
9199 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9200 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9201 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9202 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9203 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9204 Initialize.
9205 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9206 New function.
9207 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9208 * linux-low.c (can_hardware_single_step): Use
9209 supports_hardware_single_step.
9210 (can_software_single_step): New function.
9211 (start_step_over): Call can_software_single_step.
9212 (linux_supports_hardware_single_step): New function.
9213 (struct target_ops) <supports_software_single_step>: Initialize.
9214 * linux-low.h (struct linux_target_ops)
9215 <supports_hardware_single_step>: Initialize.
9216 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9217 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9218 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9219 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9220 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9221 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9222 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9223 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9224 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9225 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9226 Initialize.
9227 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9228 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9229 Initialize.
9230 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9231 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9232 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9233 New function.
9234 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9235 * target.h (struct target_ops): <supports_software_single_step>:
9236 New field.
9237 (target_supports_software_single_step): New macro.
9238
2d97cd35
AT
92392015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9240
9241 * linux-low.c (linux_wait_1): Fix pc advance condition.
9242 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9243 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9244
769ef81f
AT
92452015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9246
9247 * linux-arm-low.c (arm_is_thumb_mode): New function.
9248 (arm_breakpoint_at): Use arm_is_thumb_mode.
9249 (arm_breakpoint_kind_from_current_state): New function.
9250 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9251 Initialize.
9252 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9253 (linux_breakpoint_kind_from_current_state): New function.
9254 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9255 * linux-low.h (struct linux_target_ops)
9256 <breakpoint_kind_from_current_state>: New field.
9257 * target.h (struct target_ops): Likewise.
9258 (target_breakpoint_kind_from_current_state): New macro.
9259
1bebeeca
PA
92602015-11-30 Pedro Alves <palves@redhat.com>
9261
9262 * linux-low.c (linux_resume): Wake up the event loop before
9263 returning.
9264
a67a9fae
PA
92652015-11-30 Pedro Alves <palves@redhat.com>
9266
9267 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9268 check.
9269 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9270 to -1.
9271 * target.c (struct thread_search): New structure.
9272 (thread_search_callback): New function.
9273 (prev_general_thread): New global.
9274 (prepare_to_access_memory, done_accessing_memory): New functions.
9275 * target.h (prepare_to_access_memory, done_accessing_memory):
9276 Replace macros with function declarations.
9277
f2faf941
PA
92782015-11-30 Pedro Alves <palves@redhat.com>
9279
9280 PR 14618
9281 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9282 report TARGET_WAITKIND_NO_RESUMED.
9283 * remote-utils.c (prepare_resume_reply): Handle
9284 TARGET_WAITKIND_NO_RESUMED.
9285 * server.c (report_no_resumed): New global.
9286 (handle_query) <qSupported>: Handle "no-resumed+". Report
9287 "no-resumed+" support.
9288 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9289 return error if the client doesn't support no-resumed events.
9290 (push_stop_notification): New function.
9291 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9292 events if the client supports them.
9293
a681f9c9
PA
92942015-11-30 Pedro Alves <palves@redhat.com>
9295
9296 * linux-low.c (thread_still_has_status_pending_p): Don't check
9297 vCont;t here.
9298 (lwp_resumed): New function.
9299 (status_pending_p_callback): Return early if the LWP is not
9300 supposed to be resumed.
9301
65706a29
PA
93022015-11-30 Pedro Alves <palves@redhat.com>
9303
9304 * linux-low.c (handle_extended_wait): Assert that the LWP's
9305 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9306 thread create events, leave the new child's status pending.
9307 (linux_low_filter_event): If GDB wants to hear about thread exit
9308 events, leave the LWP marked dead and don't delete it.
9309 (linux_wait_for_event_filtered): Don't check for thread exit.
9310 (filter_exit_event): New function.
9311 (linux_wait_1): Use it, when returning an exit event.
9312 (linux_resume_one_lwp_throw): Assert that the LWP's
9313 waitstatus is TARGET_WAITKIND_IGNORE.
9314 * remote-utils.c (prepare_resume_reply): Handle
9315 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9316 * server.c (report_thread_events): New global.
9317 (handle_general_set): Handle QThreadEvents.
9318 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9319 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9320 TARGET_WAITKIND_THREAD_EXITED.
9321 * server.h (report_thread_events): Declare.
9322
56cf4bed
PA
93232015-11-30 Pedro Alves <palves@redhat.com>
9324
9325 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9326 the thread's last_resume_kind was resume_stop.
9327
500c1d85
PA
93282015-11-30 Pedro Alves <palves@redhat.com>
9329
9330 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9331 before returning.
9332
de979965
PA
93332015-11-30 Pedro Alves <palves@redhat.com>
9334
9335 * server.c (handle_v_requests): Handle vCtrlC.
9336
34c65914
PA
93372015-11-30 Pedro Alves <palves@redhat.com>
9338
9339 * gdbthread.h (find_any_thread_of_pid): Declare.
9340 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9341 functions.
9342 * server.c (handle_query): If current_thread is NULL, look for
9343 another thread of the selected process.
9344
79efa585 93452015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9346 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9347
9348 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9349 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9350 name in reply.
9351 * target.h (struct target_ops) <thread_name>: New field.
9352 (target_thread_name): New macro.
9353
80d82c19
JB
93542015-11-23 Joel Brobecker <brobecker@adacore.com>
9355
9356 * regcache.h (regcache_invalidate_pid): Add declaration.
9357 * regcache.c (regcache_invalidate_pid): New function, extracted
9358 from regcache_invalidate.
9359 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9360 Add trivial documentation comment.
9361 * lynx-low.c: Use regcache_invalidate_pid instead of
9362 regcache_invalidate.
9363
64da5dd5
JB
93642015-11-23 Joel Brobecker <brobecker@adacore.com>
9365
9366 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9367 and Elf64_auxv_t if the target is Android.
9368
37ce4055
DE
93692015-11-22 Doug Evans <xdje42@gmail.com>
9370
9371 * target.h: #include <sys/types.h>.
9372
06e03fff
PA
93732015-11-19 Pedro Alves <palves@redhat.com>
9374
9375 * linux-low.c (linux_process_qsupported): Change prototype.
9376 Adjust.
9377 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9378 Change prototype.
9379 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9380 and adjust to loop over all features.
9381 * server.c (handle_query) <qSupported>: Adjust to call
9382 target_process_qsupported once, passing it a vector of unprocessed
9383 features.
9384 * target.h (struct target_ops) <process_qsupported>: Change
9385 prototype.
9386 (target_process_qsupported): Adjust.
9387
9a084706
PA
93882015-11-19 Pedro Alves <palves@redhat.com>
9389
9390 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9391 mode.
9392 * configure: Regenerate.
9393
dad44a1f
PA
93942015-11-19 Pedro Alves <palves@redhat.com>
9395
9396 * configure: Regenerate.
9397
231c0592
YQ
93982015-11-19 Yao Qi <yao.qi@linaro.org>
9399
9400 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9401 type to uint32_t.
9402
6c1c9a8b
YQ
94032015-11-19 Yao Qi <yao.qi@linaro.org>
9404
9405 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9406 (struct aarch64_operand): Move enum out.
9407
9caa3311
YQ
94082015-11-19 Yao Qi <yao.qi@linaro.org>
9409
9410 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9411 struct user_fpsimd_state *.
9412 (aarch64_store_fpregset): Likewise.
9413
6a69a054
YQ
94142015-11-19 Yao Qi <yao.qi@linaro.org>
9415
9416 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9417 struct user_pt_regs *.
9418 (aarch64_store_gregset): Likewise.
9419
1798301e
PA
94202015-11-18 Pedro Alves <palves@redhat.com>
9421
9422 * Makefile.in (all_object_files): Add $IPA_OBJS.
9423
ce7715e2
PA
94242015-11-17 Pedro Alves <palves@redhat.com>
9425
9426 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9427 GDB_SIGNAL_0 and gdb_signal_to_string.
9428
c0879059
PA
94292015-11-17 Pedro Alves <palves@redhat.com>
9430
9431 * win32-low.c (handle_output_debug_string): Remove parameter.
9432 (win32_kill): Remove our_status local and adjust call to
9433 handle_output_debug_string.
9434 (get_child_debug_event): Adjust call to
9435 handle_output_debug_string.
9436
1996e237
SM
94372015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9438
9439 * linux-mips-low.c (mips_fill_gregset): Add cast.
9440 (mips_store_gregset): Likewise.
9441 (mips_fill_fpregset): Likewise.
9442 (mips_store_fpregset): Likewise.
9443
cbec665b
SM
94442015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9445
9446 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9447 priv.
9448
eb3e3c67
SM
94492015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9450
9451 * linux-mips-low.c (mips_linux_new_thread): Change type of
9452 watch_type to enum target_hw_bp_type.
9453
171de4b8
SM
94542015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9455
9456 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9457 Change return type to arm_hwbp_type.
9458
04248ead
SM
94592015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9460
9461 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9462 (arm_store_gregset): Likewise.
9463 * linux-arm-low.c (arm_get_hwcap): Likewise.
9464 (arm_read_description): Likewise.
9465
04b3479c
SM
94662015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9467
9468 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9469
2bc84e8a
SM
94702015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9471
9472 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9473 (ppc_fill_vsxregset): Likewise.
9474 (ppc_store_vsxregset): Likewise.
9475 (ppc_fill_vrregset): Likewise.
9476 (ppc_store_vrregset): Likewise.
9477 (ppc_fill_evrregset): Likewise.
9478 (ppc_store_evrregset): Likewise.
9479
e6c5bb05
SM
94802015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9481
9482 * linux-ppc-low.c (ppc_usrregs_info): Remove
9483 forward-declaration.
9484 (ppc_arch_setup): Move lower in file.
9485
7ea45d72
SM
94862015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9487
9488 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9489 (ps_pdwrite): Likewise.
9490
69291610
HW
94912015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9492
9493 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9494 to after assert checks.
9495
b42945fd
SM
94962015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9497
9498 * proc-service.c (ps_pdread): Add/adjust casts.
9499 (ps_pdwrite): Add/adjust casts.
9500
d6f85c84
SM
95012015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9502
9503 * server.c (handle_search_memory_1): Cast return value of
9504 memmem.
9505
f98cd059
SM
95062015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9507
9508 * server.c (write_qxfer_response): Change type of data to
9509 gdb_byte *.
9510
d2412fa5
PA
95112015-10-29 Pedro Alves <palves@redhat.com>
9512
9513 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9514
c17414a2
PA
95152015-10-29 Pedro Alves <palves@redhat.com>
9516
9517 * tracepoint.c (clear_installed_tracepoints): Add casts.
9518
e053fbc4
PA
95192015-10-29 Pedro Alves <palves@redhat.com>
9520
9521 * server.c (handle_v_cont, process_serial_event): Add enum
9522 gdb_signal casts to signal parsing code.
9523
add67df8
PA
95242015-10-29 Pedro Alves <palves@redhat.com>
9525
9526 * linux-low.h (NULL_REGSET): Define.
9527 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9528 * linux-arm-low.c (arm_regsets): Likewise.
9529 * linux-crisv32-low.c (cris_regsets): Likewise.
9530 * linux-m68k-low.c (m68k_regsets): Likewise.
9531 * linux-mips-low.c (mips_regsets): Likewise.
9532 * linux-nios2-low.c (nios2_regsets): Likewise.
9533 * linux-ppc-low.c (ppc_regsets): Likewise.
9534 * linux-s390-low.c (s390_regsets): Likewise.
9535 * linux-sh-low.c (sh_regsets): Likewise.
9536 * linux-sparc-low.c (sparc_regsets): Likewise.
9537 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9538 * linux-tile-low.c (tile_regsets): Likewise.
9539 * linux-x86-low.c (x86_regsets): Likewise.
9540 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9541
50bc912a
PA
95422015-10-29 Pedro Alves <palves@redhat.com>
9543
9544 * linux-low.h (NULL_REGSET): Define.
9545 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9546 * linux-arm-low.c (arm_regsets): Likewise.
9547 * linux-crisv32-low.c (cris_regsets): Likewise.
9548 * linux-m68k-low.c (m68k_regsets): Likewise.
9549 * linux-mips-low.c (mips_regsets): Likewise.
9550 * linux-nios2-low.c (nios2_regsets): Likewise.
9551 * linux-ppc-low.c (ppc_regsets): Likewise.
9552 * linux-s390-low.c (s390_regsets): Likewise.
9553 * linux-sh-low.c (sh_regsets): Likewise.
9554 * linux-sparc-low.c (sparc_regsets): Likewise.
9555 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9556 * linux-tile-low.c (tile_regsets): Likewise.
9557 * linux-x86-low.c (x86_regsets): Likewise.
9558 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9559
682b2546
DE
95602015-10-26 Doug Evans <dje@google.com>
9561
9562 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9563
963843d4
DE
95642015-10-26 Doug Evans <dje@google.com>
9565
9566 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9567
d41401ac
DE
95682015-10-26 Doug Evans <dje@google.com>
9569
9570 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9571 for debug_printf.
9572 (attach_thread, find_new_threads_callback): Ditto.
9573
3db28855
AT
95742015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9575
9576 * mem-break.h (set_breakpoint_data): Remove.
9577
fb78e89c
AT
95782015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9579
9580 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9581 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9582 (initialize_low): Remove set_breakpoint_data call.
9583 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9584 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9585 (initialize_low): Remove set_breakpoint_data call.
9586 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9587 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9588 (initialize_low): Remove set_breakpoint_data call.
9589
2e6ee069
AT
95902015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9591
9592 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9593 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9594 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9595 * target.h (target_breakpoint_kind_from_pc): New macro.
9596
1652a986
AT
95972015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9598
9599 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9600 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9601 the default breakpoint kind.
9602
abeead09
AT
96032015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9604
9605 * linux-arm-low.c (arm_supports_z_point_type): Add software
9606 breakpoint support.
9607
b0b4b501
AT
96082015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9609
9610 * linux-arm-low.c: Refactor breakpoint definitions.
9611 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9612 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9613
8689682c
AT
96142015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9615
9616 * Makefile.in: Add arm.c/o.
9617 * configure.srv: Likewise.
9618 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9619 (arm_breakpoint_kind_from_pc): New function.
9620 (arm_sw_breakpoint_from_kind): Return proper kind.
9621 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9622
27165294
AT
96232015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9624
9625 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9626 removal.
9627 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9628 (struct raw_breakpoint) <size>: Remove.
9629 (struct raw_breakpoint) <kind>: Add.
9630 (bp_size): New function.
9631 (bp_opcode): Likewise.
9632 (find_raw_breakpoint_at): Adjust for kind.
9633 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9634 (remove_memory_breakpoint): Adjust for kind call bp_size.
9635 (set_raw_breakpoint_at): Adjust for kind.
9636 (set_breakpoint): Likewise.
9637 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9638 (delete_raw_breakpoint): Adjust for kind.
9639 (delete_breakpoint): Likewise.
9640 (find_gdb_breakpoint): Likewise.
9641 (set_gdb_breakpoint_1): Likewise.
9642 (set_gdb_breakpoint): Likewise.
9643 (delete_gdb_breakpoint_1): Likewise.
9644 (delete_gdb_breakpoint): Likewise.
9645 (uninsert_raw_breakpoint): Likewise.
9646 (reinsert_raw_breakpoint): Likewise.
9647 (set_breakpoint_data): Remove.
9648 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9649 (check_mem_read): Adjust for kind call bp_size.
9650 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9651 (clone_one_breakpoint): Adjust for kind.
9652 * mem-break.h (set_gdb_breakpoint): Likewise.
9653 (delete_gdb_breakpoint): Likewise.
9654 * server.c (process_serial_event): Likewise.
9655
dd373349
AT
96562015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9657
9658 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9659 (struct linux_target_ops) <breakpoint>: Remove.
9660 (struct linux_target_ops) <breakpoint_len>: Remove.
9661 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9662 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9663 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9664 (arm_sw_breakpoint_from_kind): New function.
9665 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9666 (struct linux_target_ops) <breakpoint>: Remove.
9667 (struct linux_target_ops) <breakpoint_len>: Remove.
9668 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9669 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9670 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9671 (struct linux_target_ops) <breakpoint>: Remove.
9672 (struct linux_target_ops) <breakpoint_len>: Remove.
9673 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9674 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9675 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9676 (struct linux_target_ops) <breakpoint>: Remove.
9677 (struct linux_target_ops) <breakpoint_len>: Remove.
9678 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9679 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9680 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9681 and sw_breakpoint_from_kind to increment the pc.
9682 (linux_breakpoint_kind_from_pc): New function.
9683 (linux_sw_breakpoint_from_kind): New function.
9684 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9685 (initialize_low): Call breakpoint_kind_from_pc and
9686 sw_breakpoint_from_kind to replace breakpoint_data/len.
9687 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9688 New field.
9689 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9690 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9691 (struct linux_target_ops) <breakpoint>: Remove.
9692 (struct linux_target_ops) <breakpoint_len>: Remove.
9693 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9694 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9695 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9696 (struct linux_target_ops) <breakpoint>: Remove.
9697 (struct linux_target_ops) <breakpoint_len>: Remove.
9698 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9699 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9700 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9701 (struct linux_target_ops) <breakpoint>: Remove.
9702 (struct linux_target_ops) <breakpoint_len>: Remove.
9703 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9704 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9705 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9706 (struct linux_target_ops) <breakpoint>: Remove.
9707 (struct linux_target_ops) <breakpoint_len>: Remove.
9708 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9709 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9710 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9711 (struct linux_target_ops) <breakpoint>: Remove.
9712 (struct linux_target_ops) <breakpoint_len>: Remove.
9713 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9714 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9715 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9716 (struct linux_target_ops) <breakpoint>: Remove.
9717 (struct linux_target_ops) <breakpoint_len>: Remove.
9718 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9719 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9720 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9721 (struct linux_target_ops) <breakpoint>: Remove.
9722 (struct linux_target_ops) <breakpoint_len>: Remove.
9723 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9724 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9725 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9726 (struct linux_target_ops) <breakpoint>: Remove.
9727 (struct linux_target_ops) <breakpoint_len>: Remove.
9728 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9729 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9730 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9731 (struct linux_target_ops) <breakpoint>: Remove.
9732 (struct linux_target_ops) <breakpoint_len>: Remove.
9733 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9734 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9735 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9736 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9737 (struct linux_target_ops) <breakpoint>: Remove.
9738 (struct linux_target_ops) <breakpoint_len>: Remove.
9739 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9740 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9741 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9742 (struct linux_target_ops) <breakpoint>: Remove.
9743 (struct linux_target_ops) <breakpoint_len>: Remove.
9744 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9745 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9746
4cd98a19
AT
97472015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9748
9749 * linux-cris-low.c (cris_get_pc): Remove void arg.
9750
774ee6d2
AR
97512015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9752
9753 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9754 variable name.
9755
833dcd29
AR
97562015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9757
9758 * inferiors.c (thread_pid_matches_callback): New function.
9759 (find_thread_process): New function.
9760 (remove_thread): Reset current_thread.
9761 (remove_process): Assert threads have been removed first.
9762
8d689ee5
YQ
97632015-10-15 Yao Qi <yao.qi@linaro.org>
9764
9765 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9766 if it is 3.
9767 (aarch64_remove_point): Likewise.
9768 * regcache.c (regcache_register_size): New function.
9769
1c2e1515
YQ
97702015-10-12 Yao Qi <yao.qi@linaro.org>
9771
9772 * linux-aarch64-low.c: Update all callers as emit_load_store
9773 is renamed to aarch64_emit_load_store.
9774
e1c587c3
YQ
97752015-10-12 Yao Qi <yao.qi@linaro.org>
9776
9777 * linux-aarch64-low.c: Update all callers of function renaming
9778 from emit_insn to aarch64_emit_insn.
9779
b6542f81
YQ
97802015-10-12 Yao Qi <yao.qi@linaro.org>
9781
9782 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9783 arch/aarch64-insn.h.
9784 (struct aarch64_memory_operand): Likewise.
9785 (ENCODE): Likewise.
9786 (emit_insn): Move to arch/aarch64-insn.c.
9787 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9788 (emit_load_store): Move to arch/aarch64-insn.c.
9789 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9790 (can_encode_int32): Remove.
9791
246994ce
YQ
97922015-10-12 Yao Qi <yao.qi@linaro.org>
9793
9794 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9795 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9796 (aarch64_relocate_instruction): Likewise.
9797 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9798 (struct aarch64_insn_visitor): Likewise.
9799
0badd99f
YQ
98002015-10-12 Yao Qi <yao.qi@linaro.org>
9801
9802 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9803 (struct aarch64_insn_visitor): New.
9804 (struct aarch64_insn_relocation_data): New.
9805 (aarch64_ftrace_insn_reloc_b): New function.
9806 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9807 (aarch64_ftrace_insn_reloc_cb): Likewise.
9808 (aarch64_ftrace_insn_reloc_tb): Likewise.
9809 (aarch64_ftrace_insn_reloc_adr): Likewise.
9810 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9811 (aarch64_ftrace_insn_reloc_others): Likewise.
9812 (visitor): New.
9813 (aarch64_relocate_instruction): Use visitor.
9814
dfaffe9d
YQ
98152015-10-12 Yao Qi <yao.qi@linaro.org>
9816
9817 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9818 int. Add argument buf.
9819 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9820 aarch64_relocate_instruction.
9821
70b439f0
YQ
98222015-10-12 Yao Qi <yao.qi@linaro.org>
9823
9824 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9825 argument insn. Remove local variable insn. Don't call
9826 target_read_uint32.
9827 (aarch64_install_fast_tracepoint_jump_pad): Call
9828 target_read_uint32.
9829
7781c06f
YQ
98302015-09-30 Yao Qi <yao.qi@linaro.org>
9831
9832 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9833 (emit_load_store_pair): Likewise.
9834
9a3c8263
SM
98352015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9836
9837 * dll.c (match_dll): Add cast(s).
9838 (unloaded_dll): Likewise.
9839 * linux-low.c (second_thread_of_pid_p): Likewise.
9840 (delete_lwp_callback): Likewise.
9841 (count_events_callback): Likewise.
9842 (select_event_lwp_callback): Likewise.
9843 (linux_set_resume_request): Likewise.
9844 * server.c (accumulate_file_name_length): Likewise.
9845 (emit_dll_description): Likewise.
9846 (handle_qxfer_threads_worker): Likewise.
9847 (visit_actioned_threads): Likewise.
9848 * thread-db.c (any_thread_of): Likewise.
9849 * tracepoint.c (same_process_p): Likewise.
9850 (match_blocktype): Likewise.
9851 (build_traceframe_info_xml): Likewise.
9852
224c3ddb
SM
98532015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9854
9855 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9856 assignment.
9857 (gdb_unparse_agent_expr): Likewise.
9858 * hostio.c (require_data): Likewise.
9859 (handle_pread): Likewise.
9860 * linux-low.c (disable_regset): Likewise.
9861 (fetch_register): Likewise.
9862 (store_register): Likewise.
9863 (get_dynamic): Likewise.
9864 (linux_qxfer_libraries_svr4): Likewise.
9865 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9866 (set_fast_tracepoint_jump): Likewise.
9867 (uninsert_fast_tracepoint_jumps_at): Likewise.
9868 (reinsert_fast_tracepoint_jumps_at): Likewise.
9869 (validate_inserted_breakpoint): Likewise.
9870 (clone_agent_expr): Likewise.
9871 * regcache.c (init_register_cache): Likewise.
9872 * remote-utils.c (putpkt_binary_1): Likewise.
9873 (decode_M_packet): Likewise.
9874 (decode_X_packet): Likewise.
9875 (look_up_one_symbol): Likewise.
9876 (relocate_instruction): Likewise.
9877 (monitor_output): Likewise.
9878 * server.c (handle_search_memory): Likewise.
9879 (handle_qxfer_exec_file): Likewise.
9880 (handle_qxfer_libraries): Likewise.
9881 (handle_qxfer): Likewise.
9882 (handle_query): Likewise.
9883 (handle_v_cont): Likewise.
9884 (handle_v_run): Likewise.
9885 (captured_main): Likewise.
9886 * target.c (write_inferior_memory): Likewise.
9887 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9888 * tracepoint.c (init_trace_buffer): Likewise.
9889 (add_tracepoint_action): Likewise.
9890 (add_traceframe): Likewise.
9891 (add_traceframe_block): Likewise.
9892 (cmd_qtdpsrc): Likewise.
9893 (cmd_qtdv): Likewise.
9894 (cmd_qtstatus): Likewise.
9895 (response_source): Likewise.
9896 (response_tsv): Likewise.
9897 (cmd_qtnotes): Likewise.
9898 (gdb_collect): Likewise.
9899 (initialize_tracepoint): Likewise.
9900
afbe19f8
PL
99012015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9902
9903 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9904 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9905 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9906 <NOP>: New.
9907 (enum aarch64_condition_codes): New enum.
9908 (w0): New static global.
9909 (fp): Likewise.
9910 (lr): Likewise.
9911 (struct aarch64_memory_operand) <type>: New
9912 MEMORY_OPERAND_POSTINDEX type.
9913 (postindex_memory_operand): New helper function.
9914 (emit_ret): New function.
9915 (emit_load_store_pair): New function, factored out of emit_stp
9916 with support for MEMORY_OPERAND_POSTINDEX.
9917 (emit_stp): Rewrite using emit_load_store_pair.
9918 (emit_ldp): New function.
9919 (emit_load_store): Likewise.
9920 (emit_ldr): Mention post-index instruction in comment.
9921 (emit_ldrh): New function.
9922 (emit_ldrb): New function.
9923 (emit_ldrsw): Mention post-index instruction in comment.
9924 (emit_str): Likewise.
9925 (emit_subs): New function.
9926 (emit_cmp): Likewise.
9927 (emit_and): Likewise.
9928 (emit_orr): Likewise.
9929 (emit_orn): Likewise.
9930 (emit_eor): Likewise.
9931 (emit_mvn): Likewise.
9932 (emit_lslv): Likewise.
9933 (emit_lsrv): Likewise.
9934 (emit_asrv): Likewise.
9935 (emit_mul): Likewise.
9936 (emit_sbfm): Likewise.
9937 (emit_sbfx): Likewise.
9938 (emit_ubfm): Likewise.
9939 (emit_ubfx): Likewise.
9940 (emit_csinc): Likewise.
9941 (emit_cset): Likewise.
9942 (emit_nop): Likewise.
9943 (emit_ops_insns): New helper function.
9944 (emit_pop): Likewise.
9945 (emit_push): Likewise.
9946 (aarch64_emit_prologue): New function.
9947 (aarch64_emit_epilogue): Likewise.
9948 (aarch64_emit_add): Likewise.
9949 (aarch64_emit_sub): Likewise.
9950 (aarch64_emit_mul): Likewise.
9951 (aarch64_emit_lsh): Likewise.
9952 (aarch64_emit_rsh_signed): Likewise.
9953 (aarch64_emit_rsh_unsigned): Likewise.
9954 (aarch64_emit_ext): Likewise.
9955 (aarch64_emit_log_not): Likewise.
9956 (aarch64_emit_bit_and): Likewise.
9957 (aarch64_emit_bit_or): Likewise.
9958 (aarch64_emit_bit_xor): Likewise.
9959 (aarch64_emit_bit_not): Likewise.
9960 (aarch64_emit_equal): Likewise.
9961 (aarch64_emit_less_signed): Likewise.
9962 (aarch64_emit_less_unsigned): Likewise.
9963 (aarch64_emit_ref): Likewise.
9964 (aarch64_emit_if_goto): Likewise.
9965 (aarch64_emit_goto): Likewise.
9966 (aarch64_write_goto_address): Likewise.
9967 (aarch64_emit_const): Likewise.
9968 (aarch64_emit_call): Likewise.
9969 (aarch64_emit_reg): Likewise.
9970 (aarch64_emit_pop): Likewise.
9971 (aarch64_emit_stack_flush): Likewise.
9972 (aarch64_emit_zero_ext): Likewise.
9973 (aarch64_emit_swap): Likewise.
9974 (aarch64_emit_stack_adjust): Likewise.
9975 (aarch64_emit_int_call_1): Likewise.
9976 (aarch64_emit_void_call_2): Likewise.
9977 (aarch64_emit_eq_goto): Likewise.
9978 (aarch64_emit_ne_goto): Likewise.
9979 (aarch64_emit_lt_goto): Likewise.
9980 (aarch64_emit_le_goto): Likewise.
9981 (aarch64_emit_gt_goto): Likewise.
9982 (aarch64_emit_ge_got): Likewise.
9983 (aarch64_emit_ops_impl): New static global variable.
9984 (aarch64_emit_ops): New target function, return
9985 &aarch64_emit_ops_impl.
9986 (struct linux_target_ops): Install it.
9987
bb903df0
PL
99882015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9989
9990 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9991 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9992 aarch64-ipa.o.
9993 * linux-aarch64-ipa.c: New file.
9994 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9995 and endian.h.
9996 (aarch64_get_thread_area): New target method.
9997 (extract_signed_bitfield): New helper function.
9998 (aarch64_decode_ldr_literal): New function.
9999 (enum aarch64_opcodes): New enum.
10000 (struct aarch64_register): New struct.
10001 (struct aarch64_operand): New struct.
10002 (x0): New static global.
10003 (x1): Likewise.
10004 (x2): Likewise.
10005 (x3): Likewise.
10006 (x4): Likewise.
10007 (w2): Likewise.
10008 (ip0): Likewise.
10009 (sp): Likewise.
10010 (xzr): Likewise.
10011 (aarch64_register): New helper function.
10012 (register_operand): Likewise.
10013 (immediate_operand): Likewise.
10014 (struct aarch64_memory_operand): New struct.
10015 (offset_memory_operand): New helper function.
10016 (preindex_memory_operand): Likewise.
10017 (enum aarch64_system_control_registers): New enum.
10018 (ENCODE): New macro.
10019 (emit_insn): New helper function.
10020 (emit_b): New function.
10021 (emit_bcond): Likewise.
10022 (emit_cb): Likewise.
10023 (emit_tb): Likewise.
10024 (emit_blr): Likewise.
10025 (emit_stp): Likewise.
10026 (emit_ldp_q_offset): Likewise.
10027 (emit_stp_q_offset): Likewise.
10028 (emit_load_store): Likewise.
10029 (emit_ldr): Likewise.
10030 (emit_ldrsw): Likewise.
10031 (emit_str): Likewise.
10032 (emit_ldaxr): Likewise.
10033 (emit_stxr): Likewise.
10034 (emit_stlr): Likewise.
10035 (emit_data_processing_reg): Likewise.
10036 (emit_data_processing): Likewise.
10037 (emit_add): Likewise.
10038 (emit_sub): Likewise.
10039 (emit_mov): Likewise.
10040 (emit_movk): Likewise.
10041 (emit_mov_addr): Likewise.
10042 (emit_mrs): Likewise.
10043 (emit_msr): Likewise.
10044 (emit_sevl): Likewise.
10045 (emit_wfe): Likewise.
10046 (append_insns): Likewise.
10047 (can_encode_int32_in): New helper function.
10048 (aarch64_relocate_instruction): New function.
10049 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10050 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10051 (struct linux_target_ops): Install aarch64_get_thread_area,
10052 aarch64_install_fast_tracepoint_jump_pad and
10053 aarch64_get_min_fast_tracepoint_insn_len.
10054
787749ea
PL
100552015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10056
10057 * Makefile.in (aarch64-insn.o): New rule.
10058 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10059
9812b2e6
YQ
100602015-09-21 Yao Qi <yao.qi@linaro.org>
10061
10062 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10063
18fe412b
YQ
100642015-09-21 Yao Qi <yao.qi@linaro.org>
10065
10066 * tracepoint.c (max_jump_pad_size): Remove.
10067
a0cc84cd
YQ
100682015-09-18 Yao Qi <yao.qi@linaro.org>
10069
10070 * linux-aarch64-low.c: Don't include sys/uio.h.
10071 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10072
d78908cf
WW
100732015-09-16 Wei-cheng Wang <cole945@gmail.com>
10074
10075 * tracepoint.c (eval_result_type): Change prototype.
10076 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10077
d57e0d50
PA
100782015-09-15 Pedro Alves <palves@redhat.com>
10079
10080 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10081 Check whether to report exec events instead of checking whether
10082 multiprocess is enabled.
10083
5a676acc
PA
100842015-09-15 Pedro Alves <palves@redhat.com>
10085
10086 PR remote/18965
10087 * remote-utils.c (prepare_resume_reply): Merge
10088 TARGET_WAITKIND_VFORK_DONE switch case with the
10089 TARGET_WAITKIND_FORKED case.
10090
7c5d0fad
YQ
100912015-09-15 Yao Qi <yao.qi@linaro.org>
10092
10093 * server.c (handle_query): Check string comparison using
10094 "else if" instead of "if".
10095
750ce8d1
YQ
100962015-09-15 Yao Qi <yao.qi@linaro.org>
10097
10098 * server.c (vCont_supported): New global variable.
10099 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10100 matches. Append ";vContSupported+" to own_buf.
10101 (handle_v_requests): Append ";s;S" to own_buf if target supports
10102 hardware single step or vCont_supported is false.
10103 (capture_main): Set vCont_supported to zero.
10104
70b90b91
YQ
101052015-09-15 Yao Qi <yao.qi@linaro.org>
10106
10107 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10108 it to ...
10109 (linux_supports_hardware_single_step): ... New function.
10110 (linux_target_ops): Update.
10111 * lynx-low.c (lynx_target_ops): Set field
10112 supports_hardware_single_step to target_can_do_hardware_single_step.
10113 * nto-low.c (nto_target_ops): Likewise.
10114 * spu-low.c (spu_target_ops): Likewise.
10115 * win32-low.c (win32_target_ops): Likewise.
10116 * target.c (target_can_do_hardware_single_step): New function.
10117 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10118 Remove. <supports_hardware_single_step>: New field.
10119 (target_supports_conditional_breakpoints): Remove.
10120 (target_supports_hardware_single_step): New macro.
10121 (target_can_do_hardware_single_step): Declare.
10122 * server.c (handle_query): Use target_supports_hardware_single_step
10123 instead of target_supports_conditional_breakpoints.
10124
ade90bde
YQ
101252015-09-15 Yao Qi <yao.qi@linaro.org>
10126
10127 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10128 function.
10129 (struct linux_target_ops the_low_target): Install
10130 aarch64_linux_siginfo_fixup.
10131
94585166
DB
101322015-09-11 Don Breazeal <donb@codesourcery.com>
10133 Luis Machado <lgustavo@codesourcery.com>
10134
10135 * linux-low.c (linux_mourn): Static declaration.
10136 (linux_arch_setup): Move in front of
10137 handle_extended_wait.
10138 (linux_arch_setup_thread): New function.
10139 (handle_extended_wait): Handle exec events. Call
10140 linux_arch_setup_thread. Make event_lwp argument a
10141 pointer-to-a-pointer.
10142 (check_zombie_leaders): Do not check stopped threads.
10143 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10144 (linux_low_filter_event): Add lwp and thread for exec'ing
10145 non-leader thread if leader thread has been deleted.
10146 Refactor code into linux_arch_setup_thread and call it.
10147 Pass child lwp pointer by reference to handle_extended_wait.
10148 (linux_wait_for_event_filtered): Update comment.
10149 (linux_wait_1): Prevent clobbering exec event status.
10150 (linux_supports_exec_events): New function.
10151 (linux_target_ops) <supports_exec_events>: Initialize new member.
10152 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10153 new member.
10154 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10155 * server.c (report_exec_events): New global variable.
10156 (handle_query): Handle qSupported query for exec-events feature.
10157 (captured_main): Initialize report_exec_events.
10158 * server.h (report_exec_events): Declare new global variable.
10159 * target.h (struct target_ops) <supports_exec_events>: New
10160 member.
10161 (target_supports_exec_events): New macro.
10162 * win32-low.c (win32_target_ops) <supports_exec_events>:
10163 Initialize new member.
10164
0568462b
MM
101652015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10166
10167 * linux-low.c (linux_low_enable_btrace): Remove.
10168 (linux_target_ops): Replace linux_low_enable_btrace with
10169 linux_enable_btrace.
10170
39edd165
YQ
101712015-09-03 Yao Qi <yao.qi@linaro.org>
10172
10173 * linux-aarch64-low.c (aarch64_insert_point): Call
10174 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10175 returns true.
10176
1db33b5a
UW
101772015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10178
10179 * linux-low.c (check_stopped_by_breakpoint): Use
10180 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10181
ab290430
PA
101822015-08-27 Pedro Alves <palves@redhat.com>
10183
10184 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10185
8d749320
SM
101862015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10187
6711b7f8
SM
10188 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10189 the XNEW-family equivalent.
8d749320
SM
10190 (compile_bytecodes): Likewise.
10191 * dll.c (loaded_dll): Likewise.
10192 * event-loop.c (append_callback_event): Likewise.
10193 (create_file_handler): Likewise.
10194 (create_file_event): Likewise.
10195 * hostio.c (handle_open): Likewise.
10196 * inferiors.c (add_thread): Likewise.
10197 (add_process): Likewise.
10198 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10199 * linux-arm-low.c (arm_new_process): Likewise.
10200 (arm_new_thread): Likewise.
10201 * linux-low.c (add_to_pid_list): Likewise.
10202 (linux_add_process): Likewise.
10203 (handle_extended_wait): Likewise.
10204 (add_lwp): Likewise.
10205 (enqueue_one_deferred_signal): Likewise.
10206 (enqueue_pending_signal): Likewise.
10207 (linux_resume_one_lwp_throw): Likewise.
10208 (linux_resume_one_thread): Likewise.
10209 (linux_read_memory): Likewise.
10210 (linux_write_memory): Likewise.
10211 * linux-mips-low.c (mips_linux_new_process): Likewise.
10212 (mips_linux_new_thread): Likewise.
10213 (mips_add_watchpoint): Likewise.
10214 * linux-x86-low.c (initialize_low_arch): Likewise.
10215 * lynx-low.c (lynx_add_process): Likewise.
10216 * mem-break.c (set_raw_breakpoint_at): Likewise.
10217 (set_breakpoint): Likewise.
10218 (add_condition_to_breakpoint): Likewise.
10219 (add_commands_to_breakpoint): Likewise.
10220 (clone_agent_expr): Likewise.
10221 (clone_one_breakpoint): Likewise.
10222 * regcache.c (new_register_cache): Likewise.
10223 * remote-utils.c (look_up_one_symbol): Likewise.
10224 * server.c (queue_stop_reply): Likewise.
10225 (start_inferior): Likewise.
10226 (queue_stop_reply_callback): Likewise.
10227 (handle_target_event): Likewise.
10228 * spu-low.c (fetch_ppc_memory): Likewise.
10229 (store_ppc_memory): Likewise.
10230 * target.c (set_target_ops): Likewise.
10231 * thread-db.c (thread_db_load_search): Likewise.
10232 (try_thread_db_load_1): Likewise.
10233 * tracepoint.c (add_tracepoint): Likewise.
10234 (add_tracepoint_action): Likewise.
10235 (create_trace_state_variable): Likewise.
10236 (cmd_qtdpsrc): Likewise.
10237 (cmd_qtro): Likewise.
10238 (add_while_stepping_state): Likewise.
10239 * win32-low.c (child_add_thread): Likewise.
10240 (get_image_name): Likewise.
10241
ed8b7b42
YQ
102422015-08-25 Yao Qi <yao.qi@linaro.org>
10243
10244 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10245
db3cb7cb
YQ
102462015-08-25 Yao Qi <yao.qi@linaro.org>
10247
10248 * Makefile.in (aarch64-linux.o): New rule.
10249 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10250 srv_tgtobj.
10251 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10252 (aarch64_init_debug_reg_state): Make it extern.
10253 (aarch64_linux_prepare_to_resume): Remove.
10254
f6011a1c
YQ
102552015-08-25 Yao Qi <yao.qi@linaro.org>
10256
10257 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10258 lwp_arch_private_info and ptid_of_lwp.
10259
88e2cf7e
YQ
102602015-08-25 Yao Qi <yao.qi@linaro.org>
10261
10262 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10263 Find proc_info by find_process_pid. All callers updated.
10264
5e35436e
YQ
102652015-08-25 Yao Qi <yao.qi@linaro.org>
10266
10267 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10268 Remove.
10269 (debug_reg_change_callback): Remove.
10270 (aarch64_notify_debug_reg_change): Remove.
10271
4a8a7965
YQ
102722015-08-25 Yao Qi <yao.qi@linaro.org>
10273
10274 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10275 Call current_lwp_ptid.
10276
32a271ee
YQ
102772015-08-25 Yao Qi <yao.qi@linaro.org>
10278
10279 * linux-aarch64-low.c (debug_reg_change_callback): Use
10280 debug_printf.
10281
0d51c8d7
YQ
102822015-08-25 Yao Qi <yao.qi@linaro.org>
10283
10284 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10285
31a43dd5
YQ
102862015-08-25 Yao Qi <yao.qi@linaro.org>
10287
10288 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10289
8ee52567
YQ
102902015-08-25 Yao Qi <yao.qi@linaro.org>
10291
10292 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10293 the code.
10294
ff3f0f45
YQ
102952015-08-25 Yao Qi <yao.qi@linaro.org>
10296
10297 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10298 Remove.
10299 (debug_reg_change_callback): Remove argument entry and add argument
10300 lwp. Remove local variable thread. Don't print thread id in the
10301 debugging output. Don't check whether pid of thread equals to pid.
10302 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10303 iterate_over_lwps instead find_inferior.
10304
3d40fbb5
PA
103052015-08-24 Pedro Alves <palves@redhat.com>
10306
10307 * inferiors.c (get_first_process): New function.
10308 * inferiors.h (get_first_process): New declaration.
10309 * remote-utils.c (read_ptid): Default to the first process in the
10310 list, instead of to the current thread's process.
10311
438e1e42
PA
103122015-08-24 Pedro Alves <palves@redhat.com>
10313
10314 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10315 * event-loop.c: Likewise.
10316 * remote-utils.c: Likewise.
10317 * tracepoint.c: Likewise.
10318
a8c6d4fc
PA
103192015-08-24 Pedro Alves <palves@redhat.com>
10320
10321 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10322 ptid_get_lwp.
10323
99b0bb12
PA
103242015-08-21 Pedro Alves <palves@redhat.com>
10325
10326 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10327 instead of literal 1.
10328
f8904751
PA
103292015-08-21 Pedro Alves <palves@redhat.com>
10330
10331 * tdesc.c (default_description): Explicitly zero-initialize.
10332
465a859e
PA
103332015-08-21 Pedro Alves <palves@redhat.com>
10334
10335 PR gdb/18749
10336 * inferiors.c (remove_thread): Discard any pending stop reply for
10337 this thread.
10338 * server.c (remove_all_on_match_pid): Rename to ...
10339 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10340 instead of a pid.
10341 (discard_queued_stop_replies): Change parameter to a ptid. Now
10342 extern.
10343 (handle_v_kill, kill_inferior_callback, captured_main)
10344 (process_serial_event): Adjust.
10345 * server.h (discard_queued_stop_replies): Declare.
10346
f0db101d
PA
103472015-08-21 Pedro Alves <palves@redhat.com>
10348
10349 * linux-low.c (wait_for_sigstop): Always switch to no thread
10350 selected if the previously current thread dies.
10351 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10352 process instead of the current thread's.
10353 * remote-utils.c (input_interrupt): Don't check if there's no
10354 current thread.
10355 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10356 current thread to the general thread fails, error out.
10357 (handle_qxfer_auxv, handle_qxfer_libraries)
10358 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10359 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10360 (handle_query): Check if there's a thread selected instead of
10361 checking whether there's any thread in the thread list.
10362 (handle_qxfer_threads, handle_qxfer_btrace)
10363 (handle_qxfer_btrace_conf): Don't error out early if there's no
10364 thread in the thread list.
10365 (handle_v_cont, myresume): Don't set the current thread to the
10366 continue thread.
10367 (process_serial_event) <Hg handling>: Also set thread_id if the
10368 previous general thread is still alive.
10369 (process_serial_event) <g/G handling>: If setting the current
10370 thread to the general thread fails, error out.
10371 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10372 thread's lwp instead of the current thread's.
10373 * target.c (set_desired_thread): If the desired thread was not
10374 found, leave the current thread pointing to NULL. Return an int
10375 (boolean) indicating success.
10376 * target.h (set_desired_thread): Change return type to int.
10377
40045d91
MF
103782015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10379
10380 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10381 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10382 #includes.
10383 (ps_get_thread_area): New function.
10384
45face3b
GB
103852015-08-19 Gary Benson <gbenson@redhat.com>
10386
10387 * hostio.c (handle_pread): Do not attempt to read more data
10388 than hostio_reply_with_data can fit in a packet.
10389
16d5f642
JB
103902015-08-18 Joel Brobecker <brobecker@adacore.com>
10391
10392 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10393
a738da3a
MF
103942015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10395
10396 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10397
33ebda9d
PA
103982015-08-06 Pedro Alves <palves@redhat.com>
10399
10400 * tracepoint.c (expr_eval_result): Now an int.
10401
a44892be
PA
104022015-08-06 Pedro Alves <palves@redhat.com>
10403
10404 * gdbthread.h (struct regcache): Forward declare.
10405 (struct thread_info) <regcache_data>: Now a struct regcache
10406 pointer.
10407 * inferiors.c (inferior_regcache_data)
10408 (set_inferior_regcache_data): Now work with struct regcache
10409 pointers.
10410 * inferiors.h (struct regcache): Forward declare.
10411 (inferior_regcache_data, set_inferior_regcache_data): Now work
10412 with struct regcache pointers.
10413 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10414 (free_register_cache_thread): Remove struct regcache pointer
10415 casts.
10416
608a1e46
PA
104172015-08-06 Pedro Alves <palves@redhat.com>
10418
10419 * server.c (captured_main): On error, print the exception message
10420 to stderr, and if run_once is set, throw a quit.
10421
f0ce0d3a
PA
104222015-08-06 Pedro Alves <palves@redhat.com>
10423
10424 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10425 the current thread.
10426
bf47e248
PA
104272015-08-06 Pedro Alves <palves@redhat.com>
10428
10429 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10430 reading beyond the passed in buffer length.
10431
b6b9ffcc
PL
104322015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10433
10434 * tracepoint.c (symbol_list) <required>: Remove.
10435
863d01bd
PA
104362015-08-06 Pedro Alves <palves@redhat.com>
10437
10438 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10439 count if stopping and suspending threads.
10440 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10441 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10442 (linux_detach): Complete an ongoing step-over.
10443 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10444 throughout.
10445 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10446 (linux_wait_1): If passing a signal to the inferior after
10447 finishing a step-over, unsuspend and re-resume all lwps. If we
10448 see a single-step event but the thread should be continuing, don't
10449 pass the trap to gdb.
10450 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10451 internal_error instead of gdb_assert.
10452 (enqueue_pending_signal): New function.
10453 (check_ptrace_stopped_lwp_gone): Add debug output.
10454 (start_step_over): Use internal_error instead of gdb_assert.
10455 (complete_ongoing_step_over): New function.
10456 (linux_resume_one_thread): Don't resume a suspended thread.
10457 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10458 it stepping.
10459
00db26fa
PA
104602015-08-06 Pedro Alves <palves@redhat.com>
10461
10462 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10463 (linux_thread_alive): Use lwp_is_marked_dead.
10464 (extended_event_reported): Delete.
10465 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10466 instead of extended_event_reported.
10467 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10468 as well.
10469 (lwp_is_marked_dead): New function.
10470 (lwp_running): Use lwp_is_marked_dead.
10471 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10472 comment.
10473
ad071a30
PA
104742015-08-06 Pedro Alves <palves@redhat.com>
10475
10476 * linux-low.c (linux_wait_1): Move fork event output out of the
10477 !report_to_gdb check. Pass event_child->waitstatus to
10478 target_waitstatus_to_string instead of ourstatus.
10479
524b57e6
YQ
104802015-08-04 Yao Qi <yao.qi@linaro.org>
10481
10482 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10483 if current_thread is 32 bit.
10484
6085d6f6
YQ
104852015-08-04 Yao Qi <yao.qi@linaro.org>
10486
10487 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10488 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10489 * server.c (extended_protocol): Remove "static".
10490 * server.h (extended_protocol): Declare it.
10491
8a7e4587
YQ
104922015-08-04 Yao Qi <yao.qi@linaro.org>
10493
10494 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10495 both aarch64 and aarch32.
10496 (aarch64_set_pc): Likewise.
10497
3b53ae99
YQ
104982015-08-04 Yao Qi <yao.qi@linaro.org>
10499
10500 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10501 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10502 arm-with-neon.xml to srv_xmlfiles.
10503 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10504 (is_64bit_tdesc): New function.
10505 (aarch64_linux_read_description): New function.
10506 (aarch64_arch_setup): Call aarch64_linux_read_description.
10507 (regs_info): Rename to regs_info_aarch64.
10508 (aarch64_regs_info): Return right regs_info.
10509 (initialize_low_arch): Call initialize_low_arch_aarch32.
10510
bd9e6534
YQ
105112015-08-04 Yao Qi <yao.qi@linaro.org>
10512
10513 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10514 * linux-aarch32-low.c: New file.
10515 * linux-aarch32-low.h: New file.
10516 * linux-arm-low.c (arm_fill_gregset): Move it to
10517 linux-aarch32-low.c.
10518 (arm_store_gregset): Likewise.
10519 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10520 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10521 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10522 (regs_info): Rename to regs_info_arm.
10523 (arm_regs_info): Return regs_info_aarch32 if
10524 have_ptrace_getregset is 1 and target description is
10525 arm_with_neon or arm_with_vfpv3.
10526 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10527 Call initialize_low_arch_aarch32 instead.
10528
ded48a5e
YQ
105292015-08-04 Yao Qi <yao.qi@linaro.org>
10530
10531 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10532 * linux-low.c: ... here.
10533 * linux-low.h (have_ptrace_getregset): Declare it.
10534
96e9210f
PA
105352015-08-04 Pedro Alves <palves@redhat.com>
10536
10537 * thread-db.c (struct thread_db): Use new typedefs.
10538 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10539 CHK calls.
10540 (disable_thread_event_reporting): Cast result of dlsym to
10541 destination function pointer type.
10542 (thread_db_mourn): Use td_ta_delete_ftype.
10543
af60a1ef
SL
105442015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10545
10546 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10547 arch variant.
10548 (CDX_BREAKPOINT): Define for R2.
10549 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10550 (the_low_target): Add comments.
10551
e8b41681
YQ
105522015-07-30 Yao Qi <yao.qi@linaro.org>
10553
10554 * linux-arm-low.c (arm_hwcap): Remove it.
10555 (arm_read_description): New local variable arm_hwcap. Don't
10556 set arm_hwcap to zero.
10557
89abb039
YQ
105582015-07-30 Yao Qi <yao.qi@linaro.org>
10559
10560 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10561 Use regcache->tdesc instead.
10562 (arm_store_wmmxregset): Likewise.
10563 (arm_fill_vfpregset): Likewise.
10564 (arm_store_vfpregset): Likewise.
10565
deca266c
YQ
105662015-07-30 Yao Qi <yao.qi@linaro.org>
10567
10568 * linux-arm-low.c: Include arch/arm.h.
10569 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10570 (arm_store_gregset): Likewise.
10571
aa58a496
SM
105722015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10573
10574 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10575 ptrace's 4th parameter.
10576
50904b25
YQ
105772015-07-27 Yao Qi <yao.qi@linaro.org>
10578
10579 * configure.srv (case aarch64*-*-linux*): Don't set
10580 srv_linux_usrregs.
10581
5826e159
PA
105822015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10583
10584 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10585 sys/ptrace.h.
10586 * linux-arm-low.c: Likewise.
10587 * linux-cris-low.c: Likewise.
10588 * linux-crisv32-low.c: Likewise.
10589 * linux-low.c: Likewise.
10590 * linux-m68k-low.c: Likewise.
10591 * linux-mips-low.c: Likewise.
10592 * linux-nios2-low.c: Likewise.
10593 * linux-s390-low.c: Likewise.
10594 * linux-sparc-low.c: Likewise.
10595 * linux-tic6x-low.c: Likewise.
10596 * linux-tile-low.c: Likewise.
10597 * linux-x86-low.c: Likewise.
10598
54019719
PA
105992015-07-24 Pedro Alves <palves@redhat.com>
10600
10601 * config.in: Regenerate.
10602 * configure: Regenerate.
10603
eb7aa561
PA
106042015-07-24 Pedro Alves <palves@redhat.com>
10605
10606 * acinclude.m4: Include ../ptrace.m4.
10607 * configure.ac: Call GDB_AC_PTRACE.
10608 * config.in, configure: Regenerate.
10609
55d7b841
YQ
106102015-07-24 Yao Qi <yao.qi@linaro.org>
10611
10612 * linux-low.c (linux_create_inferior): Remove setting to
10613 proc->priv->new_inferior.
10614 (linux_attach): Likewise.
10615 (linux_low_filter_event): Likewise.
10616 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10617
c06cbd92
YQ
106182015-07-24 Yao Qi <yao.qi@linaro.org>
10619
10620 * linux-low.c (linux_arch_setup): New function.
10621 (linux_low_filter_event): If proc->tdesc is NULL and
10622 proc->attached is true, call the_low_target.arch_setup.
10623 Otherwise, keep status pending, and return.
10624 (linux_resume_one_lwp_throw): Don't call get_pc if
10625 thread->while_stepping isn't NULL. Don't call
10626 get_thread_regcache if proc->tdesc is NULL.
10627 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10628 (linux_target_ops): Install arch_setup.
10629 * server.c (start_inferior): Call the_target->arch_setup.
10630 * target.h (struct target_ops) <arch_setup>: New field.
10631 (target_arch_setup): New marco.
10632 * lynx-low.c (lynx_target_ops): Update.
10633 * nto-low.c (nto_target_ops): Update.
10634 * spu-low.c (spu_target_ops): Update.
10635 * win32-low.c (win32_target_ops): Update.
10636
5ae3ebba
YQ
106372015-07-24 Yao Qi <yao.qi@linaro.org>
10638
10639 * linux-low.c (linux_add_process): Don't set
10640 proc->priv->new_inferior.
10641 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10642 (linux_attach): Likewise.
10643
eb97750b
YQ
106442015-07-24 Yao Qi <yao.qi@linaro.org>
10645
10646 * server.c (start_inferior): Code refactor.
10647
51aee833
YQ
106482015-07-24 Yao Qi <yao.qi@linaro.org>
10649
10650 * server.c (process_serial_event): Set general_thread.
10651
af1b22f3
YQ
106522015-07-21 Yao Qi <yao.qi@linaro.org>
10653
10654 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10655 aarch64_linux_get_debug_reg_capacity.
10656
554717a3
YQ
106572015-07-17 Yao Qi <yao.qi@linaro.org>
10658
10659 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10660 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10661 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10662 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10663 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10664 (AARCH64_HWP_ALIGNMENT): Likewise.
10665 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10666 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10667 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10668 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10669 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10670 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10671 (struct aarch64_debug_reg_state): Likewise.
10672 (struct arch_lwp_info): Likewise.
10673 (aarch64_align_watchpoint): Likewise.
10674 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10675 (aarch64_watchpoint_length): Likewise.
10676 (aarch64_point_encode_ctrl_reg): Likewise
10677 (aarch64_point_is_aligned): Likewise.
10678 (aarch64_align_watchpoint): Likewise.
10679 (aarch64_linux_set_debug_regs):
10680 (aarch64_dr_state_insert_one_point): Likewise.
10681 (aarch64_dr_state_remove_one_point): Likewise.
10682 (aarch64_handle_breakpoint): Likewise.
10683 (aarch64_handle_aligned_watchpoint): Likewise.
10684 (aarch64_handle_unaligned_watchpoint): Likewise.
10685 (aarch64_handle_watchpoint): Likewise.
10686
c67ca4de
YQ
106872015-07-17 Yao Qi <yao.qi@linaro.org>
10688
10689 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10690 and don't aarch64_get_debug_reg_state. All callers update.
10691 (aarch64_handle_aligned_watchpoint): Likewise.
10692 (aarch64_handle_unaligned_watchpoint): Likewise.
10693 (aarch64_handle_watchpoint): Likewise.
10694 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10695 (aarch64_remove_point): Likewise.
10696
25abf979
YQ
106972015-07-17 Yao Qi <yao.qi@linaro.org>
10698
10699 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10700 debug_printf.
10701 (aarch64_handle_unaligned_watchpoint): Likewise.
10702
db1ff28b
JK
107032015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10704
10705 Revert the previous 3 commits:
10706 Move gdb_regex* to common/
10707 Move linux_find_memory_regions_full & co.
10708 gdbserver build-id attribute generator
10709
700ca40f
JK
107102015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10711 Jan Kratochvil <jan.kratochvil@redhat.com>
10712
10713 gdbserver build-id attribute generator.
10714 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10715 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10716 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10717 (find_phdr): New.
10718 (get_dynamic): Use find_pdhr to traverse program headers.
10719 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10720 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10721 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10722 (get_hex_build_id): New.
10723 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10724 to reply XML document.
10725
9904185c
JK
107262015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10727 Jan Kratochvil <jan.kratochvil@redhat.com>
10728
10729 * target.c: Include target/target-utils.h and fcntl.h.
10730 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10731 (target_fileio_read_stralloc): New functions.
10732
6e5b4429
JK
107332015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10734
10735 * Makefile.in (OBS): Add gdb_regex.o.
10736 (gdb_regex.o): New.
10737 * config.in: Rebuilt.
10738 * configure: Rebuilt.
10739
ddc98fbf
JK
107402015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10741 Jan Kratochvil <jan.kratochvil@redhat.com>
10742
10743 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10744 * Makefile.in (OBS): Add target-utils.o.
10745 (linux-maps.o, target-utils.o): New.
10746 * configure.srv (srv_linux_obj): Add linux-maps.o.
10747
e57bb7a0
PL
107482015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10749
10750 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10751 function, return 1.
10752 (the_low_target): Install it.
10753
586b02a9
PA
107542015-07-14 Pedro Alves <palves@redhat.com>
10755
10756 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10757 Instead, ignore ECHILD, and throw an error for other errnos.
10758
58c1b36c
PA
107592015-07-10 Pedro Alves <palves@redhat.com>
10760
10761 * event-loop.c (struct callback_event) <data>: Change type to
10762 gdb_client_data instance instead of gdb_client_data pointer.
10763 (append_callback_event): Adjust.
10764
421530db
PL
107652015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10766
10767 * linux-aarch64-low.c: Add comments for each linux_target_ops
10768 method. Remove comments already covered in target_ops and
10769 linux_target_ops definitions.
10770 (the_low_target): Add comments for each unimplemented method.
10771
c2d65f38
YQ
107722015-07-09 Yao Qi <yao.qi@linaro.org>
10773
10774 * linux-aarch64-low.c (aarch64_regmap): Remove.
10775 (aarch64_usrregs_info): Remove.
10776 (regs_info): Set field usrregs to NULL.
10777
b20a6524
MM
107782015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10779
10780 * linux-low.c: Include "rsp-low.h"
10781 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10782 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10783 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10784 (handle_btrace_enable_pt): New.
10785 (handle_btrace_general_set): Support "pt".
10786 (handle_btrace_conf_general_set): Support "pt:size".
10787
96c97461
PL
107882015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10789
10790 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10791 Z_PACKET_SW_BP.
10792
37d66942
PL
107932015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10794
10795 * linux-aarch64-low.c: Remove comment about endianness.
10796 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10797 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10798 memcmp.
10799
dc06243f
GB
108002015-06-24 Gary Benson <gbenson@redhat.com>
10801
10802 * linux-i386-ipa.c (stdint.h): Do not include.
10803 * lynx-i386-low.c (stdint.h): Likewise.
10804 * lynx-ppc-low.c (stdint.h): Likewise.
10805 * mem-break.c (stdint.h): Likewise.
10806 * thread-db.c (stdint.h): Likewise.
10807 * tracepoint.c (stdint.h): Likewise.
10808 * win32-low.c (stdint.h): Likewise.
10809
124e13d9
SM
108102015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10811
10812 * server.c (write_qxfer_response): Update call to
10813 remote_escape_output.
10814
909c2cda
JK
108152015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10816 Jan Kratochvil <jan.kratochvil@redhat.com>
10817
10818 Merge multiple hex conversions.
10819 * gdbreplay.c (tohex): Rename to 'fromhex'.
10820 (logchar): Use fromhex.
10821
24c05f46
JK
108222015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10823
10824 * server.c (handle_qxfer_libraries): Set `version' attribute for
10825 <library-list>.
10826
14d2069a
GB
108272015-06-10 Gary Benson <gbenson@redhat.com>
10828
10829 * target.h (struct target_ops) <multifs_open>: New field.
10830 <multifs_unlink>: Likewise.
10831 <multifs_readlink>: Likewise.
10832 * linux-low.c (nat/linux-namespaces.h): New include.
10833 (linux_target_ops): Initialize the_target->multifs_open,
10834 the_target->multifs_unlink and the_target->multifs_readlink.
10835 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10836 * hostio.c (hostio_fs_pid): New static variable.
10837 (hostio_handle_new_gdb_connection): New function.
10838 (handle_setfs): Likewise.
10839 (handle_open): Use the_target->multifs_open as appropriate.
10840 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10841 (handle_readlink): Use the_target->multifs_readlink as
10842 appropriate.
10843 (handle_vFile): Handle vFile:setfs packets.
10844 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10845 after target_handle_new_gdb_connection.
10846
4b8b5e72
GB
108472015-06-10 Gary Benson <gbenson@redhat.com>
10848
10849 * configure.ac (AC_CHECK_FUNCS): Add setns.
10850 * config.in: Regenerate.
10851 * configure: Likewise.
10852 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10853 (linux-namespaces.o): New rule.
10854 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10855
3ac2e371
GB
108562015-06-09 Gary Benson <gbenson@redhat.com>
10857
10858 * hostio.c (handle_open): Process mode argument with
10859 fileio_to_host_mode.
10860
ca9b78ce
YQ
108612015-06-01 Yao Qi <yao.qi@linaro.org>
10862
10863 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10864 * linux-x86-low.c: Likewise.
10865
bfacd19d
DB
108662015-05-28 Don Breazeal <donb@codesourcery.com>
10867
10868 * linux-low.c (handle_extended_wait): Initialize
10869 thread_info.last_resume_kind for new fork children.
10870
452003ef
PA
108712015-05-15 Pedro Alves <palves@redhat.com>
10872
10873 * target.h (target_handle_new_gdb_connection): Rewrite using if
10874 wrapped in do/while.
10875
1041a03c
JB
108762015-05-14 Joel Brobecker <brobecker@adacore.com>
10877
10878 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10879 * configure, config.in: Regenerate.
10880 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10881 Declare typedef.
10882
c269dbdb
DB
108832015-05-12 Don Breazeal <donb@codesourcery.com>
10884
10885 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10886 PTRACE_EVENT_VFORK_DONE.
10887 (linux_low_ptrace_options, extended_event_reported): Add vfork
10888 events.
10889 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10890 and "vforkdone" for RSP 'T' Stop Reply Packet.
10891 * server.h (report_vfork_events): Declare
10892 global variable.
10893
3a8a0396
DB
108942015-05-12 Don Breazeal <donb@codesourcery.com>
10895
10896 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10897 (the_low_target) <new_fork>: Initialize new member.
10898 * linux-arm-low.c (arm_new_fork): New function.
10899 (the_low_target) <new_fork>: Initialize new member.
10900 * linux-low.c (handle_extended_wait): Call new target function
10901 new_fork.
10902 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10903 * linux-mips-low.c (mips_add_watchpoint): New function
10904 extracted from mips_insert_point.
10905 (the_low_target) <new_fork>: Initialize new member.
10906 (mips_linux_new_fork): New function.
10907 (mips_insert_point): Call mips_add_watchpoint.
10908 * linux-x86-low.c (x86_linux_new_fork): New function.
10909 (the_low_target) <new_fork>: Initialize new member.
10910
de0d863e
DB
109112015-05-12 Don Breazeal <donb@codesourcery.com>
10912
10913 * linux-low.c (handle_extended_wait): Implement return value,
10914 rename argument 'event_child' to 'event_lwp', handle
10915 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10916 (linux_low_ptrace_options): New function.
10917 (linux_low_filter_event): Call linux_low_ptrace_options,
10918 use different argument fo linux_enable_event_reporting,
10919 use return value from handle_extended_wait.
10920 (extended_event_reported): New function.
10921 (linux_wait_1): Call extended_event_reported and set
10922 status to report fork events.
10923 (linux_write_memory): Add pid to debug message.
10924 (reset_lwp_ptrace_options_callback): New function.
10925 (linux_handle_new_gdb_connection): New function.
10926 (linux_target_ops): Initialize new structure member.
10927 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10928 * lynx-low.c: Initialize new structure member.
10929 * remote-utils.c (prepare_resume_reply): Implement stop reason
10930 "fork" for "T" stop message.
10931 * server.c (handle_query): Call handle_new_gdb_connection.
10932 * server.h (report_fork_events): Declare global flag.
10933 * target.h (struct target_ops) <handle_new_gdb_connection>:
10934 New member.
10935 (target_handle_new_gdb_connection): New macro.
10936 * win32-low.c: Initialize new structure member.
10937
ddcbc397
DB
109382015-05-12 Don Breazeal <donb@codesourcery.com>
10939
10940 * mem-break.c (APPEND_TO_LIST): Define macro.
10941 (clone_agent_expr): New function.
10942 (clone_one_breakpoint): New function.
10943 (clone_all_breakpoints): New function.
10944 * mem-break.h: Declare new functions.
10945
89245bc0
DB
109462015-05-12 Don Breazeal <donb@codesourcery.com>
10947
10948 * linux-low.c (linux_supports_fork_events): New function.
10949 (linux_supports_vfork_events): New function.
10950 (linux_target_ops): Initialize new structure members.
10951 (initialize_low): Call linux_check_ptrace_features.
10952 * lynx-low.c (lynx_target_ops): Initialize new structure
10953 members.
10954 * server.c (report_fork_events, report_vfork_events):
10955 New global flags.
10956 (handle_query): Add new features to qSupported packet and
10957 response.
10958 (captured_main): Initialize new global variables.
10959 * target.h (struct target_ops) <supports_fork_events>:
10960 New member.
10961 <supports_vfork_events>: New member.
10962 (target_supports_fork_events): New macro.
10963 (target_supports_vfork_events): New macro.
10964 * win32-low.c (win32_target_ops): Initialize new structure
10965 members.
10966
835205d0
GB
109672015-05-12 Gary Benson <gbenson@redhat.com>
10968
10969 * server.c (handle_qxfer_exec_file): Use current process
10970 if annex is empty.
10971
21e94bd9
SL
109722015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10973
10974 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10975 Remove HAVE_PTRACE_GETREGS conditionals.
10976 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10977 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10978
45614f15
YQ
109792015-05-08 Yao Qi <yao.qi@linaro.org>
10980
10981 * linux-low.c (linux_supports_conditional_breakpoints): New
10982 function.
10983 (linux_target_ops): Install new target method.
10984 * lynx-low.c (lynx_target_ops): Install NULL hook for
10985 supports_conditional_breakpoints.
10986 * nto-low.c (nto_target_ops): Likewise.
10987 * spu-low.c (spu_target_ops): Likewise.
10988 * win32-low.c (win32_target_ops): Likewise.
10989 * server.c (handle_query): Check
10990 target_supports_conditional_breakpoints.
10991 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10992 New field.
10993 (target_supports_conditional_breakpoints): New macro.
10994
80ad801e
PA
109952015-05-06 Pedro Alves <palves@redhat.com>
10996
10997 PR server/18081
10998 * server.c (start_inferior): If the process exits, mourn it.
10999
819843c7
GB
110002015-04-21 Gary Benson <gbenson@redhat.com>
11001
11002 * hostio.c (fileio_open_flags_to_host): Factored out to
11003 fileio_to_host_openflags in common/fileio.c. Single use
11004 updated.
11005
a2d5a9d7
MF
110062015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11007
11008 * linux-xtensa-low.c (xtensa_fill_gregset)
11009 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11010 XCHAL_HAVE_LOOP.
11011
deb44829
MF
110122015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11013
11014 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11015 (regs_info): Replace usrregs pointer with NULL.
11016
e57f1de3
GB
110172015-04-17 Gary Benson <gbenson@redhat.com>
11018
11019 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11020 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11021 * server.c (handle_qxfer_exec_file): New function.
11022 (qxfer_packets): Add exec-file entry.
11023 (handle_query): Report qXfer:exec-file:read as supported packet.
11024
62828379
RN
110252015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11026
11027 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11028
b88bb450
GB
110292015-04-09 Gary Benson <gbenson@redhat.com>
11030
11031 * hostio-errno.c (errno_to_fileio_error): Remove function.
11032 Update caller to use remote_fileio_to_fio_error.
11033
c8f4bfdd
YQ
110342015-04-09 Yao Qi <yao.qi@linaro.org>
11035
11036 * linux-low.c (linux_insert_point): Call
11037 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11038 (linux_remove_point): Call remove_memory_breakpoint if type is
11039 raw_bkpt_type_sw.
11040 * linux-x86-low.c (x86_insert_point): Don't call
11041 insert_memory_breakpoint.
11042 (x86_remove_point): Don't call remove_memory_breakpoint.
11043
41f98f02
PA
110442015-04-01 Pedro Alves <palves@redhat.com>
11045 Cleber Rosa <crosa@redhat.com>
11046
11047 * server.c (gdbserver_usage): Reorganize and extend the usage
11048 message.
11049
2bf6fb9d
PA
110502015-03-24 Pedro Alves <palves@redhat.com>
11051
11052 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11053 output. Also dump TRAP_TRACE.
11054 (linux_low_filter_event): In debug output, distinguish a
11055 resume_stop SIGSTOP from a delayed SIGSTOP.
11056
369f6daa
GB
110572015-03-24 Gary Benson <gbenson@redhat.com>
11058
11059 * linux-x86-low.c (x86_linux_new_thread): Moved to
11060 nat/x86-linux.c.
11061 (x86_linux_prepare_to_resume): Likewise.
11062
8e5d4070
GB
110632015-03-24 Gary Benson <gbenson@redhat.com>
11064
11065 * Makefile.in (x86-linux-dregs.o): New rule.
11066 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11067 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11068 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11069 (x86_linux_dr_get): Likewise.
11070 (x86_linux_dr_set): Likewise.
11071 (update_debug_registers_callback): Likewise.
11072 (x86_linux_dr_set_addr): Likewise.
11073 (x86_linux_dr_get_addr): Likewise.
11074 (x86_linux_dr_set_control): Likewise.
11075 (x86_linux_dr_get_control): Likewise.
11076 (x86_linux_dr_get_status): Likewise.
11077 (x86_linux_update_debug_registers): Likewise.
11078
2b95d440
GB
110792015-03-24 Gary Benson <gbenson@redhat.com>
11080
11081 * linux-x86-low.c (x86_linux_update_debug_registers):
11082 New function, factored out from...
11083 (x86_linux_prepare_to_resume): ...this.
11084
14b0bc68
GB
110852015-03-24 Gary Benson <gbenson@redhat.com>
11086
11087 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11088 (x86_linux_dr_set): Likewise.
11089 (update_debug_registers_callback): Likewise.
11090 (x86_linux_dr_set_addr): Likewise.
11091 (x86_linux_dr_get_addr): Likewise.
11092 (x86_linux_dr_set_control): Likewise.
11093 (x86_linux_dr_get_control): Likewise.
11094 (x86_linux_dr_get_status): Likewise.
11095 (x86_linux_prepare_to_resume): Likewise.
11096
5dfe6ca8
GB
110972015-03-24 Gary Benson <gbenson@redhat.com>
11098
11099 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11100 Use perror_with_name. Pass string through gettext.
11101 (x86_linux_dr_set): Likewise.
11102
d33472ad
GB
111032015-03-24 Gary Benson <gbenson@redhat.com>
11104
11105 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11106 (x86_linux_dr_set_addr): ...this.
11107 (x86_dr_low_get_addr): Rename to...
11108 (x86_linux_dr_get_addr): ...this.
11109 (x86_dr_low_set_control): Rename to...
11110 (x86_linux_dr_set_control): ...this.
11111 (x86_dr_low_get_control): Rename to...
11112 (x86_linux_dr_get_control): ...this.
11113 (x86_dr_low_get_status): Rename to...
11114 (x86_linux_dr_get_status): ...this.
11115 (x86_dr_low): Update with new function names.
11116
4b134ca1
GB
111172015-03-24 Gary Benson <gbenson@redhat.com>
11118
11119 * Makefile.in (x86-linux.o): New rule.
11120 * configure.srv: Add x86-linux.o to relevant targets.
11121 * linux-low.c (lwp_set_arch_private_info): New function.
11122 (lwp_arch_private_info): Likewise.
11123 * linux-x86-low.c: Include nat/x86-linux.h.
11124 (arch_lwp_info): Removed structure.
11125 (update_debug_registers_callback):
11126 Use lwp_set_debug_registers_changed.
11127 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11128 and lwp_set_debug_registers_changed.
11129 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11130
34c703da
GB
111312015-03-24 Gary Benson <gbenson@redhat.com>
11132
11133 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11134 * linux-arm-low.c (arm_new_thread): Likewise.
11135 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11136 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11137 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11138 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11139
cff068da
GB
111402015-03-24 Gary Benson <gbenson@redhat.com>
11141
11142 * linux-low.c (ptid_of_lwp): New function.
11143 (lwp_is_stopped): Likewise.
11144 (lwp_stop_reason): Likewise.
11145 * linux-x86-low.c (update_debug_registers_callback):
11146 Use lwp_is_stopped.
11147 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11148 lwp_stop_reason.
11149
b2f7c7e8
GB
111502015-03-24 Gary Benson <gbenson@redhat.com>
11151
11152 * linux-low.h (linux_stop_lwp): Remove declaration.
11153
6d4ee8c6
GB
111542015-03-24 Gary Benson <gbenson@redhat.com>
11155
11156 * linux-low.h: Include nat/linux-nat.h.
11157 * linux-low.c (iterate_over_lwps_args): New structure.
11158 (iterate_over_lwps_filter): New function.
11159 (iterate_over_lwps): Likewise.
11160 * linux-x86-low.c (update_debug_registers_callback):
11161 Update signature to what iterate_over_lwps expects.
11162 Remove PID check that iterate_over_lwps now performs.
11163 (x86_dr_low_set_addr): Use iterate_over_lwps.
11164 (x86_dr_low_set_control): Likewise.
11165
70a0bb6b
GB
111662015-03-24 Gary Benson <gbenson@redhat.com>
11167
11168 * linux-x86-low.c (x86_debug_reg_state): New function.
11169 (x86_linux_prepare_to_resume): Use the above.
11170
7b669087
GB
111712015-03-24 Gary Benson <gbenson@redhat.com>
11172
11173 * linux-low.c (current_lwp_ptid): New function.
11174 * linux-x86-low.c: Include nat/linux-nat.h.
11175 (x86_dr_low_get_addr): Use current_lwp_ptid.
11176 (x86_dr_low_get_control): Likewise.
11177 (x86_dr_low_get_status): Likewise.
11178
eef49a3d
PA
111792015-03-20 Pedro Alves <palves@redhat.com>
11180
11181 * tracepoint.c (cmd_qtstatus): Make "str" const.
11182
b2333d22
PA
111832015-03-20 Pedro Alves <palves@redhat.com>
11184
11185 * server.c (handle_general_set): Make "req_str" const.
11186
23f238d3
PA
111872015-03-19 Pedro Alves <palves@redhat.com>
11188
11189 * linux-low.c (linux_resume_one_lwp): Rename to ...
11190 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11191 instead call perror_with_name.
11192 (check_ptrace_stopped_lwp_gone): New function.
11193 (linux_resume_one_lwp): Reimplement as wrapper around
11194 linux_resume_one_lwp_throw that swallows errors if the LWP is
11195 gone.
11196
91baf43f
PA
111972015-03-19 Pedro Alves <palves@redhat.com>
11198
11199 * linux-low.c (count_events_callback, select_event_lwp_callback):
11200 No longer check whether the thread has resume_stop as last resume
11201 kind.
11202
8bf3b159
PA
112032015-03-19 Pedro Alves <palves@redhat.com>
11204
11205 * linux-low.c (count_events_callback, select_event_lwp_callback):
11206 Use the lwp's status_pending_p field, not the thread's.
11207
b90fc188
PA
112082015-03-19 Pedro Alves <palves@redhat.com>
11209
11210 * linux-low.c (select_event_lwp_callback): Update comments to
11211 no longer mention SIGTRAP.
11212
464b0089
GB
112132015-03-18 Gary Benson <gbenson@redhat.com>
11214
11215 * server.c (handle_query): Do not report vFile:fstat as supported.
11216
aa9e327f
GB
112172015-03-11 Gary Benson <gbenson@redhat.com>
11218
11219 * hostio.c (sys/types.h): New include.
11220 (sys/stat.h): Likewise.
11221 (common-remote-fileio.h): Likewise.
11222 (handle_fstat): New function.
11223 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11224
791c0056
GB
112252015-03-11 Gary Benson <gbenson@redhat.com>
11226
11227 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11228 struct stat.st_blocks and struct stat.st_blksize.
11229 * configure: Regenerate.
11230 * config.in: Likewise.
11231 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11232 (OBS): Add common-remote-fileio.o.
11233 (common-remote-fileio.o): New rule.
11234
9a9df970
PA
112352015-03-09 Pedro Alves <palves@redhat.com>
11236
11237 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11238 'struct sockaddr' pointer in 'accept' call.
11239
9eb1356e
PA
112402015-03-09 Pedro Alves <palves@redhat.com>
11241
11242 Revert:
11243 2015-03-07 Pedro Alves <palves@redhat.com>
11244 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11245 or <winsock2.h> here. Instead include "gdb_socket.h".
11246 (remote_open): Use union gdb_sockaddr_u.
11247 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11248 or <winsock2.h> here. Instead include "gdb_socket.h".
11249 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11250 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11251 or <sys/un.h>.
11252 (init_named_socket, gdb_agent_helper_thread): Use union
11253 gdb_sockaddr_u.
11254
aac331e4
PA
112552015-03-07 Pedro Alves <palves@redhat.com>
11256
11257 * configure.ac (build_warnings): Move
11258 -Wdeclaration-after-statement to the C-specific set.
11259 * configure: Regenerate.
11260
366c75fc
PA
112612015-03-07 Pedro Alves <palves@redhat.com>
11262
11263 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11264 or <winsock2.h> here. Instead include "gdb_socket.h".
11265 (remote_open): Use union gdb_sockaddr_u.
11266 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11267 or <winsock2.h> here. Instead include "gdb_socket.h".
11268 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11269 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11270 or <sys/un.h>.
11271 (init_named_socket, gdb_agent_helper_thread): Use union
11272 gdb_sockaddr_u.
11273
492d29ea
PA
112742015-03-07 Pedro Alves <palves@redhat.com>
11275
11276 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11277 instead.
11278
60a191ed
YQ
112792015-03-06 Yao Qi <yao.qi@linaro.org>
11280
11281 * linux-aarch64-low.c (aarch64_insert_point): Use
11282 show_debug_regs as a boolean.
11283 (aarch64_remove_point): Likewise.
11284
f5771b1d
PA
112852015-03-05 Pedro Alves <palves@redhat.com>
11286
11287 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11288 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11289 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11290 * nto-low.c (nto_target_ops): Likewise.
11291 * spu-low.c (spu_target_ops): Likewise.
11292 * win32-low.c (win32_target_ops): Likewise.
11293
3e572f71
PA
112942015-03-04 Pedro Alves <palves@redhat.com>
11295
72f4393d 11296 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11297 Decide whether a breakpoint triggered based on the SIGTRAP's
11298 siginfo.si_code.
72f4393d
L
11299 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11300 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11301 (linux_low_filter_event): Check for breakpoints before checking
11302 watchpoints.
11303 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11304 siginfo.si_code.
72f4393d
L
11305 (linux_stopped_by_sw_breakpoint)
11306 (linux_supports_stopped_by_sw_breakpoint)
11307 (linux_stopped_by_hw_breakpoint)
11308 (linux_supports_stopped_by_hw_breakpoint): New functions.
11309 (linux_target_ops): Install new target methods.
3e572f71 11310
1ec68e26
PA
113112015-03-04 Pedro Alves <palves@redhat.com>
11312
11313 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11314 * server.c (swbreak_feature, hwbreak_feature): New globals.
11315 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11316 (captured_main): Clear swbreak_feature and hwbreak_feature.
11317 * server.h (swbreak_feature, hwbreak_feature): Declare.
11318 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11319 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11320 supports_stopped_by_hw_breakpoint>: New fields.
11321 (target_supports_stopped_by_sw_breakpoint)
11322 (target_stopped_by_sw_breakpoint)
11323 (target_supports_stopped_by_hw_breakpoint)
11324 (target_stopped_by_hw_breakpoint): Declare.
11325
15c66dd6
PA
113262015-03-04 Pedro Alves <palves@redhat.com>
11327
11328 enum lwp_stop_reason -> enum target_stop_reason
11329 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11330 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11331 (linux_wait_1, stuck_in_jump_pad_callback)
11332 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11333 (linux_stopped_by_watchpoint):
11334 * linux-low.h (enum lwp_stop_reason): Delete.
11335 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11336 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11337
98fc70d6
YQ
113382015-03-04 Yao Qi <yao.qi@linaro.org>
11339
11340 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11341
dd2ac174
GB
113422015-03-03 Gary Benson <gbenson@redhat.com>
11343
11344 * hostio.c (handle_vFile): Fix prefix lengths.
11345
d68e53f4
MM
113462015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11347
11348 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11349 ptr_bits.
11350
bf2d68ab
AA
113512015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11352
11353 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11354 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11355 (clean): Add "rm -f" for above C files.
11356 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11357 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11358 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11359 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11360 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11361 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11362 (init_registers_s390x_vx_linux64)
11363 (init_registers_s390x_tevx_linux64)
11364 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11365 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11366 declarations.
11367 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11368 (s390_store_vxrs_high): New functions.
11369 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11370 NT_S390_VXRS_HIGH.
11371 (s390_arch_setup): Add logic for selecting one of the new target
11372 descriptions. Activate the new vector regsets if applicable.
11373 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11374 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11375 and init_registers_s390x_tevx_linux64.
11376
c966a859
PA
113772015-03-01 Pedro Alves <palves@redhat.com>
11378
11379 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11380 parameter.
11381
4180215b
PA
113822015-02-27 Pedro Alves <palves@redhat.com>
11383
11384 * linux-x86-low.c (u_debugreg_offset): New function.
11385 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11386
749bab01
PA
113872015-02-27 Pedro Alves <palves@redhat.com>
11388
11389 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11390 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11391 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11392 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11393 (ps_lsetfpregs, ps_getpid)
11394 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11395 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11396 (ps_lsetxregs, ps_plog): Declare.
11397
3c14e5a3
PA
113982015-02-27 Pedro Alves <palves@redhat.com>
11399
11400 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11401 IP_AGENT_EXPORT_FUNC.
11402 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11403 IP_AGENT_EXPORT_FUNC.
11404 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11405 (IP_AGENT_EXPORT): Delete.
11406 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11407 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11408 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11409 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11410 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11411 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11412 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11413 (traceframe_read_count, traceframe_write_count)
11414 (traceframes_created, trace_state_variables, get_raw_reg)
11415 (get_trace_state_variable_value, set_trace_state_variable_value)
11416 (ust_loaded, helper_thread_id, cmd_buf): Use
11417 IPA_SYM_EXPORTED_NAME.
11418 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11419 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11420 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11421 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11422 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11423 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11424 EXTERN_C_PUSH/EXTERN_C_POP.
11425 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11426 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11427 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11428 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11429 (traceframe_write_count, traceframe_read_count)
11430 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11431 (about_to_request_buffer_space, get_trace_state_variable_value)
11432 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11433 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11434 EXTERN_C_PUSH/EXTERN_C_POP.
11435 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11436 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11437 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11438 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11439 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11440 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11441 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11442 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11443 Define.
11444 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11445 (IP_AGENT_EXPORT_VAR_DECL): Define.
11446 (tracing): Declare.
11447 (gdb_agent_get_raw_reg): Declare.
11448
fe978cb0
PA
114492015-02-27 Tom Tromey <tromey@redhat.com>
11450 Pedro Alves <palves@redhat.com>
11451
11452 Rename symbols whose names are reserved C++ keywords throughout.
11453
3bc3d82a
PA
114542015-02-27 Pedro Alves <palves@redhat.com>
11455
11456 * Makefile.in (COMPILER): New, get it from autoconf.
11457 (CXX): Get from autoconf instead.
11458 (COMPILE.pre): Use COMPILER.
11459 (CC-LD): Rename to ...
11460 (CC_LD): ... this. Use COMPILER.
11461 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11462 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11463 * acinclude.m4: Include build-with-cxx.m4.
11464 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11465 Disable -Werror by default if building in C++ mode.
11466 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11467 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11468 the C++ compiler. Save/restore CXXFLAGS too.
11469 * configure: Regenerate.
11470
07697489
PA
114712015-02-27 Pedro Alves <palves@redhat.com>
11472
11473 * acinclude.m4: Include libiberty.m4.
11474 * configure.ac: Call libiberty_INIT.
11475 * config.in, configure: Regenerate.
11476
9beb7c4e
PA
114772015-02-26 Pedro Alves <palves@redhat.com>
11478
11479 * linux-low.c (linux_wait_1): When incrementing the PC past a
11480 program breakpoint always use the_low_target.breakpoint_len as
11481 increment, rather than the maximum between that and
11482 the_low_target.decr_pc_after_break.
11483
8090aef2
PA
114842015-02-23 Pedro Alves <palves@redhat.com>
11485
11486 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11487 thread was doing a step-over; always adjust the PC if
11488 we stepped over a permanent breakpoint.
11489 (linux_wait_1): If we stepped over breakpoint that was on top of a
11490 permanent breakpoint, manually advance the PC past it.
11491
bc9540e8
PA
114922015-02-23 Pedro Alves <palves@redhat.com>
11493
11494 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11495 modes.
11496 (x86_fill_gregset, x86_store_gregset): Use it when handling
11497 $orig_eax.
11498
2db9a427
PA
114992015-02-20 Pedro Alves <palves@redhat.com>
11500
11501 * thread-db.c: Include "nat/linux-procfs.h".
11502 (thread_db_init): Skip listing new threads if the kernel supports
11503 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11504
afa8d396
PA
115052015-02-20 Pedro Alves <palves@redhat.com>
11506
11507 * linux-low.c (status_pending_p_callback): Use ptid_match.
11508
c9587f88
AT
115092015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11510
11511 PR breakpoints/16812
11512 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11513 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11514 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11515
b05ec7a5
AT
115162015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11517
11518 PR breakpoints/15956
11519 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11520
d33501a5
MM
115212015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11522
11523 * linux-low.c (linux_low_btrace_conf): Print size.
11524 * server.c (handle_btrace_conf_general_set): New.
11525 (hanle_general_set): Call handle_btrace_conf_general_set.
11526 (handle_query): Report Qbtrace-conf:bts:size as supported.
11527
f4abbc16
MM
115282015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11529
11530 * linux-low.c (linux_low_enable_btrace): Update parameters.
11531 (linux_low_btrace_conf): New.
11532 (linux_target_ops)<to_btrace_conf>: Initialize.
11533 * server.c (current_btrace_conf): New.
11534 (handle_btrace_enable): Rename to ...
11535 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11536 to target_enable_btrace. Update comment. Update users.
11537 (handle_qxfer_btrace_conf): New.
11538 (qxfer_packets): Add btrace-conf entry.
11539 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11540 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11541 (target_ops)<read_btrace_conf>: New.
11542 (target_enable_btrace): Update parameters.
11543 (target_read_btrace_conf): New.
11544
043c3577
MM
115452015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11546
11547 * server.c (handle_btrace_general_set): Remove call to
11548 target_supports_btrace.
11549 (supported_btrace_packets): New.
11550 (handle_query): Call supported_btrace_packets.
11551 * target.h: include btrace-common.h.
11552 (btrace_target_info): Removed.
11553 (supports_btrace, target_supports_btrace): Update parameters.
11554
734b0e4b
MM
115552015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11556
11557 * Makefile.in (SFILES): Add common/btrace-common.c.
11558 (OBS): Add common/btrace-common.o.
11559 (btrace-common.o): Add build rules.
11560 * linux-low: Include btrace-common.h.
11561 (linux_low_read_btrace): Use struct btrace_data. Call
11562 btrace_data_init and btrace_data_fini.
11563
d6c146e9
PA
115642015-02-06 Pedro Alves <palves@redhat.com>
11565
11566 * thread-db.c (find_new_threads_callback): Add debug output.
11567
20ba1ce6
PA
115682015-02-04 Pedro Alves <palves@redhat.com>
11569
11570 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11571 (resume_stopped_resumed_lwps): New function.
11572 (linux_wait_for_event_filtered): Use it.
11573
8cc73a39
SDJ
115742015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11575
11576 * Makefile.in (SFILES): Add linux-personality.c.
11577 (linux-personality.o): New rule.
11578 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11579 list of objects to be built.
11580 * linux-low.c: Include nat/linux-personality.h.
11581 (linux_create_inferior): Remove code to disable address space
11582 randomization (moved to ../nat/linux-personality.c). Create
11583 cleanup to disable address space randomization.
11584
fb23d554
SDJ
115852015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11586
11587 * Makefile.in (posix-strerror.o): New rule.
11588 (mingw-strerror.o): Likewise.
11589 * configure: Regenerated.
11590 * configure.ac: Source file ../common/common.host. Initialize new
11591 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11592
cdf43629
YQ
115932015-01-14 Yao Qi <yao@codesourcery.com>
11594
11595 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11596 (ppc-linux.o): New rule.
11597 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11598 * configure.ac: AC_CHECK_FUNCS(getauxval).
11599 * config.in: Re-generated.
11600 * configure: Re-generated.
11601 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11602 ppc64_64bit_inferior_p
11603
514c5338
YQ
116042015-01-14 Yao Qi <yao@codesourcery.com>
11605
11606 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11607 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11608 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11609 (PT_ORIG_R3, PT_TRAP): Likewise.
11610 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11611 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11612 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11613
3368c1e5
JB
116142015-01-10 Joel Brobecker <brobecker@adacore.com>
11615
11616 * i387-fp.c (i387_cache_to_xsave): In look over
11617 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11618 zmmh_low_space field by use of zmmh_high_space.
11619
582511be
PA
116202015-01-09 Pedro Alves <palves@redhat.com>
11621
11622 * linux-low.c (step_over_bkpt): Move higher up in the file.
11623 (handle_extended_wait): Don't store the stop_pc here.
11624 (get_stop_pc): Adjust comments and rename to ...
11625 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11626 stopped for a software breakpoint or hardware breakpoint.
11627 (thread_still_has_status_pending_p): New function.
11628 (status_pending_p_callback): Use
11629 thread_still_has_status_pending_p. If the event is no longer
11630 interesting, resume the LWP.
11631 (handle_tracepoints): Add assert.
11632 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11633 (wstatus_maybe_breakpoint): New function.
11634 (cancel_breakpoint): Delete function.
11635 (check_stopped_by_watchpoint): New function, factored out from
11636 linux_low_filter_event.
11637 (lp_status_maybe_breakpoint): Delete function.
11638 (linux_low_filter_event): Remove filter_ptid argument.
11639 Leave thread group exits pending here. Store the LWP's stop PC.
11640 Always leave events pending.
11641 (linux_wait_for_event_filtered): Pull all events out of the
11642 kernel, and leave them all pending.
11643 (count_events_callback, select_event_lwp_callback): Consider all
11644 events.
11645 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11646 (select_event_lwp): Only give preference to the stepping LWP in
11647 all-stop mode. Adjust comments.
11648 (ignore_event): New function.
11649 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11650 references to cancel_breakpoints. Adjust to renames. Also give
11651 equal priority to all LWPs that have had events in non-stop mode.
11652 If reporting a software breakpoint event, unadjust the LWP's PC.
11653 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11654 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11655 Adjust.
11656 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11657 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11658 (linux_stopped_by_watchpoint): Adjust.
11659 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11660 * linux-low.h (enum lwp_stop_reason): New.
11661 (struct lwp_info) <stop_pc>: Adjust comment.
11662 <stopped_by_watchpoint>: Delete field.
11663 <stop_reason>: New field.
11664 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11665 * mem-break.c (software_breakpoint_inserted_here)
11666 (hardware_breakpoint_inserted_here): New function.
11667 * mem-break.h (software_breakpoint_inserted_here)
11668 (hardware_breakpoint_inserted_here): Declare.
11669 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11670 (cancel_breakpoints): Delete.
11671 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11672 (upload_fast_traceframes): Remove references to
11673 cancel_breakpoints.
11674
a33e3959
PA
116752015-01-09 Pedro Alves <palves@redhat.com>
11676
11677 * thread-db.c (find_new_threads_callback): Ignore thread if the
11678 kernel thread ID is -1.
11679
8784d563
PA
116802015-01-09 Pedro Alves <palves@redhat.com>
11681
11682 * linux-low.c (linux_attach_fail_reason_string): Move to
11683 nat/linux-ptrace.c, and rename.
11684 (linux_attach_lwp): Update comment.
11685 (attach_proc_task_lwp_callback): New function.
11686 (linux_attach): Adjust to rename and use
11687 linux_proc_attach_tgid_threads.
11688 (linux_attach_fail_reason_string): Delete declaration.
11689
76f2b779
JB
116902015-01-01 Joel Brobecker <brobecker@adacore.com>
11691
11692 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11693 * server.c (gdbserver_version): Likewise.
11694
fafcc06a
SDJ
116952014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11696
11697 * remote-utils.c: Include ctype.h.
11698 (input_interrupt): Explicitly handle the case when the char
11699 received is the NUL byte. Improve the printing of non-ASCII
11700 characters.
11701
beed38b8
JB
117022014-12-16 Joel Brobecker <brobecker@adacore.com>
11703
11704 * linux-low.c (linux_low_filter_event): Update call to
11705 linux_enable_event_reporting following the addition of
11706 a new parameter to that function.
11707
bf330350
CU
117082014-12-16 Catalin Udma <catalin.udma@freescale.com>
11709
11710 PR server/17457
11711 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11712 (AARCH64_FPCR_REGNO): Likewise.
11713 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11714 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11715 (aarch64_store_fpregset): Likewise.
11716
5227d625
JB
117172014-12-15 Joel Brobecker <brobecker@adacore.com>
11718
11719 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11720 Remove FIXME comment about assumption about N.
11721
f93b65a0
JB
117222014-12-13 Joel Brobecker <brobecker@adacore.com>
11723
11724 * configure.ac: If large-file support is disabled in GDBserver,
11725 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11726 * configure: Regenerate.
11727
e5a9158d
AA
117282014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11729
11730 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11731 warning upon ENODATA from ptrace.
11732 * linux-s390-low.c (s390_store_tdb): New.
11733 (s390_regsets): Add regset for NT_S390_TDB.
11734
feea5f36
AA
117352014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11736
11737 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11738 without a fill_function.
11739 * linux-s390-low.c (s390_fill_last_break): Remove.
11740 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11741 (s390_arch_setup): Use regset's size instead of fill_function for
11742 loop end condition.
11743
098dbe61
AA
117442014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11745
11746 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11747 the regset's store function when ptrace returned an error.
11748 * regcache.c (get_thread_regcache): Invalidate register cache
11749 before fetching inferior's registers.
11750
28eef672
AA
117512014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11752
11753 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11754 while-loop as for-loop.
11755 (regsets_store_inferior_registers): Likewise.
11756
bdca27a2
YQ
117572014-11-28 Yao Qi <yao@codesourcery.com>
11758
11759 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11760 * config.in, configure: Re-generate.
11761 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11762 is defined.
11763
9c232dda
YQ
117642014-11-21 Yao Qi <yao@codesourcery.com>
11765
11766 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11767 (AC_CHECK_HEADERS): Remove malloc.h.
11768 * configure: Re-generated.
11769 * config.in: Re-generated.
11770 * server.h: Don't include alloca.h and malloc.h.
11771 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11772 Don't include malloc.h.
11773
43968415
JB
117742014-11-17 Joel Brobecker <brobecker@adacore.com>
11775
11776 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11777 corresponding ERRNO check in same block.
11778
40e91bc7
PA
117792014-11-12 Pedro Alves <palves@redhat.com>
11780
11781 * server.c (cont_thread): Update comment.
11782 (start_inferior, attach_inferior): No longer clear cont_thread.
11783 (handle_v_cont): No longer set cont_thread.
11784 (captured_main): Clear cont_thread each time a GDB connects.
11785
c2c118cf
PA
117862014-11-12 Pedro Alves <palves@redhat.com>
11787
11788 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11789 thread, and don't resume all threads if the Hc thread has exited.
11790
78708b7c
PA
117912014-11-12 Pedro Alves <palves@redhat.com>
11792
11793 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11794 the process group instead of to a specific LWP.
11795
a2abc7de
PA
117962014-10-15 Pedro Alves <palves@redhat.com>
11797
11798 PR server/17487
11799 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11800 parameter.
11801 (arm_set_thread_context): Delete.
11802 (the_low_target): Adjust.
11803 * win32-i386-low.c (debug_registers_changed)
11804 (debug_registers_used): Delete.
11805 (update_debug_registers_callback): New function.
11806 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11807 needing to update their debug registers.
11808 (win32_get_current_dr): New function.
11809 (x86_dr_low_get_addr, x86_dr_low_get_control)
11810 (x86_dr_low_get_status): Fetch the debug register from the thread
11811 record's context.
11812 (i386_initial_stuff): Adjust.
11813 (i386_get_thread_context): Remove current_event parameter. Don't
11814 clear debug_registers_changed nor copy DR values to
11815 debug_reg_state.
11816 (i386_set_thread_context): Delete.
11817 (i386_prepare_to_resume): New function.
11818 (i386_thread_added): Mark the thread as needing to update irs
11819 debug registers.
11820 (the_low_target): Remove i386_set_thread_context and install
11821 i386_prepare_to_resume.
11822 * win32-low.c (win32_get_thread_context): Adjust.
11823 (win32_set_thread_context): Use SetThreadContext
11824 directly.
11825 (win32_prepare_to_resume): New function.
11826 (win32_require_context): New function, factored out from ...
11827 (thread_rec): ... this.
11828 (continue_one_thread): Call win32_prepare_to_resume on each thread
11829 we're about to continue.
11830 (win32_resume): Call win32_prepare_to_resume on the event thread.
11831 * win32-low.h (struct win32_thread_info)
11832 <debug_registers_changed>: New field.
11833 (struct win32_target_ops): Change prototype of set_thread_context,
11834 delete set_thread_context and add prepare_to_resume.
11835 (win32_require_context): New declaration.
11836
a442d071
GB
118372014-10-08 Gary Benson <gbenson@redhat.com>
11838
11839 * server.h: Do not include common-exceptions.h.
11840
6f1947e8
GB
118412014-10-08 Gary Benson <gbenson@redhat.com>
11842
11843 * server.h: Do not include cleanups.h.
11844
63b434a4
JH
118452014-09-30 James Hogan <james.hogan@imgtec.com>
11846
11847 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11848 mips64-dsp-linux.c.
11849
c4d9ceb6
YQ
118502014-09-23 Yao Qi <yao@codesourcery.com>
11851
11852 * linux-low.c (lp_status_maybe_breakpoint): New function.
11853 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11854 (count_events_callback): Likewise.
11855 (select_event_lwp_callback): Likewise.
11856 (cancel_breakpoints_callback): Likewise.
11857
89a5711c
DB
118582014-09-19 Don Breazeal <donb@codesourcery.com>
11859
11860 * linux-low.c (handle_extended_wait): Call
11861 linux_ptrace_get_extended_event.
11862 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11863 linux_is_extended_waitstatus.
11864
bffc0964
JB
118652014-09-16 Joel Brobecker <brobecker@adacore.com>
11866
11867 * Makefile.in (CPPFLAGS): Define.
11868 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11869 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11870
0bfdf32f
GB
118712014-09-16 Gary Benson <gbenson@redhat.com>
11872
11873 * inferiors.h (current_inferior): Renamed as...
11874 (current_thread): New variable. All uses updated.
11875 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11876 (maybe_move_out_of_jump_pad): Likewise.
11877 (cancel_breakpoint): Likewise.
11878 (linux_low_filter_event): Likewise.
11879 (wait_for_sigstop): Likewise.
11880 (linux_resume_one_lwp): Likewise.
11881 (need_step_over_p): Likewise.
11882 (start_step_over): Likewise.
11883 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11884 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11885 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11886 and save_inferior as saved_thread.
11887 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11888 saved_thread.
11889 (regcache_invalidate_thread): Likewise.
11890 * remote-utils.c (prepare_resume_reply): Likewise.
11891 * thread-db.c (thread_db_get_tls_address): Likewise.
11892 (disable_thread_event_reporting): Likewise.
11893 (remove_thread_event_breakpoints): Likewise.
11894 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11895 as saved_thread.
11896 * target.h (set_desired_inferior): Renamed as...
11897 (set_desired_thread): New declaration. All uses updated.
11898 * server.c (myresume): Updated comment to reference thread instead
11899 of inferior.
11900 (handle_serial_event): Likewise.
11901 (handle_target_event): Likewise.
11902
361c8ade
GB
119032014-09-12 Tom Tromey <tromey@redhat.com>
11904 Gary Benson <gbenson@redhat.com>
11905
11906 * regcache.h: Include common-regcache.h.
11907 (regcache_read_pc): Don't declare.
11908 * regcache.c (get_thread_regcache_for_ptid): New function.
11909
bd9269f7
GB
119102014-09-11 Tom Tromey <tromey@redhat.com>
11911 Gary Benson <gbenson@redhat.com>
11912
11913 * symbol.c: New file.
11914 * Makefile.in (SFILES): Add symbol.c.
11915 (OBS): Add symbol.o.
11916
f8c1d06b
GB
119172014-09-11 Gary Benson <gbenson@redhat.com>
11918
11919 * target.c (target_stop_ptid, target_continue_ptid): New
11920 functions.
11921
721ec300
GB
119222014-09-11 Tom Tromey <tromey@redhat.com>
11923 Gary Benson <gbenson@redhat.com>
11924
11925 * target.h: Include target/target.h.
11926 * target.c (target_read_memory, target_read_uint32)
11927 (target_write_memory): New functions.
11928
c5e92cca
GB
119292014-09-11 Gary Benson <gbenson@redhat.com>
11930
11931 * server.h (debug_hw_points): Don't declare.
11932 * server.c (debug_hw_points): Don't define. Replace all uses
11933 with show_debug_regs.
11934 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11935 all uses with show_debug_regs.
11936
2e4bb98a
EBM
119372014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11938
11939 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11940 endianness into account.
11941 (ppc_supply_ptrace_register): Likewise.
11942
ac740bc7
JH
119432014-09-03 James Hogan <james.hogan@imgtec.com>
11944
11945 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11946 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11947
97ea6506
GB
119482014-09-03 Gary Benson <gbenson@redhat.com>
11949
11950 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11951 ALL_DEBUG_ADDRESS_REGISTERS.
11952
df7e5265
GB
119532014-09-02 Gary Benson <gbenson@redhat.com>
11954
11955 * i386-low.h: Renamed as...
11956 * x86-low.h: New file. All type, function and variable name
11957 prefixes changed from "i386_" to "x86_". All references updated.
11958 * i386-low.c: Renamed as...
11959 * x86-low.c: New file. All type, function and variable name
11960 prefixes changed from "i386_" to "x86_". All references updated.
11961
ed859da7
GB
119622014-09-02 Gary Benson <gbenson@redhat.com>
11963
11964 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11965 (x86_linux_new_thread): Likewise.
11966
860789c7
GB
119672014-08-29 Gary Benson <gbenson@redhat.com>
11968
11969 * server.h (setjmp.h): Do not include.
11970 (toplevel): Do not declare.
11971 (common-exceptions.h): Include.
11972 (cleanups.h): Likewise.
11973 * server.c (toplevel): Do not define.
11974 (exit_code): New static global.
11975 (detach_or_kill_for_exit_cleanup): New function.
11976 (main): New function. Original main renamed to...
11977 (captured_main): New function.
11978 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11979
ff55e1b5
GB
119802014-08-29 Gary Benson <gbenson@redhat.com>
11981
11982 * Makefile.in (SFILES): Add common/common-exceptions.c.
11983 (OBS): Add common-exceptions.o.
11984 (common-exceptions.o): New rule.
11985 * utils.c (prepare_to_throw_exception): New function.
11986
e9bcb658
GB
119872014-08-29 Gary Benson <gbenson@redhat.com>
11988
11989 * config.in: Regenerate.
11990 * configure: Likewise.
11991
e3180625
GB
119922014-08-29 Gary Benson <gbenson@redhat.com>
11993
11994 * Makefile.in (SFILES): Add common/cleanups.c.
11995 (OBS): cleanups.o.
11996 (cleanups.o): New rule.
11997
e3d6ba5d
GB
119982014-08-29 Gary Benson <gbenson@redhat.com>
11999
12000 * utils.c (internal_vwarning): New function.
12001
7096e886
GB
120022014-08-28 Gary Benson <gbenson@redhat.com>
12003
12004 * utils.h (fatal): Remove declaration.
12005 * utils.c (fatal): Remove function.
12006
14ce3192
GB
120072014-08-28 Gary Benson <gbenson@redhat.com>
12008
12009 * tracepoint.c (gdb_agent_init): Replace fatal with
12010 perror_with_name.
12011 (initialize_tracepoint): Likewise.
12012
50278d59
GB
120132014-08-28 Gary Benson <gbenson@redhat.com>
12014
12015 * remote-utils.c (remote_prepare): Replace fatal with error.
12016
aa96c426
GB
120172014-08-28 Gary Benson <gbenson@redhat.com>
12018
12019 * linux-low.c (linux_async): Replace fatal with warning.
12020 Tidy up and return.
12021 (linux_start_non_stop): Return -1 if linux_async failed.
12022
f7160e97
GB
120232014-08-28 Gary Benson <gbenson@redhat.com>
12024
12025 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12026 gdb_assert.
12027 (i386_dr_low_get_addr): Remove vague comment.
12028 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12029 gdb_assert.
12030
38e08fca
GB
120312014-08-28 Gary Benson <gbenson@redhat.com>
12032
12033 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12034 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12035 internal_error.
12036 (linux_resume_one_lwp): Likewise.
12037 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12038 gdb_assert.
12039 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12040 with internal_error.
12041 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12042 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12043 (find_register_by_name): Replace fatal with internal_error.
12044 (find_regno): Likewise.
12045 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12046 * thread-db.c (thread_db_create_event): Likewise.
12047 (thread_db_load_search): Likewise.
12048 (try_thread_db_load_1): Likewise.
12049 * tracepoint.c (get_jump_space_head): Replace fatal with
12050 internal_error.
12051 (claim_trampoline_space): Likewise.
12052 (have_fast_tracepoint_trampoline_buffer): Likewise.
12053 (cmd_qtstart): Likewise.
12054 (stop_tracing): Likewise.
12055 (fast_tracepoint_collecting): Likewise.
12056 (target_malloc): Likewise.
12057 (download_tracepoint): Likewise.
12058 (download_trace_state_variables): Replace check with gdb_assert.
12059 (upload_fast_traceframes): Replace fatal with internal_error.
12060
34abf635
GB
120612014-08-19 Tom Tromey <tromey@redhat.com>
12062 Gary Benson <gbenson@redhat.com>
12063
12064 * Makefile.in (SFILES): Add common/common-debug.c.
12065 (OBS): Add common-debug.o.
12066 (common-debug.o): New rule.
12067 * debug.h (debug_printf): Don't declare.
12068 * debug.c (debug_printf): Renamed and rewritten as...
12069 (debug_vprintf): New function.
12070
f6e94d78
GB
120712014-08-19 Gary Benson <gbenson@redhat.com>
12072
12073 * utils.h: Do not include print-utils.h.
12074
9239eeab
GB
120752014-08-19 Tom Tromey <tromey@redhat.com>
12076 Gary Benson <gbenson@redhat.com>
12077
12078 * server.h: Add static assertion.
12079 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12080
ef87c8bb
GB
120812014-08-19 Tom Tromey <tromey@redhat.com>
12082 Gary Benson <gbenson@redhat.com>
12083
12084 * Makefile.in (SFILES): Add common/errors.c.
12085 (OBS): Add errors.o.
12086 (IPA_OBS): Add errors-ipa.o.
12087 (errors.o): New rule.
12088 (errors-ipa.o): Likewise.
12089 * utils.h (perror_with_name, error, warning): Don't declare.
12090 * utils.c (warning): Renamed and rewritten as...
12091 (vwarning): New function.
12092 (error): Renamed and rewritten as...
12093 (verror): New function.
12094 (internal_error): Renamed and rewritten as...
12095 (internal_verror): New function.
12096
bb974a24
GB
120972014-08-07 Gary Benson <gbenson@redhat.com>
12098
12099 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12100 * configure: Regenerate.
12101 * config.in: Likewise.
12102 * server.h: Do not include errno.h.
12103 * event-loop.c: Likewise.
12104 * hostio-errno.c: Likewise.
12105 * linux-low.c: Likewise.
12106 * remote-utils.c: Likewise.
12107 * spu-low.c: Likewise.
12108 * utils.c: Likewise.
12109 * gdbreplay.c: Unconditionally include errno.h.
12110
6d3d12eb
GB
121112014-08-07 Gary Benson <gbenson@redhat.com>
12112
12113 * server.h: Do not include string.h.
12114 * event-loop.c: Likewise.
12115 * linux-low.c: Likewise.
12116 * regcache.c: Likewise.
12117 * remote-utils.c: Likewise.
12118 * spu-low.c: Likewise.
12119 * utils.c: Likewise.
12120
dccbb609
GB
121212014-08-07 Gary Benson <gbenson@redhat.com>
12122
12123 * server.h: Do not include gdb_assert.h.
12124
e76df0d0
GB
121252014-08-07 Gary Benson <gbenson@redhat.com>
12126
12127 * server.h: Do not include common-utils.h.
12128
4cb9c816
GB
121292014-08-07 Gary Benson <gbenson@redhat.com>
12130
12131 * server.h: Do not include ptid.h.
12132 * notif.h: Likewise.
12133
3995eeee
GB
121342014-08-07 Gary Benson <gbenson@redhat.com>
12135
12136 * server.h: Do not include gdb_locale.h.
12137
cb9f1a9b
GB
121382014-08-07 Gary Benson <gbenson@redhat.com>
12139
12140 * server.h: Do not include gdb/signals.h.
12141 * win32-low.c: Likewise.
12142
a5fceff8
GB
121432014-08-07 Gary Benson <gbenson@redhat.com>
12144
12145 * server.h: Do not include pathmax.h.
12146
b9391142
GB
121472014-08-07 Gary Benson <gbenson@redhat.com>
12148
12149 * server.h: Do not include libiberty.h.
12150 * linux-bfin-low.c: Likewise.
12151
0e443c87
GB
121522014-08-07 Gary Benson <gbenson@redhat.com>
12153
12154 * server.h: Do not include ansidecl.h.
12155
8ebb3f56
GB
121562014-08-07 Gary Benson <gbenson@redhat.com>
12157
12158 * linux-x86-low.c: Do not include stddef.h.
12159 * lynx-ppc-low.c: Likewise.
12160 * tracepoint.c: Likewise.
12161
8980bdf6
GB
121622014-08-07 Gary Benson <gbenson@redhat.com>
12163
12164 * server.h: Do not include stdarg.h.
12165 * nto-low.c: Likewise.
12166
d7096f71
GB
121672014-08-07 Gary Benson <gbenson@redhat.com>
12168
12169 * server.h: Do not include stdlib.h.
12170 * inferiors.c: Likewise.
12171 * linux-low.c: Likewise.
12172 * regcache.c: Likewise.
12173 * spu-low.c: Likewise.
12174 * tracepoint.c: Likewise.
12175 * utils.c: Likewise.
12176
d02f550d
GB
121772014-08-07 Gary Benson <gbenson@redhat.com>
12178
12179 * server.h: Do not include stdio.h.
12180 * linux-low.c: Likewise.
12181 * remote-utils.c: Likewise.
12182 * spu-low.c: Likewise.
12183 * utils.c: Likewise.
12184 * wincecompat.c: Likewise.
12185
87f6c4e3
GB
121862014-08-06 Gary Benson <gbenson@redhat.com>
12187
12188 * regcache.c (init_register_cache): Move conditionals inside if.
12189
7089dca4
GB
121902014-08-06 Gary Benson <gbenson@redhat.com>
12191
12192 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12193
462f517e
GB
121942014-07-31 Gary Benson <gbenson@redhat.com>
12195
12196 * ax.h: Do not include server.h.
12197 * gdbthread.h: Likewise.
12198 * lynx-low.h: Likewise.
12199 * notif.h: Likewise.
12200
976411d6
GB
122012014-07-30 Gary Benson <gbenson@redhat.com>
12202
12203 * server.h: Include common-defs.h.
12204 Do not include config.h or build-gnulib-gdbserver/config.h.
12205
d41f6d8e
GB
122062014-07-30 Gary Benson <gbenson@redhat.com>
12207
12208 * hostio-errno.c: Move server.h to top of includes list.
12209 * inferiors.c: Likewise.
12210 * linux-x86-low.c: Likewise.
12211 * notif.c: Include server.h.
12212
314c6a35
TT
122132014-07-24 Tom Tromey <tromey@redhat.com>
12214 Gary Benson <gbenson@redhat.com>
12215
12216 * server.h (CORE_ADDR): Now unsigned.
12217
69ff6be5
PA
122182014-07-16 Pedro Alves <palves@redhat.com>
12219
12220 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12221
ce9e3fe7
PA
122222014-07-15 Pedro Alves <palves@redhat.com>
12223
12224 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12225 copy.
12226
e76126e8
PA
122272014-07-11 Pedro Alves <palves@redhat.com>
12228
12229 * linux-low.c (kill_wait_lwp): New function, based on
12230 kill_one_lwp_callback, but use my_waitpid directly.
12231 (kill_one_lwp_callback, linux_kill): Use it.
12232
8e9db26e
PA
122332014-06-23 Pedro Alves <palves@redhat.com>
12234
12235 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12236 before setting DR0..DR3.
12237
698b3e08
GB
122382014-06-20 Gary Benson <gbenson@redhat.com>
12239
12240 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12241 * configure: Regenerated.
12242 * config.in: Likewise.
12243
125f8a3d
GB
122442014-06-20 Gary Benson <gbenson@redhat.com>
12245
12246 * Makefile.in (SFILES): Update locations for files moved
12247 from common to nat.
12248 (object file files): Reordered.
12249
42995dbd
GB
122502014-06-20 Gary Benson <gbenson@redhat.com>
12251
12252 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12253 (i386_dr_low_set_addr): Likewise.
12254 (i386_dr_low_get_addr): Likewise.
12255 (i386_dr_low_can_set_control): Likewise.
12256 (i386_dr_low_set_control): Likewise.
12257 (i386_dr_low_get_control): Likewise.
12258 (i386_dr_low_get_status): Likewise.
12259 (i386_get_debug_register_length): Likewise.
12260 * linux-x86-low.c (i386_dr_low_set_addr):
12261 Changed signature. Made static.
12262 (i386_dr_low_get_addr): Likewise.
12263 (i386_dr_low_set_control): Likewise.
12264 (i386_dr_low_get_control): Likewise.
12265 (i386_dr_low_get_status): Likewise.
12266 (i386_dr_low): New global variable.
12267 * win32-i386-low.c (i386_dr_low_set_addr):
12268 Changed signature. Made static.
12269 (i386_dr_low_get_addr): Likewise.
12270 (i386_dr_low_set_control): Likewise.
12271 (i386_dr_low_get_control): Likewise.
12272 (i386_dr_low_get_status): Likewise.
12273 (i386_dr_low): New global variable.
12274
e1d2394b
MS
122752014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12276
12277 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12278 * Makefile.in (AR, AR_FLAGS): Define.
12279 * configure: Regenerate.
12280
3a8ee006
GB
122812014-06-19 Gary Benson <gbenson@redhat.com>
12282
12283 * Makefile.in (i386-dregs.o): New rule.
12284 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12285 * i386-low.c (target.h): Remove include.
12286 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12287 (DR_CONTROL_SHIFT): Likewise.
12288 (DR_CONTROL_SIZE): Likewise.
12289 (DR_RW_EXECUTE): Likewise.
12290 (DR_RW_WRITE): Likewise.
12291 (DR_RW_READ): Likewise.
12292 (DR_RW_IORW): Likewise.
12293 (DR_LEN_1): Likewise.
12294 (DR_LEN_2): Likewise.
12295 (DR_LEN_4): Likewise.
12296 (DR_LEN_8): Likewise.
12297 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12298 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12299 (DR_ENABLE_SIZE): Likewise.
12300 (DR_LOCAL_SLOWDOWN): Likewise.
12301 (DR_GLOBAL_SLOWDOWN): Likewise.
12302 (DR_CONTROL_RESERVED): Likewise.
12303 (I386_DR_CONTROL_MASK): Likewise.
12304 (I386_DR_VACANT): Likewise.
12305 (I386_DR_LOCAL_ENABLE): Likewise.
12306 (I386_DR_GLOBAL_ENABLE): Likewise.
12307 (I386_DR_DISABLE): Likewise.
12308 (I386_DR_SET_RW_LEN): Likewise.
12309 (I386_DR_GET_RW_LEN): Likewise.
12310 (I386_DR_WATCH_HIT): Likewise.
12311 (i386_wp_op_t): Likewise.
12312 (i386_show_dr): Likewise.
12313 (i386_length_and_rw_bits): Likewise.
12314 (i386_insert_aligned_watchpoint): Likewise.
12315 (i386_remove_aligned_watchpoint): Likewise.
12316 (i386_handle_nonaligned_watchpoint): Likewise.
12317 i386_update_inferior_debug_regs(): Likewise.
12318 (i386_dr_insert_watchpoint): Likewise.
12319 (i386_dr_remove_watchpoint): Likewise.
12320 (i386_dr_region_ok_for_watchpoint): Likewise.
12321 (i386_dr_stopped_data_address): Likewise.
12322 (i386_dr_stopped_by_watchpoint): Likewise.
12323
8f26655c
GB
123242014-06-19 Gary Benson <gbenson@redhat.com>
12325
12326 * i386-low.c (i386_dr_show): Renamed to
12327 i386_show_dr and made static. All uses updated.
12328 (i386_dr_length_and_rw_bits): Renamed to
12329 i386_length_and_rw_bits and made static.
12330 All uses updated.
12331 (i386_dr_insert_aligned_watchpoint): Renamed to
12332 i386_insert_aligned_watchpoint and made static.
12333 All uses updated.
12334 (i386_dr_remove_aligned_watchpoint): Renamed to
12335 i386_remove_aligned_watchpoint and made static.
12336 All uses updated.
12337 (i386_dr_update_inferior_debug_regs): Renamed to
12338 i386_update_inferior_debug_regs and made static.
12339 All uses updated.
12340
b9228891
GB
123412014-06-18 Gary Benson <gbenson@redhat.com>
12342
5171def3
GB
12343 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12344 (i386_dr_low_can_set_control): Likewise.
12345 (i386_get_debug_register_length): Likewise.
12346 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12347 (i386_dr_low_can_set_control): Likewise.
12348 (i386_get_debug_register_length): Likewise.
12349
123502014-06-17 Gary Benson <gbenson@redhat.com>
12351
b9228891
GB
12352 * i386-low.h (i386-dregs.h): New include.
12353 (DR_FIRSTADDR): Now in i386-dregs.h.
12354 (DR_LASTADDR): Likewise.
12355 (DR_NADDR): Likewise.
12356 (DR_STATUS): Likewise.
12357 (DR_CONTROL): Likewise.
12358 (i386_debug_reg_state): Likewise.
12359 (i386_dr_insert_watchpoint): Likewise.
12360 (i386_dr_remove_watchpoint): Likewise.
12361 (i386_dr_region_ok_for_watchpoint): Likewise.
12362 (i386_dr_stopped_data_address): Likewise.
12363 (i386_dr_stopped_by_watchpoint): Likewise.
12364 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12365
4be83cc2
GB
123662014-06-18 Gary Benson <gbenson@redhat.com>
12367
12368 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12369 i386_dr_insert_watchpoint.
12370 (i386_low_remove_watchpoint): Renamed to
12371 i386_dr_remove_watchpoint.
12372 (i386_low_region_ok_for_watchpoint): Renamed to
12373 i386_dr_region_ok_for_watchpoint.
12374 (i386_low_stopped_data_address): Renamed to
12375 i386_dr_stopped_data_address.
12376 (i386_low_stopped_by_watchpoint): Renamed to
12377 i386_dr_stopped_by_watchpoint.
12378 * i386-low.c (i386_show_dr): Renamed to
12379 i386_dr_show and made nonstatic. All uses updated.
12380 (i386_length_and_rw_bits): Renamed to
12381 i386_dr_length_and_rw_bits and made nonstatic.
12382 All uses updated.
12383 (i386_insert_aligned_watchpoint): Renamed to
12384 i386_dr_insert_aligned_watchpoint and made nonstatic.
12385 All uses updated.
12386 (i386_remove_aligned_watchpoint): Renamed to
12387 i386_dr_remove_aligned_watchpoint and made nonstatic.
12388 All uses updated.
12389 (i386_update_inferior_debug_regs): Renamed to
12390 i386_dr_update_inferior_debug_regs and made nonstatic.
12391 All uses updated.
12392 (i386_low_insert_watchpoint): Renamed to
12393 i386_dr_insert_watchpoint. All uses updated.
12394 (i386_low_remove_watchpoint): Renamed to
12395 i386_dr_remove_watchpoint. All uses updated.
12396 (i386_low_region_ok_for_watchpoint): Renamed to
12397 i386_dr_region_ok_for_watchpoint. All uses updated.
12398 (i386_low_stopped_data_address): Renamed to
12399 i386_dr_stopped_data_address. All uses updated.
12400 (i386_low_stopped_by_watchpoint): Renamed to
12401 i386_dr_stopped_by_watchpoint. All uses updated.
12402
131aa0d4
GB
124032014-06-18 Gary Benson <gbenson@redhat.com>
12404
12405 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12406 (i386_dr_low_can_set_control): Likewise.
12407 (i386_insert_aligned_watchpoint): New check.
12408
d9305f7f
GB
124092014-06-18 Gary Benson <gbenson@redhat.com>
12410
12411 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12412 Renamed to state.
12413
e927c9fc
GB
124142014-06-18 Gary Benson <gbenson@redhat.com>
12415
12416 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12417 instead of fatal and error.
12418 (i386_handle_nonaligned_watchpoint): Likewise.
12419
1b6d4134
GB
124202014-06-18 Gary Benson <gbenson@redhat.com>
12421
12422 * i386-low.c (i386_get_debug_register_length): New macro.
12423 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12424 (i386_show_dr): Use debug_printf instead of fprintf. Use
12425 phex to format values.
12426
6e62758f
GB
124272014-06-18 Gary Benson <gbenson@redhat.com>
12428
12429 * i386-low.h: Comment changes.
12430 * i386-low.c: Likewise.
12431
fc6e2f03
GB
124322014-06-18 Gary Benson <gbenson@redhat.com>
12433
12434 * i386-low.c: Whitespace changes.
12435
f9d1eeed
TT
124362014-06-12 Tom Tromey <tromey@redhat.com>
12437
12438 * utils.c (freeargv): Remove.
12439
0b04e523
TT
124402014-06-12 Tom Tromey <tromey@redhat.com>
12441
12442 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12443 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12444 (parse_debug_format_options): Likewise.
12445 (gdbserver_usage): Likewise.
12446 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12447 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12448 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12449 against libiberty.
12450 ($(LIBGNU)): Depend on libiberty.
12451 (all-lib): Recurse into all subdirs.
12452 (install-only): Invoke "install" target in subdirs.
12453 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12454 targets.
12455 * configure: Rebuild.
12456 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12457 for vasprintf, vsnprintf, or gettimeofday.
12458 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12459 srv_tgtobj.
12460
270c9937
JB
124612014-06-05 Joel Brobecker <brobecker@adacore.com>
12462
12463 * development.sh: Delete.
12464 * Makefile.in (config.status): Adjust dependency on development.sh.
12465 * configure.ac: Adjust development.sh source call.
12466 * configure: Regenerate.
12467
0a261ed8
PA
124682014-06-02 Pedro Alves <palves@redhat.com>
12469
12470 * ax.c (gdb_free_agent_expr): New function.
12471 * ax.h (gdb_free_agent_expr): New declaration.
12472 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12473 list.
12474 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12475 static.
12476 (clear_breakpoint_conditions_and_commands): New function.
12477 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12478 (clear_breakpoint_conditions_and_commands): New declaration.
12479
e9dae05e
RR
124802014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12481
12482 * linux-aarch64-low.c (asm/ptrace.h): Include.
12483
5876f503
JK
124842014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12485
12486 Fix TLS access for -static -pthread.
12487 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12488 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12489 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12490
802e8e6d
PA
124912014-05-20 Pedro Alves <palves@redhat.com>
12492
12493 * linux-aarch64-low.c (aarch64_insert_point)
12494 (aarch64_remove_point): No longer check whether the type is
12495 supported here. Adjust to new interface.
12496 (the_low_target): Install aarch64_supports_z_point_type as
12497 supports_z_point_type method.
12498 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12499 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12500 instead of a Z packet char. Adjust.
12501 (arm_supports_z_point_type): New function.
12502 (arm_insert_point, arm_remove_point): Adjust to new interface.
12503 (the_low_target): Install arm_supports_z_point_type.
12504 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12505 (cris_insert_point, cris_remove_point): Adjust to new interface.
12506 Don't check whether the type is supported here.
12507 (the_low_target): Install cris_supports_z_point_type.
12508 * linux-low.c (linux_supports_z_point_type): New function.
12509 (linux_insert_point, linux_remove_point): Adjust to new interface.
12510 * linux-low.h (struct linux_target_ops) <insert_point,
12511 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12512 raw_breakpoint pointer parameter.
12513 <supports_z_point_type>: New method.
12514 * linux-mips-low.c (mips_supports_z_point_type): New function.
12515 (mips_insert_point, mips_remove_point): Adjust to new interface.
12516 Use mips_supports_z_point_type.
12517 (the_low_target): Install mips_supports_z_point_type.
12518 * linux-ppc-low.c (the_low_target): Install NULL as
12519 supports_z_point_type method.
12520 * linux-s390-low.c (the_low_target): Install NULL as
12521 supports_z_point_type method.
12522 * linux-sparc-low.c (the_low_target): Install NULL as
12523 supports_z_point_type method.
12524 * linux-x86-low.c (x86_supports_z_point_type): New function.
12525 (x86_insert_point): Adjust to new insert_point interface. Use
12526 insert_memory_breakpoint. Adjust to new
12527 i386_low_insert_watchpoint interface.
12528 (x86_remove_point): Adjust to remove_point interface. Use
12529 remove_memory_breakpoint. Adjust to new
12530 i386_low_remove_watchpoint interface.
12531 (the_low_target): Install x86_supports_z_point_type.
12532 * lynx-low.c (lynx_target_ops): Install NULL as
12533 supports_z_point_type callback.
12534 * nto-low.c (nto_supports_z_point_type): New.
12535 (nto_insert_point, nto_remove_point): Adjust to new interface.
12536 (nto_target_ops): Install nto_supports_z_point_type.
12537 * mem-break.c: Adjust intro comment.
12538 (struct raw_breakpoint) <raw_type, size>: New fields.
12539 <inserted>: Update comment.
12540 <shlib_disabled>: Delete field.
12541 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12542 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12543 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12544 (raw_bkpt_type_to_target_hw_bp_type): New function.
12545 (find_enabled_raw_code_breakpoint_at): New function.
12546 (find_raw_breakpoint_at): New type and size parameters. Use them.
12547 (insert_memory_breakpoint): New function, based off
12548 set_raw_breakpoint_at.
12549 (remove_memory_breakpoint): New function.
12550 (set_raw_breakpoint_at): Reimplement.
12551 (set_breakpoint): New, based on set_breakpoint_at.
12552 (set_breakpoint_at): Reimplement.
12553 (delete_raw_breakpoint): Go through the_target->remove_point
12554 instead of assuming memory breakpoints.
12555 (find_gdb_breakpoint_at): Delete.
12556 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12557 (find_gdb_breakpoint): New function.
12558 (set_gdb_breakpoint_at): Delete.
12559 (z_type_supported): New function.
12560 (set_gdb_breakpoint_1): New function, loosely based off
12561 set_gdb_breakpoint_at.
12562 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12563 (delete_gdb_breakpoint_at): Delete.
12564 (delete_gdb_breakpoint_1): New function, loosely based off
12565 delete_gdb_breakpoint_at.
12566 (delete_gdb_breakpoint): New function.
12567 (clear_gdb_breakpoint_conditions): Rename to ...
12568 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12569 breakpoint.
12570 (add_condition_to_breakpoint): Make static.
12571 (add_breakpoint_condition): Take a struct breakpoint pointer
12572 instead of an address. Adjust.
12573 (gdb_condition_true_at_breakpoint): Rename to ...
12574 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12575 z_type parameter.
12576 (gdb_condition_true_at_breakpoint): Reimplement.
12577 (add_breakpoint_commands): Take a struct breakpoint pointer
12578 instead of an address. Adjust.
12579 (gdb_no_commands_at_breakpoint): Rename to ...
12580 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12581 parameter. Return true if no breakpoint was found. Change debug
12582 output.
12583 (gdb_no_commands_at_breakpoint): Reimplement.
12584 (run_breakpoint_commands): Rename to ...
12585 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12586 and change return type to boolean.
12587 (run_breakpoint_commands): New function.
12588 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12589 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12590 breakpoint. Go through the_target->remove_point instead of
12591 assuming memory breakpoint.
12592 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12593 software and hardware breakpoints.
12594 (reinsert_raw_breakpoint): Go through the_target->insert_point
12595 instead of assuming memory breakpoint.
12596 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12597 software and hardware breakpoints.
12598 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12599 Check both software and hardware breakpoints.
12600 (validate_inserted_breakpoint): Assert the breakpoint is a
12601 software breakpoint. Set the inserted flag to -1 instead of
12602 setting shlib_disabled.
12603 (delete_disabled_breakpoints): Adjust.
12604 (validate_breakpoints): Only validate software breakpoints.
12605 Adjust to inserted flag change.
12606 (check_mem_read, check_mem_write): Skip breakpoint types other
12607 than software breakpoints. Adjust to inserted flag change.
12608 * mem-break.h (enum raw_bkpt_type): New enum.
12609 (raw_breakpoint, struct process_info): Forward declare.
12610 (Z_packet_to_target_hw_bp_type): Delete declaration.
12611 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12612 (set_gdb_breakpoint, delete_gdb_breakpoint)
12613 (clear_breakpoint_conditions): New declarations.
12614 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12615 (breakpoint_inserted_here): Update comment.
12616 (add_breakpoint_condition, add_breakpoint_commands): Replace
12617 address parameter with a breakpoint pointer parameter.
12618 (gdb_breakpoint_here): Update comment.
12619 (delete_gdb_breakpoint_at): Delete.
12620 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12621 * server.c (process_point_options): Take a struct breakpoint
12622 pointer instead of an address. Adjust.
12623 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12624 delete_gdb_breakpoint.
12625 * spu-low.c (spu_target_ops): Install NULL as
12626 supports_z_point_type method.
12627 * target.h: Include mem-break.h.
12628 (struct target_ops) <prepare_to_access_memory>: Update comment.
12629 <supports_z_point_type>: New field.
12630 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12631 instead of a char. Also take a raw breakpoint pointer.
12632 * win32-arm-low.c (the_low_target): Install NULL as
12633 supports_z_point_type.
12634 * win32-i386-low.c (i386_supports_z_point_type): New function.
12635 (i386_insert_point, i386_remove_point): Adjust to new interface.
12636 (the_low_target): Install i386_supports_z_point_type.
12637 * win32-low.c (win32_supports_z_point_type): New function.
12638 (win32_insert_point, win32_remove_point): Adjust to new interface.
12639 (win32_target_ops): Install win32_supports_z_point_type.
12640 * win32-low.h (struct win32_target_ops):
12641 <supports_z_point_type>: New method.
12642 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12643 instead of a char. Also take a raw breakpoint pointer.
12644
932539e3
PA
126452014-05-20 Pedro Alves <palves@redhat.com>
12646
12647 * mem-break.h: Include break-common.h.
12648 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12649 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12650 (Z_packet_to_target_hw_bp_type): New declaration.
12651 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12652 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12653 (Z_PACKET_ACCESS_WP): Delete macros.
12654 (Z_packet_to_hw_type): Delete function.
12655 * i386-low.h: Don't include break-common.h here.
12656 (Z_packet_to_hw_type): Delete declaration.
12657 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12658 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12659 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12660 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12661 * linux-aarch64-low.c: Don't include break-common.h here.
12662 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12663 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12664 (Z_packet_to_target_hw_bp_type): Delete function.
12665 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12666 function.
12667 (mips_insert_point, mips_remove_point): Use
12668 Z_packet_to_target_hw_bp_type.
12669
4ff0d3d8
PA
126702014-05-20 Pedro Alves <palves@redhat.com>
12671
12672 * linux-aarch64-low.c: Include break-common.h.
12673 (enum target_point_type): Delete.
12674 (Z_packet_to_point_type): Rename to ...
12675 (Z_packet_to_target_hw_bp_type): ... this, and return a
12676 target_hw_bp_type instead.
12677 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12678 instead of an enum target_point_type.
12679 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12680 breakpoint type.
12681 (aarch64_dr_state_insert_one_point)
12682 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12683 (aarch64_handle_aligned_watchpoint)
12684 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12685 Take an enum target_hw_bp_type instead of an enum
12686 target_point_type.
12687 (aarch64_supports_z_point_type): New function.
12688 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12689 use Z_packet_to_target_hw_bp_type.
12690
786dc519
JB
126912014-05-20 Joel Brobecker <brobecker@adacore.com>
12692
12693 * configure.ac: Only use -Werror by default when DEVELOPMENT
12694 is true.
12695 * configure: Regenerate.
12696
9e0aa64f
JK
126972014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12698
12699 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12700 * linux-x86-low.c (X86_64_USER_REGS): New.
12701 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12702
2b577b92
YQ
127032014-04-28 Yao Qi <yao@codesourcery.com>
12704
12705 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12706 name.
12707
94611da2
PA
127082014-04-25 Pedro Alves <palves@redhat.com>
12709
12710 PR server/16255
12711 * linux-low.c (linux_attach_fail_reason_string): New function.
12712 (linux_attach_lwp): Delete.
12713 (linux_attach_lwp_1): Rename to ...
12714 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12715 argument. Remove "initial" parameter. Return int instead of
12716 void. Don't error or warn here.
12717 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12718 failure to attach to the tgid. Call warning when failing to
12719 attach to an lwp.
12720 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12721 argument. Remove "initial" parameter. Return int instead of
12722 void. Don't error or warn here.
12723 (linux_attach_fail_reason_string): New declaration.
12724 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12725 interface change. Use linux_attach_fail_reason_string.
12726
01f9f808
MS
127272014-04-24 Michael Sturm <michael.sturm@mintel.com>
12728 Walfred Tedeschi <walfred.tedeschi@intel.com>
12729
12730 * Makefile.in: Added rules to handle new files
12731 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12732 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12733 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12734 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12735 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12736 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12737 x32-avx512-linux.o.
12738 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12739 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12740 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12741 i386/x32-avx512.xml.
12742 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12743 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12744 i386/x32-avx512-linux.xml.
12745 * i387-fp.c (num_avx512_k_registers): New constant for number
12746 of K registers.
12747 (num_avx512_zmmh_low_registers): New constant for number of
12748 lower ZMM registers (0-15).
12749 (num_avx512_zmmh_high_registers): New constant for number of
12750 higher ZMM registers (16-31).
12751 (num_avx512_ymmh_registers): New contant for number of higher
12752 YMM registers (ymm16-31 added by avx521 on x86_64).
12753 (num_avx512_xmm_registers): New constant for number of higher
12754 XMM registers (xmm16-31 added by AVX512 on x86_64).
12755 (struct i387_xsave): Add space for AVX512 registers.
12756 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12757 Add code to handle AVX512 registers.
12758 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12759 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12760 prototypei from generated file.
12761 (tdesc_amd64_avx512_linux): Likewise.
12762 (init_registers_x32_avx512_linux): Likewise.
12763 (tdesc_x32_avx512_linux): Likewise.
12764 (init_registers_i386_avx512_linux): Likewise.
12765 (tdesc_i386_avx512_linux): Likewise.
12766 (x86_64_regmap): Add AVX512 registers.
12767 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12768 mask.
12769 (initialize_low_arch): Add code to initialize AVX512 registers.
12770
51aa91f9
PA
127712014-04-23 Pedro Alves <palves@redhat.com>
12772
12773 * mem-break.c (find_gdb_breakpoint_at): Make static.
12774 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12775
a4165e94
PA
127762014-04-23 Pedro Alves <palves@redhat.com>
12777
12778 * i386-low.c: Don't include break-common.h here.
12779 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12780 prototype to take target_hw_bp_type as argument instead of a Z
12781 packet char.
12782 * i386-low.h: Include break-common.h here.
12783 (Z_packet_to_hw_type): Declare.
12784 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12785 prototypes.
12786 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12787 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12788 (x86_remove_point): Convert the packet number to a
12789 target_hw_bp_type before calling i386_low_remove_watchpoint.
12790 * win32-i386-low.c (i386_insert_point): Convert the packet number
12791 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12792 (i386_remove_point): Convert the packet number to a
12793 target_hw_bp_type before calling i386_low_remove_watchpoint.
12794
b8acf843
PA
127952014-04-23 Pedro Alves <palves@redhat.com>
12796
12797 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12798
d708bcd1
PA
127992014-04-10 Pedro Alves <palves@redhat.com>
12800
12801 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12802 Check if the condition or command is NULL before checking if the
12803 breakpoint is known. On success, return true.
12804 * mem-break.h (add_breakpoint_condition): Document return.
12805 (add_breakpoint_commands): Add describing comment.
12806 * server.c (skip_to_semicolon): New function.
12807 (process_point_options): Use it.
12808
2eec7d5b
PA
128092014-04-09 Pedro Alves <palves@redhat.com>
12810
12811 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12812 to lwpid_of.
12813
fa96cb38
PA
128142014-02-27 Pedro Alves <palves@redhat.com>
12815
12816 PR 12702
12817 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12818 macros.
12819 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12820 output.
12821 (last_thread_of_process_p): Take a PID argument instead of a
12822 thread pointer.
12823 (linux_wait_for_lwp): Delete.
12824 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12825 functions.
12826 (linux_low_filter_event): New function, party factored out from
12827 linux_wait_for_event.
12828 (linux_wait_for_event): Rename to ...
12829 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12830 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12831 sigsuspend. Check for zombie leaders.
12832 (linux_wait_for_event): Reimplement as wrapper around
12833 linux_wait_for_event_filtered.
12834 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12835 a normal or signal exit is seen, it's the whole process exiting.
12836 (wait_for_sigstop): No longer a for_each_inferior callback.
12837 Rewrite on top of linux_wait_for_event_filtered.
12838 (stop_all_lwps): Call wait_for_sigstop directly.
12839 * server.c (resume, handle_target_event): Handle
12840 TARGET_WAITKIND_NO_RESUMED.
12841
d763de10
JB
128422014-02-26 Joel Brobecker <brobecker@adacore.com>
12843
12844 * win32-low.c (psapi_get_dll_name,
12845 * win32_CreateToolhelp32Snapshot): Delete.
12846 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12847 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12848 Delete.
12849 (handle_load_dll): Add function description.
12850 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12851
850a0f76
JB
128522014-02-26 Joel Brobecker <brobecker@adacore.com>
12853
12854 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12855 Add comment.
12856 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12857 base address when calling win32_add_one_solib.
12858 (handle_load_dll): Delete local variable load_addr.
12859 Remove 0x1000 offset applied to DLL base address when calling
12860 win32_add_one_solib.
12861 (handle_unload_dll): Add comment.
12862
f25b3fc3
JB
128632014-02-26 Joel Brobecker <brobecker@adacore.com>
12864
12865 * win32-low.c (win32_add_all_dlls): Renames
12866 win32_ensure_ntdll_loaded. Rewrite function documentation.
12867 Adjust implementation to always load all DLLs.
12868 Add 0x1000 offset to DLL base address when calling
12869 win32_add_one_solib.
12870 (child_initialization_done): New static global.
12871 (do_initial_child_stuff): Set child_initialization_done to
12872 zero during child initialization, and 1 after. Replace call
12873 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12874 Add comment.
12875 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12876 (handle_unload_dll): Add function documentation.
12877 (get_child_debug_event): Ignore load and unload DLL events
12878 during child initialization.
12879
d86d4aaf
DE
128802014-02-20 Doug Evans <dje@google.com>
12881
3bc32da3 12882 Remove global all_lwps.
d86d4aaf
DE
12883 * inferiors.h (ptid_of): Move here from linux-low.h.
12884 (pid_of, lwpid_of): Ditto.
12885 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12886 parameter is a struct thread_info * now.
12887 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12888 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12889 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12890 directly.
12891 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12892 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12893 * linux-arm-low.c (update_registers_callback): Update, "entry"
12894 parameter is a struct thread_info * now.
12895 Fetch lwpid from current_inferior directly.
12896 (arm_insert_point): Pass &all_threads to find_inferior instead of
12897 &all_lwps.
12898 (arm_remove_point): Ditto.
12899 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12900 (arm_prepare_to_resume): Fetch pid from thread.
12901 (arm_read_description): Fetch lwpid from current_inferior directly.
12902 * linux-low.c (all_lwps): Delete.
12903 (delete_lwp): Delete call to remove_inferior.
12904 (handle_extended_wait): Fetch lwpid from thread.
12905 (add_lwp): Don't set lwp->entry.id. Remove call to
12906 add_inferior_to_list.
12907 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12908 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12909 (kill_one_lwp_callback): Ditto.
12910 (linux_kill): Don't dereference NULL pointer.
12911 Fetch ptid,lwpid from thread.
12912 (get_detach_signal): Fetch ptid from thread.
12913 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12914 Simplify call to regcache_invalidate_thread.
12915 (delete_lwp_callback): Update, "entry" parameter is a
12916 struct thread_info * now. Fetch pid from thread.
12917 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12918 (status_pending_p_callback): Update, "entry" parameter is a
12919 struct thread_info * now. Fetch ptid from thread.
12920 (find_lwp_pid): Update, "entry" parameter is a
12921 struct thread_info * now.
12922 (linux_wait_for_lwp): Fetch pid from thread.
12923 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12924 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12925 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12926 (dequeue_one_deferred_signal): Ditto.
12927 (cancel_breakpoint): Fetch ptid from current_inferior.
12928 (linux_wait_for_event): Pass &all_threads to find_inferior,
12929 not &all_lwps. Fetch ptid, lwpid from thread.
12930 (count_events_callback): Update, "entry" parameter is a
12931 struct thread_info * now.
12932 (select_singlestep_lwp_callback): Ditto.
12933 (select_event_lwp_callback): Ditto.
12934 (cancel_breakpoints_callback): Ditto.
12935 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12936 not &all_lwps.
12937 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12938 (unsuspend_one_lwp): Update, "entry" parameter is a
12939 struct thread_info * now.
12940 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12941 not &all_lwps.
12942 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12943 Fetch lwpid from thread, not lwp.
12944 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12945 Pass &all_threads to find_inferior, not &all_lwps.
12946 (send_sigstop): Fetch lwpid from thread, not lwp.
12947 (send_sigstop_callback): Update, "entry" parameter is a
12948 struct thread_info * now.
12949 (suspend_and_send_sigstop_callback): Ditto.
12950 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12951 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12952 struct thread_info * now.
12953 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12954 from thread, lwp.
12955 (lwp_running): Update, "entry" parameter is a
12956 struct thread_info * now.
12957 (stop_all_lwps): Fetch ptid from thread.
12958 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12959 (linux_resume_one_lwp): Fetch lwpid from thread.
12960 (linux_set_resume_request): Update, "entry" parameter is a
12961 struct thread_info * now. Fetch pid, lwpid from thread.
12962 (resume_status_pending_p): Update, "entry" parameter is a
12963 struct thread_info * now.
12964 (need_step_over_p): Ditto. Fetch lwpid from thread.
12965 (start_step_over): Fetch lwpid from thread.
12966 (linux_resume_one_thread): Update, "entry" parameter is a
12967 struct thread_info * now. Fetch lwpid from thread.
12968 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12969 (proceed_one_lwp): Update, "entry" parameter is a
12970 struct thread_info * now. Fetch lwpid from thread.
12971 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12972 struct thread_info * now.
12973 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12974 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12975 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12976 directly.
12977 (regsets_store_inferior_registers): Ditto.
12978 (fetch_register, store_register): Ditto.
12979 (linux_read_memory, linux_write_memory): Ditto.
12980 (linux_request_interrupt): Ditto.
12981 (linux_read_auxv): Ditto.
12982 (linux_xfer_siginfo): Ditto.
12983 (linux_qxfer_spu): Ditto.
12984 (linux_qxfer_libraries_svr4): Ditto.
12985 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12986 moved to inferiors.h.
12987 (get_lwp): Delete.
12988 (get_thread_lwp): Update.
12989 (struct lwp_info): Delete member "entry". Simplify comment for
12990 member "thread".
12991 (all_lwps): Delete.
12992 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12993 current_inferior directly.
12994 (update_watch_registers_callback): Update, "entry" parameter is a
12995 struct thread_info * now. Fetch pid from thread.
12996 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12997 (mips_insert_point): Fetch lwpid from current_inferior.
12998 Pass &all_threads to find_inferior, not &all_lwps.
12999 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13000 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13001 directly.
13002 (mips_stopped_data_address): Ditto.
13003 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13004 directly.
13005 * linux-tile-low.c (tile_arch_setup): Ditto.
13006 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13007 (update_debug_registers_callback): Update, "entry" parameter is a
13008 struct thread_info * now. Fetch pid from thread.
13009 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13010 Pass &all_threads to find_inferior, not &all_lwps.
13011 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13012 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13013 Pass &all_threads to find_inferior, not &all_lwps.
13014 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13015 (i386_dr_low_get_status): Ditto.
13016 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13017 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13018 (x86_linux_read_description): Ditto.
13019 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13020
3b8361aa
DE
130212014-02-20 Doug Evans <dje@google.com>
13022
13023 * inferiors.c (get_first_inferior): Fix buglet.
13024
f7667f0d
DE
130252014-02-19 Doug Evans <dje@google.com>
13026
13027 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13028 * inferiors.c (add_thread): Change result type to struct thread_info *.
13029 All callers updated.
13030 (add_lwp): Call add_thread here instead of in callers.
13031 All callers updated.
13032 * linux-low.h (get_lwp_thread): Rewrite.
13033 (struct lwp_info): New member "thread".
13034
b3312d80
DE
130352014-02-19 Doug Evans <dje@google.com>
13036
13037 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13038 All callers updated.
13039
ecc6f45c
DE
130402014-02-19 Doug Evans <dje@google.com>
13041
13042 * inferiors.c (add_thread): Fix whitespace.
13043
649ebbca
DE
130442014-02-19 Doug Evans <dje@google.com>
13045
13046 * dll.c (clear_dlls): Replace accessing list implemention details
13047 with API function.
13048 * gdbthread.h (get_first_thread): Declare.
13049 * inferiors.c (for_each_inferior_with_data): New function.
13050 (get_first_thread): New function.
13051 (find_thread_ptid): Simplify.
13052 (get_first_inferior): New function.
13053 (clear_list): Delete.
13054 (one_inferior_p): New function.
13055 (clear_inferior_list): New function.
13056 (clear_inferiors): Update.
13057 * inferiors.h (for_each_inferior_with_data): Declare.
13058 (clear_inferior_list): Declare.
13059 (one_inferior_p): Declare.
13060 (get_first_inferior): Declare.
13061 * linux-low.c (linux_wait_for_event): Replace accessing list
13062 implemention details with API function.
13063 * server.c (target_running): Ditto.
13064 (accumulate_file_name_length): New function.
13065 (emit_dll_description): New function.
13066 (handle_qxfer_libraries): Replace accessing list implemention
13067 details with API function.
13068 (handle_qxfer_threads_worker): New function.
13069 (handle_qxfer_threads_proper): Replace accessing list implemention
13070 details with API function.
13071 (handle_query): Ditto.
13072 (visit_actioned_threads_callback_ftype): New typedef.
13073 (visit_actioned_threads_data): New struct.
13074 (visit_actioned_threads): Rewrite to be find_inferior callback.
13075 (resume): Call find_inferior.
13076 (handle_status): Replace accessing list implemention
13077 details with API function.
13078 (process_serial_event): Replace accessing list implemention details
13079 with API function.
13080 * target.c (set_desired_inferior): Replace accessing list implemention
13081 details with API function.
13082 * tracepoint.c (same_process_p): New function.
13083 (gdb_agent_about_to_close): Replace accessing list implemention
13084 details with API function.
13085 * win32-low.c (child_delete_thread): Replace accessing list
13086 implemention details with API function.
13087 (match_dll_by_basename): New function.
13088 (dll_is_loaded_by_basename): New function.
13089 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13090 details call to dll_is_loaded_by_basename.
13091
80894984
DE
130922014-02-19 Doug Evans <dje@google.com>
13093
13094 * dll.h (struct dll_info): Add comment.
13095 * gdbthread.h (struct thread_info): Add comment.
13096 (current_ptid): Simplify.
13097 * inferiors.c (add_process): Update.
13098 (remove_process): Update.
13099 * inferiors.h (struct process_info): Rename member "head" to "entry".
13100 * linux-low.c (delete_lwp): Update.
13101 (add_lwp): Update.
13102 (last_thread_of_process_p): Update.
13103 (kill_one_lwp_callback, linux_kill): Update.
13104 (status_pending_p_callback): Update.
13105 (wait_for_sigstop): Update. Simplify read of ptid.
13106 (start_step_over): Update.
13107 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13108 (get_lwp_thread): Update.
13109 (struct lwp_info): Rename member "head" to "entry".
13110 * regcache.h (inferior_list_entry): Delete.
13111 * server.c (kill_inferior_callback): Update.
13112 (detach_or_kill_inferior_callback): Update.
13113 (print_started_pid): Update.
13114 (print_attached_pid): Update.
13115 (process_serial_event): Simplify read of ptid.
13116 * thread-db.c (thread_db_create_event): Update.
13117 (thread_db_get_tls_address): Update.
13118 * win32-low.c (current_inferior_ptid): Simplify.
13119
46917d26
TT
131202014-02-19 Tom Tromey <tromey@redhat.com>
13121
13122 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13123 argument.
13124 (target_supports_btrace): Update.
13125
0759a81e
YQ
131262014-02-14 Yao Qi <yao@codesourcery.com>
13127
13128 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13129 (rsp-low-ipa.o): New target.
13130
a7191e8b
TT
131312014-02-12 Tom Tromey <tromey@redhat.com>
13132
13133 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13134 convert_ascii_to_int.
13135 * regcache.c (registers_to_string): Likewise.
13136 * remote-utils.c (decode_M_packet): Likewise.
13137 * server.c (process_serial_event): Likewise.
13138
ff0e980e
TT
131392014-02-12 Tom Tromey <tromey@redhat.com>
13140
13141 * server.c (handle_query, handle_v_run): Use hex2bin, not
13142 unhexify.
13143 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13144
e9371aff
TT
131452014-02-12 Tom Tromey <tromey@redhat.com>
13146
13147 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13148 convert_int_to_ascii.
13149 * regcache.c (registers_to_string, collect_register_as_string):
13150 Likewise.
13151 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13152 Likewise.
13153 * server.c (process_serial_event): Likewise.
13154 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13155 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13156
971dc0b8
TT
131572014-02-12 Tom Tromey <tromey@redhat.com>
13158
13159 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13160 bin2hex, not hexify.
13161 * tracepoint.c (cmd_qtstatus): Likewise.
13162
0a822afb
TT
131632014-02-12 Tom Tromey <tromey@redhat.com>
13164
13165 * remote-utils.c (monitor_output): Pass explicit length to
13166 hexify.
13167
9c3d6531
TT
131682014-02-12 Tom Tromey <tromey@redhat.com>
13169
13170 * tracepoint.c: Include rsp-low.h.
13171 * server.c: Include rsp-low.h.
13172 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13173 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13174 declare.
13175 * remote-utils.c: Include rsp-low.h.
13176 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13177 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13178 (convert_int_to_ascii, convert_ascii_to_int): Move to
13179 common/rsp-low.c.
13180 * regcache.c: Include rsp-low.h.
13181 * ax.c: Include rsp-low.h.
13182 * Makefile.in (SFILES): Add common/rsp-low.c.
13183 (OBS): Add rsp-low.o.
13184 (rsp-low.o): New target.
13185
01fd3ea5
TT
131862014-02-12 Tom Tromey <tromey@redhat.com>
13187
13188 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13189 Include print-utils.h.
13190 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13191 (plongest, thirty_two, phex_nz): Remove.
13192 * Makefile.in (SFILES): Add common/print-utils.c.
13193 (OBS): Add print-utils.o.
13194 (print-utils-ipa.o): New target.
13195 (print-utils.o): New target.
13196 (IPA_OBJS): Add print-utils-ipa.o.
13197
e99dc820
TT
131982014-02-06 Tom Tromey <tromey@redhat.com>
13199
13200 * Makefile.in (SFILES): Fix indentation.
13201
ee1e2d4f
DE
132022014-02-05 Doug Evans <dje@google.com>
13203
13204 * linux-low.c (linux_wait_for_event): Improve comment.
13205 (linux_wait_1): Keep current_inferior in sync with event_child.
13206
f5a02773
DE
132072014-01-22 Doug Evans <dje@google.com>
13208
13209 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13210
87ce2a04
DE
132112014-01-22 Doug Evans <dje@google.com>
13212
13213 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13214 * configure: Regenerate.
13215 * config.in: Regenerate.
13216 * Makefile.in (SFILES): Add debug.c.
13217 (OBS): Add debug.o.
13218 * debug.c: New file.
13219 * debug.h: New file.
13220 * linux-aarch64-low.c (*): Update all debugging printfs to use
13221 debug_printf instead of fprintf.
13222 * linux-arm-low.c (*): Ditto.
13223 * linux-cris-low.c (*): Ditto.
13224 * linux-crisv32-low.c (*): Ditto.
13225 * linux-m32r-low.c (*): Ditto.
13226 * linux-sparc-low.c (*): Ditto.
13227 * linux-x86.c (*): Ditto.
13228 * linux-low.c (*): Ditto.
13229 (linux_wait_1): Add calls to debug_enter, debug_exit.
13230 (linux_wait): Remove redundant debugging printf.
13231 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13232 (linux_resume, unstop_all_lwps): Ditto.
13233 * mem-break.c (*): Update all debugging printfs to use
13234 debug_printf instead of fprintf.
13235 * remote-utils.c (*): Ditto.
13236 * thread-db.c (*): Ditto.
13237 * server.c #include <ctype.h>, "gdb_vecs.h".
13238 (debug_threads): Moved to debug.c.
13239 (*): Update all debugging printfs to use debug_printf instead of
13240 fprintf.
13241 (start_inferior): Replace call to fflush with call to debug_flush.
13242 (monitor_show_help): Mention set debug-format.
13243 (parse_debug_format_options): New function.
13244 (handle_monitor_command): Handle "monitor set debug-format".
13245 (gdbserver_usage): Mention --debug-format.
13246 (main): Parse --debug-format.
13247 * server.h (debug_threads): Declaration moved to debug.h.
13248 #include "debug.h".
13249 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13250 trace_debug_1 that uses debug_printf.
13251 (tracepoint_look_up_symbols): Update all debugging printfs to use
13252 debug_printf instead of fprintf.
13253
e671835b
BS
132542014-01-20 Baruch Siach <baruch@tkos.co.il>
13255
13256 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13257 sys/ptrace.h.
13258
b5737fa9
PA
132592014-01-17 Pedro Alves <palves@redhat.com>
13260
ea38d2a9 13261 PR build/16445
c7faa97a
PA
13262 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13263 defined after including gdb_proc_service.h.
b5737fa9 13264
40ed484e
DE
132652014-01-16 Doug Evans <dje@google.com>
13266
13267 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13268 (match_dll): Use it.
13269
969c39fb
MM
132702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13271
13272 * target.h (target_ops) <read_btrace>: Change parameters and
13273 return type to allow error reporting.
13274 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13275 trace reading errors on.
13276 * linux-low.c (linux_low_read_btrace): Pass trace reading
13277 errors on.
13278 (linux_low_disable_btrace): New.
13279
ab7f45ba
DE
132802014-01-15 Doug Evans <dje@google.com>
13281
13282 * inferiors.c (thread_id_to_gdb_id): Delete.
13283 * inferiors.h (thread_id_to_gdb_id): Delete.
13284
66af0f44
EZ
132852014-01-13 Eli Zaretskii <eliz@gnu.org>
13286
13287 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13288 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13289 versions.
13290
9939e131
PA
132912014-01-08 Pedro Alves <palves@redhat.com>
13292
13293 * server.c (handle_status): Don't discard previous queued stop
13294 replies or thread's pending status here.
13295 (main) <disconnection>: Do it here instead.
13296
b7ea362b
PA
132972014-01-08 Pedro Alves <palves@redhat.com>
13298
13299 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13300 * server.c (visit_actioned_threads, handle_pending_status): New
13301 function.
13302 (handle_v_cont): Factor out parts to ...
13303 (resume): ... this new function. If in all-stop, and a thread
13304 being resumed has a pending status, report it without actually
13305 resuming.
13306 (myresume): Adjust to use the new 'resume' function.
13307 (clear_pending_status_callback, set_pending_status_callback)
13308 (find_status_pending_thread_callback): New functions.
13309 (handle_status): Handle the case of multiple threads having
13310 interesting statuses to report. Report threads' real last signal
13311 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13312 with an interesting thread to report the status for, instead of
13313 always reporting the status of the first thread.
13314
28498c42
JB
133152014-01-01 Joel Brobecker <brobecker@adacore.com>
13316
13317 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13318 * gdbreplay.c (gdbreplay_version): Likewise.
13319
f45c82da
YZ
133202013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13321
13322 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13323 iov.iov_len with the real length in use.
13324
379a5e2d
JB
133252013-12-13 Joel Brobecker <brobecker@adacore.com>
13326
13327 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13328 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13329 for all targets that use win32-low.c.
13330 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13331 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13332
4210d83e
PA
133332013-12-13 Pedro Alves <palves@redhat.com>
13334
13335 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13336 if equal to TARGET_WAITKIND_LOADED.
13337 * win32-low.c (cached_status): New static global.
13338 (win32_wait): Add declaration.
13339 (do_initial_child_stuff): Flush all initial pending debug events
13340 up to the initial breakpoint.
13341 (win32_wait): If CACHED_STATUS was set, return that instead
13342 of doing a real wait. Remove the code resuming the execution
13343 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13344 during the initial phase. Also remove the code changing
13345 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13346 TARGET_WAITKIND_STOPPED.
13347
e7f0d979
YQ
133482013-12-11 Yao Qi <yao@codesourcery.com>
13349
13350 * notif.c (handle_notif_ack): Return 0 if no notification
13351 matches.
13352
ebcf782c
DE
133532013-11-20 Doug Evans <dje@google.com>
13354
13355 * linux-low.c (linux_set_resume_request): Fix comment.
13356
20ad9378
DE
133572013-11-20 Doug Evans <dje@google.com>
13358
13359 * linux-low.c (resume_status_pending_p): Tweak comment.
13360
a196ebeb
WT
133612013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13362
13363 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13364 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13365 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13366 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13367 (srv_amd64_regobj): Add amd64-mpx.o.
13368 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13369 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13370 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13371 * i387-fp.c (num_pl_bnd_register) Added constant.
13372 (num_pl_bnd_cfg_registers) Added constant.
13373 (struct i387_xsave) Added reserved area and MPX fields.
13374 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13375 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13376 function.
13377 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13378 (init_registers_amd64_mpx_linux): Declare new function.
13379 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13380 (x86_64_regmap): Add MPX registers.
13381 (x86_linux_read_description): Add MPX case.
13382 (initialize_low_arch): Initialize MPX targets.
13383
0080a2f6
TT
133842013-11-18 Tom Tromey <tromey@redhat.com>
13385
13386 * configure: Rebuild.
13387 * configure.ac: Don't check for stdlib.h.
13388 * gdbreplay.c: Unconditionally include stdlib.h.
13389
2978b111
TT
133902013-11-18 Tom Tromey <tromey@redhat.com>
13391
13392 * config.in: Rebuild.
13393 * configure: Rebuild.
13394 * configure.ac: Don't use AC_HEADER_DIRENT.
13395
a3d08894
TT
133962013-11-18 Tom Tromey <tromey@redhat.com>
13397
13398 * server.h: Don't check HAVE_STRING_H.
13399 * gdbreplay.c: Don't check HAVE_STRING_H.
13400 * configure: Rebuild.
13401
0a5dd17d
TT
134022013-11-18 Tom Tromey <tromey@redhat.com>
13403
13404 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13405 LIBGNU.
13406
1bd2f0ba
TT
134072013-11-08 Tom Tromey <tromey@redhat.com>
13408
13409 * configure, config.in: Rebuild.
13410 * configure.ac: Remove unused configury.
13411
3266f10b
TT
134122013-11-08 Tom Tromey <tromey@redhat.com>
13413
13414 * acinclude.m4: Include common.m4, codeset.m4.
13415 * configure, config.in: Rebuild.
13416 * configure.ac: Use GDB_AC_COMMON.
13417
6682d959
AA
134182013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13419
13420 * linux-s390-low.c (HWCAP_S390_TE): New define.
13421 (s390_arch_setup): Consider the TE field in the HWCAP for
13422 determining 'have_regset_tdb'.
13423
fd0a4d76
SDJ
134242013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13425
13426 PR gdb/16014
13427 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13428 call to sizeof.
13429
1a3d890b
PA
134302013-10-02 Pedro Alves <palves@redhat.com>
13431
13432 * server.c (process_serial_event): Don't output "GDBserver
13433 exiting" if GDB is connected through stdio.
13434 * target.c (mywait): Likewise, be silent if GDB is connected
13435 through stdio.
13436
97ad4581
JB
134372013-10-01 Joel Brobecker <brobecker@adacore.com>
13438
13439 * lynx-low.c (lynx_add_threads_after_attach): New function.
13440 (lynx_attach): Remove call to add_thread. Add call to
13441 lynx_add_threads_after_attach instead.
13442
5b4e221c
MF
134432013-09-28 Mike Frysinger <vapier@gentoo.org>
13444
13445 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13446 * config.in, configure: Regenerated.
13447
ee47b2f8
YQ
134482013-09-18 Yao Qi <yao@codesourcery.com>
13449
13450 PR server/15959
13451 * server.c (start_inferior): Clear 'resume_info'.
13452
d6707650 134532013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13454
d6707650
JW
13455 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13456 for each register.
13457
9243dd0e 134582013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13459
9243dd0e
JW
13460 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13461 linux-tile-low.o to srv_tgtobj.
13462
c623a6ef
WN
134632013-09-16 Will Newton <will.newton@linaro.org>
13464
13465 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13466 out regs.
13467
fb71d39e
PA
134682013-09-06 Pedro Alves <palves@redhat.com>
13469
13470 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13471 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13472 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13473 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13474 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13475 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13476
8e7e9910
PA
134772013-09-06 Pedro Alves <palves@redhat.com>
13478
13479 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13480 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13481
7c3a12ca
PA
134822013-09-06 Pedro Alves <palves@redhat.com>
13483
13484 * linux-amd64-ipa.c: Include tracepoint.h.
13485 * linux-i386-ipa.c: Include tracepoint.h.
13486
8eb3d7b6
RW
134872013-09-06 Ricard Wanderlof <ricardw@axis.com>
13488
13489 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13490 (ps_get_thread_area): New function.
13491
eddddb9d
RW
134922013-09-06 Ricard Wanderlof <ricardw@axis.com>
13493
13494 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13495 (initialize_low_arch): Call init_registers_crisv32 rather than
13496 init_register_crisv32.
13497
533b0600
PA
134982013-09-05 Pedro Alves <palves@redhat.com>
13499
13500 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13501 to ...
13502 * hostio.h: ... this new file.
13503 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13504 win32-low.c: Include hostio.h.
13505
0ce3d3b5
PA
135062013-09-05 Pedro Alves <palves@redhat.com>
13507
13508 * server.h (gdb_client_data, handler_func, callback_handler_func)
13509 (delete_file_handler, add_file_handler, append_callback_event)
13510 (delete_callback_event, start_event_loop, initialize_event_loop):
13511 Move to event-loop.h and include it.
13512 * event-loop.h: New file.
13513
799cdc37
PA
135142013-09-05 Pedro Alves <palves@redhat.com>
13515
13516 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13517 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13518 (loaded_dll, unloaded_dll): Move to ...
13519 * dll.h: ... this new file.
13520 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13521
6a6bbd9d
PA
135222013-09-05 Pedro Alves <palves@redhat.com>
13523
13524 * server.h (current_process, get_thread_process, all_processes)
13525 (add_inferior_to_list, for_each_inferior, current_inferior)
13526 (remove_inferior, add_process, remove_process, find_process_pid)
13527 (have_started_inferiors_p, have_attached_inferiors_p)
13528 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13529 (clear_inferiors, find_inferior, find_inferior_id)
13530 (inferior_target_data, set_inferior_target_data)
13531 (inferior_regcache_data, set_inferior_regcache_data): Move to
13532 inferiors.h, and include it.
13533 * inferiors.h: New file.
13534
f699aaba
PA
135352013-09-05 Pedro Alves <palves@redhat.com>
13536
13537 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13538 Move ...
72f4393d 13539 * ax.h: ... here.
f699aaba 13540
c144c7a0
PA
135412013-09-05 Pedro Alves <palves@redhat.com>
13542
13543 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13544 tracepoint.h.
13545 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13546 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13547 (handle_tracepoint_general_set, handle_tracepoint_query)
13548 (tracepoint_finished_step, tracepoint_was_hit)
13549 (release_while_stepping_state_list, current_traceframe)
13550 (in_readonly_region, traceframe_read_mem)
13551 (fetch_traceframe_registers, traceframe_read_sdata)
13552 (traceframe_read_info, struct fast_tpoint_collect_status)
13553 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13554 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13555 (supply_fast_tracepoint_registers)
13556 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13557 (ipa_tdesc, claim_trampoline_space)
13558 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13559 (agent_mem_read, agent_get_trace_state_variable_value)
13560 (agent_set_trace_state_variable_value, agent_tsv_read)
13561 (agent_mem_read_string, get_raw_reg_func_addr)
13562 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13563 * tracepoint.h: ... this new file.
13564
ff42e6ab
PA
135652013-09-05 Pedro Alves <palves@redhat.com>
13566
13567 * server.h (perror_with_name, error, fatal, warning, paddress)
13568 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13569 include it.
13570 * utils.h: New file.
13571
541af0f4
PA
135722013-09-05 Pedro Alves <palves@redhat.com>
13573
13574 * server.h (remote_debug, noack_mode, transport_is_reliable)
13575 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13576 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13577 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13578 (write_enn, initialize_async_io, enable_async_io)
13579 (disable_async_io, check_remote_input_interrupt_request)
13580 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13581 (dead_thread_notify, prepare_resume_reply)
13582 (decode_address_to_semicolon, decode_address, decode_m_packet)
13583 (decode_M_packet, decode_X_packet, decode_xfer_write)
13584 (decode_search_memory_packet, unhexify, hexify)
13585 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13586 (look_up_one_symbol, relocate_instruction)
13587 (monitor_output): Move to remote-utils.h, and include it.
13588 * remote-utils.h: New file.
13589
eebdf26b
PA
135902013-09-05 Pedro Alves <palves@redhat.com>
13591
13592 * server.h (_): Delete.
13593
3aafd2ff
PA
135942013-09-02 Pedro Alves <palves@redhat.com>
13595
13596 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13597 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13598 allocated.
13599 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13600
cee83bcb
PM
136012013-09-02 Pierre Muller <muller@sourceware.org>
13602
13603 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13604 or WriteProcessMemory complete successfully and handle
13605 ERROR_PARTIAL_COPY error.
13606
9a13b2fa
PA
136072013-09-02 Pedro Alves <palves@redhat.com>
13608
13609 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13610 error instead of EIO.
13611
602e3198
JK
136122013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13613
13614 PR server/15604
13615 * linux-low.c: Include filestuff.h.
13616 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13617 * lynx-low.c: Include filestuff.h.
13618 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13619 * server.c: Include filestuff.h.
13620 (main): Call notice_open_fds.
13621 * spu-low.c: Include filestuff.h.
13622 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13623
96d7229d
LM
136242013-08-22 Luis Machado <lgustavo@codesourcery.com>
13625
13626 * Makefile.in: Explain why ../target and ../nat are not
13627 listed as include file search paths.
13628 (linux-waitpid.o): New object file rule.
13629 * configure.srv (srv_native_linux_obj): New variable.
13630 Replace all occurrences of linux native object files with
13631 $srv_native_linux_obj.
13632 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13633 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13634 (linux_enable_event_reporting): Remove declaration.
13635 (my_waitpid): Moved to common/linux-waitpid.c.
13636 (linux_wait_for_event): Pass ptid when calling
13637 linux_enable_event_reporting.
13638 (linux_supports_tracefork_flag): Remove.
13639 (linux_enable_event_reporting): Likewise.
13640 (linux_tracefork_grandchild): Remove.
13641 (STACK_SIZE): Moved to common/linux-ptrace.c.
13642 (linux_tracefork_child): Remove.
13643 (linux_test_for_tracefork): Remove.
13644 (linux_look_up_symbols): Call linux_supports_traceclone.
13645 (initialize_low): Remove call to linux_test_for_tracefork.
13646 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13647 common/linux-ptrace.h.
13648 (PTRACE_TYPE_ARG4): Likewise.
13649 Include linux-ptrace.h.
13650
32940073
PA
136512013-08-21 Pedro Alves <palves@redhat.com>
13652
13653 * config.in: Renegerate.
13654
33b60d58 136552013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13656
33b60d58
LM
13657 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13658 (SFILES): Remove $(srcdir)/common/target-common.c and
13659 add $(srcdir)/target/waitstatus.c.
13660 (OBS): Remove target-common.o and add waitstatus.o.
13661 (server_h): Remove $(srcdir)/../common/target-common.h and
13662 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13663 and $(srcdir)/../target/waitstatus.h.
13664 (target-common.o): Remove.
13665 (waitstatus.o): New target object file.
13666 * target.h: Do not include target-common.h and
13667 include target/resume.h, target/wait.h and
13668 target/waitstatus.h.
13669
b8e1b30e
LM
136702013-08-13 Luis Machado <lgustavo@codesourcery.com>
13671
13672 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13673 to PTRACE_TYPE_ARG3.
13674 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13675 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13676 PTRACE_TYPE_ARG4.
13677 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13678 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13679
7a60ad40
YQ
136802013-07-27 Jie Zhang <jie@codesourcery.com>
13681 Daniel Jacobowitz <dan@codesourcery.com>
13682 Yao Qi <yao@codesourcery.com>
13683
13684 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13685 (mips-linux-watch.o): New rule.
13686 (mips_linux_watch_h): New variable.
13687 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13688 srv_tgtobj.
13689 * linux-mips-low.c: Include mips-linux-watch.h.
13690 (struct arch_process_info, struct arch_lwp_info): New.
13691 (update_watch_registers_callback): New function.
13692 (mips_linux_new_process, mips_linux_new_thread) New functions.
13693 (mips_linux_prepare_to_resume, mips_insert_point): New
13694 functions.
13695 (mips_remove_point, mips_stopped_by_watchpoint): New
13696 functions.
13697 (rsp_bp_type_to_target_hw_bp_type): New function.
13698 (mips_stopped_data_address): New function.
13699 (the_low_target): Add watchpoint support functions.
13700
de6f69ad
YQ
137012013-07-27 Yao Qi <yao@codesourcery.com>
13702
13703 * i386-low.c: Include break-common.h.
13704 (enum target_hw_bp_type): Remove.
13705
3360c0bf
LM
137062013-07-24 Luis Machado <lgustavo@codesourcery.com>
13707
13708 * Makefile.in (SFILES): /common/target-common.c.
13709 (OBS): Add target-common.o.
13710 (server_h): Add $(srcdir)/../common/target-common.h.
13711 (target-common.o): New target.
13712 * server.c (queue_stop_reply_callback): Free
13713 status string after use.
13714 * target.c (target_waitstatus_to_string): Remove.
13715 * target.h: Include target-common.h.
13716 (resume_kind): Likewise.
13717 (target_waitkind): Likewise.
13718 (target_waitstatus): Likewise.
13719 (TARGET_WNOHANG): Likewise.
13720
bd885420
YQ
137212013-07-04 Yao Qi <yao@codesourcery.com>
13722
13723 * Makefile.in (host_alias): Use @host_noncanonical@.
13724 (target_alias): Use @target_noncanonical@.
13725 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13726 ACX_NONCANONICAL_HOST.
13727 * configure: Regenerated.
13728
13729 Revert:
13730 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13731
13732 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13733 * configure: Rebuild.
13734 * Makefile.in (version_host, version_target): Get from configure.
13735 (version.c): Use $(version_host) and $(version_target).
13736
17ef446e
PA
137372013-07-03 Pedro Alves <palves@redhat.com>
13738
13739 * Makefile.in (config.status): Depend on development.sh.
13740 * acinclude.m4: Include libmcheck.m4.
13741 * configure: Regenerate.
13742
7a9a7487
MG
137432013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13744
13745 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13746 attribute inside the parentheses.
13747 (winapi_DebugSetProcessKillOnExit): Ditto.
13748 (winapi_DebugBreakProcess): Ditto.
13749 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13750
49b64de6
MG
137512013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13752
13753 * notif.h (notif_event): Add a dummy member to avoid compiler
13754 errors.
13755
d5749ee7
PA
137562013-07-01 Pedro Alves <palves@redhat.com>
13757
13758 * hostio.c (HOSTIO_PATH_MAX): Define.
13759 (require_filename, handle_open, handle_unlink, handle_readlink):
13760 Use it.
13761
d8d2a3ee
PA
137622013-07-01 Pedro Alves <palves@redhat.com>
13763
13764 * server.h: Include "pathmax.h".
13765 * linux-low.c: Don't include sys/param.h.
13766 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13767 MAXPATHLEN.
13768 * win32-low.c: Don't include sys/param.h.
13769 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13770
bc7dea8d
PA
137712013-07-01 Pedro Alves <palves@redhat.com>
13772
13773 * event-loop.c: Don't check HAVE_UNISTD_H before including
13774 <unistd.h>.
13775 * gdbreplay.c: Likewise.
13776 * remote-utils.c: Likewise.
13777 * server.c: Likewise.
13778 * configure.ac: Don't check for unistd.h.
13779 * configure: Regenerate.
13780
d6c2da54
TT
137812013-06-28 Tom Tromey <tromey@redhat.com>
13782
13783 * Makefile.in (version.c): Use version.in, not
13784 common/version.in.
13785
257b6bec
MG
137862013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13787
13788 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13789 * configure: Rebuild.
13790 * Makefile.in (version_host, version_target): Get from configure.
13791 (version.c): Use $(version_host) and $(version_target).
13792
86ebe149
DK
137932013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13794
13795 Fix trace-status to output user name without trailing colon.
13796 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13797
f30aa5af
DK
137982013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13799
13800 Fix trace-status to output proper start-time and stop-time.
13801 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13802 output start time and stop time in hex as gdb expects.
13803
28a93511
YQ
138042013-06-26 Pedro Alves <pedro@codesourcery.com>
13805
13806 * tracepoint.c (build_traceframe_info_xml): Output trace state
13807 variables present in the trace buffer.
13808
01208463
TT
138092013-06-24 Tom Tromey <tromey@redhat.com>
13810
13811 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13812 create-version.sh.
13813 (version.o): Remove.
13814 * gdbreplay.c: Include version.h.
13815 (version, host_name): Don't declare.
13816 * server.h: Include version.h.
13817 (version, host_name): Don't declare.
13818
760256f9
PA
138192013-06-12 Pedro Alves <palves@redhat.com>
13820
13821 * linux-x86-low.c (linux_is_elf64): Delete global.
13822 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13823 with local linux_pid_exe_is_elf_64_file use.
13824
030031ee
PA
138252013-06-11 Pedro Alves <palves@redhat.com>
13826
13827 * linux-low.c (regset_disabled, disable_regset): New functions.
13828 (regsets_fetch_inferior_registers)
13829 (regsets_store_inferior_registers): Use them.
13830 (initialize_regsets_info); Don't allocate the disabled_regsets
13831 array here.
13832 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13833 comment.
13834
5da6eb0a
PA
138352013-06-11 Pedro Alves <palves@redhat.com>
13836
13837 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13838 xmalloc.
13839
7e5aaa09
PA
138402013-06-11 Pedro Alves <palves@redhat.com>
13841
13842 * linux-x86-low.c (initialize_low_arch): Call
13843 init_registers_x32_avx_linux.
13844
d878444c
JK
138452013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13846
13847 Fix compatibility with Android Bionic.
13848 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13849 it is not empty.
13850
3aee8918
PA
138512013-06-07 Pedro Alves <palves@redhat.com>
13852
5f2b57b5 13853 PR server/14823
3aee8918
PA
13854 * Makefile.in (OBS): Add tdesc.o.
13855 (IPA_OBJS): Add tdesc-ipa.o.
13856 (tdesc-ipa.o): New rule.
13857 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13858 interface.
13859 * linux-low.c (new_inferior): Delete.
13860 (disabled_regsets, num_regsets): Delete.
13861 (linux_add_process): Adjust to set the new per-process
13862 new_inferior flag.
13863 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13864 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13865 was a stop. When calling arch_setup, switch the current inferior
13866 to the thread that got an event.
13867 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13868 (regsets_fetch_inferior_registers)
13869 (regsets_store_inferior_registers): New regsets_info parameter.
13870 Adjust to use it.
13871 (linux_register_in_regsets): New regs_info parameter. Adjust to
13872 use it.
13873 (register_addr, fetch_register, store_register): New usrregs_info
13874 parameter. Adjust to use it.
13875 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13876 parameter regs_info. Adjust to use it.
13877 (linux_fetch_registers): Get the current inferior's regs_info, and
13878 adjust to use it.
13879 (linux_store_registers): Ditto.
13880 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13881 (initialize_low): Don't initialize the target_regsets here. Call
13882 initialize_low_arch.
13883 * linux-low.h (target_regsets): Delete declaration.
13884 (struct regsets_info): New.
13885 (struct usrregs_info): New.
13886 (struct regs_info): New.
13887 (struct process_info_private) <new_inferior>: New field.
13888 (struct linux_target_ops): Delete the num_regs, regmap, and
13889 regset_bitmap fields. New field regs_info.
13890 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13891 * i387-fp.c (num_xmm_registers): Delete.
13892 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13893 calls to new interface.
13894 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13895 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13896 Infer the number of xmm registers from the regcache's target
13897 description.
13898 * i387-fp.h (num_xmm_registers): Delete.
13899 * inferiors.c (add_thread): Don't install the thread's regcache
13900 here.
13901 * proc-service.c (gregset_info): Fetch the current inferior's
13902 regs_info. Adjust to use it.
13903 * regcache.c: Include tdesc.h.
13904 (register_bytes, reg_defs, num_registers)
13905 (gdbserver_expedite_regs): Delete.
13906 (get_thread_regcache): If the thread doesn't have a regcache yet,
13907 create one, instead of aborting gdbserver.
13908 (regcache_invalidate_one): Rename to ...
13909 (regcache_invalidate_thread): ... this.
13910 (regcache_invalidate_one): New.
13911 (regcache_invalidate): Only invalidate registers of the current
13912 process.
13913 (init_register_cache): Add target_desc parameter, and use it.
13914 (new_register_cache): Ditto. Assert the target description has a
13915 non zero registers_size.
13916 (regcache_cpy): Add assertions. Adjust.
13917 (realloc_register_cache, set_register_cache): Delete.
13918 (registers_to_string, registers_from_string): Adjust.
13919 (find_register_by_name, find_regno, find_register_by_number)
13920 (register_cache_size): Add target_desc parameter, and use it.
13921 (free_register_cache_thread, free_register_cache_thread_one)
13922 (regcache_release, register_cache_size): New.
13923 (register_size): Add target_desc parameter, and use it.
13924 (register_data, supply_register, supply_register_zeroed)
13925 (supply_regblock, supply_register_by_name, collect_register)
13926 (collect_register_as_string, collect_register_by_name): Adjust.
13927 * regcache.h (struct target_desc): Forward declare.
13928 (struct regcache) <tdesc>: New field.
13929 (init_register_cache, new_register_cache): Add target_desc
13930 parameter.
13931 (regcache_invalidate_thread): Declare.
13932 (regcache_invalidate_one): Delete declaration.
13933 (regcache_release): Declare.
13934 (find_register_by_number, register_cache_size, register_size)
13935 (find_regno): Add target_desc parameter.
13936 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13937 declarations.
13938 * remote-utils.c: Include tdesc.h.
13939 (outreg, prepare_resume_reply): Adjust.
13940 * server.c: Include tdesc.h.
13941 (gdbserver_xmltarget): Delete declaration.
13942 (get_features_xml, process_serial_event): Adjust.
13943 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13944 declare.
13945 (struct process_info) <tdesc>: New field.
13946 (ipa_tdesc): Declare.
13947 * tdesc.c: New file.
13948 * tdesc.h: New file.
13949 * tracepoint.c: Include tdesc.h.
13950 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13951 (get_context_regcache): Adjust to pass ipa_tdesc down.
13952 (do_action_at_tracepoint): Adjust to get the register cache size
13953 from the context regcache's description.
13954 (traceframe_walk_blocks): Adjust to get the register cache size
13955 from the current trace frame's description.
13956 (traceframe_get_pc): Adjust to get current trace frame's
13957 description and pass it down.
13958 (gdb_collect): Adjust to get the register cache size from the
13959 IPA's description.
13960 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13961 (gdbserver_xmltarget): Delete.
13962 (initialize_low_tracepoint): Set the ipa's target description.
13963 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13964 (initialize_low_tracepoint): Set the ipa's target description.
13965 * linux-x86-low.c: Include tdesc.h.
13966 [__x86_64__] (is_64bit_tdesc): New.
13967 (ps_get_thread_area, x86_get_thread_area): Use it.
13968 (i386_cannot_store_register): Rename to ...
13969 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13970 (i386_cannot_fetch_register): Rename to ...
13971 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13972 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13973 to new interface.
13974 (target_regsets): Rename to ...
13975 (x86_regsets): ... this.
13976 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13977 interface.
13978 (x86_siginfo_fixup): Use is_64bit_tdesc.
13979 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13980 (tdesc_x32_avx_linux, tdesc_x32_linux)
13981 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13982 Declare.
13983 (x86_linux_update_xmltarget): Delete.
13984 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13985 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13986 (AMD64_LINUX_USER64_CS): New.
13987 (x86_linux_read_description): New, based on
13988 x86_linux_update_xmltarget.
13989 (same_process_callback): New.
13990 (x86_arch_setup_process_callback): New.
13991 (x86_linux_update_xmltarget): New.
13992 (x86_regsets_info): New.
13993 (amd64_linux_regs_info): New.
13994 (i386_linux_usrregs_info): New.
13995 (i386_linux_regs_info): New.
13996 (x86_linux_regs_info): New.
13997 (x86_arch_setup): Reimplement.
13998 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13999 (x86_emit_ops): Ditto.
14000 (the_low_target): Adjust. Install x86_linux_regs_info,
14001 x86_cannot_fetch_register, and x86_cannot_store_register.
14002 (initialize_low_arch): New.
14003 * linux-ia64-low.c (tdesc_ia64): Declare.
14004 (ia64_fetch_register): Adjust.
14005 (ia64_usrregs_info, regs_info): New globals.
14006 (ia64_regs_info): New function.
14007 (the_low_target): Adjust.
14008 (initialize_low_arch): New function.
14009 * linux-sparc-low.c (tdesc_sparc64): Declare.
14010 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14011 Adjust.
14012 (sparc_arch_setup): New function.
14013 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14014 (the_low_target): Adjust.
14015 (initialize_low_arch): New function.
14016 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14017 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14018 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14019 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14020 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14021 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14022 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14023 (tdesc_powerpc_isa205_vsx64l): Declare.
14024 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14025 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14026 (ppc_set_pc, ppc_get_hwcap): Adjust.
14027 (ppc_usrregs_info): Forward declare.
14028 (!__powerpc64__) ppc_regmap_adjusted: New global.
14029 (ppc_arch_setup): Adjust to the current process'es target
14030 description.
14031 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14032 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14033 (ppc_store_evrregset): Adjust.
14034 (target_regsets): Rename to ...
14035 (ppc_regsets): ... this, and make static.
14036 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14037 (ppc_regs_info): New function.
14038 (the_low_target): Adjust.
14039 (initialize_low_arch): New function.
14040 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14041 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14042 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14043 (tdesc_s390x_linux64v2): Declare.
14044 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14045 (s390_fill_gregset, s390_store_last_break): Adjust.
14046 (target_regsets): Rename to ...
14047 (s390_regsets): ... this, and make static.
14048 (s390_get_pc, s390_set_pc): Adjust.
14049 (s390_get_hwcap): New target_desc parameter, and use it.
14050 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14051 (s390_arch_setup): Adjust to set the current process'es target
14052 description. Don't adjust the regmap.
14053 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14054 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14055 (regs_info_3264): New globals.
14056 (s390_regs_info): New function.
14057 (the_low_target): Adjust.
14058 (initialize_low_arch): New function.
14059 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14060 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14061 [__mips64] (init_registers_mips_linux)
14062 (init_registers_mips_dsp_linux): Delete defines.
14063 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14064 (have_dsp): New global.
14065 (mips_read_description): New, based on mips_arch_setup.
14066 (mips_arch_setup): Reimplement.
14067 (get_usrregs_info): New function.
14068 (mips_cannot_fetch_register, mips_cannot_store_register)
14069 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14070 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14071 (target_regsets): Rename to ...
14072 (mips_regsets): ... this, and make static.
14073 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14074 (dsp_regs_info, regs_info): New globals.
14075 (mips_regs_info): New function.
14076 (the_low_target): Adjust.
14077 (initialize_low_arch): New function.
14078 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14079 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14080 Declare.
14081 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14082 (arm_read_description): New, with bits factored from
14083 arm_arch_setup.
14084 (arm_arch_setup): Reimplement.
14085 (target_regsets): Rename to ...
14086 (arm_regsets): ... this, and make static.
14087 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14088 (arm_regs_info): New function.
14089 (the_low_target): Adjust.
14090 (initialize_low_arch): New function.
14091 * linux-m68k-low.c (tdesc_m68k): Declare.
14092 (target_regsets): Rename to ...
14093 (m68k_regsets): ... this, and make static.
14094 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14095 (m68k_regs_info): New function.
14096 (m68k_arch_setup): New function.
14097 (the_low_target): Adjust.
14098 (initialize_low_arch): New function.
14099 * linux-sh-low.c (tdesc_sharch): Declare.
14100 (target_regsets): Rename to ...
14101 (sh_regsets): ... this, and make static.
14102 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14103 (sh_regs_info, sh_arch_setup): New functions.
14104 (the_low_target): Adjust.
14105 (initialize_low_arch): New function.
14106 * linux-bfin-low.c (tdesc_bfin): Declare.
14107 (bfin_arch_setup): New function.
14108 (bfin_usrregs_info, regs_info): New globals.
14109 (bfin_regs_info): New function.
14110 (the_low_target): Adjust.
14111 (initialize_low_arch): New function.
14112 * linux-cris-low.c (tdesc_cris): Declare.
14113 (cris_arch_setup): New function.
14114 (cris_usrregs_info, regs_info): New globals.
14115 (cris_regs_info): New function.
14116 (the_low_target): Adjust.
14117 (initialize_low_arch): New function.
14118 * linux-cris-low.c (tdesc_crisv32): Declare.
14119 (cris_arch_setup): New function.
14120 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14121 (cris_regs_info): New function.
14122 (the_low_target): Adjust.
14123 (initialize_low_arch): New function.
14124 * linux-m32r-low.c (tdesc_m32r): Declare.
14125 (m32r_arch_setup): New function.
14126 (m32r_usrregs_info, regs_info): New globals.
14127 (m32r_regs_info): Adjust.
14128 (initialize_low_arch): New function.
14129 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14130 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14131 (tic6x_usrregs_info): Forward declare.
14132 (tic6x_read_description): New function, based on ...
14133 (tic6x_arch_setup): ... this. Reimplement.
14134 (target_regsets): Rename to ...
14135 (tic6x_regsets): ... this, and make static.
14136 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14137 (tic6x_regs_info): New function.
14138 (the_low_target): Adjust.
14139 (initialize_low_arch): New function.
14140 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14141 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14142 (target_regsets): Rename to ...
14143 (xtensa_regsets): ... this, and make static.
14144 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14145 globals.
14146 (xtensa_arch_setup, xtensa_regs_info): New functions.
14147 (the_low_target): Adjust.
14148 (initialize_low_arch): New function.
14149 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14150 (nios2_arch_setup): Set the current process'es tdesc.
14151 (target_regsets): Rename to ...
14152 (nios2_regsets): ... this.
14153 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14154 (nios2_regs_info): New function.
14155 (the_low_target): Adjust.
14156 (initialize_low_arch): New function.
a261b8f5
PA
14157 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14158 (aarch64_arch_setup): Set the current process'es tdesc.
14159 (target_regsets): Rename to ...
14160 (aarch64_regsets): ... this.
14161 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14162 (aarch64_regs_info): New function.
14163 (the_low_target): Adjust.
14164 (initialize_low_arch): New function.
3aee8918
PA
14165 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14166 globals.
14167 (target_regsets): Rename to ...
14168 (tile_regsets): ... this.
14169 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14170 (tile_regs_info): New function.
14171 (tile_arch_setup): Set the current process'es tdesc.
14172 (the_low_target): Adjust.
14173 (initialize_low_arch): New function.
14174 * spu-low.c (tdesc_spu): Declare.
14175 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14176 * win32-arm-low.c (tdesc_arm): Declare.
14177 (arm_arch_setup): New function.
14178 (the_low_target): Install arm_arch_setup instead of
14179 init_registers_arm.
14180 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14181 (init_windows_x86): Rename to ...
14182 (i386_arch_setup): ... this. Set `win32_tdesc'.
14183 (the_low_target): Adjust.
14184 * win32-low.c (win32_tdesc): New global.
14185 (child_add_thread): Don't create the thread cache here.
14186 (do_initial_child_stuff): Set the new process'es tdesc.
14187 * win32-low.h (struct target_desc): Forward declare.
14188 (win32_tdesc): Declare.
14189 * lynx-i386-low.c (tdesc_i386): Declare global.
14190 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14191 * lynx-low.c (lynx_tdesc): New global.
14192 (lynx_add_process): Set the new process'es tdesc.
14193 * lynx-low.h (struct target_desc): Forward declare.
14194 (lynx_tdesc): Declare global.
14195 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14196 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14197 * nto-low.c (nto_tdesc): New global.
14198 (do_attach): Set the new process'es tdesc.
14199 * nto-low.h (struct target_desc): Forward declare.
14200 (nto_tdesc): Declare.
14201 * nto-x86-low.c (tdesc_i386): Declare.
14202 (nto_x86_arch_setup): Set `nto_tdesc'.
14203
b1fbec62
GB
142042013-06-04 Gary Benson <gbenson@redhat.com>
14205
14206 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14207 to qSupported response when appropriate.
14208 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14209 with nonzero-length annex.
14210 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14211 arguments supplied in annex.
14212
d1ec4ce7
DE
142132013-05-31 Doug Evans <dje@google.com>
14214
ac44adcb 14215 PR server/15594
d1ec4ce7
DE
14216 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14217 64 bits in 64-cross-32 environment.
14218
9b25f2d3
PA
142192013-05-28 Pedro Alves <palves@redhat.com>
14220
14221 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14222 (aarch64-without-fpu.c): Delete rule.
14223 * configure.srv (aarch64*-*-linux*): Remove references to
14224 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14225 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14226 declaration.
14227
6740dc9c
PA
142282013-05-24 Pedro Alves <palves@redhat.com>
14229
14230 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14231 instead of strchr/decode_address. Error if the range isn't split
14232 with a ','. Don't assume there's be a ':' in the action.
14233
c2d6af84
PA
142342013-05-23 Yao Qi <yao@codesourcery.com>
14235 Pedro Alves <palves@redhat.com>
14236
14237 * linux-low.c (lwp_in_step_range): New function.
14238 (linux_wait_1): If the thread was range stepping and stopped
14239 outside the stepping range, report the stop to GDB. Otherwise,
14240 continue stepping. Add range stepping debug output.
14241 (linux_set_resume_request): Copy the step range from the resume
14242 request to the lwp.
14243 (linux_supports_range_stepping): New.
14244 (linux_target_ops) <supports_range_stepping>: Set to
14245 linux_supports_range_stepping.
14246 * linux-low.h (struct linux_target_ops)
14247 <supports_range_stepping>: New field.
14248 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14249 * linux-x86-low.c (x86_supports_range_stepping): New.
14250 (the_low_target) <supports_range_stepping>: Set to
14251 x86_supports_range_stepping.
14252 * server.c (handle_v_cont): Handle 'r' action.
14253 (handle_v_requests): Append ";r" if the target supports range
14254 stepping.
14255 * target.h (struct thread_resume) <step_range_start,
14256 step_range_end>: New fields.
14257 (struct target_ops) <supports_range_stepping>:
14258 New field.
14259 (target_supports_range_stepping): New macro.
14260
58794e1a
JB
142612013-05-17 Joel Brobecker <brobecker@adacore.com>
14262
14263 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14264 confusion in comment.
14265
d631c5a7
JB
142662013-05-17 Joel Brobecker <brobecker@adacore.com>
14267
14268 * lynx-low.c (struct process_info_private): New type.
14269 (lynx_add_process): New function.
14270 (lynx_create_inferior, lynx_attach): Replace calls to
14271 add_process by calls to lynx_add_process.
14272 (lynx_resume): If PTID is null, then try using
14273 current_process()->private->last_wait_event_ptid.
14274 Add comments.
14275 (lynx_clear_inferiors): Delete. The contents of that function
14276 has been inlined in lynx_mourn;
14277 (lynx_wait_1): Save the ptid in the process's private data.
14278 (lynx_mourn): Free the process' private data. Replace call
14279 to lynx_clear_inferiors by call to clear_inferiors.
14280
96f7a20f
YQ
142812013-05-17 Yao Qi <yao@codesourcery.com>
14282
14283 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14284 the right place.
14285
db0dfaa0
LM
142862013-05-16 Luis Machado <lgustavo@codesourcery.com>
14287
14288 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14289 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14290 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14291 PT_TEXT_END_ADDR guards. Update comments.
14292 (linux_target_op) <read_offsets>: Conditionally define to
14293 linux_read_offsets if the target is UCLIBC and if it defines
14294 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14295
68f5f838
SL
142962013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14297 Andrew Jenner <andrew@codesourcery.com>
14298
14299 * Makefile.in (SFILES): Add linux-nios2-low.c.
14300 (clean): Add action to delete nios2-linux.c.
14301 (nios2-linux.c): New rule.
14302 * configure.srv: Add nios2*-*-linux*.
14303 * linux-nios2-low.c: New.
14304
1ebff1fd
HAQ
143052013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14306
14307 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14308
f6150862
HZ
143092013-04-25 Hui Zhu <hui@codesourcery.com>
14310
14311 PR gdb/15186
f6150862
HZ
14312 * ax.c (ax_printf): Add fflush.
14313
614c279d
TT
143142013-04-22 Tom Tromey <tromey@redhat.com>
14315
14316 * Makefile.in (SFILES): Add filestuff.c.
14317 (OBS): Add filestuff.o.
14318 (filestuff.o): New target.
14319 * config.in, configure: Rebuild.
14320 * configure.ac: Check for fdwalk, pipe2.
14321
7d4e5717
PA
143222013-04-17 Pedro Alves <palves@redhat.com>
14323
14324 * configure.ac (USE_THREAD_DB): Delete variable.
14325 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14326 Don't AC_SUBST USE_THREAD_DB.
14327 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14328 * config.in, configure: Regenerate.
14329
d5c93e41
PA
143302013-04-16 Pedro Alves <palves@redhat.com>
14331
14332 * linux-low.h (struct lwp_info) <thread_known>: Move under
14333 the USE_THREAD_DB #ifdef.
14334
04f5fe89
PA
143352013-04-16 Pedro Alves <palves@redhat.com>
14336
14337 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14338 (linux-low.o): Delete rule.
14339 * linux-low.h: Always include "gdb_thread_db.h" instead of
14340 conditionally including thread_db.h.
14341 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14342 HAVE_THREAD_DB_H.
14343
480b27bf
JK
143442013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14345
14346 * Makefile.in (install-only): Fix make install regression.
14347
43662968
JK
143482013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14349
14350 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14351 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14352 installation.
14353 * gdbserver.1: Remove.
14354
3e74e146
PA
143552013-03-22 Pedro Alves <palves@redhat.com>
14356
14357 * linux-low.c (handle_extended_wait): Don't call
14358 linux_enable_event_reporting.
14359
a8347a2a
TT
143602013-03-15 Tony Theodore <tonyt@logyst.com>
14361
14362 PR build/9098:
14363 * Makefile.in (SHELL): Use @SHELL@.
14364
eeb56fa7
SDJ
143652013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14366
14367 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14368 compiler warning.
14369
4fa7e2ff
JB
143702013-03-13 Joel Brobecker <brobecker@adacore.com>
14371
14372 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14373 Remove extraneous NULL element.
14374
8ddb1965
YQ
143752013-03-13 Yao Qi <yao@codesourcery.com>
14376
14377 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14378 'V' block in trace frame.
14379
9accd112
MM
143802013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14381
14382 * target.h (struct target_ops): Add btrace ops.
14383 (target_supports_btrace): New macro.
14384 (target_enable_btrace): New macro.
14385 (target_disable_btrace): New macro.
14386 (target_read_btrace): New macro.
14387 * gdbthread.h (struct thread_info): Add btrace field.
14388 * server.c: Include btrace-common.h.
14389 (handle_btrace_general_set): New function.
14390 (handle_btrace_enable): New function.
14391 (handle_btrace_disable): New function.
14392 (handle_general_set): Call handle_btrace_general_set.
14393 (handle_qxfer_btrace): New function.
14394 (struct qxfer qxfer_packets[]): Add btrace entry.
14395 * inferiors.c (remove_thread): Disable btrace.
14396 * linux-low: Include linux-btrace.h.
14397 (linux_low_enable_btrace): New function.
14398 (linux_low_read_btrace): New function.
14399 (linux_target_ops): Add btrace ops.
14400 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14401 Add srv_linux_btrace=yes.
14402 (x86_64-*-linux*): Add linux-btrace.o.
14403 Add srv_linux_btrace=yes.
14404 * configure.ac: Define HAVE_LINUX_BTRACE.
14405 * config.in: Regenerated.
14406 * configure: Regenerated.
14407
5cc22e4c
MM
144082013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14409
14410 * server.c (handle_qxfer): Preserve error message if -3 is
14411 returned.
14412 (qxfer): Document the -3 return value.
14413
7c97f91e
MM
144142013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14415
14416 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14417 (linux_btrace_h): New variable.
14418 (linux-btrace.o): New rule.
14419
be9a119c 144202013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14421 Hafiz Abid Qadeer <abidh@codesourcery.com>
14422
14423 * tracepoint.c (trace_buffer_size): New global.
14424 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14425 (init_trace_buffer): Change to one-argument function. Allocate
14426 trace buffer memory.
14427 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14428 handle QTBuffer:size packet.
14429 (cmd_bigqtbuffer_size): New function.
14430 (initialize_tracepoint): Call init_trace_buffer with
14431 DEFAULT_TRACE_BUFFER_SIZE.
14432 * server.c (handle_query): Add QTBuffer:size in the
14433 supported packets.
14434
e64f7499
YQ
144352013-03-07 Yao Qi <yao@codesourcery.com>
14436
14437 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14438 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14439 of -1.
14440 (cmd_qtsp): Adjust condition. Do post increment.
14441 Set cur_action and cur_step_action back to 0.
14442
f0ae6fc3
PA
144432013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14444
14445 PR server/15236
14446 * linux-low.c (linux_write_memory): Return early success if LEN is
14447 zero.
14448
b5b0b0af
CV
144492013-03-05 Corinna Vinschen <vinschen@redhat.de>
14450
334ad4a8 14451 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14452
589bc927
TT
144532013-02-28 Tom Tromey <tromey@redhat.com>
14454
14455 * configure.ac: Invoke AC_SYS_LARGEFILE.
14456 * configure, config.in: Rebuild.
14457
dfe07582
CV
144582013-02-28 Corinna Vinschen <vinschen@redhat.com>
14459
14460 * win32-low.c: Throughout, fix format strings and casts of
14461 printf-like functions to avoid type related warnings on all
14462 platforms.
14463 (get_child_debug_event): Print dwDebugEventCode as hex since
14464 that's how it's usually documented.
14465
736cd585
YQ
144662013-02-28 Yao Qi <yao@codesourcery.com>
14467
14468 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14469 pulongest.
14470
e1f58301
JW
144712013-02-27 Jiong Wang <jiwang@tilera.com>
14472
14473 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14474 (reg-tilegx32.c): New rule.
14475 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14476 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14477 different register info initializer according to elf class.
14478 (init_registers_tilgx32): New function. The tilegx32 register info
14479 initializer.
14480 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14481 (tile_store_gregset): Likewise.
14482
d171ca78
YQ
144832013-02-27 Yao Qi <yao@codesourcery.com>
14484
14485 * server.c (process_point_options): Print debug message when
14486 debug_threads is true.
14487
282bbdf3
YQ
144882013-02-26 Yao Qi <yao@codesourcery.com>
14489
14490 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14491
aca22551
PA
144922013-02-19 Pedro Alves <palves@redhat.com>
14493 Kai Tietz <ktietz@redhat.com>
14494
14495 PR gdb/15161
14496
14497 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14498 instead of strtoul to extract address from packet.
14499 (process_serial_event) <'z'>: Likewise.
14500
4f3cee1c
YQ
145012013-02-18 Yao Qi <yao@codesourcery.com>
14502
14503 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14504
8e1d55a3
PA
145052013-02-14 Pedro Alves <palves@redhat.com>
14506
14507 Plug memory leak.
14508
14509 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14510 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14511
458820da
PA
145122013-02-14 Pedro Alves <palves@redhat.com>
14513
14514 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14515
baea0dae
PA
145162013-02-14 Pedro Alves <palves@redhat.com>
14517
14518 * tracepoint.c (save_string): Delete.
14519 (add_tracepoint_action): Use savestring instead of save_string.
14520
0b1afbb3
PA
145212013-02-12 Pedro Alves <palves@redhat.com>
14522
14523 * linux-xtensa-low.c: Ditto.
14524 * xtensa-xtregs.c: Ditto.
14525
8a4ac37e
PA
145262013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14527
14528 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14529 thread_db.
14530
148de6bb
MS
145312013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14532
14533 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14534 aarch64_num_wp_regs and aarch64_num_bp_regs to
14535 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14536
55fac6e0
MS
145372013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14538
14539 * linux-aarch64-low.c (ps_get_thread_area): Replace
14540 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14541
176eb98c
MS
145422013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14543 Marcus Shawcroft <marcus.shawcroft@arm.com>
14544 Nigel Stephens <nigel.stephens@arm.com>
14545 Yufeng Zhang <yufeng.zhang@arm.com>
14546
14547 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14548 (aarch64.c, aarch64-without-fpu.c): New targets.
14549 * configure.srv (aarch64*-*-linux*): New.
14550 * linux-aarch64-low.c: New file.
14551
56f7af9c
MS
145522013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14553
43aaf8b6 14554 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14555 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14556 (dequeue_one_deferred_signal, linux_resume_one_thread)
14557 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14558 (linux_tracefork_grandchild, linux_test_for_tracefork)
14559 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14560 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14561 where the argument is 0.
14562
60f662b0
YQ
145632013-01-25 Yao Qi <yao@codesourcery.com>
14564
14565 * event-loop.c: Include "queue.h".
14566 (gdb_event_p): New typedef.
14567 (struct gdb_event) <next_event>: Remove.
14568 (event_queue): Change to QUEUE(gdb_event_p).
14569 (async_queue_event): Remove.
14570 (gdb_event_xfree): New.
14571 (initialize_event_loop): New.
14572 (process_event): Use API from QUEUE.
14573 (wait_for_event): Likewise.
14574 * server.c (main): Call initialize_event_loop.
14575 * server.h (initialize_event_loop): Declare.
14576
5ae4861a
YQ
145772013-01-18 Yao Qi <yao@codesourcery.com>
14578
14579 * ax.h (struct eval_agent_expr_context): New.
14580 (gdb_eval_agent_expr): Update declaration.
14581 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14582 TFRAME. Add new argument CTX.
14583 * server.h (struct eval_agent_expr_context): Declare.
14584 (agent_mem_read, agent_tsv_read): Update declaration.
14585 (agent_mem_read_string): Likewise.
14586 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14587 (add_traceframe_block): Add new argument TPOINT.
14588 Increase TPOINT->traceframe_usage.
14589 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14590 eval_tracepoint_agent_expr.
14591 (condition_true_at_tracepoint): Likewise.
14592 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14593 (agent_mem_read_string, agent_tsv_read): Likewise.
14594
85e00e85
YQ
145952013-01-16 Yao Qi <yao@codesourcery.com>
14596
14597 * linux-low.c (linux_resume_one_lwp): Don't check
14598 'lwp->bp_reinsert != 0'.
14599
4039cf45
JB
146002013-01-07 Joel Brobecker <brobecker@adacore.com>
14601 Pedro Alves <palves@redhat.com>
14602
14603 * lynx-low.c (ptrace_request_to_str): Define a temporary
14604 macro and use it to simplify this function's implementation.
14605
9044dee2
JB
146062013-01-07 Joel Brobecker <brobecker@adacore.com>
14607
14608 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14609 sets errno.
14610
e6352c8f
JB
146112013-01-07 Joel Brobecker <brobecker@adacore.com>
14612
14613 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14614
50681a27
JB
146152013-01-07 Joel Brobecker <brobecker@adacore.com>
14616
14617 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14618
3f6e77ef
JB
146192013-01-07 Joel Brobecker <brobecker@adacore.com>
14620
14621 * lynx-low.c (lynx_resume): Use the resume_info parameter
14622 to determine the ptid for the lynx_ptrace call, unless
14623 it is equal to minus_one_ptid, in which case we use the
14624 ptid of the current_inferior.
14625 (lynx_wait_1): After having received a thread create/exit
14626 event, resume the inferior's execution using the signaling
14627 thread's ptid, rather than the old ptid.
14628
7fda33ae
JB
146292013-01-07 Joel Brobecker <brobecker@adacore.com>
14630
14631 * lynx-low.c (lynx_resume): Delete variable ret.
14632
b9786c74
JB
146332013-01-01 Joel Brobecker <brobecker@adacore.com>
14634
14635 * gdbreplay.c (gdbreplay_version): Update copyright year.
14636 * server.c (gdbserver_version): Likewise.
14637
8b93d60f
JB
146382012-12-17 Joel Brobecker <brobecker@adacore.com>
14639
14640 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14641 new thread.
14642
037335a7
JB
146432012-12-17 Joel Brobecker <brobecker@adacore.com>
14644
14645 * lynx-low.c (ptrace_request_to_str): Add handling for
14646 PTRACE_GETTRACESIG.
14647
52d4cbd8
JB
146482012-12-17 Joel Brobecker <brobecker@adacore.com>
14649
14650 * lynx-low.c (lynx_attach): Delete variable new_process.
14651
ab8f6ca9
JB
146522012-12-17 Joel Brobecker <brobecker@adacore.com>
14653
14654 * lynx-low.c (lynx_create_inferior): Delete variable
14655 new_process.
14656
78cbc024
JB
146572012-12-17 Joel Brobecker <brobecker@adacore.com>
14658
14659 * lynx-low.c (ptrace_request_to_str): Do not handle
14660 PTRACE_GETTHREADLIST if this macro does not exist.
14661
14a00470
YQ
146622012-12-15 Yao Qi <yao@codesourcery.com>
14663
14664 * Makefile.in (OBS): Add notif.o.
14665 * notif.c, notif.h: New.
14666 * server.c: Include "notif.h".
14667 (struct vstop_notif) <next>: Remove.
14668 <base>: New field.
14669 (queue_stop_reply): Update.
14670 (push_event, send_next_stop_reply): Remove.
14671 (discard_queued_stop_replies): Update.
14672 (notif_stop): New variable.
14673 (handle_v_stopped): Remove.
14674 (handle_v_requests): Don't call handle_v_stopped. Call
14675 handle_ack_notif instead.
14676 (queue_stop_reply_callback): Call notif_event_enque instead
14677 of queue_stop_reply.
14678 (handle_status): Don't call send_next_stop_reply, call
14679 notif_write_event instead.
14680 (kill_inferior_callback): Likewise.
14681 (detach_or_kill_inferior_callback): Likewise.
14682 (main): Call initialize_notif.
14683 (process_serial_event): Call QUEUE_is_empty.
14684 (handle_target_event): Call notif_push instead of push event.
14685 * server.h (push_event): Remove declaration.
14686
61c125b9
TT
146872012-12-10 Tom Tromey <tromey@redhat.com>
14688
14689 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14690 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14691 macros.
14692 (.c.o): Rewrite.
14693 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14694 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14695 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14696 (amd64-linux-ipa.o, ax.o): Rewrite.
14697 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14698 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14699 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14700 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14701 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14702 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14703 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14704 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14705 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14706 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14707 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14708 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14709 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14710 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14711 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14712 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14713 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14714 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14715 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14716 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14717 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14718 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14719 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14720 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14721 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14722 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14723 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14724 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14725 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14726 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14727 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14728 (reg-tilegx.o): Remove.
14729 (all_object_files): New macro.
14730 Include .deps files.
14731 * aclocal.m4, configure: Rebuild.
14732 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14733 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14734 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14735
e90e9ad9
TT
147362012-12-05 Tom Tromey <tromey@redhat.com>
14737
14738 PR gdb/14917:
14739 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14740
02d403bf 147412012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14742
14743 * configure.ac: Check for linux/perf_event.h.
14744 * config.in: Regenerated.
14745 * configure: Regenerated.
14746
0270a750
PA
147472012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14748
14749 * hostio.c (handle_readlink): Decrease buffer size
14750 parameter passed to readlink by one byte.
14751
8c29b58e
YQ
147522012-11-26 Yao Qi <yao@codesourcery.com>
14753
14754 * configure.ac (build_warnings): Append '-Wempty-body'.
14755 * configure: Regenerated.
14756 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14757 body.
14758
8bdce1ff
PM
147592012-11-15 Pierre Muller <muller@sourceware.org>
14760
14761 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14762 * config.in: Regenerate.
14763 * configure: Regenerate.
14764 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14765 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14766 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14767 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14768 header.
14769 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14770 instead of <sys/wait.h> header.
14771 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14772
02d403bf 147732012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14774
14775 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14776 (various make rules): Remove -DGDBSERVER
14777
fbd5db48
YQ
147782012-11-09 Yao Qi <yao@codesourcery.com>
14779
14780 * spu-low.c (current_ptid): Move it to ..
14781 * gdbthread.h: ... here. New.
14782 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14783 * server.c (myresume, process_serial_event): Likewise.
14784 * thread-db.c (thread_db_find_new_threads): Likewise.
14785 * tracepoint.c (run_inferior_command): Likewise.
14786
b3dc46ff
AB
147872012-10-01 Andrew Burgess <aburgess@broadcom.com>
14788
14789 * server.c (handle_search_memory_1): Include access length in
14790 warning message.
14791
07c04788
HPN
147922012-09-05 Michael Brandt <michael.brandt@axis.com>
14793
14794 * linux-crisv32-low.c: Fix compile errors.
14795
918d227b
YQ
147962012-09-04 Yao Qi <yao@codesourcery.com>
14797
14798 * tracepoint.c (cmd_qtsv): Adjust debug message.
14799 Don't check CUR_TPOINT.
14800
18c1b81a
YQ
148012012-08-28 Yao Qi <yao@codesourcery.com>
14802
14803 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14804 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14805 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14806 Remove declarations of xmalloc, xreallloc, xstrdup and
14807 freeargv.
14808 * Makefile.in (libiberty_h): New.
14809 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14810 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14811
dc82f37b
YQ
148122012-08-23 Yao Qi <yao@codesourcery.com>
14813
14814 * server.h: Remove declaration of 'xsnprintf'.
14815
406b1477
KS
148162012-08-22 Keith Seitz <keiths@redhat.com>
14817
14818 * server.h: Include build-gnulib-gbserver/config.h.
14819 * gdbreplay.c: Likewise.
14820
e6712ff1
DE
148212012-08-08 Doug Evans <dje@google.com>
14822
14823 * Makefile.in (SFILES): Add gdb_vecs.c.
14824 (OBS): Add gdb_vecs.o.
14825 (gdb_vecs_h, host_defs_h): New variables.
14826 (thread-db.o): Add $(gdb_vecs_h) dependency.
14827 (gdb_vecs.o): New rule.
14828 * thread-db.c: #include "gdb_vecs.h".
14829 (thread_db_load_search): Use a vector to iterate over path elements.
14830 Handle text appearing after "$pdir".
14831
14832 * configure.ac: Add check for strstr.
14833 * config.in: Regenerate.
14834 * configure: Regenerate.
14835
7c3270ae
UW
148362012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14837
14838 * hostio.c (handle_pread): If pread fails, fall back to attempting
14839 lseek/read.
14840 (handle_pwrite): Likewise for pwrite.
14841
b62e2b27
UW
148422012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14843
14844 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14845 between unsupported TYPE and unimplementable ADDR/LEN combination.
14846 (arm_insert_point): Act on new return value.
14847
78a99e91
PA
148482012-07-31 Pedro Alves <palves@redhat.com>
14849
14850 * server.c (process_point_options): Only skip tokens if we find
14851 one that is unrecognized. Don't treat 'X' specially while
14852 skipping unrecognized tokens.
14853
fcf303ab
UW
148542012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14855
14856 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14857 to 4-byte-align HW breakpoint addresses for Thumb.
14858
7255706c
YQ
148592012-07-27 Yao Qi <yao@codesourcery.com>
14860
14861 PR remote/14161.
14862
14863 * server.h: Declare gdb_agent_about_to_close.
14864 * target.c (kill_inferior): Include "agent.h".
14865 New. Send command 'kill'.
14866 * target.h (kill_inferior): Removed macro.
14867 * tracepoint.c (gdb_agent_about_to_close): New.
14868 (gdb_agent_helper_thread): Handle command 'close'.
14869 Wait endlessly until the inferior stops.
14870 Install gdb_agent_remove_socket to atexit hook.
14871 (agent_socket_name): New static variable.
14872 (gdb_agent_socket_init): Replace local variable 'name' with
14873 'agent_socket_name'.
14874 (gdb_agent_remove_socket): New.
14875
5a3f286f
YQ
148762012-07-27 Yao Qi <yao@codesourcery.com>
14877
14878 * server.c (process_point_options): Stop at 'X' when parsing.
14879
961bd387
ME
148802012-07-19 Michael Eager <eager@eagercon.com>
14881
a261b8f5 14882 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14883 to hw_execute.
14884 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14885 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14886 hardware breakpoint.
14887
aa7c7447
JK
148882012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14889
14890 * gdbserver/linux-low.c (initialize_low): Call
14891 linux_ptrace_init_warnings.
14892
7f216e7c
DE
148932012-07-02 Doug Evans <dje@google.com>
14894
14895 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14896 pointer to int.
14897
d3ce09f5
SS
148982012-07-02 Stan Shebs <stan@codesourcery.com>
14899
14900 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14901 (ax.o): Add it to build rule.
14902 (ax-ipa.o): Ditto.
14903 (OBS): Add format.o.
14904 (IPA_OBS): Add format.o.
14905 * server.c (handle_query): Claim support for breakpoint commands.
14906 (process_point_options): Add command case.
14907 (process_serial_event): Leave running if there are printfs in
14908 effect.
14909 * mem-break.h (any_persistent_commands): Declare.
14910 (add_breakpoint_commands): Declare.
14911 (gdb_no_commands_at_breakpoint): Declare.
14912 (run_breakpoint_commands): Declare.
14913 * mem-break.c (struct point_command_list): New struct.
14914 (struct breakpoint): New field command_list.
14915 (any_persistent_commands): New function.
14916 (add_commands_to_breakpoint): New function.
14917 (add_breakpoint_commands): New function.
14918 (gdb_no_commands_at_breakpoint): New function.
14919 (run_breakpoint_commands): New function.
14920 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14921 locally.
14922 * ax.c: Include format.h.
14923 (ax_printf): New function.
14924 (gdb_eval_agent_expr): Add printf opcode.
14925
2f8f6aed
YQ
149262012-06-13 Yao Qi <yao@codesourcery.com>
14927
14928 * server.c (start_inferior): Remove duplicated writes to fields
14929 'last_resume_kind' and 'last_status' of 'current_inferior'.
14930
0c9070b3
YQ
149312012-06-12 Yao Qi <yao@codesourcery.com>
14932 Pedro Alves <palves@redhat.com>
14933
14934 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14935 comment.
14936 * server.c (handle_v_cont): Extend comment.
14937
c52daf70
YQ
149382012-06-11 Yao Qi <yao@codesourcery.com>
14939
14940 * linux-low.c (linux_attach): Add 'static'.
14941
d38bbb0a
YQ
149422012-06-06 Yao Qi <yao@codesourcery.com>
14943
14944 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14945
89dc0afd
JK
149462012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14947
14948 Fix gcc -flto compilation warning.
14949 * server.c (main): Make variable multi_mode and attach volatile.
14950
75f62ce7
TJB
149512012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14952
14953 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14954 if the platform doesn't know about it.
14955
65f479b6
PA
149562012-05-30 Jeff Kenton <jkenton@tilera.com>
14957
14958 * Makefile.in (SFILES): Add linux-tile-low.c.
14959 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14960 * configure.srv: Handle tilegx-*-linux*.
14961 * linux-tile-low.c: New file.
14962
0c5bf5a9
JK
149632012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14964
14965 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14966
a493e3e2
PA
149672012-05-24 Pedro Alves <palves@redhat.com>
14968
14969 PR gdb/7205
14970
43aaf8b6 14971 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14972
2ea28649
PA
149732012-05-24 Pedro Alves <palves@redhat.com>
14974
14975 PR gdb/7205
14976
14977 Replace target_signal with gdb_signal throughout.
14978
8d409d16
MR
149792012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14980
14981 * linux-low.c (linux_store_registers): Avoid the copying sequence
14982 when no data has been retrieved by ptrace.
14983
23512c01
MGD
149842012-05-22 Will Deacon <will.deacon@arm.com>
14985
14986 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14987 Include asm/ptrace.h.
14988 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14989 already defined.
14990
4934b29e
MR
149912012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14992
14993 * linux-low.c (linux_store_registers): Don't re-retrieve data
14994 with ptrace that has already been obtained from /proc. Always
14995 copy any data retrieved with ptrace to the buffer supplied.
14996
bde24c0a
PA
149972012-05-11 Yao Qi <yao@codesourcery.com>
14998 Pedro Alves <palves@redhat.com>
14999
15000 * linux-low.c (enum stopping_threads_kind): New.
15001 (stopping_threads): Change type to `enum stopping_threads_kind'.
15002 (handle_extended_wait): If stopping and suspending threads, leave
15003 the new_lwp suspended too.
15004 (linux_wait_for_event): Adjust.
15005 (stop_all_lwps): Set `stopping_threads' to
15006 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15007 whether we're suspending threads or just stopping them. Assert no
15008 recursion happens.
15009
623b6bdf
YQ
150102012-04-29 Yao Qi <yao@codesourcery.com>
15011
15012 * server.h: Move some code to ...
15013 * gdbthread.h: ... here. New.
15014 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15015 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15016 (nto-low.o, win32-low.o): Likewise.
15017 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15018 * regcache.c, remote-utils.c, server.c: Likewise.
15019 * target.c, tracepoint.c, win32-low.c: Likewise.
15020
f15f9948
TJB
150212012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15022
15023 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15024 (PTRACE_ARG4_TYPE): Likewise.
15025 (PTRACE_XFER_TYPE): Likewise.
15026 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15027 ptrace to PTRACE_ARG3_TYPE.
15028 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15029 (PTRACE_ARG4_TYPE): Likewise.
15030 (PTRACE_XFER_TYPE): Likewise.
15031 (linux_detach_one_lwp): Cast fourth argument of
15032 ptrace to long then PTRACE_ARG4_TYPE.
15033 (regsets_fetch_inferior_registers): Cast third argument of
15034 ptrace to long then PTRACE_ARG3_TYPE.
15035 (regsets_store_inferior_registers): Likewise.
15036
38ea300a
PA
150372012-04-20 Pedro Alves <palves@redhat.com>
15038
15039 * configure: Regenerate.
15040
c971b7fa
PA
150412012-04-19 Pedro Alves <palves@redhat.com>
15042
43aaf8b6 15043 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15044 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15045 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15046 (all, install-only, uninstall, clean-info, all-lib, clean): No
15047 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15048 (maintainer-clean realclean distclean): Use subdir_do.
15049 (subdir_do): New.
15050 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15051 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15052 * acinclude.m4: Include acx_configure_dir.m4.
15053 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15054 calls. Call AC_PROG_RANLIB. Configure gnulib using
15055 ACX_CONFIGURE_DIR.
15056 (GNULIB): New.
15057 (GNULIB_STDINT_H): Adjust.
15058 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15059 * gdbreplay.c: Include build-gnulib/config.h.
15060 * server.h: Likewise.
15061 * aclocal.m4: Regenerate.
15062 * config.in: Regenerate.
15063 * configure: Regenerate.
c971b7fa 15064
809277f8
PA
150652012-04-19 Pedro Alves <palves@redhat.com>
15066
15067 * Makefile.in (LIBGNU, INCGNU): Adjust.
15068 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15069 (all, install-only, uninstall, clean-info, all-lib, clean)
15070 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15071 * configure.ac: Adjust AC_OUTPUT output.
15072 * aclocal.m4: Regenerate.
15073 * configure: Regenerate.
15074
fd9bb8b8
PA
150752012-04-19 Pedro Alves <palves@redhat.com>
15076
15077 * Makefile.in (generated_files): New.
15078 (server_h): Remove the explicit dependency on config.h, and depend
15079 on $generated_files.
15080
1c298c66
PA
150812012-04-19 Pedro Alves <palves@redhat.com>
15082
15083 * Makefile.in (INCGNU): Add -Ignulib.
15084
57c4b50b
PA
150852012-04-19 Pedro Alves <palves@redhat.com>
15086
15087 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15088 (INCGNU): ... this, and spell out -I here.
15089 (GNULIB_LIB): Rename to ...
15090 (LIBGNU): ... this.
15091 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15092
1030e047
PA
150932012-04-19 Pedro Alves <palves@redhat.com>
15094
15095 * config.in: Regenerate.
15096
447d4319
PA
150972012-04-19 Pedro Alves <palves@redhat.com>
15098
15099 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15100 * server.h (memmem): Remove declaration.
15101 * config.in: Regenerate.
15102 * configure: Regenerate.
15103
aad9eab9
YQ
151042012-04-19 Yao Qi <yao@codesourcery.com>
15105
15106 * Makefile.in (SFILES): Add common/vec.c.
15107 (OBS): Add vec.o.
15108 (vec.o): New rule.
15109
3e10640f
YQ
151102012-04-19 Yao Qi <yao@codesourcery.com>
15111
15112 * remote-utils.c (prepare_resume_reply): Replace with macro
15113 target_core_of_thread.
15114 * server.c (handle_qxfer_threads_proper): Likewise.
15115 * target.h (traget_core_of_thread): New macro.
15116
71622373
PA
151172012-04-18 Pedro Alves <palves@redhat.com>
15118
15119 * aclocal.m4: Regenerate.
15120 * configure: Regenerate.
15121
80d26939
YQ
151222012-04-16 Yao Qi <yao@codesourcery.com>
15123
15124 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15125 duplicated on address.
15126
42476b70
YQ
151272012-04-16 Yao Qi <yao@codesourcery.com>
15128
15129 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15130 (struct tracepoint_action_ops) <send>: New field.
15131 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15132 (agent_expr_send, x_tracepoint_action_send): New.
15133 (l_tracepoint_action_send): New.
15134 (cmd_qtdp): Download and install tracepoint
15135 according to `use_agent'.
15136 (run_inferior_command): Add one more parameter `len'.
15137 Update callers.
15138 (tracepoint_send_agent): New.
15139 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15140
7bc83639
YQ
151412012-04-16 Yao Qi <yao@codesourcery.com>
15142
15143 * tracepoint.c (download_tracepoints): Moved to ...
15144 (cmd_qtstart): ... here.
15145
5f18041e
YQ
151462012-04-14 Yao Qi <yao@codesourcery.com>
15147
15148 * tracepoint.c: Include inttypes.h.
15149 (struct collect_memory_action): Use sized types.
15150 (struct tracepoint): Likewise.
15151 (cmd_qtdp, stop_tracing): Update print specifiers.
15152 (cmd_qtp, response_tracepoint): Likewise.
15153 (collect_data_at_tracepoint): Likewise.
15154 (collect_data_at_step): Likewise.
15155
55a8c076
YQ
151562012-04-14 Yao Qi <yao@codesourcery.com>
15157
15158 Import gnulib module inttypes.
15159 * aclocal.m4, config.in, configure: Regenerated.
15160
dc750257
YQ
151612012-04-14 Yao Qi <yao@codesourcery.com>
15162
15163 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15164 Makefile and config.status at last.
15165
0ab5faf9
YQ
151662012-04-13 Yao Qi <yao@codesourcery.com>
15167
15168 * tracepoint.c: Include stdint.h unconditionally.
15169
18f5fd81
TJB
151702012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15171
15172 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15173 on BFD_HAVE_SYS_PROCFS_TYPE.
15174 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15175 * configure: Regenerate.
15176 * config.in: Likewise.
15177
4d47af5c
L
151782012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15179
15180 * Makefile.in (clean): Also remove x32.c x32-linux.c
15181 x32-avx.c x32-avx-linux.c.
15182 (x32.o): New target.
15183 (x32.c): Likewise.
15184 (x32-linux.o): Likewise.
15185 (x32-linux.c): Likewise.
15186 (x32-avx.o): Likewise.
15187 (x32-avx.c): Likewise.
15188 (x32-avx-linux.o): Likewise.
15189 (x32-avx-linux.c): Likewise.
15190
15191 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15192 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15193 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15194 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15195 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15196 i386/x32-avx-linux.xml.
15197
15198 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15199 (init_registers_x32_avx_linux): Likwise.
15200 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15201 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15202
ecedbe58
PA
152032012-04-13 Pedro Alves <palves@redhat.com>
15204
15205 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15206 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15207 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15208 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15209 the sub-make.
15210
c92b5177
L
152112012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15212
15213 * linux-x86-low.c (compat_x32_clock_t): New.
15214 (compat_x32_siginfo_t): Likewise.
15215 (compat_x32_siginfo_from_siginfo): Likewise.
15216 (siginfo_from_compat_x32_siginfo): Likewise.
15217 (linux_is_elf64): Likewise.
15218 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15219 and siginfo_from_compat_x32_siginfo for x32.
15220 (x86_arch_setup): Set linux_is_elf64.
15221
214d508e
L
152222012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15223
15224 PR gdb/13969
15225 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15226 e_machine field.
15227 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15228 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15229 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15230 compatible with process.
15231
c9a1864a
YQ
152322012-04-12 Yao Qi <yao@codesourcery.com>
15233
15234 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15235 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15236 (install-only, install-info, clean): Handle sub dir gnulib.
15237 (all-lib, am--refresh): New targets.
15238 (memmem.o): Remove target.
15239 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15240 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15241 (AC_REPLACE_FUNCS): Remove memmem.
15242 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15243 (AC_OUTPUT): Generate Makefile in gnulib/.
15244 * aclocal.m4, config.in, configure: Regenerated.
15245
367ba2c2
MR
152462012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15247
15248 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15249
9d236627
PA
152502012-04-05 Pedro Alves <palves@redhat.com>
15251
15252 -Werror=strict-aliasing
15253
15254 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15255 pointer.
15256
111217b3
PA
152572012-04-04 Pedro Alves <palves@redhat.com>
15258
15259 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15260 (sparc_store_gregset_from_stack, sparc_store_gregset)
15261 (sparc_breakpoint_at): Fix formatting.
15262
8365dcf5
TJB
152632012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15264
15265 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15266 are available.
15267 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15268 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15269 * config.in: Regenerate.
15270 * configure: Likewise.
15271
689cc2ae
PA
152722012-03-29 Pedro Alves <palves@redhat.com>
15273
15274 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15275 Correct ptrace arguments.
15276
c14dfd32
PA
152772012-03-28 Pedro Alves <palves@redhat.com>
15278
15279 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15280 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15281 (IA64_FR1_REGNUM): New defines.
15282 (ia64_fetch_register): New.
15283 (the_low_target): Install it.
15284 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15285 field.
15286 * linux-low.c (linux_fetch_registers): Try the
15287 the_low_target.fetch_register hook first.
15288
15289 * linux-arm-low.c (the_low_target): Adjust.
15290 * linux-bfin-low.c (the_low_target): Adjust.
15291 * linux-cris-low.c (the_low_target): Adjust.
15292 * linux-crisv32-low.c (the_low_target): Adjust.
15293 * linux-m32r-low.c (the_low_target): Adjust.
15294 * linux-m68k-low.c (the_low_target): Adjust.
15295 * linux-mips-low.c (the_low_target): Adjust.
15296 * linux-ppc-low.c (the_low_target): Adjust.
15297 * linux-s390-low.c (the_low_target): Adjust.
15298 * linux-sh-low.c (the_low_target): Adjust.
15299 * linux-sparc-low.c (the_low_target): Adjust.
15300 * linux-tic6x-low.c (the_low_target): Adjust.
15301 * linux-x86-low.c (the_low_target): Adjust.
15302 * linux-xtensa-low.c (the_low_target): Adjust.
15303
63c88e13
PA
153042012-03-26 Pedro Alves <palves@redhat.com>
15305
15306 * server.c (handle_qxfer_libraries): Don't bail early if
15307 the_target->qxfer_libraries_svr4 is not NULL.
15308
fb723180
PA
153092012-03-26 Pedro Alves <palves@redhat.com>
15310
15311 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15312
0afae3cf
PA
153132012-03-23 Pedro Alves <palves@redhat.com>
15314
15315 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15316 "library-list-svr4" element's start tag when the the DSO list is
15317 empty.
15318
485f1ee4
PA
153192012-03-23 Pedro Alves <palves@redhat.com>
15320
15321 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15322 a variable whose type size is the same as the inferior's pointer
15323 size.
15324
a5362b9a
TS
153252012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15326
15327 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15328 struct siginfo.
15329 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15330 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15331 * linux-low.h: Include <signal.h>.
15332 (struct siginfo): Remove forward declaration.
15333 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15334 struct siginfo.
15335
d226c142
MF
153362012-03-21 Mike Frysinger <vapier@gentoo.org>
15337
15338 * .gitignore: Ignore more files.
15339
122f36ef
PA
153402012-03-19 Pedro Alves <palves@redhat.com>
15341 Jan Kratochvil <jan.kratochvil@redhat.com>
15342
15343 * server.c (cont_thread, general_thread): Add describing comments.
15344 (start_inferior): Clear `cont_thread'.
15345 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15346 of a process.
15347
fc3e5175
YQ
153482012-03-15 Yao Qi <yao@codesourcery.com>
15349
15350 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15351 handling to ...
15352 (cmd_qtdp): ... here.
15353
8d0d92cd
YQ
153542012-03-15 Yao Qi <yao@codesourcery.com>
15355
15356 * tracepoint.c (struct tracepoint_action_ops): New.
15357 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15358 (m_tracepoint_action_download): New.
15359 (r_tracepoint_action_download): New.
15360 (x_tracepoint_action_download): New.
15361 (l_tracepoint_action_download): New.
15362 (add_tracepoint_action): Install `action->ops' according type.
15363 (download_tracepoint_1): Move code `download' function pointer
15364 of various tracepoint_action_ops.
15365
87b0bb13
JK
153662012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15367
15368 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15369 linux_ptrace_attach_warnings.
15370
5f572dec
JK
153712012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15372
15373 * Makefile.in (linux-ptrace.o): New.
15374 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15375 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15376 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15377 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15378 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15379 of these targets.
15380 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15381
f4647387
YQ
153822012-03-08 Yao Qi <yao@codesourcery.com>
15383 Pedro Alves <palves@redhat.com>
15384
15385 Fix PR server/13392.
15386 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15387 offset of JMP insn.
15388 * tracepoint.c (remove_tracepoint): New.
15389 (cmd_qtdp): Call remove_tracepoint when failed to install.
15390
9b224c5e
PA
153912012-03-07 Pedro Alves <palves@redhat.com>
15392
15393 * linux-low.c (get_detach_signal): New.
15394 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15395 Pass on pending signals to PTRACE_DETACH. Check the result of the
15396 ptrace call.
15397 * server.c (program_signals, program_signals_p): New.
15398 (handle_general_set): Handle QProgramSignals.
15399 * server.h (program_signals, program_signals_p): Declare.
15400
e237a7e2
JK
154012012-03-05 Pedro Alves <palves@redhat.com>
15402 Jan Kratochvil <jan.kratochvil@redhat.com>
15403
15404 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15405 New comment why.
15406
5808517f
YQ
154072012-03-03 Yao Qi <yao@codesourcery.com>
15408
15409 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15410 agent_look_up_symbols.
15411
58b4daa5
YQ
154122012-03-03 Yao Qi <yao@codesourcery.com>
15413
15414 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15415 (linux-x86-low.o): Likewise.
15416 * server.h: Remove in_process_agent_loaded.
15417 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15418 common/agent.c.
15419 Update callers.
15420
8ffcbaaf
YQ
154212012-03-03 Yao Qi <yao@codesourcery.com>
15422
15423 * tracepoint.c (gdb_agent_capability): New global.
15424 (in_process_agent_loaded_ust): Renamed to
15425 `in_process_agent_supports_ust'.
15426 Update callers.
15427 (in_process_agent_supports_ust): Call agent_capability_check.
15428 (clear_installed_tracepoints): Assert that agent supports
15429 agent.
15430
d1feda86
YQ
154312012-03-03 Yao Qi <yao@codesourcery.com>
15432
15433 * linux-low.c (linux_supports_agent): New.
15434 (linux_target_ops): Initialize field `supports_agent' with
15435 linux_supports_agent.
15436 * target.h (struct target_ops) <supports_agent>: New.
15437 (target_supports_agent): New macro.
15438 * server.c (handle_general_set): Handle packet 'QAgent'.
15439 (handle_query): Send `QAgent+'.
15440 * Makefile.in (server.o): Depends on agent.h.
15441
2fa291ac
YQ
154422012-03-03 Yao Qi <yao@codesourcery.com>
15443
15444 * Makefile.in (OBS): Add agent.o.
15445 Add new rule for agent.o.
15446 Track dependence of tracepoint.c on agent.h.
15447 * tracepoint.c (run_inferior_command_1):
15448 (run_inferior_command): Call agent_run_command.
15449 (gdb_ust_connect_sync_socket): Deleted. Move it to
15450 common/agent.c.
15451 (resume_thread, stop_thread): Likewise.
15452 (gdb_ust_socket_init): Renamed to ...
15453 (gdb_agent_socket_init): ... New.
15454 (gdb_ust_thread): Renamed to ...
15455 (gdb_agent_helper_thread): ... New.
15456 (gdb_ust_init): Move some code to ...
15457 (gdb_agent_init): ... here. New.
15458 [HAVE_UST]: Call gdb_ust_init.
15459 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15460 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15461 * config.in, configure: Regenerated.
15462
05044653
PA
154632012-03-02 Pedro Alves <palves@redhat.com>
15464
15465 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15466 * linux-low.c (struct simple_pid_list): New.
15467 (stopped_pids): New a struct simple_pid_list pointer.
15468 (add_to_pid_list, pull_pid_from_list): New.
15469 (handle_extended_wait): Don't assume the first signal new children
15470 report is SIGSTOP. Adjust call to pull_pid_from_list.
15471 (linux_wait_for_lwp): Adjust.
15472
8d00225b
YQ
154732012-03-02 Yao Qi <yao@codesourcery.com>
15474
15475 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15476 debug log.
15477
19560ba5
YQ
154782012-03-02 Yao Qi <yao@codesourcery.com>
15479
15480 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15481 `stop_pc' and `tpoint'. Update caller.
15482
1faeff08
MR
154832012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15484
15485 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15486 * linux-low.c (use_linux_regsets): New macro.
15487 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15488 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15489 (linux_register_in_regsets): New function.
15490 (usr_fetch_inferior_registers): Skip registers covered by
15491 regsets.
15492 (usr_store_inferior_registers): Likewise.
15493 (usr_fetch_inferior_registers): New macro.
15494 (usr_store_inferior_registers): Likewise.
15495 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15496 (linux_store_registers): Likewise.
15497 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15498 prototype.
15499 (init_registers_mips64_dsp_linux): Likewise.
15500 (init_registers_mips_linux): New macro.
15501 (init_registers_mips_dsp_linux): Likewise.
15502 (mips_dsp_num_regs): Likewise.
15503 (DSP_BASE, DSP_CONTROL): New fallback macros.
15504 (mips_base_regs): New macro.
15505 (mips_regmap): Use it. Fix the size.
15506 (mips_dsp_regmap): New variable.
15507 (mips_dsp_regset_bitmap): Likewise.
15508 (mips_arch_setup): New function.
15509 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15510 than mips_regmap.
15511 (mips_cannot_store_register): Likewise.
15512 (the_low_target): Update .arch_setup, .num_regs and .regmap
15513 initializers. Add .regset_bitmap initializer.
15514 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15515 initializer.
15516 * linux-bfin-low.c (the_low_target): Likewise.
15517 * linux-cris-low.c (the_low_target): Likewise.
15518 * linux-crisv32-low.c (the_low_target): Likewise.
15519 * linux-ia64-low.c (the_low_target): Likewise.
15520 * linux-m32r-low.c (the_low_target): Likewise.
15521 * linux-m68k-low.c (the_low_target): Likewise.
15522 * linux-ppc-low.c (the_low_target): Likewise.
15523 * linux-s390-low.c (the_low_target): Likewise.
15524 * linux-sh-low.c (the_low_target): Likewise.
15525 * linux-sparc-low.c (the_low_target): Likewise.
15526 * linux-tic6x-low.c (the_low_target): Likewise.
15527 * linux-x86-low.c (the_low_target): Likewise.
15528 * linux-xtensa-low.c (the_low_target): Likewise.
15529 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15530 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15531 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15532 srv_xmlfiles.
15533 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15534 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15535
c03e6ccc
YQ
155362012-02-29 Yao Qi <yao@codesourcery.com>
15537 Pedro Alves <palves@redhat.com>
15538
15539 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15540 `step_over_finished' is true.
15541
644cebc9
PA
155422012-02-27 Pedro Alves <palves@redhat.com>
15543
15544 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15545 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15546
c14d7ab2
PA
155472012-02-27 Pedro Alves <palves@redhat.com>
15548
15549 PR server/9684
15550 * linux-low.c (pid_is_stopped): New.
15551 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15552
412c89dd
LM
155532012-02-25 Luis Machado <lgustavo@codesourcery.com>
15554
15555 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15556 of conditions.
15557
b745defe
MR
155582012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15559
15560 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15561
9f3a5c85
LM
155622012-02-24 Luis Machado <lgustavo@codesourcery>
15563
15564 * server.c (handle_query): Advertise support for target-side
15565 breakpoint condition evaluation.
15566 (process_point_options): New function.
15567 (process_serial_event): When inserting a breakpoint, check for
15568 a target-side condition that should be evaluated.
15569
15570 * mem-break.c: Include regcache.h and ax.h.
15571 (point_cond_list_t): New data structure.
15572 (breakpoint) <cond_list>: New field.
15573 (find_gdb_breakpoint_at): Make non-static.
15574 (delete_gdb_breakpoint_at): Clear any target-side
15575 conditions.
15576 (clear_gdb_breakpoint_conditions): New function.
15577 (add_condition_to_breakpoint): Likewise.
15578 (add_breakpoint_condition): Likewise.
15579 (gdb_condition_true_at_breakpoint): Likewise.
15580 (gdb_breakpoint_here): Return result directly instead
15581 of going through a local variable.
15582
15583 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15584 (clear_gdb_breakpoint_conditions): Likewise.
15585 (add_breakpoint_condition): Likewise.
15586 (gdb_condition_true_at_breakpoint): Likewise.
15587
15588 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15589 (need_step_over_p): Take target-side breakpoint condition into
15590 consideration.
15591
5e1dc496
LM
155922012-02-24 Luis Machado <lgustavo@codesourcery>
15593
15594 * server.h: Include tracepoint.h.
15595 (agent_mem_read, agent_get_trace_state_variable_value,
15596 agent_set_trace_state_variable_value,
15597 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15598 get_set_tsv_func_addr): New prototypes.
15599
15600 * ax.h: New include file.
15601 * ax.c: New source file.
15602
15603 * tracepoint.c: Include ax.h.
15604 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15605 agent_expr, eval_result_type): Move to ax.h.
15606 (parse_agent_expr): Rename to ...
15607 (gdb_parse_agent_expr): ... this, make it non-static and move
15608 to ax.h.
15609 (unparse_agent_expr) Rename to ...
15610 (gdb_unparse_agent_expr): ... this, make it non-static and move
15611 to ax.h.
15612 (eval_agent_expr): Rename to ...
15613 (eval_tracepoint_agent_expr): ... this.
15614 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15615 forward declarations.
15616 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15617 (agent_get_trace_state_variable_value): New function.
15618 (agent_set_trace_state_variable_value): New function.
15619 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15620 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15621 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15622 (condition_true_at_tracepoint): Likewise.
15623 (parse_agent_expr): Rename to ...
15624 (gdb_parse_agent_expr): ... this and move to ax.c.
15625 (unparse_agent_expr): Rename to ...
15626 (gdb_unparse_agent_expr): ... this and move to ax.c.
15627 (gdb_agent_op_name): Move to ax.c.
15628 (eval_agent_expr): Rename to ...
15629 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15630 and move to ax.c.
15631 (eval_tracepoint_agent_expr): New function.
15632 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15633 non-static.
5e1dc496
LM
15634 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15635 ax.c.
15636 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15637 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15638 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15639 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15640 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15641 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15642 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15643 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15644 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15645 (compile_bytecodes): Remove forward declaration.
15646 (is_goto_target): Move to ax.c.
15647 (compile_bytecodes): Move to ax.c and call
15648 agent_get_trace_state_variable_value (...) and
15649 agent_set_trace_state_variable_value (...).
15650
15651 * Makefile.in: Update ax.c and IPA dependencies.
15652
277e4e52
PA
156532012-02-24 Pedro Alves <palves@redhat.com>
15654
15655 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15656 (cmd_bigqtbuffer_circular): ... this. Only handle
15657 'QTBuffer:circular:'.
15658 (handle_tracepoint_general_set): Adjust.
15659
bf4c19f7
YQ
156602012-02-16 Yao Qi <yao@codesourcery.com>
15661
15662 * inferiors.c: Move code to ...
15663 * dll.c: .... here. New.
15664 * server.h: Declare clear_dlls.
15665 * Makefile.in (SFILES): Add dll.c.
15666 (OBS): Add dll.o
15667 (dll.o): New rule.
15668
d73f2619
YQ
156692012-02-11 Yao Qi <yao@codesourcery.com>
15670
15671 * server.c: (handle_monitor_command): Add a new parameter
15672 `own_buf'.
15673 (handle_query): Update caller.
15674
f8255c2a
JB
156752012-02-09 Joel Brobecker <brobecker@adacore.com>
15676
15677 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15678 * configure, config.in: Regenerate.
15679 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15680 is not defined.
15681
da84f473
PA
156822012-02-02 Pedro Alves <palves@redhat.com>
15683
15684 Try SIGKILL first, then PTRACE_KILL.
15685 * linux-low.c (linux_kill_one_lwp): New.
15686 (linux_kill_one_lwp): Rename to ...
15687 (kill_one_lwp_callback): ... this. Use the new
15688 linux_kill_one_lwp.
15689
e886a173
PA
156902012-02-02 Pedro Alves <palves@redhat.com>
15691
15692 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15693 inferior.
15694
be07f1a2
PA
156952012-01-27 Pedro Alves <palves@redhat.com>
15696
15697 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15698 (elf_64_file_p): Make static.
15699 (linux_pid_exe_is_elf_64_file): New.
15700 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15701 Delete declarations.
15702 (linux_pid_exe_is_elf_64_file): Declare.
15703 * linux-x86-low.c (x86_arch_setup): Use
15704 linux_pid_exe_is_elf_64_file.
15705
d8301ad1
JK
157062012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15707
15708 * linux-low.c (linux_wait_for_event_1): Rename to ...
15709 (linux_wait_for_event): ... here and merge it with former
15710 linux_wait_for_event - new variable wait_ptid, use it.
15711 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15712
01b17894
PA
157132012-01-23 Pedro Alves <palves@redhat.com>
15714
15715 * server.c (main): Avoid yet another case of infinite loop while
15716 detaching/killing after a longjmp.
15717
e825046f
JK
157182012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15719
15720 Code cleanup.
15721 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15722
b9e7b9c3
UW
157232012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15724
15725 * hostio.c (handle_readlink): New function.
15726 (handle_vFile): Call it to handle "vFile:readlink" packets.
15727
901f9912
UW
157282012-01-20 Pedro Alves <palves@redhat.com>
15729 Ulrich Weigand <ulrich.weigand@linaro.org>
15730
15731 * server.c (handle_v_requests): Only support vAttach and vRun to
15732 start multiple processes when in extended protocol mode.
15733
fc1ab1a0
PA
157342012-01-17 Pedro Alves <palves@redhat.com>
15735
15736 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15737 memalign plus mprotect to allocate the scratch buffer.
15738
7d5d4e98
PA
157392012-01-13 Pedro Alves <palves@redhat.com>
15740
15741 * server.c (attach_inferior): Clear `cont_thread'.
15742
f128d5e9
PA
157432012-01-13 Pedro Alves <palves@redhat.com>
15744
15745 * server.c (main): Avoid infinite loop while detaching/killing
15746 after a longjmp.
15747
06db92f0
DE
157482012-01-09 Doug Evans <dje@google.com>
15749
15750 * server.c (start_inferior): Set last_ptid in --wrapper case.
15751
32d92999
YQ
157522012-01-06 Yao Qi <yao@codesourcery.com>
15753
15754 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15755 defined.
15756 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15757
5e0a92a9
YQ
157582012-01-04 Yao Qi <yao@codesourcery.com>
15759
15760 * tracepoint.c (cmd_qtdp): Print debug message
15761 for static tracepoint.
15762
ae639e8c
YQ
157632012-01-04 Yao Qi <yao@codesourcery.com>
15764
15765 * tracepoint.c (trace_vdebug): Differentiate debug message
15766 between gdbserver and IPA.
15767
f72429c5
YQ
157682012-01-03 Yao Qi <yao@codesourcery.com>
15769
15770 * tracepoint.c (tracepoint_was_hit): Don't collect for
15771 static tracepoint.
15772
12c3e59c
JB
157732012-01-02 Joel Brobecker <brobecker@adacore.com>
15774
15775 * terminal.h: Reformat copyright header.
15776
67827812
JB
157772012-01-02 Joel Brobecker <brobecker@adacore.com>
15778
15779 * server.c (gdbserver_version): Update copyright year.
15780 * gdbreplay.c (gdbreplay_version): Likewise.
15781
3e52c33d
JK
157822011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15783
15784 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15785
15786 Revert:
15787 2011-12-18 Hui Zhu <teawater@gmail.com>
15788 * linux-low.c (linux_create_inferior): Save return value to ret.
15789
66f1260e
HZ
157902011-12-18 Hui Zhu <teawater@gmail.com>
15791
15792 * linux-low.c (linux_create_inferior): Save return value to ret.
15793
e77616d7
DE
157942011-12-16 Doug Evans <dje@google.com>
15795
e7b06c57
DE
15796 * linux-low.c (linux_create_inferior): If stdio connection,
15797 redirect stdin from /dev/null, stdout to stderr.
15798 * remote-utils.c (remote_is_stdio): New static global.
15799 (remote_connection_is_stdio): New function.
15800 (remote_prepare): Handle stdio connection.
15801 (remote_open): Ditto.
15802 (remote_close): Don't close stdin for stdio connections.
15803 (read_prim,write_prim): New functions. Replace all calls to
15804 read/write to these.
15805 * server.c (main): Watch for "-" argument. Move call to
15806 remote_prepare before start_inferior.
15807 * server.h (STDIO_CONNECTION_NAME): New macro.
15808 (remote_connection_is_stdio): Declare.
15809
e77616d7
DE
15810 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15811 in debugging output.
15812
82067193
YQ
158132011-12-15 Yao Qi <yao@codesourcery.com>
15814
15815 * tracepoint.c: Include sys/syscall.h.
15816 (gdb_ust_thread): Remove preprocessor conditional.
15817
82bfbe7e
PA
158182011-12-14 Pedro Alves <pedro@codesourcery.com>
15819
15820 * linux-low.c (linux_detach_one_lwp): Call
15821 the_low_target.prepare_to_resume before detaching.
15822
712c6575
YQ
158232011-12-14 Yao Qi <yao@codesourcery.com>
15824
15825 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15826 of write.
15827
d54d1edf
YQ
158282011-12-14 Yao Qi <yao@codesourcery.com>
15829
15830 * i386-low.c (i386_low_stopped_data_address): Initialize local
15831 variable `control'.
15832
6210a125
PA
158332011-12-13 Pedro Alves <pedro@codesourcery.com>
15834
15835 PR remote/13492
15836
15837 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15838 DR_CONTROL unless necessary. Extend comments.
15839 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15840 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15841
2ece8244
YQ
158422011-12-13 Yao Qi <yao@codesourcery.com>
15843
15844 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15845 macros.
15846 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15847
784867a5
JK
158482011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15849
15850 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15851 Print new debug message for such case.
15852
6bf36717
JK
158532011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15854
15855 Fix overlapping memcpy.
15856 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15857 the read_inferior_memory transfer.
15858 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15859 write_inferior_memory transfer.
15860 (set_fast_tracepoint_jump): New variable buf. Use it for the
15861 read_inferior_memory and write_inferior_memory transfers.
15862 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15863 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15864 Use it for the write_inferior_memory transfer.
15865 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15866 buffers.
15867
50275556
MR
158682011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15869
15870 * linux-low.c (fetch_register, store_register): Make code
15871 consistent, fix formatting.
15872
7325beb4
MR
158732011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15874
15875 * linux-low.c (usr_store_inferior_registers): Factor out code
15876 to handle individual registers into...
15877 (store_register): ... this new function.
15878
c642a434
UW
158792011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15880
15881 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15882 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15883 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15884 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15885 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15886 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15887 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15888 (srv_xmlfiles): Add new XML files.
15889
15890 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15891 and <sys/uio.h>.
15892 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15893 (init_registers_s390_linux32v1): Add prototype.
15894 (init_registers_s390_linux32v2): Likewise.
15895 (init_registers_s390_linux64v1): Likewise.
15896 (init_registers_s390_linux64v2): Likewise.
15897 (init_registers_s390x_linux64v1): Likewise.
15898 (init_registers_s390x_linux64v2): Likewise.
15899 (s390_num_regs): Increment to 52.
15900 (s390_regmap): Add orig_r2 register.
15901 (s390_num_regs_3264): Increment to 68.
15902 (s390_regmap_3264): Add orig_r2 register.
15903 (s390_collect_ptrace_register): Handle orig_r2 register.
15904 (s390_supply_ptrace_register): Likewise.
15905 (s390_fill_last_break): New function.
15906 (s390_store_last_break): Likewise.
15907 (s390_fill_system_call): New function.
15908 (s390_store_system_call): Likewise.
15909 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15910 register sets.
15911 (s390_check_regset): New function.
15912 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15913 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15914 Update target_regsets for available register sets.
15915
2268b414
JK
159162011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15917 Jan Kratochvil <jan.kratochvil@redhat.com>
15918
15919 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15920 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15921 New.
15922 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15923 * linux-low.h (struct process_info_private): New member r_debug.
15924 * server.c (handle_qxfer_libraries): Call
15925 the_target->qxfer_libraries_svr4.
15926 (handle_qxfer_libraries_svr4): New function.
15927 (qxfer_packets): New entry "libraries-svr4".
15928 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15929 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15930 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15931 PACKET_qXfer_libraries_svr4.
15932
d6db1fab
UW
159332011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15934
15935 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15936 PSW address/mask between 8-byte and 16-byte formats.
15937 (s390_supply_ptrace_register): Likewise.
15938 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15939 basic addressing mode bit.
15940
242f5f1c
SS
159412011-11-24 Stan Shebs <stan@codesourcery.com>
15942
15943 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15944
f196051f
SS
159452011-11-17 Stan Shebs <stan@codesourcery.com>
15946
15947 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15948 (tracing_start_time): New global.
15949 (tracing_stop_time): New global.
15950 (tracing_user_name): New global.
15951 (tracing_notes): New global.
15952 (tracing_stop_note): New global.
15953 (cmd_qtstart): Set traceframe_usage, start_time.
15954 (stop_tracing): Set stop_time.
15955 (cmd_qtstatus): Report additional status.
15956 (cmd_qtp): New function.
15957 (handle_tracepoint_query): Call it.
15958 (cmd_qtnotes): New function.
15959 (handle_tracepoint_general_set): Call it.
15960 (get_timestamp): Rename from tsv_get_timestamp.
15961
405f8e94
SS
159622011-11-14 Stan Shebs <stan@codesourcery.com>
15963 Kwok Cheung Yeung <kcy@codesourcery.com>
15964
15965 * linux-x86-low.c (small_jump_insn): New.
15966 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15967 trampoline and error message, build a trampoline and issue a small
15968 jump instruction to it.
15969 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15970 trampoline and error message.
15971 (x86_get_min_fast_tracepoint_insn_len): New.
15972 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15973 * linux-low.h (struct linux_target_ops): Add arguments to
15974 install_fast_tracepoint_jump_pad operation, add new operation.
15975 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15976 arguments.
15977 (linux_get_min_fast_tracepoint_insn_len): New function.
15978 (linux_target_op): Add new operation.
15979 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15980 (gdb_trampoline_buffer_end): Ditto.
15981 (gdb_trampoline_buffer_error): Ditto.
15982 (struct ipa_sym_addresses): Add fields for new IPA variables.
15983 (symbol_list): Add entries for new IPA variables.
15984 (struct tracepoint): Add fields to hold the address range of the
15985 trampoline used by the tracepoint.
15986 (trampoline_buffer_head): New static variable.
15987 (trampoline_buffer_tail): Ditto.
15988 (claim_trampoline_space): New function.
15989 (have_fast_tracepoint_trampoline_buffer): New function.
15990 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15991 structure.
15992 (install_fast_tracepoint): Ditto, also add error buffer argument.
15993 (cmd_qtminftpilen): New function.
15994 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15995 (fast_tracepoint_from_trampoline_address): New function.
15996 (fast_tracepoint_collecting): Handle trampoline as part of jump
15997 pad space.
15998 (set_trampoline_buffer_space): New function.
15999 (initialize_tracepoint): Initialize new IPA variables.
16000 * target.h (struct target_ops): Add arguments to
16001 install_fast_tracepoint_jump_pad operation, add new
16002 get_min_fast_tracepoint_insn_len operation.
16003 (target_get_min_fast_tracepoint_insn_len): New.
16004 (install_fast_tracepoint_jump_pad): Add arguments.
16005 * server.h (IPA_BUFSIZ): Define.
16006 * linux-i386-ipa.c: Include extra header files.
16007 (initialize_fast_tracepoint_trampoline_buffer): New function.
16008 (initialize_low_tracepoint): Call it.
16009 * server.h (set_trampoline_buffer_space): Declare.
16010 (claim_trampoline_space): Ditto.
16011 (have_fast_tracepoint_trampoline_buffer): Ditto.
16012
1e4d1764
YQ
160132011-11-14 Yao Qi <yao@codesourcery.com>
16014
16015 * server.c (handle_query): Handle InstallInTrace for qSupported.
16016 * tracepoint.c (add_tracepoint): Sort list.
16017 (install_tracepoint, download_tracepoint): New.
16018 (cmd_qtdp): Call them to install and download tracepoints.
16019 (sort_tracepoints): Removed.
16020 (cmd_qtstart): Update.
16021
5c73ff4e
YQ
160222011-11-14 Yao Qi <yao@codesourcery.com>
16023
16024 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16025 * mem-break.h: Declare.
16026 * tracepoint.c (cmd_qtstart): Move some code to ...
16027 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16028 New.
16029 (download_tracepoints): Move some code to ...
16030 (download_tracepoint_1): ... here. New.
16031
86a30030
YQ
160322011-11-08 Yao Qi <yao@codesourcery.com>
16033
16034 * remote-utils.c (relocate_instruction): A comment fix.
16035
8d26e50c
JB
160362011-11-07 Joel Brobecker <brobecker@adacore.com>
16037
16038 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16039 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16040 dr_status_mirror and dr_control_mirror from debug_reg_state.
16041 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16042 (i386_initial_stuff): Remove use of deleted globals.
16043 (i386_get_thread_context, i386_set_thread_context,
16044 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16045 from debug_reg_state.
16046
a59306a3
YQ
160472011-11-05 Yao Qi <yao@codesourcery.com>
16048
16049 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16050 address as TPOINT's.
16051
3065dfb6
SS
160522011-11-02 Stan Shebs <stan@codesourcery.com>
16053
16054 * tracepoint.c (agent_mem_read_string): New function.
16055 (eval_agent_expr): Call it for tracenz.
16056 * server.c (handle_query): Report support for tracenz.
16057
fd0d8c7c
YQ
160582011-11-02 Yao Qi <yao@codesourcery.com>
16059
16060 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16061
609086b1
YQ
160622011-11-02 Yao Qi <yao@codesourcery.com>
16063
16064 * target.h: Fix a typo in comment.
16065
b9fd1791
PA
160662011-10-31 Pedro Alves <pedro@codesourcery.com>
16067
16068 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16069 clobber the breakpoints' shadows with fast tracepoint jumps.
16070 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16071 * target.c (write_inferior_memory): Also pass MYADDR down to
16072 check_mem_write.
16073
03583c20
UW
160742011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16075
16076 * configure.ac: Check support for personality routine.
16077 * configure: Regenerate.
16078 * config.in: Likewise.
16079 * linux-low.c: Include <sys/personality.h>.
16080 Define ADDR_NO_RANDOMIZE if necessary.
16081 (linux_create_inferior): Disable address space randomization when
16082 forking inferior, if requested.
16083 (linux_supports_disable_randomization): New function.
16084 (linux_target_ops): Install it.
16085 * server.h (disable_randomization): Declare.
16086 * server.c (disable_randomization): New global variable.
16087 (handle_general_set): Handle QDisableRandomization.
16088 (handle_query): Likewise for qSupported.
16089 (main): Support --disable-randomization and --no-disable-randomization
16090 command line arguments.
16091 * target.h (struct target_ops): Add supports_disable_randomization.
16092 (target_supports_disable_randomization): New macro.
16093
723b724b
MF
160942011-09-29 Mike Frysinger <vapier@gentoo.org>
16095
16096 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16097 ifdef check.
16098 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16099 [!PT_GETDSBT] (target_loadmap): New definition.
16100 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16101 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16102 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16103 and PT_GETDSBT to LINUX_LOADMAP.
16104 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16105 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16106
55329a5c 161072011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16108
16109 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16110 (arm_linux_hwbp_cap): New static variable.
16111 (arm_linux_get_hwbp_cap): Replace by ...
16112 (arm_linux_init_hwbp_cap): ... this new function.
16113 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16114 (arm_linux_get_hw_watchpoint_count): Likewise.
16115 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16116 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16117 (arm_prepare_to_resume): Use perror_with_name instead of error.
16118
55329a5c 161192011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16120
16121 * linux-arm-low.c: Include <signal.h>.
16122 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16123 (struct arm_linux_hwbp_cap): New data type.
16124 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16125 (struct arm_linux_hw_breakpoint): New data type.
16126 (MAX_BPTS, MAX_WPTS): Define.
16127 (struct arch_process_info, struct arch_lwp_info): New data types.
16128 (arm_linux_get_hwbp_cap): New function.
16129 (arm_linux_get_hw_breakpoint_count): Likewise.
16130 (arm_linux_get_hw_watchpoint_count): Likewise.
16131 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16132 (arm_hwbp_control_initialize): Likewise.
16133 (arm_hwbp_control_is_enabled): Likewise.
16134 (arm_hwbp_control_is_initialized): Likewise.
16135 (arm_hwbp_control_disable): Likewise.
16136 (arm_linux_hw_breakpoint_equal): Likewise.
16137 (arm_linux_hw_point_initialize): Likewise.
16138 (struct update_registers_data): New data structure.
16139 (update_registers_callback: New function.
16140 (arm_insert_point): Likewise.
16141 (arm_remove_point): Likewise.
16142 (arm_stopped_by_watchpoint): Likewise.
16143 (arm_stopped_data_address): Likewise.
16144 (arm_new_process): Likewise.
16145 (arm_new_thread): Likewise.
16146 (arm_prepare_to_resume): Likewise.
16147 (the_low_target): Register arm_insert_point, arm_remove_point,
16148 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16149 arm_new_thread, and arm_prepare_to_resume.
16150
6b9801d4
SS
161512011-09-15 Stan Shebs <stan@codesourcery.com>
16152
16153 * server.h (struct emit_ops): Add compare-goto fields.
16154 * tracepoint.c (gdb_agent_op_sizes): New table.
16155 (emit_eq_goto): New function.
16156 (emit_ne_goto): New function.
16157 (emit_lt_goto): New function.
16158 (emit_le_goto): New function.
16159 (emit_gt_goto): New function.
16160 (emit_ge_goto): New function.
16161 (is_goto_target): New function.
16162 (compile_bytecodes): Recognize special cases of compare-goto
16163 combinations and call specialized emitters for them.
16164 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16165 (amd64_emit_ne_goto): New function.
16166 (amd64_emit_lt_goto): New function.
16167 (amd64_emit_le_goto): New function.
16168 (amd64_emit_gt_goto): New function.
16169 (amd64_emit_ge_goto): New function.
16170 (amd64_emit_ops): Add the new functions.
16171 (i386_emit_eq_goto): New function.
16172 (i386_emit_ne_goto): New function.
16173 (i386_emit_lt_goto): New function.
16174 (i386_emit_le_goto): New function.
16175 (i386_emit_gt_goto): New function.
16176 (i386_emit_ge_goto): New function.
16177 (i386_emit_ops): Add the new functions.
16178
bf15cbda
SS
161792011-09-08 Stan Shebs <stan@codesourcery.com>
16180
16181 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16182 (i386_emit_epilogue): Restore %ebx.
16183
943ca1dd
JZ
161842011-08-31 Jie Zhang <jzhang918@gmail.com>
16185
16186 * server.c (step_thread): Remove definition.
16187 (process_serial_event): Don't handle Hs.
16188 * server.h (step_thread): Remove declaration.
16189 * target.c (set_desired_inferior): Remove use of step_thread.
16190
e3deef73
LM
161912011-08-24 Luis Machado <lgustavo@codesourcery.com>
16192
16193 * linux-low.c: Include linux-procfs.h.
16194 (linux_attach_lwp_1): Update comments.
16195 (linux_attach): Scan for existing threads when attaching to a
16196 process that is the tgid.
16197 * Makefile.in: Update dependencies.
16198
13da1c97
LM
161992011-08-24 Luis Machado <lgustavo@codesourcery.com>
16200
16201 * configure.srv: Add linux-procfs.o dependencies.
16202
881127c9
YQ
162032011-08-14 Yao Qi <yao@codesourcery.com>
16204
16205 * target.h (struct target_ops): Fix indent.
16206 * win32-low.c (win32_target_ops): Fix comment.
16207
58dbd541
YQ
162082011-08-14 Andrew Jenner <andrew@codesourcery.com>
16209 Yao Qi <yao@codesourcery.com>
16210
16211 * Makefile.in (clean): Remove tic6x-*.c files.
16212 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16213 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16214 (tic6x-c64xp-linux.c): Likewise.
16215 * configure.srv: Add support for tic6x-*-uclinux.
16216 * linux-tic6x-low.c: New.
16217 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16218
78d85199
YQ
162192011-08-14 Andrew Stubbs <ams@codesourcery.com>
16220 Yao Qi <yao@codesourcery.com>
16221
16222 * target.h (struct target_ops): Add read_loadmap.
16223 * linux-low.c (struct target_loadseg): New type.
16224 (struct target_loadmap): New type.
16225 (linux_read_loadmap): New function.
16226 (linux_target_ops): Add linux_read_loadmap.
16227 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16228 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16229 to NULL.
78d85199 16230
a959a88d
EZ
162312011-08-05 Eli Zaretskii <eliz@gnu.org>
16232
16233 * win32-low.c: Include <stdint.h>.
16234
1ced966e
PA
162352011-07-22 Pedro Alves <pedro@codesourcery.com>
16236
16237 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16238 to the inferior here.
16239 (i386_remove_aligned_watchpoint): Ditto.
16240 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16241 fit part of the watchpoint in the debug registers.
16242 (i386_update_inferior_debug_regs): New.
16243 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16244 registers, and only update the inferior on success.
16245 (i386_low_remove_watchpoint): Ditto.
16246
d26e3629
KY
162472011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16248
16249 * linux-low.c (compare_ints, unique, list_threads, show_process,
16250 linux_core_of_thread): Delete.
16251 (linux_target_ops): Change linux_core_of_thread to
16252 linux_common_core_of_thread.
16253 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16254 * utils.c (malloc_failure): Change type of argument.
16255 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16256 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16257 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16258 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16259 (IPA_OBJS): Add common-utils-ipa.o.
16260 (ptid_h, linux_osdata_h): New macros.
16261 (server_h): Add common/common-utils.h, common/xml-utils.h,
16262 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16263 common/ptid.h.
16264 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16265 ptid.o, buffer.o): New rules.
16266 (linux-low.o): Add common/linux-osdata.h as a dependency.
16267 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16268 * configure.ac: Add AC_HEADER_DIRENT check.
16269 * config.in: Regenerate.
16270 * configure: Regenerate.
16271 * remote-utils.c (xml_escape_text): Delete.
16272 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16273 buffer_xml_printf): Move to common/buffer.c.
16274 * server.c (main): Remove call to initialize_inferiors.
16275 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16276 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16277 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16278 internal_error, gdb_assert, gdb_assert_fail): Delete.
16279 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16280 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16281 common/buffer.h.
16282 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16283 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16284 initialize_inferiors): Delete.
16285
2275a1a7
PA
162862011-07-20 Pedro Alves <pedro@codesourcery.com>
16287
16288 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16289 symbol error.
16290
0a5b1e09
PA
162912011-05-31 Pedro Alves <pedro@codesourcery.com>
16292
16293 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16294 assertion.
16295 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16296
6938fd34
YQ
162972011-05-26 Yao Qi <yao@codesourcery.com>
16298
16299 * Makefile.in (thread-db.o): Track dependence to
16300 common/gdb_thread_db.h.
16301 * thread-db.c: include gdb_thread_db.h from right place.
16302
b481f9e0
TT
163032011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16304
16305 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16306 __FILE__ and __LINE__ to internal_error.
16307
98a5dd13
DE
163082011-05-13 Doug Evans <dje@google.com>
16309
16310 * thread-db.c (try_thread_db_load_from_sdir): New function.
16311 (try_thread_db_load_from_dir): New function.
16312 (thread_db_load_search): Handle $sdir, ignore $pdir.
16313 Remove trying of system directories if search of
16314 libthread-db-search-path fails, that is now done via $sdir.
16315
d248b706
KY
163162011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16317
16318 * server.c (handle_query): Add EnableDisableTracepoints to the list
16319 of supported features.
43aaf8b6 16320 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16321 tracepoints.
43aaf8b6
PA
16322 (cmd_qtenable_disable): New.
16323 (cmd_qtstart): Install tracepoints even if disabled.
16324 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16325 receiving a QTEnable or QTDisable packet.
16326 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16327 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16328 tracepoints.
16329 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16330
84e578fb
DE
163312011-05-10 Doug Evans <dje@google.com>
16332
16333 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16334
71f55dd8
DE
163352011-05-04 Doug Evans <dje@google.com>
16336
16337 * linux-low.c (linux_join): Skip process lookup.
16338 * spu-low.c (spu_join): Ditto.
16339 * server.c (join_inferiors_callback): Delete.
16340 (process_serial_event): For 'D' packet (detach) call join_inferior
16341 directly.
16342
4d393d60
JM
163432011-05-04 Joseph Myers <joseph@codesourcery.com>
16344
16345 * README: Don't mention xscale*-*-linux*.
16346 * configure.srv (xscale*-*-linux*): Don't handle target.
16347
b00ad6ff
NF
163482011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16349
16350 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16351 casting pointers.
16352 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16353 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16354 (i386_emit_void_call_2): Likewise.
16355
af96c192
YQ
163562011-04-26 Yao Qi <yao@codesourcery.com>
16357
43aaf8b6
PA
16358 * linux-low.c: Move common macros to linux-ptrace.h.
16359 Include linux-ptrace.h.
af96c192
YQ
16360 * Makefile.in (linux_ptrace_h): New.
16361 (linux-low.o): Depends on linux-ptrace.h.
16362
03f2bd59
JK
163632011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16364
16365 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16366 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16367 (remote_prepare): New function with most of the TCP code from ...
16368 (remote_open): ... here. Detect PORT here unconditionally. Move also
16369 setting transport_is_reliable.
16370 * server.c (run_once): New variable.
16371 (gdbserver_usage): Document it.
16372 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16373 the first run if RUN_ONCE.
16374 * server.h (run_once, remote_prepare): New declarations.
16375
7a9dd1b2
TT
163762011-04-19 Tom Tromey <tromey@redhat.com>
16377
16378 * win32-low.c (handle_load_dll): Remove duplicate "the".
16379
81239425
PM
163802011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16381
16382 Remove support for old Cygwin 1.5 versions.
16383 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16384 function to avoid warning.
16385 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16386 warning.
16387
9e0627f1
PM
163882011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16389
16390 * gdbserver/server.h (Macro _): Define it if not available.
16391
588eebee
MS
163922011-03-14 Michael Snyder <msnyder@vmware.com>
16393
348af9f7 16394 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16395
43f70d4c
JB
163962011-03-10 Joel Brobecker <brobecker@adacore.com>
16397
16398 * Makefile.in (maintainer-clean realclean distclean): Remove
16399 "make ... subdir_do" command.
16400
348af9f7
MS
164012011-03-10 Michael Snyder <msnyder@vmware.com>
16402
16403 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16404
16405 * server.c (handle_v_run): Free alloced buffer on early return.
16406
e637a4f5
YQ
164072011-03-09 Yao Qi <yao@codesourcery.com>
16408
16409 Revert:
16410 2011-03-04 Yao Qi <yao@codesourcery.com>
16411
16412 * Makefile.in: Remove GNU make feature --directory.
16413
16414 2011-03-05 Yao Qi <yao@codesourcery.com>
16415
16416 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16417 (subdir_do): New make target. Copied from gdb/Makefile.
16418 (maintainer-clean, realclean, distclean, clean): Call corresponding
16419 make targets in common/Makefile.
16420
16421 2011-02-11 Yao Qi <yao@codesourcery.com>
16422
16423 * configure.ac: Call AC_PROG_RANLIB.
16424 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16425 * configure: Regenerate.
16426
e6edda56
JK
164272011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16428
16429 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16430
e5141119
JB
164312011-03-06 Yao Qi <yao@codesourcery.com>
16432
16433 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16434
64794aa4
JB
164352011-03-05 Yao Qi <yao@codesourcery.com>
16436
16437 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16438 (subdir_do): New make target. Copied from gdb/Makefile.
16439 (maintainer-clean, realclean, distclean, clean): Call corresponding
16440 make targets in common/Makefile.
16441
7a762829
YQ
164422011-03-04 Yao Qi <yao@codesourcery.com>
16443
16444 * Makefile.in: Remove GNU make feature --directory.
16445
348af9f7
MS
164462011-03-04 Michael Snyder <msnyder@vmware.com>
16447
16448 * server.c (queue_stop_reply): Call xmalloc not malloc.
16449
164502011-03-02 Michael Snyder <msnyder@vmware.com>
16451
16452 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16453
9f72fee2
MS
164542011-02-28 Michael Snyder <msnyder@vmware.com>
16455
588eebee
MS
16456 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16457 (cmd_qtframe): Ditto.
16458 (cmd_qtbuffer): Ditto.
16459 (cmd_bigqtbuffer): Ditto.
16460
9f72fee2
MS
16461 * utils.c (decimal2str): Initialize 'width' to nine, then
16462 don't mess with it.
16463
8040bd49
UW
164642011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16465
16466 * hostio.c (require_data): Free *data, not data.
16467
7e52cbd0
JK
164682011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16469
16470 * hostio.c (require_data): Use free, not xfree.
16471
9130f83e
MS
164722011-02-27 Michael Snyder <msnyder@vmware.com>
16473
4b812f4e
MS
16474 * server.c (handle_query): Discard unused value.
16475
9130f83e
MS
16476 * hostio.c (require_data): Free malloc memory before returning
16477 error.
16478
69d37113
MS
164792011-02-26 Michael Snyder <msnyder@vmware.com>
16480
16481 * linux-low.c (list_threads): Call closedir for dirent.
16482
35f5825a
MS
164832011-02-27 Michael Snyder <msnyder@vmware.com>
16484
2a589cef
MS
16485 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16486 a case statement falls through.
16487
0adea5f7
MS
16488 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16489
35f5825a
MS
16490 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16491 in comparison.
16492
238f1c74
MS
164932011-02-26 Michael Snyder <msnyder@vmware.com>
16494
16495 * utils.c (decimal2str): Eliminate dead code and dead param.
16496 (pulongest): Drop dead param from call to decimal2str.
16497 (plongest): Ditto.
16498
633ff500
JB
164992011-02-24 Joel Brobecker <brobecker@adacore.com>
16500
16501 Revert the following patch (not approved yet):
16502 2011-02-21 Hui Zhu <teawater@gmail.com>
16503 * tracepoint.c (tp_printf): New function.
16504 (eval_agent_expr): Handle gdb_agent_op_printf.
16505
f9c6ff72
HZ
165062011-02-21 Hui Zhu <teawater@gmail.com>
16507
16508 * tracepoint.c (tp_printf): New function.
16509 (eval_agent_expr): Handle gdb_agent_op_printf.
16510
94d5e490
TT
165112011-02-18 Tom Tromey <tromey@redhat.com>
16512
16513 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16514 (tracepoint.o): Likewise.
16515 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16516 (gdb_agent_op_names): Likewise.
16517
c7f96d2b
TT
165182011-02-18 Tom Tromey <tromey@redhat.com>
16519
16520 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16521 gdb_agent_op_rot>: New constants.
16522 (gdb_agent_op_names): Add pick and roll.
16523 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16524 cases.
16525
0feedb2c
JK
165262011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16527
16528 * aclocal.m4: Regenerated with aclocal-1.11.1.
16529
b3b9301e
PA
165302011-02-14 Pedro Alves <pedro@codesourcery.com>
16531
16532 * server.c (handle_qxfer_traceframe_info): New.
16533 (qxfer_packets): Register "traceframe-info".
16534 (handle_query): Report support for qXfer:traceframe-info:read+.
16535 * tracepoint.c (match_blocktype): New.
16536 (traceframe_find_block_type): Rename to ...
16537 (traceframe_walk_blocks): ... this. Add callback filter argument,
16538 and use it.
16539 (traceframe_find_block_type): New, reimplemented on top of
16540 traceframe_walk_blocks.
16541 (build_traceframe_info_xml): New.
16542 (traceframe_read_info): New.
16543 * server.h (traceframe_read_info): Declare.
16544
4f3e6fb7
YQ
165452011-02-11 Yao Qi <yao@codesourcery.com>
16546
16547 * configure.ac: Call AC_PROG_RANLIB.
16548 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16549 * configure: Regenerate.
16550
764880b7
PA
165512011-02-07 Pedro Alves <pedro@codesourcery.com>
16552
16553 * server.c (gdb_read_memory): Change return semantics to allow
16554 partial transfers.
16555 (handle_search_memory_1): Adjust.
16556 (process_serial_event) <'m' packet>: Handle partial transfers.
16557 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16558
1c79eb8a
PA
165592011-01-28 Pedro Alves <pedro@codesourcery.com>
16560
16561 * regcache.c (init_register_cache): Initialize
16562 regcache->register_status.
16563 (free_register_cache): Release regcache->register_status.
16564 (regcache_cpy): Copy register_status.
16565 (registers_to_string): Print 'x's for unavailable registers.
16566 (supply_register): Mark the register's status valid or
16567 unavailable, depending on whether a buffer was passed in or not.
16568 (supply_register_zeroed): New.
16569 (supply_regblock): Mark the registers' status valid or
16570 unavailable, depending on whether a buffer was passed in or not.
16571 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16572 (struct regcache): New `register_status' field.
16573 (supply_register_zeroed): Declare.
16574 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16575 supply_register_zeroed, rather than passing a NULL buffer to
16576 supply_register.
16577 * tracepoint.c (fetch_traceframe_registers): Update comment.
16578
85724a0e
PA
165792011-01-28 Pedro Alves <pedro@codesourcery.com>
16580
16581 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16582 buffer explicit.
16583
d08aafef
PA
165842011-01-25 Pedro Alves <pedro@codesourcery.com>
16585
16586 * server.h (decode_xfer_write): Change prototype.
16587 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16588 and don't extract the annex here.
16589 * server.c (decode_xfer_read): Remove `annex' parameter,
16590 and don't extract the annex here.
16591 (decode_xfer): New.
16592 (struct qxfer): New.
16593 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16594 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16595 (handle_qxfer_statictrace): New functions, abstracted out from
16596 handle_query, and made to use the struct qxfer interface.
16597 (handle_threads_qxfer_proper): Rename to ...
16598 (handle_qxfer_threads_proper): ... this.
16599 (handle_threads_qxfer): Rename to ...
16600 (handle_qxfer_threads): ... this. Adjust.
16601 (qxfer_packets): New array.
16602 (handle_qxfer): New function.
16603 (handle_query): Use handle_qxfer.
16604
493e2a69
MS
166052011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16606
16607 * gdbreplay.c: Shorten lines of >= 80 columns.
16608 * linux-low.c: Ditto.
16609 * linux-ppc-low.c: Ditto.
16610 * linux-s390-low.c: Ditto.
16611 * linux-sparc-low.c: Ditto.
16612 * linux-x86-low.c: Ditto.
16613 * linux-xtensa-low.c: Ditto.
16614 * mem-break.c: Ditto.
16615 * nto-low.c: Ditto.
16616 * regcache.h: Ditto.
16617 * remote-utils.c: Ditto.
16618 * server.c: Ditto.
16619 * server.h: Ditto.
16620 * thread-db.c: Ditto.
16621 * tracepoint.c: Ditto.
16622 * utils.c: Ditto.
16623 * win32-low.h: Ditto.
16624
44944448
JB
166252011-01-05 Joel Brobecker <brobecker@adacore.com>
16626
16627 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16628 update.
16629
71ce852c
JB
166302011-01-01 Joel Brobecker <brobecker@adacore.com>
16631
16632 * server.c (gdbserver_version): Update copyright year in version
16633 output.
16634 * gdbreplay.c (gdbreplay_version): Ditto.
16635
eb826dc6
MF
166362010-12-29 Jie Zhang <jie.zhang@analog.com>
16637
16638 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16639 * linux-bfin-low.c: New file.
16640 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16641 PT_DATA_ADDR for BFIN targets.
16642 * Makefile.in (SFILES): Add linux-bfin-low.c.
16643 (clean): Remove reg-bfin.c.
16644 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16645 * README: Mention supported Blackfin targets.
16646
39ab222a
MF
166472010-12-23 Mike Frysinger <vapier@gentoo.org>
16648
16649 * .gitignore: New file.
16650
a1f2ce7d
MF
166512010-11-16 Mike Frysinger <vapier@gentoo.org>
16652
16653 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16654
f474844c
JZ
166552010-10-22 Jie Zhang <jie@codesourcery.com>
16656
16657 * Makefile.in: Add FLAGS_TO_PASS variable.
16658 (install): Remove dependency of install-only and recursively
16659 invoke make for install-only.
16660
f1048712
DE
166612010-10-04 Doug Evans <dje@google.com>
16662
16663 * Makefile.in (uninstall): Use $(DESTDIR).
16664
b53a1623
PA
166652010-09-24 Pedro Alves <pedro@codesourcery.com>
16666
e6ee044d
PA
16667 PR gdb/11842
16668
b53a1623
PA
16669 * linux-x86-low.c (compat_siginfo_from_siginfo)
16670 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16671 si_code is < 0. Check for si_code == SI_TIMER before checking for
16672 si_code < 0.
16673
fa1bd1e4
JB
166742010-09-13 Joel Brobecker <brobecker@adacore.com>
16675
16676 * lynx-i386-low.c: New file.
16677 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16678
47fac8f8
JB
166792010-09-13 Joel Brobecker <brobecker@adacore.com>
16680
16681 * lynx-low.c (ptrace_request_to_str): Remove handling for
16682 request values that have been removed in LynxOS 5.x.
16683
1adfc54d
JB
166842010-09-13 Joel Brobecker <brobecker@adacore.com>
16685
16686 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16687 <ptrace.h>
16688
c2a66c29
NS
166892010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16690
16691 * configure.ac: Add --enable-inprocess-agent option.
16692 * configure: Rebuilt.
16693
32fcada3
YQ
166942010-09-06 Yao Qi <yao@codesourcery.com>
16695
16696 * linux-low.c (linux_kill): Remove unused variable.
16697 (linux_stabilize_threads): Likewise.
16698 * server.c (start_inferior): Likewise.
16699 (queue_stop_reply_callback): Likewise.
16700 * tracepoint.c (do_action_at_tracepoint): Likewise.
16701
0cccb683
YQ
167022010-09-06 Yao Qi <yao@codesourcery.com>
16703
16704 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16705 on return.
16706
423ec54c
JK
167072010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16708
16709 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16710
12ac6819
PA
167112010-09-06 Pedro Alves <pedro@codesourcery.com>
16712
16713 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16714 "$(IPA_DEPFILES)".
16715
8ed54b31
JB
167162010-09-01 Joel Brobecker <brobecker@adacore.com>
16717
16718 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16719 gdbserver/lynx-ppc-low.c: New files.
16720 * Makefile.in (lynx_low_h): New variable.
16721 (lynx-low.o, lynx-ppc-low.o): New rules.
16722 * configure.ac: On LynxOS, link with -lnetinet.
16723 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16724 * configure: regenerate.
16725
bb0116a4
JB
167262010-09-01 Joel Brobecker <brobecker@adacore.com>
16727
16728 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16729 * configure.ac: Add check for vasprintf and vsnprintf.
16730 * configure, config.in: Regenerate.
16731 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16732
a778ab81 167332010-09-01 Joel Brobecker <brobecker@adacore.com>
16734
16735 * gdbreplay.c: Move include of alloca.h up, next to include of
16736 malloc.h.
16737 * server.h: Add include of malloc.h.
16738 * mem-break.c: Remove include of malloc.h.
16739 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16740
8b034a19 167412010-09-01 Joel Brobecker <brobecker@adacore.com>
16742
16743 * Makefile.in (memmem.o): Build with -Wno-error.
16744
167452010-09-01 Joel Brobecker <brobecker@adacore.com>
16746
16747 * utils.c (xsnprintf): Make non-static.
16748 * server.h: Add xsnprintf declaration.
16749 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16750 replace calls to snprintf by calls to xsnprintf throughout.
16751
167522010-09-01 Joel Brobecker <brobecker@adacore.com>
16753
16754 * configure.ac: Add configure check for alloca.
16755 * configure, config.in: Regenerate.
16756 * server.h: Include alloca.h if it exists.
16757 * gdbreplay.c: Include alloca.h if it exists.
16758
1a981360
PA
167592010-08-28 Pedro Alves <pedro@codesourcery.com>
16760
16761 * linux-low.c (__SIGRTMIN): Define if not already defined.
16762 (linux_create_inferior): Check for __ANDROID__ rather than
16763 __SIGRTMIN.
16764 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16765 are already deferred.
16766 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16767 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16768 stopped and already has a pending signal to report.
16769 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16770 a pending signal to report or is moving out of a jump pad.
16771 (linux_init_signals): Check for __ANDROID__ rather than
16772 __SIGRTMIN.
16773
b4d51a55
PA
167742010-08-28 Pedro Alves <pedro@codesourcery.com>
16775
16776 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16777 debug_threads check. Avoid a linear search when not doing debug
16778 output.
16779
ec48365d
PA
167802010-08-27 Pedro Alves <pedro@codesourcery.com>
16781
16782 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16783 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16784 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16785 (process_event): Change local fd's type to gdb_fildes_t.
16786 (create_file_handler): Adjust prototype.
16787 (delete_file_handler): Adjust prototype.
16788 (handle_file_event): Adjust prototype. Use pfildes.
16789 (create_file_event): Adjsut prototype.
16790 * remote-utils.c (remote_desc, listen_desc): Change type to
16791 gdb_fildes_t.
16792 * server.h: New gdb_fildes_t typedef.
16793 [USE_WIN32API]: Include winsock2.h.
16794 (delete_file_handler, add_file_handler): Adjust prototypes.
16795 (pfildes): Declare.
16796 * utils.c (pfildes): New.
16797
854d88f0
PA
167982010-08-27 Pedro Alves <pedro@codesourcery.com>
16799
16800 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16801 * configure: Regenerate.
16802
0146f85b
PA
168032010-08-27 Pedro Alves <pedro@codesourcery.com>
16804
16805 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16806 (linux_done_accessing_memory): ... this.
16807 (linux_target_ops): Adjust.
16808 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16809 * nto-low.c (nto_target_ops): Adjust comment.
16810 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16811 * spu-low.c (spu_target_ops): Adjust comment.
16812 * target.h (target_ops): Rename unprepare_to_access_memory field
16813 to done_accessing_memory.
16814 (unprepare_to_access_memory): Rename to ...
16815 (done_accessing_memory): ... this.
16816
90d74c30
PA
168172010-08-26 Pedro Alves <pedro@codesourcery.com>
16818
16819 * linux-low.c (linux_prepare_to_access_memory): New.
16820 (linux_unprepare_to_access_memory): New.
16821 (linux_target_ops): Install them.
16822 * server.c (read_memory): Rename to ...
16823 (gdb_read_memory): ... this. Use
16824 prepare_to_access_memory/prepare_to_access_memory.
16825 (write_memory): Rename to ...
16826 (gdb_write_memory): ... this. Use
16827 prepare_to_access_memory/prepare_to_access_memory.
16828 (handle_search_memory_1): Adjust.
16829 (process_serial_event): Adjust.
16830 * target.h (struct target_ops): New fields
16831 prepare_to_access_memory and unprepare_to_access_memory.
16832 (prepare_to_access_memory, unprepare_to_access_memory): New.
16833 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16834 prepare_to_access_memory/prepare_to_access_memory.
16835 * nto-low.c (nto_target_ops): Adjust.
16836 * spu-low.c (spu_target_ops): Adjust.
16837 * win32-low.c (win32_target_ops): Adjust.
16838
fd467969
PA
168392010-08-26 Pedro Alves <pedro@codesourcery.com>
16840
16841 * Makefile.in (WARN_CFLAGS): Get it from configure.
16842 (WERROR_CFLAGS): New.
16843 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16844 * configure.ac: Introduce --enable-werror, which adds -Werror to
16845 the compiler command line. Enabled by default. Disable with
16846 --disable-werror. Add -Wdeclaration-after-statement
16847 Wpointer-arith and -Wformat-nonliteral to warning flags.
16848 * configure: Regenerate.
16849
331e2f5f
PA
168502010-08-26 Pedro Alves <pedro@codesourcery.com>
16851
16852 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16853
e581f2b4
PA
168542010-08-26 Pedro Alves <pedro@codesourcery.com>
16855
16856 * gdbreplay.c (remote_error): New.
16857 (gdbchar): New.
16858 (expect): Use gdbchar. Check for error reading from GDB.
16859 Clarify sync error output.
16860 (play): Check for errors writing to GDB.
16861 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16862 * remote-utils.c (getpkt): Check for errors writing to the remote
16863 descriptor.
16864
3c11dd79
PA
168652010-08-25 Pedro Alves <pedro@codesourcery.com>
16866
16867 * linux-low.c (linux_wait_1): Move non-debugging code out of
16868 `debug_threads' control.
16869
d20a8ad9
PA
168702010-08-25 Pedro Alves <pedro@codesourcery.com>
16871
16872 * linux-low.c (linux_wait_1): Don't set last_status here.
16873 * server.c (push_event, queue_stop_reply_callback): Assert we're
16874 not pushing a TARGET_WAITKIND_IGNORE event.
16875 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16876 (myresume, handle_target_event): Set the thread's last_resume_kind
16877 and last_status from the target returned status.
16878
964e4306
PA
168792010-08-25 Pedro Alves <pedro@codesourcery.com>
16880
16881 PR threads/10729
16882
16883 * linux-x86-low.c (update_debug_registers_callback): New.
16884 (i386_dr_low_set_addr): Use it.
16885 (i386_dr_low_get_addr): New.
16886 (i386_dr_low_set_control): Use update_debug_registers_callback.
16887 (i386_dr_low_get_control): New.
16888 (i386_dr_low_get_status): Adjust.
16889 * linux-low.c (linux_stop_lwp): New.
16890 * linux-low.h (linux_stop_lwp): Declare.
16891
16892 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16893 argument instead of a i386_debug_reg_state.
16894 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16895 a i386_debug_reg_state.
16896 (i386_insert_aligned_watchpoint): Adjust.
16897 (i386_remove_aligned_watchpoint): Adjust.
16898 (i386_low_stopped_data_address): Read the debug registers from the
16899 inferior instead of from the mirrors.
16900 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16901 (i386_dr_low_get_addr): Declare.
16902 (i386_dr_low_get_control): Declare.
16903 (i386_dr_low_get_status): Change prototype.
16904
16905 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16906 (i386_dr_low_get_addr): New.
16907 (i386_dr_low_get_control): New.
16908 (i386_dr_low_get_status): Adjust prototype. Return
16909 dr_status_mirror.
16910 (i386_initial_stuff): Clear dr_status_mirror and
16911 dr_control_mirror.
16912 (i386_get_thread_context): Adjust.
16913 (i386_set_thread_context): Adjust.
16914 (i386_thread_added): Adjust.
16915
5f21a75b
PA
169162010-08-24 Pedro Alves <pedro@codesourcery.com>
16917
16918 * linux-low.h (linux_thread_area): Delete declaration.
16919
3e4c1235
TS
169202010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16921
16922 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16923 after its termination.
16924
1971b033
PA
169252010-08-09 Pedro Alves <pedro@codesourcery.com>
16926
16927 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16928 (gdb_wants_all_stopped): Delete.
16929 (linux_wait_1): Don't call them.
16930 * server.c (handle_v_cont): Tag all threads as want-stopped.
16931 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16932 stopped as "client-wants-stopped".
16933
310444ac
PA
169342010-07-31 Pedro Alves <pedro@codesourcery.com>
16935
16936 * Makefile.in (signals_h): New.
16937 (server_h): Depend on it.
16938 (server.o): Don't depend on $(signals_def).
16939 (signals.o): Depend on $(signals_def).
16940
a19cae16
JK
169412010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16942
16943 * Makefile.in (signals_def): New.
16944 (server_h): Append include/gdb/signals.h and signals_def.
16945 (server.o): Append signals_def.
16946
30d50328
JK
169472010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16948
16949 * server.c (handle_target_event): Use target_signal_to_host for
16950 resume_info.sig initialization.
16951 * target.h (struct thread_resume) <sig>: New comment.
16952
5c3216e2
OS
169532010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16954
c6f46ca0
OS
16955 * server.c (handle_query): strcpy() the returned string from paddress()
16956 instead of sprintf().
5c3216e2
OS
16957 * utils.c (paddress): Return phex_nz().
16958
6bd31874
JB
169592010-07-07 Joel Brobecker <brobecker@adacore.com>
16960
16961 * server.c (handle_v_cont): Call mourn_inferior if process
16962 just exited.
16963 (myresume): Likewise.
16964
0fb4aa4b
PA
169652010-07-01 Pedro Alves <pedro@codesourcery.com>
16966
16967 Static tracepoints, and integration with UST.
16968
16969 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16970 * mem-break.c (uninsert_all_breakpoints)
16971 (reinsert_all_breakpoints): New.
16972 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16973 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16974 (gdb_agent_ust_loaded, helper_thread_id)
16975 (gdb_agent_helper_thread_id): New macros.
16976 (struct ipa_sym_addresses): Add addr_ust_loaded,
16977 addr_helper_thread_id, addr_cmd_buf.
16978 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16979 (in_process_agent_loaded_ust): New.
16980 (write_e_ust_not_loaded): New.
16981 (maybe_write_ipa_ust_not_loaded): New.
16982 (struct collect_static_trace_data_action): New.
16983 (enum tracepoint_type) <static_tracepoint>: New.
16984 (struct tracepoint) <handle>: Mention static tracepoints.
16985 (struct static_tracepoint_ctx): New.
16986 (CMD_BUF_SIZE): New.
16987 (add_tracepoint_action): Handle static tracepoint actions.
16988 (unprobe_marker_at): New.
16989 (clear_installed_tracepoints): Handle static tracepoints.
16990 (cmd_qtdp): Handle static tracepoints.
16991 (probe_marker_at): New.
16992 (cmd_qtstart): Handle static tracepoints.
16993 (response_tracepoint): Handle static tracepoints.
16994 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16995 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16996 (get_context_regcache): Handle static tracepoints.
16997 (do_action_at_tracepoint): Handle static tracepoint actions.
16998 (traceframe_find_block_type): Handle static trace data blocks.
16999 (traceframe_read_sdata): New.
17000 (download_tracepoints): Download static tracepoint actions.
17001 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17002 (GDB_PROBE_NAME): New.
17003 (ust_ops): New.
17004 (GET_UST_SYM): New.
17005 (USTF): New.
17006 (dlsym_ust): New.
17007 (ust_marker_to_static_tracepoint): New.
17008 (gdb_probe): New.
17009 (collect_ust_data_at_tracepoint): New.
17010 (gdb_ust_probe): New.
17011 (UNIX_PATH_MAX, SOCK_DIR): New.
17012 (gdb_ust_connect_sync_socket): New.
17013 (resume_thread, stop_thread): New.
17014 (run_inferior_command): New.
17015 (init_named_socket): New.
17016 (gdb_ust_socket_init): New.
17017 (cstr_to_hexstr): New.
17018 (next_st): New.
17019 (first_marker, next_marker): New.
17020 (response_ust_marker): New.
17021 (cmd_qtfstm, cmd_qtsstm): New.
17022 (unprobe_marker_at, probe_marker_at): New.
17023 (cmd_qtstmat, gdb_ust_thread): New.
17024 (gdb_ust_init): New.
17025 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17026 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17027 (ST_REGENTRY): New.
17028 (x86_64_st_collect_regmap): New.
17029 (X86_64_NUM_ST_COLLECT_GREGS): New.
17030 (AMD64_RIP_REGNUM): New.
17031 (supply_static_tracepoint_registers): New.
17032 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17033 (ST_REGENTRY): New.
17034 (i386_st_collect_regmap): New.
17035 (i386_NUM_ST_COLLECT_GREGS): New.
17036 (supply_static_tracepoint_registers): New.
17037 * server.c (handle_query): Handle qXfer:statictrace:read.
17038 <qSupported>: Report support for StaticTracepoints, and
17039 qXfer:statictrace:read features.
17040 * server.h (traceframe_read_sdata)
17041 (supply_static_tracepoint_registers): Declare.
17042 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17043 (unpack_varlen_hex): Include in IPA build.
17044 * Makefile.in (ustlibs, ustinc): New.
17045 (IPA_OBJS): Add remote-utils-ipa.o.
17046 ($(IPA_LIB)): Link -ldl and -lpthread.
17047 (UST_CFLAGS): New.
17048 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17049 * config.in, configure: Regenerate.
17050
9e4344e5
PA
170512010-06-20 Ian Lance Taylor <iant@google.com>
17052 Pedro Alves <pedro@codesourcery.com>
17053
17054 * linux-x86-low.c (always_true): Delete.
17055 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17056 trying to fool the compiler with always_true.
17057
c6beb2cb
PA
170582010-06-20 Pedro Alves <pedro@codesourcery.com>
17059
17060 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17061 conditions in gdbserver.
17062
d2ed6730
UW
170632010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17064
17065 * spu-low.c (spu_read_memory): Wrap around local store limit.
17066 (spu_write_memory): Likewise.
17067
4e29fb54
PA
170682010-06-15 Pedro Alves <pedro@codesourcery.com>
17069
17070 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17071 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17072 LONGEST uses.
17073 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17074 uses.
17075 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17076 uses with LONGEST uses.
17077
6a271cae
PA
170782010-06-14 Stan Shebs <stan@codesourcery.com>
17079 Pedro Alves <pedro@codesourcery.com>
17080
17081 Bytecode compiler.
17082
17083 * linux-x86-low.c: Include limits.h.
17084 (add_insns): New.
17085 (always_true): New.
17086 (EMIT_ASM): New.
17087 (EMIT_ASM32): New.
17088 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17089 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17090 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17091 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17092 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17093 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17094 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17095 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17096 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17097 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17098 (amd64_emit_void_call_2): New.
17099 (amd64_emit_ops): New.
17100 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17101 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17102 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17103 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17104 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17105 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17106 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17107 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17108 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17109 (i386_emit_stack_adjust, i386_emit_int_call_1)
17110 (i386_emit_void_call_2): New.
17111 (i386_emit_ops): New.
17112 (x86_emit_ops): New.
17113 (the_low_target): Install x86_emit_ops.
17114 * server.h (struct emit_ops): New.
17115 (get_raw_reg_func_addr): Declare.
17116 (current_insn_ptr, emit_error): Declare.
17117 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17118 (set_trace_state_variable_value): New defines.
17119 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17120 addr_get_trace_state_variable_value and
17121 addr_set_trace_state_variable_value.
17122 (symbol_list): New fields for get_raw_reg,
17123 get_trace_state_variable_value and set_trace_state_variable_value.
17124 (condfn): New typedef.
17125 (struct tracepoint): New field `compiled_cond'.
17126 (do_action_at_tracepoint): Clear compiled_cond.
17127 (get_trace_state_variable_value, set_trace_state_variable_value):
17128 Export in the IPA.
17129 (condition_true_at_tracepoint): If there's a compiled condition,
17130 run that.
17131 (current_insn_ptr, emit_error): New globals.
17132 (struct bytecode_address): New.
17133 (get_raw_reg_func_addr): New.
17134 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17135 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17136 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17137 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17138 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17139 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17140 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17141 (compile_tracepoint_condition, compile_bytecodes): New.
17142 * target.h (emit_ops): Forward declare.
17143 (struct target_ops): New field emit_ops.
17144 (target_emit_ops): New.
17145 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17146 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17147 * linux-low.c (linux_emit_ops): New.
17148 (linux_target_ops): Install it.
17149 * linux-low.h (struct linux_target_ops): New field emit_ops.
17150
92b72907
UW
171512010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17152
17153 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17154 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17155
fa593d66
PA
171562010-06-01 Pedro Alves <pedro@codesourcery.com>
17157 Stan Shebs <stan@codesourcery.com>
17158
17159 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17160 (all): Depend on $(extra_libraries).
17161 (install-only): Install the IPA.
17162 (IPA_OBJS, IPA_LIB): New.
17163 (clean): Remove the IPA lib.
17164 (IPAGENT_CFLAGS): New.
17165 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17166 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17167 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17168 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17169 * configure.ac: Check for atomic builtins support in the compiler.
17170 (IPA_DEPFILES, extra_libraries): Define.
17171 * configure.srv (ipa_obj): Add description.
17172 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17173 (i[34567]86-*-linux*): Set ipa_obj.
17174 (x86_64-*-linux*): Set ipa_obj.
17175 * linux-low.c (stabilizing_threads): New.
17176 (supports_fast_tracepoints): New.
17177 (linux_detach): Stabilize threads before detaching.
17178 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17179 the lwp is either not stabilizing, or is moving out of a jump pad.
17180 (linux_fast_tracepoint_collecting): New.
17181 (maybe_move_out_of_jump_pad): New.
17182 (enqueue_one_deferred_signal): New.
17183 (dequeue_one_deferred_signal): New.
17184 (linux_wait_for_event_1): If moving out of a jump pad, defer
17185 pending signals to later.
17186 (linux_stabilize_threads): New.
17187 (linux_wait_1): Check if threads need moving out of jump pads, and
17188 do it if so.
17189 (stuck_in_jump_pad_callback): New.
17190 (move_out_of_jump_pad_callback): New.
17191 (lwp_running): New.
17192 (linux_resume_one_lwp): Handle moving out of jump pads.
17193 (linux_set_resume_request): Dequeue deferred signals.
17194 (need_step_over_p): Also step over fast tracepoint jumps.
17195 (start_step_over): Also uninsert fast tracepoint jumps.
17196 (finish_step_over): Also reinsert fast tracepoint jumps.
17197 (linux_install_fast_tracepoint_jump): New.
17198 (linux_target_ops): Install linux_stabilize_threads and
17199 linux_install_fast_tracepoint_jump_pad.
17200 * linux-low.h (linux_target_ops) <get_thread_area,
17201 install_fast_tracepoint_jump_pad>: New fields.
17202 (struct lwp_info) <collecting_fast_tracepoint,
17203 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17204 (linux_get_thread_area): Declare.
17205 * linux-x86-low.c (jump_insn): New.
17206 (x86_get_thread_area): New.
17207 (append_insns): New.
17208 (push_opcode): New.
17209 (amd64_install_fast_tracepoint_jump_pad): New.
17210 (i386_install_fast_tracepoint_jump_pad): New.
17211 (x86_install_fast_tracepoint_jump_pad): New.
17212 (the_low_target): Install x86_get_thread_area and
17213 x86_install_fast_tracepoint_jump_pad.
17214 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17215 (struct fast_tracepoint_jump): New.
17216 (fast_tracepoint_jump_insn): New.
17217 (fast_tracepoint_jump_shadow): New.
17218 (find_fast_tracepoint_jump_at): New.
17219 (fast_tracepoint_jump_here): New.
17220 (delete_fast_tracepoint_jump): New.
17221 (set_fast_tracepoint_jump): New.
17222 (uninsert_fast_tracepoint_jumps_at): New.
17223 (reinsert_fast_tracepoint_jumps_at): New.
17224 (set_breakpoint_at): Use write_inferior_memory.
17225 (uninsert_raw_breakpoint): Use write_inferior_memory.
17226 (check_mem_read): Mask out fast tracepoint jumps.
17227 (check_mem_write): Mask out fast tracepoint jumps.
17228 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17229 (set_fast_tracepoint_jump): Declare.
17230 (delete_fast_tracepoint_jump)
17231 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17232 (reinsert_fast_tracepoint_jumps_at): Declare.
17233 * regcache.c: Don't compile many functions when building the
17234 in-process agent library.
17235 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17236 the register buffer in the heap.
17237 (free_register_cache): If the register buffer isn't owned by the
17238 regcache, don't free it.
17239 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17240 pre-existing register caches.
17241 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17242 type.
17243 (convert_ascii_to_int): : Constify `from' parameter type.
17244 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17245 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17246 the needed buffer in-place.
17247 (relocate_instruction): New.
17248 * server.c (handle_query) <qSymbols>: If the target supports
17249 tracepoints, give it a chance of looking up symbols. Report
17250 support for fast tracepoints.
17251 (handle_status): Stabilize threads.
17252 (process_serial_event): Adjust.
17253 * server.h (struct fast_tracepoint_jump): Forward declare.
17254 (struct process_info) <fast_tracepoint_jumps>: New field.
17255 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17256 (decode_X_packet, decode_M_packet): Adjust.
17257 (relocate_instruction): Declare.
17258 (in_process_agent_loaded): Declare.
17259 (tracepoint_look_up_symbols): Declare.
17260 (struct fast_tpoint_collect_status): Declare.
17261 (fast_tracepoint_collecting): Declare.
17262 (force_unlock_trace_buffer): Declare.
17263 (handle_tracepoint_bkpts): Declare.
17264 (initialize_low_tracepoint)
17265 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17266 * target.h (struct target_ops) <stabilize_threads,
17267 install_fast_tracepoint_jump_pad>: New fields.
17268 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17269 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17270 [HAVE_STDINT_H]: Include stdint.h.
17271 (trace_debug_1): Rename to ...
17272 (trace_vdebug): ... this.
17273 (trace_debug): Rename to ...
17274 (trace_debug_1): ... this. Add `level' parameter.
17275 (trace_debug): New.
17276 (ATTR_USED, ATTR_NOINLINE): New.
17277 (IP_AGENT_EXPORT): New.
17278 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17279 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17280 (about_to_request_buffer_space, trace_buffer_is_full)
17281 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17282 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17283 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17284 (traceframe_write_count, traceframes_created)
17285 (trace_state_variables)
17286 New renaming defines.
17287 (struct ipa_sym_addresses): New.
17288 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17289 (symbol_list): New.
17290 (ipa_sym_addrs): New.
17291 (all_tracepoint_symbols_looked_up): New.
17292 (in_process_agent_loaded): New.
17293 (write_e_ipa_not_loaded): New.
17294 (maybe_write_ipa_not_loaded): New.
17295 (tracepoint_look_up_symbols): New.
17296 (debug_threads) [IN_PROCESS_AGENT]: New.
17297 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17298 (UNKNOWN_SIDE_EFFECTS): New.
17299 (stop_tracing): New.
17300 (flush_trace_buffer): New.
17301 (stop_tracing_bkpt): New.
17302 (flush_trace_buffer_bkpt): New.
17303 (read_inferior_integer): New.
17304 (read_inferior_uinteger): New.
17305 (read_inferior_data_pointer): New.
17306 (write_inferior_data_pointer): New.
17307 (write_inferior_integer): New.
17308 (write_inferior_uinteger): New.
17309 (struct collect_static_trace_data_action): Delete.
17310 (enum tracepoint_type): New.
17311 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17312 <actions_str, step_actions, step_actions_str>: Only include in
17313 GDBserver.
fa593d66
PA
17314 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17315 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17316 (tracepoints): Use IP_AGENT_EXPORT.
17317 (last_tracepoint): Don't include in the IPA.
17318 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17319 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17320 (alloced_trace_state_variables): New.
17321 (trace_state_variables): Use IP_AGENT_EXPORT.
17322 (traceframe_t): Delete unused variable.
17323 (circular_trace_buffer): Don't include in the IPA.
17324 (trace_buffer_start): Delete.
17325 (struct trace_buffer_control): New.
17326 (trace_buffer_free): Delete.
17327 (struct ipa_trace_buffer_control): New.
17328 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17329 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17330 New.
17331 (trace_buffer_ctrl): New.
17332 (TRACE_BUFFER_CTRL_CURR): New.
17333 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17334 Reimplement as macros.
17335 (trace_buffer_wrap): Delete.
17336 (traceframe_write_count, traceframe_read_count)
17337 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17338 (struct tracepoint_hit_ctx) <type>: New field.
17339 (struct fast_tracepoint_ctx): New.
17340 (memory_barrier): New.
17341 (cmpxchg): New.
17342 (record_tracepoint_error): Update atomically in the IPA.
17343 (clear_inferior_trace_buffer): New.
17344 (about_to_request_buffer_space): New.
17345 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17346 updating the same buffer.
17347 (add_tracepoint): Default the tracepoint's type to trap
17348 tracepoint, and orig_size to -1.
17349 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17350 internal variables.
17351 (create_trace_state_variable): New parameter `gdb'. Handle it.
17352 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17353 (cmd_qtdp): Handle fast tracepoints.
17354 (cmd_qtdv): Adjust.
17355 (max_jump_pad_size): New.
17356 (gdb_jump_pad_head): New.
17357 (get_jump_space_head): New.
17358 (claim_jump_space): New.
17359 (sort_tracepoints): New.
17360 (MAX_JUMP_SIZE): New.
17361 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17362 IPA.
17363 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17364 support. Upload fast traceframes, and delete internal IPA
17365 breakpoints.
17366 (stop_tracing_handler): New.
17367 (flush_trace_buffer_handler): New.
17368 (cmd_qtstop): Upload fast tracepoints.
17369 (response_tracepoint): Handle fast tracepoints.
17370 (tracepoint_finished_step): Upload fast traceframes. Set the
17371 tracepoint hit context's tracepoint type.
17372 (handle_tracepoint_bkpts): New.
17373 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17374 type. Add comment about fast tracepoints.
17375 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17376 non-existing action_str field.
17377 (get_context_regcache): Handle fast tracepoints.
17378 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17379 to the regcache.
17380 (fast_tracepoint_from_jump_pad_address): New.
17381 (fast_tracepoint_from_ipa_tpoint_address): New.
17382 (collecting_t): New.
17383 (force_unlock_trace_buffer): New.
17384 (fast_tracepoint_collecting): New.
17385 (collecting): New.
17386 (gdb_collect): New.
17387 (write_inferior_data_ptr): New.
17388 (target_tp_heap): New.
17389 (target_malloc): New.
17390 (download_agent_expr): New.
17391 (UALIGN): New.
17392 (download_tracepoints): New.
17393 (download_trace_state_variables): New.
17394 (upload_fast_traceframes): New.
17395 (IPA_FIRST_TRACEFRAME): New.
17396 (IPA_NEXT_TRACEFRAME_1): New.
17397 (IPA_NEXT_TRACEFRAME): New.
17398 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17399 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17400 (gdb_jump_pad_buffer_end): New.
17401 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17402 (initialize_tracepoint): Adjust.
17403 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17404 buffer. Initialize the low module.
17405 * utils.c (PREFIX, TOOLNAME): New.
17406 (malloc_failure): Use PREFIX.
17407 (error): In the IPA, an error causes an exit.
17408 (fatal, warning): Use PREFIX.
17409 (internal_error): Use TOOLNAME.
17410 (NUMCELLS): Increase to 10.
17411 * configure, config.in: Regenerate.
17412
d149dd1d
PA
174132010-06-01 Pedro Alves <pedro@codesourcery.com>
17414
17415 * server.c (handle_query) <qSupported>: Do two passes over the
17416 qSupported string to avoid nesting strtok.
17417
f6528abd
JK
174182010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17419
17420 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17421 (CDEPS): New.
17422 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17423 -Wl,--dynamic-list.
17424 * configure: Regenerate.
17425 * proc-service.list: New.
17426
ca2a87a0
JK
174272010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17428
17429 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17430 New comment.
17431
363a6e9f
OS
174322010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17433
17434 * gdbreplay.c (remote_open): Check error return from socket() call by
17435 its equality to -1 not by it being negative.
17436 * remote-utils.c (remote_open): Likewise.
17437
d23b6cb1
PA
174382010-05-23 Pedro Alves <pedro@codesourcery.com>
17439
17440 * config.h: Regenerate.
17441
28d3cf85
MK
174422010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17443
17444 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17445 doesn't provide PTRACE_GET_THREAD_AREA.
17446
fea36a59
MK
174472010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17448
17449 * linux-m68k-low.c: Include <asm/ptrace.h>
17450 (ps_get_thread_area): Implement.
17451
24b066ba
DE
174522010-05-03 Doug Evans <dje@google.com>
17453
17454 * event-loop.c (struct callback_event): New struct.
17455 (callback_list): New global.
17456 (append_callback_event, delete_callback_event): New functions.
17457 (process_callback): New function.
17458 (start_event_loop): Call it.
17459 * remote-utils.c (NOT_SCHEDULED): Define.
17460 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17461 moved out of readchar.
17462 (readchar): Rewrite. Call reschedule before returning.
17463 (reset_readchar): New function.
17464 (remote_close): Call it.
17465 (process_remaining, reschedule): New functions.
17466 * server.h (callback_handler_func): New typedef.
17467 (append_callback_event, delete_callback_event): Declare.
17468
9836d6ea
PA
174692010-05-03 Pedro Alves <pedro@codesourcery.com>
17470
17471 * proc-service.c (ps_pglobal_lookup): Use
17472 thread_db_look_up_one_symbol.
17473 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17474 parameter. Use it instead of all_symbols_looked_up.
17475 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17476 field.
17477 (all_symbols_looked_up): Don't declare.
17478 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17479 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17480 field.
17481 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17482 Set all_symbols_looked_up here.
17483 (thread_db_look_up_one_symbol): New.
17484 (thread_db_get_tls_address): Adjust.
17485 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17486 thread_db object on the heap, and tentatively set it in the
17487 process structure.
17488 (thread_db_init): Don't set all_symbols_looked_up here.
17489 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17490
7984d532
PA
174912010-05-03 Pedro Alves <pedro@codesourcery.com>
17492
17493 * linux-low.c (linux_kill, linux_detach): Adjust.
17494 (status_pending_p_callback): Remove redundant statement. Check
17495 for !TARGET_WAITIKIND_IGNORE, instead of
17496 TARGET_WAITKIND_STOPPED.
17497 (handle_tracepoints): Make sure LWP is locked. Adjust.
17498 (linux_wait_for_event_1): Adjust.
17499 (linux_cancel_breakpoints): New.
17500 (unsuspend_one_lwp): New.
17501 (unsuspend_all_lwps): New.
17502 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17503 (send_sigstop_callback): Change return type to int, add new
17504 `except' parameter and handle it.
17505 (suspend_and_send_sigstop_callback): New.
17506 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17507 pass them down. If SUSPEND, also increment the lwp's suspend
17508 count.
17509 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17510 (need_step_over_p): Don't consider suspended LWPs.
17511 (start_step_over): Adjust.
17512 (proceed_one_lwp): Change return type to int, add new `except'
17513 parameter and handle it.
17514 (unsuspend_and_proceed_one_lwp): New.
17515 (proceed_all_lwps): Use find_inferior instead of
17516 for_each_inferior.
17517 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17518 also decrement the suspend count of LWPs. Pass `except' down,
17519 instead of hacking its suspend count.
17520 (linux_pause_all): Add `freeze' parameter. Adjust.
17521 (linux_unpause_all): New.
17522 (linux_target_ops): Install linux_unpause_all.
17523 * server.c (handle_status): Adjust.
17524 * target.h (struct target_ops): New fields `unpause_all' and
17525 `cancel_breakpoints'. Add new parameter to `pause_all'.
17526 (pause_all): Add new `freeze' parameter.
17527 (unpause_all): New.
17528 (cancel_breakpoints): New.
17529 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17530 cancel breakpoints.
17531 (cmd_qtstart): Pause threads.
17532 (stop_tracing): Pause threads, and cancel breakpoints.
17533 * win32-low.c (win32_target_ops): Adjust.
17534
e471f25b
PA
175352010-05-03 Pedro Alves <pedro@codesourcery.com>
17536
17537 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17538 the inferior right away from here...
17539 (linux_wait_1): ... to here, and adjust to check the thread's
17540 last_resume_kind instead of the lwp's step or stop_expected flags.
17541
1915ef4f
PA
175422010-05-02 Pedro Alves <pedro@codesourcery.com>
17543
17544 * README: Use consistent `GDB' and `GDBserver' spellings.
17545
f9e39928
PA
175462010-05-02 Pedro Alves <pedro@codesourcery.com>
17547
17548 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17549 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17550 (linux_detach_one_lwp): Assume the lwp is stopped.
17551 (any_thread_of): Delete.
17552 (linux_detach): Stop all lwps here. Don't blindly delete all
17553 breakpoints.
17554 (delete_lwp_callback): New.
17555 (linux_mourn): Delete all lwps of the process that is gone.
17556 (linux_wait_1): Don't delete the last lwp of the process here.
17557 * mem-break.h (mark_breakpoints_out): Declare.
17558 * mem-break.c (mark_breakpoints_out): New.
17559 (free_all_breakpoints): Use it.
17560 * server.c (handle_target_event): If the process is gone, mark
17561 breakpoints out.
17562 * thread-db.c (struct thread_db) <create_bp>: New field.
17563 (thread_db_enable_reporting): Fix prototype. Store a thread event
17564 breakpoint reference in the thread_db struct.
17565 (thread_db_load_search): Clear the thread_db object.
17566 (try_thread_db_load_1): Ditto.
17567 (switch_to_process): New.
17568 (disable_thread_event_reporting): Use it.
17569 (remove_thread_event_breakpoints): New.
17570 (thread_db_detach, thread_db_mourn): Use it.
17571
1e7fc18c
PA
175722010-05-01 Pedro Alves <pedro@codesourcery.com>
17573
17574 * linux-low.c (linux_enable_event_reporting): New.
17575 (linux_wait_for_event_1, handle_extended_wait): Use it.
17576
02fc4de7
PA
175772010-04-30 Pedro Alves <pedro@codesourcery.com>
17578
17579 * linux-low.c (linux_kill_one_lwp, linux_kill)
17580 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17581 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17582 SIGSTOP even if the LWP is stopped.
17583 (send_sigstop_callback): New.
17584 (stop_all_lwps): Use send_sigstop_callback instead.
17585 (linux_resume_one_thread): Adjust.
17586 (proceed_one_lwp): Still proceed an LWP that the client has
17587 requested to stop, if we haven't reported it as stopped yet. Make
17588 sure that LWPs the client want stopped, have a pending SIGSTOP.
17589
bc3b5632
DE
175902010-04-26 Doug Evans <dje@google.com>
17591
ae1ada35
DE
17592 * server.c (handle_general_set): Make static.
17593
bc3b5632
DE
17594 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17595 Print received char after testing for error/eof instead of before.
17596 (input_interrupt): Tweak comment.
17597
65730243
DE
175982010-04-23 Doug Evans <dje@google.com>
17599
17600 * server.c (start_inferior): Print inferior argv if --debug.
17601
a8ae7dc0
AR
176022010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17603
17604 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17605 * nto-x86-low.c: Include server.h
17606
1c07cc19
PM
176072010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17608
17609 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17610 be consistent with other sources of this directory.
17611 (init_registers_amd64): Correct name of source file of this function
17612 in the comment.
17613
e0a61e09
PM
176142010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17615
17616 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17617 64-bit executables.
17618
54709339
PM
176192010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17620
17621 * win32-i386-low.c: Add 64-bit support.
17622 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17623 (init_registers_amd64): Declare.
17624 (mappings): Add 64-bit version of array.
17625 (init_windows_x86): New function.
17626 (the_low_target): Change init_arch field to init_windows_x86.
17627
e8f0053d
PM
176282010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17629
17630 * win32-low.c: Adapt to support also 64-bit architecture.
17631 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17632 (get_image_name): Use SIZE_T type for local variable `done'.
17633 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17634 (toolhelp_get_dll_name): Idem.
17635 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17636 Use uintptr_t typecast to avoid warning.
17637 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17638 (handle_exception): Use phex_nz to avoid warning.
17639 (win32_wait): Remove unused local variable `process'.
17640
c481e77e
PM
176412010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17642
17643 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17644 `amd64-avx.o'.
17645
12ea4b69
PM
176462010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17647
17648 * configure.ac: Use `ws2_32' library for srv_mingw.
17649 * configure: Regenerate.
17650 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17651 * remote-utils.c: Likewise.
17652
f6d1620c
L
176532010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17654
17655 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17656 if __x86_64__ is defined.
17657
8e642873
PM
176582010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17659
17660 * configure: Regenerate.
17661
711e434b
PM
176622010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17663
17664 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17665 * target.h (target_ops): New get_tib_address field.
17666 * win32-low.h (win32_thread_info): Add thread_local_base field.
17667 * win32-low.c (child_add_thread): Add tlb argument.
17668 Set thread_local_base field to TLB.
17669 (get_child_debug_event): Adapt to child_add_thread change.
17670 (win32_get_tib_address): New function.
17671 (win32_target_ops): Set get_tib_address field to
17672 win32_get_tib_address.
17673 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17674
505106cd
PA
176752010-04-12 Pedro Alves <pedro@codesourcery.com>
17676
505106cd
PA
17677 * linux-low.c (linux_mourn): Also remove the process.
17678 * server.c (handle_target_event): Don't remove the process here.
17679 * nto-low.c (nto_mourn): New.
17680 (nto_target_ops): Install it.
17681 * spu-low.c (spu_mourn): New.
17682 (spu_target_ops): Install it.
17683 * win32-low.c (win32_mourn): New.
17684 (win32_target_ops): Install it.
17685
e8470a06
PA
176862010-04-12 Pedro Alves <pedro@codesourcery.com>
17687
17688 * server.h (buffer_xml_printf): Remove redundant `;'.
17689
45ba0d02
PA
176902010-04-12 Pedro Alves <pedro@codesourcery.com>
17691
17692 * regcache.c (set_register_cache): Invalidate regcaches before
17693 changing the register cache layout.
17694 (regcache_invalidate_one): Allow a NULL regcache.
17695 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17696 regcaches before changing the register cache layout or the target
17697 regsets.
17698
59e04013
L
176992010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17700
17701 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17702 variable warning on Linux/x86-64.
17703
8336d594
PA
177042010-04-11 Pedro Alves <pedro@codesourcery.com>
17705
17706 GDBserver disconnected tracing support.
17707
17708 * linux-low.c (linux_remove_process): Delete.
17709 (add_lwp): Don't set last_resume_kind here.
17710 (linux_kill): Use `mourn'.
17711 (linux_detach): Use `thread_db_detach', and `mourn'.
17712 (linux_mourn): New.
17713 (linux_attach_lwp_1): Adjust comment.
17714 (linux_attach): last_resume_kind moved the thread_info; adjust.
17715 (status_pending_p_callback): Adjust.
17716 (linux_wait_for_event_1): Adjust.
17717 (count_events_callback, select_singlestep_lwp_callback)
17718 (select_event_lwp_callback, cancel_breakpoints_callback)
17719 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17720 (proceed_one_lwp): Adjust.
17721 (linux_async): Add debug output.
17722 (linux_thread_stopped): New.
17723 (linux_pause_all): New.
17724 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17725 linux_pause_all.
17726 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17727 (thread_db_free): Delete declaration.
17728 (thread_db_detach, thread_db_mourn): Declare.
17729 * thread-db.c (thread_db_init): Use thread_db_mourn.
17730 (thread_db_free): Delete, split in two.
17731 (disable_thread_event_reporting): New.
17732 (thread_db_detach): New.
17733 (thread_db_mourn): New.
17734
17735 * server.h (struct thread_info) <last_resume_kind>: New field.
17736 <attached>: Add comment.
17737 <gdb_detached>: New field.
17738 (handler_func): Change return type to int.
17739 (handle_serial_event, handle_target_event): Ditto.
17740 (gdb_connected): Declare.
17741 (tracing): Delete.
17742 (disconnected_tracing): Declare.
17743 (stop_tracing): Declare.
17744
17745 * server.c (handle_query) <qSupported>: Report support for
17746 disconnected tracing.
17747 (queue_stop_reply_callback): Account for running threads.
17748 (gdb_wants_thread_stopped): New.
17749 (gdb_wants_all_threads_stopped): New.
17750 (gdb_reattached_process): New.
17751 (handle_status): Clear the `gdb_detached' flag of all processes.
17752 In all-stop, stop all threads.
17753 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17754 (process_serial_event): If the remote connection breaks, or if an
17755 exit was forced with "monitor exit", force an event loop exit.
17756 Handle disconnected tracing on detach.
17757 (handle_serial_event): Adjust.
17758 (handle_target_event): If GDB isn't connected, forward events back
17759 to the inferior, unless the last process exited, in which case,
17760 exit gdbserver. Adjust interface.
17761
17762 * remote-utils.c (remote_open): Don't block in accept. Instead
17763 register an event loop source on the listen socket file
17764 descriptor. Refactor bits into ...
17765 (listen_desc): ... this new global.
17766 (gdb_connected): ... this new function.
17767 (enable_async_notification): ... this new function.
17768 (handle_accept_event): ... this new function.
17769 (remote_close): Clear remote_desc.
17770
17771 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17772
17773 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17774 New fields.
17775 (mourn_inferior): Define.
17776 (target_process_qsupported): Avoid the dangling else problem.
17777 (thread_stopped): Define.
17778 (pause_all): Define.
17779 (target_waitstatus_to_string): Declare.
17780 * target.c (target_waitstatus_to_string): New.
17781
17782 * tracepoint.c (tracing): Make extern.
17783 (disconnected_tracing): New.
17784 (stop_tracing): Make extern. Handle tracing stops due to GDB
17785 disconnecting.
17786 (cmd_qtdisconnected): New.
17787 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17788 (handle_tracepoint_general_set): Handle QTDisconnected.
17789
17790 * event-loop.c (event_handler_func): Change return type to int.
17791 (process_event): Bail out if the event handler wants the event
17792 loop to stop.
17793 (handle_file_event): Ditto.
17794 (start_event_loop): Bail out if the event handler wants the event
17795 loop to stop.
17796
17797 * nto-low.c (nto_target_ops): Adjust.
17798 * spu-low.c (spu_wait): Don't remove the process here.
17799 (spu_target_ops): Adjust.
17800 * win32-low.c (win32_wait): Don't remove the process here.
17801 (win32_target_ops): Adjust.
17802
5d267c4c
PA
178032010-04-11 Pedro Alves <pedro@codesourcery.com>
17804
17805 * regcache.c (realloc_register_cache): Invalidate inferior's
17806 regcache before recreating it.
17807
623ccd72
PA
178082010-04-09 Pedro Alves <pedro@codesourcery.com>
17809
17810 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17811
219f2f23
PA
178122010-04-09 Stan Shebs <stan@codesourcery.com>
17813 Pedro Alves <pedro@codesourcery.com>
17814
17815 * server.h (LONGEST): New.
17816 (struct thread_info) <while_stepping>: New field.
17817 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17818 Declare.
17819 (initialize_tracepoint, handle_tracepoint_general_set)
17820 (handle_tracepoint_query, tracepoint_finished_step)
17821 (tracepoint_was_hit, release_while_stepping_state_list):
17822 (current_traceframe): Declare.
17823 * server.c (handle_general_set): Handle tracepoint packets.
17824 (read_memory): New.
17825 (write_memory): New.
17826 (handle_search_memory_1): Use read_memory.
17827 (handle_query): Report support for conditional tracepoints, trace
17828 state variables, and tracepoint sources. Handle tracepoint
17829 queries.
17830 (main): Initialize the tracepoints module.
17831 (process_serial_event): Handle traceframe reads/writes.
17832
17833 * linux-low.c (handle_tracepoints): New.
17834 (linux_wait_1): Call it.
17835 (linux_resume_one_lwp): Handle while-stepping.
17836 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17837 (linux_target_ops): Install them.
17838 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17839 New field.
17840 * linux-x86-low.c (x86_supports_tracepoints): New.
17841 (the_low_target). Install it.
17842
17843 * mem-break.h (delete_breakpoint): Declare.
17844 * mem-break.c (delete_breakpoint): Make external.
17845
17846 * target.h (struct target_ops): Add `supports_tracepoints',
17847 `read_pc', and `write_pc' fields.
17848 (target_supports_tracepoints): Define.
17849 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17850 (phex_nz): New.
17851
17852 * regcache.h (struct regcache) <registers_owned>: New field.
17853 (init_register_cache, regcache_cpy): Declare.
17854 (regcache_read_pc, regcache_write_pc): Declare.
17855 (register_cache_size): Declare.
17856 (supply_regblock): Declare.
17857 * regcache.c (init_register_cache): New.
17858 (new_register_cache): Use it.
17859 (regcache_cpy): New.
17860 (register_cache_size): New.
17861 (supply_regblock): New.
17862 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17863
219f2f23
PA
17864 * tracepoint.c: New.
17865
17866 * Makefile.in (OBS): Add tracepoint.o.
17867 (tracepoint.o): New rule.
17868
3a13a53b
L
178692010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17870
17871 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17872 (i386-mmx.o): New.
17873 (i386-mmx.c): Likewise.
17874 (i386-mmx-linux.o): Likewise.
17875 (i386-mmx-linux.c): Likewise.
17876
17877 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17878 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17879 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17880 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17881
17882 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17883 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17884 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17885
1570b33e
L
178862010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17887
17888 * Makefile.in (clean): Updated.
17889 (i386-avx.o): New.
17890 (i386-avx.c): Likewise.
17891 (i386-avx-linux.o): Likewise.
17892 (i386-avx-linux.c): Likewise.
17893 (amd64-avx.o): Likewise.
17894 (amd64-avx.c): Likewise.
17895 (amd64-avx-linux.o): Likewise.
17896 (amd64-avx-linux.c): Likewise.
17897
17898 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17899 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17900 (srv_amd64_regobj): Add amd64-avx.o.
17901 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17902 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17903 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17904 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17905 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17906 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17907 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17908
17909 * i387-fp.c: Include "i386-xstate.h".
17910 (i387_xsave): New.
17911 (i387_cache_to_xsave): Likewise.
17912 (i387_xsave_to_cache): Likewise.
17913 (x86_xcr0): Likewise.
17914
17915 * i387-fp.h (i387_cache_to_xsave): Likewise.
17916 (i387_xsave_to_cache): Likewise.
17917 (x86_xcr0): Likewise.
17918
17919 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17920 * linux-crisv32-low.c (target_regsets): Likewise.
17921 * linux-m68k-low.c (target_regsets): Likewise.
17922 * linux-mips-low.c (target_regsets): Likewise.
17923 * linux-ppc-low.c (target_regsets): Likewise.
17924 * linux-s390-low.c (target_regsets): Likewise.
17925 * linux-sh-low.c (target_regsets): Likewise.
17926 * linux-sparc-low.c (target_regsets): Likewise.
17927 * linux-xtensa-low.c (target_regsets): Likewise.
17928
17929 * linux-low.c: Include <sys/uio.h>.
17930 (regsets_fetch_inferior_registers): Support nt_type.
17931 (regsets_store_inferior_registers): Likewise.
17932 (linux_process_qsupported): New.
17933 (linux_target_ops): Add linux_process_qsupported.
17934
17935 * linux-low.h (regset_info): Add nt_type.
17936 (linux_target_ops): Add process_qsupported.
17937
17938 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17939 and <sys/uio.h>.
17940 (init_registers_i386_avx_linux): New.
17941 (init_registers_amd64_avx_linux): Likewise.
17942 (xmltarget_i386_linux_no_xml): Likewise.
17943 (xmltarget_amd64_linux_no_xml): Likewise.
17944 (PTRACE_GETREGSET): Likewise.
17945 (PTRACE_SETREGSET): Likewise.
17946 (x86_fill_xstateregset): Likewise.
17947 (x86_store_xstateregset): Likewise.
17948 (use_xml): Likewise.
17949 (x86_linux_update_xmltarget): Likewise.
17950 (x86_linux_process_qsupported): Likewise.
17951 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17952 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17953 init_registers_i386_linux here. Call
17954 x86_linux_update_xmltarget.
17955 (the_low_target): Add x86_linux_process_qsupported.
17956
17957 * server.c (handle_query): Call target_process_qsupported.
17958
17959 * target.h (target_ops): Add process_qsupported.
17960 (target_process_qsupported): New.
17961
fc7238bb
PA
179622010-04-03 Pedro Alves <pedro@codesourcery.com>
17963
17964 * inferiors.c (add_thread): Set last_status kind to
17965 TARGET_WAITKIND_IGNORE.
17966 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17967 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17968 (linux_wait_1): Move `thread' local definition to block that uses
17969 it. Don't NULL initialize `event_child'.
17970 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17971 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17972 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17973
bdabb078
PA
179742010-04-01 Pedro Alves <pedro@codesourcery.com>
17975
17976 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17977 an extended waitstatus, or by a watchpoint.
17978 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17979 thread was stepping or has been stopped by a watchpoint.
17980
d3bbe7a0
PA
179812010-04-01 Pedro Alves <pedro@codesourcery.com>
17982
17983 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17984 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17985 of another, then delete the previous, and validate all
17986 breakpoints.
17987 (validate_inserted_breakpoint): New.
17988 (delete_disabled_breakpoints): New.
17989 (validate_breakpoints): New.
17990 (check_mem_read): Validate breakpoints before trusting their
17991 shadow. Delete disabled breakpoints.
17992 (check_mem_write): Validate breakpoints before trusting they
17993 should be inserted. Delete disabled breakpoints.
17994 * mem-break.h (validate_breakpoints):
17995 * server.c (handle_query): Validate breakpoints when we see a
17996 qSymbol query.
17997
8b07ae33
PA
179982010-04-01 Pedro Alves <pedro@codesourcery.com>
17999
18000 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18001 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18002 if we could tell there's a GDB breakpoint at stop_pc.
18003 (need_step_over_p): Don't do a step over if we find a GDB
18004 breakpoint at the resume PC.
18005
18006 * mem-break.c (struct raw_breakpoint): New.
18007 (enum bkpt_type): New type `gdb_breakpoint'.
18008 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18009 fields. New field `raw'.
18010 (find_raw_breakpoint_at): New.
18011 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18012 breakpoint instead.
18013 (set_breakpoint_at): Adjust.
18014 (delete_raw_breakpoint): New.
18015 (release_breakpoint): New.
18016 (delete_breakpoint): Rename to...
18017 (delete_breakpoint_1): ... this. Add proc parameter. Use
18018 release_breakpoint. Return ENOENT.
18019 (delete_breakpoint): Reimplement.
18020 (find_breakpoint_at): Delete.
18021 (find_gdb_breakpoint_at): New.
18022 (delete_breakpoint_at): Delete.
18023 (set_gdb_breakpoint_at): New.
18024 (delete_gdb_breakpoint_at): New.
18025 (gdb_breakpoint_here): New.
18026 (set_reinsert_breakpoint): Use release_breakpoint.
18027 (uninsert_breakpoint): Rename to ...
18028 (uninsert_raw_breakpoint): ... this.
18029 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18030 (reinsert_raw_breakpoint): Change parameter type to
18031 raw_breakpoint.
18032 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18033 instead.
18034 (check_breakpoints): Adjust. Use release_breakpoint.
18035 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18036 (breakpoint_inserted_here): Ditto.
18037 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18038 Don't trust the breakpoint's shadow if it is not inserted.
18039 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18040 (delete_all_breakpoints): Adjust.
18041 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18042 use delete_breakpoint_1.
18043
18044 * mem-break.h (breakpoints_supported): Delete declaration.
18045 (set_gdb_breakpoint_at): Declare.
18046 (gdb_breakpoint_here): Declare.
18047 (delete_breakpoint_at): Delete.
18048 (delete_gdb_breakpoint_at): Declare.
18049
18050 * server.h (struct raw_breakpoint): Forward declare.
18051 (struct process_info): New field `raw_breakpoints'.
18052
18053 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18054 breakpoints.
18055
6bf5e0ba
PA
180562010-03-24 Pedro Alves <pedro@codesourcery.com>
18057
18058 * linux-low.c (status_pending_p_callback): Fix comment.
18059 (linux_wait_for_event_1): Move most of the internal breakpoint
18060 handling from here...
18061 (linux_wait_1): ... to here.
18062 (count_events_callback): New.
18063 (select_singlestep_lwp_callback): New.
18064 (select_event_lwp_callback): New.
18065 (cancel_breakpoints_callback): New.
18066 (select_event_lwp): New.
18067 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18068 priority to all LWPs that have had events that should be reported
18069 to the client. Cancel breakpoints when about to reporting the
18070 event to the client, not while stopping lwps. No longer cancel
18071 finished single-steps here.
18072 (cancel_finished_single_step): Delete.
18073 (cancel_finished_single_steps): Delete.
18074
414a389f
PA
180752010-03-24 Pedro Alves <pedro@codesourcery.com>
18076
18077 * mem-break.c (enum bkpt_type): New.
18078 (struct breakpoint): New field `type'.
18079 (set_breakpoint_at): Change return type to struct breakpoint
18080 pointer. Set type to `other_breakpoint' by default.
18081 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18082 in the breakpoint list.
18083 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18084 (reinsert_breakpoint): Rename to ...
18085 (reinsert_raw_breakpoint): ... this.
18086 (reinsert_breakpoints_at): Adjust.
18087 * mem-break.h (struct breakpoint): Declare.
18088 (set_breakpoint_at): Change return type to struct breakpoint
18089 pointer.
18090
2280c721
PA
180912010-03-24 Pedro Alves <pedro@codesourcery.com>
18092
18093 * server.c (handle_query): Assign, not compare.
18094
d50171e4
PA
180952010-03-24 Pedro Alves <pedro@codesourcery.com>
18096
18097 Teach linux gdbserver to step-over-breakpoints.
18098
18099 * linux-low.c (can_hardware_single_step): New.
18100 (supports_breakpoints): New.
18101 (handle_extended_wait): If stopping threads, read the stop pc of
18102 the new cloned LWP.
18103 (get_pc): New.
18104 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18105 low target doesn't support retrieving the PC.
18106 (add_lwp): Set last_resume_kind to resume_continue.
18107 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18108 (linux_attach): Don't clear stop_expected. Set the lwp's
18109 last_resume_kind to resume_stop.
18110 (linux_detach_one_lwp): Don't check for removed breakpoints.
18111 (check_removed_breakpoint): Delete.
18112 (status_pending_p): Rename to ...
18113 (status_pending_p_callback): ... this. Don't check for removed
18114 breakpoints. Don't consider threads that are stopped from GDB's
18115 perspective.
18116 (linux_wait_for_lwp): Always read the stop_pc here.
18117 (cancel_breakpoint): New.
18118 (step_over_bkpt): New global.
18119 (linux_wait_for_event_1): Implement stepping over breakpoints.
18120 (gdb_wants_lwp_stopped): New.
18121 (gdb_wants_all_stopped): New.
18122 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18123 single-step traps here. Store the thread's last reported target
18124 wait status.
18125 (send_sigstop): Don't clear stop_expected. Always set it,
18126 instead.
18127 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18128 (cancel_finished_single_step): New.
18129 (cancel_finished_single_steps): New.
18130 (wait_for_sigstop): Don't cancel finished single-step traps here.
18131 (linux_resume_one_lwp): Don't check for removed breakpoints.
18132 Don't set `step' on non-hardware step archs.
18133 (linux_set_resume_request): Ignore resume_stop requests if already
18134 stopping or stopped. Set the lwp's last_resume_kind.
18135 (resume_status_pending_p): Don't check for removed breakpoints.
18136 (need_step_over_p): New.
18137 (start_step_over): New.
18138 (finish_step_over): New.
18139 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18140 requests. Clear the thread's last reported target waitstatus.
18141 Don't use the `suspended' flag. Don't consider pending breakpoints.
18142 (linux_resume): Start a step-over if necessary.
18143 (proceed_one_lwp): New.
18144 (proceed_all_lwps): New.
18145 (unstop_all_lwps): New.
18146 * linux-low.h (struct lwp_info): Rewrite comment for the
18147 `suspended' flag. Add the `stop_pc' field. Delete the
18148 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18149 Add `'last_resume_kind' and `need_step_over' fields.
18150 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18151 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18152 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18153 (set_raw_breakpoint_at): New.
18154 (set_breakpoint_at): Rewrite to use it.
18155 (reinsert_breakpoint_handler): Delete.
18156 (set_reinsert_breakpoint): New.
18157 (reinsert_breakpoint_by_bp): Delete.
18158 (delete_reinsert_breakpoints): New.
18159 (uninsert_breakpoint): Rewrite.
18160 (uninsert_breakpoints_at): New.
18161 (reinsert_breakpoint): Rewrite.
18162 (reinsert_breakpoints_at): New.
18163 (check_breakpoints): Rewrite.
18164 (breakpoint_here): New.
18165 (breakpoint_inserted_here): New.
18166 (check_mem_read): Adjust.
18167 * mem-break.h (breakpoints_supported, breakpoint_here)
18168 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18169 (reinsert_breakpoint_by_bp): Delete declaration.
18170 (delete_reinsert_breakpoints): Declare.
18171 (reinsert_breakpoint): Delete declaration.
18172 (reinsert_breakpoints_at): Declare.
18173 (uninsert_breakpoint): Delete declaration.
18174 (uninsert_breakpoints_at): Declare.
18175 (check_breakpoints): Adjust prototype.
18176 * server.h: Adjust include order.
18177 (struct thread_info): Declare here. Add a `last_status' field.
18178
30ba68cb
MS
181792010-03-23 Michael Snyder <msnyder@vmware.com>
18180
18181 * server.c (crc32): New function.
18182 (handle_query): Add handling for 'qCRC:' request.
18183
b9a881c2
PA
181842010-03-23 Pedro Alves <pedro@codesourcery.com>
18185
18186 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18187 lwp had been stopped by a watchpoint.
18188
e92d13d5
PA
181892010-03-16 Pedro Alves <pedro@codesourcery.com>
18190
18191 * server.h (internal_error): Declare.
18192 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18193 * utils.c (internal_error): New function.
18194
64daa791
AS
181952010-03-15 Andreas Schwab <schwab@redhat.com>
18196
18197 * configure.srv: Fix typo setting srv_regobj.
18198
f52cd8cd
PA
181992010-03-15 Pedro Alves <pedro@codesourcery.com>
18200
18201 * linux-low.c (fetch_register): Avoid passing a non string literal
18202 format to `error'.
18203 (usr_store_inferior_registers): Ditto.
18204
93ae6fdc
PA
182052010-03-14 Pedro Alves <pedro@codesourcery.com>
18206
18207 * linux-low.c (linux_write_memory): Bail out early if peeking
18208 memory failed.
18209
c3adc08c
PA
182102010-03-14 Pedro Alves <pedro@codesourcery.com>
18211
18212 * linux-low.h (struct lwp_info): New fields
18213 `stopped_by_watchpoint' and `stopped_data_address'.
18214 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18215 here, and cache them in the lwp object.
18216 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18217 directly.
18218 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18219 field.
18220 (linux_stopped_by_watchpoint): Rewrite.
18221 (linux_stopped_data_address): Rewrite.
18222
bce522a2
PA
182232010-03-06 Simo Melenius <simo.melenius@iki.fi>
18224
18225 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18226 switching the current inferior, not before.
18227
90884b2b
L
182282010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18229
18230 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18231 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18232 i386-linux.c and amd64-linux.c.
18233 (reg-i386.o): Removed.
18234 (reg-i386.c): Likewise.
18235 (reg-i386-linux.o): Likewise.
18236 (reg-i386-linux.c): Likewise.
18237 (reg-x86-64.o): Likewise.
18238 (reg-x86-64.c): Likewise.
18239 (reg-x86-64-linux.o): Likewise.
18240 (reg-x86-64-linux.c): Likewise.
18241 (i386.o): New.
18242 (i386.c): Likewise.
18243 (i386-linux.o): Likewise.
18244 (i386-linux.c): Likewise.
18245 (amd64.o): Likewise.
18246 (amd64.c): Likewise.
18247 (amd64-linux.o): Likewise.
18248 (amd64-linux.c): Likewise.
18249
18250 * configure.srv (srv_i386_regobj): New.
18251 (srv_i386_linux_regobj): Likewise.
18252 (srv_amd64_regobj): Likewise.
18253 (srv_amd64_linux_regobj): Likewise.
18254 (srv_i386_32bit_xmlfiles): Likewise.
18255 (srv_i386_64bit_xmlfiles): Likewise.
18256 (srv_i386_xmlfiles): Likewise.
18257 (srv_amd64_xmlfiles): Likewise.
18258 (srv_i386_linux_xmlfiles): Likewise.
18259 (srv_amd64_linux_xmlfiles): Likewise.
18260 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18261 srv_xmlfiles to $srv_i386_xmlfiles.
18262 (i[34567]86-*-mingw32ce*): Likewise.
18263 (i[34567]86-*-mingw*): Likewise.
18264 (i[34567]86-*-nto*): Likewise.
18265 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18266 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18267 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18268 (x86_64-*-linux*): Likewise.
18269
18270 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18271 (init_registers_amd64_linux): New.
18272 (x86_arch_setup): Replace init_registers_x86_64_linux with
18273 init_registers_amd64_linux.
18274
193f13e6
MK
182752010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18276
18277 * configure.ac: Check for libdl. If it is not available link against
18278 static libthread_db.
18279 * configure: Regenerate.
18280
85d721b8
PA
182812010-02-22 Pedro Alves <pedro@codesourcery.com>
18282
18283 PR9605
18284
18285 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18286 handing a read watchpoint.
18287 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18288
6076632b
DE
182892010-02-12 Doug Evans <dje@google.com>
18290
18291 * linux-low.c (linux_supports_tracefork_flag): Document.
18292 (linux_look_up_symbols): Add comment.
18293
3327ccf7
L
182942010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18295
18296 * regcache.c (supply_register): Clear regcache if buf is NULL.
18297
0718675c 182982010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18299 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18300
18301 * inferiors.c (find_inferior): Add function documentation.
18302 (unloaded_dll): Handle the case where the unloaded dll has not
18303 been previously registered in the dll list.
18304
177321bd
DJ
183052010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18306
18307 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18308 (thumb2_breakpoint): New.
18309 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18310
2b009048
DJ
183112010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18312
18313 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18314 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18315 breakpoints.
18316
3be029c7
PA
183172010-01-21 Pedro Alves <pedro@codesourcery.com>
18318
18319 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18320
18f5de3b
JK
183212010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18322
18323 * linux-s390-low.c (s390_collect_ptrace_register)
18324 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18325
3743bb4f
DE
183262010-01-21 Doug Evans <dje@google.com>
18327
14ce3065
DE
18328 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18329 (PTRACE_ARG4_TYPE): New macro.
18330 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18331 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18332 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18333 (usr_store_inferior_registers): Ditto.
18334 (linux_read_memory, linux_write_memory): Ditto.
18335 (linux_test_for_tracefork): Ditto.
18336
3743bb4f
DE
18337 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18338 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18339
8b315be5
PA
183402010-01-21 Pedro Alves <pedro@codesourcery.com>
18341
18342 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18343 target.
18344
85492558
PA
183452010-01-21 Pedro Alves <pedro@codesourcery.com>
18346
18347 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18348 prototype to take a regcache. Adjust.
18349
442ea881
PA
183502010-01-20 Pedro Alves <pedro@codesourcery.com>
18351
18352 * regcache.h (struct thread_info): Forward declare.
18353 (struct regcache): New.
18354 (new_register_cache): Adjust prototype.
18355 (get_thread_regcache): Declare.
18356 (free_register_cache): Adjust prototype.
18357 (registers_to_string, registers_from_string): Ditto.
18358 (supply_register, supply_register_by_name, collect_register)
18359 (collect_register_as_string, collect_register_by_name): Ditto.
18360 * regcache.c (struct inferior_regcache_data): Delete.
18361 (get_regcache): Rename to ...
18362 (get_thread_regcache): ... this. Adjust. Switch inferior before
18363 fetching registers.
18364 (regcache_invalidate_one): Adjust.
18365 (regcache_invalidate): Fix prototype.
18366 (new_register_cache): Return the new register cache.
18367 (free_register_cache): Change prototype.
18368 (realloc_register_cache): Adjust.
18369 (registers_to_string): Change prototype to take a regcache. Adjust.
18370 (registers_from_string): Ditto.
18371 (register_data): Ditto.
18372 (supply_register): Ditto.
18373 (supply_register_by_name): Ditto.
18374 (collect_register): Ditto.
18375 (collect_register_as_string): Ditto.
18376 (collect_register_by_name): Ditto.
18377 * server.c (process_serial_event): Adjust.
18378 * linux-low.h (regset_fill_func, regset_store_func): Change
18379 prototype.
18380 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18381 Change prototype.
18382 * linux-low.c (get_stop_pc): Adjust.
18383 (check_removed_breakpoint): Adjust.
18384 (linux_wait_for_event): Adjust.
18385 (linux_resume_one_lwp): Adjust.
18386 (fetch_register): Add regcache parameter. Adjust.
18387 (usr_store_inferior_registers): Ditto.
18388 (regsets_fetch_inferior_registers): Ditto.
18389 (regsets_store_inferior_registers): Ditto.
18390 (linux_fetch_registers, linux_store_registers): Ditto.
18391 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18392 regcache. Adjust.
43aaf8b6
PA
18393 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18394 Ditto.
442ea881
PA
18395 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18396 prototype to take a regcache.
18397 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18398 * remote-utils.c (convert_ascii_to_int, outreg)
18399 (prepare_resume_reply): Change prototype to take a regcache.
18400 Adjust.
18401 * target.h (struct target_ops) <fetch_registers, store_registers>:
18402 Change prototype to take a regcache.
18403 (fetch_inferior_registers, store_inferior_registers): Change
18404 prototype to take a regcache. Adjust.
18405 * proc-service.c (ps_lgetregs): Adjust.
18406 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18407 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18408 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18409 take a regcache. Adjust.
18410 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18411 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18412 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18413 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18414 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18415 (cris_cannot_fetch_register):
18416 (cris_breakpoint_at): Change prototype to take a regcache.
18417 Adjust.
18418 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18419 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18420 to take a regcache. Adjust.
18421 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18422 Adjust.
18423 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18424 take a regcache. Adjust.
18425 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18426 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18427 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18428 * linux-mips-low.c (mips_get_pc):
18429 (mips_set_pc): Change prototype to take a regcache. Adjust.
18430 (mips_reinsert_addr): Adjust.
18431 (mips_collect_register): Change prototype to take a regcache.
18432 Adjust.
18433 (mips_supply_register):
18434 (mips_collect_register_32bit, mips_supply_register_32bit)
18435 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18436 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18437 * linux-ppc-low.c (ppc_supply_ptrace_register)
18438 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18439 (parse_spufs_run): Adjust.
18440 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18441 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18442 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18443 take a regcache. Adjust.
18444 * linux-s390-low.c (s390_collect_ptrace_register)
18445 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18446 (s390_set_pc): Change prototype to take a regcache. Adjust.
18447 (s390_arch_setup): Adjust.
18448 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18449 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18450 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18451 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18452 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18453 regcache. Adjust.
18454 (sparc_breakpoint_at): Adjust.
18455 * linux-xtensa-low.c (xtensa_fill_gregset):
18456 (xtensa_store_gregset):
18457 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18458 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18459 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18460 prototype to take a regcache. Adjust.
18461 * win32-arm-low.c (arm_fetch_inferior_register)
18462 (arm_store_inferior_register): Change prototype to take a
18463 regcache. Adjust.
18464 * win32-i386-low.c (i386_fetch_inferior_register)
18465 (i386_store_inferior_register): Change prototype to take a
18466 regcache. Adjust.
18467 * win32-low.c (child_fetch_inferior_registers)
18468 (child_store_inferior_registers): Change prototype to take a
18469 regcache. Adjust.
18470 (win32_wait): Adjust.
18471 (win32_fetch_inferior_registers): Change prototype to take a
18472 regcache. Adjust.
18473 (win32_store_inferior_registers): Adjust.
18474 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18475 store_inferior_register>: Change prototype to take a regcache.
18476
60c3d7b0
DE
184772010-01-20 Doug Evans <dje@google.com>
18478
18479 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18480 #ifdef.
18481 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18482 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18483
dc146f7c
VP
184842010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18485
18486 * linux-low.c (linux_core_of_thread): New.
18487 (compare_ints, show_process, list_threads): New.
18488 (linux_qxfer_osdata): Report threads and cores.
18489 (linux_target_op): Register linux_core_of_thread.
18490 * remote-utils.c (prepare_resume_reply): Report the core.
18491 (buffer_xml_printf): Support %d specifier.
18492 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18493 New.
18494 (handle_query): Handle qXfer:threads. Announce availability
18495 thereof.
18496 * target.h (struct target_ops): New field core_of_thread.
18497
7803799a
UW
184982010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18499
18500 * Makefile.in (clean): Remove new generated files.
18501 (reg-s390.o, reg-s390.c): Remove rules.
18502 (reg-s390x.o, reg-s390x.c): Likewise.
18503 (s390-linux32.o, s390-linux32.c): Add rules.
18504 (s390-linux64.o, s390-linux64.c): Likewise.
18505 (s390x-linux64.o, s390x-linux64.c): Likewise.
18506 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18507 * linux-s390-low.c: Include <elf.h>.
18508 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18509 (init_registers_s390): Remove prototype.
18510 (init_registers_s390x): Likewise.
18511 (init_registers_s390_linux32): Add prototype.
18512 (init_registers_s390_linux64): Likewise.
18513 (init_registers_s390x_linux64): Likewise.
18514 (s390_num_regs_3264): New define.
18515 (s390_regmap_3264): New global variable.
18516 (s390_cannot_fetch_register): Remove obsolete check.
18517 (s390_cannot_store_register): Likewise.
18518 (s390_collect_ptrace_register): Handle upper/lower register halves.
18519 (s390_supply_ptrace_register): Likewise.
18520 (s390_fill_gregset): Update to register number changes.
18521 (s390_get_hwcap): New routine.
18522 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18523 Install appropriate regmap and register set.
18524
6e7ffa39
JB
185252010-01-01 Joel Brobecker <brobecker@adacore.com>
18526
18527 * server.c (gdbserver_version): Update copyright year to 2010.
18528 * gdbreplay.c (gdbreplay_version): Likewise.
18529
957f3f49
DE
185302009-12-28 Doug Evans <dje@google.com>
18531
18532 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18533 elf/external.h. Include <elf.h> instead but only if necessary.
18534
ca5c370d
PA
185352009-12-28 Pedro Alves <pedro@codesourcery.com>
18536
18537 * linux-low.c (linux_remove_process): Remove `detaching'
18538 parameter. Don't release/detach from thread_db here.
18539 (linux_kill): Release/detach from thread_db here, ...
18540 (linux_detach): ... and here, before actually detaching.
18541 (linux_wait_1): ... and here, when a process exits.
18542 * thread-db.c (any_thread_of): New.
18543 (thread_db_free): Switch the current inferior to a thread of the
18544 passed in process.
18545
4ee62156
DE
185462009-12-21 Doug Evans <dje@google.com>
18547
d90e6a88
DE
18548 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18549
c5f62d5f
DE
18550 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18551 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18552 warning ifndef __NR_tkill. Move setting of errno there too.
18553 Delete unnecessary resetting of errno after syscall.
18554 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18555
10e86dd7
DE
18556 * configure.ac: Check for dladdr.
18557 * config.in: Regenerate.
18558 * configure: Regenerate.
18559 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18560 (try_thread_db_load): Update.
18561
4ee62156
DE
18562 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18563
00f515da
DE
185642009-12-18 Doug Evans <dje@google.com>
18565
e9464885
DE
18566 * event-loop.c: Include unistd.h if it exists.
18567
07d4f67e
DE
18568 * linux-low.c (my_waitpid): Move definition away from being in
18569 between linux_tracefork_child/linux_test_for_tracefork.
18570
00f515da
DE
18571 * gdb_proc_service.h (psaddr_t): Fix type.
18572 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18573 signature to match glibc.
18574
1de1badb
DE
185752009-12-16 Doug Evans <dje@google.com>
18576
18577 * linux-low.c (linux_read_memory): Fix argument to read.
18578
aeeb81d1
PA
185792009-11-26 Pedro Alves <pedro@codesourcery.com>
18580
18581 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18582 events, don't leave current_inferior pointing at null.
18583
10357975
PA
185842009-11-26 Pedro Alves <pedro@codesourcery.com>
18585
18586 * win32-low.c (LOG): Delete.
18587 (OUTMSG): Output to stderr.
18588 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18589 on compile time LOG macro.
18590 (win32_wait): Fix debug output.
18591
cf6e3471
PA
185922009-11-26 Pedro Alves <pedro@codesourcery.com>
18593
18594 * win32-low.c (win32_add_one_solib): If the dll name is
18595 "ntdll.dll", prepend the system directory to the dll path.
18596
0c85e18e
MK
185972009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18598
18599 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18600
9ac544ce 186012009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18602 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18603
18604 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18605 * configure.ac: Check for __mcoldfire__ and set
18606 gdb_cv_m68k_is_coldfire.
18607 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18608 reg-cf.o and reg-m68k.o.
18609 * configure: Regenerated.
18610
fd7dd3e6
PA
186112009-11-16 Pedro Alves <pedro@codesourcery.com>
18612
18613 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18614 Pass it to thread_db_free.
18615 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18616 proper `detaching' argument to linux_remove_process.
18617 * linux-low.h (thread_db_free): Add `detaching' parameter.
18618 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18619 to thread_db_free.
18620 (thread_db_free): Add `detaching' parameter. Only
18621 call td_ta_clear_event if detaching from process.
18622
75aa492e
MK
186232009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18624
18625 * thread-db.c (thread_db_free): Fix typo.
18626
21e1bee4
PP
186272009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18628
18629 PR gdb/10838
18630 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18631
8838b45e
NS
186322009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18633
18634 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18635 with an i686 compiler.
18636 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18637 needed.
18638 * configure: Rebuilt.
18639
8a35fb51
SL
186402009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18641
18642 PR gdb/10783
18643
18644 * server.c (handle_search_memory_1): Correct read_addr initialization
18645 in loop for searching subsequent chunks.
18646
96f15937
PP
186472009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18648
18649 * configure.ac: New --with-libthread-db option.
18650 * thread-db.c: Allow direct dependence on libthread_db.
18651 (thread_db_free): Adjust.
18652 * config.in: Regenerate.
18653 * configure: Likewise.
889bf7c5 18654
5f7d1694
PP
186552009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18656
18657 PR gdb/10757
18658 * thread-db.c (attach_thread): New function.
18659 (maybe_attach_thread): Return success/failure.
18660 (find_new_threads_callback): Adjust.
889bf7c5
PA
18661 (thread_db_find_new_threads): Loop until no new threads.
18662
88e3b899
PA
186632009-10-13 Pedro Alves <pedro@codesourcery.com>
18664
18665 * proc-service.c (ps_lgetregs): Formatting.
18666
cdbfd419
PP
186672009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18668
18669 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18670 * configure.ac: Adjust.
18671 * linux-low.h (struct process_info_private): Move members to struct
18672 thread_db.
18673 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18674 * linux-low.c (linux_remove_process): Adjust.
18675 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18676 * server.c (handle_query): Move code ...
18677 (handle_monitor_command): ... here. New function.
18678 * target.h (struct target_ops): New member.
18679 * thread-db.c (struct thread_db): New.
18680 (libthread_db_search_path): New variable.
18681 (thread_db_create_event, thread_db_enable_reporting)
18682 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18683 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18684 (try_thread_db_load_1, dladdr_to_soname): New functions.
18685 (try_thread_db_load, thread_db_load_search): New functions.
18686 (thread_db_init): Search for libthread_db.
18687 (thread_db_free): New function.
18688 (thread_db_handle_monitor_command): Likewise.
18689 * config.in: Regenerate.
18690 * configure: Regenerate.
889bf7c5 18691
4168d2d6
UW
186922009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18693
18694 * spu-low.c (spu_kill): Wait for inferior to terminate.
18695 Call clear_inferiors.
18696 (spu_detach): Call clear_inferiors.
18697
81ecdfbb
RW
186982009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18699
18700 * aclocal.m4: Regenerate.
18701 * config.in: Likewise.
18702 * configure: Likewise.
18703
0b9ff2c0
UW
187042009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18705
18706 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18707 (parse_spufs_run): New function.
18708 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18709 (ppc_breakpoint_at): Handle SPU breakpoints.
18710
efcbbd14
UW
187112009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18712
18713 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18714 (SPUFS_MAGIC): Define.
18715 (spu_enumerate_spu_ids): New function.
18716 (linux_qxfer_spu): New function.
18717 (linux_target_ops): Install linux_qxfer_spu.
18718
f4d9bade
UW
187192009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18720
18721 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18722 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18723 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18724 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18725 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18726 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18727 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18728 (init_registers_powerpc_cell32l): Add prototype.
18729 (init_registers_powerpc_cell64l): Likewise.
18730 (ppc_arch_setup): Detect Cell/B.E. architecture.
18731
96e946ca
RW
187322009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18733
18734 * Makefile.in (datarootdir): New variable.
18735
58d6951d
DJ
187362009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18737
18738 * linux-low.c (linux_write_memory): Update debugging output.
18739 * Makefile.in (clean): Add new descriptions.
18740 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18741 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18742 * configure.srv: Add new files for arm*-*-linux*.
18743 * linux-arm-low.c: Add new declarations.
18744 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18745 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18746 (HWCAP_VFPv3D16): New.
18747 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18748 instead of __IWMMXT__.
18749 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18750 (arm_arch_setup): New.
18751 (target_regsets): Remove #ifdef. Add VFP regset.
18752 (the_low_target): Use arm_arch_setup.
18753
12b42a12
DJ
187542009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18755
18756 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18757 the main thread again.
18758
ac8c974e
AR
187592009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18760
18761 Adding Neutrino gdbserver.
18762 * configure: Regenerated.
18763 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18764 * configure.srv (i[34567]86-*-nto*): New target.
18765 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18766 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18767 (nto_comctrl) [__QNX__]: New function.
18768 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18769
4424e0c3 187702009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18771
18772 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18773 srv_tgtobj.
18774
912cf4ba
PA
187752009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18776 Pedro Alves <pedro@codesourcery.com>
18777
18778 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18779 don't support CONTEXT_EXTENDED_REGISTERS.
18780 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18781 (the_low_target): Install them.
18782 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18783 failing with ERROR_PIPE_NOT_CONNECTED.
18784
aa5ca48f
DE
187852009-06-30 Doug Evans <dje@google.com>
18786 Pierre Muller <muller@ics.u-strasbg.fr>
18787
18788 Add h/w watchpoint support to x86-linux, win32-i386.
18789 * Makefile.in (SFILES): Add i386-low.c
18790 (i386_low_h): Define.
18791 (i386-low.o): Add dependencies.
18792 (linux-x86-low.o): Add i386-low.h dependency.
18793 (win32-i386-low.o): Ditto.
18794 * i386-low.c: New file.
18795 * i386-low.h: New file.
18796 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18797 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18798 * linux-low.c (linux_add_process): Initialize arch_private.
18799 (linux_remove_process): Free arch_private.
18800 (add_lwp): Initialize arch_private.
18801 (delete_lwp): Free arch_private.
18802 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18803 provided.
18804 * linux-low.h (process_info_private): New member arch_private.
18805 (lwp_info): New member arch_private.
18806 (linux_target_ops): New members new_process, new_thread,
18807 prepare_to_resume.
18808 (ptid_of): New macro.
18809 * linux-x86-low.c: Include stddef.h, i386-low.h.
18810 (arch_process_info): New struct.
18811 (arch_lwp_info): New struct.
18812 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18813 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18814 (i386_dr_low_get_status): New function.
18815 (x86_insert_point, x86_remove_point): New functions.
18816 (x86_stopped_by_watchpoint): New function.
18817 (x86_stopped_data_address): New function.
18818 (x86_linux_new_process, x86_linux_new_thread): New functions.
18819 (x86_linux_prepare_to_resume): New function.
18820 (the_low_target): Add entries for insert_point, remove_point,
18821 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18822 prepare_to_resume.
18823 * server.c (debug_hw_points): New global.
18824 (monitor_show_help): Document set debug-hw-points.
18825 (handle_query): Process "set debug-hw-points".
18826 * server.h (debug_hw_points): Declare.
18827 (paddress): Declare.
18828 * utils.c (NUMCELLS, CELLSIZE): New macros.
18829 (get_sell, xsnprintf, paddress): New functions.
18830 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18831 remove_point, stopped_by_watchpoint, stopped_data_address.
18832 * win32-i386-low.c: Include i386-low.h.
18833 (debug_reg_state): Replaces dr.
18834 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18835 (i386_dr_low_get_status): New function.
18836 (i386_insert_point, i386_remove_point): New functions.
18837 (i386_stopped_by_watchpoint): New function.
18838 (i386_stopped_data_address): New function.
18839 (i386_initial_stuff): Update.
18840 (get_thread_context,set_thread_context,i386_thread_added): Update.
18841 (the_low_target): Add entries for insert_point,
18842 remove_point, stopped_by_watchpoint, stopped_data_address.
18843 * win32-low.c (win32_insert_watchpoint): New function.
18844 (win32_remove_watchpoint): New function.
18845 (win32_stopped_by_watchpoint): New function.
18846 (win32_stopped_data_address): New function.
18847 (win32_target_ops): Add entries for insert_watchpoint,
18848 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18849 * win32-low.h (win32_target_ops): New members insert_point,
18850 remove_point, stopped_by_watchpoint, stopped_data_address.
18851
d993e290
PA
188522009-06-25 Pedro Alves <pedro@codesourcery.com>
18853
18854 * server.c (process_serial_event): Re-return unsupported, not
18855 error, if the type isn't recognized. Re-allow supporting only
18856 insert or remove packets. Also call require_running for
18857 breakpoints. Add missing break statement to default case. Tidy.
18858 * target.h (struct target_ops): Rename insert_watchpoint to
18859 insert_point, and remove_watchpoint to remove_point.
18860
18861 * linux-low.h (struct linux_target_ops): Likewise.
18862 * linux-low.c (linux_insert_watchpoint): Rename to ...
18863 (linux_insert_point): ... this. Adjust.
18864 (linux_remove_watchpoint): Rename to ...
18865 (linux_remove_point): ... this. Adjust.
18866 (linux_target_ops): Adjust.
18867 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18868 (cris_insert_point): ... this.
18869 (cris_remove_watchpoint): Rename to ...
18870 (cris_remove_point): ... this.
18871 (the_low_target): Adjust.
18872
0f54c268
PM
188732009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18874
18875 * server.c (handle_v_kill): Pass signal_pid to
18876 kill_inferior if multi_process is zero.
18877
c6314022
AR
188782009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18879
18880 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18881 * target.h (target_ops): Comment for *_watchpoint to make it clear
18882 the functions can get types '0' and '1'.
18883
4463ce24
AR
188842009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18885
18886 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18887 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18888 * regcache.c (get_regcache): Likewise.
18889 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18890 * win32-low.c (child_fetch_inferior_registers): Remove check for
18891 regno 0.
18892
cf8fd78b
PA
188932009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18894 Pedro Alves <pedro@codesourcery.com>
18895
18896 * target.h (struct target_ops) <supports_multi_process>: New
18897 callback.
18898 (target_supports_multi_process): New.
18899 * server.c (handle_query): Even if GDB reports support, only
18900 enable multi-process if the target also supports it. Report
18901 multi-process support only if the target backend supports it.
18902 * linux-low.c (linux_supports_multi_process): New function.
18903 (linux_target_ops): Install it as target_supports_multi_process
18904 callback.
18905
47c0c975
DE
189062009-05-24 Doug Evans <dje@google.com>
18907
e09875d4
DE
18908 Global renaming of find_thread_pid to find_thread_ptid.
18909 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18910 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18911 All callers updated.
18912
e27d73f6
DE
18913 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18914 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18915 directly.
18916
47c0c975
DE
18917 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18918 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18919 (linux_resume_one_lwp): Ditto.
18920
2acc282a
DE
189212009-05-23 Doug Evans <dje@google.com>
18922
18923 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18924 from struct inferior_list_entry * to struct lwp_info *.
18925 All callers updated.
18926
9f1036c1
DE
189272009-05-13 Doug Evans <dje@google.com>
18928
18929 * linux-x86-low.c: Don't include assert.h.
18930 (x86_siginfo_fixup): Use fatal, not assert.
18931 (x86_arch_setup): Fix comment.
18932
d0722149
DE
189332009-05-12 Doug Evans <dje@google.com>
18934
18935 Biarch support for i386/amd64 gdbserver.
18936 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18937 Add linux-x86-low.c.
18938 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18939 (linux-x86-low.o): Add.
18940 * linux-x86-64-low.c: Delete.
18941 * linux-i386-low.c: Delete.
18942 * linux-x86-low.c: New file.
18943 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18944 linux-x86-low.o.
18945 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18946 linux-x86-low.o.
18947 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18948 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18949 (linux_child_pid_to_exec_file): New function.
18950 (elf_64_header_p, elf_64_file_p): New functions.
18951 (siginfo_fixup): New function.
18952 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18953 give target a chance to convert layout.
18954 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18955 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18956
fdeb2a12
DE
189572009-05-07 Doug Evans <dje@google.com>
18958
18959 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18960 (regsets_store_inferior_registers): Ditto.
18961
a6dbe5df
PA
189622009-05-06 Pedro Alves <pedro@codesourcery.com>
18963
18964 PR server/10048
18965
18966 * linux-low.c (must_set_ptrace_flags): Delete.
18967 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18968 of the global.
18969 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18970 `lwp->must_set_ptrace_flags' instead.
ba42693b 18971 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18972 (linux_wait_1): ... not here.
18973
5091eb23
DE
189742009-04-30 Doug Evans <dje@google.com>
18975
9f767825
DE
18976 * inferiors.c (started_inferior_callback): New function.
18977 (attached_inferior_callback): New function.
18978 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18979 * server.c (print_started_pid, print_attached_pid): New functions.
18980 (detach_or_kill_for_exit): New function.
18981 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18982 * server.h (have_started_inferiors_p): Declare.
18983 (have_attached_inferiors_p): Declare.
18984
5091eb23
DE
18985 * inferiors.c (remove_process): Fix memory leak, free process.
18986 * linux-low.c (linux_remove_process): New function.
18987 (linux_kill): Call it instead of remove_process.
18988 (linux_detach, linux_wait_1): Ditto.
18989
155c8968
PA
189902009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18991
18992 * configure.srv: Add x86 Windows CE target.
18993
7fe519cb
UW
189942009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18995
18996 * inferiors.c (get_thread_process): Make global.
18997 * server.h (get_thread_process): Add prototype.
18998 * thread-db.c (find_one_thread): Use get_thread_process
18999 instead of current_process.
19000 (thread_db_get_tls_address): Do not crash if called when
19001 thread layer is not yet initialized.
19002
5472f405
UW
190032009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19004
19005 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19006 * spu-low.c (current_tid): Rename to ...
19007 (current_ptid): ... this.
19008 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19009 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19010 ptid_get_lwp (current_ptid) instead of current_tid.
19011 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19012 instead of current_tid. Use find_process_pid to verify pid
19013 argument is valid. Pass proper argument to remove_process.
19014 (spu_thread_alive): Compare current_ptid instead of current_tid.
19015 (spu_resume): Likewise.
19016
55ac2b99
PA
190172009-04-02 Pedro Alves <pedro@codesourcery.com>
19018
19019 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19020 variable.
19021
95954743
PA
190222009-04-01 Pedro Alves <pedro@codesourcery.com>
19023
19024 Implement the multiprocess extensions, and add linux multiprocess
19025 support.
19026
19027 * server.h (ULONGEST): Declare.
19028 (struct ptid, ptid_t): New.
19029 (minus_one_ptid, null_ptid): Declare.
19030 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19031 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19032 (struct inferior_list_entry): Change `id' type from unsigned from
19033 to ptid_t.
19034 (struct sym_cache, struct breakpoint, struct
19035 process_info_private): Forward declare.
19036 (struct process_info): Declare.
19037 (current_process): Declare.
19038 (all_processes): Declare.
19039 (initialize_inferiors): Declare.
19040 (add_thread): Adjust to use ptid_t.
19041 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19042 (add_process, remove_process, find_thread_pid): Declare.
19043 (find_inferior_id): Adjust to use ptid_t.
19044 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19045 (multi_process): Declare.
19046 (push_event): Adjust to use ptid_t.
19047 (read_ptid, write_ptid): Declare.
19048 (prepare_resume_reply): Adjust to use ptid_t.
19049 (clear_symbol_cache): Declare.
19050 * inferiors.c (all_processes): New.
19051 (null_ptid, minus_one_ptid): New.
19052 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19053 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19054 (add_thread): Change unsigned long to ptid. Remove gdb_id
19055 parameter. Adjust.
19056 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19057 (gdb_id_to_thread): Rename to ...
19058 (find_thread_pid): ... this. Change unsigned long to ptid.
19059 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19060 (loaded_dll, pull_pid_from_list): Adjust.
19061 (add_process, remove_process, find_process_pid)
19062 (get_thread_process, current_process, initialize_inferiors): New.
19063 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19064 (struct target_waitstatus) <related_pid>: Ditto.
19065 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19066 return type to int.
19067 (struct target_ops) <join>: Add `pid' argument.
19068 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19069 (struct target_ops) <wait>: Add `ptid' field. Change return type
19070 to ptid.
19071 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19072 (mywait): Add `ptid' argument. Change return type to ptid_t.
19073 (target_pid_to_str): Declare.
19074 * target.c (set_desired_inferior): Adjust to use ptids.
19075 (mywait): Add new `ptid' argument. Adjust.
19076 (target_pid_to_str): New.
19077 * mem-break.h (free_all_breakpoints): Declare.
19078 * mem-break.c (breakpoints): Delelete.
19079 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19080 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19081 to use per-process breakpoint list.
19082 (free_all_breakpoints): New.
19083 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19084 (symbol_cache, all_symbols_looked_up): Delete.
19085 (hexchars): New.
19086 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19087 read_ptid): New.
19088 (prepare_resume_reply): Change ptid argument's type from unsigned
19089 long to ptid_t. Adjust. Implement W;process and X;process.
19090 (free_sym_cache, clear_symbol_cache): New.
19091 (look_up_one_symbol): Adjust to per-process symbol cache. *
19092 * server.c (cont_thread, general_thread, step_thread): Change type
19093 to ptid_t.
19094 (attached): Delete.
19095 (multi_process): New.
19096 (last_ptid): Change type to ptid_t.
19097 (struct vstop_notif) <ptid>: Change type to ptid_t.
19098 (queue_stop_reply, push_event): Change `ptid' argument's type to
19099 ptid_t.
19100 (discard_queued_stop_replies): Add `pid' argument.
19101 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19102 changes. Don't reference the `attached' global.
19103 (attach_inferior): Adjust to mywait interface changes.
19104 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19105 features. Handle and report "multiprocess+". Handle
19106 "qAttached:PID".
19107 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19108 changes.
19109 (handle_v_kill): New.
19110 (handle_v_stopped): Adjust to use target_pid_to_str.
19111 (handle_v_requests): Allow multiple attaches and runs when
19112 multiprocess extensions are in effect. Handle "vKill".
19113 (myresume): Adjust to use ptids.
19114 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19115 (handle_status): Adjust to discard_queued_stop_replies interface
19116 change.
19117 (first_thread_of, kill_inferior_callback)
19118 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19119 (main): Call initialize_inferiors. Adjust to use ptids, killing
19120 and detaching from all inferiors. Handle multiprocess packet
19121 variants.
19122 * linux-low.h: Include gdb_proc_service.h.
19123 (struct process_info_private): New.
19124 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19125 <lwpid_of>: Use ptid_get_lwp.
19126 (get_lwp_thread): Adjust.
19127 (struct lwp_info): Add `dead' member.
19128 (find_lwp_pid): Declare.
19129 * linux-low.c (thread_db_active): Delete.
19130 (new_inferior): Adjust comment.
19131 (inferior_pid): Delete.
19132 (linux_add_process): New.
19133 (handle_extended_wait): Adjust.
19134 (add_lwp): Change unsigned long to ptid.
19135 (linux_create_inferior): Add process to processes table. Adjust
19136 to use ptids. Don't set new_inferior here.
19137 (linux_attach_lwp): Rename to ...
19138 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19139 it. Adjust to use ptids.
19140 (linux_attach_lwp): New.
19141 (linux_attach): Add process to processes table. Don't set
19142 new_inferior here.
19143 (struct counter): New.
19144 (second_thread_of_pid_p, last_thread_of_process_p): New.
19145 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19146 multiple processes.
19147 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19148 processes. Remove process from process table.
19149 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19150 to multiple processes.
19151 (any_thread_of): New.
19152 (linux_detach): Add `pid' argument, and handle it. Remove process
19153 from processes table.
19154 (linux_join): Add `pid' argument. Handle it.
19155 (linux_thread_alive): Change unsighed long argument to ptid_t.
19156 Consider dead lwps as not being alive.
19157 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19158 threads we're not interested in.
19159 (same_lwp, find_lwp_pid): New.
19160 (linux_wait_for_lwp): Change `pid' argument's type from int to
19161 ptid_t. Adjust.
19162 (linux_wait_for_event): Rename to ...
19163 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19164 from int to ptid_t. Adjust.
19165 (linux_wait_for_event): New.
19166 (linux_wait_1): Add `ptid' argument. Change return type to
19167 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19168 that exit from the process table.
19169 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19170 Adjust.
19171 (mark_lwp_dead): New.
19172 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19173 stopping all threads, mark its main lwp as dead.
19174 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19175 ptids.
19176 (fetch_register, usr_store_inferior_registers)
19177 (regsets_fetch_inferior_registers)
19178 (regsets_store_inferior_registers, linux_read_memory)
19179 (linux_write_memory): Inline `inferior_pid'.
19180 (linux_look_up_symbols): Adjust to use per-process
19181 `thread_db_active'.
19182 (linux_request_interrupt): Adjust to use ptids.
19183 (linux_read_auxv): Inline `inferior_pid'.
19184 (initialize_low): Don't reference thread_db_active.
19185 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19186 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19187 (ps_getpid): Return the pid of the current inferior.
19188 * thread-db.c (proc_handle, thread_agent): Delete.
19189 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19190 per-process data.
19191 (find_one_thread): Change argument type to ptid_t. Adjust to
19192 per-process data.
19193 (maybe_attach_thread): Adjust to per-process data and ptids.
19194 (thread_db_find_new_threads): Ditto.
19195 (thread_db_init): Ditto.
19196 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19197 processes table. Adjust to use ptids.
19198 (spu_kill, spu_detach): Adjust interface. Remove process from
19199 processes table.
19200 (spu_join, spu_thread_alive): Adjust interface.
19201 (spu_wait): Adjust interface. Remove process from processes
19202 table. Adjust to use ptids.
19203 * win32-low.c (current_inferior_tid): Delete.
19204 (current_inferior_ptid): New.
19205 (debug_event_ptid): New.
19206 (thread_rec): Take a ptid. Adjust.
19207 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19208 (child_delete_thread): Ditto.
19209 (do_initial_child_stuff): Add `attached' argument. Add process to
19210 processes table.
19211 (child_fetch_inferior_registers, child_store_inferior_registers):
19212 Adjust.
19213 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19214 (win32_attach): Pass 1 to do_initial_child_stuff.
19215 (win32_kill): Adjust interface. Remove process from processes
19216 table.
19217 (win32_detach): Ditto.
19218 (win32_join): Adjust interface.
19219 (win32_thread_alive): Take a ptid.
19220 (win32_resume): Adjust to use ptids.
19221 (get_child_debug_event): Ditto.
19222 (win32_wait): Adjust interface. Remove exiting process from
19223 processes table.
19224
bd99dc85
PA
192252009-04-01 Pedro Alves <pedro@codesourcery.com>
19226
19227 Non-stop mode support.
19228
19229 * server.h (non_stop): Declare.
19230 (gdb_client_data, handler_func): Declare.
19231 (delete_file_handler, add_file_handler, start_event_loop):
19232 Declare.
19233 (handle_serial_event, handle_target_event, push_event)
19234 (putpkt_notif): Declare.
19235 * target.h (enum resume_kind): New.
19236 (struct thread_resume): Replace `step' field by `kind' field.
19237 (TARGET_WNOHANG): Define.
19238 (struct target_ops) <wait>: Add `options' argument.
19239 <supports_non_stop, async, start_non_stop>: New fields.
19240 (target_supports_non_stop, target_async): New.
19241 (start_non_stop): Declare.
19242 (mywait): Add `options' argument.
19243 * target.c (mywait): Add `options' argument. Print child exit
19244 notifications here.
19245 (start_non_stop): New.
19246 * server.c (non_stop, own_buf, mem_buf): New globals.
19247 (struct vstop_notif): New.
19248 (notif_queue): New global.
19249 (queue_stop_reply, push_event, discard_queued_stop_replies)
19250 (send_next_stop_reply): New.
19251 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19252 interface changes.
19253 (attach_inferior): In non-stop mode, don't wait for the target
19254 here.
19255 (handle_general_set): Handle QNonStop.
19256 (handle_query): When handling qC, return the current general
19257 thread, instead of the first thread of the list.
19258 (handle_query): If the backend supports non-stop mode, include
19259 QNonStop+ in the qSupported query response.
19260 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19261 and non-stop mode.
19262 (handle_v_attach, handle_v_run): Handle non-stop mode.
19263 (handle_v_stopped): New.
19264 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19265 (myresume): Adjust to use resume_kind. Handle non-stop.
19266 (queue_stop_reply_callback): New.
19267 (handle_status): Handle non-stop mode.
19268 (main): Clear non_stop flag on reconnection. Use the event-loop.
19269 Refactor serial protocol handling from here ...
19270 (process_serial_event): ... to this new function. When GDB
19271 selects any thread, select one here. In non-stop mode, wait until
19272 GDB acks all pending events before exiting.
19273 (handle_serial_event, handle_target_event): New.
19274 * remote-utils.c (remote_open): Install remote_desc in the event
19275 loop.
19276 (remote_close): Remove remote_desc from the event loop.
19277 (putpkt_binary): Rename to...
19278 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19279 (putpkt_binary): New as wrapper around putpkt_binary_1.
19280 (putpkt_notif): New.
19281 (prepare_resume_reply): In non-stop mode, don't change the
19282 general_thread.
19283 * event-loop.c: New.
19284 * Makefile.in (OBJ): Add event-loop.o.
19285 (event-loop.o): New rule.
19286
19287 * linux-low.h (pid_of): Moved here.
19288 (lwpid_of): New.
19289 (get_lwp_thread): Use lwpid_of.
19290 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19291 * linux-low.c (pid_of): Delete.
19292 (inferior_pid): Use lwpid_of.
19293 (linux_event_pipe): New.
19294 (target_is_async_p): New.
19295 (delete_lwp): New.
19296 (handle_extended_wait): Use lwpid_of.
19297 (add_lwp): Don't set lwpid field.
19298 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19299 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19300 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19301 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19302 first. Adjust to linux_wait_for_event interface changes. Use
19303 lwpid_of.
19304 (linux_detach): Don't delete the main lwp here.
19305 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19306 (status_pending_p): Don't consider explicitly suspended lwps.
19307 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19308 pointer. Add OPTIONS argument. Change return type to int. Use
19309 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19310 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19311 pointer. Add status pointer argument. Return a pid instead of a
19312 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19313 changes. In non-stop mode, don't switch to a random thread.
19314 (linux_wait): Rename to...
19315 (linux_wait_1): ... this. Add target_options argument, and handle
19316 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19317 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19318 clean exit and signal exit code. Don't stop all threads in
19319 non-stop mode. In all-stop mode, only stop all threads when
19320 reporting a stop to GDB. Handle explicit thread stop requests.
19321 (async_file_flush, async_file_mark): New.
19322 (linux_wait): New.
19323 (send_sigstop): Use lwpid_of.
19324 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19325 interface changes. In non-stop mode, don't switch to a random
19326 thread.
19327 (linux_resume_one_lwp): Use lwpid_of.
19328 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19329 (linux_resume_one_thread): ... this. Handle resume_stop. In
19330 non-stop mode, don't look for pending flag in all threads.
19331 (resume_status_pending_p): Don't consider explicitly suspended
19332 threads.
19333 (my_waitpid): Reimplement. Emulate __WALL.
19334 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19335 Use lwpid_of.
19336 (sigchld_handler, linux_supports_non_stop, linux_async)
19337 (linux_start_non_stop): New.
19338 (linux_target_ops): Register linux_supports_non_stop, linux_async
19339 and linux_start_non_stop.
19340 (initialize_low): Install SIGCHLD handler.
19341 * thread-db.c (thread_db_create_event, find_one_thread)
19342 (thread_db_get_tls_address): Use lwpid_of.
19343 * win32-low.c (win32_detach): Adjust to use resume_kind.
19344 (win32_wait): Add `options' argument.
19345 * spu-low.c (spu_resume): Adjust to use resume_kind.
19346 (spu_wait): Add `options' argument.
19347
5b1c542e
PA
193482009-04-01 Pedro Alves <pedro@codesourcery.com>
19349
19350 Decouple target code from remote protocol.
19351
19352 * target.h (enum target_waitkind): New.
19353 (struct target_waitstatus): New.
19354 (struct target_ops) <wait>: Return an unsigned long. Take a
19355 target_waitstatus pointer instead of a char pointer.
19356 (mywait): Likewise.
19357 * target.c (mywait): Change prototype to return an unsigned long.
19358 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19359 * server.h (thread_from_wait, old_thread_from_wait): Delete
19360 declarations.
19361 (prepare_resume_reply): Change prototype to take a
19362 target_waitstatus.
19363 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19364 (last_status, last_ptid): New.
19365 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19366 pid instead of a signal.
19367 (attach_inferior): Remove "status" and "signal" parameters.
19368 Adjust.
19369 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19370 not as an address.
19371 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19372 (handle_v_requests, myresume): Remove "status" and "signal"
19373 parameters. Adjust.
19374 (handle_status): New.
19375 (main): Delete local `status'. Adjust.
19376 * remote-utils.c: Include target.h.
19377 (prepare_resume_reply): Change prototype to take a
19378 target_waitstatus. Adjust.
19379
19380 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19381 interface.
19382 * spu-low.c (spu_wait): Adjust.
19383 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19384 Delete.
19385 (win32_wait): Adjust.
19386
2bd7c093
PA
193872009-04-01 Pedro Alves <pedro@codesourcery.com>
19388
19389 * target.h (struct thread_resume): Delete leave_stopped member.
19390 (struct target_ops): Add a `n' argument to the `resume' callback.
19391 * server.c (start_inferior): Adjust.
19392 (handle_v_cont, myresume): Adjust.
19393 * linux-low.c (check_removed_breakpoint): Adjust to resume
19394 interface change, and to removed leave_stopped field.
19395 (resume_ptr): Delete.
19396 (struct thread_resume_array): New.
19397 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19398 resume interface change.
19399 (linux_continue_one_thread, linux_queue_one_thread)
19400 (resume_status_pending_p): Check if the resume field is NULL
19401 instead of checking the leave_stopped member.
19402 (linux_resume): Adjust to the target resume interface change.
19403 * spu-low.c (spu_resume): Adjust to the target resume interface
19404 change.
19405 * win32-low.c (win32_detach, win32_resume): Ditto.
19406
c35fafde
PA
194072009-04-01 Pedro Alves <pedro@codesourcery.com>
19408
19409 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19410 flag.
19411 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19412 pending.
19413 (linux_continue_one_thread): Only preserve the stepping flag if
19414 there's a pending breakpoint.
19415
0a59d50b
PA
194162009-03-31 Pedro Alves <pedro@codesourcery.com>
19417
19418 * server.c (main): After the inferior having exited, call
19419 remote_close before exiting gdbserver.
19420
f04c6d38
TJB
194212009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19422
19423 Fix size of FPSCR in Power 7 processors.
19424 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19425 (PPC_FEATURE_HAS_DFP): New #define.
19426 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19427 size of the FPSCR.
19428
78e5cee6
PA
194292009-03-23 Pedro Alves <pedro@codesourcery.com>
19430
19431 * server.c (handle_query) Whitespace and formatting.
19432
1b3f6016
PA
194332009-03-22 Pedro Alves <pedro@codesourcery.com>
19434
19435 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19436 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19437 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19438 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19439 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19440 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19441 Makefile.in, configure.ac: Fix whitespace throughout.
19442 * configure: Regenerate.
19443
a07b2135
PA
194442009-03-22 Pedro Alves <pedro@codesourcery.com>
19445
19446 * inferiors.c (find_inferior): Make it safe for the callback
19447 function to delete the currently iterated inferior.
19448
67cc2626
PA
194492009-03-22 Pedro Alves <pedro@codesourcery.com>
19450
19451 * Makefile.in (linuw_low_h): Move higher.
19452 (thread-db.o): Depend on $(linux_low_h).
19453
54a0b537
PA
194542009-03-17 Pedro Alves <pedro@codesourcery.com>
19455
19456 Rename "process" to "lwp" throughout.
19457
19458 * linux-low.c (all_processes): Rename to...
19459 (all_lwps): ... this.
19460 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19461 (add_process): Rename to ...
19462 (add_lwp): ... this. Adjust.
19463 (linux_create_inferior): Adjust.
19464 (linux_attach_lwp): Adjust.
19465 (linux_attach): Adjust.
19466 (linux_kill_one_process): Rename to ...
19467 (linux_kill_one_lwp): ... this. Adjust.
19468 (linux_kill): Adjust.
19469 (linux_detach_one_process): Rename to ...
19470 (linux_detach_one_lwp): ... this. Adjust.
19471 (linux_detach): Adjust.
19472 (check_removed_breakpoint): Adjust.
19473 (status_pending_p): Adjust.
19474 (linux_wait_for_process): Rename to ...
19475 (linux_wait_for_lwp): ... this. Adjust.
19476 (linux_wait_for_event): Adjust.
19477 (send_sigstop): Adjust.
19478 (wait_for_sigstop): Adjust.
19479 (stop_all_processes): Rename to ...
19480 (stop_all_lwps): ... this.
19481 (linux_resume_one_process): Rename to ...
19482 (linux_resume_one_lwp): ... this. Adjust.
19483 (linux_set_resume_request, linux_continue_one_thread)
19484 (linux_queue_one_thread, resume_status_pending_p)
19485 (usr_store_inferior_registers, regsets_store_inferior_registers)
19486 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19487 Adjust.
19488 * linux-low.h (get_process): Rename to ...
19489 (get_lwp): ... this. Adjust.
19490 (get_thread_process): Rename to ...
19491 (get_thread_lwp): ... this. Adjust.
19492 (get_process_thread): Rename to ...
19493 (get_lwp_thread): ... this. Adjust.
19494 (struct process_info): Rename to ...
19495 (struct lwp_info): ... this.
19496 (all_processes): Rename to ...
19497 (all_lwps): ... this.
19498 * proc-service.c (ps_lgetregs): Adjust.
19499 * thread-db.c (thread_db_create_event, find_one_thread)
19500 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19501
0b16c5cf
PA
195022009-03-14 Pedro Alves <pedro@codesourcery.com>
19503
19504 * server.c (handle_query): Handle "qAttached".
19505
32de4b9d
NS
195062009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19507
19508 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19509 GPLv3, update license URL.
19510
2aecd87f
DE
195112009-03-01 Doug Evans <dje@google.com>
19512
93efd302 19513 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19514 (server_h): Add gdb_signals.h.
19515 (signals.o): Update.
19516 * server.h (target_signal_from_host,target_signal_to_host_p)
19517 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19518
86b1f9c5
PM
195192009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19520
19521 * remote-utils.c (getpkt): Also generate remote-debug
19522 information if noack_mode is set.
19523
4aa995e1
PA
195242009-02-06 Pedro Alves <pedro@codesourcery.com>
19525
19526 * server.c (handle_query): Report qXfer:siginfo:read and
19527 qXfer:siginfo:write as supported and handle them.
19528 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19529 * linux-low.c (linux_xfer_siginfo): New.
19530 (linux_target_ops): Set it.
19531
62709adf
PA
195322009-01-26 Pedro Alves <pedro@codesourcery.com>
19533
19534 * server.c (gdbserver_usage): Mention --remote-debug.
19535 (main): Accept '--remote-debug' switch.
19536
aef93bd7
DE
195372009-01-18 Doug Evans <dje@google.com>
19538
19539 * regcache.c (new_register_cache): No need to check result of xcalloc.
19540 * server.c (handle_search_memory): Back out calls to xmalloc,
19541 result is checked and error is returned to user upon failure.
19542 (handle_query): Ditto. Add more checks for result of malloc.
19543 (handle_v_cont): Check result of malloc, report error back to
19544 user upon failure.
19545 (handle_v_run): Ditto. Call freeargv.
19546 * server.h (freeargv): Declare.
19547 * utils.c (freeargv): New fn.
19548
54363045
DE
195492009-01-15 Doug Evans <dje@google.com>
19550
f626972c
DE
19551 * gdbreplay.c (perror_with_name): Make arg const char *.
19552 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19553 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19554 * utils.c (perror_with_name): Make arg const char *.
54363045 19555
18aae699
PA
195562009-01-14 Pedro Alves <pedro@codesourcery.com>
19557
19558 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19559 when handling a EXIT_PROCESS_DEBUG_EVENT.
19560
ff703abe
JB
195612009-01-06 Joel Brobecker <brobecker@adacore.com>
19562
19563 * gdbreplay.c (gdbreplay_version): Update copyright year.
19564 * server.c (gdbserver_version): Likewise.
19565
f21cc1a2 195662009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19567
19568 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19569 (handle_extended_wait): Improve comment.
0e21c1ec 19570
bca929d3
DE
195712008-12-13 Doug Evans <dje@google.com>
19572
19573 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19574 * server.h (ATTR_MALLOC): New macro.
19575 (xmalloc,xcalloc,xstrdup): Declare.
19576 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19577 * inferiors.c: Ditto.
19578 * linux-low.c: Ditto.
19579 * mem-break.c: Ditto.
19580 * regcache.c: Ditto.
19581 * remote-utils.c: Ditto.
19582 * server.c: Ditto.
19583 * target.c: Ditto.
19584 * win32-low.c: Ditto.
19585
97438e3f
DE
195862008-12-12 Doug Evans <dje@google.com>
19587
896c7fbb
DE
19588 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19589 in debugging printf.
19590
97438e3f
DE
19591 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19592
e3b886f8
DE
195932008-12-09 Doug Evans <dje@google.com>
19594
19595 * linux-low.h (struct process_info): Delete member tid, unused.
19596 * thread-db.c (find_one_thread): Update.
19597 (maybe_attach_thread): Update.
19598
07e059b5
VP
195992008-12-02 Pedro Alves <pedro@codesourcery.com>
19600
889bf7c5
PA
19601 * target.h (struct target_ops): Add qxfer_osdata member.
19602 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19603 and dirent.h.
19604 (linux_qxfer_osdata): New functions.
19605 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19606 callback.
19607 * server.c (handle_query): Handle "qXfer:osdata:read:".
19608 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19609 (buffer_xml_printf): New functions.
19610 * server.h (struct buffer): New.
19611 (buffer_grow_str, buffer_grow_str0): New macros.
19612 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19613 (buffer_xml_printf): Declare.
07e059b5 19614
4cab47ab
DE
196152008-11-24 Doug Evans <dje@google.com>
19616
19617 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19618
f142445f
DJ
196192008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19620
19621 * server.c (handle_v_run): Always use the supplied argument list.
19622
d0107bb6 196232008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19624
d0107bb6
BW
19625 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19626 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19627
2c4ad781
TJB
196282008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19629
19630 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19631 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19632 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19633 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19634 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19635 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19636 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19637 XML target descriptions.
19638 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19639 when inferior is running on an ISA 2.05 or later processor. Add
19640 special case to return offset for full 64-bit slot of FPSCR when
19641 in 32-bits.
19642
dfb64f85
DJ
196432008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19644
19645 * Makefile.in (SFILES, clean): Added sparc64 files.
19646 (reg-sparc64.o, reg-sparc64.c): New.
19647 * configure.srv (sparc*-*-linux*): New configuration.
19648 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19649 syscall arguments for SPARC.
19650 (regsets_store_inferior_registers): Likewise.
19651 * linux-sparc-low.c: New file.
19652
66b6e1dd
DE
196532008-10-21 Doug Evans <dje@google.com>
19654
19655 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19656 (READLINE_DIR,READLINE_DEP): Delete.
19657 (INTERNAL_CFLAGS): Update.
19658 (LINTFLAGS): Update.
19659
9b710a42
PA
196602008-10-10 Pedro Alves <pedro@codesourcery.com>
19661
19662 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19663 whole argv from the last run, not just argv[0].
19664
5822d809
PA
196652008-09-08 Pedro Alves <pedro@codesourcery.com>
19666
19667 * regcache.c (new_register_cache): Return NULL if the register
19668 cache size isn't known yet.
19669 (free_register_cache): Avoid dereferencing a NULL regcache.
19670
74aac56f
DJ
196712008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19672
19673 * configure.srv: Merge MIPS and MIPS64.
19674
400b20f5
MR
196752008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19676
19677 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19678
677c5bb1
LM
196792008-08-18 Luis Machado <luisgpm@br.ibm.com>
19680
19681 * Makefile.in: Add required vsx dependencies.
19682
19683 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19684 Declare init_registers_powerpc_vsx32l.
19685 Declare init_registers_powerpc_vsx64l.
19686 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19687 (ppc_arch_setup): Check for VSX in hwcap.
19688 (ppc_fill_vsxregset): New function.
19689 (ppc_store_vsxregset): New function.
19690 Add new VSX entry in regset_info target_regsets.
19691
19692 * configure.srv: Add new VSX dependencies.
19693
a6f3e723
SL
196942008-08-12 Pedro Alves <pedro@codesourcery.com>
19695
19696 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19697 (remote_open): Set or clear transport_is_reliable.
19698 (putpkt_binary): Don't expect acks in noack mode.
19699 (getpkt): Don't send ack/nac in noack mode.
19700 * server.c (handle_general_set): Handle QStartNoAckMode.
19701 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19702 qSupported.
19703 (main): Reset noack_mode on every connection.
19704 * server.h (noack_mode): Declare.
19705
a417dc56
RW
197062008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19707
19708 * Makefile.in (GDBREPLAY_OBS): New variable.
19709 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19710
3221518c
UW
197112008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19712 Daniel Jacobowitz <dan@codesourcery.com>
19713
19714 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19715 (usr_store_inferior_registers): Likewise.
19716 (regsets_store_inferior_registers): Likewise.
19717
ec56be1b
PA
197182008-07-31 Rolf Jansen <rj@surtec.com>
19719 Pedro Alves <pedro@codesourcery.com>
19720
19721 * configure.ac: Check for memmem declaration.
19722 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19723 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19724 (disable_packet_qfThreadInfo): Unconditionally compile.
19725 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19726 * configure, config.in: Regenerate.
19727
2fe5e3ff
DE
197282008-07-28 Doug Kwan <dougkwan@google.com>
19729
19730 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19731 (linux_write_memory): Remove declaration of errno.
19732
836acd6d
UW
197332008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19734
19735 * linux-low.c (handle_extended_wait): Do not use "status"
19736 variable uninitialized.
19737
aeba519e
PA
197382008-07-07 Pedro Alves <pedro@codesourcery.com>
19739
19740 * server.c (handle_v_attach): Inhibit reporting dll changes.
19741
db42f210
PA
197422008-06-27 Pedro Alves <pedro@codesourcery.com>
19743
19744 * remote-utils.c (prepare_resume_reply): If requested, don't
19745 output "thread:TID" in the T stop reply.
19746
19747 * server.c (disable_packet_vCont, disable_packet_Tthread)
19748 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19749 (handle_query): If requested, disable support for qC, qfThreadInfo
19750 and qsThreadInfo.
19751 (handle_v_requests): If requested, disable support for vCont.
19752 (gdbserver_show_disableable): New.
19753 (main): Handle --disable-packet and --disable-packet=LIST.
19754
19755 * server.h (disable_packet_vCont, disable_packet_Tthread)
19756 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19757
8e4c5421
CD
197582008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19759
19760 * server.c (gdbserver_usage): Mention --version.
19761
6e23a804
DJ
197622008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19763
19764 * Makefile.in (gdbreplay.o): New rule.
19765
90aa6a40
JM
197662008-06-06 Joseph Myers <joseph@codesourcery.com>
19767
19768 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19769 message, not gdbserver.
19770
c16158bc 197712008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19772 Nathan Sidwell <nathan@codesourcery.com>
19773 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19774
19775 * acinclude.m4: Include ../../config/acx.m4.
19776 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19777 * configure, config.in: Regenerate.
19778 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19779 * server.c (gdbserver_version): Print PKGVERSION.
19780 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19781 (main): Adjust gdbserver_usage calls.
19782 * gdbreplay.c (version, host_name): Add declarations.
19783 (gdbreplay_version, gdbreplay_usage): New.
19784 (main): Accept --version and --help options.
19785
aeb75bf5
DJ
197862008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19787
19788 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19789 (arm_breakpoint_at): Handle Thumb.
19790 (the_low_target): Add comment.
19791
76b233dd
UW
197922008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19793
19794 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19795
08388c79
DE
197962008-05-09 Doug Evans <dje@google.com>
19797
a3c83fae
DE
19798 * server.h (decode_search_memory_packet): Declare.
19799 * remote-utils.c (decode_search_memory_packet): New fn.
19800 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19801 (handle_search_memory): New fn.
19802 (handle_query): Process qSearch:memory packets.
19803
bb9c3d36
UW
198042008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19805
19806 * regcache.c (registers_length): Remove.
19807 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19808 full register packet.
19809 * regcache.h (registers_length): Remove prototype.
19810 * server.h (PBUFSIZ): Define to 16384.
19811
7284e1be
UW
198122008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19813
19814 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19815 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19816 powerpc-64l.o, and powerpc-altivec64l.o.
19817 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19818 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19819 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19820 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19821 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19822 to srv_xmlfiles.
19823
19824 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19825 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19826 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19827 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19828 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19829 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19830 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19831 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19832 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19833 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19834 (clean): Update.
19835
19836 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19837 (init_registers_powerpc_32l): ... this new prototype.
19838 (init_registers_powerpc_32): Remove, replace by ...
19839 (init_registers_powerpc_altivec32l): ... this new prototype.
19840 (init_registers_powerpc_e500): Remove, replace by ...
19841 (init_registers_powerpc_e500l): ... this new prototype.
19842 (init_registers_ppc64): Remove, replace by ...
19843 (init_registers_powerpc_64l): ... this new prototype.
19844 (init_registers_powerpc_64): Remove, replace by ...
19845 (init_registers_powerpc_altivec64l): ... this new prototype.
19846 (ppc_num_regs): Set to 73.
19847 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19848 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19849 (ppc_cannot_store_register): Handle orig_r3 and trap.
19850 (ppc_arch_setup): Update init_registers_... calls.
19851 (ppc_fill_gregset): Handle orig_r3 and trap.
19852
19853 * inferiors.c (clear_inferiors): Reset current_inferior.
19854
fdc59709
PB
198552008-04-23 Paolo Bonzini <bonzini@gnu.org>
19856
889bf7c5
PA
19857 * acinclude.m4: Add override.m4.
19858 * configure: Regenerate.
fdc59709 19859
c9b2f845
UW
198602008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19861
19862 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19863 initial call to init_register_ppc64.
19864
550512b8
UW
198652008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19866
43aaf8b6
PA
19867 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19868 single powerpc*-*-linux* case.
550512b8
UW
19869 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19870
b6430ec3
UW
198712008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19872
19873 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19874 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19875 from reg_xmlfiles.
19876 * linux-ppc-low.c: Include <elf.h>.
19877 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19878 (ppc_hwcap): New global variable.
19879 (ppc_regmap): Remove __SPE__ #ifdef sections.
19880 (ppc_regmap_e500): New global variable.
19881 (ppc_cannot_store_register): Update __SPE__ special case.
19882 (ppc_get_hwcap): New function.
19883 (ppc_arch_setup): Use it to determine whether inferior supports
19884 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19885 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19886 Do not access registers if target does not support AltiVec.
19887 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19888 Do not access registers if target does not support SPE.
19889 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19890
52fa2412
UW
198912008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19892
19893 * linux-low.c (disabled_regsets, num_regsets): New.
19894 (use_regsets_p): Delete.
19895 (linux_wait_for_process): Clear disabled_regsets.
19896 (regsets_fetch_inferior_registers): Check and set it.
19897 (regsets_store_inferior_registers): Likewise.
19898 (linux_fetch_registers, linux_store_registers): Do not use
19899 use_regsets_p.
19900 (initialize_low): Allocate disabled_regsets.
19901
e28b3332
DJ
199022008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19903
19904 * Makefile.in (LIBOBJS): New.
19905 (OBS): Use LIBOBJS.
19906 (memmem.o): New rule.
19907 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19908 * configure: Regenerated.
19909
4536995d
UW
199102008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19911
19912 * server.c (handle_query): Never return "unsupported" for
19913 qXfer:features:read queries.
19914
221c031f
UW
199152008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19916
19917 * server.c (get_features_xml): Fix inverted condition.
19918 (handle_query): Always support qXfer:feature:read.
19919
ccd213ac
DJ
199202008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19921
19922 * server.c (wrapper_argv): New.
19923 (start_inferior): Handle wrapper_argv. If set, expect an extra
19924 trap.
19925 (gdbserver_usage): Document --wrapper.
19926 (main): Parse --wrapper.
19927
6fe305f7
UW
199282008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19929
19930 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19931 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19932 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19933 (ppc_set_pc): Likewise.
19934 (ppc_arch_setup): New function.
19935 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19936 of collect_register.
889bf7c5 19937 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19938
5b0a002e
UW
199392008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19940
19941 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19942 instead of linux-ppc64-low.o.
19943 * linux-ppc64-low.c: Remove file.
19944 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19945 (linux-ppc64-low.o): Remove rule.
19946
19947 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19948 (init_registers_powerpc_64): Likewise.
19949 (ppc_regmap): Conditionally define depending on __powerpc64__.
19950 (ppc_cannot_store_register): Do not special-case "fpscr" when
19951 compiled on __powerpc64__.
19952 (ppc_collect_ptrace_register): New function.
19953 (ppc_supply_ptrace_register): New function.
19954 (ppc_breakpoint): Change type to "unsigned int".
19955 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19956 (the_low_target): Conditionally provide initializers for the
889bf7c5 19957 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19958 collect_ptrace_register and supply_ptrace_register members.
19959
9b4b61c8
UW
199602008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19961
19962 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19963 * server.c (gdbserver_xmltarget): Define.
19964 (get_features_xml): Use it to replace "target.xml" and arch_string.
19965
19966 * configure.srv: Remove srv_xmltarget. Add XML files that were
19967 mentioned there to srv_xmlfiles instead. Remove conditional tests
19968 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19969 srv_xmlfiles and srv_regobj to include all possible choices.
19970 * configure.ac (srv_xmltarget): Remove.
19971 (srv_xmlfiles): Do not add "target.xml".
19972 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19973 checks for supplementary target information.
19974 * configure: Regenerate.
19975 * Makefile.in (XML_TARGET): Remove.
19976 (target.xml): Remove rule.
19977 (clean): Do not clean up target.xml.
19978 (.PRECIOUS): Do not mention target.xml.
19979
19980 * target.h (struct target_ops): Remove arch_string member.
19981 * linux-low.c (linux_arch_string): Remove.
19982 (linux_target_ops): Remove arch_string initializer.
19983 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19984 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19985 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19986 * spu-low.c (spu_arch_string): Remove.
19987 (spu_target_ops): Remove arch_string initializer.
19988 * win32-low.c (win32_arch_string): Remove.
19989 (win32_target_ops): Remove arch_string initializer.
19990 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19991 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19992 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19993
ee1a7ae4
UW
199942008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19995
19996 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19997 by collect_ptrace_register and supply_ptrace_register hooks.
19998 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19999 instead of checking for the_low_target.left_pad_xfer.
20000 (usr_store_inferior_registers): Use collect_ptrace_register callback
20001 instead of checking for the_low_target.left_pad_xfer.
20002
20003 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20004 (s390_supply_ptrace_register): Likewise.
20005 (s390_fill_gregset): Call s390_collect_ptrace_register.
20006 (the_low_target): Update.
20007
20008 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20009 (ppc_supply_ptrace_register): Likewise.
20010 (the_low_target): Update.
20011
20012 * linux-i386-low.c (the_low_target): Update.
20013 * linux-x86-64-low.c (the_low_target): Update.
20014
d61ddec4
UW
200152008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20016
20017 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20018 reg-s390.o and reg-s390x.o.
20019
20020 * linux-low.c (new_inferior): New global variable.
20021 (linux_create_inferior, linux_attach): Set it.
20022 (linux_wait_for_process): Call the_low_target.arch_setup after the
20023 target has stopped for the first time.
20024 (initialize_low): Do not call the_low_target.arch_setup.
20025
20026 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20027 (s390_set_pc): Likewise.
20028 (s390_arch_setup): New function.
20029 (the_low_target): Use s390_arch_setup as arch_setup routine.
20030
20031 * regcache.c (realloc_register_cache): New function.
20032 (set_register_cache): Call it for each existing regcache.
20033
d05b4ac3
UW
200342008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20035
20036 * server.h (init_registers): Remove prototype.
20037
20038 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20039 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20040 instead of init_registers ().
20041 * linux-arm-low.c (init_registers_arm): Add prototype.
20042 (init_registers_arm_with_iwmmxt): Likewise.
20043 (the_low_target): Add initializer for arch_setup field.
20044 * linux-cris-low.c (init_registers_cris): Add prototype.
20045 (the_low_target): Add initializer for arch_setup field.
20046 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20047 (the_low_target): Add initializer for arch_setup field.
20048 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20049 (the_low_target): Add initializer for arch_setup field.
20050 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20051 (the_low_target): Add initializer for arch_setup field.
20052 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20053 (the_low_target): Add initializer for arch_setup field.
20054 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20055 (the_low_target): Add initializer for arch_setup field.
20056 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20057 (init_registers_mips64_linux): Likewise.
20058 (the_low_target): Add initializer for arch_setup field.
20059 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20060 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20061 (the_low_target): Add initializer for arch_setup field.
20062 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20063 (init_registers_powerpc_64): Likewise.
20064 (the_low_target): Add initializer for arch_setup field.
20065 * linux-s390-low.c (init_registers_s390): Add prototype.
20066 (init_registers_s390x): Likewise.
20067 (the_low_target): Add initializer for arch_setup field.
20068 * linux-sh-low.c (init_registers_sh): Add prototype.
20069 (the_low_target): Add initializer for arch_setup field.
20070 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20071 (the_low_target): Add initializer for arch_setup field.
20072 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20073 (the_low_target): Add initializer for arch_setup field.
20074
20075 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20076 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20077 instead of init_registers ().
20078 * win32-arm-low.c (init_registers_arm): Add prototype.
20079 (the_low_target): Add initializer for arch_setup field.
20080 * win32-i386-low.c (init_registers_i386): Add prototype.
20081 (the_low_target): Add initializer for arch_setup field.
20082
20083 * spu-low.c (init_registers_spu): Add prototype.
20084 (initialize_low): Call initialie_registers_spu () instead of
20085 initialize_registers ().
20086
fd96d250
PA
200872008-02-19 Pedro Alves <pedro@codesourcery.com>
20088
20089 * server.c (handle_v_requests): When handling the vRun and vAttach
20090 packets, if already debugging a process, don't kill it. Return an
20091 error instead.
20092
d41b6bb4
DJ
200932008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20094
20095 * server.c (handle_query): Correct length check.
20096
5ac588cf
PA
200972008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20098
20099 * win32-low.c (do_initial_child_stuff): Add process handle
20100 parameter. Set current_process_handle and current_process_id from the
20101 parameters. Clear globals.
20102 (win32_create_inferior): Don't set current_process_handle and
20103 current_process_id here. Instead pass them on the call to
20104 do_initial_child_stuff.
20105 (win32_attach): Likewise.
20106 (win32_clear_inferiors): New.
20107 (win32_kill): Don't close the current process handle or the
20108 current thread handle here. Instead call win32_clear_inferiors.
20109 (win32_detach): Don't open a new handle to the process. Call
20110 win32_clear_inferiors.
20111 (win32_join): Don't rely on current_process_handle; open a new
20112 handle using the process id.
20113 (win32_wait): Call win32_clear_inferiors when the inferior process
20114 has exited.
20115
ecd7ecbc
DJ
201162008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20117
20118 * server.c (monitor_show_help): Add "exit".
20119
1525d545
MG
201202008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20121
ecd7ecbc 20122 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20123 (clean): Add reg-xtensa.c.
20124 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20125 * configure.srv (xtensa*-*-linux*) New target.
20126 * linux-xtensa-low.c: New.
20127 * xtensa-xtregs.c: New.
1525d545 20128
59a016f0
PA
201292008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20130
20131 * hostio.c: Don't include errno.h.
20132 (errno_to_fileio_errno): Move to hostio-errno.
20133 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20134 error number outputting to the target->hostio_last_error callback.
20135 (hostio_packet_error): Use FILEIO_EINVAL directly.
20136 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20137 calls to hostio_error.
20138 * hostio-errno.c: New.
20139 * server.h (hostio_last_error_from_errno): Declare.
20140 * target.h (target_ops): Add hostio_last_error member.
20141 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20142 as hostio_last_error handler.
889bf7c5 20143 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20144 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20145 (wince_hostio_last_error): New functions.
20146 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20147 as hostio_last_error handler.
20148 (win32_target_ops) [!_WIN32_WCE]: Register
20149 hostio_last_error_from_errno as hostio_last_error handler.
20150 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20151 (hostio-errno.o): New rule.
20152 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20153 * configure.srv (srv_hostio_err_objs): New variable. Default to
20154 hostio-errno.o.
20155 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20156 * configure: Regenerate.
20157
2d717e4f
DJ
201582008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20159
20160 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20161 (linux_kill, linux_detach): Clean up the process list.
20162 * remote-utils.c (remote_open): Improve port number parsing.
20163 (putpkt_binary, input_interrupt): Only send interrupts if the target
20164 is running.
20165 * server.c (extended_protocol): Make static.
20166 (attached): Define earlier.
20167 (exit_requested, response_needed, program_argv): New variables.
20168 (target_running): New.
20169 (start_inferior): Clear attached here.
20170 (attach_inferior): Set attached here.
20171 (require_running): Define.
20172 (handle_query): Use require_running and target_running. Implement
20173 "monitor exit".
20174 (handle_v_attach, handle_v_run): New.
20175 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20176 (gdbserver_usage): Update.
20177 (main): Redo argument parsing. Handle --debug and --multi. Handle
20178 --attach along with other options or after the port. Save
20179 program_argv. Support no initial program. Resynchronize
20180 communication with GDB after an error. Handle "monitor exit".
20181 Use require_running and target_running. Always allow the extended
20182 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20183 restart in extended mode.
20184 * README: Refer to the GDB manual. Update --attach usage.
20185
7407e2de
AS
201862007-12-20 Andreas Schwab <schwab@suse.de>
20187
20188 * linux-low.c (STACK_SIZE): Define.
20189 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20190 (linux_test_for_tracefork): Likewise.
20191
b65d95c5
DJ
201922007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20193
20194 * linux-low.c (linux_wait_for_event): Update messages. Do not
20195 reinsert auto-delete breakpoints.
20196 * mem-break.c (struct breakpoint): Change return type of handler to
20197 int.
20198 (set_breakpoint_at): Update handler type.
20199 (reinsert_breakpoint_handler): Return 1 instead of calling
20200 delete_breakpoint.
20201 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20202 setting a new one.
20203 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20204 * mem-break.h (set_breakpoint_at): Update handler type.
20205 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20206 * win32-low.c (auto_delete_breakpoint): New.
20207 (get_child_debug_event): Use it.
20208
4e799345
DJ
202092007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20210
20211 * configure.ac: Check for pread and pwrite.
20212 * hostio.c (handle_pread): Fall back to lseek and read.
20213 (handle_pwrite): Fall back to lseek and write.
20214 * config.in, configure: Regenerated.
20215
27524b67
DJ
202162007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20217
20218 * server.c (myresume): Add own_buf argument.
20219 (main): Update calls.
20220
a20d5e98
DJ
202212007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20222
20223 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20224 * remote-utils.c (remote_open): Do not call disable_async_io.
20225 (block_async_io): Delete.
20226 (unblock_async_io): Make static.
20227 (initialize_async_io): New.
20228 * server.c (handle_v_cont): Handle async I/O here.
20229 (myresume): Likewise. Move other common resume tasks here...
20230 (main): ... from here. Call initialize_async_io. Disable async
20231 I/O before the main loop.
20232 * server.h (initialize_async_io): Declare.
20233 (block_async_io, unblock_async_io): Delete prototypes.
20234 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20235
b79d787e
DJ
202362007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20237
20238 * remote-utils.c (readchar): Allow binary data in received messages.
20239
d97903b2
PA
202402007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20241
20242 * win32-low.c (attaching): New global.
20243 (win32_create_inferior): Clear the `attaching' global.
20244 (win32_attach): Set the `attaching' global.
20245 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20246 attaching. Only set a breakpoint at the entry point if not
20247 attaching.
20248
311de423
PA
202492007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20250
20251 * server.c (main): Don't report dll events on the initial
20252 connection on attaches.
20253
6c2d16d2
PA
202542007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20255
20256 * server.c (main): Relax numerical bases supported for the pid of
20257 the --attach command line argument.
20258
5ca906e6
PA
202592007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20260
20261 * win32-low.c (win32_attach): Call OpenProcess before
20262 DebugActiveProcess, not after. Add last error output to error
20263 call.
20264
9c6c8194
PA
202652007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20266
20267 * win32-low.c (win32_get_thread_context)
20268 (win32_set_thread_context): New functions.
20269 (thread_rec): Use win32_get_thread_context.
20270 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20271 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20272 field.
20273
4d5d1aaa
PA
202742007-12-03 Leo Zayas
20275 Pedro Alves <pedro_alves@portugalmail.pt>
20276
20277 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20278 global variables.
20279 (child_add_thread): Minor cleanup.
20280 (child_continue): Resume artificially suspended threads before
20281 calling ContinueDebugEvent.
20282 (suspend_one_thread): New.
20283 (fake_breakpoint_event): New.
20284 (get_child_debug_event): Change return type to int. Check here if
20285 gdb sent an interrupt request. If a soft interrupt was requested,
20286 fake a breakpoint event. Return 0 if there is no event to handle,
20287 and 1 otherwise.
20288 (win32_wait): Don't check here if gdb sent an interrupt request.
20289 Ensure there is a valid event to handle.
20290 (win32_request_interrupt): Add soft interruption method as last
20291 resort.
20292
c436e841
PA
202932007-12-03 Leo Zayas
20294 Pedro Alves <pedro_alves@portugalmail.pt>
20295
20296 * win32-low.h (win32_thread_info): Add descriptions to the
20297 structure members. Replace `suspend_count' counter by a
20298 `suspended' flag.
20299 * win32-low.c (thread_rec): Update condition of when to get the
20300 context from the inferior. Rely on ContextFlags being set if it
20301 has already been retrieved. Only suspend the inferior thread if
20302 we haven't already. Warn if that fails.
20303 (continue_one_thread): s/suspend_count/suspended/. Only call
20304 ResumeThread once. Warn if that fails.
20305
e7b5fa67
PA
203062007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20307
20308 * win32-low.c (win32_wait): Don't read from the inferior when it
20309 has already exited.
20310
a385171d
PA
203112007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20312
20313 * Makefile.in (win32_low_h): New variable.
20314 (win32-low.o): Add dependency on $(win32_low_h).
20315 (win32-arm-low.o, win32-i386-low.o): New rules.
20316
f80c84b3
DJ
203172007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20318
20319 * hostio.c: Correct copyright year.
20320
a6b151f1
DJ
203212007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20322
20323 * Makefile.in (OBS): Add hostio.o.
20324 (hostio.o): New rule.
20325 * server.h (handle_vFile): Declare.
20326 * hostio.c: New file.
20327 * server.c (handle_v_requests): Take packet_len and new_packet_len
20328 for binary packets. Call handle_vFile.
20329 (main): Update call to handle_v_requests.
20330
f9387fc3
DJ
203312007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20332
20333 * linux-low.c: Include <sched.h>.
20334
51c2684e
DJ
203352007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20336
20337 * linux-low.c (linux_tracefork_grandchild): New.
20338 (linux_tracefork_child): Use clone.
20339 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20340
75f83163
JB
203412007-10-31 Joel Brobecker <brobecker@adacore.com>
20342
20343 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20344
da5898ce
DJ
203452007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20346
20347 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20348
24a09b5f
DJ
203492007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20350
20351 * inferiors.c (change_inferior_id): Delete.
20352 (add_pid_to_list, pull_pid_from_list): New.
20353 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20354 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20355 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20356 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20357 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20358 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20359 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20360 (using_threads): Always set to 1.
20361 (handle_extended_wait): New.
20362 (add_process): Do not set TID.
20363 (linux_create_inferior): Set must_set_ptrace_flags.
20364 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20365 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20366 (linux_thread_alive): Rename TID argument to LWPID.
20367 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20368 (linux_wait_for_event): Do not use TID or check using_threads. Update
20369 call to dead_thread_notify. Call handle_extended_wait.
20370 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20371 (send_sigstop): Delete sigstop_sent.
20372 (wait_for_sigstop): Avoid TID.
20373 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20374 (linux_test_for_tracefork): New.
20375 (linux_lookup_signals): Use thread_db_active and
20376 linux_supports_tracefork_flag.
20377 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20378 * linux-low.h (get_process_thread): Avoid TID.
20379 (struct process_ifo): Move thread_known and tid to the end. Remove
20380 sigstop_sent.
20381 (linux_attach_lwp, thread_db_init): Update prototypes.
20382 * server.h (change_inferior_id): Delete prototype.
20383 (add_pid_to_list, pull_pid_from_list): New prototypes.
20384 * thread-db.c (thread_db_use_events): New.
20385 (find_first_thread): Rename to...
20386 (find_one_thread): ...this. Update callers and messages. Do not
20387 call fatal. Check thread_db_use_events. Do not call
20388 change_inferior_id or new_thread_notify.
20389 (maybe_attach_thread): Update. Do not call new_thread_notify.
20390 (thread_db_init): Set thread_db_use_events. Check use_events.
20391 * utils.c (fatal, warning): Correct message prefix.
20392
30ed0a8f
DJ
203932007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20394
20395 * Makefile.in (clean): Remove new files.
20396 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20397 (powerpc-64.o, powerpc-64.c): New rules.
20398 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20399 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20400 with SPE.
20401 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20402 SPE targets.
20403 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20404 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20405 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20406 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20407 (target_regsets): Add AltiVec and SPE register sets.
20408 * configure.ac: Check for AltiVec and SPE.
20409 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20410 (ppc_fill_vrregset, ppc_store_vrregset): New.
20411 (target_regsets): Add AltiVec register set.
20412 * configure: Regenerated.
20413
fd462a61
DJ
204142007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20415
20416 * linux-low.c (O_LARGEFILE): Define.
20417 (linux_read_memory): Use /proc/PID/mem.
20418 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20419 * configure, config.in: Regenerated.
20420
69f223ed
DJ
204212007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20422
20423 * linux-low.c (linux_wait_for_event): Do not pass signals while
20424 single-stepping.
20425
aec18585
PA
204262007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20427
20428 * win32-low.c (create_process): New.
20429 (win32_create_inferior): Use create_process instead of
20430 CreateProcess. If create_process failed retry appending an ".exe"
20431 suffix. Store the GetLastError result immediatelly after
20432 create_process calls and use it on the call to error.
20433
34d86ddd
PA
204342007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20435
20436 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20437
5a0e3bd0
JB
204382007-08-23 Joel Brobecker <brobecker@adacore.com>
20439
20440 * configure.ac: Switch license to GPLv3.
20441
f88c79e6
MS
204422007-08-01 Michael Snyder <msnyder@access-company.com>
20443
20444 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20445
6b3d9b83
PA
204462007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20447
20448 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20449 typedef.
20450 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20451 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20452 CloseToolhelp32Snapshot.
20453 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20454 CloseToolhelp32Snapshot.
20455
c588c53c
MS
204562007-07-27 Michael Snyder <michael.snyder@access-company.com>
20457
20458 * server.c (main): Check for inferior exit before main loop.
20459
aa0403d9
PA
204602007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20461
20462 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20463 instead of on tmp_desc.
20464
255e7678
DJ
204652007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20466 Daniel Jacobowitz <dan@codesourcery.com>
20467
20468 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20469 (add_thread): Minor cleanups.
20470 (clear_inferiors): Move lower in the file. Clear the DLL
20471 list.
20472 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20473 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20474 (xml_escape_text): New.
20475 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20476 for qSupported.
20477 (handle_v_cont): Report errors.
20478 (gdbserver_version): Update.
20479 (main): Correct size of own_buf. Do not report initial DLL events.
20480 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20481 (unloaded_dll, xml_escape_text): New.
20482 * win32-low.c (enum target_waitkind): Update comments.
20483 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20484 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20485 (win32_EnumProcessModules, win32_GetModuleInformation)
20486 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20487 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20488 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20489 (win32_Module32First, win32_Module32Next, load_toolhelp)
20490 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20491 (get_child_debug_event): Handle DLL events.
20492 (win32_wait): Likewise.
20493
0d37add9
DJ
204942007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20495
20496 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20497 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20498
45e2715e
PA
204992007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20500
20501 * win32-low.c (handle_output_debug_string): Ignore event if not
20502 waiting.
20503
c5674cf1
PA
205042007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20505
20506 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20507
2bbe3cc1
DJ
205082007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20509
20510 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20511
ae13219e
DJ
205122007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20513
20514 * inferiors.c (change_inferior_id): Add comment.
20515 * linux-low.c (check_removed_breakpoint): Add an early
20516 prototype. Improve debug output.
20517 (linux_attach): Doc update.
20518 (linux_detach_one_process, linux_detach): Clean up before releasing
20519 each process.
20520 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20521 * linux-low.h (struct process_info): Doc improvement.
20522 * mem-break.c (delete_all_breakpoints): New.
20523 * mem-break.h (delete_all_breakpoints): New prototype.
20524 * thread-db.c (find_first_thread): New.
20525 (thread_db_create_event): Call it instead of
20526 thread_db_find_new_threads. Clean up unused variables.
20527 (maybe_attach_thread): Remove first thread handling.
20528 (thread_db_find_new_threads): Use find_first_thread.
20529 (thread_db_get_tls_address): Likewise.
20530
4105de34
DJ
205312007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20532
20533 * thread-db.c (thread_db_find_new_threads): Add prototype.
20534 (thread_db_create_event): Check for the main thread before adding
20535 a new thread.
20536 (maybe_attach_thread): Only enable event reporting if TID == 0.
20537 (thread_db_get_tls_address): Check for new threads.
20538
2b876972
DJ
205392007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20540
20541 * linux-low.c (linux_create_inferior): Try execv before execvp.
20542 * spu-low.c (spu_create_inferior): Likewise.
20543
7a245884
DJ
205442007-06-13 Mike Frysinger <vapier@gentoo.org>
20545
20546 * linux-low.c (linux_create_inferior): Change execv to execvp.
20547 * spu-low.c (spu_create_inferior): Likewies.
20548
117ce543
DJ
205492007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20550
20551 * Makefile.in (clean): Clean new files instead of deleted ones.
20552 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20553 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20554 rules.
20555 * configure.srv: Specify XML files and new regformats for MIPS and
20556 MIPS64 GNU/Linux.
20557 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20558 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20559 an entry for the restart register.
20560 (mips_cannot_fetch_register, mips_cannot_store_register)
20561 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20562 register names to match the XML descriptions.
20563 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20564 restart register instead of $0.
20565
0e7f50da
UW
205662007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20567 Markus Deuling <deuling@de.ibm.com>
20568
20569 * remote-utils.c (decode_xfer_write): New function.
20570 * server.h (decode_xfer_write): Add prototype.
20571 * server.c (handle_query): Add PACKET_LEN argument. Support
20572 qXfer:spu:read and qXfer:spu:write packets.
20573 (main): Pass packet_len to handle_query.
20574 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20575 * target.h (target_ops): Add qxfer_spu.
20576
374c1d38
UW
205772007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20578
20579 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20580 accessing non-seekable spufs files.
20581
bb63802a
UW
205822007-05-16 Markus Deuling <deuling@de.ibm.com>
20583
889bf7c5 20584 * server.c (handle_query): Add reply for qC packet.
bb63802a 20585
7390519e
PA
205862007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20587 Leo Zayas <lerele@champenstudios@com>
20588
20589 * server.h (check_remote_input_interrupt_request): New function.
20590 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20591 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20592 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20593 (check_remote_input_interrupt_request): New function.
20594 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20595 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20596 winapi_GenerateConsoleCtrlEvent): New typedefs.
20597 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20598 to 250 ms.
20599 (win32_wait): Check for remote interrupt request
20600 with check_remote_input_interrupt_request.
20601 (win32_request_interrupt): New function.
20602 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20603
34b34921
PA
206042007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20605
20606 * win32-low.c (debug_registers_changed,
20607 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20608 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20609 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20610 (thread_rec): Get context using the low target.
20611 (child_add_thread): Call thread_added on the low target,
20612 which does the same thing.
20613 (regptr): Delete.
20614 (do_initial_child_stuff): Remove debug registers references.
20615 Set context using the low target. Resume threads after
20616 setting the contexts.
20617 (child_continue): Remove dead variable. Remove debug
20618 registers references.
20619 (child_fetch_inferior_registers): Go through the low target.
20620 (do_child_store_inferior_registers): Remove.
20621 (child_store_inferior_registers): Go through the low target.
20622 (win32_resume): Remove debug registers references.
20623 Set context using the low target.
20624 (handle_exception): Change return type to void. Don't record
20625 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20626 first chance exception.
889bf7c5 20627 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20628 goto loop. Always return after waiting for debug event.
20629 (win32_wait): Convert to switch statement. Handle spurious
20630 events.
20631
20632 * win32-i386-low.c (debug_registers_changed,
20633 debug_registers_used): New.
20634 (initial_stuff): Rename to ...
20635 (i386_initial_stuff): ... this. Clear debug registers
20636 state variables.
20637 (store_debug_registers): Delete.
20638 (i386_get_thread_context): New.
20639 (load_debug_registers): Delete.
20640 (i386_set_thread_context): New.
20641 (i386_thread_added): New.
20642 (single_step): Rename to ...
20643 (i386_single_step): ... this.
20644 (do_fetch_inferior_registers): Rename to ...
20645 (i386_fetch_inferior_register): ... this.
20646 (i386_store_inferior_register): New.
20647 (the_low_target): Adapt to new interface.
20648
20649 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20650 (arm_get_thread_context): New.
20651 (arm_set_thread_context): New.
20652 (regptr): New.
20653 (do_fetch_inferior_registers): Rename to ...
20654 (arm_fetch_inferior_register): ... this.
20655 (arm_store_inferior_register): New.
20656 (arm_wince_breakpoint): Reimplement as unsigned long.
20657 (arm_wince_breakpoint_len): Define.
20658 (the_low_target): Adapt to new interface.
20659
20660 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20661 load_debug_registers. Add get_thread_context, set_thread_context,
20662 thread_added and store_inferior_register. Rename
20663 fetch_inferior_registers to fetch_inferior_register.
20664 (regptr): Remove declaration.
20665
dd6953e1
PA
206662007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20667
20668 * linux-low.c (linux_detach): Change return type to int. Return 0.
20669 * spu-low.c (spu_detach): Likewise.
20670
444d6139
PA
206712007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20672
20673 * target.h (target_ops): Change return type of detach to int.
20674 Add join.
20675 (join_inferior): New.
20676 * server.c (main): Don't skip detach support on mingw32.
20677 If the inferior doesn't support detaching return error.
20678 Call join_inferior instead of using waitpid.
20679 * linux-low.c (linux_join): New.
20680 (linux_target_op): Add linux_join.
20681 * spu-low.c (spu_join): New.
20682 (spu_target_ops): Add spu_join.
20683 * win32-low.c (win32_detach): Adapt to new interface.
20684 Reopen current_process_handle before detaching. Issue a child
20685 resume before detaching.
20686 (win32_join): New.
20687 (win32_target_op): Add win32_join.
20688
1d5315fe
PA
206892007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20690
20691 * win32-low.c (win32-attach): Fix return value.
20692 * target.h (target_ops): Describe ATTACH return values.
20693
bf914831
PA
206942007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20695
20696 * win32-low.c (GETPROCADDRESS): Define.
20697 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20698 (winapi_DebugSetProcessKillOnExit): Likewise.
20699 (win32_create_inferior): Force usage of ansi CreateProcessA.
20700 (win32_attach): Use GETPROCADDRESS.
20701 (win32_detach): Likewise.
20702
f72f3e60
PA
207032007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20704
20705 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20706
ed50f18f
PA
207072007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20708
20709 * win32-low.c: Commit leftover changes from 2007-03-29.
20710
0c2ead7e
DJ
207112007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20712
20713 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20714 fields short instead of int. Add explicit padding.
20715 (i387_cache_to_fsave): Remove unnecessary casts.
20716 (i387_fsave_to_cache): Doc fix.
20717 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20718
73725ff3
DJ
207192007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20720
20721 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20722 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20723
d99f33d8
PA
207242007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20725
20726 * configure.srv (arm*-*-mingw32ce*): Move near the other
20727 arm targets.
20728
68070c10
PA
207292007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20730
2482afc6 20731 * configure.ac: Add errno checking.
68070c10
PA
20732 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20733 sys/file.h and malloc.h.
20734 (AC_CHECK_DECLS): Add perror.
20735 (srv_mingwce): Handle.
2482afc6 20736 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20737 win32-i386-low.o to srv_tgtobj.
20738 (i[34567]86-*-mingw*): Likewise.
20739 (arm*-*-mingw32ce*): Add case.
20740 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20741 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20742 [__MINGW32CE__] (strerror): New function.
20743 [__MINGW32CE__] (errno): Define to GetLastError.
20744 [__MINGW32CE__] (COUNTOF): New macro.
20745 (remote_open): Remove extra close call.
20746 * mem-break.c (delete_breakpoint_at): New function.
20747 * mem-break.h (delete_breakpoint_at): Declare.
20748 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20749 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20750 [USE_WIN32API] (read, write): Add char* casts.
20751 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20752 * server.h: Include wincecompat.h on Windows CE.
20753 [HAVE_ERRNO_H]: Check.
20754 (perror): Declare if not declared.
20755 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20756 (perror_with_name): Remove errno declaration.
20757 * wincecompat.h: New.
20758 * wincecompat.c: New.
20759 * win32-low.h: New.
20760 * win32-arm-low.c: New.
20761 * win32-i386-low.c: New.
20762 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20763 (OUTMSG2): Make it safe.
20764 (_T): New macro.
20765 (COUNTOF): New macro.
20766 (NUM_REGS): Get it from the low target.
20767 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20768 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20769 (thread_rec): Let low target handle debug registers.
20770 (child_add_thread): Likewise.
20771 (child_init_thread_list): Likewise.
20772 (continue_one_thread): Likewise.
20773 (regptr): New.
20774 (do_child_fetch_inferior_registers): Move to ...
20775 * win32-i386-low.c: ... here, and rename to ...
20776 (do_fetch_inferior_registers): ... this.
889bf7c5 20777 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20778 Go through the low target.
20779 (do_child_store_inferior_registers): Use regptr.
20780 (strwinerror): New function.
20781 (win32_create_inferior): Handle Windows CE.
20782 Use strwinerror instead of strerror on Windows error
20783 codes. Add program to the error output.
20784 Don't close the main thread handle on Windows CE.
20785 (win32_attach): Use coredll.dll on Windows CE.
20786 (win32_kill): Close current process and current
20787 thread handles.
20788 (win32_detach): Use coredll.dll on Windows CE.
20789 (win32_resume): Let low target handle debug registers, and
20790 step request.
20791 (handle_exception): Add/Remove initial breakpoint. Avoid
20792 non-existant WSTOPSIG on Windows CE.
20793 (win32_read_inferior_memory): Cast to remove warning.
20794 (win32_arch_string): Go through the low target.
20795 (initialize_low): Call set_breakpoint_data with the low
20796 target's breakpoint.
20797 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20798 FOP_REGNUM, mappings): Move to ...
20799 * win32-i386-low.c: ... here.
20800 * win32-low.c (win32_thread_info): Move to ...
20801 * win32-low.h: ... here.
20802 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20803 win32-arm-low.c and wincecompat.c.
20804 (all:): Add $EXEEXT.
20805 (install-only:): Likewise.
20806 (gdbserver:): Likewise.
20807 (gdbreplay:): Likewise.
20808 * config.in: Regenerate.
20809 * configure: Regenerate.
20810
41093d81
PA
208112007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20812
20813 * win32-low.c: Rename typedef thread_info to
20814 win32_thread_info throughout.
20815
544afa54
PA
208162007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20817
20818 * win32-i386-low.c: Rename to ...
20819 * win32-low.c: ... this.
20820 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20821 * Makefile.in: Likewise.
20822
bce7165d
PA
208232007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20824
20825 * remote-utils.c (monitor_output): Constify msg parameter.
20826 * server.h (monitor_output): Likewise.
20827 * win32-i386-low.c (handle_output_debug_string): New.
20828 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20829 handle_output_debug_string.
20830 (get_child_debug_event): Likewise.
20831
506c7aa0
DJ
208322007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20833
20834 * server.c (main): Correct strtoul check.
20835
42c81e2a
DJ
208362007-03-27 Jon Ringle <jon@ringle.org>
20837
20838 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20839
9453113a
DJ
208402007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20841
20842 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20843
64a69107
DJ
208442007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20845
20846 * terminal.h: Check HAVE_SGTTY_H.
20847
208482007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20849
20850 * remote-utils.c (remote_open): Print out the assigned port number.
20851
c74d0ad8
DJ
208522007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20853
20854 * remote-utils.c (monitor_output): New function.
20855 * server.c (debug_threads): Define here.
20856 (monitor_show_help): New function.
20857 (handle_query): Handle qRcmd.
20858 (main): Do not handle 'd' packet.
20859 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20860 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20861 of debug_threads.
20862
de7c3b4a
PA
208632007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20864
20865 * Makefile.in (EXEEXT): New.
20866 (clean): Use $(EXEEXT).
20867
ef57601b
PA
208682007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20869
20870 * target.h (target_ops): Rename send_signal to request_interrupt,
20871 and remove enum target_signal parameter.
20872 * linux-low.c (linux_request_interrupt): Rename from
20873 linux_send_signal, and always send SIGINT.
20874 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20875 and always send SIGINT.
20876 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20877 of send_signal.
20878 (input_interrupt): Likewise.
20879
820f2bda
PA
208802007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20881
20882 * server.c (get_features_xml): Check if target implemented
20883 arch_string.
20884 * win32-i386-low.c (win32_arch_string): New.
20885 (win32_target_ops): Add win32_arch_string as arch_string member.
20886
ab39bf24
UW
208872007-02-22 Markus Deuling <deuling@de.ibm.com>
20888
20889 * spu-low.c (spu_arch_string): New.
20890 (spu_target_ops): Add spu_arch_string.
20891
61ff6e04
DJ
208922007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20893
20894 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20895 * configure.ac: Do not check for terminal.h.
20896 * configure, config.in: Regenerated.
20897
fb1e4ffc
DJ
208982007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20899
20900 * Makefile.in (OBS): Add $(XML_BUILTIN).
20901 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20902 (clean): Update.
20903 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20904 (arm-with-iwmmxt.c): New.
20905 * config.in, configure: Regenerate.
20906 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20907 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20908 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20909 (arm*-*-linux*): Add iWMMXt and regset support.
20910 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20911 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20912 (arm_store_wmmxregset, target_regsets): New.
20913 * server.c (get_features_xml): Take annex argument. Check builtin
20914 XML documents.
20915 (handle_query): Handle multiple annexes.
20916
0f48aa01
DJ
209172007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20918
20919 * remote-utils.c [USE_WIN32API] (read, write): Define.
20920 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20921 write.
20922
23181151
DJ
209232007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20924
20925 * linux-i386-low.c (the_low_target): Set arch_string.
20926 * linux-x86-64-low.c (the_low_target): Likewise.
20927 * linux-low.c (linux_arch_string): New.
20928 (linux_target_ops): Add it.
20929 * linux-low.h (struct linux_target_ops): Add arch_string.
20930 * server.c (write_qxfer_response): Use const void * for DATA.
20931 (get_features_xml): New.
20932 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20933 * target.h (struct target_ops): Add arch_string method.
20934
9d606399
DJ
209352007-01-03 Denis Pilat <denis.pilat@st.com>
20936 Daniel Jacobowitz <dan@codesourcery.com>
20937
20938 * linux-low.c (linux_kill): Handle being called with no threads.
20939 * win32-i386-low.c (win32_kill): Likewise.
20940 (get_child_debug_event): Clear current_process_handle.
20941
209422006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20943 Daniel Jacobowitz <dan@codesourcery.com>
20944
20945 * remote-utils.c (remote_open): Check the type of specified
20946 serial port devices before opening them.
20947 * server.c (main): Kill the inferior if an error occurs during
20948 the first remote_open.
20949
a5e13d24
DJ
209502006-12-05 Markus Deuling <deuling@de.ibm.com>
20951
20952 * README: Update supported targets.
20953
186947f7
DJ
209542006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20955
20956 * Makefile.in (clean): Remove reg-mips64.c.
20957 (reg-mips64.c, reg-mips64.o): New rules.
20958 * configure.srv: Handle mips64. Include regset support for mips.
20959 * linux-mips-low.c (union mips_register): New.
20960 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20961 (mips_breakpoint, mips_breakpoint_at): Use int.
20962 (mips_collect_register, mips_supply_register)
20963 (mips_collect_register_32bit, mips_supply_register_32bit)
20964 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20965 (mips_store_fpregset, target_regsets): New.
20966 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20967
a13e2c95
UW
209682006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20969
20970 * configure.srv: Add target "spu*-*-*".
20971 * Makefile.in (clean): Remove reg-spu.c.
20972 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20973 * spu-low.c: New file.
20974
cb7283db
DJ
209752006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20976
20977 * configure.ac: Correct td_thr_tls_get_addr test.
20978 * configure: Regenerated.
20979
89be2091
DJ
209802006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20981
20982 * linux-low.c (linux_wait_for_event): Reformat. Use the
20983 pass_signals array.
20984 * remote-utils.c (decode_address_to_semicolon): New.
20985 * server.c (pass_signals, handle_general_set): New.
20986 (handle_query): Mention QPassSignals for qSupported.
20987 (main): Call handle_general_set.
20988 * server.h (pass_signals, decode_address_to_semicolon): New.
20989
000ef4f0
DJ
209902006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20991
20992 * server.c (handle_query): Correct error handling for read_auxv.
20993
b7149293
UW
209942005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20995
20996 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20997 and srv_linux_thread_db to yes.
20998 * linux-s390-low.c (s390_fill_gregset): New function.
20999 (target_regsets): Define data structure.
21000
dae5f5cf
DJ
210012006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21002
21003 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21004 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21005 * config.in, configure: Regenerated.
21006 * inferiors.c (gdb_id_to_thread): New function.
21007 (gdb_id_to_thread_id): Use it.
21008 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21009 * linux-low.h (struct process_info): Add th member.
21010 (thread_db_get_tls_address): New prototype.
21011 * remote-utils.c (decode_address): Make non-static.
21012 * server.c (handle_query): Handle qGetTLSAddr.
21013 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21014 * target.h (struct target_ops): Add get_tls_address.
21015 * thread-db.c (maybe_attach_thread): Save the thread handle.
21016 (thread_db_get_tls_address): New.
21017
32ca6d61
DJ
210182006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21019
21020 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21021 (linux_resume_one_process): Take a siginfo_t *. Update all
21022 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21023 (struct pending_signals): Add a siginfo_t.
21024 (linux_wait_for_process): Always set last_status.
21025 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21026 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21027 * linux-low.h (struct process_info): Add last_status.
21028
5ffff7c1
DJ
210292006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21030
21031 * remote-utils.c (try_rle): New function.
21032 (putpkt_binary): Use it.
21033
8695c747
DJ
210342006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21035
21036 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21037 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21038 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21039 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21040 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21041 point registers.
21042
290fadea
RS
210432006-08-08 Richard Sandiford <richard@codesourcery.com>
21044
21045 * server.c (terminal_fd): New variable.
21046 (old_foreground_pgrp): Likewise.
21047 (restore_old_foreground_pgrp): New function.
21048 (start_inferior): Record the terminal file descriptor in terminal_fd
21049 and its original foreground group in old_foreground_pgrp. Register
21050 restore_old_foreground_pgrp with atexit().
21051
9f2e1e63
DJ
210522006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21053
21054 * server.c (handle_query): Correct qPart to qXfer.
21055
b80864fb
DJ
210562006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21057
21058 * configure.ac: Check for more headers which are missing on
21059 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21060 * configure.srv: Add Cygwin and mingw32.
21061 * remote-utils.c: Don't include headers unconditionally which
21062 are missing on mingw32. Include <winsock.h> for mingw32.
21063 (remote_open): Adjust for mingw32 support. Flush
21064 standard error after writing to it.
21065 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21066 (unblock_async_io, enable_async_io, disable_async_io)
21067 (readchar, getpkt): Update for Winsock support.
21068 (prepare_resume_reply): Expect a protocol signal number.
21069 * server.c: Disable <sys/wait.h> on mingw32.
21070 (start_inferior): Adjust for mingw32 support. Flush
21071 standard error after writing to it.
21072 (attach_inferior): Likewise. Use protocol signal
21073 numbers.
21074 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21075 and names.
21076 * win32-i386-low.c: New file.
21077 * Makefile.in (XM_CLIBS): Set.
21078 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21079 (win32-i386-low.o): New dependency rule.
21080 * linux-low.c (linux_wait): Use target signal numbers.
21081 * target.h (struct target_ops): Doc fix.
21082 * server.h (target_signal_to_name): New prototype.
21083 * gdbreplay.c: Don't include headers unconditionally which
21084 are missing on mingw32. Include <winsock.h> for mingw32.
21085 (remote_close, remote_open): Adjust for Winsock support.
21086 * configure, config.in: Regenerated.
21087
0876f84a
DJ
210882006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21089
21090 * server.c (decode_xfer_read, write_qxfer_response): New.
21091 (handle_query): Take a packet length argument. Handle
21092 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21093 the qSupported response.
21094 (main): Update call to handle_query.
21095
01f9e8fa
DJ
210962006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21097
21098 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21099 (putpkt_binary): Renamed from putpkt and adjusted for binary
21100 data.
21101 (putpkt): New wrapper for putpkt_binary.
21102 (readchar): Don't mask off the high bit.
21103 (decode_X_packet): New function.
21104 * server.c (main): Call putpkt_binary if a handler sets the packet
21105 length. Save the length of the incoming packet. Handle 'X'.
21106 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21107
be2a5f71
DJ
211082006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21109
21110 * server.c (handle_query): Handle qSupported.
21111
ea025f5f
DJ
211122006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21113
21114 * remote-utils.c (all_symbols_looked_up): New variable.
21115 (look_up_one_symbol): Check it.
21116 * server.h (look_up_one_symbol): New declaration.
21117 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21118
9308fc88
DJ
211192006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21120
21121 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21122 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21123 (PTRACE_GET_THREAD_AREA): Define.
21124 (ps_get_thread_area): New function.
21125
52fb6437
NS
211262006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21127
21128 * configure.srv (m68k*-*-uclinux*): New target.
21129 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21130 (linux_resume_one_process): Remove extraneous cast.
21131 (linux_read_offsets): New.
21132 (linux_target_op): Add linux_read_offsets on mmuless systems.
21133 * server.c (handle_query): Add qOffsets logic.
21134 * target.h (struct target_ops): Add read_offsets.
21135
21b0f40c
DJ
211362006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21137
21138 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21139 (PTRACE_GET_THREAD_AREA): Define.
21140 (ps_get_thread_area): New function.
21141 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21142 (linux-x86-64-low.o): Update.
21143
0050a760
DJ
211442006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21145
21146 * configure.ac: Remove checks for prfpregset_t.
21147 * gdb_proc_service.h: New file.
21148 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21149 new "gdb_proc_service.h".
21150 * proc-service.c: Likewise.
21151 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21152 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21153 * Makefile.in (gdb_proc_service_h): Updated.
21154 * configure, config.in: Regenerated.
21155
b92a518e
DJ
211562006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21157
21158 * remote-utils.c (prepare_resume_reply): Move declaration
21159 of gdb_id_from_wait to the top of the block.
21160
545587ee
DJ
211612006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21162
21163 * linux-low.c (regsets_store_inferior_registers): Read the regset
21164 from the target before filling it.
21165
9db87ebd
DJ
211662006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21167
21168 * server.c (attach_inferior): Return SIGTRAP for a successful
21169 attach.
21170
dd24457d
DJ
211712006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21172
21173 * Makefile.in (OBS): Add version.o.
21174 (STAGESTUFF): Delete.
21175 (version.o): Add dependencies.
21176 (version.c): Replace rule.
21177 (clean): Remove version.c.
21178 * server.c (gdbserver_version): New.
21179 (gdbserver_usage): Use printf.
21180 (main): Handle --version and --help.
21181 * server.h (version, host_name): Add declarations.
21182
6f0f660e
EZ
211832005-12-23 Eli Zaretskii <eliz@gnu.org>
21184
889bf7c5
PA
21185 * linux-arm-low.c:
21186 * linux-arm-low.c:
21187 * inferiors.c:
21188 * i387-fp.h:
21189 * i387-fp.c:
21190 * gdbreplay.c:
21191 * regcache.c:
21192 * proc-service.c:
21193 * mem-break.h:
21194 * mem-break.c:
21195 * linux-x86-64-low.c:
21196 * linux-sh-low.c:
21197 * linux-s390-low.c:
21198 * linux-ppc64-low.c:
21199 * linux-ppc-low.c:
21200 * linux-mips-low.c:
21201 * linux-m68k-low.c:
21202 * linux-m32r-low.c:
21203 * linux-low.h:
21204 * linux-low.c:
21205 * linux-ia64-low.c:
21206 * linux-i386-low.c:
21207 * linux-crisv32-low.c:
21208 * thread-db.c:
21209 * terminal.h:
21210 * target.h:
21211 * target.c:
21212 * server.h:
21213 * server.c:
21214 * remote-utils.c:
21215 * regcache.h:
21216 * utils.c:
21217 * Makefile.in:
21218 * configure.ac:
6f0f660e
EZ
21219 * gdbserver.1: Add (C) after Copyright. Update the FSF
21220 address.
21221
9d1fb177
DJ
212222005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21223
21224 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21225 (arm_breakpoint_at): Recognize both breakpoints.
21226 (the_low_target): Use the correct breakpoint instruction.
21227
011a70c2
DJ
212282005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21229
21230 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21231 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21232 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21233 (the_low_target): Update.
21234
7fb85e41
AS
212352005-10-25 Andreas Schwab <schwab@suse.de>
21236
21237 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21238
21239 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21240 (ia64_num_regs): Reduce to 462.
21241
3db0444b
DJ
212422005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21243
21244 * acinclude.m4: Correct quoting.
21245 * aclocal.m4: Regenerated.
21246
21247 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21248 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21249 (thread_db_init): Call thread_db_err_str.
21250 * configure.ac: Check for TD_VERSION.
21251 * config.in, configure: Regenerated.
21252
bee0189a
DJ
212532005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21254
21255 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21256
e9d25b98
DJ
212572005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21258
21259 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21260 is not available. Define HAVE_PTRACE_GETREGS if it is.
21261 * config.in, configure: Regenerated.
21262 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21263 * linux-i386-low.c, linux-m68k-low.c: Update to use
21264 HAVE_PTRACE_GETREGS.
21265 * linux-low.c (regsets_fetch_inferior_registers)
21266 (regsets_store_inferior_registers): Only return 0 if we processed
21267 GENERAL_REGS.
21268 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21269 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21270
a06660f7
DJ
212712005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21272
21273 * inferiors.c (struct thread_info): Add gdb_id.
21274 (add_thread): Add gdb_id argument.
21275 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21276 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21277 calls to add_thread.
21278 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21279 * server.c (handle_query): Use thread_to_gdb_id.
21280 (handle_v_cont, main): Use gdb_id_to_thread_id.
21281 * server.h (add_thread): Update prototype.
21282 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21283 prototypes.
21284
5a1f5858
DJ
212852005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21286
21287 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21288 left-padded registers.
21289 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21290 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21291
e122f1f5
SE
212922005-07-01 Steve Ellcey <sje@cup.hp.com>
21293
21294 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21295 * configure: Regenerate.
21296 * config.in: Regenerate.
21297 * server.h (NEED_DECLARATION_STRERROR):
21298 Replace with !HAVE_DECL_STRERROR.
21299
d592fa2f
DJ
213002005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21301
21302 * linux-low.c (linux_wait, linux_send_signal): Don't test
21303 an unsigned long variable for > 0 if it could be MAX_ULONG.
21304 * server.c (myresume): Likewise.
21305 * target.c (set_desired_inferior): Likewise.
21306
ccbd4912
MK
213072005-06-13 Mark Kettenis <kettenis@gnu.org>
21308
21309 * configure.ac: Simplify and improve check for socklen_t.
21310 * configure, config.in: Regenerate.
21311
f450004a
DJ
213122005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21313
21314 * acconfig.h: Remove.
21315 * configure.ac: Add a test for socklen_t. Use three-argument
21316 AC_DEFINE throughout.
21317 * config.in: Regenerated using autoheader 2.59.
21318 * configure: Regenerated.
21319
21320 * gdbreplay.c (socklen_t): Provide a default.
21321 (remote_open): Use socklen_t.
21322 * remote-utils.c (socklen_t): Provide a default.
21323 (remote_open): Use socklen_t.
21324 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21325 unsigned char.
21326
21327 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21328 char for buffers.
21329 * linux-low.c (linux_read_memory, linux_write_memory)
21330 (linux_read_auxv): Likewise.
21331 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21332 (check_mem_write): Likewise.
21333 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21334 Likewise.
21335 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21336 (registers_from_string, register_data): Likewise.
21337 * server.c (handle_query, main): Likewise.
21338 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21339 (decode_M_packet): Likewise.
21340 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21341 * target.h (struct target_ops): Update read_memory, write_memory,
21342 and read_auxv.
21343 (read_inferior_memory, write_inferior_memory): Update.
21344 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21345 to unsigned char *.
21346 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21347 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21348 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21349 linux-s390-low.c, linux-sh-low.c: Update for changes in
21350 read_inferior_memory and the_low_target->breakpoint.
21351
eee84df1
DJ
213522005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21353
21354 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21355 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21356 * configure.srv: Add powerpc64-*-linux*.
21357 * linux-ppc64-low.c: New file.
21358
45b134e5
OF
213592005-05-23 Orjan Friberg <orjanf@axis.com>
21360
21361 * linux-cris-low.c: New file with support for CRIS.
21362 * linux-crisv32-low.c: Ditto for CRISv32.
21363 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21364 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21365 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21366 reg-crisv32.o, and reg-crisv32.c to make rules.
21367 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21368 recognized targets.
21369
48d93c75
UW
213702005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21371
21372 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21373 of sizeof (PTRACE_XFER_TYPE).
21374 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21375
e013ee27
OF
213762005-05-12 Orjan Friberg <orjanf@axis.com>
21377
889bf7c5 21378 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21379 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21380 pointers for hardware watchpoint support.
21381 * linux-low.h (struct linux_target_ops): Ditto.
21382 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21383 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21384 to linux_target_ops.
21385 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21386 reply packet.
21387 * server.c (main): Recognize 'Z' and 'z' packets.
21388
b0ded00b
UW
213892005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21390
21391 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21392 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21393 (the_low_target): Add new members.
21394
8643e2ad
DJ
213952005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21396
21397 * proc-service.c (ps_lgetregs): Search all_processes instead of
21398 all_threads.
21399
fc620387
DJ
214002005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21401
21402 * server.c (start_inferior): Change return type to int.
21403 (attach_inferior): Change sigptr to int *.
21404 (handle_v_cont, handle_v_requests): Change signal to int *.
21405 (main): Change signal to int.
21406
214072005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21408
21409 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21410 * configure.srv: Add m32r*-*-linux*.
21411 * linux-m32r-low.c: New file.
21412
e0e76420
DJ
214132005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21414
21415 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21416
a1928bad
DJ
214172005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21418
21419 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21420 Take unsigned long arguments for PIDs.
21421 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21422 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21423 (wait_for_sigstop, linux_resume_one_process)
21424 (regsets_fetch_inferior_registers, linux_send_signal)
21425 (linux_read_auxv): Likewise. Update the types of variables holding
21426 PIDs. Update format string specifiers.
21427 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21428 * remote-utils.c (prepare_resume_reply): Likewise.
21429 * server.c (cont_thread, general_thread, step_thread)
21430 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21431 unsigned long.
21432 (handle_query): Update format specifiers.
21433 (handle_v_cont, main): Use strtoul for thread IDs.
21434 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21435 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21436 (general_thread, step_thread, thread_from_wait)
21437 (old_thread_from_wait): Update.
21438 * target.h (struct thread_resume): Use unsigned long for THREAD.
21439 (struct target_ops): Use unsigned long for arguments to attach and
21440 thread_alive.
21441
dcdb98d2
DJ
214422005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21443
21444 * acinclude.m4: Include bfd/bfd.m4 directly.
21445 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21446 <agriffis@toolchain.org>.
21447 * aclocal.m4, configure: Regenerated.
21448
bec39cab
AC
214492005-01-07 Andrew Cagney <cagney@gnu.org>
21450
21451 * configure.ac: Rename configure.in, require autoconf 2.59.
21452 * configure: Re-generate.
21453
434c4c77
DJ
214542004-12-08 Daniel Jacobowitz <dan@debian.org>
21455
21456 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21457 LIBS when finished.
21458 * aclocal.m4: Regenerated.
21459 * configure: Regenerated.
21460
db1d3e1b
AS
214612004-11-21 Andreas Schwab <schwab@suse.de>
21462
21463 * linux-m68k-low.c (m68k_num_gregs): Define.
21464 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21465 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21466 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21467 (m68k_breakpoint_at): New. Add to the_low_target.
21468
21469 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21470 srv_linux_thread_db to yes.
21471
43360365
JB
214722004-10-20 Joel Brobecker <brobecker@gnat.com>
21473
21474 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21475 (ARCH_SET_FS): Likewise.
21476 (ARCH_GET_FS): Likewise.
21477 (ARCH_GET_GS): Likewise.
21478
fd500816
DJ
214792004-10-16 Daniel Jacobowitz <dan@debian.org>
21480
21481 * linux-i386-low.c (ps_get_thread_area): New.
21482 * linux-x86-64-low.c (ps_get_thread_area): New.
21483 * linux-low.c: Include <sys/syscall.h>.
21484 (linux_kill_one_process): Don't kill the first thread here.
21485 (linux_kill): Kill the first thread here.
21486 (kill_lwp): New function.
21487 (send_sigstop, linux_send_signal): Use it.
21488 * proc-service.c: Clean up #ifdefs.
21489 (fpregset_info): Delete.
21490 (ps_lgetregs): Update and enable implementation.
21491 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21492 implementations.
21493 * remote-utils.c (struct sym_cache, symbol_cache): New.
21494 (input_interrupt): Print a clearer message.
21495 (async_io_enabled): New variable.
21496 (enable_async_io, disable_async_io): Use it. Update comments.
21497 (look_up_one_symbol): Use the symbol cache.
21498 * thread-db.c (thread_db_look_up_symbols): New function.
21499 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21500
f6de3c42
DJ
215012004-10-16 Daniel Jacobowitz <dan@debian.org>
21502
21503 * configure.in: Test for -rdynamic.
21504 * configure: Regenerated.
21505 * Makefile (INTERNAL_LDFLAGS): New.
21506 (gdbserver, gdbreplay): Use it.
21507
2c0fc042
AC
215082004-09-02 Andrew Cagney <cagney@gnu.org>
21509
21510 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21511
075b3282
DJ
215122004-03-23 Daniel Jacobowitz <drow@mvista.com>
21513
21514 * linux-low.c (linux_wait): Clear all_processes list also.
21515
fa6a77dc
DJ
215162004-03-12 Daniel Jacobowitz <drow@mvista.com>
21517
21518 * linux-low.c: Include <errno.h>. Remove extern declaration of
21519 errno.
21520
6d782a97
DJ
215212004-03-12 Daniel Jacobowitz <drow@mvista.com>
21522
21523 * gdbreplay.c, server.h, utils.c: Update copyright years.
21524
3a7fb99b
DJ
215252004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21526
21527 * server.c (main): Print child status or termination signal from
21528 variable 'signal', not 'sig'.
21529
c3e735a6
DJ
215302004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21531
21532 * linux-low.c (linux_read_memory): Change return type to
21533 int. Check for and return error from ptrace().
21534 * target.c (read_inferior_memory): Change return type to int. Pass
21535 back return status from the_target->read_memory().
21536 * target.h (struct target_ops): Adapt *read_memory() prototype.
21537 Update comment.
21538 (read_inferior_memory): Adapt prototype.
21539 * server.c (main): Return an error packet if
21540 read_inferior_memory() returns an error.
21541
a59d1c82
DJ
215422004-03-04 Daniel Jacobowitz <drow@mvista.com>
21543
21544 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21545 Unify with other clean targets.
21546
dc3f8883
DJ
215472004-02-29 Daniel Jacobowitz <drow@mvista.com>
21548
21549 * server.c (handle_v_cont): Call set_desired_inferior.
21550
89a208da
DJ
215512004-02-29 Daniel Jacobowitz <drow@mvista.com>
21552
21553 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21554
62ea82f5
DJ
215552004-02-29 Daniel Jacobowitz <drow@mvista.com>
21556
21557 * linux-low.c (linux_wait): Unblock async I/O.
21558 (linux_resume): Block and enable async I/O.
21559 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21560 * server.h (block_async_io, unblock_async_io): Add prototypes.
21561
6910d122
DJ
215622004-02-29 Daniel Jacobowitz <drow@mvista.com>
21563
21564 * remote-utils.c (remote_open): Print a status notice after
21565 opening a TCP port.
21566 * server.c (attach_inferior): Print a status notice after
21567 attaching.
21568
215692004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21570
21571 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21572
c89dc5d4
DJ
215732004-02-26 Daniel Jacobowitz <drow@mvista.com>
21574
21575 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21576 error packet.
21577 * server.c, target.h: Update copyright years.
21578
4b8dad4a
RM
215792004-02-25 Roland McGrath <roland@redhat.com>
21580
21581 * target.h (struct target_ops): New member `read_auxv'.
21582 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21583 * linux-low.c (linux_read_auxv): New function.
21584 (linux_target_ops): Initialize `read_auxv' member to that.
21585
d7446758
JB
215862004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21587
21588 Committed by Jim Blandy <jimb@redhat.com>.
21589
21590 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21591 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21592 instead of GPR_SIZE to distiguish s390 and s390x targets.
21593
5544ad89
DJ
215942004-01-31 Daniel Jacobowitz <drow@mvista.com>
21595
21596 * linux-low.c: Update copyright year.
21597 (check_removed_breakpoint): Clear pending_is_breakpoint.
21598 (linux_set_resume_request, linux_queue_one_thread)
21599 (resume_status_pending_p): New functions.
21600 (linux_continue_one_thread): Use process->resume.
21601 (linux_resume): Only resume threads if there are no pending events.
21602 * linux-low.h (struct process_info): Add resume request
21603 pointer.
21604
2a68b70e
DJ
216052004-01-30 Daniel Jacobowitz <drow@mvista.com>
21606
21607 * regcache.c (new_register_cache): Clear the allocated register
21608 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21609
64386c31
DJ
216102003-10-13 Daniel Jacobowitz <drow@mvista.com>
21611
21612 * linux-low.c (linux_resume): Take a struct thread_resume *
21613 argument.
21614 (linux_wait): Update call.
21615 (resume_ptr): New static variable.
21616 (linux_continue_one_thread): Renamed from
21617 linux_continue_one_process. Use resume_ptr.
21618 (linux_resume): Use linux_continue_one_thread.
21619 * server.c (handle_v_cont, handle_v_requests): New functions.
21620 (myresume): New function.
21621 (main): Handle 'v' case.
21622 * target.h (struct thread_resume): New type.
21623 (struct target_ops): Change argument of "resume" to struct
21624 thread_resume *.
21625 (myresume): Delete macro.
21626
c938e9b0
L
216272003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21628
21629 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21630 (uninstall): Support DESTDIR.
21631
7f313d07
BC
21632Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21633
21634 * configure.srv: Add xscale*linux copy of arm*linux entry.
21635
3b2fc2ea
DJ
216362003-07-24 Daniel Jacobowitz <drow@mvista.com>
21637
21638 * linux-arm-low.c (arm_reinsert_addr): New function.
21639 (the_low_target): Add arm_reinsert_addr.
21640
1c0a559e
MK
216412003-07-08 Mark Kettenis <kettenis@gnu.org>
21642
21643 * mem-break.c: Remove whitespace at end of file.
21644
43d5792c
DJ
216452003-06-28 Daniel Jacobowitz <drow@mvista.com>
21646
21647 * configure.in: Check whether we need to prototype strerror.
21648 * server.h: Optionally prototype strerror.
21649 * gdbreplay.c (perror_with_name): Use strerror.
21650 * linux-low.c (linux_attach_lwp): Use strerror.
21651 * utils.c (perror_with_name): Use strerror.
21652 * config.in, configure: Regenerated.
21653
c8a86edf
DJ
216542003-06-28 Daniel Jacobowitz <drow@mvista.com>
21655
21656 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21657 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21658
73d37363
DJ
216592003-06-20 Daniel Jacobowitz <drow@mvista.com>
21660
21661 * Makefile.in (SFILES): Update.
21662 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21663 low-sun3.c: Remove files.
21664
6ad8ae5c
DJ
216652003-06-17 Daniel Jacobowitz <drow@mvista.com>
21666
21667 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21668 (linux_detach_one_process, linux_detach): New functions.
21669 (linux_target_ops): Add linux_detach.
21670 * server.c (main): Handle 'D' packet.
21671 * target.h (struct target_ops): Add "detach" member.
21672 (detach_inferior): Define.
21673
1581182a
MK
216742003-06-13 Mark Kettenis <kettenis@gnu.org>
21675
21676 From Kelley Cook <kelleycook@wideopenwest.com>:
21677 * configure.srv: Accept i[34567]86 variants.
21678
e5379b03
DJ
216792003-06-05 Daniel Jacobowitz <drow@mvista.com>
21680
21681 * linux-low.c (linux_wait_for_event): Correct comment typos.
21682 (linux_resume_one_process): Call check_removed_breakpoint.
21683 (linux_send_signal): New function.
21684 (linux_target_ops): Add linux_send_signal.
21685 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21686 of kill.
21687 * target.h (struct target_ops): Add send_signal.
21688
2ff29de4
JB
216892003-05-29 Jim Blandy <jimb@redhat.com>
21690
21691 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21692 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21693 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21694 away part of the register's value.
21695
254787d4
DJ
216962003-03-26 Daniel Jacobowitz <drow@mvista.com>
21697
21698 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21699 (linux_wait_for_event, linux_init_signals): Likewise.
21700
94e10508
DJ
217012003-03-17 Daniel Jacobowitz <drow@mvista.com>
21702
21703 * configure.in: Check for stdlib.h.
21704 * configure: Regenerated.
21705 * config.in: Regenerated.
21706
4c0711e0
DJ
217072003-01-04 Andreas Schwab <schwab@suse.de>
21708
21709 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21710
ef66e766
AC
217112003-01-02 Andrew Cagney <ac131313@redhat.com>
21712
21713 * Makefile.in: Remove obsolete code.
21714
a1358604
DJ
217152002-11-20 Daniel Jacobowitz <drow@mvista.com>
21716
21717 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21718 defined(PT_FPR0_HI).
21719
23ce3b1c
DJ
217202002-11-17 Stuart Hughes <seh@zee2.com>
21721
21722 * linux-arm-low.c (arm_num_regs): Increase.
21723 (arm_regmap): Include status register.
21724
217252002-11-17 Daniel Jacobowitz <drow@mvista.com>
21726
21727 * linux-low.c (register_addr): Remove incorrect -1 check.
21728
a9fa9f7d
DJ
217292002-08-29 Daniel Jacobowitz <drow@mvista.com>
21730
21731 * linux-low.c (linux_create_inferior): Call setpgid. Return
21732 the new PID.
21733 (unstopped_p, linux_signal_pid): Remove.
21734 (linux_target_ops): Remove linux_signal_pid.
21735 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21736 global instead of target method.
21737 * target.h (struct target_ops): Remove signal_pid. Update comment
21738 for create_inferior.
21739 * server.c (signal_pid): New variable.
21740 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21741 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21742 (attach_inferior): Set signal_pid.
21743
17574093
DJ
217442002-08-23 Daniel Jacobowitz <drow@mvista.com>
21745
21746 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21747
217482002-08-20 Jim Blandy <jimb@redhat.com>
21749
21750 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21751 default for this.
21752
217532002-08-01 Andrew Cagney <cagney@redhat.com>
21754
21755 * Makefile.in: Make chill references obsolete.
21756
217572002-07-24 Kevin Buettner <kevinb@redhat.com>
21758
21759 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21760 * configure: Regenerate.
21761 * config.in: Regenerate.
21762
217632002-07-09 David O'Brien <obrien@FreeBSD.org>
21764
21765 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21766 (perror_with_name, remote_close, remote_open, expect, play): Static.
21767
217682002-07-04 Michal Ludvig <mludvig@suse.cz>
21769
4b8dad4a 21770 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21771 byte offsets instead of an array of indexes.
21772 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21773
217742002-06-13 Daniel Jacobowitz <drow@mvista.com>
21775
21776 * regcache.c: Add comment.
21777
217782002-06-11 Daniel Jacobowitz <drow@mvista.com>
21779
21780 * thread-db.c: New file.
21781 * proc-service.c: New file.
21782 * acinclude.m4: New file.
21783 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21784 proc-service.o, and thread-db.o.
21785 (linux-low.o): Add USE_THREAD_DB.
21786 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21787 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21788 * aclocal.m4: Regenerated.
21789 * config.in: Regenerated.
21790 * configure: Regenerated.
21791 * configure.in: Check for proc_service.h, sys/procfs.h,
21792 thread_db.h, and linux/elf.h headrs.
21793 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21794 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21795 Check for -lthread_db and thread support.
21796 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21797 PowerPC, and SuperH.
21798 * i387-fp.c: Constify arguments.
21799 * i387-fp.h: Likewise.
21800 * inferiors.c: (struct thread_info): Renamed from
21801 `struct inferior_info'. Remove PID member. Use generic inferior
21802 list header. All uses updated.
21803 (inferiors, signal_pid): Removed.
21804 (all_threads): New variable.
21805 (get_thread): Define.
21806 (add_inferior_to_list): New function.
21807 (for_each_inferior): New function.
21808 (change_inferior_id): New function.
21809 (add_inferior): Removed.
21810 (remove_inferior): New function.
21811 (add_thread): New function.
21812 (free_one_thread): New function.
21813 (remove_thread): New function.
21814 (clear_inferiors): Use for_each_inferior and free_one_thread.
21815 (find_inferior): New function.
21816 (find_inferior_id): New function.
21817 (inferior_target_data): Update argument type.
21818 (set_inferior_target_data): Likewise.
21819 (inferior_regcache_data): Likewise.
21820 (set_inferior_regcache_data): Likewise.
21821 * linux-low.c (linux_bp_reinsert): Remove.
21822 (all_processes, stopping_threads, using_thrads)
21823 (struct pending_signals, debug_threads, pid_of): New.
21824 (inferior_pid): Replace with macro.
21825 (struct inferior_linux_data): Remove.
21826 (get_stop_pc, add_process): New functions.
21827 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21828 Use add_process and add_thread.
21829 (linux_attach_lwp): New function, based on old linux_attach. Use
21830 add_process and add_thread. Set stop_expected for new threads.
21831 (linux_attach): New function.
21832 (linux_kill_one_process): New function.
21833 (linux_kill): Kill all LWPs.
21834 (linux_thread_alive): Use find_inferior_id.
21835 (check_removed_breakpoints, status_pending_p): New functions.
21836 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21837 Update. Use WNOHANG. Wait for cloned processes also. Update process
21838 struct for the found process.
21839 (linux_wait_for_event): New function.
21840 (linux_wait): Use it. Support LWPs.
21841 (send_sigstop, wait_for_sigstop, stop_all_processes)
21842 (linux_resume_one_process, linux_continue_one_process): New functions.
21843 (linux_resume): Support LWPs.
21844 (REGISTER_RAW_SIZE): Remove.
21845 (fetch_register): Use register_size instead. Call supply_register.
21846 (usr_store_inferior_registers): Likewise. Call collect_register.
21847 Fix recursive case.
21848 (regsets_fetch_inferior_registers): Improve error message.
21849 (regsets_store_inferior_registers): Add debugging.
21850 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21851 (unstopped_p, linux_signal_pid): New functions.
21852 (linux_target_ops): Add linux_signal_pid.
21853 (linux_init_signals): New function.
21854 (initialize_low): Call it. Initialize using_threads.
21855 * regcache.c (inferior_regcache_data): Add valid
21856 flag.
21857 (get_regcache): Fetch registers lazily. Add fetch argument
21858 and update all callers.
21859 (regcache_invalidate_one, regcache_invalidate): New
21860 functions.
21861 (new_register_cache): Renamed from create_register_cache.
21862 Return the new regcache.
21863 (free_register_cache): Change argument to a void *.
21864 (registers_to_string, registers_from_string): Call get_regcache
21865 with fetch flag set.
21866 (register_data): Make static. Pass fetch flag to get_regcache.
21867 (supply_register): Call get_regcache with fetch flag clear.
21868 (collect_register): Call get_regcache with fetch flag set.
21869 (collect_register_as_string): New function.
21870 * regcache.h: Update.
21871 * remote-utils.c (putpkt): Flush after debug output and use
21872 stderr.
21873 Handle input interrupts while waiting for an ACK.
21874 (input_interrupt): Use signal_pid method.
21875 (getpkt): Flush after debug output and use stderr.
21876 (outreg): Use collect_register_as_string.
21877 (new_thread_notify, dead_thread_notify): New functions.
21878 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21879 and general_thread.
21880 (look_up_one_symbol): Flush after debug output.
21881 * server.c (step_thread, server_waiting): New variables.
21882 (start_inferior): Don't use signal_pid. Update call to mywait.
21883 (attach_inferior): Update call to mywait.
21884 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21885 (main): Don't fetch/store registers explicitly. Use
21886 set_desired_inferior. Support proposed ``Hs'' packet. Update
21887 calls to mywait.
21888 * server.h: Update.
21889 (struct inferior_list, struct_inferior_list_entry): New.
21890 * target.c (set_desired_inferior): New.
21891 (write_inferior_memory): Constify.
21892 (mywait): New function.
21893 * target.h: Update.
21894 (struct target_ops): New signal_pid method.
21895 (mywait): Removed macro, added prototype.
21896
21897 * linux-low.h (regset_func): Removed.
21898 (regset_fill_func, regset_store_func): New.
21899 (enum regset_type): New.
21900 (struct regset_info): Add type field. Use new operation types.
21901 (struct linux_target_ops): stop_pc renamed to get_pc.
21902 Add decr_pc_after_break and breakpoint_at.
21903 (get_process, get_thread_proess, get_process_thread)
21904 (strut process_info, all_processes, linux_attach_lwp)
21905 (thread_db_init): New.
21906
21907 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21908 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21909 (the_low_target): Add new members.
21910 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21911 (i386_store_fpxregset): Constify.
21912 (target_regsets): Add new kind identifier.
21913 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21914 (i386_set_pc): Add debugging.
21915 (i386_breakpoint_at): New function.
21916 (the_low_target): Add new members.
21917 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21918 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21919 (mips_breakpoint_at): New.
21920 (the_low_target): Add new members.
21921 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21922 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21923 (the_low_target): Add new members.
21924 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21925 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21926 (the_low_target): Add new members.
21927 * linux-x86-64-low.c (target_regsets): Add new kind
21928 identifier.
21929
219302002-05-15 Daniel Jacobowitz <drow@mvista.com>
21931
21932 From Martin Pool <mbp@samba.org>:
21933 * server.c (gdbserver_usage): New function.
21934 (main): Call it.
21935
219362002-05-14 Daniel Jacobowitz <drow@mvista.com>
21937
21938 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21939 stop_at -> stop_pc.
21940
219412002-05-04 Andrew Cagney <ac131313@redhat.com>
21942
21943 * Makefile.in: Remove obsolete code.
21944
219452002-04-24 Michal Ludvig <mludvig@suse.cz>
21946
21947 * linux-low.c (regsets_fetch_inferior_registers),
21948 (regsets_store_inferior_registers): Removed cast to int from
21949 ptrace() calls.
21950 * regcache.h: Added declaration of struct inferior_info.
21951
219522002-04-20 Daniel Jacobowitz <drow@mvista.com>
21953
21954 * inferiors.c (struct inferior_info): Add regcache_data.
21955 (add_inferior): Call create_register_cache.
21956 (clear_inferiors): Call free_register_cache.
21957 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21958 * regcache.c (struct inferior_regcache_data): New.
21959 (registers): Remove.
21960 (get_regcache): New function.
21961 (create_register_cache, free_register_cache): New functions.
21962 (set_register_cache): Don't initialize the register cache here.
21963 (registers_to_string, registers_from_string, register_data): Call
21964 get_regcache.
21965 * regcache.h: Add prototypes.
21966 * server.h: Likewise.
21967
219682002-04-20 Daniel Jacobowitz <drow@mvista.com>
21969
21970 * mem-break.c: New file.
21971 * mem-break.h: New file.
21972 * Makefile.in: Add mem-break.o rule; update server.h
21973 dependencies.
21974 * inferiors.c (struct inferior_info): Add target_data
21975 member.
21976 (clear_inferiors): Free target_data member if set.
21977 (inferior_target_data, set_inferior_target_data): New functions.
21978 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21979 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21980 * linux-low.c (linux_bp_reinsert): New variable.
21981 (struct inferior_linux_data): New.
21982 (linux_create_inferior): Use set_inferior_target_data.
21983 (linux_attach): Likewise. Call add_inferior.
21984 (linux_wait_for_one_inferior): New function.
21985 (linux_wait): Call it.
21986 (linux_write_memory): Add const.
21987 (initialize_low): Call set_breakpoint_data.
21988 * linux-low.h (struct linux_target_ops): Add breakpoint
21989 handling members.
21990 * server.c (attach_inferior): Remove extra add_inferior
21991 call.
21992 * server.h: Include mem-break.h. Update inferior.c
21993 prototypes.
21994 * target.c (read_inferior_memory)
21995 (write_inferior_memory): New functions.
21996 * target.h (read_inferior_memory)
21997 (write_inferior_memory): Change macros to prototypes.
21998 (struct target_ops): Update comments. Add const to write_memory
21999 definition.
22000
220012002-04-11 Daniel Jacobowitz <drow@mvista.com>
22002
22003 * linux-low.c (usr_store_inferior_registers): Support
22004 registers which are allowed to fail to store.
22005 * linux-low.h (linux_target_ops): Likewise.
22006 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22007 (ppc_cannot_store_register): FPSCR may not be storable.
22008
220092002-04-09 Daniel Jacobowitz <drow@mvista.com>
22010
22011 * server.h: Include <string.h> if HAVE_STRING_H.
22012 * ChangeLog: Correct paths in last ChangeLog entry.
22013
220142002-04-09 Daniel Jacobowitz <drow@mvista.com>
22015
22016 * linux-low.h: Remove obsolete prototypes.
22017 (struct linux_target_ops): New.
22018 (extern the_low_target): New.
22019 * linux-low.c (num_regs, regmap): Remove declarations.
22020 (register_addr): Use the_low_target explicitly.
22021 (fetch_register): Likewise.
22022 (usr_fetch_inferior_registers): Likewise.
22023 (usr_store_inferior_registers): Likewise.
22024 * linux-arm-low.c (num_regs): Remove.
22025 (arm_num_regs): Define.
22026 (arm_regmap): Renamed from regmap, made static.
22027 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22028 made static.
22029 (arm_cannot_store_register): Renamed from cannot_store_register,
22030 made static.
22031 (the_low_target): New.
22032 * linux-i386-low.c (num_regs): Remove.
22033 (i386_num_regs): Define.
22034 (i386_regmap): Renamed from regmap, made static.
22035 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22036 made static.
22037 (i386_cannot_store_register): Renamed from cannot_store_register,
22038 made static.
22039 (the_low_target): New.
22040 * linux-ia64-low.c (num_regs): Remove.
22041 (ia64_num_regs): Define.
22042 (ia64_regmap): Renamed from regmap, made static.
22043 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22044 made static.
22045 (ia64_cannot_store_register): Renamed from cannot_store_register,
22046 made static.
22047 (the_low_target): New.
22048 * linux-m68k-low.c (num_regs): Remove.
22049 (m68k_num_regs): Define.
22050 (m68k_regmap): Renamed from regmap, made static.
22051 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22052 made static.
22053 (m68k_cannot_store_register): Renamed from cannot_store_register,
22054 made static.
22055 (the_low_target): New.
22056 * linux-mips-low.c (num_regs): Remove.
22057 (mips_num_regs): Define.
22058 (mips_regmap): Renamed from regmap, made static.
22059 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22060 made static.
22061 (mips_cannot_store_register): Renamed from cannot_store_register,
22062 made static.
22063 (the_low_target): New.
22064 * linux-ppc-low.c (num_regs): Remove.
22065 (ppc_num_regs): Define.
22066 (ppc_regmap): Renamed from regmap, made static.
22067 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22068 made static.
22069 (ppc_cannot_store_register): Renamed from cannot_store_register,
22070 made static.
22071 (the_low_target): New.
22072 * linux-s390-low.c (num_regs): Remove.
22073 (s390_num_regs): Define.
22074 (s390_regmap): Renamed from regmap, made static.
22075 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22076 made static.
22077 (s390_cannot_store_register): Renamed from cannot_store_register,
22078 made static.
22079 (the_low_target): New.
22080 * linux-sh-low.c (num_regs): Remove.
22081 (sh_num_regs): Define.
22082 (sh_regmap): Renamed from regmap, made static.
22083 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22084 made static.
22085 (sh_cannot_store_register): Renamed from cannot_store_register,
22086 made static.
22087 (the_low_target): New.
22088 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22089 (the_low_target): New.
22090
220912002-04-09 Daniel Jacobowitz <drow@mvista.com>
22092
22093 * Makefile.in: Add stamp-h target.
22094 * configure.in: Create stamp-h.
22095 * configure: Regenerated.
22096
220972002-04-09 Daniel Jacobowitz <drow@mvista.com>
22098
22099 * inferiors.c: New file.
22100 * target.c: New file.
22101 * target.h: New file.
22102 * Makefile.in: Add target.o and inferiors.o. Update
22103 dependencies.
22104 * linux-low.c (inferior_pid): New static variable,
22105 moved from server.c.
22106 (linux_create_inferior): Renamed from create_inferior.
22107 Call add_inferior. Return 0 on success instead of a PID.
22108 (linux_attach): Renamed from myattach.
22109 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22110 (linux_thread_alive): Renamed from mythread_alive.
22111 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22112 child dies.
22113 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22114 (regsets_store_inferior_registers): Correct error message.
22115 Add missing ``return 0''.
22116 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22117 (linux_store_registers): Renamed from store_inferior_registers.
22118 (linux_read_memory): Renamed from read_inferior_memory.
22119 (linux_write_memory): Renamed from write_inferior_memory.
22120 (linux_target_ops): New structure.
22121 (initialize_low): Call set_target_ops ().
22122 * remote-utils.c (unhexify): New function.
22123 (hexify): New function.
22124 (input_interrupt): Send signals to ``signal_pid''.
22125 * server.c (inferior_pid): Remove.
22126 (start_inferior): Update create_inferior call.
22127 (attach_inferior): Call add_inferior.
22128 (handle_query): New function.
22129 (main): Call handle_query for `q' packets.
22130 * server.h: Include "target.h". Remove obsolete prototypes.
22131 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22132
221332002-04-09 Daniel Jacobowitz <drow@mvista.com>
22134
22135 * Makefile.in: Add WARN_CFLAGS. Update configury
22136 dependencies.
22137 * configure.in: Check for <string.h>
22138 * configure: Regenerate.
22139 * config.in: Regenerate.
22140 * gdbreplay.c: Include needed system headers.
22141 (remote_open): Remove strchr prototype.
22142 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22143 * regcache.c (supply_register): Change buf argument to const void *.
22144 (supply_register_by_name): Likewise.
22145 (collect_register): Change buf argument to void *.
22146 (collect_register_by_name): Likewise.
22147 * regcache.h: Add missing prototypes.
22148 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22149 * server.c (handle_query): New function.
22150 (attached): New static variable, moved out of main.
22151 (main): Quiet longjmp clobber warnings.
22152 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22153 * utils.c (error): Remove NORETURN.
22154 (fatal): Likewise.
This page took 2.489242 seconds and 4 git commands to generate.