]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
gdbserver: Don't add extra NULL to program args
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
b69ca137
MW
12020-05-25 Michael Weghorn <m.weghorn@posteo.de>
2
3 * server.cc (captured_main), (handle_v_run): No longer
4 insert extra NULL element to args vector.
5
51e2cfa2
PA
62020-05-23 Pedro Alves <palves@redhat.com>
7
8 * gdb-safe-ctype.h: New.
9
8bbf0394
TBA
102020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11
12 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
13 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
14 (ia64_target::low_breakpoint_at): Ditto.
15
01370779
HD
162020-05-15 Hannes Domani <ssbssa@yahoo.de>
17
18 * win32-i386-low.cc (i386_supports_z_point_type): Handle
19 Z_PACKET_HW_BP z_type.
20 (i386_insert_point): Handle raw_bkpt_type type.
21 (i386_remove_point): Likewise.
22
7d186bc0
HD
232020-04-30 Hannes Domani <ssbssa@yahoo.de>
24
25 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
26 Add arch/i386.o.
27 * win32-arm-low.cc (arm_num_regs): New function.
28 (struct win32_target_ops): Use arm_num_regs.
29 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
30 processes.
31 (i386_get_thread_context): Likewise.
32 (i386_prepare_to_resume): Likewise.
33 (i386_thread_added): Likewise.
34 (i386_single_step): Likewise.
35 (i386_fetch_inferior_register): Likewise.
36 (i386_store_inferior_register): Likewise.
37 (i386_arch_setup): Likewise.
38 (i386_win32_num_regs): New function.
39 (struct win32_target_ops): Use i386_win32_num_regs.
40 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
41 processes.
42 (win32_require_context): Likewise.
43 (child_add_thread): Likewise.
44 (do_initial_child_stuff): Likewise.
45 (continue_one_thread): Likewise.
46 (win32_process_target::resume): Likewise.
47 (load_psapi): Likewise.
48 (win32_add_all_dlls): Likewise.
49 (maybe_adjust_pc): Likewise.
50 (win32_process_target::qxfer_siginfo): Likewise.
51 (initialize_low): Likewise.
52 * win32-low.h (struct win32_target_ops): Change num_regs to
53 callback function.
54
1eb39914
SM
552020-04-27 Simon Marchi <simon.marchi@efficios.com>
56
57 * configure.ac: Remove check for fs_base/gs_base in
58 user_regs_struct.
59 * configure: Re-generate.
60 * config.in: Re-generate.
61 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
62 x86_store_gregset): Adjust.
63
51ac8e22
HD
642020-04-22 Hannes Domani <ssbssa@yahoo.de>
65
66 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
67 comparison.
68
a010605f
TT
692020-04-16 Tom Tromey <tromey@adacore.com>
70
71 * win32-low.cc (windows_nat::handle_access_violation): New
72 function.
73
e2275c6e
SM
742020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
75
76 * win32-low.cc (get_child_debug_event): Fix format string warning.
77
73944e9f
TT
782020-04-13 Tom Tromey <tom@tromey.com>
79
80 * server.h (gdb_fildes_t): Remove typedef.
81 * remote-utils.c (remote_desc, list_desc): Now int.
82 (INVALID_DESCRIPTOR): Remove.
83 (gdb_connected, remote_close)
84 (check_remote_input_interrupt_request): Update.
85 * utils.h (pfildes): Don't declare.
86 * utils.c (pfildes): Remove.
87
55d7aec8
TT
882020-04-13 Tom Tromey <tom@tromey.com>
89
90 * server.h (handle_serial_event, handle_target_event): Update.
91 * server.c: Don't call initialize_event_loop.
92 (keep_processing_events): New global.
93 (handle_serial_event): Return void. Set keep_processing_events.
94 (handle_target_event): Return void.
95 (start_event_loop): Move from event-loop.c. Rewrite.
96 * remote-utils.c (handle_accept_event): Return void.
97 (reset_readchar): Use delete_timer.
98 (process_remaining): Return void.
99 (reschedule): Use create_timer.
100 * event-loop.h: Remove.
101 * event-loop.cc: Remove.
102 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
103
e487f994
TT
1042020-04-13 Tom Tromey <tom@tromey.com>
105
106 * server.c (invoke_async_signal_handlers)
107 (check_async_event_handlers, flush_streams, gdb_select): New
108 functions.
109
8ae8e197
TT
1102020-04-13 Tom Tromey <tom@tromey.com>
111
112 * configure: Rebuild.
113 * config.in: Rebuild.
114
360ad8b3
TT
1152020-04-08 Tom Tromey <tromey@adacore.com>
116
117 PR gdb/22992
118 * win32-low.c (child_continue): Call matching_pending_stop.
119 (get_child_debug_event): Call fetch_pending_stop. Push pending
120 stop when needed.
121
523d4f80
TT
1222020-04-08 Tom Tromey <tromey@adacore.com>
123
124 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
125 (win32_process_target::supports_stopped_by_sw_breakpoint):
126 Declare.
127 * win32-low.c (win32_supports_z_point_type): Always handle
128 Z_PACKET_SW_BP.
129 (win32_insert_point): Call insert_memory_breakpoint when needed.
130 (win32_remove_point): Call remove_memory_breakpoint when needed.
131 (win32_process_target::stopped_by_sw_breakpoint)
132 (win32_process_target::supports_stopped_by_sw_breakpoint): New
133 methods.
134 (win32_target_ops): Update.
135 (maybe_adjust_pc): New function.
136 (win32_wait): Call maybe_adjust_pc.
137
e54e5929
TT
1382020-04-08 Tom Tromey <tromey@adacore.com>
139
140 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
141 field.
142 * win32-i386-low.c (the_low_target): Update.
143 * win32-arm-low.c (the_low_target): Update.
144
d6225aff
TT
1452020-04-08 Tom Tromey <tromey@adacore.com>
146
147 * win32-low.h (win32_process_target::read_pc)
148 (win32_process_target::write_pc): Declare.
149 * win32-low.c (win32_process_target::read_pc)
150 (win32_process_target::write_pc): New methods.
151 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
152 functions.
153 (the_low_target): Update.
154 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
155 functions.
156 (the_low_target): Update.
157
2c1d95e8
TT
1582020-04-08 Tom Tromey <tromey@adacore.com>
159
160 * win32-low.c (win32_kill, get_child_debug_event): Use
161 wait_for_debug_event.
162
e758e19c
TT
1632020-04-08 Tom Tromey <tromey@adacore.com>
164
165 * win32-low.c (child_continue): Call continue_last_debug_event.
166
8d30e395
TT
1672020-04-08 Tom Tromey <tromey@adacore.com>
168
169 * win32-low.c (handle_exception): Remove.
170 (windows_nat::handle_ms_vc_exception): New function.
171 (get_child_debug_event): Add "continue_status" parameter.
172 Update.
173 (win32_wait): Update.
174
a816ba18
TT
1752020-04-08 Tom Tromey <tromey@adacore.com>
176
177 * win32-low.c (windows_nat::handle_load_dll): Rename from
178 handle_load_dll. No longer static.
179 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
180 No longer static.
181
d41b524f
TT
1822020-04-08 Tom Tromey <tromey@adacore.com>
183
184 * win32-low.c (handle_output_debug_string): Add parameter. Change
185 return type.
186 (win32_kill, get_child_debug_event): Update.
187
3c76026d
TT
1882020-04-08 Tom Tromey <tromey@adacore.com>
189
190 * win32-low.c (current_process_handle, current_process_id)
191 (main_thread_id, last_sig, current_event, siginfo_er): Move to
192 nat/windows-nat.c.
193
9d8679cc
TT
1942020-04-08 Tom Tromey <tromey@adacore.com>
195
196 * win32-low.c (get_image_name): Remove.
197 (handle_load_dll): Update.
198
28688adf
TT
1992020-04-08 Tom Tromey <tromey@adacore.com>
200
201 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
202 No longer static. Change parameters.
203 (child_add_thread, child_fetch_inferior_registers)
204 (child_store_inferior_registers, win32_resume)
205 (win32_get_tib_address): Update.
206
4834dad0
TT
2072020-04-08 Tom Tromey <tromey@adacore.com>
208
209 * win32-low.h (struct win32_target_ops): Use qualified names where
210 needed.
211 * win32-i386-low.c: Add "using namespace".
212 * win32-low.c: Add "using namespace".
213 * win32-arm-low.c: Add "using namespace".
214
65bafd5b
TT
2152020-04-08 Tom Tromey <tromey@adacore.com>
216
217 * win32-low.c (delete_thread_info): Don't call CloseHandle.
218
98a03287
TT
2192020-04-08 Tom Tromey <tromey@adacore.com>
220
221 * win32-low.c (win32_require_context, suspend_one_thread): Use
222 windows_thread_info::suspend.
223 (continue_one_thread): Use windows_thread_info::resume.
224 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
225
62fe396b
TT
2262020-04-08 Tom Tromey <tromey@adacore.com>
227
228 * win32-i386-low.c (update_debug_registers)
229 (i386_prepare_to_resume, i386_thread_added): Update.
230
e9534bd2
TT
2312020-04-08 Tom Tromey <tromey@adacore.com>
232
233 * win32-low.c (child_add_thread): Use new.
234 (delete_thread_info): Use delete.
235
ae1f8880
TT
2362020-04-08 Tom Tromey <tromey@adacore.com>
237
238 * win32-low.h (struct windows_thread_info): Remove.
239
e56f8ccb
TT
2402020-04-08 Tom Tromey <tromey@adacore.com>
241
242 * win32-low.h (struct windows_thread_info): Rename from
243 win32_thread_info. Remove typedef.
244 (struct win32_target_ops, win32_require_context): Update.
245 * win32-low.c (win32_get_thread_context)
246 (win32_set_thread_context, win32_prepare_to_resume)
247 (win32_require_context, thread_rec, child_add_thread)
248 (delete_thread_info, continue_one_thread)
249 (child_fetch_inferior_registers, child_store_inferior_registers)
250 (win32_resume, suspend_one_thread, win32_get_tib_address):
251 Update.
252 * win32-i386-low.c (update_debug_registers)
253 (win32_get_current_dr, i386_get_thread_context)
254 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
255 (i386_fetch_inferior_register, i386_store_inferior_register):
256 Update.
257 * win32-arm-low.c (arm_get_thread_context)
258 (arm_fetch_inferior_register, arm_store_inferior_register):
259 Update.
260
0dd7b52e
TBA
2612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
262
263 * linux-low.h (struct linux_target_ops): Remove.
264 (the_low_target): Remove.
265 * linux-x86-low.cc (the_low_target): Remove.
266 * linux-aarch64-low.cc (the_low_target): Ditto.
267 * linux-arm-low.cc (the_low_target): Ditto.
268 * linux-bfin-low.cc (the_low_target): Ditto.
269 * linux-cris-low.cc (the_low_target): Ditto.
270 * linux-crisv32-low.cc (the_low_target): Ditto.
271 * linux-ia64-low.cc (the_low_target): Ditto.
272 * linux-m32r-low.cc (the_low_target): Ditto.
273 * linux-m68k-low.cc (the_low_target): Ditto.
274 * linux-mips-low.cc (the_low_target): Ditto.
275 * linux-nios2-low.cc (the_low_target): Ditto.
276 * linux-ppc-low.cc (the_low_target): Ditto.
277 * linux-riscv-low.cc (the_low_target): Ditto.
278 * linux-s390-low.cc (the_low_target): Ditto.
279 * linux-sh-low.cc (the_low_target): Ditto.
280 * linux-sparc-low.cc (the_low_target): Ditto.
281 * linux-tic6x-low.cc (the_low_target): Ditto.
282 * linux-tile-low.cc (the_low_target): Ditto.
283 * linux-xtensa-low.cc (the_low_target): Ditto.
284
fc5ecdb6
TBA
2852020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
286
287 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
288 linux target define the op by overriding the declaration in
289 process_stratum_target.
290
291 * linux-low.h (struct linux_target_ops): Remove the op.
292 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
293 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
294 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
295 (x86_get_ipa_tdesc_idx): Turn into...
296 (x86_target::get_ipa_tdesc_idx): ...this.
297 (the_low_target): Remove the op field.
298 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
299 (ppc_get_ipa_tdesc_idx): Turn into...
300 (ppc_target::get_ipa_tdesc_idx): ...this.
301 (the_low_target): Remove the op field.
302 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
303 (s390_get_ipa_tdesc_idx): Turn into...
304 (s390_target::get_ipa_tdesc_idx): ...this.
305 (the_low_target): Remove the op field.
306
9eedd27d
TBA
3072020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
308
309 Turn the 'get_syscall_trapinfo' linux target op into a method
310 of process_stratum_target.
311
312 * linux-low.h (struct linux_target_ops): Remove the op.
313 (class linux_process_target) <get_syscall_trapinfo>
314 <gdb_catch_this_syscall>
315 <low_supports_catch_syscall>
316 <low_get_syscall_trapinfo>: Declare.
317 * linux-low.cc (get_syscall_trapinfo): Turn into...
318 (linux_process_target::get_syscall_trapinfo): ...this.
319 (linux_process_target::low_get_syscall_trapinfo): Define.
320 (gdb_catch_this_syscall_p): Turn into...
321 (linux_process_target::gdb_catch_this_syscall): ...this.
322 (linux_process_target::low_supports_catch_syscall): Define.
323
324 Update the callers below.
325
326 (linux_process_target::wait_1)
327 (linux_process_target::supports_catch_syscall)
328
329 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
330 <low_get_syscall_trapinfo>: Declare.
331 (x86_target::low_supports_catch_syscall): Define.
332 (x86_get_syscall_trapinfo): Turn into...
333 (x86_target::low_get_syscall_trapinfo): ...this.
334 (the_low_target): Remove the op field.
335 * linux-aarch64-low.cc (class aarch64_target)
336 <low_supports_catch_syscall>
337 <low_get_syscall_trapinfo>: Declare.
338 (aarch64_target::low_supports_catch_syscall): Define.
339 (aarch64_get_syscall_trapinfo): Turn into...
340 (aarch64_target::low_get_syscall_trapinfo): ...this.
341 (the_low_target): Remove the op field.
342 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
343 <low_get_syscall_trapinfo>: Declare.
344 (arm_target::low_supports_catch_syscall): Define.
345 (arm_get_syscall_trapinfo): Turn into...
346 (arm_target::low_get_syscall_trapinfo): ...this.
347 (the_low_target): Remove the op field.
348 * linux-ppc-low.cc (the_low_target): Remove the op field.
349 * linux-s390-low.cc (the_low_target): Remove the op field.
350
b31cdfa6
TBA
3512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
352
353 Remove the 'supports_hardware_single_step' linux target op and
354 override the process_stratum_target's op definition in
355 linux_process_target to return true.
356
357 * linux-low.h (struct linux_target_ops): Remove the op.
358 (class linux_process_target) <finish_step_over>
359 <maybe_hw_step>: Declare.
360 * linux-low.cc (can_hardware_single_step): Remove.
361 (maybe_hw_step): Turn into...
362 (linux_process_target::maybe_hw_step): ...this.
363 (finish_step_over): Turn into...
364 (linux_process_target::finish_step_over): ...this.
365 (linux_process_target::supports_hardware_single_step): Update
366 to return true.
367
368 Update the callers below.
369
370 (linux_process_target::single_step)
371 (linux_process_target::resume_one_lwp_throw)
372
373 * linux-arm-low.cc (class arm_target)
374 <supports_hardware_single_step>: Declare.
375 (arm_supports_hardware_single_step): Turn into...
376 (arm_target::supports_hardware_single_step): ...this.
377 (the_low_target): Remove the op field.
378 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
379 (the_low_target): Remove the op field.
380 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
381 Remove.
382 (the_low_target): Remove the op field.
383 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
384 (the_low_target): Remove the op field.
385 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
386 (the_low_target): Remove the op field.
387 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
388 (the_low_target): Remove the op field.
389 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
390 (the_low_target): Remove the op field.
391 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
392 (the_low_target): Remove the op field.
393 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
394 (the_low_target): Remove the op field.
395 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
396 (the_low_target): Remove the op field.
397 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
398 (the_low_target): Remove the op field.
399 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
400 (the_low_target): Remove the op field.
401 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
402 Remove.
403 (the_low_target): Remove the op field.
404
9cfd8715
TBA
4052020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
406
407 Turn the 'supports_range_stepping' linux target op into a method
408 of linux_process_target.
409
410 * linux-low.h (struct linux_target_ops): Remove the op.
411 (class linux_process_target) <low_supports_range_stepping>: Declare.
412 * linux-low.cc (linux_process_target::low_supports_range_stepping):
413 Define.
414 (linux_process_target::supports_range_stepping): Update the call
415 site.
416 * linux-x86-low.cc (class x86_target)
417 <low_supports_range_stepping>: Declare.
418 (x86_supports_range_stepping): Turn into...
419 (x86_target::low_supports_range_stepping): ...this.
420 (the_low_target): Remove the op field.
421 * linux-aarch64-low.cc (class aarch64_target)
422 <low_supports_range_stepping>: Declare.
423 (aarch64_supports_range_stepping): Turn into...
424 (aarch64_target::low_supports_range_stepping): ...this.
425 (the_low_target): Remove the op field.
426 * linux-arm-low.cc (the_low_target): Remove the op field.
427 * linux-bfin-low.cc (the_low_target): Ditto.
428 * linux-crisv32-low.cc (the_low_target): Ditto.
429 * linux-m32r-low.cc (the_low_target): Ditto.
430 * linux-m68k-low.cc (the_low_target): Ditto.
431 * linux-ppc-low.cc (the_low_target): Ditto.
432 * linux-s390-low.cc (the_low_target): Ditto.
433 * linux-sh-low.cc (the_low_target): Ditto.
434 * linux-tic6x-low.cc (the_low_target): Ditto.
435 * linux-tile-low.cc (the_low_target): Ditto.
436 * linux-xtensa-low.cc (the_low_target): Ditto.
437
ab64c999
TBA
4382020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
439
440 Remove the 'emit_ops' linux target ops and let the concrete
441 linux target define the op by overriding the declaration of
442 process_stratum_target.
443
444 * linux-low.h (struct linux_target_ops): Remove the op.
445 (class linux_process_target) <emit_ops>: Remove.
446 * linux-low.cc (linux_process_target::emit_ops): Remove.
447 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
448 (x86_emit_ops): Turn into...
449 (x86_target::emit_ops): ...this.
450 (the_low_target): Remove the op field.
451 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
452 (aarch64_emit_ops): Turn into...
453 (aarch64_target::emit_ops): ...this.
454 (the_low_target): Remove the op field.
455 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
456 (ppc_emit_ops): Turn into...
457 (ppc_target::emit_ops): ...this.
458 (the_low_target): Remove the op field.
459 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
460 (s390_emit_ops): Turn into...
461 (s390_target::emit_ops): ...this.
462 (the_low_target): Remove the op field.
463 * linux-arm-low.cc (the_low_target): Remove the op field.
464 * linux-bfin-low.cc (the_low_target): Ditto.
465 * linux-crisv32-low.cc (the_low_target): Ditto.
466 * linux-m32r-low.cc (the_low_target): Ditto.
467 * linux-m68k-low.cc (the_low_target): Ditto.
468 * linux-sh-low.cc (the_low_target): Ditto.
469 * linux-tic6x-low.cc (the_low_target): Ditto.
470 * linux-tile-low.cc (the_low_target): Ditto.
471 * linux-xtensa-low.cc (the_low_target): Ditto.
472
809a0c35
TBA
4732020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
474
475 Remove the 'install_fast_tracepoint_jump_pad' and
476 'get_min_fast_tracepoint_insn_len' linux target ops to let the
477 concrete linux target define the ops by overriding the declarations
478 of process_stratum_target.
479
480 * linux-low.h (struct linux_target_ops): Remove the ops.
481 (class linux_process_target) <supports_fast_tracepoints>
482 <install_fast_tracepoint_jump_pad>
483 <get_min_fast_tracepoint_insn_len>: Remove.
484 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
485 (linux_process_target::install_fast_tracepoint_jump_pad)
486 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
487 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
488 <install_fast_tracepoint_jump_pad>
489 <get_min_fast_tracepoint_insn_len>: Declare.
490 (x86_target::supports_fast_tracepoints): Define.
491 (x86_install_fast_tracepoint_jump_pad): Turn into...
492 (x86_target::install_fast_tracepoint_jump_pad): ...this.
493 (x86_get_min_fast_tracepoint_insn_len): Turn into...
494 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
495 (the_low_target): Remove the op fields.
496 * linux-aarch64-low.cc (class aarch64_target)
497 <supports_fast_tracepoints>
498 <install_fast_tracepoint_jump_pad>
499 <get_min_fast_tracepoint_insn_len>: Declare.
500 (aarch64_target::supports_fast_tracepoints): Define.
501 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
502 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
503 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
504 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
505 (the_low_target): Remove the op fields.
506 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
507 <install_fast_tracepoint_jump_pad>
508 <get_min_fast_tracepoint_insn_len>: Declare.
509 (ppc_target::supports_fast_tracepoints): Define.
510 (ppc_install_fast_tracepoint_jump_pad): Turn into...
511 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
512 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
513 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
514 (the_low_target): Remove the op fields.
515 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
516 <install_fast_tracepoint_jump_pad>
517 <get_min_fast_tracepoint_insn_len>: Declare.
518 (s390_target::supports_fast_tracepoints): Define.
519 (s390_install_fast_tracepoint_jump_pad): Turn into...
520 (s390_target::install_fast_tracepoint_jump_pad): ...this.
521 (s390_get_min_fast_tracepoint_insn_len): Turn into...
522 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
523 (the_low_target): Remove the op fields.
524 * linux-arm-low.cc (the_low_target): Remove the op fields.
525 * linux-bfin-low.cc (the_low_target): Ditto.
526 * linux-crisv32-low.cc (the_low_target): Ditto.
527 * linux-m32r-low.cc (the_low_target): Ditto.
528 * linux-m68k-low.cc (the_low_target): Ditto.
529 * linux-sh-low.cc (the_low_target): Ditto.
530 * linux-tic6x-low.cc (the_low_target): Ditto.
531 * linux-tile-low.cc (the_low_target): Ditto.
532 * linux-xtensa-low.cc (the_low_target): Ditto.
533
13e567af
TBA
5342020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
535
536 Turn the 'get_thread_area' linux target op into a method of
537 process_stratum_target.
538
539 * linux-low.h (struct linux_target_ops): Remove the op.
540 (class linux_process_target) <stuck_in_jump_pad>
541 <linux_fast_tracepoint_collecting>
542 <low_get_thread_area>: Declare.
543 * linux-low.cc (supports_fast_tracepoints): Remove.
544 (linux_fast_tracepoint_collecting): Turn into...
545 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
546 (linux_process_target::low_get_thread_area): Define.
547 (stuck_in_jump_pad_callback): Turn into...
548 (linux_process_target::stuck_in_jump_pad): ...this.
549
550 Update the caller below.
551
552 (linux_process_target::stabilize_threads)
553
554 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
555 Declare.
556 (x86_get_thread_area): Turn into...
557 (x86_target::low_get_thread_area): ...this.
558 (the_low_target): Remove the op field.
559 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
560 Declare.
561 (aarch64_get_thread_area): Turn into...
562 (aarch64_target::low_get_thread_area): ...this.
563 (the_low_target): Remove the op field.
564 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
565 Declare.
566 (ppc_get_thread_area): Turn into...
567 (ppc_target::low_get_thread_area): ...this.
568 (the_low_target): Remove the op field.
569 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
570 Declare.
571 (s390_get_thread_area): Turn into...
572 (s390_target::low_get_thread_area): ...this.
573 (the_low_target): Remove the op field.
574 * linux-arm-low.cc (the_low_target): Remove the op field.
575 * linux-bfin-low.cc (the_low_target): Ditto.
576 * linux-crisv32-low.cc (the_low_target): Ditto.
577 * linux-m32r-low.cc (the_low_target): Ditto.
578 * linux-m68k-low.cc (the_low_target): Ditto.
579 * linux-sh-low.cc (the_low_target): Ditto.
580 * linux-tic6x-low.cc (the_low_target): Ditto.
581 * linux-tile-low.cc (the_low_target): Ditto.
582 * linux-xtensa-low.cc (the_low_target): Ditto.
583
47f70aa7
TBA
5842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
585
586 Remote the 'supports_tracepoints' linux target op and let the
587 concrete linux target define it by overriding the op declared in
588 process_stratum_target.
589
590 * linux-low.h (struct linux_target_ops): Remove the op.
591 (class linux_process_target) <supports_tracepoints>: Remove.
592 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
593 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
594 Declare.
595 (x86_supports_tracepoints): Turn into...
596 (x86_target::supports_tracepoints): ...this.
597 (the_low_target): Remove the op field.
598 * linux-aarch64-low.cc (class aarch64_target)
599 <supports_tracepoints>: Declare.
600 (aarch64_supports_tracepoints): Turn into...
601 (aarch64_target::supports_tracepoints): ...this.
602 (the_low_target): Remove the op field.
603 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
604 Declare.
605 (ppc_supports_tracepoints): Turn into...
606 (ppc_target::supports_tracepoints): ...this.
607 (the_low_target): Remove the op field.
608 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
609 Declare.
610 (s390_supports_tracepoints): Turn into...
611 (s390_target::supports_tracepoints): ...this.
612 (the_low_target): Remove the op field.
613 * linux-arm-low.cc (the_low_target): Remove the op field.
614 * linux-bfin-low.cc (the_low_target): Ditto.
615 * linux-crisv32-low.cc (the_low_target): Ditto.
616 * linux-m32r-low.cc (the_low_target): Ditto.
617 * linux-m68k-low.cc (the_low_target): Ditto.
618 * linux-sh-low.cc (the_low_target): Ditto.
619 * linux-tic6x-low.cc (the_low_target): Ditto.
620 * linux-tile-low.cc (the_low_target): Ditto.
621 * linux-xtensa-low.cc (the_low_target): Ditto.
622
a5b5da92
TBA
6232020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
624
625 Remove the 'process_qsupported' linux target op and let a concrete
626 linux target define the op by overriding the op declaration in
627 process_stratum_target.
628
629 * linux-low.h (struct linux_target_ops): Remove the op.
630 (class linux_process_target) <process_qsupported>: Remove.
631 * linux-low.cc (linux_process_target::process_qsupported): Remove.
632 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
633 (x86_linux_process_qsupported): Turn into...
634 (x86_target::process_qsupported): ...this.
635 (the_low_target): Remove the op field.
636 * linux-aarch64-low.cc (the_low_target): Remove the op
637 field.
638 * linux-arm-low.cc (the_low_target): Ditto.
639 * linux-bfin-low.cc (the_low_target): Ditto.
640 * linux-crisv32-low.cc (the_low_target): Ditto.
641 * linux-m32r-low.cc (the_low_target): Ditto.
642 * linux-m68k-low.cc (the_low_target): Ditto.
643 * linux-ppc-low.cc (the_low_target): Ditto.
644 * linux-s390-low.cc (the_low_target): Ditto.
645 * linux-sh-low.cc (the_low_target): Ditto.
646 * linux-tic6x-low.cc (the_low_target): Ditto.
647 * linux-tile-low.cc (the_low_target): Ditto.
648 * linux-xtensa-low.cc (the_low_target): Ditto.
649
d7599cc0
TBA
6502020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
651
652 Turn the 'prepare_to_resume' linux target op into a method of
653 linux_process_target.
654
655 * linux-low.h (struct linux_target_ops): Remove the op.
656 (class linux_process_target) <low_prepare_to_resume>: Declare.
657 * linux-low.cc (linux_process_target::low_prepare_to_resume):
658 Define.
659
660 Update the callers below:
661
662 (linux_process_target::resume_one_lwp_throw)
663 (linux_process_target::low_prepare_to_resume)
664
665 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
666 Declare.
667 (x86_target::low_prepare_to_resume): Define.
668 (the_low_target): Remove the op field.
669 * linux-aarch64-low.cc (class aarch64_target)
670 <low_prepare_to_resume>: Declare.
671 (aarch64_target::low_prepare_to_resume): Define.
672 (the_low_target): Remove the op field.
673 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
674 Declare.
675 (arm_prepare_to_resume): Turn into...
676 (arm_target::low_prepare_to_resume): ...this.
677 (the_low_target): Remove the op field.
678 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
679 Declare.
680 (mips_linux_prepare_to_resume): Turn into...
681 (mips_target::low_prepare_to_resume): ...this.
682 (the_low_target): Remove the op field.
683 * linux-bfin-low.cc (the_low_target): Remove the op field.
684 * linux-crisv32-low.cc (the_low_target): Ditto.
685 * linux-m32r-low.cc (the_low_target): Ditto.
686 * linux-m68k-low.cc (the_low_target): Ditto.
687 * linux-ppc-low.cc (the_low_target): Ditto.
688 * linux-s390-low.cc (the_low_target): Ditto.
689 * linux-sh-low.cc (the_low_target): Ditto.
690 * linux-tic6x-low.cc (the_low_target): Ditto.
691 * linux-tile-low.cc (the_low_target): Ditto.
692 * linux-xtensa-low.cc (the_low_target): Ditto.
693
fd000fb3
TBA
6942020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
695
696 Turn the 'new_process', 'delete_process', 'new_thread',
697 'delete_thread', and 'new_fork' linux target ops into methods
698 of linux_process_target.
699
700 * linux-low.h (struct linux_target_ops): Remove the ops.
701 (class linux_process_target) <add_linux_process>
702 <add_lwp>
703 <delete_lwp>
704 <attach_lwp>
705 <detach_one_lwp>
706 <check_zombie_leaders>
707 <filter_exit_event>
708 <low_new_process>
709 <low_delete_process>
710 <low_new_thread>
711 <low_delete_thread>
712 <low_new_fork>: Declare.
713 * linux-low.cc (delete_lwp): Turn into...
714 (linux_process_target::delete_lwp): ...this.
715 (linux_process_target::low_delete_thread): Define.
716 (linux_add_process): Turn into...
717 (linux_process_target::add_linux_process): ...this.
718 (linux_process_target::low_new_process): Define.
719 (linux_process_target::low_delete_process): Define.
720 (linux_process_target::low_new_fork): Define.
721 (add_lwp): Turn into...
722 (linux_process_target::add_lwp): ...this.
723 (linux_process_target::low_new_thread): Define.
724 (linux_attach_lwp): Turn into...
725 (linux_process_target::attach_lwp): ...this.
726 (linux_detach_one_lwp): Turn into...
727 (linux_process_target::detach_one_lwp): ...this.
728 (linux_detach_lwp_callback): Remove and inline...
729 (linux_process_target::detach): ...here.
730 (check_zombie_leaders): Turn into...
731 (linux_process_target::check_zombie_leaders): ...this.
732 (filter_exit_event): Turn into...
733 (linux_process_target::filter_exit_event): ...this.
734
735 Update the callers below.
736
737 (linux_process_target::handle_extended_wait)
738 (linux_process_target::create_inferior)
739 (attach_proc_task_lwp_callback)
740 (linux_process_target::attach)
741 (linux_process_target::detach)
742 (linux_process_target::mourn)
743 * thread-db.cc (attach_thread)
744
745 * linux-x86-low.cc (class x86_target) <low_new_process>
746 <low_delete_process>
747 <low_new_thread>
748 <low_delete_thread>
749 <low_new_fork>: Declare.
750 (x86_linux_new_process): Turn into...
751 (x86_target::low_new_process): ...this.
752 (x86_linux_delete_process): Turn into...
753 (x86_target::low_delete_process): ...this.
754 (x86_target::low_new_thread): Define.
755 (x86_target::low_delete_thread): Define.
756 (x86_linux_new_fork): Turn into...
757 (x86_target::low_new_fork): ...this.
758 (the_low_target): Remove the op fields.
759 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
760 <low_delete_process>
761 <low_new_thread>
762 <low_delete_thread>
763 <low_new_fork>: Declare.
764 (aarch64_linux_new_process): Turn into...
765 (aarch64_target::low_new_process): ...this.
766 (aarch64_linux_delete_process): Turn into...
767 (aarch64_target::low_delete_process): ...this.
768 (aarch64_target::low_new_thread): Define.
769 (aarch64_target::low_delete_thread): Define.
770 (aarch64_linux_new_fork): Turn into...
771 (aarch64_target::low_new_fork): ...this.
772 (the_low_target): Remove the op fields.
773 * linux-arm-low.cc (class arm_target) <low_new_process>
774 <low_delete_process>
775 <low_new_thread>
776 <low_delete_thread>
777 <low_new_fork>: Declare.
778 (arm_new_process): Turn into...
779 (arm_target::low_new_process): ...this.
780 (arm_delete_process): Turn into...
781 (arm_target::low_delete_process): ...this.
782 (arm_new_thread): Turn into...
783 (arm_target::low_new_thread): ...this.
784 (arm_delete_thread): Turn into...
785 (arm_target::low_delete_thread): ...this.
786 (arm_new_fork): Turn into...
787 (arm_target::low_new_fork): ...this.
788 (the_low_target): Remove the op fields.
789 * linux-mips-low.cc (class mips_target) <low_new_process>
790 <low_delete_process>
791 <low_new_thread>
792 <low_delete_thread>
793 <low_new_fork>: Declare.
794 (mips_linux_new_process): Turn into...
795 (mips_target::low_new_process): ...this.
796 (mips_linux_delete_process): Turn into...
797 (mips_target::low_delete_process): ...this.
798 (mips_linux_new_thread): Turn into...
799 (mips_target::low_new_thread): ...this.
800 (mips_linux_delete_thread): Turn into...
801 (mips_target::low_delete_thread): ...this.
802 (mips_linux_new_fork): Turn into...
803 (mips_target::low_new_fork): ...this.
804 (the_low_target): Remove the op fields.
805 * linux-bfin-low.cc (the_low_target): Remove the op fields.
806 * linux-crisv32-low.cc (the_low_target): Ditto.
807 * linux-m32r-low.cc (the_low_target): Ditto.
808 * linux-m68k-low.cc (the_low_target): Ditto.
809 * linux-ppc-low.cc (the_low_target): Ditto.
810 * linux-s390-low.cc (the_low_target): Ditto.
811 * linux-sh-low.cc (the_low_target): Ditto.
812 * linux-tic6x-low.cc (the_low_target): Ditto.
813 * linux-tile-low.cc (the_low_target): Ditto.
814 * linux-xtensa-low.cc (the_low_target): Ditto.
815
cb63de7c
TBA
8162020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
817
818 Turn the 'siginfo_fixup' linux target op into a method of
819 linux_process_target.
820
821 * linux-low.h (struct linux_target_ops): Remove the op.
822 (class linux_process_target) <siginfo_fixup>
823 <low_siginfo_fixup>: Declare.
824 * linux-low.cc (siginfo_fixup): Turn into...
825 (linux_process_target::siginfo_fixup): ...this.
826 (linux_process_target::low_siginfo_fixup): Define.
827 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
828 (x86_siginfo_fixup): Turn into...
829 (x86_target::low_siginfo_fixup): ...this.
830 (the_low_target): Remove the op field.
831 * linux-aarch64-low.cc (class aarch64_target):
832 <low_siginfo_fixup>: Declare.
833 (aarch64_linux_siginfo_fixup): Turn into...
834 (aarch64_target::low_siginfo_fixup): ...this.
835 (the_low_target): Remove the op field.
836 * linux-arm-low.cc (the_low_target): Remove the op field.
837 * linux-bfin-low.cc (the_low_target): Ditto.
838 * linux-crisv32-low.cc (the_low_target): Ditto.
839 * linux-m32r-low.cc (the_low_target): Ditto.
840 * linux-m68k-low.cc (the_low_target): Ditto.
841 * linux-mips-low.cc (the_low_target): Ditto.
842 * linux-ppc-low.cc (the_low_target): Ditto.
843 * linux-s390-low.cc (the_low_target): Ditto.
844 * linux-sh-low.cc (the_low_target): Ditto.
845 * linux-tic6x-low.cc (the_low_target): Ditto.
846 * linux-tile-low.cc (the_low_target): Ditto.
847 * linux-xtensa-low.cc (the_low_target): Ditto.
848
b35db733
TBA
8492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
850
851 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
852 linux target ops into methods of linux_process_target.
853
854 * linux-low.h (struct linux_target_ops): Remove the ops.
855 (class linux_process_target) <low_collect_ptrace_register>
856 <low_store_ptrace_register>: Declare.
857 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
858 (linux_process_target::low_supply_ptrace_register): Define.
859
860 Update the callers below.
861
862 (linux_process_target::fetch_register)
863 (linux_process_target::store_register)
864
865 * linux-x86-low.cc (the_low_target): Remove the op fields.
866 * linux-aarch64-low.cc (the_low_target): Ditto.
867 * linux-arm-low.cc (the_low_target): Ditto.
868 * linux-bfin-low.cc (the_low_target): Ditto.
869 * linux-crisv32-low.cc (the_low_target): Ditto.
870 * linux-m32r-low.cc (the_low_target): Ditto.
871 * linux-m68k-low.cc (the_low_target): Ditto.
872 * linux-sh-low.cc (the_low_target): Ditto.
873 * linux-sparc-low.cc (the_low_target): Ditto.
874 * linux-tic6x-low.cc (the_low_target): Ditto.
875 * linux-tile-low.cc (the_low_target): Ditto.
876 * linux-xtensa-low.cc (the_low_target): Ditto.
877 * linux-mips-low.cc (class mips_target)
878 <low_collect_ptrace_register>
879 <low_supply_ptrace_register>: Declare.
880 (mips_collect_ptrace_register): Turn into ...
881 (mips_target::low_collect_ptrace_register): ...this.
882 (mips_supply_ptrace_register): Turn into...
883 (mips_target::low_supply_ptrace_register): ...this.
884 (the_low_target): Remove the op fields.
885 * linux-ppc-low.cc (class ppc_target)
886 <low_collect_ptrace_register>
887 <low_supply_ptrace_register>: Declare.
888 (ppc_collect_ptrace_register): Turn into ...
889 (ppc_target::low_collect_ptrace_register): ...this.
890 (ppc_supply_ptrace_register): Turn into ...
891 (ppc_target::low_supply_ptrace_register): ...this.
892 (ppc_fill_gregset): Update for the calls to
893 low_collect_ptrace_register.
894 (the_low_target): Remove the op fields.
895 * linux-s390-low.cc (class s390_target)
896 <low_collect_ptrace_register>
897 <low_supply_ptrace_register>: Declare.
898 (s390_collect_ptrace_register): Turn into ...
899 (s390_target::low_collect_ptrace_register): ...this.
900 (s390_supply_ptrace_register): Turn into ...
901 (s390_target::low_supply_ptrace_register): ...this.
902 (s390_fill_gregset): Update for the calls to
903 low_collect_ptrace_register.
904 (the_low_target): Remove the op fields.
905
ac1bbaca
TBA
9062020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
907
908 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
909 target ops into methods of linux_process_target.
910
911 * linux-low.h (struct linux_target_ops): Remove the ops.
912 (class linux_process_target) <check_stopped_by_watchpoint>
913 <low_stopped_by_watchpoint>
914 <low_stopped_data_address>: Declare.
915 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
916 (linux_process_target::check_stopped_by_watchpoint): ...this.
917 (linux_process_target::low_stopped_by_watchpoint): Define.
918 (linux_process_target::low_stopped_data_address): Define.
919 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
920 <low_stopped_data_address>: Declare.
921 (x86_stopped_by_watchpoint): Turn into...
922 (x86_target::low_stopped_by_watchpoint): ...this.
923 (x86_stopped_data_address): Turn into...
924 (x86_target::low_stopped_data_address): ...this.
925 (the_low_target): Remove the op fields.
926 * linux-aarch64-low.cc (class aarch64_target)
927 <low_stopped_by_watchpoint>
928 <low_stopped_data_address>: Declare.
929 (aarch64_stopped_by_watchpoint): Turn into...
930 (aarch64_target::low_stopped_by_watchpoint): ...this.
931 (aarch64_stopped_data_address): Turn into...
932 (aarch64_target::low_stopped_data_address): ...this.
933 (the_low_target): Remove the op fields.
934 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
935 <low_stopped_data_address>: Declare.
936 (arm_stopped_by_watchpoint): Turn into...
937 (arm_target::low_stopped_by_watchpoint): ...this.
938 (arm_stopped_data_address): Turn into...
939 (arm_target::low_stopped_data_address): ...this.
940 (the_low_target): Remove the op fields.
941 * linux-crisv32-low.cc (class crisv32_target)
942 <low_stopped_by_watchpoint>
943 <low_stopped_data_address>: Declare.
944 (cris_stopped_by_watchpoint): Turn into...
945 (crisv32_target::low_stopped_by_watchpoint): ...this.
946 (cris_stopped_data_address): Turn into...
947 (crisv32_target::low_stopped_data_address): ...this.
948 (the_low_target): Remove the op fields.
949 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
950 <low_stopped_data_address>: Declare.
951 (mips_stopped_by_watchpoint): Turn into...
952 (mips_target::low_stopped_by_watchpoint): ...this.
953 (mips_stopped_data_address): Turn into...
954 (mips_target::low_stopped_data_address): ...this.
955 (the_low_target): Remove the op fields.
956 * linux-bfin-low.cc (the_low_target): Remove the op fields.
957 * linux-m32r-low.cc (the_low_target): Ditto.
958 * linux-m68k-low.cc (the_low_target): Ditto.
959 * linux-ppc-low.cc (the_low_target): Ditto.
960 * linux-s390-low.cc (the_low_target): Ditto.
961 * linux-sh-low.cc (the_low_target): Ditto.
962 * linux-sparc-low.cc (the_low_target): Ditto.
963 * linux-tic6x-low.cc (the_low_target): Ditto.
964 * linux-tile-low.cc (the_low_target): Ditto.
965 * linux-xtensa-low.cc (the_low_target): Ditto.
966
9db9aa23
TBA
9672020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
968
969 Turn the 'insert_point' and 'remove_point' linux target ops into
970 methods of linux_process_target.
971
972 * linux-low.h (struct linux_target_ops): Remove the ops.
973 (class linux_process_target) <low_insert_point>
974 <low_remove_point>: Declare.
975 * linux-low.cc (linux_process_target::low_insert_point)
976 (linux_process_target::low_remove_point): Define.
977 (linux_process_target::insert_point)
978 (linux_process_target::remove_point): Update for calls to
979 low_insert_point and low_remove_point.
980 * linux-x86-low.cc (class x86_target) <low_insert_point>
981 <low_remove_point>: Declare.
982 (x86_insert_point): Turn into...
983 (x86_target::low_insert_point): ...this.
984 (x86_remove_point): Turn into...
985 (x86_target::low_remove_point): ...this.
986 (the_low_target): Remove the op fields.
987 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
988 <low_remove_point>: Declare.
989 (aarch64_insert_point): Turn into...
990 (aarch64_target::low_insert_point): ...this.
991 (aarch64_remove_point): Turn into...
992 (aarch64_target::low_remove_point): ...this.
993 (the_low_target): Remove the op fields.
994 * linux-arm-low.cc (class arm_target) <low_insert_point>
995 <low_remove_point>: Declare.
996 (arm_insert_point): Turn into...
997 (arm_target::low_insert_point): ...this.
998 (arm_remove_point): Turn into...
999 (arm_target::low_remove_point): ...this.
1000 (the_low_target): Remove the op fields.
1001 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1002 <low_remove_point>: Declare.
1003 (crisv32_insert_point): Turn into...
1004 (crisv32_target::low_insert_point): ...this.
1005 (crisv32_remove_point): Turn into...
1006 (crisv32_target::low_remove_point): ...this.
1007 (the_low_target): Remove the op fields.
1008 * linux-mips-low.cc (class mips_target) <low_insert_point>
1009 <low_remove_point>: Declare.
1010 (mips_insert_point): Turn into...
1011 (mips_target::low_insert_point): ...this.
1012 (mips_remove_point): Turn into...
1013 (mips_target::low_remove_point): ...this.
1014 (the_low_target): Remove the op fields.
1015 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1016 <low_remove_point>: Declare.
1017 (ppc_insert_point): Turn into...
1018 (ppc_target::low_insert_point): ...this.
1019 (ppc_remove_point): Turn into...
1020 (ppc_target::low_remove_point): ...this.
1021 (the_low_target): Remove the op fields.
1022 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1023 * linux-m32r-low.cc (the_low_target): Ditto.
1024 * linux-m68k-low.cc (the_low_target): Ditto.
1025 * linux-s390-low.cc (the_low_target): Ditto.
1026 * linux-sh-low.cc (the_low_target): Ditto.
1027 * linux-sparc-low.cc (the_low_target): Ditto.
1028 * linux-tic6x-low.cc (the_low_target): Ditto.
1029 * linux-tile-low.cc (the_low_target): Ditto.
1030 * linux-xtensa-low.cc (the_low_target): Ditto.
1031
007c9b97
TBA
10322020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1033
1034 Remove the 'supports_z_point_type' linux target op and let the
1035 concrete linux target define it by overriding the op declared in
1036 process_stratum_target.
1037
1038 * linux-low.cc (linux_process_target::supports_z_point_type):
1039 Remove.
1040 * linux-low.h (struct linux_target_ops): Remove the op.
1041 (class linux_process_target) <supports_z_point_type>: Remove.
1042 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1043 Declare.
1044 (x86_supports_z_point_type): Turn into...
1045 (x86_target::supports_z_point_type): ...this.
1046 (the_low_target): Remove the op field.
1047 * linux-aarch64-low.cc (class aarch64_target)
1048 <supports_z_point_type>: Declare.
1049 (aarch64_supports_z_point_type): Turn into...
1050 (aarch64_target::supports_z_point_type): ...this.
1051 (the_low_target): Remove the op field.
1052 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1053 Declare.
1054 (arm_supports_z_point_type): Turn into...
1055 (arm_target::supports_z_point_type): ...this.
1056 (the_low_target): Remove the op field.
1057 * linux-crisv32-low.cc (class crisv32_target)
1058 <supports_z_point_type>: Declare.
1059 (cris_supports_z_point_type): Turn into...
1060 (crisv32_target::supports_z_point_type): ...this.
1061 (the_low_target): Remove the op field.
1062 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1063 Declare.
1064 (mips_supports_z_point_type): Turn into...
1065 (mips_target::supports_z_point_type): ...this.
1066 (the_low_target): Remove the op field.
1067 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1068 Declare.
1069 (ppc_supports_z_point_type): Turn into...
1070 (ppc_target::supports_z_point_type): ...this.
1071 (the_low_target): Remove the op field.
1072 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1073 Declare.
1074 (s390_supports_z_point_type): Turn into...
1075 (s390_target::supports_z_point_type): ...this.
1076 (the_low_target): Remove the op field.
1077 * linux-bfin-low.cc (the_low_target): Remove the op field.
1078 * linux-m32r-low.cc (the_low_target): Ditto.
1079 * linux-m68k-low.cc (the_low_target): Ditto.
1080 * linux-sh-low.cc (the_low_target): Ditto.
1081 * linux-sparc-low.cc (the_low_target): Ditto.
1082 * linux-tic6x-low.cc (the_low_target): Ditto.
1083 * linux-tile-low.cc (the_low_target): Ditto.
1084 * linux-xtensa-low.cc (the_low_target): Ditto.
1085
d7146cda
TBA
10862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1087
1088 Turn the 'breakpoint_at' linux target op into a method of
1089 linux_process_target.
1090
1091 * linux-low.h (struct linux_target_ops): Remove the op.
1092 (class linux_process_target) <low_breakpoint_at>: Declare.
1093
1094 Update the callers below:
1095
1096 * linux-low.cc (linux_process_target::save_stop_reason)
1097 (linux_process_target::thread_still_has_status_pending)
1098 (linux_process_target::wait_1)
1099
1100 * linux-x86-low.cc (class x86_target)
1101 <low_breakpoint_at>: Declare.
1102 (x86_breakpoint_at): Turn into...
1103 (x86_target::low_breakpoint_at): ...this.
1104 (the_low_target): Remove the op field.
1105 * linux-aarch64-low.cc (class aarch64_target)
1106 <low_breakpoint_at>: Declare.
1107 (aarch64_breakpoint_at): Turn into...
1108 (aarch64_target::low_breakpoint_at): ...this.
1109 (the_low_target): Remove the op field.
1110 * linux-arm-low.cc (class arm_target)
1111 <low_breakpoint_at>: Declare.
1112 (arm_target::low_breakpoint_at): Define.
1113 (the_low_target): Remove the op field.
1114 * linux-bfin-low.cc (class bfin_target)
1115 <low_breakpoint_at>: Declare.
1116 (bfin_breakpoint_at): Turn into...
1117 (bfin_target::low_breakpoint_at): ...this.
1118 (the_low_target): Remove the op field.
1119 * linux-cris-low.cc (class cris_target)
1120 <low_breakpoint_at>: Declare.
1121 (cris_breakpoint_at): Turn into...
1122 (cris_target::low_breakpoint_at): ...this.
1123 (the_low_target): Remove the op field.
1124 * linux-crisv32-low.cc (class crisv32_target)
1125 <low_breakpoint_at>: Declare.
1126 (crisv32_breakpoint_at): Turn into...
1127 (crisv32_target::low_breakpoint_at): ...this.
1128 (the_low_target): Remove the op field.
1129 * linux-ia64-low.cc (class ia64_target)
1130 <low_breakpoint_at>: Declare.
1131 (ia64_target::low_breakpoint_at): Define.
1132 * linux-m32r-low.cc (class m32r_target)
1133 <low_breakpoint_at>: Declare.
1134 (m32r_breakpoint_at): Turn into...
1135 (m32r_target::low_breakpoint_at): ...this.
1136 (the_low_target): Remove the op field.
1137 * linux-m68k-low.cc (class m68k_target)
1138 <low_breakpoint_at>: Declare.
1139 (m68k_breakpoint_at): Turn into...
1140 (m68k_target::low_breakpoint_at): ...this.
1141 (the_low_target): Remove the op field.
1142 * linux-mips-low.cc (class mips_target)
1143 <low_breakpoint_at>: Declare.
1144 (mips_breakpoint_at): Turn into...
1145 (mips_target::low_breakpoint_at): ...this.
1146 (the_low_target): Remove the op field.
1147 * linux-nios2-low.cc (class nios2_target)
1148 <low_breakpoint_at>: Declare.
1149 (nios2_breakpoint_at): Turn into...
1150 (nios2_target::low_breakpoint_at): ...this.
1151 (the_low_target): Remove the op field.
1152 * linux-ppc-low.cc (class ppc_target)
1153 <low_breakpoint_at>: Declare.
1154 (ppc_breakpoint_at): Turn into...
1155 (ppc_target::low_breakpoint_at): ...this.
1156 (the_low_target): Remove the op field.
1157 * linux-riscv-low.cc (class riscv_target)
1158 <low_breakpoint_at>: Declare.
1159 (riscv_breakpoint_at): Turn into...
1160 (riscv_target::low_breakpoint_at): ...this.
1161 (the_low_target): Remove the op field.
1162 * linux-s390-low.cc (class s390_target)
1163 <low_breakpoint_at>: Declare.
1164 (s390_breakpoint_at): Turn into...
1165 (s390_target::low_breakpoint_at): ...this.
1166 (the_low_target): Remove the op field.
1167 * linux-sh-low.cc (class sh_target)
1168 <low_breakpoint_at>: Declare.
1169 (sh_breakpoint_at): Turn into...
1170 (sh_target::low_breakpoint_at): ...this.
1171 (the_low_target): Remove the op field.
1172 * linux-sparc-low.cc (class sparc_target)
1173 <low_breakpoint_at>: Declare.
1174 (sparc_breakpoint_at): Turn into...
1175 (sparc_target::low_breakpoint_at): ...this.
1176 (the_low_target): Remove the op field.
1177 * linux-tic6x-low.cc (class tic6x_target)
1178 <low_breakpoint_at>: Declare.
1179 (tic6x_breakpoint_at): Turn into...
1180 (tic6x_target::low_breakpoint_at): ...this.
1181 (the_low_target): Remove the op field.
1182 * linux-tile-low.cc (class tile_target)
1183 <low_breakpoint_at>: Declare.
1184 (tile_breakpoint_at): Turn into...
1185 (tile_target::low_breakpoint_at): ...this.
1186 (the_low_target): Remove the op field.
1187 * linux-xtensa-low.cc (class xtensa_target)
1188 <low_breakpoint_at>: Declare.
1189 (xtensa_breakpoint_at): Turn into...
1190 (xtensa_target::low_breakpoint_at): ...this.
1191 (the_low_target): Remove the op field.
1192
d4807ea2
TBA
11932020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1194
1195 Turn the 'decr_pc_after_break' linux_target_ops field into
1196 a method of linux_process_target.
1197
1198 * linux-low.h (struct linux_target_ops)
1199 <decr_pc_after_break>: Remove.
1200 (class linux_process_target) <low_decr_pc_after_break>: New method
1201 declaration.
1202 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1203 New method implementation.
1204
1205 Update the users below.
1206
1207 (linux_process_target::save_stop_reason)
1208 (linux_process_target::wait_1)
1209 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1210 New declaration.
1211 (x86_target::low_decr_pc_after_break): New method implementation.
1212 (the_low_target): Remove the field.
1213 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1214 New declaration.
1215 (bfin_target::low_decr_pc_after_break): New method implementation.
1216 (the_low_target): Remove the field.
1217 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1218 New declaration.
1219 (m68k_target::low_decr_pc_after_break): New method implementation.
1220 (the_low_target): Remove the field.
1221 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1222 New declaration.
1223 (s390_target::low_decr_pc_after_break): New method implementation.
1224 (the_low_target): Remove the field.
1225 * linux-aarch64-low.cc (the_low_target): Remove the field.
1226 * linux-arm-low.cc (the_low_target): Remove the field.
1227 * linux-cris-low.cc (the_low_target): Remove the field.
1228 * linux-crisv32-low.cc (the_low_target): Remove the field.
1229 * linux-m32r-low.cc (the_low_target): Remove the field.
1230 * linux-mips-low.cc (the_low_target): Remove the field.
1231 * linux-nios2-low.cc (the_low_target): Remove the field.
1232 * linux-ppc-low.cc (the_low_target): Remove the field.
1233 * linux-riscv-low.cc (the_low_target): Remove the field.
1234 * linux-sh-low.cc (the_low_target): Remove the field.
1235 * linux-sparc-low.cc (the_low_target): Remove the field.
1236 * linux-tic6x-low.cc (the_low_target): Remove the field.
1237 * linux-tile-low.cc (the_low_target): Remove the field.
1238 * linux-xtensa-low.cc (the_low_target): Remove the field.
1239
7582c77c
TBA
12402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1241
1242 Remove the 'supports_software_single_step' linux target op and let
1243 the concrete linux target define it by overriding the op in
1244 process_stratum_target.
1245 Turn the 'get_next_pcs' linux target op into a method of
1246 linux_process_target.
1247
1248 * linux-low.h (struct linux_target_ops): Remove the ops.
1249 (class linux_process_target) <supports_software_single_step>:
1250 Remove.
1251 <low_get_next_pcs>: Declare.
1252 * linux-low.cc (can_software_single_step): Remove.
1253 (linux_process_target::low_get_next_pcs): Define.
1254 (linux_process_target::supports_software_single_step): Remove.
1255
1256 Update the callers below.
1257
1258 (linux_process_target::handle_extended_wait)
1259 (linux_process_target::wait_1)
1260 (linux_process_target::install_software_single_step_breakpoints)
1261 (linux_process_target::single_step)
1262 (linux_process_target::thread_needs_step_over)
1263 (linux_process_target::proceed_one_lwp)
1264 (linux_process_target::supports_range_stepping)
1265
1266 * linux-x86-low.cc (the_low_target): Remove the op field.
1267 * linux-aarch64-low.cc (the_low_target): Ditto.
1268 * linux-bfin-low.cc (the_low_target): Ditto.
1269 * linux-cris-low.cc (the_low_target): Ditto.
1270 * linux-crisv32-low.cc (the_low_target): Ditto.
1271 * linux-m32r-low.cc (the_low_target): Ditto.
1272 * linux-m68k-low.cc (the_low_target): Ditto.
1273 * linux-mips-low.cc (the_low_target): Ditto.
1274 * linux-nios2-low.cc (the_low_target): Ditto.
1275 * linux-ppc-low.cc (the_low_target): Ditto.
1276 * linux-riscv-low.cc (the_low_target): Ditto.
1277 * linux-s390-low.cc (the_low_target): Ditto.
1278 * linux-sh-low.cc (the_low_target): Ditto.
1279 * linux-sparc-low.cc (the_low_target): Ditto.
1280 * linux-tic6x-low.cc (the_low_target): Ditto.
1281 * linux-tile-low.cc (the_low_target): Ditto.
1282 * linux-xtensa-low.cc (the_low_target): Ditto.
1283 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1284 <supports_software_single_step>: Declare.
1285 (arm_target::supports_software_single_step): Define.
1286 (arm_gdbserver_get_next_pcs): Turn into...
1287 (arm_target::low_get_next_pcs): ...this.
1288 (the_low_target): Remove the op field.
1289
3ca4edb6
TBA
12902020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1291
1292 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1293 the concrete linux target define it by overriding the op
1294 in process_stratum_target.
1295
1296 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1297 Remove.
1298 * linux-low.h (struct linux_target_ops): Remove the op.
1299 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1300 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1301 Declare.
1302 (x86_sw_breakpoint_from_kind): Turn into...
1303 (x86_target::sw_breakpoint_from_kind): ...this.
1304 (the_low_target): Remove the op field.
1305 * linux-aarch64-low.cc (class aarch64_target)
1306 <sw_breakpoint_from_kind>: Declare.
1307 (aarch64_sw_breakpoint_from_kind): Turn into...
1308 (aarch64_target::sw_breakpoint_from_kind): ...this.
1309 (the_low_target): Remove the op field.
1310 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1311 Declare.
1312 (arm_target::sw_breakpoint_from_kind): Define.
1313 (the_low_target): Remove the op field.
1314 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1315 Declare.
1316 (bfin_sw_breakpoint_from_kind): Turn into...
1317 (bfin_target::sw_breakpoint_from_kind): ...this.
1318 (the_low_target): Remove the op field.
1319 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1320 Declare.
1321 (cris_sw_breakpoint_from_kind): Turn into...
1322 (cris_target::sw_breakpoint_from_kind): ...this.
1323 (the_low_target): Remove the op field.
1324 * linux-crisv32-low.cc (class crisv32_target)
1325 <sw_breakpoint_from_kind>: Declare.
1326 (cris_sw_breakpoint_from_kind): Turn into...
1327 (crisv32_target::sw_breakpoint_from_kind): ...this.
1328 (the_low_target): Remove the op field.
1329 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1330 Declare.
1331 (ia64_target::sw_breakpoint_from_kind): Define.
1332 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1333 Declare.
1334 (m32r_sw_breakpoint_from_kind): Turn into...
1335 (m32r_target::sw_breakpoint_from_kind): ...this.
1336 (the_low_target): Remove the op field.
1337 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1338 Declare.
1339 (m68k_sw_breakpoint_from_kind): Turn into...
1340 (m68k_target::sw_breakpoint_from_kind): ...this.
1341 (the_low_target): Remove the op field.
1342 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1343 Declare.
1344 (mips_sw_breakpoint_from_kind): Turn into...
1345 (mips_target::sw_breakpoint_from_kind): ...this.
1346 (the_low_target): Remove the op field.
1347 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1348 Declare.
1349 (nios2_sw_breakpoint_from_kind): Turn into...
1350 (nios2_target::sw_breakpoint_from_kind): ...this.
1351 (the_low_target): Remove the op field.
1352 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1353 Declare.
1354 (ppc_sw_breakpoint_from_kind): Turn into...
1355 (ppc_target::sw_breakpoint_from_kind): ...this.
1356 (the_low_target): Remove the op field.
1357 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1358 Declare.
1359 (riscv_sw_breakpoint_from_kind): Turn into...
1360 (riscv_target::sw_breakpoint_from_kind): ...this.
1361 (the_low_target): Remove the op field.
1362 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1363 Declare.
1364 (s390_sw_breakpoint_from_kind): Turn into...
1365 (s390_target::sw_breakpoint_from_kind): ...this.
1366 (the_low_target): Remove the op field.
1367 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1368 Declare.
1369 (sh_sw_breakpoint_from_kind): Turn into...
1370 (sh_target::sw_breakpoint_from_kind): ...this.
1371 (the_low_target): Remove the op field.
1372 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1373 Declare.
1374 (sparc_sw_breakpoint_from_kind): Turn into...
1375 (sparc_target::sw_breakpoint_from_kind): ...this.
1376 (the_low_target): Remove the op field.
1377 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1378 Declare.
1379 (tic6x_sw_breakpoint_from_kind): Turn into...
1380 (tic6x_target::sw_breakpoint_from_kind): ...this.
1381 (the_low_target): Remove the op field.
1382 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1383 Declare.
1384 (tile_sw_breakpoint_from_kind): Turn into...
1385 (tile_target::sw_breakpoint_from_kind): ...this.
1386 (the_low_target): Remove the op field.
1387 * linux-xtensa-low.cc (class xtensa_target)
1388 <sw_breakpoint_from_kind>: Declare.
1389 (xtensa_sw_breakpoint_from_kind): Turn into...
1390 (xtensa_target::sw_breakpoint_from_kind): ...this.
1391 (the_low_target): Remove the op field.
1392
06250e4e
TBA
13932020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1394
1395 Remove the 'breakpoint_kind_from_pc' and
1396 'breakpoint_kind_from_current_state' linux target ops, and let the
1397 concrete linux target define them by overriding the ops of
1398 process_stratum_target.
1399
1400 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1401 Remove.
1402 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1403 * linux-low.h (struct linux_target_ops): Remove ops.
1404 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1405 <breakpoint_kind_from_current_state>: Remove.
1406 * linux-x86-low.cc (the_low_target): Remove the op fields.
1407 * linux-bfin-low.cc (the_low_target): Ditto.
1408 * linux-cris-low.cc (the_low_target): Ditto.
1409 * linux-crisv32-low.cc (the_low_target): Ditto.
1410 * linux-m32r-low.cc (the_low_target): Ditto.
1411 * linux-m68k-low.cc (the_low_target): Ditto.
1412 * linux-mips-low.cc (the_low_target): Ditto.
1413 * linux-nios2-low.cc (the_low_target): Ditto.
1414 * linux-ppc-low.cc (the_low_target): Ditto.
1415 * linux-s390-low.cc (the_low_target): Ditto.
1416 * linux-sh-low.cc (the_low_target): Ditto.
1417 * linux-sparc-low.cc (the_low_target): Ditto.
1418 * linux-tic6x-low.cc (the_low_target): Ditto.
1419 * linux-tile-low.cc (the_low_target): Ditto.
1420 * linux-xtensa-low.cc (the_low_target): Ditto.
1421 * linux-aarch64-low.cc (class aarch64_target)
1422 <breakpoint_kind_from_pc>
1423 <breakpoint_kind_from_current_state>: Declare.
1424 (aarch64_breakpoint_kind_from_pc): Turn into...
1425 (aarch64_target::breakpoint_kind_from_pc): ...this.
1426 (aarch64_breakpoint_kind_from_current_state): Turn into...
1427 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1428 (the_low_target): Remove the op fields.
1429 * linux-arm-low.cc (class arm_target):
1430 <breakpoint_kind_from_pc>
1431 <breakpoint_kind_from_current_state>: Declare.
1432 (arm_target::breakpoint_kind_from_pc): Define.
1433 (arm_target::breakpoint_kind_from_current_state): Define.
1434 (the_low_target): Remove the op fields.
1435 * linux-riscv-low.cc (class riscv_target):
1436 <breakpoint_kind_from_pc>: Declare.
1437 (riscv_breakpoint_kind_from_pc): Turn into...
1438 (riscv_target::breakpoint_kind_from_pc): ...this.
1439 (the_low_target): Remove the op fields.
1440
bf9ae9d8
TBA
14412020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1442
1443 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1444 of linux_process_target.
1445
1446 * linux-low.h (struct linux_target_ops): Remove the ops.
1447 (class linux_process_target) <low_supports_breakpoints>
1448 <low_get_pc>
1449 <low_set_pc>: Declare.
1450 * linux-low.cc (supports_breakpoints): Turn into...
1451 (linux_process_target::low_supports_breakpoints): ...this.
1452 (linux_process_target::low_get_pc): Define.
1453 (linux_process_target::low_set_pc): Define.
1454
1455 Update the callers below.
1456
1457 (linux_process_target::get_pc)
1458 (linux_process_target::save_stop_reason)
1459 (linux_process_target::maybe_move_out_of_jump_pad)
1460 (linux_process_target::wait_1)
1461 (linux_process_target::resume_one_lwp_throw)
1462 (linux_process_target::resume)
1463 (linux_process_target::proceed_all_lwps)
1464 (linux_process_target::read_pc)
1465 (linux_process_target::write_pc)
1466
1467 * linux-x86-low.cc (class linux_process_target)
1468 <low_supports_breakpoints>
1469 <low_get_pc>
1470 <low_set_pc>: Declare.
1471 (x86_target::low_supports_breakpoints): Define.
1472 (x86_get_pc): Turn into...
1473 (x86_target::low_get_pc): ...this.
1474 (x86_set_pc): Turn into...
1475 (x86_target::low_set_pc): ...this.
1476 (the_low_target): Remove the op fields.
1477 * linux-arm-low.cc (class arm_target)
1478 <low_supports_breakpoints>
1479 <low_get_pc>
1480 <low_set_pc>: Declare.
1481 (arm_target::low_supports_breakpoints)
1482 (arm_target::low_get_pc)
1483 (arm_target::low_set_pc): Define.
1484 (the_low_target): Remove the op fields.
1485 * linux-bfin-low.cc (class bfin_target)
1486 <low_supports_breakpoints>
1487 <low_get_pc>
1488 <low_set_pc>: Declare.
1489 (bfin_target::low_supports_breakpoints)
1490 (bfin_target::low_get_pc)
1491 (bfin_target::low_set_pc): Define.
1492 (the_low_target): Remove the op fields.
1493 * linux-cris-low.cc (class cris_target)
1494 <low_supports_breakpoints>
1495 <low_get_pc>
1496 <low_set_pc>: Declare.
1497 (cris_target::low_supports_breakpoints)
1498 (cris_target::low_get_pc)
1499 (cris_target::low_set_pc): Define.
1500 (the_low_target): Remove the op fields.
1501 * linux-crisv32-low.cc (class crisv32_target)
1502 <low_supports_breakpoints>
1503 <low_get_pc>
1504 <low_set_pc>: Declare.
1505 (crisv32_target::low_supports_breakpoints)
1506 (crisv32_target::low_get_pc)
1507 (crisv32_target::low_set_pc): Define.
1508 (the_low_target): Remove the op fields.
1509 * linux-m32r-low.cc (class m32r_target)
1510 <low_supports_breakpoints>
1511 <low_get_pc>
1512 <low_set_pc>: Declare.
1513 (m32r_target::low_supports_breakpoints)
1514 (m32r_target::low_get_pc)
1515 (m32r_target::low_set_pc): Define.
1516 (the_low_target): Remove the op fields.
1517 * linux-m68k-low.cc (class m68k_target)
1518 <low_supports_breakpoints>
1519 <low_get_pc>
1520 <low_set_pc>: Declare.
1521 (m68k_target::low_supports_breakpoints)
1522 (m68k_target::low_get_pc)
1523 (m68k_target::low_set_pc): Define.
1524 (the_low_target): Remove the op fields.
1525 * linux-nios2-low.cc (class nios2_target)
1526 <low_supports_breakpoints>
1527 <low_get_pc>
1528 <low_set_pc>: Declare.
1529 (nios2_target::low_supports_breakpoints)
1530 (nios2_target::low_get_pc)
1531 (nios2_target::low_set_pc): Define.
1532 (the_low_target): Remove the op fields.
1533 * linux-sh-low.cc (class sh_target)
1534 <low_supports_breakpoints>
1535 <low_get_pc>
1536 <low_set_pc>: Declare.
1537 (sh_target::low_supports_breakpoints)
1538 (sh_target::low_get_pc)
1539 (sh_target::low_set_pc): Define.
1540 (the_low_target): Remove the op fields.
1541 * linux-xtensa-low.cc (class xtensa_target)
1542 <low_supports_breakpoints>
1543 <low_get_pc>
1544 <low_set_pc>: Declare.
1545 (xtensa_target::low_supports_breakpoints)
1546 (xtensa_target::low_get_pc)
1547 (xtensa_target::low_set_pc): Define.
1548 (the_low_target): Remove the op fields.
1549 * linux-sparc-low.cc (class sparc_target)
1550 <low_supports_breakpoints>
1551 <low_get_pc>: Declare.
1552 (sparc_target::low_supports_breakpoints)
1553 (sparc_target::low_get_pc): Define.
1554 (the_low_target): Remove the op fields.
1555 * linux-tile-low.cc (class tile_target)
1556 <low_supports_breakpoints>
1557 <low_get_pc>
1558 <low_set_pc>: Declare.
1559 (tile_target::low_supports_breakpoints)
1560 (tile_target::low_get_pc)
1561 (tile_target::low_set_pc): Define.
1562 (the_low_target): Remove the op fields.
1563 * linux-aarch64-low.cc (class aarch64_target)
1564 <low_supports_breakpoints>
1565 <low_get_pc>
1566 <low_set_pc>: Declare.
1567 (aarch64_target::low_supports_breakpoints): Define.
1568 (aarch64_get_pc): Turn into...
1569 (aarch64_target::low_get_pc): ...this.
1570 (aarch64_set_pc): Turn into...
1571 (aarch64_target::low_set_pc): ...this.
1572 (the_low_target): Remove the op fields.
1573 * linux-mips-low.cc (class mips_target)
1574 <low_supports_breakpoints>
1575 <low_get_pc>
1576 <low_set_pc>: Declare.
1577 (mips_target::low_supports_breakpoints): Define.
1578 (mips_get_pc): Turn into...
1579 (mips_target::low_get_pc): ...this.
1580 (mips_set_pc): Turn into...
1581 (mips_target::low_set_pc): ...this.
1582 (the_low_target): Remove the op fields.
1583 * linux-ppc-low.cc (class ppc_target)
1584 <low_supports_breakpoints>
1585 <low_get_pc>
1586 <low_set_pc>: Declare.
1587 (ppc_target::low_supports_breakpoints): Define.
1588 (ppc_get_pc): Turn into...
1589 (ppc_target::low_get_pc): ...this.
1590 (ppc_set_pc): Turn into...
1591 (ppc_target::low_set_pc): ...this.
1592 (the_low_target): Remove the op fields.
1593 * linux-riscv-low.cc (class riscv_target)
1594 <low_supports_breakpoints>
1595 <low_get_pc>
1596 <low_set_pc>: Declare.
1597 (riscv_target::low_supports_breakpoints): Define.
1598 (riscv_get_pc): Turn into...
1599 (riscv_target::low_get_pc): ...this.
1600 (riscv_set_pc): Turn into...
1601 (riscv_target::low_set_pc): ...this.
1602 (the_low_target): Remove the op fields.
1603 * linux-s390-low.cc (class s390_target)
1604 <low_supports_breakpoints>
1605 <low_get_pc>
1606 <low_set_pc>: Declare.
1607 (s390_target::low_supports_breakpoints): Define.
1608 (s390_get_pc): Turn into...
1609 (s390_target::low_get_pc): ...this.
1610 (s390_set_pc): Turn into...
1611 (s390_target::low_set_pc): ...this.
1612 (the_low_target): Remove the op fields.
1613 * linux-tic6x-low.cc (class tic6x_target)
1614 <low_supports_breakpoints>
1615 <low_get_pc>
1616 <low_set_pc>: Declare.
1617 (tic6x_target::low_supports_breakpoints): Define.
1618 (tic6x_get_pc): Turn into...
1619 (tic6x_target::low_get_pc): ...this.
1620 (tic6x_set_pc): Turn into...
1621 (tic6x_target::low_set_pc): ...this.
1622 (the_low_target): Remove the op fields.
1623
df95181f
TBA
16242020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1625
1626 Turn some more static methods in linux-low into private methods
1627 of linux_process_target.
1628
1629 * linux-low.cc (get_pc): Turn into...
1630 (linux_process_target::get_pc): ...this.
1631 (save_stop_reason): Turn into...
1632 (linux_process_target::save_stop_reason): ...this.
1633 (thread_still_has_status_pending_p): Turn into...
1634 (linux_process_target::thread_still_has_status_pending): ...this.
1635 (status_pending_p_callback): Turn into...
1636 (linux_process_target::status_pending_p_callback): ...this.
1637 (resume_stopped_resumed_lwps): Turn into...
1638 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1639 (install_software_single_step_breakpoints): Turn into...
1640 (linux_process_target::install_software_single_step_breakpoints):
1641 ...this.
1642 (single_step): Turn into...
1643 (linux_process_target::single_step): ...this.
1644 (linux_resume_one_lwp_throw): Turn into...
1645 (linux_process_target::resume_one_lwp_throw): ...this.
1646 (linux_resume_one_lwp): Turn into...
1647 (linux_process_target::resume_one_lwp): ...this.
1648 (resume_status_pending_p): Turn into...
1649 (linux_process_target::resume_status_pending): ...this.
1650 (need_step_over_p): Turn into...
1651 (linux_process_target::thread_needs_step_over): ...this.
1652 (linux_resume_one_thread): Turn into...
1653 (linux_process_target::resume_one_thread): ...this.
1654 (proceed_one_lwp): Turn into...
1655 (linux_process_target::proceed_one_lwp): ...this.
1656 (unsuspend_and_proceed_one_lwp): Turn into...
1657 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1658
1659 Update the calls/references to the above functions below.
1660
1661 (linux_process_target::handle_extended_wait)
1662 (linux_process_target::filter_event)
1663 (linux_process_target::wait_for_event_filtered)
1664 (linux_process_target::wait_1)
1665 (linux_process_target::move_out_of_jump_pad)
1666 (linux_process_target::start_step_over)
1667 (linux_process_target::resume)
1668 (linux_process_target::proceed_all_lwps)
1669 (regsets_store_inferior_registers)
1670 (linux_process_target::store_register)
1671
1672 * linux-low.h (class linux_process_target)
1673 <get_pc>
1674 <save_stop_reason>
1675 <thread_still_has_status_pending>
1676 <status_pending_p_callback>
1677 <resume_stopped_resumed_lwps>
1678 <install_software_single_step_breakpoints>
1679 <single_step>
1680 <resume_one_lwp_throw>
1681 <resume_one_lwp>
1682 <resume_status_pending>
1683 <thread_needs_step_over>
1684 <resume_one_thread>
1685 <proceed_one_lwp>
1686 <unsuspend_and_proceed_one_lwp>: Declare.
1687
bd70b1f2
TBA
16882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1689
1690 Turn the 'fetch_register' linux target op into a method of
1691 linux_process_target.
1692
1693 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1694 (class linux_process_target) <low_fetch_register>: Declare.
1695 * linux-x86-low.cc (the_low_target)
1696 * linux-aarch64-low.cc (the_low_target)
1697 * linux-arm-low.cc (the_low_target)
1698 * linux-bfin-low.cc (the_low_target)
1699 * linux-cris-low.cc (the_low_target)
1700 * linux-crisv32-low.cc (the_low_target)
1701 * linux-m32r-low.cc (the_low_target)
1702 * linux-m68k-low.cc (the_low_target)
1703 * linux-nios2-low.cc (the_low_target)
1704 * linux-ppc-low.cc (the_low_target)
1705 * linux-s390-low.cc (the_low_target)
1706 * linux-sh-low.cc (the_low_target)
1707 * linux-sparc-low.cc (the_low_target)
1708 * linux-tic6x-low.cc (the_low_target)
1709 * linux-tile-low.cc (the_low_target)
1710 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1711 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1712 Declare.
1713 (ia64_fetch_register): Turn into...
1714 (ia64_target::low_fetch_register): ...this.
1715 (the_low_target): Remove the op field.
1716 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1717 Declare.
1718 (mips_fetch_register): Turn into...
1719 (mips_target::low_fetch_register): ...this.
1720 (the_low_target): Remove the op field.
1721 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1722 Declare.
1723 (riscv_fetch_register): Turn into...
1724 (riscv_target::low_fetch_register): ...this.
1725 (the_low_target): Remove the op field.
1726
1727 Update the callers below.
1728
1729 * linux-low.cc (linux_process_target::fetch_registers)
1730 (linux_process_target::low_fetch_register)
1731
daca57a7
TBA
17322020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1733
1734 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1735 linux target ops into methods of linux_process_target.
1736
1737 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1738 (class linux_process_target) <fetch_register>
1739 <store_register>
1740 <usr_fetch_inferior_registers>
1741 <usr_store_inferior_registers>
1742 <low_cannot_fetch_register>
1743 <low_cannot_fetch_register> Declare.
1744 * linux-low.cc (fetch_register): Turn into...
1745 (linux_process_target::fetch_register): ...this.
1746 (store_register): Turn into ...
1747 (linux_process_target::store_register): ...this.
1748 (usr_fetch_inferior_registers): Turn into...
1749 (linux_process_target::usr_fetch_inferior_registers): ...this.
1750 (usr_store_inferior_registers): Turn into...
1751 (linux_process_target::usr_store_inferior_registers): ...this.
1752 * linux-x86-low.cc (class x86_target)
1753 <low_cannot_fetch_register>
1754 <low_cannot_store_register>: Declare.
1755 (x86_cannot_store_register): Turn into...
1756 (x86_target::low_cannot_store_register): ...this.
1757 (x86_cannot_fetch_register): Turn into...
1758 (x86_target::low_cannot_fetch_register): ...this.
1759 (the_low_target): Remove the target op fields.
1760 * linux-aarch64-low.cc (class aarch64_target)
1761 <low_cannot_fetch_register>
1762 <low_cannot_store_register>: Declare.
1763 (aarch64_target::low_cannot_fetch_register)
1764 (aarch64_target::low_cannot_store_register): Define.
1765 (the_low_target): Remove the op fields.
1766 * linux-arm-low.cc (class arm_target)
1767 <low_cannot_fetch_register>
1768 <low_cannot_store_register>: Declare.
1769 (arm_cannot_fetch_register): Turn into...
1770 (arm_target::low_cannot_fetch_register): ...this.
1771 (arm_cannot_store_register): Turn into...
1772 (arm_target::low_cannot_store_register): ...this.
1773 (the_low_target): Remove the op fields.
1774 * linux-bfin-low.cc (class bfin_target)
1775 <low_cannot_fetch_register>
1776 <low_cannot_store_register>: Declare.
1777 (bfin_cannot_fetch_register): Turn into...
1778 (bfin_target::low_cannot_fetch_register): ...this.
1779 (bfin_cannot_store_register): Turn into...
1780 (bfin_target::low_cannot_store_register): ...this.
1781 (the_low_target): Remove the op fields.
1782 * linux-cris-low.cc (class cris_target)
1783 <low_cannot_fetch_register>
1784 <low_cannot_store_register>: Declare.
1785 (cris_cannot_fetch_register): Turn into...
1786 (cris_target::low_cannot_fetch_register): ...this.
1787 (cris_cannot_store_register): Turn into...
1788 (cris_target::low_cannot_store_register): ...this.
1789 (the_low_target): Remove the op fields.
1790 * linux-crisv32-low.cc (class crisv32_target)
1791 <low_cannot_fetch_register>
1792 <low_cannot_store_register>: Declare.
1793 (crisv32_target::low_cannot_fetch_register)
1794 (crisv32_target::low_cannot_store_register): Define.
1795 (the_low_target): Remove the op fields.
1796 * linux-ia64-low.cc (class ia64_target)
1797 <low_cannot_fetch_register>
1798 <low_cannot_store_register>: Declare.
1799 (ia64_cannot_fetch_register): Turn into...
1800 (ia64_target::low_cannot_fetch_register): ...this.
1801 (ia64_cannot_store_register): Turn into...
1802 (ia64_target::low_cannot_store_register): ...this.
1803 (the_low_target): Remove the op fields.
1804 * linux-m32r-low.cc (class m32r_target)
1805 <low_cannot_fetch_register>
1806 <low_cannot_store_register>: Declare.
1807 (m32r_cannot_fetch_register): Turn into...
1808 (m32r_target::low_cannot_fetch_register): ...this.
1809 (m32r_cannot_store_register): Turn into...
1810 (m32r_target::low_cannot_store_register): ...this.
1811 (the_low_target): Remove the op fields.
1812 * linux-m68k-low.cc (class m68k_target)
1813 <low_cannot_fetch_register>
1814 <low_cannot_store_register>: Declare.
1815 (m68k_cannot_fetch_register): Turn into...
1816 (m68k_target::low_cannot_fetch_register): ...this.
1817 (m68k_cannot_store_register): Turn into...
1818 (m68k_target::low_cannot_store_register): ...this.
1819 (the_low_target): Remove the op fields.
1820 * linux-mips-low.cc (class mips_target)
1821 <low_cannot_fetch_register>
1822 <low_cannot_store_register>: Declare.
1823 (mips_cannot_fetch_register): Turn into...
1824 (mips_target::low_cannot_fetch_register): ...this.
1825 (mips_cannot_store_register): Turn into...
1826 (mips_target::low_cannot_store_register): ...this.
1827 (get_usrregs_info): Inline at the call sites in
1828 low_cannot_fetch_register and low_cannot_store_register,
1829 and remove.
1830 (the_low_target): Remove the op fields.
1831 * linux-nios2-low.cc (class nios2_target)
1832 <low_cannot_fetch_register>
1833 <low_cannot_store_register>: Declare.
1834 (nios2_cannot_fetch_register): Turn into...
1835 (nios2_target::low_cannot_fetch_register): ...this.
1836 (nios2_cannot_store_register): Turn into...
1837 (nios2_target::low_cannot_store_register): ...this.
1838 (the_low_target): Remove the op fields.
1839 * linux-ppc-low.cc (class ppc_target)
1840 <low_cannot_fetch_register>
1841 <low_cannot_store_register>: Declare.
1842 (ppc_cannot_fetch_register): Turn into...
1843 (ppc_target::low_cannot_fetch_register): ...this.
1844 (ppc_cannot_store_register): Turn into...
1845 (ppc_target::low_cannot_store_register): ...this.
1846 (the_low_target): Remove the op fields.
1847 * linux-riscv-low.cc (class riscv_target)
1848 <low_cannot_fetch_register>
1849 <low_cannot_store_register>: Declare.
1850 (riscv_target::low_cannot_fetch_register)
1851 (riscv_target::low_cannot_store_register): Define.
1852 (the_low_target): Remove the op fields.
1853 * linux-s390-low.cc (class s390_target)
1854 <low_cannot_fetch_register>
1855 <low_cannot_store_register>: Declare.
1856 (s390_cannot_fetch_register): Turn into...
1857 (s390_target::low_cannot_fetch_register): ...this.
1858 (s390_cannot_store_register): Turn into...
1859 (s390_target::low_cannot_store_register): ...this.
1860 (the_low_target): Remove the op fields.
1861 * linux-sh-low.cc (class sh_target)
1862 <low_cannot_fetch_register>
1863 <low_cannot_store_register>: Declare.
1864 (sh_cannot_fetch_register): Turn into...
1865 (sh_target::low_cannot_fetch_register): ...this.
1866 (sh_cannot_store_register): Turn into...
1867 (sh_target::low_cannot_store_register): ...this.
1868 (the_low_target): Remove the op fields.
1869 * linux-sparc-low.cc (class sparc_target)
1870 <low_cannot_fetch_register>
1871 <low_cannot_store_register>: Declare.
1872 (sparc_cannot_fetch_register): Turn into...
1873 (sparc_target::low_cannot_fetch_register): ...this.
1874 (sparc_cannot_store_register): Turn into...
1875 (sparc_target::low_cannot_store_register): ...this.
1876 (the_low_target): Remove the op fields.
1877 * linux-tic6x-low.cc (class tic6x_target)
1878 <low_cannot_fetch_register>
1879 <low_cannot_store_register>: Declare.
1880 (tic6x_cannot_fetch_register): Turn into...
1881 (tic6x_target::low_cannot_fetch_register): ...this.
1882 (tic6x_cannot_store_register): Turn into...
1883 (tic6x_target::low_cannot_store_register): ...this.
1884 (the_low_target): Remove the op fields.
1885 * linux-tile-low.cc (class tile_target)
1886 <low_cannot_fetch_register>
1887 <low_cannot_store_register>: Declare.
1888 (tile_cannot_fetch_register): Turn into...
1889 (tile_target::low_cannot_fetch_register): ...this.
1890 (tile_cannot_store_register): Turn into...
1891 (tile_target::low_cannot_store_register): ...this.
1892 (the_low_target): Remove the op fields.
1893 * linux-xtensa-low.cc (class xtensa_target)
1894 <low_cannot_fetch_register>
1895 <low_cannot_store_register>: Declare.
1896 (xtensa_target::low_cannot_fetch_register)
1897 (xtensa_target::low_cannot_store_register): Define.
1898 (the_low_target): Remove the op fields.
1899
aa8d21c9
TBA
19002020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1901
1902 Turn the 'regs_info' linux target op into a method of
1903 linux_process_target.
1904
1905 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1906 (class linux_process_target) <get_regs_info>: Define.
1907
1908 Update the callers below.
1909
1910 * linux-low.cc (linux_process_target::fetch_registers)
1911 (linux_process_target::store_registers)
1912 * proc-service.cc (gregset_info)
1913
1914 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1915 (x86_linux_regs_info): Turn into ...
1916 (x86_target::get_regs_info): ...this.
1917 (the_low_target): Remove the op field.
1918 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1919 Declare.
1920 (aarch64_regs_info): Turn into ...
1921 (aarch64_target::get_regs_info): ...this.
1922 (the_low_target): Remove the op field.
1923 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1924 (arm_regs_info): Turn into ...
1925 (arm_target::get_regs_info): ...this.
1926 (the_low_target): Remove the op field.
1927 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1928 (bfin_regs_info): Turn into ...
1929 (bfin_target::get_regs_info): ...this.
1930 (the_low_target): Remove the op field.
1931 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1932 (cris_regs_info): Turn into ...
1933 (cris_target::get_regs_info): ...this.
1934 (the_low_target): Remove the op field.
1935 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1936 Declare.
1937 (crisv32_regs_info): Turn into ...
1938 (crisv32_target::get_regs_info): ...this.
1939 (the_low_target): Remove the op field.
1940 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1941 (ia64_regs_info): Turn into ...
1942 (ia64_target::get_regs_info): ...this.
1943 (the_low_target): Remove the op field.
1944 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1945 (m32r_regs_info): Turn into ...
1946 (m32r_target::get_regs_info): ...this.
1947 (the_low_target): Remove the op field.
1948 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1949 (m68k_regs_info): Turn into ...
1950 (m68k_target::get_regs_info): ...this.
1951 (the_low_target): Remove the op field.
1952 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1953 (mips_regs_info): Turn into ...
1954 (mips_target::get_regs_info): ...this.
1955 (the_low_target): Remove the op field.
1956 (get_usrregs_info): Update the call to the op.
1957 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1958 (nios2_regs_info): Turn into ...
1959 (nios2_target::get_regs_info): ...this.
1960 (the_low_target): Remove the op field.
1961 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1962 (ppc_regs_info): Turn into ...
1963 (ppc_target::get_regs_info): ...this.
1964 (the_low_target): Remove the op field.
1965 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1966 (riscv_regs_info): Turn into ...
1967 (riscv_target::get_regs_info): ...this.
1968 (the_low_target): Remove the op field.
1969 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1970 (s390_regs_info): Turn into ...
1971 (s390_target::get_regs_info): ...this.
1972 (the_low_target): Remove the op field.
1973 (s390_collect_ptrace_register)
1974 (s390_supply_ptrace_register)
1975 (s390_fill_gregset): Update the call to the op.
1976 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1977 (sh_regs_info): Turn into ...
1978 (sh_target::get_regs_info): ...this.
1979 (the_low_target): Remove the op field.
1980 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1981 (sparc_regs_info): Turn into ...
1982 (sparc_target::get_regs_info): ...this.
1983 (the_low_target): Remove the op field.
1984 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1985 (tic6x_regs_info): Turn into ...
1986 (tic6x_target::get_regs_info): ...this.
1987 (the_low_target): Remove the op field.
1988 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1989 (tile_regs_info): Turn into ...
1990 (tile_target::get_regs_info): ...this.
1991 (the_low_target): Remove the op field.
1992 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1993 Declare.
1994 (xtensa_regs_info): Turn into ...
1995 (xtensa_target::get_regs_info): ...this.
1996 (the_low_target): Remove the op field.
1997
797bcff5
TBA
19982020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1999
2000 Turn the 'arch_setup' linux target op into a method of
2001 linux_process_target.
2002
2003 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2004 (class linux_process_target) <arch_setup_thread>
2005 <low_arch_setup>: New declarations.
2006 * linux-low.cc (linux_arch_setup): Delete.
2007 (linux_arch_setup_thread): Turn into...
2008 (linux_process_target::arch_setup_thread): ... this.
2009
2010 Update the callers below.
2011
2012 (linux_process_target::handle_extended_wait)
2013 (linux_process_target::post_create_inferior)
2014 (linux_process_target::filter_event)
2015
2016 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2017 declaration.
2018 (x86_linux_update_xmltarget): Turn into...
2019 (x86_target::update_xmltarget): ...this.
2020 (x86_linux_process_qsupported): Update the call to
2021 x86_linux_update_xmltarget.
2022 (x86_arch_setup): Turn into ...
2023 (x86_target::low_arch_setup): ...this.
2024 (the_low_target): Remove the op field.
2025 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2026 declaration.
2027 (aarch64_arch_setup): Turn into ...
2028 (aarch64_target::low_arch_setup): ...this.
2029 (the_low_target): Remove the op field.
2030 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2031 declaration.
2032 (arm_arch_setup): Turn into ...
2033 (arm_target::low_arch_setup): ...this.
2034 (the_low_target): Remove the op field.
2035 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2036 declaration.
2037 (bfin_arch_setup): Turn into ...
2038 (bfin_target::low_arch_setup): ...this.
2039 (the_low_target): Remove the op field.
2040 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2041 declaration.
2042 (cris_arch_setup): Turn into ...
2043 (cris_target::low_arch_setup): ...this.
2044 (the_low_target): Remove the op field.
2045 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2046 declaration.
2047 (crisv32_arch_setup): Turn into ...
2048 (crisv32_target::low_arch_setup): ...this.
2049 (the_low_target): Remove the op field.
2050 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2051 declaration.
2052 (ia64_arch_setup): Turn into ...
2053 (ia64_target::low_arch_setup): ...this.
2054 (the_low_target): Remove the op field.
2055 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2056 declaration.
2057 (m32r_arch_setup): Turn into ...
2058 (m32r_target::low_arch_setup): ...this.
2059 (the_low_target): Remove the op field.
2060 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2061 declaration.
2062 (m68k_arch_setup): Turn into ...
2063 (m68k_target::low_arch_setup): ...this.
2064 (the_low_target): Remove the op field.
2065 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2066 declaration.
2067 (mips_arch_setup): Turn into ...
2068 (mips_target::low_arch_setup): ...this.
2069 (the_low_target): Remove the op field.
2070 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2071 declaration.
2072 (nios2_arch_setup): Turn into ...
2073 (nios2_target::low_arch_setup): ...this.
2074 (the_low_target): Remove the op field.
2075 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2076 declaration.
2077 (ppc_arch_setup): Turn into ...
2078 (ppc_target::low_arch_setup): ...this.
2079 (the_low_target): Remove the op field.
2080 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2081 declaration.
2082 (riscv_arch_setup): Turn into ...
2083 (riscv_target::low_arch_setup): ...this.
2084 (the_low_target): Remove the op field.
2085 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2086 declaration.
2087 (s390_arch_setup): Turn into ...
2088 (s390_target::low_arch_setup): ...this.
2089 (the_low_target): Remove the op field.
2090 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2091 declaration.
2092 (sh_arch_setup): Turn into ...
2093 (sh_target::low_arch_setup): ...this.
2094 (the_low_target): Remove the op field.
2095 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2096 declaration.
2097 (sparc_arch_setup): Turn into ...
2098 (sparc_target::low_arch_setup): ...this.
2099 (the_low_target): Remove the op field.
2100 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2101 declaration.
2102 (tic6x_arch_setup): Turn into ...
2103 (tic6x_target::low_arch_setup): ...this.
2104 (the_low_target): Remove the op field.
2105 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2106 declaration.
2107 (tile_arch_setup): Turn into ...
2108 (tile_target::low_arch_setup): ...this.
2109 (the_low_target): Remove the op field.
2110 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2111 declaration.
2112 (xtensa_arch_setup): Turn into ...
2113 (xtensa_target::low_arch_setup): ...this.
2114 (the_low_target): Remove the op field.
2115
ef0478f6
TBA
21162020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2117
2118 * linux-low.h (the_linux_target): New extern declaration.
2119 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2120 'the_target'.
2121 (the_linux_target): Remove.
2122 * linux-x86-low.cc (class x86_target): New class.
2123 (the_x86_target): New static object.
2124 (the_linux_target): Define as pointer to the_x86_target.
2125 * linux-aarch64-low.cc (class aarch64_target): New class.
2126 (the_aarch64_target): New static object.
2127 (the_linux_target): Define as pointer to the_aarch64_target.
2128 * linux-arm-low.cc (class arm_target): New class.
2129 (the_arm_target): New static object.
2130 (the_linux_target): Define as pointer to the_arm_target.
2131 * linux-bfin-low.cc (class bfin_target): New class.
2132 (the_bfin_target): New static object.
2133 (the_linux_target): Define as pointer to the_bfin_target.
2134 * linux-cris-low.cc (class cris_target): New class.
2135 (the_cris_target): New static object.
2136 (the_linux_target): Define as pointer to the_cris_target.
2137 * linux-crisv32-low.cc (class crisv32_target): New class.
2138 (the_crisv32_target): New static object.
2139 (the_linux_target): Define as pointer to the_crisv32_target.
2140 * linux-ia64-low.cc (class ia64_target): New class.
2141 (the_ia64_target): New static object.
2142 (the_linux_target): Define as pointer to the_ia64_target.
2143 * linux-m32r-low.cc (class m32r_target): New class.
2144 (the_m32r_target): New static object.
2145 (the_linux_target): Define as pointer to the_m32r_target.
2146 * linux-m68k-low.cc (class m68k_target): New class.
2147 (the_m68k_target): New static object.
2148 (the_linux_target): Define as pointer to the_m68k_target.
2149 * linux-mips-low.cc (class mips_target): New class.
2150 (the_mips_target): New static object.
2151 (the_linux_target): Define as pointer to the_mips_target.
2152 * linux-nios2-low.cc (class nios2_target): New class.
2153 (the_nios2_target): New static object.
2154 (the_linux_target): Define as pointer to the_nios2_target.
2155 * linux-ppc-low.cc (class ppc_target): New class.
2156 (the_ppc_target): New static object.
2157 (the_linux_target): Define as pointer to the_ppc_target.
2158 * linux-riscv-low.cc (class riscv_target): New class.
2159 (the_riscv_target): New static object.
2160 (the_linux_target): Define as pointer to the_riscv_target.
2161 * linux-s390-low.cc (class s390_target): New class.
2162 (the_s390_target): New static object.
2163 (the_linux_target): Define as pointer to the_s390_target.
2164 * linux-sh-low.cc (class sh_target): New class.
2165 (the_sh_target): New static object.
2166 (the_linux_target): Define as pointer to the_sh_target.
2167 * linux-sparc-low.cc (class sparc_target): New class.
2168 (the_sparc_target): New static object.
2169 (the_linux_target): Define as pointer to the_sparc_target.
2170 * linux-tic6x-low.cc (class tic6x_target): New class.
2171 (the_tic6x_target): New static object.
2172 (the_linux_target): Define as pointer to the_tic6x_target.
2173 * linux-tile-low.cc (class tile_target): New class.
2174 (the_tile_target): New static object.
2175 (the_linux_target): Define as pointer to the_tile_target.
2176 * linux-xtensa-low.cc (class xtensa_target): New class.
2177 (the_xtensa_target): New static object.
2178 (the_linux_target): Define as pointer to the_xtensa_target.
2179
d16f3f6c
TBA
21802020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2181
2182 Turn some static functions in linux-low.cc into private methods of
2183 linux_process_target.
2184
2185 * linux-low.cc (handle_extended_wait): Turn into ...
2186 (linux_process_target::handle_extended_wait): ...this. Call
2187 'mourn' on 'this' object instead of 'the_target'.
2188 (maybe_move_out_of_jump_pad): Turn into...
2189 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2190 (linux_low_filter_event): Turn into...
2191 (linux_process_target::filter_event): ...this.
2192 (linux_wait_for_event_filtered): Turn into...
2193 (linux_process_target::wait_for_event_filtered): ...this.
2194 (linux_wait_for_event): Turn into...
2195 (linux_process_target::wait_for_event): ...this.
2196 (linux_wait_1): Turn into...
2197 (linux_process_target::wait_1): ...this.
2198 (wait_for_sigstop): Turn into...
2199 (linux_process_target::wait_for_sigstop): ...this.
2200 (move_out_of_jump_pad_callback): Turn into...
2201 (linux_process_target::move_out_of_jump_pad): ...this.
2202 (stop_all_lwps): Turn into...
2203 (linux_process_target::stop_all_lwps): ...this.
2204 (start_step_over): Turn into...
2205 (linux_process_target::start_step_over): ...this.
2206 (complete_ongoing_step_over): Turn into...
2207 (linux_process_target::complete_ongoing_step_over): ...this.
2208 (proceed_all_lwps): Turn into...
2209 (linux_process_target::proceed_all_lwps): ...this.
2210 (unstop_all_lwps): Turn into...
2211 (linux_process_target::unstop_all_lwps): ...this.
2212
2213 * linux-low.h (class linux_process_target)
2214 <handle_extended_wait>
2215 <maybe_move_out_of_jump_pad>
2216 filter_event>
2217 <wait_for_event_filtered>
2218 <wait_for_event>
2219 <wait_1>
2220 <wait_for_sigstop>
2221 <move_out_of_jump_pad>
2222 <stop_all_lwps>
2223 <start_step_over>
2224 <complete_ongoing_step_over>
2225 <proceed_all_lwps>
2226 <unstop_all_lwps>: Declare.
2227
2228 Update the callers below.
2229
2230 * linux-low.cc (linux_process_target::attach): Update.
2231 (linux_process_target::stabilize_threads): Ditto.
2232 (linux_process_target::wait): Ditto.
2233
a5863204
TBA
22342020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2235
2236 * linux-low.h (struct linux_target_ops): Update the comment for
2237 'cannot_store_register' to return 0 or 1.
2238 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2239 of 2.
2240
c884cc46
SM
22412020-03-20 Simon Marchi <simon.marchi@efficios.com>
2242
2243 * config.in: Re-generate.
2244 * configure: Re-generate.
2245
5a82b8a1
KR
22462020-03-17 Kamil Rytarowski <n54@gmx.com>
2247
2248 * regcache.cc (find_register_by_number): Update.
2249 * tdesc.cc (init_target_desc): Likewise.
2250 * tdesc.h (target_desc::reg_defs): Likewise.
2251
4635ff97
TT
22522020-03-12 Tom Tromey <tom@tromey.com>
2253
2254 * configure: Rebuild.
2255 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2256 (WIN32APILIBS): New subst.
2257 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2258 gdbsupport files.
2259 (gdbsupport/%.o): Remove target.
2260 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2261 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2262 (WIN32APILIBS): New variable.
2263 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2264 (gdbreplay$(EXEEXT)): Likewise.
2265
9a665d62
TT
22662020-03-12 Tom Tromey <tom@tromey.com>
2267
2268 * config.in, configure: Rebuild.
2269 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2270 * acinclude.m4: Include gettext-sister.m4.
2271 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2272 variables.
2273 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2274 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2275
272cd5a3
SM
22762020-03-12 Simon Marchi <simon.marchi@efficios.com>
2277
2278 * acinclude.m4: Update path to selftest.m4.
2279
db6878ac
SM
22802020-03-12 Simon Marchi <simon.marchi@efficios.com>
2281
2282 * configure.ac: Don't source bfd/development.sh, move
2283 GDB_AC_COMMON higher.
2284 * configure: Re-generate.
2285
4d696a5c
SM
22862020-03-12 Simon Marchi <simon.marchi@efficios.com>
2287
2288 * configure: Re-generate.
2289
a0761e34
SM
22902020-03-11 Simon Marchi <simon.marchi@efficios.com>
2291
2292 * configure: Re-generate.
2293
20ea4a60
AB
22942020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2295
2296 * .dir-locals.el: New file.
2297
842806cb
TBA
22982020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2299
2300 * .gitattributes: New file.
2301
442131c1
AB
23022020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2303
2304 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2305 reply into an S reply.
2306 * server.cc (disable_packet_T): New global.
2307 (captured_main): Set new global when appropriate.
2308 * server.h (disable_packet_T): Declare.
2309
dda42c0b
TT
23102020-02-21 Tom Tromey <tom@tromey.com>
2311
2312 * Makefile.in (mostlyclean): New target.
2313
52405d85
TBA
23142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2315
2316 * target.h (struct process_stratum_target): Remove.
2317 (class process_target): Rename to ...
2318 (class process_stratum_target): ... this.
2319 * linux-low.h (class linux_process_target): Derive from
2320 'process_stratum_target'.
2321 * linux-low.cc (linux_target_ops): Remove.
2322 (initialize_low): Set the_target to the singleton instance of
2323 linux_process_target.
2324 * lynx-low.h (class lynx_process_target): Derive from
2325 'process_stratum_target'.
2326 * lynx-low.cc (lynx_target_ops): Remove.
2327 (initialize_low): Set the_target to the singleton instance of
2328 lynx_process_target.
2329 * nto-low.h (class nto_process_target): Derive from
2330 'process_stratum_target'.
2331 * nto-low.cc (nto_target_ops): Remove.
2332 (initialize_low): Set the_target to the singleton instance of
2333 nto_process_target.
2334 * win32-low.h (class win32_process_target): Derive from
2335 'process_stratum_target'.
2336 * win32-low.cc (win32_target_ops): Remove.
2337 (initialize_low): Set the_target to the singleton instance of
2338 win32_process_target.
2339
2340 Replace 'the_target->pt' with 'the_target' in the uses below.
2341
2342 * hostio.cc (hostio_error)
2343 (handle_setfs)
2344 (handle_open)
2345 (handle_unlink)
2346 (handle_readlink)
2347 * linux-aarch32-low.cc (arm_breakpoint_at)
2348 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2349 * linux-arm-low.cc (arm_sigreturn_next_pc)
2350 (arm_get_hwcap)
2351 (arm_get_syscall_trapinfo)
2352 * linux-cris-low.cc (cris_breakpoint_at)
2353 * linux-crisv32-low.cc (cris_breakpoint_at)
2354 * linux-low.cc (handle_extended_wait)
2355 (linux_wait_1)
2356 (linux_read_memory)
2357 (linux_process_target::breakpoint_kind_from_pc)
2358 (linux_get_auxv)
2359 * linux-m32r-low.cc (m32r_breakpoint_at)
2360 * linux-mips-low.cc (mips_breakpoint_at)
2361 * linux-nios2-low.cc (nios2_breakpoint_at)
2362 * linux-ppc-low.cc (ppc_breakpoint_at)
2363 * linux-s390-low.cc (s390_get_hwcap)
2364 * linux-sh-low.cc (sh_breakpoint_at)
2365 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2366 (sparc_store_gregset_from_stack)
2367 (sparc_breakpoint_at)
2368 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2369 * linux-tile-low.cc (tile_breakpoint_at)
2370 * linux-x86-low.cc (x86_breakpoint_at)
2371 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2372 * mem-break.cc (bp_size)
2373 (bp_opcode)
2374 (insert_memory_breakpoint)
2375 (set_raw_breakpoint_at)
2376 (delete_raw_breakpoint)
2377 (z_type_supported)
2378 (uninsert_raw_breakpoint)
2379 (reinsert_raw_breakpoint)
2380 (validate_inserted_breakpoint)
2381 * regcache.cc (regcache_read_pc)
2382 (regcache_write_pc)
2383 * remote-utils.cc (putpkt_binary_1)
2384 (input_interrupt)
2385 (getpkt)
2386 (prepare_resume_reply)
2387 * server.cc (handle_general_set)
2388 (handle_detach)
2389 (handle_qxfer_auxv)
2390 (handle_qxfer_exec_file)
2391 (handle_qxfer_libraries_svr4)
2392 (handle_qxfer_osdata)
2393 (handle_qxfer_siginfo)
2394 (handle_qxfer_fdpic)
2395 (handle_query)
2396 (resume)
2397 (handle_v_requests)
2398 (queue_stop_reply_callback)
2399 (captured_main)
2400 * target.cc (prepare_to_access_memory)
2401 (done_accessing_memory)
2402 (read_inferior_memory)
2403 (target_write_memory)
2404 (target_stop_and_wait)
2405 (target_wait)
2406 (target_mourn_inferior)
2407 (target_continue_no_signal)
2408 (target_continue)
2409 (target_supports_multi_process)
2410 (kill_inferior)
2411 * target.h
2412 (target_create_inferior)
2413 (target_post_create_inferior)
2414 (myattach)
2415 (target_supports_fork_events)
2416 (target_supports_vfork_events)
2417 (target_supports_exec_events)
2418 (target_handle_new_gdb_connection)
2419 (detach_inferior)
2420 (mythread_alive)
2421 (fetch_inferior_registers)
2422 (store_inferior_registers)
2423 (join_inferior)
2424 (target_supports_non_stop)
2425 (target_async)
2426 (target_process_qsupported)
2427 (target_supports_catch_syscall)
2428 (target_get_ipa_tdesc_idx)
2429 (target_supports_tracepoints)
2430 (target_supports_fast_tracepoints)
2431 (target_get_min_fast_tracepoint_insn_len)
2432 (target_thread_stopped)
2433 (target_pause_all)
2434 (target_unpause_all)
2435 (target_stabilize_threads)
2436 (target_install_fast_tracepoint_jump_pad)
2437 (target_emit_ops)
2438 (target_supports_disable_randomization)
2439 (target_supports_agent)
2440 (target_enable_btrace)
2441 (target_disable_btrace)
2442 (target_read_btrace)
2443 (target_read_btrace_conf)
2444 (target_supports_range_stepping)
2445 (target_supports_stopped_by_sw_breakpoint)
2446 (target_stopped_by_sw_breakpoint)
2447 (target_supports_stopped_by_hw_breakpoint)
2448 (target_supports_hardware_single_step)
2449 (target_stopped_by_hw_breakpoint)
2450 (target_breakpoint_kind_from_pc)
2451 (target_breakpoint_kind_from_current_state)
2452 (target_supports_software_single_step)
2453 (target_core_of_thread)
2454 (target_thread_name)
2455 (target_thread_handle)
2456 * win32-low.cc (do_initial_child_stuff)
2457
2458 Rename target op default definitions listed below.
2459
2460 * target.cc (process_target::post_create_inferior): Rename as ...
2461 (process_stratum_target::post_create_inferior): ... this.
2462 (process_target::prepare_to_access_memory): Rename as ...
2463 (process_stratum_target::prepare_to_access_memory): ... this.
2464 (process_target::done_accessing_memory): Rename as ...
2465 (process_stratum_target::done_accessing_memory): ... this.
2466 (process_target::look_up_symbols): Rename as ...
2467 (process_stratum_target::look_up_symbols): ... this.
2468 (process_target::supports_read_auxv): Rename as ...
2469 (process_stratum_target::supports_read_auxv): ... this.
2470 (process_target::read_auxv): Rename as ...
2471 (process_stratum_target::read_auxv): ... this.
2472 (process_target::supports_z_point_type): Rename as ...
2473 (process_stratum_target::supports_z_point_type): ... this.
2474 (process_target::insert_point): Rename as ...
2475 (process_stratum_target::insert_point): ... this.
2476 (process_target::remove_point): Rename as ...
2477 (process_stratum_target::remove_point): ... this.
2478 (process_target::stopped_by_sw_breakpoint): Rename as ...
2479 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2480 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2481 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2482 (process_target::stopped_by_hw_breakpoint): Rename as ...
2483 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2484 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2485 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2486 (process_target::supports_hardware_single_step): Rename as ...
2487 (process_stratum_target::supports_hardware_single_step): ... this.
2488 (process_target::stopped_by_watchpoint): Rename as ...
2489 (process_stratum_target::stopped_by_watchpoint): ... this.
2490 (process_target::stopped_data_address): Rename as ...
2491 (process_stratum_target::stopped_data_address): ... this.
2492 (process_target::supports_read_offsets): Rename as ...
2493 (process_stratum_target::supports_read_offsets): ... this.
2494 (process_target::read_offsets): Rename as ...
2495 (process_stratum_target::read_offsets): ... this.
2496 (process_target::supports_get_tls_address): Rename as ...
2497 (process_stratum_target::supports_get_tls_address): ... this.
2498 (process_target::get_tls_address): Rename as ...
2499 (process_stratum_target::get_tls_address): ... this.
2500 (process_target::hostio_last_error): Rename as ...
2501 (process_stratum_target::hostio_last_error): ... this.
2502 (process_target::supports_qxfer_osdata): Rename as ...
2503 (process_stratum_target::supports_qxfer_osdata): ... this.
2504 (process_target::qxfer_osdata): Rename as ...
2505 (process_stratum_target::qxfer_osdata): ... this.
2506 (process_target::supports_qxfer_siginfo): Rename as ...
2507 (process_stratum_target::supports_qxfer_siginfo): ... this.
2508 (process_target::qxfer_siginfo): Rename as ...
2509 (process_stratum_target::qxfer_siginfo): ... this.
2510 (process_target::supports_non_stop): Rename as ...
2511 (process_stratum_target::supports_non_stop): ... this.
2512 (process_target::async): Rename as ...
2513 (process_stratum_target::async): ... this.
2514 (process_target::start_non_stop): Rename as ...
2515 (process_stratum_target::start_non_stop): ... this.
2516 (process_target::supports_multi_process): Rename as ...
2517 (process_stratum_target::supports_multi_process): ... this.
2518 (process_target::supports_fork_events): Rename as ...
2519 (process_stratum_target::supports_fork_events): ... this.
2520 (process_target::supports_vfork_events): Rename as ...
2521 (process_stratum_target::supports_vfork_events): ... this.
2522 (process_target::supports_exec_events): Rename as ...
2523 (process_stratum_target::supports_exec_events): ... this.
2524 (process_target::handle_new_gdb_connection): Rename as ...
2525 (process_stratum_target::handle_new_gdb_connection): ... this.
2526 (process_target::handle_monitor_command): Rename as ...
2527 (process_stratum_target::handle_monitor_command): ... this.
2528 (process_target::core_of_thread): Rename as ...
2529 (process_stratum_target::core_of_thread): ... this.
2530 (process_target::supports_read_loadmap): Rename as ...
2531 (process_stratum_target::supports_read_loadmap): ... this.
2532 (process_target::read_loadmap): Rename as ...
2533 (process_stratum_target::read_loadmap): ... this.
2534 (process_target::process_qsupported): Rename as ...
2535 (process_stratum_target::process_qsupported): ... this.
2536 (process_target::supports_tracepoints): Rename as ...
2537 (process_stratum_target::supports_tracepoints): ... this.
2538 (process_target::read_pc): Rename as ...
2539 (process_stratum_target::read_pc): ... this.
2540 (process_target::write_pc): Rename as ...
2541 (process_stratum_target::write_pc): ... this.
2542 (process_target::supports_thread_stopped): Rename as ...
2543 (process_stratum_target::supports_thread_stopped): ... this.
2544 (process_target::thread_stopped): Rename as ...
2545 (process_stratum_target::thread_stopped): ... this.
2546 (process_target::supports_get_tib_address): Rename as ...
2547 (process_stratum_target::supports_get_tib_address): ... this.
2548 (process_target::get_tib_address): Rename as ...
2549 (process_stratum_target::get_tib_address): ... this.
2550 (process_target::pause_all): Rename as ...
2551 (process_stratum_target::pause_all): ... this.
2552 (process_target::unpause_all): Rename as ...
2553 (process_stratum_target::unpause_all): ... this.
2554 (process_target::stabilize_threads): Rename as ...
2555 (process_stratum_target::stabilize_threads): ... this.
2556 (process_target::supports_fast_tracepoints): Rename as ...
2557 (process_stratum_target::supports_fast_tracepoints): ... this.
2558 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2559 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2560 (process_target::emit_ops): Rename as ...
2561 (process_stratum_target::emit_ops): ... this.
2562 (process_target::supports_disable_randomization): Rename as ...
2563 (process_stratum_target::supports_disable_randomization): ... this.
2564 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2565 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2566 (process_target::qxfer_libraries_svr4): Rename as ...
2567 (process_stratum_target::qxfer_libraries_svr4): ... this.
2568 (process_target::supports_agent): Rename as ...
2569 (process_stratum_target::supports_agent): ... this.
2570 (process_target::enable_btrace): Rename as ...
2571 (process_stratum_target::enable_btrace): ... this.
2572 (process_target::disable_btrace): Rename as ...
2573 (process_stratum_target::disable_btrace): ... this.
2574 (process_target::read_btrace): Rename as ...
2575 (process_stratum_target::read_btrace): ... this.
2576 (process_target::read_btrace_conf): Rename as ...
2577 (process_stratum_target::read_btrace_conf): ... this.
2578 (process_target::supports_range_stepping): Rename as ...
2579 (process_stratum_target::supports_range_stepping): ... this.
2580 (process_target::supports_pid_to_exec_file): Rename as ...
2581 (process_stratum_target::supports_pid_to_exec_file): ... this.
2582 (process_target::pid_to_exec_file): Rename as ...
2583 (process_stratum_target::pid_to_exec_file): ... this.
2584 (process_target::supports_multifs): Rename as ...
2585 (process_stratum_target::supports_multifs): ... this.
2586 (process_target::multifs_open): Rename as ...
2587 (process_stratum_target::multifs_open): ... this.
2588 (process_target::multifs_unlink): Rename as ...
2589 (process_stratum_target::multifs_unlink): ... this.
2590 (process_target::multifs_readlink): Rename as ...
2591 (process_stratum_target::multifs_readlink): ... this.
2592 (process_target::breakpoint_kind_from_pc): Rename as ...
2593 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2594 (process_target::breakpoint_kind_from_current_state): Rename as ...
2595 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2596 (process_target::thread_name): Rename as ...
2597 (process_stratum_target::thread_name): ... this.
2598 (process_target::thread_handle): Rename as ...
2599 (process_stratum_target::thread_handle): ... this.
2600 (process_target::supports_software_single_step): Rename as ...
2601 (process_stratum_target::supports_software_single_step): ... this.
2602 (process_target::supports_catch_syscall): Rename as ...
2603 (process_stratum_target::supports_catch_syscall): ... this.
2604 (process_target::get_ipa_tdesc_idx): Rename as ...
2605 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2606
478f9adf
PA
26072020-02-20 Pedro Alves <palves@redhat.com>
2608
2609 * target.cc (set_target_ops): Simply copy the given target pointer
2610 instead of creating a copy of the pointed object.
2611
d633e831
TBA
26122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2613
2614 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2615 of process_target.
2616
2617 * target.h (struct process_stratum_target): Remove the target op.
2618 (class process_target): Add the target op.
2619 (target_get_ipa_tdesc_idx): Update the macro.
2620 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2621
2622 Update the derived classes and callers below.
2623
2624 * linux-low.cc (linux_target_ops): Update.
2625 (linux_get_ipa_tdesc_idx): Turn into ...
2626 (linux_process_target::get_ipa_tdesc_idx): ... this.
2627 * linux-low.h (class linux_process_target): Update.
2628 * lynx-low.cc (lynx_target_ops): Update.
2629 * nto-low.cc (nto_target_ops): Update.
2630 * win32-low.cc (win32_target_ops): Update.
2631
bc8d3ae4
TBA
26322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2633
2634 Turn process_stratum_target's supports_catch_syscall op into a
2635 method of process_target.
2636
2637 * target.h (struct process_stratum_target): Remove the target op.
2638 (class process_target): Add the target op.
2639 (target_supports_catch_syscall): Update the macro.
2640 * target.cc (process_target::supports_catch_syscall): Define.
2641
2642 Update the derived classes and callers below.
2643
2644 * linux-low.cc (linux_target_ops): Update.
2645 (linux_supports_catch_syscall): Turn into ...
2646 (linux_process_target::supports_catch_syscall): ... this.
2647 * linux-low.h (class linux_process_target): Update.
2648 * lynx-low.cc (lynx_target_ops): Update.
2649 * nto-low.cc (nto_target_ops): Update.
2650 * win32-low.cc (win32_target_ops): Update.
2651
5303a34f
TBA
26522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2653
2654 Turn process_stratum_target's supports_software_single_step op
2655 into a method of process_target.
2656
2657 * target.h (struct process_stratum_target): Remove the target op.
2658 (class process_target): Add the target op.
2659 (target_supports_software_single_step): Update the macro.
2660 * target.cc (process_target::supports_software_single_step): Define.
2661
2662 Update the derived classes and callers below.
2663
2664 * linux-low.cc (linux_target_ops): Update.
2665 (linux_supports_software_single_step): Turn into ...
2666 (linux_process_target::supports_software_single_step): ... this.
2667 * linux-low.h (class linux_process_target): Update.
2668 * lynx-low.cc (lynx_target_ops): Update.
2669 * nto-low.cc (nto_target_ops): Update.
2670 * win32-low.cc (win32_target_ops): Update.
2671
7f63b89b
TBA
26722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2673
2674 Turn process_stratum_target's thread_name and thread_handle ops
2675 into methods of process_target.
2676
2677 * target.h (struct process_stratum_target): Remove the target ops.
2678 (class process_target): Add the target ops.
2679 (target_thread_name): Update the macro.
2680 (target_thread_handle): Update the macro.
2681 * target.cc (process_target::thread_name): Define.
2682 (process_target::thread_handle): Define.
2683
2684 Update the derived classes and callers below.
2685
2686 * linux-low.cc (linux_target_ops): Update.
2687 (linux_process_target::thread_name): Define.
2688 (linux_process_target::thread_handle): Define.
2689 * linux-low.h (class linux_process_target): Update.
2690 * lynx-low.cc (lynx_target_ops): Update.
2691 * nto-low.cc (nto_target_ops): Update.
2692 * win32-low.cc (win32_target_ops): Update.
2693
d367006f
TBA
26942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2695
2696 Turn process_stratum_target's breakpoint_kind_from_pc,
2697 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2698 ops into methods of process_target.
2699
2700 * target.h (struct process_stratum_target): Remove the target op.
2701 (class process_target): Add the target op.
2702 (target_breakpoint_kind_from_pc): Update the macro.
2703 (target_breakpoint_kind_from_current_state): Update the macro.
2704 (default_breakpoint_kind_from_pc): Remove declaration.
2705 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2706 (process_target::breakpoint_kind_from_pc): ... this.
2707 (process_target::breakpoint_kind_from_current_state): Define.
2708
2709 Update the derived classes and callers below.
2710
2711 * mem-break.cc (bp_size): Update.
2712 (bp_opcode): Update.
2713 * linux-low.cc (linux_target_ops): Update.
2714 (linux_wait_1): Update.
2715 (linux_breakpoint_kind_from_pc): Turn into ...
2716 (linux_process_target::breakpoint_kind_from_pc): ... this.
2717 (linux_sw_breakpoint_from_kind): Turn into ...
2718 (linux_process_target::sw_breakpoint_from_kind): ... this.
2719 (linux_breakpoint_kind_from_current_state): Turn into ...
2720 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2721 * linux-low.h (class linux_process_target): Update.
2722 * lynx-low.cc (lynx_target_ops): Update.
2723 (lynx_process_target::sw_breakpoint_from_kind): Define.
2724 * lynx-low.h (class lynx_process_target): Update.
2725 * nto-low.cc (nto_target_ops): Update.
2726 (nto_sw_breakpoint_from_kind): Turn into ...
2727 (nto_process_target::sw_breakpoint_from_kind): ... this.
2728 * nto-low.h (class nto_process_target): Update.
2729 * win32-low.cc (win32_target_ops): Update.
2730 (win32_sw_breakpoint_from_kind): Turn into ...
2731 (win32_process_target::sw_breakpoint_from_kind): ... this.
2732 * win32-low.h (class win32_process_target): Update.
2733
c9b7b804
TBA
27342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2735
2736 Turn process_stratum_target's multifs_open, multifs_readlink,
2737 multifs_unlink ops into methods of process_target.
2738
2739 * target.h (struct process_stratum_target): Remove the target ops.
2740 (class process_target): Add the target ops. Also add
2741 'supports_multifs'.
2742 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2743 "sys/stat.h".
2744 (process_target::supports_multifs): Define.
2745 (process_target::multifs_open): Define.
2746 (process_target::multifs_readlink): Define.
2747 (process_target::multifs_unlink): Define.
2748
2749 Update the derived classes and callers below.
2750
2751 * hostio.cc (handle_setfs): Update.
2752 (handle_open): Update.
2753 (handle_unlink): Update.
2754 (handle_readlink): Update.
2755 * linux-low.cc (linux_target_ops): Update.
2756 (linux_process_target::supports_multifs): Define.
2757 (linux_process_target::multifs_open): Define.
2758 (linux_process_target::multifs_readlink): Define.
2759 (linux_process_target::multifs_unlink): Define.
2760 * linux-low.h (class linux_process_target): Update.
2761 * lynx-low.cc (lynx_target_ops): Update.
2762 * nto-low.cc (nto_target_ops): Update.
2763 * win32-low.cc (win32_target_ops): Update.
2764
8247b823
TBA
27652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2766
2767 Turn process_stratum_target's pid_to_exec_file op into a method
2768 of process_target.
2769
2770 * target.h (struct process_stratum_target): Remove the target op.
2771 (class process_target): Add the target op. Also add
2772 'supports_pid_to_exec_file'.
2773 * target.cc (process_target::pid_to_exec_file): Define.
2774 (process_target::supports_pid_to_exec_file): Define.
2775
2776 Update the derived classes and callers below.
2777
2778 * server.cc (handle_qxfer_exec_file): Update.
2779 (handle_query): Update.
2780 * linux-low.cc (linux_target_ops): Update.
2781 (linux_process_target::supports_pid_to_exec_file): Define.
2782 (linux_process_target::pid_to_exec_file): Define.
2783 * linux-low.h (class linux_process_target): Update.
2784 * lynx-low.cc (lynx_target_ops): Update.
2785 * nto-low.cc (nto_target_ops): Update.
2786 * win32-low.cc (win32_target_ops): Update.
2787
2526e0cd
TBA
27882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2789
2790 Turn process_stratum_target's supports_range_stepping op into a
2791 method of process_target.
2792
2793 * target.h (struct process_stratum_target): Remove the target op.
2794 (class process_target): Add the target op.
2795 (target_supports_range_stepping): Update the macro.
2796 * target.cc (process_target::supports_range_stepping): Define.
2797
2798 Update the derived classes and callers below.
2799
2800 * linux-low.cc (linux_target_ops): Update.
2801 (linux_supports_range_stepping): Turn into ...
2802 (linux_process_target::supports_range_stepping): ... this.
2803 * linux-low.h (class linux_process_target): Update.
2804 * lynx-low.cc (lynx_target_ops): Update.
2805 * nto-low.cc (nto_target_ops): Update.
2806 * win32-low.cc (win32_target_ops): Update.
2807
79597bdd
TBA
28082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2809
2810 Turn process_stratum_target's btrace-related ops (enable_btrace,
2811 disable_btrace, read_btrace, read_btrace_conf) into methods of
2812 process_target.
2813
2814 * target.h (struct process_stratum_target): Remove the target ops.
2815 (class process_target): Add the target ops.
2816 (target_enable_btrace): Update.
2817 (target_disable_btrace): Update.
2818 (target_read_btrace): Update.
2819 (target_read_btrace_conf): Update.
2820 * target.cc (process_target::enable_btrace): Define.
2821 (process_target::disable_btrace): Define.
2822 (process_target::read_btrace): Define.
2823 (process_target::read_btrace_conf): Define.
2824
2825 Update the derived classes and callers below.
2826
2827 * linux-low.cc (linux_target_ops): Update.
2828 (linux_process_target:enable_btrace): Define as a wrapper around
2829 linux_enable_btrace.
2830 (linux_low_disable_btrace): Turn into ...
2831 (linux_process_target::disable_btrace): ... this.
2832 (linux_low_read_btrace): Turn into ...
2833 (linux_process_target::read_btrace): ... this.
2834 (linux_low_btrace_conf): Turn into ...
2835 (linux_process_target::read_btrace_conf): ... this.
2836 * linux-low.h (class linux_process_target): Update.
2837 * lynx-low.cc (lynx_target_ops): Update.
2838 * nto-low.cc (nto_target_ops): Update.
2839 * win32-low.cc (win32_target_ops): Update.
2840
c0245cb9
TBA
28412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2842
2843 Turn process_stratum_target's supports_agent op into a method of
2844 process_target.
2845
2846 * target.h (struct process_stratum_target): Remove the target op.
2847 (class process_target): Add the target op.
2848 (target_supports_agent): Update the macro.
2849 * target.cc (process_target::supports_agent): Define.
2850
2851 Update the derived classes and callers below.
2852
2853 * linux-low.cc (linux_target_ops): Update.
2854 (linux_supports_agent): Turn into ...
2855 (linux_process_target::supports_agent): ... this.
2856 * linux-low.h (class linux_process_target): Update.
2857 * lynx-low.cc (lynx_target_ops): Update.
2858 * nto-low.cc (nto_target_ops): Update.
2859 * win32-low.cc (win32_target_ops): Update.
2860
974387bb
TBA
28612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2862
2863 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2864 method of process_target.
2865
2866 * target.h (struct process_stratum_target): Remove the target op.
2867 (class process_target): Add the target op. Also add
2868 'supports_qxfer_libraries_svr4'.
2869 * target.cc (process_target::qxfer_libraries_svr4): Define.
2870 (process_target::supports_qxfer_libraries_svr4): Define.
2871
2872 Update the derived classes and callers below.
2873
2874 * server.cc (handle_qxfer_libraries_svr4): Update.
2875 (handle_query): Update.
2876 * linux-low.cc (linux_target_ops): Update.
2877 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2878 (linux_qxfer_libraries_svr4): Turn into ...
2879 (linux_process_target::qxfer_libraries_svr4): ... this.
2880 * linux-low.h (class linux_process_target): Update.
2881 * lynx-low.cc (lynx_target_ops): Update.
2882 * nto-low.cc (nto_target_ops): Update.
2883 * win32-low.cc (win32_target_ops): Update.
2884
c756403b
TBA
28852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2886
2887 Turn process_stratum_target's supports_disable_randomization op
2888 into a method of process_target.
2889
2890 * target.h (struct process_stratum_target): Remove the target op.
2891 (class process_target): Add the target op.
2892 (target_supports_disable_randomization): Update the macro.
2893 * target.cc (process_target::supports_disable_randomization): Define.
2894
2895 Update the derived classes and callers below.
2896
2897 * linux-low.cc (linux_target_ops): Update.
2898 (linux_supports_disable_randomization): Turn into ...
2899 (linux_process_target::supports_disable_randomization): ... this.
2900 * linux-low.h (class linux_process_target): Update.
2901 * lynx-low.cc (lynx_target_ops): Update.
2902 * nto-low.cc (nto_target_ops): Update.
2903 * win32-low.cc (win32_target_ops): Update.
2904
345dafad
TBA
29052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2906
2907 Turn process_stratum_target's emit_ops op into a method of
2908 process_target.
2909
2910 * target.h (struct process_stratum_target): Remove the target op.
2911 (class process_target): Add the target op.
2912 (target_emit_ops): Update the macro.
2913 * target.cc (process_target::emit_ops): Define.
2914
2915 Update the derived classes and callers below.
2916
2917 * linux-low.cc (linux_target_ops): Update.
2918 (linux_emit_ops): Turn into ...
2919 (linux_process_target::emit_ops): ... this.
2920 * linux-low.h (class linux_process_target): Update.
2921 * lynx-low.cc (lynx_target_ops): Update.
2922 * nto-low.cc (nto_target_ops): Update.
2923 * win32-low.cc (win32_target_ops): Update.
2924
c23c9391
TBA
29252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2926
2927 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2928 and get_min_fast_tracepoint_insn_len ops into methods of
2929 process_target.
2930
2931 * target.h (struct process_stratum_target): Remove the target ops.
2932 (class process_target): Add the target ops. Also add
2933 'supports_fast_tracepoints'.
2934 (target_supports_fast_tracepoints): Update the macro.
2935 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2936 (install_fast_tracepoint_jump_pad): Update and rename the macro
2937 to ...
2938 (target_install_fast_tracepoint_jump_pad): ... this.
2939 * target.cc (process_target::supports_fast_tracepoints): Define.
2940 (process_target::install_fast_tracepoint_jump_pad): Define.
2941 (process_target::get_min_fast_tracepoint_insn_len): Define.
2942
2943 Update the derived classes and callers below.
2944
2945 * tracepoint.cc (install_fast_tracepoint): Update.
2946 * linux-low.cc (linux_target_ops): Update.
2947 (linux_process_target::supports_fast_tracepoints): Define.
2948 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2949 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2950 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2951 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2952 * linux-low.h (class linux_process_target): Update.
2953 * lynx-low.cc (lynx_target_ops): Update.
2954 * nto-low.cc (nto_target_ops): Update.
2955 * win32-low.cc (win32_target_ops): Update.
2956
5c9eb2f2
TBA
29572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2958
2959 Turn process_stratum_target's stabilize_threads op into a
2960 method of process_target.
2961
2962 * target.h (struct process_stratum_target): Remove the target op.
2963 (class process_target): Add the target op.
2964 (target_stabilize_threads): Update the macro.
2965 * target.cc (process_target::stabilize_threads): Define.
2966
2967 Update the derived classes and callers below.
2968
2969 * server.cc (handle_status): Update.
2970 * tracepoint.cc (cmd_qtdp): Update.
2971 (cmd_qtstart): Update.
2972 * linux-low.cc (linux_target_ops): Update.
2973 (linux_stabilize_threads): Turn into ...
2974 (linux_process_target::stabilize_threads): ... this.
2975 (linux_wait_1): Update.
2976 * linux-low.h (class linux_process_target): Update.
2977 * lynx-low.cc (lynx_target_ops): Update.
2978 * nto-low.cc (nto_target_ops): Update.
2979 * win32-low.cc (win32_target_ops): Update.
2980
29e8dc09
TBA
29812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2982
2983 Turn process_stratum_target's pause_all and unpause_all ops
2984 into methods of process_target.
2985
2986 * target.h (struct process_stratum_target): Remove the target ops.
2987 (class process_target): Add the target ops.
2988 (pause_all): Update the macro and rename to...
2989 (target_pause_all): ... this.
2990 (unpause_all): Update the macro and rename to...
2991 (target_unpause_all): ... this.
2992 * target.cc (process_target::pause_all): Define.
2993 (process_target::unpause_all): Define.
2994
2995 Update the derived classes and callers below.
2996
2997 * server.cc (handle_status): Update.
2998 * tracepoint.cc (clear_installed_tracepoints): Update.
2999 (cmd_qtdp): Update.
3000 (cmd_qtstart): Update.
3001 (stop_tracing): Update.
3002 (cmd_qtstatus): Update.
3003 (upload_fast_traceframes): Update.
3004 (run_inferior_command): Update.
3005 * linux-low.cc (linux_target_ops): Update.
3006 (linux_pause_all): Turn into ...
3007 (linux_process_target::pause_all): ... this.
3008 (linux_unpause_all): Turn into ...
3009 (linux_process_target::unpause_all): ... this.
3010 (linux_process_target::prepare_to_access_memory): Update.
3011 (linux_process_target::done_accessing_memory): Update.
3012 * linux-low.h (class linux_process_target): Update.
3013 * lynx-low.cc (lynx_target_ops): Update.
3014 * nto-low.cc (nto_target_ops): Update.
3015 * win32-low.cc (win32_target_ops): Update.
3016
4e2e869c
TBA
30172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3018
3019 Turn process_stratum_target's get_tib_address op into a method of
3020 process_target.
3021
3022 * target.h (struct process_stratum_target): Remove the target op.
3023 (class process_target): Add the target op. Also add
3024 'supports_get_tib_address'.
3025 * target.cc (process_target::get_tib_address): Define.
3026 (process_target::supports_get_tib_address): Define.
3027
3028 Update the derived classes and callers below.
3029
3030 * server.cc (handle_query): Update.
3031 * linux-low.cc (win32_target_ops): Update.
3032 * lynx-low.cc (lynx_target_ops): Update.
3033 * nto-low.cc (nto_target_ops): Update.
3034 * win32-low.cc (win32_target_ops): Update.
3035 (win32_process_target::supports_get_tib_address): Define.
3036 (win32_get_tib_address): Turn into ...
3037 (win32_process_target::get_tib_address): ... this.
3038 * win32-low.h (class win32_process_target): Update.
3039
68119632
TBA
30402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3041
3042 Turn process_stratum_target's thread_stopped op into a method of
3043 process_target.
3044
3045 * target.h (struct process_stratum_target): Remove the target op.
3046 (class process_target): Add the target op. Also add
3047 'supports_thread_stopped'.
3048 (target_thread_stopped): Update the macro.
3049 * target.cc (process_target::thread_stopped): Define.
3050 (process_target::supports_thread_stopped): Define.
3051 (prepare_to_access_memory): Update.
3052
3053 Update the derived classes and callers below.
3054
3055 * server.cc (queue_stop_reply_callback): Update.
3056 * linux-low.cc (linux_target_ops): Update.
3057 (linux_process_target::supports_thread_stopped): Define.
3058 (linux_thread_stopped): Turn into ...
3059 (linux_process_target::thread_stopped): ... this.
3060 * linux-low.h (class linux_process_target): Update.
3061 * lynx-low.cc (lynx_target_ops): Update.
3062 * nto-low.cc (nto_target_ops): Update.
3063 * win32-low.cc (win32_target_ops): Update.
3064
770d8f6a
TBA
30652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3066
3067 Turn process_stratum_target's read_pc and write_pc ops into
3068 methods of process_target.
3069
3070 * target.h (struct process_stratum_target): Remove the target ops.
3071 (class process_target): Add the target ops.
3072 * target.cc (process_target::read_pc): Define.
3073 (process_target::write_pc): Define.
3074
3075 Update the derived classes and callers below.
3076
3077 * regcache.cc (regcache_read_pc): Update.
3078 (regcache_write_pc): Update.
3079 * linux-low.cc (linux_target_ops): Update.
3080 (linux_read_pc): Turn into ...
3081 (linux_process_target::read_pc): ... this.
3082 (linux_write_pc): Turn into ...
3083 (linux_process_target::write_pc): ... this.
3084 * linux-low.h (class linux_process_target): Update.
3085 * lynx-low.cc (lynx_target_ops): Update.
3086 * nto-low.cc (nto_target_ops): Update.
3087 * win32-low.cc (win32_target_ops): Update.
3088
290732bf
TBA
30892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3090
3091 Turn process_stratum_target's supports_tracepoints op into a
3092 method of process_target.
3093
3094 * target.h (struct process_stratum_target): Remove the target op.
3095 (class process_target): Add the target op.
3096 (target_supports_tracepoints): Update the macro.
3097 * target.cc (process_target::supports_tracepoints): Define.
3098
3099 Update the derived classes and callers below.
3100
3101 * linux-low.cc (linux_target_ops): Update.
3102 (linux_supports_tracepoints): Turn into ...
3103 (linux_process_target::supports_tracepoints): ... this.
3104 * linux-low.h (class linux_process_target): Update.
3105 * lynx-low.cc (lynx_target_ops): Update.
3106 * nto-low.cc (nto_target_ops): Update.
3107 * win32-low.cc (win32_target_ops): Update.
3108
0df28b1b
TBA
31092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3110
3111 Turn process_stratum_target's process_qsupported op into a method
3112 of process_target.
3113
3114 * target.h (struct process_stratum_target): Remove the target op.
3115 (class process_target): Add the target op.
3116 (target_process_qsupported): Update the macro.
3117 * target.cc (process_target::process_qsupported): Define.
3118
3119 Update the derived classes and callers below.
3120
3121 * linux-low.cc (linux_target_ops): Update.
3122 (linux_process_qsupported): Turn into ...
3123 (linux_process_target::process_qsupported): ... this.
3124 * linux-low.h (class linux_process_target): Update.
3125 * lynx-low.cc (lynx_target_ops): Update.
3126 * nto-low.cc (nto_target_ops): Update.
3127 * win32-low.cc (win32_target_ops): Update.
3128
9da41fda
TBA
31292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3130
3131 Turn process_stratum_target's read_loadmap op into a method of
3132 process_target.
3133
3134 * target.h (struct process_stratum_target): Remove the target op.
3135 (class process_target): Add the target op. Also add
3136 'supports_read_loadmap'.
3137 * target.cc (process_target::read_loadmap): Define.
3138 (process_target::supports_read_loadmap): Define.
3139
3140 Update the derived classes and callers below.
3141
3142 * server.cc (handle_qxfer_fdpic): Update.
3143 (handle_query): Update.
3144 * linux-low.cc (linux_target_ops): Update.
3145 (linux_process_target::supports_read_loadmap): Define.
3146 (linux_read_loadmap): Turn into ...
3147 (linux_process_target::read_loadmap): ... this.
3148 * linux-low.h (class linux_process_target): Update.
3149 * lynx-low.cc (lynx_target_ops): Update.
3150 * nto-low.cc (nto_target_ops): Update.
3151 * win32-low.cc (win32_target_ops): Update.
3152
95a45fc1
TBA
31532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3154
3155 Turn process_stratum_target's core_of_thread op into a method of
3156 process_target.
3157
3158 * target.h (struct process_stratum_target): Remove the target op.
3159 (class process_target): Add the target op.
3160 (target_core_of_thread): Update the macro.
3161 * target.cc (process_target::core_of_thread): Define.
3162
3163 Update the derived classes and callers below.
3164
3165 * linux-low.cc (linux_target_ops): Update.
3166 (linux_process_target::core_of_thread): Define.
3167 * linux-low.h (class linux_process_target): Update.
3168 * lynx-low.cc (lynx_target_ops): Update.
3169 * nto-low.cc (nto_target_ops): Update.
3170 * win32-low.cc (win32_target_ops): Update.
3171
55cf3021
TBA
31722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3173
3174 Turn process_stratum_target's handle_monitor_command op into a
3175 method of process_target.
3176
3177 * target.h (struct process_stratum_target): Remove the target op.
3178 (class process_target): Add the target op.
3179 (target_handle_monitor_command): Update the macro.
3180 * target.cc (process_target::handle_monitor_command): Define.
3181
3182 Update the derived classes and callers below.
3183
3184 * server.cc (handle_query): Update.
3185 * linux-low.cc (linux_target_ops): Update.
3186 (linux_process_target::handle_monitor_command): Define.
3187 * linux-low.h (class linux_process_target): Update.
3188 * lynx-low.cc (lynx_target_ops): Update.
3189 * nto-low.cc (nto_target_ops): Update.
3190 * win32-low.cc (win32_target_ops): Update.
3191
fb00dfce
TBA
31922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3193
3194 Turn process_stratum_target's handle_new_gdb_connection op into a
3195 method of process_target.
3196
3197 * target.h (struct process_stratum_target): Remove the target op.
3198 (class process_target): Add the target op.
3199 (target_handle_new_gdb_connection): Update the macro.
3200 * target.cc (process_target::handle_new_gdb_connection): Define.
3201
3202 Update the derived classes and callers below.
3203
3204 * linux-low.cc (linux_target_ops): Update.
3205 (linux_handle_new_gdb_connection): Turn into ...
3206 (linux_process_target::handle_new_gdb_connection): ... this.
3207 * linux-low.h (class linux_process_target): Update.
3208 * lynx-low.cc (lynx_target_ops): Update.
3209 * nto-low.cc (nto_target_ops): Update.
3210 * win32-low.cc (win32_target_ops): Update.
3211
9690a72a
TBA
32122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3213
3214 Turn process_stratum_target's supports_fork_events,
3215 supports_vfork_events, and supports_exec_events ops into methods
3216 of process_target.
3217
3218 * target.h (struct process_stratum_target): Remove the target ops.
3219 (class process_target): Add the target ops.
3220 (target_supports_fork_events): Update the macro.
3221 (target_supports_vfork_events): Update the macro.
3222 (target_supports_exec_events): Update the macro.
3223 * target.cc (process_target::supports_fork_events): Define.
3224 (process_target::supports_vfork_events): Define.
3225 (process_target::supports_exec_events): Define.
3226
3227 Update the derived classes and callers below.
3228
3229 * linux-low.cc (linux_target_ops): Update.
3230 (linux_supports_fork_events): Turn into ...
3231 (linux_process_target::supports_fork_events): ... this.
3232 (linux_supports_vfork_events): Turn into ...
3233 (linux_process_target::supports_vfork_events): ... this.
3234 (linux_supports_exec_events): Turn into ...
3235 (linux_process_target::supports_exec_events): ... this.
3236 * linux-low.h (class linux_process_target): Update.
3237 * lynx-low.cc (lynx_target_ops): Update.
3238 * nto-low.cc (nto_target_ops): Update.
3239 * win32-low.cc (win32_target_ops): Update.
3240
652aef77
TBA
32412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3242
3243 Turn process_stratum_target's supports_multi_process op into a
3244 method of process_target.
3245
3246 * target.h (struct process_stratum_target): Remove the target op.
3247 (class process_target): Add the target op.
3248 * target.cc (process_target::supports_multi_process): Define.
3249 (target_supports_multi_process): Update.
3250
3251 Update the derived classes and callers below.
3252
3253 * linux-low.cc (linux_target_ops): Update.
3254 (linux_supports_multi_process): Turn into ...
3255 (linux_process_target::supports_multi_process): ... this.
3256 * linux-low.h (class linux_process_target): Update.
3257 * lynx-low.cc (lynx_target_ops): Update.
3258 * nto-low.cc (nto_target_ops): Update.
3259 * win32-low.cc (win32_target_ops): Update.
3260
0dc587d4
TBA
32612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3262
3263 Turn process_stratum_target's supports_non_stop, async, and
3264 start_non_stop ops into methods of process_target.
3265
3266 * target.h (struct process_stratum_target): Remove the target ops.
3267 (class process_target): Add the target ops.
3268 (target_supports_non_stop): Update the macro.
3269 (target_async): Update the macro.
3270 (start_non_stop): Remove declaration.
3271 * target.cc (process_target::supports_non_stop): Define.
3272 (process_target::async): Define.
3273 (process_target::start_non_stop): Define.
3274 (start_non_stop): Remove.
3275
3276 Update the derived classes and callers below.
3277
3278 * server.cc (handle_qxfer_siginfo): Update.
3279 (handle_query): Update.
3280 * linux-low.cc (linux_target_ops): Update.
3281 (linux_supports_non_stop): Turn into ...
3282 (linux_process_target::supports_non_stop): ... this.
3283 (linux_async): Turn into ...
3284 (linux_process_target::async): ... this.
3285 (linux_start_non_stop): Turn into ...
3286 (linux_process_target::start_non_stop): ... this.
3287 * linux-low.h (class linux_process_target): Update.
3288 * lynx-low.cc (lynx_target_ops): Update.
3289 * nto-low.cc (nto_target_ops): Update.
3290 (nto_supports_non_stop): Remove; rely on the default behavior
3291 instead.
3292 * win32-low.cc (win32_target_ops): Update.
3293
d7abedf7
TBA
32942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3295
3296 Turn process_stratum_target's qxfer_siginfo op into a method of
3297 process_target.
3298
3299 * target.h (struct process_stratum_target): Remove the target op.
3300 (class process_target): Add the target op. Also add
3301 'supports_qxfer_siginfo'.
3302 * target.cc (process_target::qxfer_siginfo): Define.
3303 (process_target::supports_qxfer_siginfo): Define.
3304
3305 Update the derived classes and callers below.
3306
3307 * server.cc (handle_qxfer_siginfo): Update.
3308 (handle_query): Update.
3309 * linux-low.cc (linux_target_ops): Update.
3310 (linux_process_target::supports_qxfer_siginfo): Define.
3311 (linux_xfer_siginfo): Turn into ...
3312 (linux_process_target::qxfer_siginfo): ... this.
3313 * linux-low.h (class linux_process_target): Update.
3314 * lynx-low.cc (lynx_target_ops): Update.
3315 * nto-low.cc (nto_target_ops): Update.
3316 * win32-low.cc (win32_target_ops): Update.
3317
2d0795ee
TBA
33182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3319
3320 Turn process_stratum_target's qxfer_osdata op into a method of
3321 process_target.
3322
3323 * target.h (struct process_stratum_target): Remove the target op.
3324 (class process_target): Add the target op. Also add
3325 'supports_qxfer_osdata'.
3326 * target.cc (process_target::qxfer_osdata): Define.
3327 (process_target::supports_qxfer_osdata): Define.
3328
3329 Update the derived classes and callers below.
3330
3331 * server.cc (handle_qxfer_osdata): Update.
3332 (handle_query): Update.
3333 * linux-low.cc (linux_target_ops): Update.
3334 (linux_process_target::supports_qxfer_osdata): Define.
3335 (linux_qxfer_osdata): Turn into ...
3336 (linux_process_target::qxfer_osdata): ... this.
3337 * linux-low.h (class linux_process_target): Update.
3338 * lynx-low.cc (lynx_target_ops): Update.
3339 * nto-low.cc (nto_target_ops): Update.
3340 * win32-low.cc (win32_target_ops): Update.
3341
ea06bbaa
TBA
33422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3343
3344 Turn process_stratum_target's hostio_last_error op into a
3345 method of process_target.
3346
3347 * target.h (struct process_stratum_target): Remove the target op.
3348 (class process_target): Add the target op.
3349 * target.cc: Add "hostio.h" to includes.
3350 (process_target::hostio_last_error): Define.
3351
3352 Update the derived classes and callers below.
3353
3354 * hostio.cc (hostio_error): Update.
3355 * linux-low.cc: Remove "hostio.h" from includes.
3356 (linux_target_ops): Update.
3357 * lynx-low.cc (lynx_target_ops): Update.
3358 * nto-low.cc (nto_target_ops): Update.
3359 * win32-low.h (class win32_process_target): Update.
3360 * win32-low.cc (win32_target_ops): Update.
3361 (wince_hostio_last_error): Turn into ...
3362 (win32_process_target::hostio_last_error): ... this.
3363
6e3fd7e9
TBA
33642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3365
3366 Turn process_stratum_target's get_tls_address op into a method of
3367 process_target.
3368
3369 * target.h (struct process_stratum_target): Remove the target op.
3370 (class process_target): Add the target op. Also add
3371 'supports_get_tls_address'.
3372 * target.cc (process_target::get_tls_address): Define.
3373 (process_target::supports_get_tls_address): Define.
3374
3375 Update the derived classes and callers below.
3376
3377 * server.cc (handle_query): Update.
3378 * linux-low.cc (linux_target_ops): Update.
3379 (linux_process_target::supports_get_tls_address): Define.
3380 (linux_process_target::get_tls_address): Define.
3381 * linux-low.h (class linux_process_target): Update.
3382 * lynx-low.cc (lynx_target_ops): Update.
3383 * nto-low.cc (nto_target_ops): Update.
3384 * win32-low.cc (win32_target_ops): Update.
3385
5203ae1e
TBA
33862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3387
3388 Turn process_stratum_target's read_offsets op into a method of
3389 process_target.
3390
3391 * target.h (struct process_stratum_target): Remove the target op.
3392 (class process_target): Add the target op. Also add
3393 'supports_read_offsets'.
3394 * target.cc (process_target::read_offsets): Define.
3395 (process_target::supports_read_offsets): Define.
3396
3397 Update the derived classes and callers below.
3398
3399 * server.cc (handle_query): Update.
3400 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3401 (linux_target_ops): Update.
3402 (linux_process_target::supports_read_offsets): Define.
3403 (linux_read_offsets): Turn into ...
3404 (linux_process_target::read_offsets): ... this.
3405 * linux-low.h (class linux_process_target): Update.
3406 * lynx-low.cc (lynx_target_ops): Update.
3407 * nto-low.cc (nto_target_ops): Update.
3408 * win32-low.cc (win32_target_ops): Update.
3409
6eeb5c55
TBA
34102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3411
3412 Turn process_stratum_target's stopped_by_watchpoint and
3413 stopped_data_address ops into methods of process_target.
3414
3415 * target.h (struct process_stratum_target): Remove the target ops.
3416 (class process_target): Add the target ops.
3417 * target.cc (process_target::stopped_by_watchpoint): Define.
3418 (process_target::stopped_data_address): Define.
3419
3420 Update the derived classes and callers below.
3421
3422 * remote-utils.cc (prepare_resume_reply): Update.
3423 * linux-low.cc (linux_target_ops): Update.
3424 (linux_stopped_by_watchpoint): Turn into ...
3425 (linux_process_target::stopped_by_watchpoint): ... this.
3426 (linux_stopped_data_address): Turn into ...
3427 (linux_process_target::stopped_data_address): ... this.
3428 * linux-low.h (class linux_process_target): Update.
3429 * lynx-low.cc (lynx_target_ops): Update.
3430 * nto-low.cc (nto_target_ops): Update.
3431 (nto_stopped_by_watchpoint): Turn into ...
3432 (nto_process_target::stopped_by_watchpoint): ... this.
3433 (nto_stopped_data_address): Turn into ...
3434 (nto_process_target::stopped_data_address): ... this.
3435 * nto-low.h (class nto_process_target): Update.
3436 * win32-low.cc (win32_target_ops): Update.
3437 (win32_stopped_by_watchpoint): Turn into ...
3438 (win32_process_target::stopped_by_watchpoint): ... this.
3439 (win32_stopped_data_address): Turn into ...
3440 (win32_process_target::stopped_data_address): ... this.
3441 * win32-low.h (class win32_process_target): Update.
3442
22aa6223
TBA
34432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3444
3445 Turn process_stratum_target's supports_hardware_single_step op into
3446 a method of process_target.
3447
3448 * target.h (struct process_stratum_target): Remove the target op.
3449 (class process_target): Add the target op.
3450 (target_supports_hardware_single_step): Update the macro.
3451 (target_can_do_hardware_single_step): Remove declaration.
3452 * target.cc (process_target::supports_hardware_single_step): Define.
3453 (target_can_do_hardware_single_step): Remove.
3454
3455 Update the derived classes and callers below.
3456
3457 * linux-low.h (class linux_process_target): Update.
3458 * linux-low.cc (linux_target_ops): Update.
3459 (linux_supports_hardware_single_step): Turn into ...
3460 (linux_process_target::supports_hardware_single_step): ... this.
3461 * lynx-low.h (class lynx_process_target): Update.
3462 * lynx-low.cc (lynx_target_ops): Update.
3463 (lynx_process_target::supports_hardware_single_step): Define.
3464 * nto-low.h (class nto_process_target): Update.
3465 * nto-low.cc (nto_target_ops): Update.
3466 (nto_process_target::supports_hardware_single_step): Define.
3467 * win32-low.h (class win32_process_target): Update.
3468 * win32-low.cc (win32_target_ops): Update.
3469 (win32_process_target::supports_hardware_single_step): Define.
3470
93fe88b2
TBA
34712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3472
3473 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3474 ops into methods of process_target.
3475
3476 * target.h (struct process_stratum_target): Remove the target ops.
3477 (class process_target): Add the target ops.
3478 (target_stopped_by_hw_breakpoint): Update the macro.
3479 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3480 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3481 (process_target::supports_stopped_by_hw_breakpoint): Define.
3482
3483 Update the derived classes and callers below.
3484
3485 * linux-low.cc (linux_target_ops): Update.
3486 (linux_stopped_by_hw_breakpoint): Turn into ...
3487 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3488 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3489 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3490 * linux-low.h (class linux_process_target): Update.
3491 * lynx-low.cc (lynx_target_ops): Update.
3492 * nto-low.cc (nto_target_ops): Update.
3493 * win32-low.cc (win32_target_ops): Update.
3494
84320c4e
TBA
34952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3496
3497 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3498 ops into methods of process_target.
3499
3500 * target.h (struct process_stratum_target): Remove the target ops.
3501 (class process_target): Add the target ops.
3502 (target_stopped_by_sw_breakpoint): Update the macro.
3503 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3504 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3505 (process_target::supports_stopped_by_sw_breakpoint): Define.
3506
3507 Update the derived classes and callers below.
3508
3509 * linux-low.cc (linux_target_ops): Update.
3510 (linux_stopped_by_sw_breakpoint): Turn into ...
3511 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3512 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3513 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3514 * linux-low.h (class linux_process_target): Update.
3515 * lynx-low.cc (lynx_target_ops): Update.
3516 * nto-low.cc (nto_target_ops): Update.
3517 * win32-low.cc (win32_target_ops): Update.
3518
7e0bde70
TBA
35192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3520
3521 Turn process_stratum_target's insert_point and remove_point ops
3522 into methods of process_target.
3523
3524 * target.h (struct process_stratum_target): Remove the target ops.
3525 (class process_target): Add the target ops.
3526 * target.cc (process_target::insert_point): Define.
3527 (process_target::remove_point): Define.
3528
3529 Update the derived classes and callers below.
3530
3531 * mem-break.cc (set_raw_breakpoint_at): Update.
3532 (delete_raw_breakpoint): Update.
3533 (uninsert_raw_breakpoint): Update.
3534 (reinsert_raw_breakpoint): Update.
3535 * linux-low.cc (linux_target_ops): Update.
3536 (linux_insert_point): Turn into ...
3537 (linux_process_target::insert_point): ... this.
3538 (linux_remove_point): Turn into ...
3539 (linux_process_target::remove_point): ... this.
3540 * linux-low.h (class linux_process_target): Update.
3541 * lynx-low.cc (lynx_target_ops): Update.
3542 * nto-low.cc (nto_target_ops): Update.
3543 (nto_insert_point): Turn into ...
3544 (nto_process_target::insert_point): ... this.
3545 (nto_remove_point): Turn into ...
3546 (nto_process_target::remove_point): ... this.
3547 * nto-low.h (class nto_process_target): Update.
3548 * win32-low.cc (win32_target_ops): Update.
3549 (win32_insert_point): Turn into ...
3550 (win32_process_target::insert_point): ... this.
3551 (win32_remove_point): Turn into ...
3552 (win32_process_target::remove_point): ... this.
3553 * win32-low.h (class win32_process_target): Update.
3554
a2b2297a
TBA
35552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3556
3557 Turn process_stratum_target's supports_z_point_type op into a
3558 method of process_target.
3559
3560 * target.h (struct process_stratum_target): Remove the target op.
3561 (class process_target): Add the target op.
3562 * target.cc (process_target::supports_z_point_type): Define.
3563
3564 Update the derived classes and callers below.
3565
3566 * mem-break.cc (z_type_supported): Update.
3567 * linux-low.cc (linux_target_ops): Update.
3568 (linux_supports_z_point_type): Turn into ...
3569 (linux_process_target::supports_z_point_type): ... this.
3570 * linux-low.h (class linux_process_target): Update.
3571 * lynx-low.cc (lynx_target_ops): Update.
3572 * nto-low.cc (nto_target_ops): Update.
3573 (nto_supports_z_point_type): Turn into ...
3574 (nto_process_target::supports_z_point_type): ... this.
3575 * nto-low.h (class nto_process_target): Update.
3576 * win32-low.cc (win32_target_ops): Update.
3577 (win32_supports_z_point_type): Turn into ...
3578 (win32_process_target::supports_z_point_type): ... this.
3579 * win32-low.h (class win32_process_target): Update.
3580
eac215cc
TBA
35812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3582
3583 Turn process_stratum_target's read_auxv op into a method of
3584 process_target.
3585
3586 * target.h (class process_stratum_target): Remove the target op.
3587 (struct process_target): Add the target op. Also add
3588 'supports_read_auxv'.
3589 * target.cc (process_target::read_auxv): Define.
3590 (process_target::supports_read_auxv): Define.
3591
3592 Update the derived classes and callers below.
3593
3594 * server.cc (handle_qxfer_auxv): Update.
3595 (handle_query): Update.
3596 * linux-low.cc (linux_target_ops): Update.
3597 (linux_process_target::supports_read_auxv): Define.
3598 (linux_read_auxv): Turn into ...
3599 (linux_process_target::read_auxv): ... this.
3600 * linux-low.h (class linux_process_target): Update.
3601 * lynx-low.cc (lynx_target_ops): Update.
3602 * nto-low.cc (nto_target_ops): Update.
3603 (nto_process_target::supports_read_auxv): Define.
3604 (nto_read_auxv): Turn into ...
3605 (nto_process_target::read_auxv): ... this.
3606 * nto-low.h (class nto_process_target): Update.
3607 * win32-low.cc (win32_target_ops): Update.
3608
eb497a2a
TBA
36092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3610
3611 Turn process_stratum_target's request_interrupt op into a method of
3612 process_target.
3613
3614 * target.h (struct process_stratum_target): Remove the target op.
3615 (class process_target): Add the target op.
3616
3617 Update the derived classes and callers below.
3618
3619 * remote-utils.cc (putpkt_binary_1): Update.
3620 (input_interrupt): Update.
3621 (getpkt): Update.
3622 * server.cc (handle_v_requests): Update.
3623 * linux-low.cc (linux_target_ops): Update.
3624 (linux_request_interrupt): Turn into ...
3625 (linux_process_target::request_interrupt): ... this.
3626 * linux-low.h (class linux_process_target): Update.
3627 * lynx-low.cc (lynx_target_ops): Update.
3628 (lynx_request_interrupt): Turn into ...
3629 (lynx_process_target::request_interrupt): ... this.
3630 * lynx-low.h (class lynx_process_target): Update.
3631 * nto-low.cc (nto_target_ops): Update.
3632 (nto_request_interrupt): Turn into ...
3633 (nto_process_target::request_interrupt): ... this.
3634 * nto-low.h (class nto_process_target): Update.
3635 * win32-low.cc (win32_target_ops): Update.
3636 (win32_request_interrupt): Turn into ...
3637 (win32_process_target::request_interrupt): ... this.
3638 * win32-low.h (class win32_process_target): Update.
3639
2a31c7aa
TBA
36402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3641
3642 Turn process_stratum_target's look_up_symbols op into a method of
3643 process_target.
3644
3645 * target.h (struct process_stratum_target): Remove the target op.
3646 (class process_target): Add the target op.
3647 * target.cc (process_target::look_up_symbols): Define.
3648
3649 Update the derived classes and callers below.
3650
3651 * server.cc (handle_query): Update.
3652 * linux-low.cc (linux_target_ops): Update.
3653 (linux_look_up_symbols): Turn into ...
3654 (linux_process_target::look_up_symbols): ... this.
3655 * linux-low.h (class linux_process_target): Update.
3656 * lynx-low.cc (lynx_target_ops): Update.
3657 * nto-low.cc (nto_target_ops): Update.
3658 * win32-low.cc (win32_target_ops): Update.
3659
e2558df3
TBA
36602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3661
3662 Turn process_stratum_target's read_memory and write_memory
3663 ops into methods of process_target.
3664
3665 * target.h (struct process_stratum_target): Remove the target ops.
3666 (class process_target): Add the target ops.
3667
3668 Update the derived classes and callers below.
3669
3670 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3671 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3672 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3673 (arm_get_syscall_trapinfo): Update.
3674 * linux-cris-low.cc (cris_breakpoint_at): Update.
3675 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3676 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3677 * linux-mips-low.cc (mips_breakpoint_at): Update.
3678 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3679 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3680 * linux-sh-low.cc (sh_breakpoint_at): Update.
3681 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3682 (sparc_store_gregset_from_stack): Update.
3683 (sparc_breakpoint_at): Update.
3684 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3685 * linux-tile-low.cc (tile_breakpoint_at): Update.
3686 * linux-x86-low.cc (x86_breakpoint_at): Update.
3687 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3688 * mem-brea.cc (insert_memory_breakpoint): Update.
3689 (validate_inserted_breakpoint): Update.
3690 * target.cc (read_inferior_memory): Update.
3691 (target_write_memory): Update.
3692 * linux-low.cc (linux_target_ops): Update.
3693 (linux_read_memory): Make a wrapper around the read_memory target
3694 op call.
3695 (linux_process_target::read_memory): Rename from linux_read_memory.
3696 (linux_write_memory): Turn into ...
3697 (linux_process_target::write_memory): ... this.
3698 * linux-low.h (class linux_process_target): Update.
3699 * lynx-low.cc (lynx_target_ops): Update.
3700 (lynx_read_memory): Turn into ...
3701 (lynx_process_target::read_memory): ... this.
3702 (lynx_write_memory): Turn into ...
3703 (lynx_process_target::write_memory): ... this.
3704 * lynx-low.h (class lynx_process_target): Update.
3705 * nto-low.cc (nto_target_ops): Update.
3706 (nto_read_memory): Turn into ...
3707 (nto_process_target::read_memory): ... this.
3708 (nto_write_memory): Turn into ...
3709 (nto_process_target::write_memory): ... this.
3710 * nto-low.h (class nto_process_target): Update.
3711 * win32-low.cc (win32_target_ops): Update.
3712 (win32_read_inferior_memory): Turn into ...
3713 (win32_process_target::read_memory): ... this.
3714 (win32_write_inferior_memory): Turn into ...
3715 (win32_process_target::write_memory): ... this.
3716 * win32-low.h (class win32_process_target): Update.
3717
79b44087
TBA
37182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3719
3720 Turn process_stratum_target's prepare_to_access_memory and
3721 done_accessing_memory ops into methods of process_target.
3722
3723 * target.h (struct process_stratum_target): Remove the target ops.
3724 (class process_target): Add the target ops.
3725 * target.cc (process_target::prepare_to_access_memory): Define.
3726 (process_target::done_accessing_memory): Define.
3727 (prepare_to_access_memory): Update.
3728 (done_accessing_memory): Update.
3729
3730 Update the derived classes and callers below.
3731
3732 * linux-low.cc (linux_target_ops): Update.
3733 (linux_prepare_to_access_memory): Turn into ...
3734 (linux_process_target::prepare_to_access_memory): ... this.
3735 (linux_done_accessing_memory): Turn into ...
3736 (linux_process_target::done_accessing_memory): ... this.
3737 * linux-low.h (class linux_process_target): Update.
3738 * lynx-low.cc (lynx_target_ops): Update.
3739 * nto-low.cc (nto_target_ops): Update.
3740 * win32-low.cc (win32_target_ops): Update.
3741
a5a4d4cd
TBA
37422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3743
3744 Turn process_stratum_target's fetch_registers and store_registers
3745 ops into methods of process_target.
3746
3747 * target.h (struct process_stratum_target): Remove the target ops.
3748 (class process_target): Add the target ops.
3749 (fetch_inferior_registers): Update the macro.
3750 (store_inferior_registers): Update the macro.
3751
3752 Update the derived classes and callers below.
3753
3754 * linux-low.cc (linux_target_ops): Update.
3755 (linux_fetch_registers): Turn into ...
3756 (linux_process_target::fetch_registers): ... this.
3757 (linux_store_registers): Turn into ...
3758 (linux_process_target::store_registers): ... this.
3759 * linux-low.h (class linux_process_target): Update.
3760 * lynx-low.cc (lynx_target_ops): Update.
3761 (lynx_fetch_registers): Turn into ...
3762 (lynx_process_target::fetch_registers): ... this.
3763 (lynx_store_registers): Turn into ...
3764 (lynx_process_target::store_registers): ... this.
3765 * lynx-low.h (class lynx_process_target): Update.
3766 * nto-low.cc (nto_target_ops): Update.
3767 (nto_fetch_registers): Turn into ...
3768 (nto_process_target::fetch_registers): ... this.
3769 (nto_store_registers): Turn into ...
3770 (nto_process_target::store_registers): ... this.
3771 * nto-low.h (class nto_process_target): Update.
3772 * win32-low.cc (win32_target_ops): Update.
3773 (win32_fetch_inferior_registers): Turn into ...
3774 (win32_process_target::fetch_registers): ... this.
3775 (win32_store_inferior_registers): Turn into ...
3776 (win32_process_target::store_registers): ... this.
3777 * win32-low.h (class win32_process_target): Update.
3778
6532e7e3
TBA
37792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3780
3781 Turn process_stratum_target's wait op into a method of
3782 process_target.
3783
3784 * target.h (struct process_stratum_target): Remove the target op.
3785 (class process_target): Add the target op.
3786
3787 Update the derived classes and callers below.
3788
3789 * target.cc (target_wait): Update.
3790 * linux-low.cc (linux_target_ops): Update.
3791 (linux_wait): Turn into ...
3792 (linux_process_target::wait): ... this.
3793 * linux-low.h (class linux_process_target): Update.
3794 * lynx-low.cc (lynx_target_ops): Update.
3795 (lynx_wait): Turn into ...
3796 (lynx_process_target::wait): ... this.
3797 * lynx-low.h (class lynx_process_target): Update.
3798 * nto-low.cc (nto_target_ops): Update.
3799 (nto_wait): Turn into ...
3800 (nto_process_target::wait): ... this.
3801 * nto-low.h (class nto_process_target): Update.
3802 * win32-low.cc (win32_target_ops): Update.
3803 (win32_wait): Turn into ...
3804 (win32_process_target::wait): ... this.
3805 (do_initial_child_stuff): Update.
3806 * win32-low.h (class win32_process_target): Update.
3807
0e4d7e35
TBA
38082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3809
3810 Turn process_stratum_target's resume op into a method of
3811 process_target.
3812
3813 * target.h (struct process_stratum_target): Remove the target op.
3814 (class process_target): Add the target op.
3815
3816 Update the derived classes and callers below.
3817
3818 * server.cc (resume): Update.
3819 * target.cc (target_stop_and_wait): Update.
3820 (target_continue_no_signal): Update.
3821 (target_continue): Update.
3822 * linux-low.cc (linux_target_ops): Update.
3823 (linux_resume): Turn into ...
3824 (linux_process_target::resume): ... this.
3825 * linux-low.h (class linux_process_target): Update.
3826 * lynx-low.cc (lynx_target_ops): Update.
3827 (lynx_resume): Turn into ...
3828 (lynx_process_target::resume): ... this.
3829 * lynx-low.h (class lynx_process_target): Update.
3830 * nto-low.cc (nto_target_ops): Update.
3831 (nto_resume): Turn into ...
3832 (nto_process_target::resume): ... this.
3833 * nto-low.h (class nto_process_target): Update.
3834 * win32-low.cc (win32_target_ops): Update.
3835 (win32_resume): Turn into ...
3836 (win32_process_target::resume): ... this.
3837 (win32_process_target::detach): Update.
3838 (do_initial_child_stuff): Update.
3839 * win32-low.h (class win32_process_target): Update.
3840
13d3d99b
TBA
38412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3842
3843 Turn process_stratum_target's thread_alive op into a method of
3844 process_target.
3845
3846 * target.h (struct process_stratum_target): Remove the target op.
3847 (class process_target): Add the target op.
3848 (mythread_alive): Update the macro.
3849
3850 Update the derived classes and callers below.
3851
3852 * linux-low.cc (linux_target_ops): Update.
3853 (linux_thread_alive): Turn into ...
3854 (linux_process_target::thread_alive): ... this.
3855 (wait_for_sigstop): Update.
3856 * linux-low.h (class linux_process_target): Update.
3857 * lynx-low.cc (lynx_target_ops): Update.
3858 (lynx_thread_alive): Turn into ...
3859 (lynx_process_target::thread_alive): ... this.
3860 * lynx-low.h (class lynx_process_target): Update.
3861 * nto-low.cc (nto_target_ops): Update.
3862 (nto_thread_alive): Turn into ...
3863 (nto_process_target::thread_alive): ... this.
3864 * nto-low.h (class nto_process_target): Update.
3865 * win32-low.cc (win32_target_ops): Update.
3866 (win32_thread_alive): Turn into ...
3867 (win32_process_target::thread_alive): ... this.
3868 * win32-low.h (class win32_process_target): Update.
3869
95a49a39
TBA
38702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3871
3872 Turn process_stratum_target's join op into a method of
3873 process_target.
3874
3875 * target.h (struct process_stratum_target): Remove the target op.
3876 (class process_target): Add the target op.
3877 (join_inferior): Update the macro.
3878
3879 Update the derived classes and callers below.
3880
3881 * linux-low.cc (linux_target_ops): Update.
3882 (linux_join): Turn into ...
3883 (linux_process_target::join): ... this.
3884 * linux-low.h (class linux_process_target): Update.
3885 * lynx-low.cc (lynx_target_ops): Update.
3886 (lynx_join): Turn into ...
3887 (lynx_process_target::join): ... this.
3888 * lynx-low.h (class lynx_process_target): Update.
3889 * nto-low.cc (nto_target_ops): Update.
3890 (nto_process_target::join): Define.
3891 * nto-low.h (class nto_process_target): Update.
3892 * win32-low.cc (win32_target_ops): Update.
3893 (win32_join): Turn into ...
3894 (win32_process_target::join): ... this.
3895 * win32-low.h (class win32_process_target): Update.
3896
8adb37b9
TBA
38972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3898
3899 Turn process_stratum_target's mourn op into a method of
3900 process_target.
3901
3902 * target.h (struct process_stratum_target): Remove the target op.
3903 (class process_target): Add the target op.
3904
3905 Update the derived classes and callers below.
3906
3907 * target.cc (target_mourn_inferior): Update.
3908 * linux-low.cc (linux_target_ops): Update.
3909 (linux_mourn): Turn into ...
3910 (linux_process_target::mourn): ... this.
3911 (handle_extended_wait): Update.
3912 (linux_process_target::kill): Update.
3913 (linux_process_target::detach): Update.
3914 * linux-low.h (class linux_process_target): Update.
3915 * lynx-low.cc (lynx_target_ops): Update.
3916 (lynx_mourn): Turn into ...
3917 (lynx_process_target::mourn): ... this.
3918 * lynx-low.h (class lynx_process_target): Update.
3919 * nto-low.cc (nto_target_ops): Update.
3920 (nto_mourn): Turn into ...
3921 (nto_process_target::mourn): ... this.
3922 * nto-low.h (class nto_process_target): Update.
3923 * win32-low.cc (win32_target_ops): Update.
3924 (win32_mourn): Turn into ...
3925 (win32_process_target::mourn): ... this.
3926 * win32-low.h (class win32_process_target): Update.
3927
9061c9cf
TBA
39282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3929
3930 Turn process_stratum_target's detach op into a method of
3931 process_target.
3932
3933 * target.h (struct process_stratum_target): Remove the target op.
3934 (class process_target): Add the target op.
3935 (detach_inferior): Update the macro.
3936
3937 Update the derived classes and callers below.
3938
3939 * linux-low.cc (linux_target_ops): Update.
3940 (linux_detach): Turn into ...
3941 (linux_process_target::detach): ... this.
3942 * linux-low.h (class linux_process_target): Update.
3943 * lynx-low.cc (lynx_target_ops): Update.
3944 (lynx_detach): Turn into ...
3945 (lynx_process_target::detach): ... this.
3946 * lynx-low.h (class lynx_process_target): Update.
3947 * nto-low.cc (nto_target_ops): Update.
3948 (nto_detach): Turn into ...
3949 (nto_process_target::detach): ... this.
3950 * nto-low.h (class nto_process_target): Update.
3951 * win32-low.cc (win32_target_ops): Update.
3952 (win32_detach): Turn into ...
3953 (win32_process_target::detach): ... this.
3954 * win32-low.h (class win32_process_target): Update.
3955
c6885a57
TBA
39562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3957
3958 Turn process_stratum_target's kill op into a method of
3959 process_target.
3960
3961 * target.h (struct process_stratum_target): Remove the target op.
3962 (class process_target): Add the target op.
3963
3964 Update the derived classes and callers below.
3965
3966 * target.cc (kill_inferior): Update.
3967 * linux-low.cc (linux_target_ops): Update.
3968 (linux_kill): Turn into ...
3969 (linux_process_target::kill): ... this.
3970 * linux-low.h (class linux_process_target): Update.
3971 * lynx-low.cc (lynx_target_ops): Update.
3972 (lynx_kill): Turn into ...
3973 (lynx_process_target::kill): ... this.
3974 * lynx-low.h (class lynx_process_target): Update.
3975 * nto-low.cc (nto_target_ops): Update.
3976 (nto_kill): Turn into ...
3977 (nto_process_target::kill): ... this.
3978 * nto-low.h (class nto_process_target): Update.
3979 * win32-low.cc (win32_target_ops): Update.
3980 (win32_kill): Turn into ...
3981 (win32_process_target::kill): ... this.
3982 * win32-low.h (class win32_process_target): Update.
3983
ef03dad8
TBA
39842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3985
3986 Turn process_stratum_target's attach op into a method of
3987 process_target.
3988
3989 * target.h (struct process_stratum_target): Remove the target op.
3990 (class process_target): Add the target op.
3991 (myattach): Update the macro.
3992
3993 Update the derived classes and callers below.
3994
3995 * linux-low.cc (linux_target_ops): Update.
3996 (linux_attach): Turn into ...
3997 (linux_process_target::attach): ... this.
3998 * linux-low.h (class linux_process_target): Update.
3999 * lynx-low.cc (lynx_target_ops): Update.
4000 (lynx_attach): Turn into ...
4001 (lynx_process_target::attach): ... this.
4002 * lynx-low.h (class lynx_process_target): Update.
4003 * nto-low.cc (nto_target_ops): Update.
4004 (nto_attach): Turn into ...
4005 (nto_process_target::attach): ... this.
4006 * nto-low.h (class nto_process_target): Update.
4007 * win32-low.cc (win32_target_ops): Update.
4008 (win32_attach): Turn into ...
4009 (win32_process_target::attach): ... this.
4010 * win32-low.h (class win32_process_target): Update.
4011
6dee9afb
TBA
40122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4013
4014 Turn process_stratum_target's post_create_inferior op into a method
4015 of process_target.
4016
4017 * target.h (struct process_stratum_target): Remove the target op.
4018 (class process_target): Add the target op.
4019 (target_post_create_inferior): Update the macro.
4020 * target.cc (process_target::post_create_inferior): Define.
4021
4022 Update the derived classes and callers below.
4023
4024 * linux-low.cc (linux_target_ops): Update.
4025 (linux_post_create_inferior): Turn into ...
4026 (linux_process_target::post_create_inferior): ... this.
4027 * linux-low.h (class linux_process_target): Update.
4028 * lynx-low.cc (lynx_target_ops): Update.
4029 * nto-low.cc (nto_target_ops): Update.
4030 * win32-low.cc (win32_target_ops): Update.
4031
15295543
TBA
40322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4033
4034 Turn process_stratum_target's create_inferior op into a method of
4035 process_target.
4036
4037 * target.h (struct process_stratum_target): Remove the target op.
4038 (class process_target): Add the target op.
4039 (create_inferior): Rename the macro to ...
4040 (target_create_inferior): ... this.
4041
4042 Update the derived classes and callers below.
4043
4044 * server.cc (handle_v_run): Update.
4045 (captured_main): Update.
4046 (process_serial_event): Update.
4047 * linux-low.cc (linux_target_ops): Update.
4048 (linux_create_inferior): Turn into ...
4049 (linux_process_target::create_inferior): ... this.
4050 * linux-low.h (class linux_process_target): Update.
4051 * lynx-low.cc (lynx_target_ops): Update.
4052 (lynx_create_inferior): Turn into ...
4053 (lynx_process_target::create_inferior): ... this.
4054 * lynx-low.h (class lynx_process_target): Update.
4055 * nto-low.cc (nto_target_ops): Update.
4056 (nto_create_inferior): Turn into ...
4057 (nto_process_target::create_inferior): ... this.
4058 * nto-low.h (class nto_process_target): Update.
4059 * win32-low.cc (win32_target_ops): Update.
4060 (win32_create_inferior): Turn into ...
4061 (win32_process_target::create_inferior): ... this.
4062 * win32-low.h (class win32_process_target): Update.
4063
5ef9273d
TBA
40642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4065
4066 * target.h (class process_target): New class definition.
4067 (struct process_stratum_target) <pt>: New field with type
4068 'process_target*'.
4069 * linux-low.h (class linux_process_target): Define as a derived
4070 class of 'process_target'.
4071 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4072 as the 'pt' field.
4073 * lynx-low.h (class lynx_process_target): Define as a derived
4074 class of 'process_target'.
4075 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4076 as the 'pt' field.
4077 * nto-low.h (class nto_process_target): Define as a derived
4078 class of 'process_target'.
4079 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4080 as the 'pt' field.
4081 * win32-low.h (class win32_process_target): Define as a derived
4082 class of 'process_target'.
4083 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4084 as the 'pt' field.
4085
9f1528a1
AB
40862020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4087
4088 * configure: Regenerate.
4089
bf84f706
MR
40902020-02-19 Maciej W. Rozycki <macro@wdc.com>
4091 Andrew Burgess <andrew.burgess@embecosm.com>
4092
4093 * linux-riscv-low.cc: New file.
4094 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4095 and nat/riscv-linux-tdesc.c.
4096 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4097 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4098 Define.
4099
1a627e7e
TT
41002020-02-14 Tom Tromey <tom@tromey.com>
4101
4102 * acinclude.m4: Don't include acx_configure_dir.m4.
4103 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4104 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4105 (all, install-only, uninstall, clean-info, clean)
4106 (maintainer-clean): Don't recurse.
4107 (subdir_do, all-lib): Remove.
4108 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4109 (GNULIB_H): Remove.
4110 (generated_files): Update.
4111 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4112 * configure: Rebuild.
4113 * configure.ac: Don't configure gnulib or libiberty.
4114 (GNULIB): Update.
4115
a9b34532
EZ
41162020-02-14 Eli Zaretskii <eliz@gnu.org>
4117
4118 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4119 preparing the command line for CreateProcess.
4120 (win32_create_inferior): Reflect the program name in debugging
4121 output that shows the process and its command line.
4122
feacfcac
SM
41232020-02-13 Simon Marchi <simon.marchi@efficios.com>
4124
4125 * Makefile.in: Rename source files from .c to .cc.
4126 * %.c: Rename to %.cc.
4127 * configure.ac: Rename server.c to server.cc.
4128 * configure: Re-generate.
4129
06b3c5bd
SM
41302020-02-13 Simon Marchi <simon.marchi@efficios.com>
4131
4132 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4133
052793ad
HD
41342020-02-12 Hannes Domani <ssbssa@yahoo.de>
4135
4136 * win32-low.c (win32_create_inferior): Set signal_pid.
4137
f20e3e82
MR
41382020-02-12 Maciej W. Rozycki <macro@wdc.com>
4139 Pedro Alves <palves@redhat.com>
4140
4141 Skip building gdbserver in a cross-configuration.
4142 * configure.srv: Set $gdbserver_host depending on whether $target
4143 is $host. Use $gdbserver_host instead of $host.
4144
8ddd8e0e
SM
41452020-02-11 Simon Marchi <simon.marchi@efficios.com>
4146
4147 * configure: Re-generate.
4148
898e7f60
SM
41492020-02-11 Simon Marchi <simon.marchi@efficios.com>
4150
4151 * configure: Re-generate.
4152
58df732b
SM
41532020-02-11 Simon Marchi <simon.marchi@efficios.com>
4154
4155 * acinclude.m4: Update warning.m4 path.
4156
7928d571
HD
41572020-02-09 Hannes Domani <ssbssa@yahoo.de>
4158
4159 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4160 (handle_exception): Set siginfo_er.
4161 (win32_xfer_siginfo): New function.
4162
919adfe8
TT
41632020-02-07 Tom Tromey <tom@tromey.com>
4164 Pedro Alves <palves@redhat.com>
4165
4166 * README: Update build documentation.
4167 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4168 host, not target.
4169 * configure.ac: Update paths.
4170 * configure: Rebuild.
4171 * acinclude.m4: Update paths.
4172 * Makefile.in: Update include paths.
4173 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4174 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4175 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4176 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4177 (%-generated.c): Update paths.
4178 * Move entire directory from ../gdb/gdbserver.
4179
287c844a
MR
41802020-01-29 Maciej W. Rozycki <macro@wdc.com>
4181
4182 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4183
548a204f
PFC
41842020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4185
4186 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4187 assignment instead of srv_linux_obj.
4188
a2236a08
HD
41892020-01-28 Hannes Domani <ssbssa@yahoo.de>
4190
4191 * server.c (handle_qxfer_libraries): Write segment-address with
4192 paddress.
4193
bdaed379
HD
41942020-01-24 Hannes Domani <ssbssa@yahoo.de>
4195
4196 * Makefile.in (install-strip): New target.
4197 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4198 * aclocal.m4: Regenerate.
4199 * configure: Regenerate.
4200 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4201
42cd72aa
MR
42022020-01-24 Maciej W. Rozycki <macro@wdc.com>
4203
4204 * Makefile.in (SFILES): Adjust paths to point to real files.
4205 (OBS): Move waitstatus.o to target/waitstatus.o.
4206 (TAGS): Transform paths appropriately.
4207 (%.o): Rename to...
4208 (nat/%.o): ... this pattern rule.
4209 (%.o): Rename to...
4210 (target/%.o): ... this pattern rule.
4211 * configure.srv: Adjust paths throughout to include nat/ prefix
4212 with the revant files.
4213 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4214 * configure: Regenerate.
4215
42ba50ec
MR
42162020-01-24 Maciej W. Rozycki <macro@wdc.com>
4217
4218 * Makefile.in (TAGS): Remove config files from the recipe.
4219
05ea2a05
TT
42202020-01-14 Tom Tromey <tom@tromey.com>
4221
4222 * configure: Rebuild.
4223 * configure.ac: Remove any checks that were added to common.m4.
4224 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4225 lib-link.m4.
4226
01027315
TT
42272020-01-14 Tom Tromey <tom@tromey.com>
4228
4229 * server.h: Include config.h.
4230 * gdbreplay.c: Include config.h.
4231 * configure: Rebuild.
4232 * configure.ac: Don't source common.host.
4233 * acinclude.m4: Update path.
4234 * Makefile.in (INCSUPPORT): New variable.
4235 (INCLUDE_CFLAGS): Add INCSUPPORT.
4236 (SFILES): Update paths.
4237 (version-generated.c): Update path to create-version.sh.
4238 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4239
b2ceabe8
TT
42402020-01-14 Tom Tromey <tom@tromey.com>
4241
4242 * configure.ac (LIBS): Use WIN32APILIBS.
4243 (USE_WIN32API): Don't define.
4244 * configure: Rebuild.
4245
25c51f71
TT
42462020-01-14 Tom Tromey <tom@tromey.com>
4247
4248 * configure: Rebuild.
4249
c0bd321d
SM
42502020-01-13 Simon Marchi <simon.marchi@efficios.com>
4251
4252 * Makefile.in (%-generated.c): Remove rule for files from
4253 regformats/i386.
4254
bb564c58
SM
42552020-01-13 Simon Marchi <simon.marchi@efficios.com>
4256
4257 * configure: Re-generate.
4258
6e37c371
SM
42592020-01-13 Simon Marchi <simon.marchi@efficios.com>
4260
4261 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4262 Define to static.
4263 * tracepoint.c (stop_tracing, flush_trace_buffer,
4264 about_to_request_buffer_space, get_trace_state_variable_value,
4265 set_trace_state_variable_value, gdb_collect): Add declaration.
4266
df4a0200
SM
42672020-01-13 Simon Marchi <simon.marchi@efficios.com>
4268
4269 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4270 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4271 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4272 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4273 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4274 static.
4275
89e94ec9
SM
42762020-01-13 Simon Marchi <simon.marchi@efficios.com>
4277
4278 * inferiors.c: Include gdbsupport/common-inferior.h.
4279
2552728a
SM
42802020-01-13 Simon Marchi <simon.marchi@efficios.com>
4281
4282 * hostio-errno.c: Include hostio.h.
4283
4025fa09
SM
42842020-01-13 Simon Marchi <simon.marchi@efficios.com>
4285
4286 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4287 prerequisite.
4288
c0b0a142
SM
42892020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4290
4291 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4292 * linux-arm-tdesc.h: Include arch/arm.h.
4293
bb1183e2
SM
42942020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4295
4296 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4297
f5df0b5f
SM
42982020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4299
4300 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4301 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4302
5b6d1e4f
PA
43032020-01-10 Pedro Alves <palves@redhat.com>
4304
4305 * fork-child.c (post_fork_inferior): Pass target down to
4306 startup_inferior.
4307 * inferiors.c (switch_to_thread): Add process_stratum_target
4308 parameter.
4309 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4310 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4311 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4312 * remote-utils.c (prepare_resume_reply): Pass the target to
4313 switch_to_thread.
4314 * target.c (the_target): Now a process_stratum_target.
4315 (done_accessing_memory): Pass the target to switch_to_thread.
4316 (set_target_ops): Ajust to use process_stratum_target.
4317 * target.h (struct target_ops): Rename to ...
4318 (struct process_stratum_target): ... this.
4319 (the_target, set_target_ops): Adjust.
4320 (prepare_to_access_memory): Adjust comment.
4321 * win32-low.c (child_xfer_memory): Adjust to use
4322 process_stratum_target.
4323 (win32_target_ops): Now a process_stratum_target.
4324
559e7e50
EZ
43252020-01-06 Eli Zaretskii <eliz@gnu.org>
4326 Pedro Alves <palves@redhat.com>
4327
4328 * win32-low.c (get_child_debug_event): Extract the fatal exception
4329 from the exit status and convert to the equivalent Posix signal
4330 number.
4331 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4332 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4333
48189bec
HD
43342020-01-01 Hannes Domani <ssbssa@yahoo.de>
4335
4336 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4337
5dd8bf88
JB
43382020-01-01 Joel Brobecker <brobecker@adacore.com>
4339
4340 * server.c (gdbserver_version): Change copyright year to 2020.
4341 * gdbreplay.c (gdbreplay_version): Likewise.
4342
0ad6b8ee
CB
43432019-12-19 Christian Biesinger <cbiesinger@google.com>
4344
4345 * configure: Regenerate.
4346 * configure.ac: Quote variable arguments of test.
4347
1ee7b812
BE
43482019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4349
4350 * Makefile.in: Fix build with GNU Make 3.81
4351
d9fa87f4
TT
43522019-12-16 Tom Tromey <tromey@adacore.com>
4353
4354 * server.c (get_exec_file): Constify result.
4355
ab7d13f0
CB
43562019-12-10 Christian Biesinger <cbiesinger@google.com>
4357
4358 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4359 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4360 * config.in: Regenerate.
4361 * configure: Regenerate.
4362 * configure.ac: Don't check for strerror.
4363 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4364 Call safe_strerror instead of strerror.
4365 * server.h (strerror): Remove this now-unnecessary declaration.
4366 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4367 strerror.
4368 (gdb_agent_helper_thread): Likewise.
4369 * utils.c (perror_with_name): Likewise.
4370
4da8c3a8
TT
43712019-11-26 Tom Tromey <tom@tromey.com>
4372
4373 * configure, config.in: Rebuild.
4374
21987b9c
TT
43752019-11-26 Tom Tromey <tom@tromey.com>
4376
4377 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4378 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4379 gdb_sigmask.
4380 * configure, config.in: Rebuild.
4381
5e030278
TT
43822019-11-26 Tom Tromey <tom@tromey.com>
4383
4384 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4385 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4386 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4387 * acinclude.m4: Include ax_pthread.m4.
4388 * config.in, configure: Rebuild.
4389
6d91ce9a
CB
43902019-11-26 Christian Biesinger <cbiesinger@google.com>
4391
4392 * debug.c (debug_set_output): Call safe_strerror instead of
4393 strerror.
4394 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4395 (linux_kill_one_lwp): Likewise.
4396 (linux_detach_one_lwp): Likewise.
4397 (linux_wait_for_event_filtered): Likewise.
4398 (store_register): Likewise.
4399 * lynx-low.c (lynx_attach): Likewise.
4400 * mem-break.c (insert_memory_breakpoint): Likewise.
4401 (remove_memory_breakpoint): Likewise.
4402 (delete_fast_tracepoint_jump): Likewise.
4403 (set_fast_tracepoint_jump): Likewise.
4404 (uninsert_fast_tracepoint_jumps_at): Likewise.
4405 (reinsert_fast_tracepoint_jumps_at): Likewise.
4406 * nto-low.c (nto_xfer_memory): Likewise.
4407 (nto_resume): Likewise.
4408
6cdd651f
LM
44092019-11-20 Luis Machado <luis.machado@linaro.org>
4410
4411 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4412 instead of register count.
4413 * tdesc.c (tdesc_contains_feature): New function.
4414 * tdesc.h (tdesc_contains_feature): New prototype.
4415
cd850b40
CB
44162019-11-15 Christian Biesinger <cbiesinger@google.com>
4417
4418 * Makefile.in: Add safe-strerror.c.
4419 * configure: Regenerate.
4420 * configure.ac: Don't source common.host.
4421
5abebf3c
CB
44222019-11-15 Christian Biesinger <cbiesinger@google.com>
4423
4424 * config.in: Regenerate.
4425 * configure: Regenerate.
4426
e06f3d6e
AB
44272019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4428
4429 * ax.c (ax_printf): Handle size_t_arg.
4430
ca3a04f6
CB
44312019-11-06 Christian Biesinger <cbiesinger@google.com>
4432
4433 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4434 * mi/mi-main.c (output_cores): Likewise.
4435 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4436 (linux_xfer_osdata_modules): Likewise.
4437 * remote.c (register_remote_support_xml): Likewise.
4438 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4439 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4440
e48f6033
CB
44412019-11-01 Christian Biesinger <cbiesinger@google.com>
4442
4443 * configure: Regenerate.
4444 * configure.ac: Remove check for strerror_r.
4445
e7e97a2e
CB
44462019-10-31 Christian Biesinger <cbiesinger@google.com>
4447
4448 * config.in: Regenerate.
4449 * configure: Regenerate.
4450 * configure.ac: Also check for strerror_r.
4451
75cafaa6
CB
44522019-10-31 Christian Biesinger <cbiesinger@google.com>
4453
4454 * ax.h (debug_agent): Remove duplicate declaration.
4455
30baf67b
TV
44562019-10-26 Tom de Vries <tdevries@suse.de>
4457
4458 * linux-aarch64-low.c: Fix typos in comments.
4459 * linux-arm-low.c: Same.
4460 * linux-low.c: Same.
4461 * linux-ppc-low.c: Same.
4462 * proc-service.c: Same.
4463 * regcache.h: Same.
4464 * server.c: Same.
4465 * tracepoint.c: Same.
4466 * win32-low.c: Same.
4467
52c64cf7
TT
44682019-10-25 Tom Tromey <tromey@adacore.com>
4469
4470 * utils.c (xstrdup): Remove.
4471
c12d372d
TT
44722019-10-23 Tom Tromey <tom@tromey.com>
4473
4474 * configure, config.in: Rebuild.
4475
4d0b984b
TT
44762019-10-23 Tom Tromey <tom@tromey.com>
4477
4478 * configure: Rebuild.
4479 * acinclude.m4: Use m4_include, not sinclude.
4480
c5adaa19
TT
44812019-10-17 Tom Tromey <tromey@adacore.com>
4482
4483 * configure: Rebuild.
4484 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4485 in AC_CONFIG_FILES invocation.
4486 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4487 invocation.
4488
fec4e896
CB
44892019-10-16 Christian Biesinger <cbiesinger@google.com>
4490
4491 * server.c: Include xml-builtin.h.
4492 (get_xml_features): Don't declare xml_builtins here.
4493
00975ff6
AB
44942019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4495
4496 * Makefile.in: Remove references to vec-ipa.o.
4497
0dc32745
AB
44982019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4499
4500 * Makefile.in: Remove references to vec.c.
4501
3e6ec53a
CB
45022019-10-02 Christian Biesinger <cbiesinger@google.com>
4503
4504 * server.c (server_waiting): Change to bool.
4505 (extended_protocol): Likewise.
4506 (response_needed): Likewise.
4507 (exit_requested): Likewise.
4508 (run_once): Likewise.
4509 (report_no_resumed): Likewise.
4510 (non_stop): Likewise.
4511 (disable_packet_vCont): Likewise.
4512 (disable_packet_Tthread): Likewise.
4513 (disable_packet_qC): Likewise.
4514 (disable_packet_qfThreadInfo): Likewise.
4515 (handle_general_set): Update.
4516 (handle_detach): Update.
4517 (handle_monitor_command): Update.
4518 (handle_query): Update.
4519 (captured_main): Update.
4520 (process_serial_event): Update.
4521 * server.h (server_waiting): Change to bool.
4522 (disable_packet_vCont): Likewise.
4523 (disable_packet_Tthread): Likewise.
4524 (disable_packet_qC): Likewise.
4525 (disable_packet_qfThreadInfo): Likewise.
4526 (run_once): Likewise.
4527 (non_stop): Likewise.
4528 * target.c (target_stop_and_wait): Update.
4529
80fd2826
TT
45302019-10-02 Tom Tromey <tromey@adacore.com>
4531
4532 * Makefile.in (SFILES): Add common-inferior.c.
4533 (OBS): Add common-inferior.o.
4534 * server.c (startup_with_shell): Don't define.
4535
46f29a9a
AB
45362019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4537
4538 * linux-low.c (linux_low_read_btrace): Update for change to
4539 std::vector.
4540
f9d949fb
CB
45412019-09-20 Christian Biesinger <cbiesinger@google.com>
4542
4543 * debug.c (debug_threads): Remove comment in favor of the header.
4544 * debug.h (using_threads): Add declaration.
4545 (debug_threads): Add comment.
4546 * linux-aarch64-low.c: Include debug.h and remove declaration of
4547 debug_threads.
4548 * nto-low.c: Likewise.
4549 * remote-utils.c: Likewise.
4550 * thread-db.c: Likewise.
4551
abf516c6
UW
45522019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4553
4554 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4555 and powerpc-cell64l-ipa.o.
4556 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4557 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4558 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4559 (spu*-*-*): Remove.
4560
4561 * spu-low.c: Remove file.
4562
4563 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4564 (parse_spufs_run): Remove.
4565 (ppc_get_pc): Remove Cell/B.E. support.
4566 (ppc_set_pc): Likewise.
4567 (ppc_breakpoint_at): Likewise.
4568 (ppc_arch_setup): Likewise.
4569 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4570 tdesc_powerpc_cell32l.
4571 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4572 or init_registers_powerpc_cell32l.
4573 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4574 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4575 or init_registers_powerpc_cell32l.
4576 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4577 (init_registers_powerpc_cell32l): Remove prototype.
4578 (init_registers_powerpc_cell64l): Likewise.
4579
4580 * target.h (struct target_ops): Remove qxfer_spu member.
4581 * server.c (handle_qxfer_spu): Remove.
4582 (qxfer_packets): Remove entry for "spu".
4583 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4584 * linux-low.c (SPUFS_MAGIC): Remove.
4585 (spu_enumerate_spu_ids): Remove.
4586 (linux_qxfer_spu): Remove.
4587 (linux_target_ops): Remove qxfer_spu member.
4588 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4589 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4590 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4591
2d41fa11
SDJ
45922019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4593
4594 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4595 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4596 * config.in: Regenerate.
4597 * configure: Regenerate.
4598
d59b55f0
TT
45992019-08-15 Tom Tromey <tromey@adacore.com>
4600
4601 * target.c (target_write_memory): Use gdb::byte_vector.
4602
4196ab2a
TT
46032019-08-15 Tom Tromey <tromey@adacore.com>
4604
4605 * tracepoint.c (write_inferior_data_pointer)
4606 (write_inferior_integer, write_inferior_int8)
4607 (write_inferior_uinteger, m_tracepoint_action_download)
4608 (r_tracepoint_action_download, x_tracepoint_action_download)
4609 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4610 (download_agent_expr, download_tracepoint_1)
4611 (download_trace_state_variables, upload_fast_traceframes): Update.
4612 * server.c (gdb_write_memory): Update.
4613 * remote-utils.c (relocate_instruction): Update.
4614 * proc-service.c (ps_pdwrite): Update.
4615 * mem-break.c (remove_memory_breakpoint)
4616 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4617 (uninsert_fast_tracepoint_jumps_at)
4618 (reinsert_fast_tracepoint_jumps_at): Update.
4619 * linux-x86-low.c (append_insns)
4620 (i386_install_fast_tracepoint_jump_pad)
4621 (amd64_write_goto_address, i386_write_goto_address): Update.
4622 * linux-s390-low.c (append_insns, s390_write_goto_address):
4623 Update.
4624 * linux-ppc-low.c (ppc_relocate_instruction)
4625 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4626 (ppc_write_goto_address): Update.
4627 * linux-aarch64-low.c (append_insns): Update.
4628 * target.h (struct target_ops): Update.
4629 (write_inferior_memory): Don't declare.
4630 * target.c (target_write_memory): Rename from
4631 write_inferior_memory. Remove old target_write_memory.
4632
c6778d00
TT
46332019-08-15 Tom Tromey <tromey@adacore.com>
4634
4635 * target.c (write_inferior_memory): Use std::vector.
4636
404f2902
FCE
46372019-08-06 Frank Ch. Eigler <fche@redhat.com>
4638
4639 PR build/24886
4640 * configure.ac: Drop enable-libmcheck support.
4641 * configure, config.in: Rebuild.
4642 * acinclude.m4: Don't include it.
4643
4c5aa8e0
AH
46442019-07-19 Alan Hayward <alan.hayward@arm.com>
4645
4646 * configure.srv: Remove Arm xml files.
4647
7cc17433
AH
46482019-07-19 Alan Hayward <alan.hayward@arm.com>
4649
4650 * configure.srv: Add new files. Remove xml generated files.
4651 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4652 registers.
4653 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4654 * linux-aarch32-tdesc.c: New file.
4655 * linux-aarch32-tdesc.h: New file.
4656 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4657 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4658 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4659 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4660 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4661 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4662 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4663 (arm_read_description): Call arm_linux_read_description.
4664 (initialize_low_arch): Don't init registers.
4665 * linux-arm-tdesc.c: New file.
4666 * linux-arm-tdesc.h: New file.
4667
166a82be
AH
46682019-07-10 Alan Hayward <alan.hayward@arm.com>
4669
4670 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4671 Move counter inside for.
4672 (arm_read_description): Check ptrace earlier.
4673 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4674
268a13a5
TT
46752019-07-09 Tom Tromey <tom@tromey.com>
4676
4677 * configure: Rebuild.
4678 * configure.ac: Change common to gdbsupport.
4679 * acinclude.m4: Change common to gdbsupport.
4680 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4681 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4682 common to gdbsupport.
4683 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4684 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4685 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4686 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4687 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4688 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4689 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4690 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4691 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4692 common to gdbsupport.
4693
350fab54
AH
46942019-07-04 Alan Hayward <alan.hayward@arm.com>
4695
4696 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4697 defines.
4698 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4699
2b40fda7
AH
47002019-07-04 Alan Hayward <alan.hayward@arm.com>
4701
4702 * configure.srv: Remove legacy xml.
4703 * linux-aarch64-low.c (initialize_low_arch): Remove
4704 initialize_low_tdesc call.
4705 * linux-aarch64-tdesc-selftest.c: Remove file.
4706 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4707 * linux-x86-low.c (initialize_low_arch): Remove
4708 initialize_low_tdesc call.
4709 * linux-x86-tdesc-selftest.c: Remove file.
4710 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4711
7d10623d
TV
47122019-06-20 Tom de Vries <tdevries@suse.de>
4713
4714 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4715 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4716
8d6a48df
TV
47172019-06-19 Tom de Vries <tdevries@suse.de>
4718
4719 * debug.h (debug_write): Change return type to ssize_t.
4720 * debug.c (debug_write): Same.
4721
73cc7272
TT
47222019-06-14 Tom Tromey <tom@tromey.com>
4723
4724 * configure.ac: Use new path to gnulib.
4725 * configure: Rebuild.
4726 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4727 to gnulib.
4728
08f10e02
TT
47292019-06-11 Tom Tromey <tom@tromey.com>
4730
4731 * Makefile.in (SFILES): Add alloc.c.
4732 (OBS): Add alloc.o.
4733 (IPA_OBJS): Add alloc-ipa.o.
4734 (alloc-ipa.o): New target.
4735 (%.o: ../%.c): New pattern rule.
4736
422186a9
TT
47372019-06-10 Tom Tromey <tromey@adacore.com>
4738
4739 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4740 end warning with a newline.
4741 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4742 newline.
4743 * thread-db.c (attach_thread): Don't end warning with a newline.
4744 (thread_db_notice_clone): Likewise.
4745 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4746 newline.
4747 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4748 end warning with a newline.
4749
b02f78f9
PA
47502019-06-04 Pedro Alves <palves@redhat.com>
4751
4752 * server.c (captured_main): Use make_unique_xstrdup.
4753
88ed7edb
TT
47542019-06-02 Tom Tromey <tom@tromey.com>
4755
4756 * gdbreplay.c (fromhex): Remove.
4757 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4758
33a6bc35
TT
47592019-05-29 Tom Tromey <tromey@adacore.com>
4760
4761 * configure: Rebuild.
4762
e90a813d
KB
47632019-05-06 Kevin Buettner <kevinb@redhat.com>
4764
4765 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4766 sign extension code on 32-bit builds.
4767
353ea2d1
EZ
47682019-05-03 Eli Zaretskii <eliz@gnu.org>
4769
4770 * remote-utils.c:
4771 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4772
b494cdff
TT
47732019-04-19 Tom Tromey <tom@tromey.com>
4774
4775 * server.c (struct vstop_notif): Derive from notif_event.
4776 <base>: Remove.
4777 (queue_stop_reply): Update.
4778 (remove_all_on_match_ptid): Change type. Rewrite.
4779 (discard_queued_stop_replies): Rewrite.
4780 (in_queued_stop_replies_ptid): Change type.
4781 (in_queued_stop_replies): Rewrite.
4782 (notif_stop): Update.
4783 (queue_stop_reply_callback): Update.
4784 (captured_main): Don't call initialize_notif.
4785 (push_stop_notification): Update.
4786 * notif.c (notif_write_event, handle_notif_ack)
4787 (notif_event_enque, notif_push): Update.
4788 (notif_event_xfree, initialize_notif): Remove.
4789 * notif.h (struct notif_event): Include <list>, not
4790 "common/queue.h".
4791 (struct notif_server) <queue>: Now a std::list.
4792 (notif_event_p): Remove typedef.
4793 (initialize_notif): Don't declare.
4794 (struct notif_event): Add virtual destructor.
4795
a7e559cc
AH
47962019-04-17 Alan Hayward <alan.hayward@arm.com>
4797
4798 * ax.c (ax_vdebug): Call debug_printf.
4799 * debug.c (debug_write): New function.
4800 * debug.h (debug_write): New declaration.
4801 * linux-low.c (sigchld_handler): Call debug_write.
4802
aeb2e706
AH
48032019-04-17 Alan Hayward <alan.hayward@arm.com>
4804
4805 * debug.c (debug_set_output): New function.
4806 (debug_vprintf): Send output to debug_file.
4807 (debug_flush): Likewise.
4808 * debug.h (debug_set_output): New declaration.
4809 * server.c (handle_monitor_command): Add debug-file option.
4810 (captured_main): Likewise.
4811
c1bc0935
AH
48122019-04-17 Alan Hayward <alan.hayward@arm.com>
4813
4814 * debug.c (remote_debug): Add definition.
4815 * debug.h (remote_debug): Add declaration.
4816 * hostio.c (remote_debug): Remove declaration.
4817 * remote-utils.c (struct ui_file): Likewise.
4818 (remote_debug): Likewise.
4819 * remote-utils.h (remote_debug): Likewise,
4820 * server.c (remote_debug): Remove definition.
4821
3f52fdbc
KB
48222019-04-10 Kevin Buettner <kevinb@redhat.com>
4823
4824 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4825 when using a 64-bit gdbserver.
4826
b0319eaa
TT
48272019-04-09 Tom Tromey <tromey@adacore.com>
4828
4829 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4830
eedc3f4f
TT
48312019-04-08 Tom Tromey <tom@tromey.com>
4832
4833 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4834 throw.
4835 (linux_resume_one_lwp): Likewise.
4836
230d2906
TT
48372019-04-08 Tom Tromey <tom@tromey.com>
4838
4839 * gdbreplay.c: Update.
4840 * linux-low.c: Update.
4841 * server.c: Update.
4842
a70b8144
TT
48432019-04-08 Tom Tromey <tom@tromey.com>
4844
4845 * server.c: Use C++ exception handling.
4846 * linux-low.c: Use C++ exception handling.
4847 * gdbreplay.c: Use C++ exception handling.
4848
3d6e9d23
TT
48492019-04-08 Tom Tromey <tom@tromey.com>
4850
4851 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4852 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4853 (captured_main, main): Update.
4854 * gdbreplay.c (main): Update.
4855
0570503d
PFC
48562019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4857
4858 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4859 value in argument pointer, return 1 if the entry is found and 0
4860 otherwise. Move comment.
4861 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4862 * linux-low.h (linux_get_auxv): Declare.
4863 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4864
227a9e65
TT
48652019-04-05 Tom Tromey <tromey@adacore.com>
4866
4867 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4868 variables.
4869
69f4c9cc
AH
48702019-03-28 Alan Hayward <alan.hayward@arm.com>
4871
4872 * linux-low.c (AT_HWCAP2): Add define if not already included.
4873
974c89e0
AH
48742019-03-26 Alan Hayward <alan.hayward@arm.com>
4875
4876 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4877 (aarch64_arch_setup): Call linux_get_hwcap.
4878 * linux-arm-low.c (arm_get_hwcap): Remove function.
4879 (arm_read_description): Call linux_get_hwcap.
4880 * linux-low.c (linux_get_auxv): New function.
4881 (linux_get_hwcap): Likewise.
4882 (linux_get_hwcap2): Likewise.
4883 * linux-low.h (linux_get_hwcap): New declaration.
4884 (linux_get_hwcap2): Likewise.
4885 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4886 (ppc_arch_setup): Call linux_get_hwcap.
4887 * linux-s390-low.c (s390_get_hwcap): Remove function.
4888 (s390_arch_setup): Call linux_get_hwcap.
4889
1ef53e6b
AH
48902019-03-22 Alan Hayward <alan.hayward@arm.com>
4891 Jiong Wang <jiong.wang@arm.com>
4892
4893 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4894 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4895 to fail.
4896 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4897
ee4fbcfa
AH
48982019-03-22 Alan Hayward <alan.hayward@arm.com>
4899 Jiong Wang <jiong.wang@arm.com>
4900
4901 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4902 (aarch64_get_hwcap): New function.
4903 (aarch64_arch_setup): Read APIA hwcap.
4904
6dc0ebde
AH
49052019-03-22 Alan Hayward <alan.hayward@arm.com>
4906 Jiong Wang <jiong.wang@arm.com>
4907
4908 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4909 (initialize_low_tracepoint): Likewise.
4910 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4911 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4912 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4913 (aarch64_linux_read_description): Likewise.
4914 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4915
1163a4b7
JB
49162019-03-12 John Baldwin <jhb@FreeBSD.org>
4917
4918 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4919 i386_create_target_description for 'segments' parameter.
4920 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4921 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4922 * win32-i386-low.c (i386_arch_setup): Likewise.
4923
d3a70e03
TT
49242019-03-12 Tom Tromey <tromey@adacore.com>
4925
4926 * linux-low.c (iterate_over_lwps): Update.
4927
37991b4f
TT
49282019-03-06 Tom Tromey <tom@tromey.com>
4929
4930 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4931 (captured_main): Use SCOPE_EXIT.
4932
45950eb6
SDJ
49332019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4934
4935 * configure.srv: Use '$enable_unittest' instead of '$development'
4936 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4937 case.
4938
43ac54fc
TT
49392019-02-27 Tom Tromey <tromey@adacore.com>
4940
4941 * gdbreplay.c (logchar): Handle \r\n.
4942
df0da8a2
AH
49432019-02-07 Alan Hayward <alan.hayward@arm.com>
4944
4945 * linux-low.c (linux_attach): Add process before lwp.
4946 * server.c (attach_inferior): Check if already attached.
4947
1a5c2598
TT
49482019-02-07 Tom Tromey <tom@tromey.com>
4949
4950 * x86-tdesc.h: Rename include guard.
4951 * x86-low.h: Add include guard.
4952 * wincecompat.h: Rename include guard.
4953 * win32-low.h: Add include guard.
4954 * utils.h: Rename include guard.
4955 * tracepoint.h: Rename include guard.
4956 * tdesc.h: Rename include guard.
4957 * target.h: Rename include guard.
4958 * server.h: Rename include guard.
4959 * remote-utils.h: Rename include guard.
4960 * regcache.h: Rename include guard.
4961 * nto-low.h: Rename include guard.
4962 * notif.h: Add include guard.
4963 * mem-break.h: Rename include guard.
4964 * lynx-low.h: Add include guard.
4965 * linux-x86-tdesc.h: Add include guard.
4966 * linux-s390-tdesc.h: Add include guard.
4967 * linux-ppc-tdesc-init.h: Add include guard.
4968 * linux-low.h: Add include guard.
4969 * linux-aarch64-tdesc.h: Add include guard.
4970 * linux-aarch32-low.h: Add include guard.
4971 * inferiors.h: Rename include guard.
4972 * i387-fp.h: Rename include guard.
4973 * hostio.h: Rename include guard.
4974 * gdbthread.h: Rename include guard.
4975 * gdb_proc_service.h: Rename include guard.
4976 * event-loop.h: Rename include guard.
4977 * dll.h: Rename include guard.
4978 * debug.h: Rename include guard.
4979 * ax.h: Rename include guard.
4980
956cc47c
SN
49812018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4982
4983 PR gdb/23985
4984 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4985 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4986
a0707f3c
TT
49872019-01-25 Tom Tromey <tom@tromey.com>
4988
4989 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4990
0747795c
TT
49912019-01-25 Tom Tromey <tom@tromey.com>
4992
4993 * win32-low.c: Fix common/ includes.
4994 * win32-i386-low.c: Fix common/ includes.
4995 * tracepoint.c: Fix common/ includes.
4996 * thread-db.c: Fix common/ includes.
4997 * target.h: Fix common/ includes.
4998 * symbol.c: Fix common/ includes.
4999 * spu-low.c: Fix common/ includes.
5000 * server.h: Fix common/ includes.
5001 * server.c: Fix common/ includes.
5002 * remote-utils.c: Fix common/ includes.
5003 * regcache.h: Fix common/ includes.
5004 * regcache.c: Fix common/ includes.
5005 * nto-x86-low.c: Fix common/ includes.
5006 * notif.h: Fix common/ includes.
5007 * mem-break.h: Fix common/ includes.
5008 * lynx-low.c: Fix common/ includes.
5009 * lynx-i386-low.c: Fix common/ includes.
5010 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5011 * linux-x86-low.c: Fix common/ includes.
5012 * linux-low.c: Fix common/ includes.
5013 * inferiors.h: Fix common/ includes.
5014 * i387-fp.c: Fix common/ includes.
5015 * hostio.c: Fix common/ includes.
5016 * hostio-errno.c: Fix common/ includes.
5017 * gdbthread.h: Fix common/ includes.
5018 * gdbreplay.c: Fix common/ includes.
5019 * fork-child.c: Fix common/ includes.
5020 * event-loop.c: Fix common/ includes.
5021 * ax.c:
5022 (enum gdb_agent_op): Fix common/ includes.
5023
be6d4f74
TT
50242019-01-21 Tom Tromey <tom@tromey.com>
5025
5026 * tracepoint.c: Fix includes.
5027 * remote-utils.c: Fix includes.
5028 * linux-x86-low.c: Fix includes.
5029
66d91b39
JB
50302019-01-01 Joel Brobecker <brobecker@adacore.com>
5031
5032 * gdbreplay.c (gdbreplay_version): Update copyright year in
5033 version message.
5034 * server.c (gdbserver_version): Likewise.
5035
754e3168
AH
50362018-12-05 Alan Hayward <alan.hayward@arm.com>
5037
5038 * linux-low.c (add_lwp): Switch ordering.
5039
d105de22
TT
50402018-11-29 Tom Tromey <tom@tromey.com>
5041
5042 * win32-low.c (win32_join): Take pid, not process.
5043 * target.h (struct target_ops) <join>: Change argument type.
5044 (join_inferior): Change argument name.
5045 * spu-low.c (spu_join): Take pid, not process.
5046 * server.c (handle_detach): Preserve pid before destroying
5047 process.
5048 * lynx-low.c (lynx_join): Take pid, not process.
5049 * linux-low.c (linux_join): Take pid, not process.
5050
50138245
AH
50512018-11-23 Alan Hayward <alan.hayward@arm.com>
5052
5053 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5054 (aarch64_cannot_fetch_register): Likewise.
5055 (struct linux_target_ops): Update references.
5056
64f57f3d
PFC
50572018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5058
5059 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5060
8d619c01
EBM
50612018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5062
5063 * configure.srv (ipa_ppc_linux_regobj): Add
5064 powerpc-isa207-htm-vsx32l-ipa.o and
5065 powerpc-isa207-htm-vsx64l-ipa.o.
5066 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5067 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5068 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5069 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5070 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5071 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5072 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5073 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5074 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5075 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5076 (init_registers_powerpc_isa207_htm_vsx32l)
5077 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5078 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5079 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5080 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5081 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5082 (ppc_store_tm_ctarregset): New functions.
5083 (ppc_regsets): Add entries for HTM regsets.
5084 (ppc_arch_setup): Set htm in features struct when needed. Set
5085 sizes for the HTM regsets.
5086 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5087 (initialize_low_arch): Call
5088 init_registers_powerpc_isa207_htm_vsx32l and
5089 init_registers_powerpc_isa207_htm_vsx64l.
5090 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5091 PPC_TDESC_ISA207_HTM_VSX.
5092 (initialize_low_tracepoint): Call
5093 init_registers_powerpc_isa207_htm_vsx32l and
5094 init_registers_powerpc_isa207_htm_vsx64l.
5095
232bfb86
EBM
50962018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5097
5098 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5099 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5100 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5101 (ppc_store_pmuregset): New functions.
5102 (ppc_regsets): Add entries for ebb and pmu regsets.
5103 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5104 pmu regsets are available. Set sizes for these regsets.
5105
f2cf6173
EBM
51062018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5107
5108 * configure.srv (ipa_ppc_linux_regobj): Add
5109 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5110 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5111 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5112 rs6000/powerpc-isa207-vsx32l.xml, and
5113 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5114 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5115 <PPC_TDESC_ISA207_VSX>: New enum value.
5116 (init_registers_powerpc_isa207_vsx32l): Declare.
5117 (init_registers_powerpc_isa207_vsx64l): Declare.
5118 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5119 (ppc_store_tarregset): New function.
5120 (ppc_regsets): Add entry for the TAR regset.
5121 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5122 size for the TAR regsets.
5123 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5124 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5125 and init_registers_powerpc_isa207_vsx64l.
5126 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5127 (initialize_low_tracepoint): Call
5128 init_registers_powerpc_isa207_vsx32l and
5129 init_registers_powerpc_isa207_vsx64l.
5130
7ca18ed6
EBM
51312018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5132 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5133
5134 * configure.srv (ipa_ppc_linux_regobj): Add
5135 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5136 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5137 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5138 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5139 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5140 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5141 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5142 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5143 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5144 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5145 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5146 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5147 (ppc_hwcap): Add comment.
5148 (ppc_hwcap2): New global.
5149 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5150 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5151 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5152 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5153 when needed. Set sizes for the the DSCR and PPR regsets.
5154 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5155 (initialize_low_arch): Call
5156 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5157 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5158 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5159 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5160 (initialize_low_tracepoint): Call
5161 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5162 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5163
5c849b22
PFC
51642018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5165
5166 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5167
8ecfd7bd
SDJ
51682018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5169 Simon Marchi <simark@simark.ca>
5170
5171 * acinclude.m4: Include "../selftest.m4".
5172 * configure: Regenerate.
5173 * configure.ac: Use "GDB_AC_SELFTEST".
5174 * configure.srv: Use "$enable_unittests" instead of
5175 "$development" when checking whether unit tests have been
5176 enabled.
5177 * server.c (captured_main): Update message informing that
5178 selftests have been disabled.
5179
96643e35
TT
51802018-10-04 Tom Tromey <tom@tromey.com>
5181
5182 * configure: Rebuild.
5183
da4ae14a
TT
51842018-10-04 Tom Tromey <tom@tromey.com>
5185
5186 * server.c (handle_status): Rename inner "thread".
5187 (process_serial_event): Declare "res" in 'm' case.
5188 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5189 (iterate_over_lwps): Rename inner "thread".
5190 (linux_qxfer_libraries_svr4): Rename inner "len".
5191 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5192
7c619dbd
GB
51932018-10-01 Gary Benson <gbenson@redhat.com>
5194
5195 * gdb_proc_service.h: Moved common code to
5196 common/gdb_proc_service.h.
5197
3795e814
GB
51982018-10-01 Gary Benson <gbenson@redhat.com>
5199
5200 * gdb_proc_service.h: Synchronize comments and whitespace with
5201 GDB's version of this file.
5202
49b036f1
TT
52032018-09-25 Tom Tromey <tom@tromey.com>
5204
5205 * configure: Rebuild.
5206 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5207
8ff03f0b
SM
52082018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5209
5210 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5211 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5212 ($(IPA_LIB)): Sort IPA_OBJS.
5213
a1cd91dc
SM
52142018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5215
5216 * Makefile.in: Remove references to $(ADD_DEPS).
5217
752312ba
TT
52182018-09-16 Tom Tromey <tom@tromey.com>
5219
5220 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5221 variables.
5222 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5223 variables.
5224
f1628857
TT
52252018-09-05 Tom Tromey <tom@tromey.com>
5226
5227 * configure: Rebuild.
5228
ad202fcc
SM
52292018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5230
5231 PR build/23399
5232 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5233
d3d8724a
TT
52342018-08-27 Tom Tromey <tom@tromey.com>
5235
5236 PR build/23087:
5237 * configure: Rebuild.
5238
b4f183d2
TT
52392018-08-27 Tom Tromey <tom@tromey.com>
5240
5241 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5242 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5243 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5244 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5245 (s390x_emit_stack_adjust): Add casts to unsigned char.
5246
4e2aa472
SM
52472018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5248
5249 PR gdb/23374
5250 PR gdb/23375
5251 * server.h (struct client_state) <disable_randomization>:
5252 Initialize to 1.
5253
cf4088a9
SM
52542018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5255
5256 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5257 variable.
5258 (mips_supply_ptrace_register): Likewise.
5259
a0de763e
TT
52602018-07-22 Tom Tromey <tom@tromey.com>
5261
5262 * configure: Rebuild.
5263
b0a7723d
TT
52642018-07-22 Tom Tromey <tom@tromey.com>
5265
5266 * win32-low.c (win32_create_inferior): Remove unused variables.
5267 * gdbreplay.c (remote_open): Remove unused variable.
5268 * remote-utils.c (remote_prepare): Remove unused variable.
5269 * x86-tdesc.h (X86_TDESC_H): Define.
5270 (amd64_expedite_regs): Define conditionally.
5271 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5272 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5273 * remote-utils.c (readchar): Remove unused variable.
5274
a780ef4f
PA
52752018-07-13 Pedro Alves <palves@redhat.com>
5276
5277 * linux-low.c (linux_kill): Change parameter to process_info
5278 pointer instead of pid. Adjust.
5279 * lynx-low.c (lynx_kill): Likewise.
5280 * nto-low.c (nto_kill): Likewise.
5281 * spu-low.c (spu_kill): Likewise.
5282 * win32-low.c (win32_kill): Likewise.
5283 * server.c (handle_v_kill, kill_inferior_callback)
5284 (detach_or_kill_for_exit): Adjust.
5285 * target.c (kill_inferior): Change parameter to process_info
5286 pointer instead of pid. Adjust.
5287 * target.h (struct target_ops) <kill>: Change parameter to
5288 process_info pointer instead of pid. Adjust all implementations
5289 and callers.
5290 (kill_inferior): Likewise.
5291
ef2ddb33
PA
52922018-07-13 Pedro Alves <palves@redhat.com>
5293
5294 * linux-low.c (linux_detach, linux_join): Change parameter to
5295 process_info pointer instead of pid. Adjust.
5296 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5297 * nto-low.c (nto_detach): Likewise.
5298 * spu-low.c (spu_detach, spu_join): Likewise.
5299 * win32-low.c (win32_detach, win32_join): Likewise.
5300 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5301 * target.h (struct target_ops) <detach, join>: Change parameter to
5302 process_info pointer instead of pid. Adjust all implementations
5303 and callers.
5304 (detach_inferior, join_inferior): Rename 'pid' parameter to
5305 'proc'.
5306
c7ab0aef
SDJ
53072018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5308 Jan Kratochvil <jan.kratochvil@redhat.com>
5309 Paul Fertser <fercerpav@gmail.com>
5310 Tsutomu Seki <sekiriki@gmail.com>
5311
5312 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5313 (OBS): Add 'common/netstuff.o'.
5314 (GDBREPLAY_OBS): Likewise.
5315 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5316 (remote_open): Implement support for IPv6
5317 connections.
5318 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5319 and 'wspiapi.h'.
5320 (handle_accept_event): Accept connections from IPv6 sources.
5321 (remote_prepare): Handle IPv6-style hostnames; implement
5322 support for IPv6 connections.
5323 (remote_open): Implement support for printing connections from
5324 IPv6 sources.
5325
31445d10
PA
53262018-07-11 Pedro Alves <palves@redhat.com>
5327
5328 PR gdb/23377
5329 * mem-break.c (any_persistent_commands): Add process_info
5330 parameter and use it instead of relying on the current process.
5331 Change return type to bool.
5332 * mem-break.h (any_persistent_commands): Add process_info
5333 parameter and change return type to bool.
5334 * server.c (handle_detach): Remove require_running_or_return call.
5335 Look up the process_info for the process we're about to detach.
5336 If not found, return back error to GDB. Adjust
5337 any_persistent_commands call to pass down a process pointer.
5338
cb197132
PA
53392018-07-11 Pedro Alves <palves@redhat.com>
5340
5341 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5342 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5343 instead of collect_register_by_name.
5344 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5345 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5346
1b919490
VB
53472018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5348 Pedro Alves <palves@redhat.com>
5349
5350 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5351
d7e15655
TT
53522018-07-03 Tom Tromey <tom@tromey.com>
5353
5354 * linux-low.c: Update.
5355 * lynx-low.c: Update.
5356 * mem-break.c: Update.
5357 * nto-low.c: Update.
5358 * remote-utils.c: Update.
5359 * server.c: Update.
5360 * spu-low.c: Update.
5361 * target.c: Update.
5362 * win32-low.c: Update.
5363
26a57c92
TT
53642018-07-03 Tom Tromey <tom@tromey.com>
5365
5366 * server.c: Update.
5367
0e998d96
TT
53682018-07-03 Tom Tromey <tom@tromey.com>
5369
5370 * linux-low.c: Update.
5371
cc6bcb54
TT
53722018-07-03 Tom Tromey <tom@tromey.com>
5373
5374 * target.c: Update.
5375
e38504b3
TT
53762018-07-03 Tom Tromey <tom@tromey.com>
5377
5378 * linux-low.c: Update.
5379 * linux-mips-low.c: Update.
5380 * lynx-low.c: Update.
5381 * nto-low.c: Update.
5382 * remote-utils.c: Update.
5383 * server.c: Update.
5384 * spu-low.c: Update.
5385 * target.c: Update.
5386 * thread-db.c: Update.
5387
e99b03dc
TT
53882018-07-03 Tom Tromey <tom@tromey.com>
5389
5390 * linux-low.c: Update.
5391 * linux-mips-low.c: Update.
5392 * lynx-low.c: Update.
5393 * mem-break.c: Update.
5394 * nto-low.c: Update.
5395 * remote-utils.c: Update.
5396 * server.c: Update.
5397 * spu-low.c: Update.
5398 * target.c: Update.
5399 * tracepoint.c: Update.
5400
f2907e49
TT
54012018-07-03 Tom Tromey <tom@tromey.com>
5402
5403 * linux-low.c: Update.
5404 * linux-ppc-low.c: Update.
5405 * linux-x86-low.c: Update.
5406 * proc-service.c: Update.
5407 * server.c: Update.
5408 * spu-low.c: Update.
5409 * thread-db.c: Update.
5410 * win32-low.c: Update.
5411
fd79271b
TT
54122018-07-03 Tom Tromey <tom@tromey.com>
5413
5414 * linux-low.c: Update.
5415 * lynx-low.c: Update.
5416 * nto-low.c: Update.
5417 * remote-utils.c: Update.
5418 * spu-low.c: Update.
5419 * thread-db.c: Update.
5420 * win32-low.c: Update.
5421
c0867626
SDJ
54222018-06-29 Joel Brobecker <brobecker@adacore.com>
5423
5424 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5425 parameter in call to 'amd64_create_target_description'.
5426
2512d7ef
JK
54272018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5428
5429 * x86-tdesc.h: Remove executable permission flag.
5430
d0ac1c44
SM
54312018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5432
5433 * configure.ac: Remove AC_PREREQ, add missing quoting.
5434 * configure: Re-generate.
5435 * config.in: Re-generate.
5436 * aclocal.m4: Re-generate.
5437
c4eb05ff
SM
54382018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5439
5440 * tracepoint.h (current_traceframe): Remove declaration.
5441
02895270
AH
54422018-06-18 Alan Hayward <alan.hayward@arm.com>
5443
5444 * linux-aarch64-low.c (is_sve_tdesc): New function.
5445 (aarch64_sve_regs_copy_to_regcache): Likewise.
5446 (aarch64_sve_regs_copy_from_regcache): Likewise.
5447 (aarch64_regs_info): Add SVE checks.
5448 (initialize_low_arch): Initialize SVE.
5449
e9902bfc
AH
54502018-06-18 Alan Hayward <alan.hayward@arm.com>
5451
5452 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5453
fefa175e
AH
54542018-06-11 Alan Hayward <alan.hayward@arm.com>
5455
5456 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5457 (initialize_low_tracepoint): Likewise
5458 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5459 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5460 param.
5461 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5462 checks.
5463 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5464
b91ad3ff
AH
54652018-06-11 Alan Hayward <alan.hayward@arm.com>
5466
5467 * server.h (PBUFSIZ): Increase size
5468
f868386e
AH
54692018-06-11 Alan Hayward <alan.hayward@arm.com>
5470
5471 * regcache.c (regcache::raw_compare): New function.
5472 * regcache.h (regcache::raw_compare): New declaration.
5473
9c861883
AH
54742018-06-11 Alan Hayward <alan.hayward@arm.com>
5475
5476 * regcache.c (new_register_cache): Use new.
5477 (free_register_cache): Use delete.
5478 (register_data): Use const.
5479 (supply_register): Move body inside regcache.
5480 (regcache::raw_supply): New override function.
5481 (collect_register): Move body inside regcache.
5482 (regcache::raw_collect): New override function.
5483 (regcache::get_register_status): New override function.
5484 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5485
40591844
TT
54862018-06-09 Tom Tromey <tom@tromey.com>
5487
5488 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5489 declare queue.
5490 (event_queue): Use std::queue.
5491 (gdb_event_xfree): Remove.
5492 (initialize_event_loop, process_event, wait_for_event): Update.
5493
6341380d
SC
54942018-06-08 Stan Cox <scox@redhat.com>
5495
5496 * win32-low.c (win32_create_inferior): last_ptid and last_status
5497 moved to client_state.
5498
03349c93
PA
54992018-06-08 Pedro Alves <palves@redhat.com>
5500
5501 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5502 common/common-exceptions.o, common/common-utils.o,
5503 common/errors.o, common/print-utils.o and utils.o.
5504 * gdbreplay.c: Include "common-defs.h" instead of the two
5505 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5506 string.h or alloca.h.
5507 (perror_with_name): Delete.
5508 (remote_open): Use xstrdup instead of strdup.
5509 (main): Rename to ...
5510 (captured_main): ... this.
5511 (main): New.
5512
8dcc53b3
TT
55132018-06-08 Tom Tromey <tom@tromey.com>
5514
5515 * linux-low.c (linux_low_read_btrace): Update.
5516
c12a5089
SC
55172018-06-04 Stan Cox <scox@redhat.com>
5518
5519 * server.h (struct client_state): New.
5520 * server.c (cont_thread, general_thread, multi_process)
5521 (report_fork_events, report_vfork_events, report_exec_events)
5522 (report_thread_events, swbreak_feature, hwbreak_feature)
5523 (vCont_supported, disable_randomization, pass_signals)
5524 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5525 Moved to client_state.
5526 * remote-utils.c (remote_debug, noack_mode)
5527 (transport_is_reliable): Moved to client_state.
5528 * tracepoint.c (current_traceframe): Moved to client_state.
5529
5530 Update all callers.
5531 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5532 linux-low.c, remote-utils.h, target.c: Use client_state.
5533
122394f1
AH
55342018-05-31 Alan Hayward <alan.hayward@arm.com>
5535
5536 * configure.srv: Add new c/h file.
5537
95228a0d
AH
55382018-05-31 Alan Hayward <alan.hayward@arm.com>
5539
5540 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5541 null VQ.
5542
d8dab6c3
MR
55432018-05-25 Maciej W. Rozycki <macro@mips.com>
5544
5545 * gdb.arch/mips-fpregset-core.exp: New test.
5546 * gdb.arch/mips-fpregset-core.c: New test source.
5547
81e25b7c
EK
55482018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5549
5550 PR server/23198
5551 * hostio.c (require_int): Do not report overflow for integers
5552 between 0xfffffff and 0x7fffffff.
5553
7e947ad3
MR
55542018-05-22 Maciej W. Rozycki <macro@mips.com>
5555
5556 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5557 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5558 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5559 functions.
5560 (the_low_target): Wire them.
5561
1d75a658
PFC
55622018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5563
5564 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5565 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5566 mode. Call collect_register_by_name with vscr using
5567 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5568 (ppc_store_vrregset): Add and set vscr_offset variable as in
5569 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5570 vscr_offset.
5571
d078308a
PFC
55722018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5573
5574 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5575 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5576 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5577
7273b5fc
PFC
55782018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5579
5580 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5581 (ppc_store_vsxregset): Likewise.
5582 (ppc_fill_vrregset): Likewise.
5583 (ppc_store_vrregset): Likewise.
5584 (ppc_fill_evrregset): Likewise.
5585 (ppc_store_evrregset): Likewise.
5586 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5587 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5588 needed.
5589
2e077f5e
PFC
55902018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5591
5592 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5593 wordsize of the inferior. Call ppc_linux_target_wordsize.
5594
bd64614e
PFC
55952018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5596
5597 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5598 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5599 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5600 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5601 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5602 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5603 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5604 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5605 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5606 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5607 (tdesc_powerpc_e500l): Remove.
5608 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5609 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5610 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5611 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5612 linux-ppc-tdesc.h.
5613 (ppc_arch_setup): Remove target description matching code. Fill a
5614 ppc_linux_features struct and call ppc_linux_match_description
5615 with it.
5616
75d74cca
MR
56172018-05-22 Maciej W. Rozycki <macro@mips.com>
5618
5619 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5620 width of the requested register exceeds the width of the
5621 `ptrace' data type.
5622 (mips_cannot_store_register): Likewise.
5623
e4439e43
MR
56242018-05-21 Maciej W. Rozycki <macro@mips.com>
5625
5626 * linux-mips-low.c (mips_fetch_register): New function. Update
5627 preceding comment.
5628 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5629 (the_low_target): Wire `mips_fetch_register'.
5630
55271bf9
JB
56312018-05-10 Joel Brobecker <brobecker@adacore.com>
5632
5633 * lynx-i386-low.c (LYNXOS_178): New macro.
5634 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5635 the layout on LynxOS-178.
5636 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5637 handle floating point registers that are not supported by
5638 LynxOS-178.
5639
1a34f210
TT
56402018-05-10 Tom Tromey <tom@tromey.com>
5641
5642 * configure: Rebuild.
5643
190852c8
JB
56442018-05-10 Joel Brobecker <brobecker@adacore.com>
5645
5646 PR server/23158:
5647 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5648 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5649 Use it to set the expedite_regs field in the given tdesc.
5650 * x86-tdesc.h: New file.
5651 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5652 Adjust following the addition of the new expedite_regs parameter
5653 to init_target_desc.
5654 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5655 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5656 (i386_linux_read_description, amd64_linux_read_description):
5657 Adjust following the addition of the new expedite_regs parameter
5658 to init_target_desc.
5659 * lynx-i386-low.c: #include "x86-tdesc.h".
5660 (lynx_i386_arch_setup): Adjust following the addition of the new
5661 expedite_regs parameter to init_target_desc.
5662 * nto-x86-low.c: #include "x86-tdesc.h".
5663 (nto_x86_arch_setup): Adjust following the addition of the new
5664 expedite_regs parameter to init_target_desc.
5665 * win32-i386-low.c: #include "x86-tdesc.h".
5666 (i386_arch_setup): Adjust following the addition of the new
5667 expedite_regs parameter to init_target_desc.
5668
7dbac825
JB
56692018-05-10 Joel Brobecker <brobecker@adacore.com>
5670
5671 PR server/23158:
5672 * win32-low.c (win32_create_inferior): Add call to my_wait
5673 setting last_status global.
5674
906994d9
JB
56752018-05-10 Joel Brobecker <brobecker@adacore.com>
5676
5677 PR server/23158:
5678 * win32-low.c (create_process): Only call gdb_tilde_expand if
5679 inferior_cwd is not NULL.
5680
8ee22052
AB
56812018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5682
5683 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5684 registers to the cache if their values have changed.
5685 (i387_xsave_to_cache): Provide default values for x87 control
5686 registers when these features are available, but disabled.
5687 * regcache.c (supply_register_by_name_zeroed): New function.
5688 * regcache.h (supply_register_by_name_zeroed): Declare new
5689 function.
5690
aff689d3
TT
56912018-05-07 Tom Tromey <tom@tromey.com>
5692
5693 * configure: Rebuild.
5694
85e26832
TT
56952018-05-04 Tom Tromey <tom@tromey.com>
5696
5697 * configure: Rebuild.
5698
a3b60e45
JK
56992018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5700 Pedro Alves <palves@redhat.com>
5701
5702 * linux-aarch64-low.c (aarch64_stopped_data_address):
5703 Likewise.
5704
632e107b
TT
57052018-04-27 Tom Tromey <tom@tromey.com>
5706
5707 * configure: Rebuild.
5708
458412c3
TT
57092018-04-23 Tom Tromey <tom@tromey.com>
5710
5711 * configure: Rebuild.
5712
f31c089e
SM
57132018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5714
5715 * Makefile.in (depcomp): Add "..".
5716 (all_deps_files): New and use it.
5717
b319b098
AH
57182018-04-18 Alan Hayward <alan.hayward@arm.com>
5719
5720 * configure.srv (aarch64*-*-linux*): Don't include xml.
5721 (i[34567]86-*-cygwin*): Likewise.
5722 (i[34567]86-*-linux*): Likewise.
5723 (i[34567]86-*-lynxos*): Likewise.
5724 (i[34567]86-*-mingw32ce*): Likewise.
5725 (i[34567]86-*-mingw*): Likewise.
5726 (i[34567]86-*-nto*): Likewise.
5727 (tic6x-*-uclinux): Likewise.
5728 (x86_64-*-linux*): Likewise.
5729 (x86_64-*-mingw*): Likewise.
5730 (x86_64-*-cygwin*): Likewise.
5731
3b74854b
AH
57322018-04-18 Alan Hayward <alan.hayward@arm.com>
5733
5734 * tdesc.c: Remove xml parameter.
5735
e98577a9
AH
57362018-04-18 Alan Hayward <alan.hayward@arm.com>
5737
5738 * server.c (get_features_xml): Remove cast.
5739 * tdesc.c (void target_desc::accept): Fill in function.
5740 (tdesc_get_features_xml): Remove old xml creation.
5741 (print_xml_feature::visit_pre): Add xml vistor.
5742 * tdesc.h (struct target_desc): Make xmltarget mutable.
5743 (tdesc_get_features_xml): Remove declaration.
5744
d278f585
AH
57452018-04-18 Alan Hayward <alan.hayward@arm.com>
5746
5747 * tdesc.c (tdesc_architecture_name): Add new function.
5748 (tdesc_osabi_name): Likewise.
5749 (tdesc_get_features_xml): Use new functions.
5750
eee8a18d
AH
57512018-04-18 Alan Hayward <alan.hayward@arm.com>
5752
5753 * tdesc.c (tdesc_create_flags): Remove.
5754 (tdesc_add_flag): Likewise.
5755 (tdesc_named_type): Likewise.
5756 (tdesc_create_union): Likewise.
5757 (tdesc_create_struct): Likewise.
5758 (tdesc_create_vector): Likewise.
5759 (tdesc_add_bitfield): Likewise.
5760 (tdesc_add_field): Likewise.
5761 (tdesc_set_struct_size): Likewise.
5762
82ec9bc7
AH
57632018-04-18 Alan Hayward <alan.hayward@arm.com>
5764
5765 * tdesc.c (~target_desc): Remove implictly deleted items.
5766 (init_target_desc): Iterate all features.
5767 (tdesc_get_features_xml): Use vector.
5768 (tdesc_create_feature): Create feature.
5769 * tdesc.h (tdesc_feature) Remove
5770 (target_desc): Add features.
5771
ea3e7d71
AH
57722018-04-18 Alan Hayward <alan.hayward@arm.com>
5773
5774 * Makefile.in: Add common/tdesc.c
5775 * tdesc.c (init_target_desc): init all reg_defs from register
5776 vector.
5777 (tdesc_create_reg): Create tdesc_reg.
5778 * tdesc.h (tdesc_feature): Add register vector.
5779
17d08cd4
SM
57802018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5781
5782 * tdesc.h (struct target_desc) <features>: Change type to
5783 std::vector<std::string>.
5784 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5785 changes.
5786 (tdesc_get_features_xml): Likewise.
5787 (tdesc_create_feature): Likewise.
5788
5cd3e386
AH
57892018-03-26 Alan Hayward <alan.hayward@arm.com>
5790
5791 * regcache.c (find_register_by_number): Return a ref.
5792 (find_regno): Use references.
5793 (register_size): Likewise.
5794 (register_data): Likewise.
5795 * tdesc.c (target_desc::~target_desc): Remove free calls.
5796 (target_desc::operator==): Use std::vector compare.
5797 (init_target_desc): Use reference.
5798 (tdesc_create_reg): Use reg constructors.
5799 * tdesc.h (struct target_desc): Replace pointer with object.
5800
dff7492c
AH
58012018-03-23 Alan Hayward <alan.hayward@arm.com>
5802
5803 * regcache.c (find_register_by_number): Make static.
5804 (find_regno): Use find_register_by_number
5805 * regcache.h (struct reg): Remove declaration.
5806
d80e5242
AH
58072018-03-23 Alan Hayward <alan.hayward@arm.com>
5808
5809 * tdesc.c (target_desc::~target_desc): Move to here.
5810 (target_desc::operator==): Likewise.
5811 * tdesc.h (target_desc::~target_desc): Move from here.
5812 (target_desc::operator==): Likewise.
5813
f69c5afb
AA
58142018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5815
5816 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5817
ce29f843
AA
58182018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5819
5820 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5821 S390_TDESC_GS.
5822 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5823 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5824 and init_registers_s390_gs_linux64.
5825
c49bd90b
AA
58262018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5827
5828 * linux-s390-low.c (s390_fill_gs): Remove function.
5829 (s390_fill_gsbc): Remove function.
5830 (s390_regsets): Set fill functions for the guarded storage regsets
5831 to NULL.
5832
7edb9bd3
AA
58332018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5834
5835 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5836 the word size. Add comment.
5837 (s390_get_wordsize): New function.
5838 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5839 pswm with it. Instead, use s390_get_wordsize to determine the
5840 word size first and derive the correct tdesc from that directly.
5841
39be3c7e
SM
58422018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5843
5844 * Makefile.in: Include silent-rules.mk.
5845 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5846 (COMPILE): Add ECHO_CXX.
5847 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5848 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5849 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5850 (version-generated.c): Add ECHO_GEN.
5851 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5852 (IPAGENT_COMPILE): Add ECHO_CXX.
5853 (%-generated.c): Add ECHO_REGDAT.
5854
3ae9ce5d
TT
58552018-03-14 Tom Tromey <tom@tromey.com>
5856
5857 PR cli/14977:
5858 * ax.c (ax_printf): Special case for NULL.
5859
e6a58aa8
SM
58602018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5861
5862 * linux-low.c (linux_qxfer_libraries_svr4): Use
5863 xml_escape_text_append.
5864
f6e8a41e
SM
58652018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5866
5867 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5868
b9671caf
SM
58692018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5870
5871 * server.c (handle_general_set): Remove unnecessary xstrdup.
5872
e80aaf61
SM
58732018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5874
5875 * server.c (parse_debug_format_options): Adjust to
5876 delim_string_to_char_ptr_vec changes.
5877 * thread-db.c (thread_db_load_search): Adjust to
5878 dirnames_to_char_ptr_vec changes.
5879
b1223e78
MM
58802018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5881
5882 * target.h (target_enable_btrace, target_disable_btrace)
5883 (target_read_btrace, target_read_btrace_conf): Turn macro into
5884 inline function. Throw error if target method is not defined.
5885 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5886 check for btrace target method. Be prepared to handle exceptions
5887 from btrace target methods.
5888
81561546
SDJ
58892018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5890
5891 * server.c (captured_main): Change order of error message printed
5892 when the current working directory cannot be found.
5893
25e3c82c
SDJ
58942018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5895
5896 * server.c: Include "filenames.h" and "pathstuff.h".
5897 (program_name): Delete variable.
5898 (program_path): New anonymous class.
5899 (get_exec_wrapper): Use "program_path" instead of
5900 "program_name".
5901 (handle_v_run): Likewise.
5902 (captured_main): Likewise.
5903 (process_serial_event): Likewise.
5904
b4987c95
SDJ
59052018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5906
5907 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5908 (OBJS): Add "pathstuff.o".
5909 * server.c (current_directory): New global variable.
5910 (captured_main): Initialize "current_directory".
5911
f46cd62a
AH
59122018-02-26 Alan Hayward <alan.hayward@arm.com>
5913
5914 * tdesc.c: Use common/tdesc.h.
5915 * tdesc.h: Likewise.
5916
a543c5ca
AH
59172018-02-20 Alan Hayward <alan.hayward@arm.com>
5918 Simon Marchi <simon.marchi@ericsson.com>
5919
5920 * Makefile.in: Switch order of make rules.
5921
b5884fa7
AH
59222018-02-19 Alan Hayward <alan.hayward@arm.com>
5923
5924 * Makefile.in: Add common directory in build.
5925 * configure.ac: Add common reference.
5926 * configure: Regenerate.
5927
de6242d3
MM
59282018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5929
5930 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5931 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5932 * spu-low.c (spu_target_ops): Likewise.
5933 * win32-low.c (win32_target_ops): Likewise.
5934 * server.c (supported_btrace_packets): Report packets unconditionally.
5935 * target.h (target_ops) <supports_btrace>: Remove.
5936 (target_supports_btrace): Remove.
5937
9ee23a85
MM
59382018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5939
5940 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5941 (handle_btrace_disable): Change return type to void. Use exceptions
5942 to report errors.
5943 (handle_btrace_general_set): Catch exception and copy message to
5944 return message.
5945
8ce47547
TT
59462018-02-08 Tom Tromey <tom@tromey.com>
5947
5948 * linux-low.c (install_software_single_step_breakpoints): Use
5949 make_scoped_restore.
5950 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5951 (do_restore_current_thread_cleanup): Remove.
5952 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5953 declare.
5954
45dd3607
TT
59552018-02-08 Tom Tromey <tom@tromey.com>
5956
5957 * mem-break.c (set_raw_breakpoint_at): Use
5958 gdb::unique_xmalloc_ptr.
5959
e671cd59
PA
59602018-01-30 Pedro Alves <palves@redhat.com>
5961
5962 PR gdb/13211
5963 * target.c (target_terminal::terminal_state): Rename to ...
5964 (target_terminal::m_terminal_state): ... this.
5965
a0aad537
JC
59662018-01-19 James Clarke <jrtc27@jrtc27.com>
5967
5968 * linux-low.c (handle_extended_wait): Surround call to
5969 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5970
4d9b86e1
SM
59712018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5972
5973 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5974 linux_ptrace_attach_fail_reason_string now returning an
5975 std::string.
5976 (linux_attach): Likewise.
5977 * thread-db.c (attach_thread): Likewise.
5978
f517c180
EA
59792018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5980
5981 PR gdb/21559
5982 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5983 checking for fs_base/gs_base fields in struct user_regs_struct.
5984 * configure: Regenerate.
5985
9a70f35c
YQ
59862018-01-16 Yao Qi <yao.qi@linaro.org>
5987
5988 PR gdb/18749
5989 * linux-low.c (fetch_register): Call supply_register instead of
5990 error.
5991
605fd3c6
YQ
59922018-01-08 Yao Qi <yao.qi@linaro.org>
5993 Simon Marchi <simon.marchi@ericsson.com>
5994
5995 * Makefile.in (OBS): Remove selftest.o.
5996 * configure.ac: Set srv_selftest_objs if $development is true.
5997 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5998 * configure: Re-generated.
5999 * server.c (captured_main): Wrap variable selftest_filter with
6000 GDB_SELF_TEST.
6001
2cc05030
SM
60022018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6003
6004 * server.c (parse_debug_format_options): Return std::string.
6005 (handle_monitor_command, captured_main): Adjust.
6006
e379cee6
PA
60072018-01-05 Pedro Alves <palves@redhat.com>
6008
6009 PR gdb/18653
6010 * server.c (captured_main): Pass quiet=false to
6011 save_original_signals_state.
6012
82e1e79a
JB
60132018-01-01 Joel Brobecker <brobecker@adacore.com>
6014
6015 * gdbreplay.c (gdbreplay_version): Update copyright year in
6016 version message.
6017 * server.c (gdbserver_version): Likewise.
6018
8e481c3b
TT
60192017-12-08 Tom Tromey <tom@tromey.com>
6020
6021 * ax.c (ax_printf): Update.
6022
a8806230
YQ
60232017-12-07 Yao Qi <yao.qi@linaro.org>
6024
6025 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6026 aarch64_linux_read_description.
6027 * linux-amd64-ipa.c (idx2mask): New array.
6028 (get_ipa_tdesc): Move idx2mask out.
6029 (initialize_low_tracepoint): Initialize target descriptions.
6030 * linux-i386-ipa.c (idx2mask): New array.
6031 (get_ipa_tdesc): Move idx2mask out.
6032 (initialize_low_tracepoint): Initialize target descriptions.
6033
d4a0e8b5
SM
60342017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6035
6036 * tdesc.c (struct tdesc_type): Change return type.
6037 (tdesc_add_flag): Change parameter type.
6038 (tdesc_add_bitfield): Likewise.
6039 (tdesc_add_field): Likewise.
6040 (tdesc_set_struct_size): Likewise.
6041
798a7429
SM
60422017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6043
6044 * regcache.c (registers_to_string): Remove unused variable.
6045
c0e15c9b
SM
60462017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6047
6048 * inferiors.c (for_each_inferior_with_data): Remove.
6049 * inferiors.h (for_each_inferior_with_data): Remove.
6050 * server.c (handle_qxfer_threads_worker): Change parameter type.
6051 (handle_qxfer_threads_proper): Use for_each_thread.
6052
f0045347
SM
60532017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6054
6055 * inferiors.c (for_each_inferior): Remove.
6056 (clear_inferiors): Use for_each_thread.
6057 * inferiors.h (for_each_inferior): Remove.
6058 * linux-low.c (linux_wait_for_event_filtered): Use
6059 for_each_thread.
6060 (linux_stabilize_threads): Likewise.
6061 * regcache.c (regcache_release): Likewise.
6062 * server.c (gdb_wants_all_threads_stopped): Likewise.
6063 (clear_pending_status_callback): Remove.
6064 (handle_status): Use for_each_thread.
6065 (captured_main): Likewise.
6066 * win32-low.c (child_init_thread_list): Likewise.
6067 (win32_clear_inferiors): Likewise.
6068 (fake_breakpoint_event): Likewise.
6069
9521758b
SM
60702017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6071
6072 * inferiors.h (find_inferior): Remove.
6073 * inferiors.c (find_inferior): Remove.
6074
8f86d7aa
SM
60752017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6076
6077 * linux-low.c (resume_status_pending_p): Update comment.
6078 (need_step_over_p): Update comment.
6079
e2b44075
SM
60802017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6081
6082 * linux-low.c (proceed_one_lwp): Return void, change parameter
6083 type.
6084 (unsuspend_and_proceed_one_lwp): Likewise.
6085 (proceed_all_lwps): Use for_each_thread.
6086 (unstop_all_lwps): Likewise.
6087
c80825ff
SM
60882017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6089
6090 * linux-low.c (linux_resume_one_thread): Return void, take
6091 parameter directly.
6092 (linux_resume): Use for_each_thread.
6093
df3e4dbe
SM
60942017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6095
6096 * linux-low.c (send_sigstop_callback): Return void, change
6097 parameter type. Rename to...
6098 (send_sigstop): ... this.
6099 (suspend_and_send_sigstop_callback): Return void, change parameter
6100 type. Rename to...
6101 (suspend_and_send_sigstop): ... this.
6102 (stop_all_lwps): Use for_each_thread.
6103
5a6b0a41
SM
61042017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6105
6106 * linux-low.c (lwp_running): Return bool, remove unused
6107 argument.
6108 (linux_stabilize_threads): Use find_thread.
6109
39a64da5
SM
61102017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6111
6112 * linux-low.c (select_singlestep_lwp_callback): Remove.
6113 (count_events_callback): Remove.
6114 (select_event_lwp_callback): Remove.
6115 (select_event_lwp): Use find_thread/for_each_thread.
6116
a1385b7b
SM
61172017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6118
6119 * linux-low.c (not_stopped_callback): Return bool, take filter
6120 argument directly.
6121 (linux_wait_for_event_filtered): Use find_thread.
6122 (linux_wait_1): Likewise.
6123
454296a2
SM
61242017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6125
6126 * linux-low.c (same_lwp): Remove.
6127 (find_lwp_pid): Use find_thread.
6128
6b2a85da
SM
61292017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6130
6131 * linux-low.c (delete_lwp_callback): Remove.
6132 (linux_mourn): Use for_each_thread.
6133
798a38e8
SM
61342017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6135
6136 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6137 args parameter, don't check for pid.
6138 (linux_detach): Use for_each_thread.
6139
e4eb0dec
SM
61402017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6141
6142 * linux-low.c (struct counter): Remove.
6143 (second_thread_of_pid_p): Remove.
6144 (last_thread_of_process_p): Use find_thread.
6145
83e1b6c1
SM
61462017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6147
6148 * inferiors.c (find_inferior_in_random): Remove.
6149 * inferiors.h (find_inferior_in_random): Remove.
6150 * linux-low.c (status_pending_p_callback): Return bool, accept
6151 parameter ptid directly.
6152 (linux_wait_for_event_filtered): Use find_thread_in_random.
6153 (linux_wait_1): Likewise.
6154
8dc7b443
SM
61552017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6156
6157 * inferiors.c (find_inferior_id): Remove.
6158 (find_thread_ptid): Move implemention from find_inferior_id to
6159 here.
6160 * inferiors.h (find_inferior_id): Remove.
6161 * server.c (handle_status): Use find_thread_ptid.
6162 (process_serial_event): Likewise.
6163 * thread-db.c (find_one_thread): Likewise.
6164 (thread_db_thread_handle): Likewise.
6165 * win32-low.c (thread_rec): Likewise.
6166 (child_delete_thread): Likewise.
6167 (win32_thread_alive): Likewise.
6168 (get_child_debug_event): Likewise.
6169
da25033c
SM
61702017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6171
6172 * linux-mips-low.c (update_watch_registers_callback): Return
6173 void, remove pid_p parameter, don't check for pid.
6174 (mips_insert_point, mips_remove_point): Use for_each_thread.
6175
c91bb56b
SM
61762017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6177
6178 * lynx.low (lynx_delete_thread_callback): Remove.
6179 (lynx_mourn): Use for_each_thread.
6180
634a3254
SM
61812017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6182
6183 * regcache.c (regcache_invalidate_one): Remove.
6184 (regcache_invalidate_pid): use for_each_thread.
6185
41272101
TT
61862017-11-26 Tom Tromey <tom@tromey.com>
6187
6188 * linux-low.c (linux_create_inferior): Update.
6189
f5291a6f
UW
61902017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6191
6192 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6193
6654d750
AH
61942017-11-24 Alan Hayward <alan.hayward@arm.com>
6195
6196 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6197 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6198 * linux-aarch64-tdesc-selftest.c: New file.
6199 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6200
62012017-11-24 Alan Hayward <alan.hayward@arm.com>
6202
6203 * configure.srv: Add new file.
6204 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6205 * linux-aarch64-tdesc-selftest.c: New file.
6206 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6207
49bdb7ee
AH
62082017-11-24 Alan Hayward <alan.hayward@arm.com>
6209
6210 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6211 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6212 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6213
d6d7ce56
AH
62142017-11-24 Alan Hayward <alan.hayward@arm.com>
6215
6216 * configure.srv: Add new files.
6217 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6218 aarch64_linux_read_description.
6219 * linux-aarch64-low.c (aarch64_linux_read_description):
6220 Merge with aarch64_arch_setup.
6221 (aarch64_arch_setup): Call aarch64_linux_read_description.
6222 * linux-aarch64-tdesc.c: New file.
6223 * linux-aarch64-tdesc.h: New file.
6224
506fe5f4
YQ
62252017-11-24 Yao Qi <yao.qi@linaro.org>
6226
6227 * configure.srv: Set $srv_regobj for tic6x-linux.
6228 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6229 (tic6x_read_description): Move some code to tic6x_arch_setup.
6230 (tic6x_tdesc_test): New function.
6231 (initialize_low_arch): Call selftests::register_test.
6232
29f9a567
YQ
62332017-11-22 Yao Qi <yao.qi@linaro.org>
6234
6235 * remote-utils.c (prepare_resume_reply): Use memcpy.
6236
578290ec
SM
62372017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6238
6239 * linux-low.c (kill_one_lwp_callback): Return void, take
6240 argument directly, don't filter on pid.
6241 (linux_kill): Use for_each_thread.
6242
eca55aec
SM
62432017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6244
6245 * linux-low.c (need_step_over_p): Return bool, remove dummy
6246 argument.
6247 (linux_resume, proceed_all_lwps): Use find_thread.
6248
25c28b4d
SM
62492017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6250
6251 * linux-low.c (resume_status_pending_p): Return bool, remove
6252 flag_p argument.
6253 (linux_resume): Use find_thread.
6254
5fdda392
SM
62552017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6256
6257 * linux-low.c (struct thread_resume_array): Remove.
6258 (linux_set_resume_request): Return void, take arguments
6259 directly.
6260 (linux_resume): Use for_each_thread.
6261
fcb056a5
SM
62622017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6263
6264 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6265 return bool, remove data argument.
6266 (linux_stabilize_threads): Use find_thread.
6267
139720c5
SM
62682017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6269
6270 * linux-low.c (unsuspend_one_lwp): Remove.
6271 (unsuspend_all_lwps): Use for_each_thread, inline code from
6272 unsuspend_one_lwp.
6273
6d1e5673
SM
62742017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6275
6276 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6277 * linux-low.c (struct iterate_over_lwps_args): Remove.
6278 (iterate_over_lwps_filter): Remove.
6279 (iterate_over_lwps): Use find_thread.
6280
bbf550d5
SM
62812017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6282
6283 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6284 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6285 code from reset_lwp_ptrace_options_callback.
6286
00192f77
SM
62872017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6288
6289 * linux-arm-low.c (struct update_registers_data): Remove.
6290 (update_registers_callback): Return void, take arguments
6291 directly, don't check thread's pid.
6292 (arm_insert_point, arm_remove_point): Use for_each_thread.
6293
2bee2b6c
SM
62942017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6295
6296 * win32-low.c (continue_one_thread): Return void, take argument
6297 directly.
6298 (child_continue): Use for_each_thread.
6299
0b360f19
SM
63002017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6301
6302 * win32-i386-low.c (update_debug_registers_callback): Rename
6303 to ...
6304 (update_debug_registers): ... this, return void, remove pid_p arg.
6305 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6306
f27866ba
SM
63072017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6308
6309 * inferiors.h (struct process_info): Add constructor, initialize
6310 fields..
6311 <syscalls_to_catch>: Change type to std::vector<int>.
6312 * inferiors.c (add_process): Allocate process_info with new.
6313 (remove_process): Free process_info with delete.
6314 * linux-low.c (handle_extended_wait): Adjust.
6315 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6316 * server.c (handle_general_set): Adjust.
6317
e849ea89
PA
63182017-11-16 Pedro Alves <palves@redhat.com>
6319
6320 * remote-utils.c (remote_close): Block SIGIO signals instead of
6321 uninstalling the SIGIO handler.
6322
1d0aa65c
AH
63232017-11-16 Alan Hayward <alan.hayward@arm.com>
6324
6325 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6326
3491a34c
YQ
63272017-11-16 Yao Qi <yao.qi@linaro.org>
6328
6329 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6330 (tic6x_store_gregset): Likewise.
6331 (tic6x_usrregs_info): Move it up.
6332
a602f924
AH
63332017-11-15 Alan Hayward <alan.hayward@arm.com>
6334
6335 * Makefile.in: Update arch rules.
6336 * configure.srv: Explicitly mark arch/ files.
6337
5616b6c3
AS
63382017-11-13 Andreas Schwab <schwab@suse.de>
6339
6340 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6341 function.
6342 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6343
d1928160
PA
63442017-11-06 Pedro Alves <palves@redhat.com>
6345
6346 * config.in, configure: Regenerate.
6347
bac608e7
SM
63482017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6349
6350 * target.c (struct thread_search): Remove.
6351 (thread_search_callback): Remove.
6352 (prepare_to_access_memory): Use for_each_thread instead of
6353 find_inferior. Inline code from thread_search_callback.
6354
eaddb425
SM
63552017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6356
6357 * server.c (struct visit_actioned_threads_data): Remove.
6358 (visit_actioned_threads): Change prototype to take arguments
6359 directly.
6360 (resume): Use find_thread instead of find_inferior.
6361
99078d34
SM
63622017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6363
6364 * server.c (queue_stop_reply_callback): Change prototype, return
6365 void.
6366 (find_status_pending_thread_callback): Remove.
6367 (handle_status): Replace find_inferior with find_thread and
6368 for_each_thread.
6369
cc628f3d
AH
63702017-10-25 Alan Hayward <alan.hayward@arm.com>
6371
6372 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6373 with REGNO.
6374 (aarch64_store_gregset): Likewise.
6375 (aarch64_fill_fpregset): Likewise.
6376 (aarch64_store_fpregset): Likewise.
6377
4d3bb80e
SM
63782017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6379
6380 * gdbthread.h (find_thread, for_each_thread): New functions.
6381 * inferiors.c (thread_of_pid): Remove.
6382 (find_any_thread_of_pid): Use find_thread.
6383 * linux-low.c (num_lwps): Use for_each_thread.
6384
7a7cdfa0
YQ
63852017-10-17 Yao Qi <yao.qi@linaro.org>
6386
6387 * Makefile.in: Remove one rule.
6388 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6389
e675d170
YQ
63902017-10-17 Yao Qi <yao.qi@linaro.org>
6391
6392 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6393 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6394
7eb4e0f9
YQ
63952017-10-17 Yao Qi <yao.qi@linaro.org>
6396
6397 * configure.srv: Rename arm.o with arch/arm.o.
6398
60d6cfc9
YQ
63992017-10-17 Yao Qi <yao.qi@linaro.org>
6400
6401 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6402 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6403 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6404 (arch-i386.o, arch-amd64.o): Remove rules.
6405 (arch/%.o): New rule.
6406 Update POSTCOMPILE and COMPILE.pre.
6407 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6408 * configure: Re-generated.
6409 * configure.srv: Replace arch-i386.o with arch/i386.o.
6410 Replace arch-amd64.o with arch/amd64.o.
6411
5bfda255
YQ
64122017-10-16 Yao Qi <yao.qi@linaro.org>
6413
6414 * configure: Regenerated.
6415
9c80ecd6
SM
64162017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6417
6418 * inferiors.h: (struct inferior_list): Remove.
6419 (struct inferior_list_entry); Remove.
6420 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6421 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6422 get_first_inferior): Remove.
6423 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6424 find_inferior_id, find_inferior_in_random): Change signature.
6425 * inferiors.c (all_threads): Change type to
6426 std::list<thread_info *>.
6427 (get_thread): Remove macro.
6428 (find_inferior, find_inferior_id): Change signature, implement
6429 using find_thread.
6430 (find_inferior_in_random): Change signature, implement using
6431 find_thread_in_random.
6432 (for_each_inferior, for_each_inferior_with_data): Change
6433 signature, implement using for_each_thread.
6434 (add_inferior_to_list, remove_inferior): Remove.
6435 (add_thread, get_first_thread, thread_of_pid,
6436 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6437 (get_first_inferior, one_inferior_p, clear_inferior_list):
6438 Remove.
6439 (clear_inferiors, get_thread_process): Update.
6440 * gdbthread.h: Include <list>.
6441 (struct thread_info) <entry>: Remove field.
6442 <id>: New field.
6443 (all_threads): Change type to std::list<thread_info *>.
6444 (get_first_inferior): Add doc.
6445 (find_thread, for_each_thread, find_thread_in_random): New
6446 functions.
6447 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6448 * linux-arm-low.c (update_registers_callback): Update.
6449 * linux-low.c (second_thread_of_pid_p): Update.
6450 (kill_one_lwp_callback, linux_detach_lwp_callback,
6451 delete_lwp_callback, status_pending_p_callback, same_lwp,
6452 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6453 iterate_over_lwps, not_stopped_callback,
6454 resume_stopped_resumed_lwps, count_events_callback,
6455 select_singlestep_lwp_callback, select_event_lwp_callback,
6456 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6457 suspend_and_send_sigstop_callback, wait_for_sigstop,
6458 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6459 lwp_running, linux_set_resume_request, resume_status_pending_p,
6460 need_step_over_p, start_step_over, linux_resume_one_thread,
6461 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6462 reset_lwp_ptrace_options_callback): Update.
6463 * linux-mips-low.c (update_watch_registers_callback): Update.
6464 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6465 Update.
6466 (free_register_cache_thread_one): Remove.
6467 (regcache_release): Update.
6468 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6469 handle_qxfer_threads_worker): Update.
6470 (handle_query): Update, use list iterator.
6471 (visit_actioned_threads, handle_pending_status,
6472 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6473 clear_pending_status_callback, set_pending_status_callback,
6474 find_status_pending_thread_callback, handle_status,
6475 process_serial_event): Update.
6476 * target.c (thread_search_callback): Update.
6477 * thread-db.c (thread_db_get_tls_address): Update.
6478 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6479 Update.
6480 * win32-i386-low.c (update_debug_registers_callback): Update.
6481 * win32-low.c (delete_thread_info, child_delete_thread,
6482 continue_one_thread, suspend_one_thread,
6483 get_child_debug_event): Adjust.
6484
9179355e
SM
64852017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6486
6487 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6488 * inferiors.h: Include <list>.
6489 (struct process_info) <entry>: Remove field.
6490 <pid>: New field.
6491 (pid_of): Change macro to function.
6492 (ptid_of, lwpid_of): Remove macro.
6493 (all_processes): Change type to std::list<process_info *>.
6494 (ALL_PROCESSES): Remove macro.
6495 (for_each_process, find_process): New function.
6496 * inferiors.c (all_processes): Change type to
6497 std::list<process_info *>.
6498 (find_thread_process): Adjust.
6499 (add_process): Likewise.
6500 (remove_process): Likewise.
6501 (find_process_pid): Likewise.
6502 (get_first_process): Likewise.
6503 (started_inferior_callback): Remove.
6504 (have_started_inferiors_p): Adjust.
6505 (attached_inferior_callback): Remove.
6506 (have_attached_inferiors_p): Adjust.
6507 * linux-low.c (check_zombie_leaders): Likewise.
6508 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6509 (x86_linux_update_xmltarget): Adjust.
6510 * server.c (handle_query): Likewise.
6511 (gdb_reattached_process): Remove.
6512 (handle_status): Adjust.
6513 (kill_inferior_callback): Likewise.
6514 (detach_or_kill_inferior): Remove.
6515 (print_started_pid): Likewise.
6516 (print_attached_pid): Likewise.
6517 (detach_or_kill_for_exit): Update.
6518 (process_serial_event): Likewise.
6519 * linux-arm-low.c (arm_new_fork): Likewise.
6520
c9cb8905
SM
65212017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6522
6523 * dll.h: Include <list>.
6524 (struct dll_info): Add constructor.
6525 <entry>: Remove field.
6526 (all_dlls): Change type to std::list<dll_info>.
6527 * dll.c: Include <algorithm>.
6528 (get_dll): Remove macro.
6529 (all_dlls): Change type to std::list<dll_info *>.
6530 (free_one_dll): Remove.
6531 (match_dll): Likewise.
6532 (loaded_dll): Adjust.
6533 (unloaded_dll): Adjust to all_dlls type change, use
6534 std::find_if. Inline code from match_dll.
6535 (clear_dlls): Adjust to all_dlls type change.
6536 * server.c (emit_dll_description): Remove.
6537 (handle_qxfer_libraries): Adjust to all_dlls type change,
6538 integrate emit_dll_description's functionality.
6539
04ec7890
SM
65402017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6541
6542 * linux-low.h (struct linux_target_ops) <delete_process>: New
6543 field.
6544 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6545 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6546 (struct linux_target_ops): Add delete_process callback.
6547 * linux-arm-low.c (arm_delete_process): New.
6548 (struct linux_target_ops): Add delete_process callback.
6549 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6550 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6551 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6552 * linux-mips-low.c (mips_linux_delete_process): New.
6553 (struct linux_target_ops): Add delete_process callback.
6554 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6555 * linux-s390-low.c (struct linux_target_ops): Likewise.
6556 * linux-sh-low.c (struct linux_target_ops): Likewise.
6557 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6558 * linux-tile-low.c (struct linux_target_ops): Likewise.
6559 * linux-x86-low.c (x86_linux_delete_process): New.
6560 (struct linux_target_ops): Add delete_process callback.
6561 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6562
466eecee
SM
65632017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6564
6565 * linux-aarch64-low.c (the_low_target): Add thread delete
6566 callback.
6567 * linux-arm-low.c (arm_delete_thread): New function.
6568 (the_low_target): Add thread delete callback.
6569 * linux-bfin-low.c (the_low_target): Likewise.
6570 * linux-crisv32-low.c (the_low_target): Likewise.
6571 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6572 set.
6573 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6574 field.
6575 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6576 * linux-mips-low.c (mips_linux_delete_thread): New function.
6577 (the_low_target): Add thread delete callback.
6578 * linux-ppc-low.c (the_low_target): Likewise.
6579 * linux-s390-low.c (the_low_target): Likewise.
6580 * linux-sh-low.c (the_low_target): Likewise.
6581 * linux-tic6x-low.c (the_low_target): Likewise.
6582 * linux-tile-low.c (the_low_target): Likewise.
6583 * linux-x86-low.c (the_low_target): Likewise.
6584 * linux-xtensa-low.c (the_low_target): Likewise.
6585
b79f7801
YZ
65862017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6587
6588 * win32-low.c: Include "common-inferior.h".
6589
bc3b087d
SDJ
65902017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6591
6592 * inferiors.c (set_inferior_cwd): New function.
6593 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6594 (handle_query): Inform that QSetWorkingDir is supported.
6595 * win32-low.c (create_process): Pass the inferior's cwd to
6596 CreateProcess.
6597
d092c5a2
SDJ
65982017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6599
6600 * inferiors.c (current_inferior_cwd): New global variable.
6601 (get_inferior_cwd): New function.
6602 * inferiors.h (struct process_info) <cwd>: New field.
6603
7da0a886
SDJ
66042017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6605
6606 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6607 (OBS): Add gdb_tilde_expand.o.
6608
289a6840
SM
66092017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6610
6611 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6612 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6613
256642e8
PA
66142017-09-29 Pedro Alves <palves@redhat.com>
6615
6616 * ax.c (gdb_parse_agent_expr): Constify.
6617 * ax.h (gdb_parse_agent_expr): Constify.
6618 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6619 Constify.
6620 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6621 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6622 * remote-utils.h (read_ptid): Constify.
6623 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6624 (process_point_options, process_serial_event): Constify.
6625 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6626 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6627 (cmd_qtbuffer): Constify.
6628
5b9ca4d4
PA
66292017-09-29 Pedro Alves <palves@redhat.com>
6630
6631 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6632 fails.
6633
94c207e0
PA
66342017-09-29 Pedro Alves <palves@redhat.com>
6635
6636 * linux-low.c (handle_extended_wait): Pass parent thread instead
6637 of process to thread_db_notice_clone.
6638 * linux-low.h (thread_db_notice_clone): Replace parent process
6639 parameter with parent thread parameter.
6640 * thread-db.c (find_one_thread): Add comment.
6641 (thread_db_notice_clone): Replace parent process parameter with
6642 parent thread parameter. Temporarily switch to the parent thread.
6643
75352e28
SDJ
66442017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6645
6646 * gdbthread.h: Include "common-gdbthread.h".
6647 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6648 "if" when validating the ptid.
6649 * remote-utils.c: Include "gdbthread.h".
6650 (prepare_resume_reply): Use "switch_to_thread".
6651 * target.c (done_accessing_memory): Likewise.
6652
ad339634
AA
66532017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6654
6655 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6656 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6657 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6658 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6659 s390x-gs-linux64-ipa.o to ipa_obj.
6660 * linux-s390-low.c (HWCAP_S390_GS): New define.
6661 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6662 New functions.
6663 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6664 (s390_arch_setup): Check for guarded-storage support and choose
6665 appropriate tdesc.
6666 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6667 init_registers_s390x_gs_linux64.
6668 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6669 enum value.
6670 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6671 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6672
cc4d742f
SM
66732017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6674
6675 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6676
f6327dcb
KB
66772017-09-21 Kevin Buettner <kevinb@redhat.com>
6678
6679 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6680 (thread_db_thread_handle): Declare.
6681 * linux-low.c (linux_target_ops): Initialize thread_handle.
6682 * server.c (handle_qxfer_threads_worker): Add support for
6683 "handle" attribute.
6684 * target.h (struct target_ops): Add new function pointer,
6685 thread_handle.
6686 (target_thread_handle): Define.
6687 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6688 field in lwp.
6689 (thread_db_thread_handle): New function.
6690
86299109
KB
66912017-09-21 Kevin Buettner <kevinb@redhat.com>
6692
6693 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6694 * linux-low.h (thread_db_notice_clone): Declare.
6695 * thread-db.c (thread_db_notice_clone): New function.
6696
f557a88a
PA
66972017-09-21 Pedro Alves <palves@redhat.com>
6698
6699 * server.c (gdb_read_memory, handle_status, process_serial_event)
6700 (handle_serial_event, handle_target_event): Adjust to
6701 set_desired_thread prototype change.
6702 * target.c (set_desired_thread): Remove 'use_general' parameter
6703 and adjust.
6704 * target.h (set_desired_thread): Remove 'use_general' parameter.
6705
223ffa71
TT
67062017-09-20 Tom Tromey <tom@tromey.com>
6707
6708 * target.c (target_terminal::terminal_state): Define.
6709 (target_terminal::init): Rename from target_terminal_init.
6710 (target_terminal::inferior): Rename from
6711 target_terminal_inferior.
6712 (target_terminal::ours): Rename from target_terminal_ours.
6713 (target_terminal::ours_for_output, target_terminal::info): New.
6714
04fd3ba9
SM
67152017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6716
6717 * server.c (accumulate_file_name_length): Remove.
6718 (emit_dll_description): Adjust to std::string change.
6719 (handle_qxfer_libraries): Use std::string to hold document.
6720
5e187554
SM
67212017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6722
6723 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6724 return type of xml_escape_text.
6725 * server.c (emit_dll_description): Likewise.
6726
1526853e
SM
67272017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6728
6729 * server.c (captured_main): Accept argument for --selftest.
6730 Update run_tests call.
6731 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6732 when registering selftests.
6733
c4dfafab
SDJ
67342017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6735
6736 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6737 instead of "VEC" for "target_desc.reg_defs".
6738 (regcache_cpy): Likewise.
6739 (registers_to_string): Likewise.
6740 (registers_from_string): Likewise.
6741 (find_regno): Likewise.
6742 (supply_regblock): Likewise.
6743 (regcache_raw_read_unsigned): Likewise.
6744 * tdesc.c (init_target_desc): Likewise.
6745 (tdesc_create_reg): Likewise.
6746 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6747 (struct target_desc) <reg_defs>: Convert to "std::vector".
6748 (target_desc): Do not initialize "reg_defs".
6749 (~target_desc): Update code to use "std::vector" instead of "VEC"
6750 for "target_desc.reg_defs".
6751 (operator==): Likewise.
6752
124aceb4
SM
67532017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6754
6755 * inferiors.h (thread_to_gdb_id): Remove.
6756 * inferiors.c (thread_to_gdb_id): Remove.
6757 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6758 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6759 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6760 Likewise.
6761 * nto-low.c (nto_fetch_registers, nto_store_registers,
6762 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6763
96cde54f
SM
67642017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6765
6766 * inferiors.h (gdb_id_to_thread_id): Remove.
6767 * inferiors.c (gdb_id_to_thread_id): Remove.
6768 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6769 removal. Move pid declaration closer to where it's used.
6770
e8ca139e
SM
67712017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6772
6773 * server.c (handle_detach): New function.
6774 (process_serial_event): Move code out, call handle_detach.
6775
f8a4e119
SM
67762017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6777
6778 * server.c (require_running): Rename to ...
6779 (require_running_or_return): ... this ...
6780 (require_running_or_break): ... and this.
6781 (handle_query, process_serial_event): Adjust.
6782
0eb0a407
SM
67832017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6784
6785 * linux-low.c (linux_set_resume_request): Remove unused
6786 variables.
6787
785922a5
SM
67882017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6789
6790 * server.c (first_thread_of): Remove.
6791 (process_serial_event): Replace usage of first_thread_of with
6792 find_any_thread_of_pid.
6793 * tracepoint.c (same_process_p): Remove.
6794 (gdb_agent_about_to_close): Replace usage of same_process_p with
6795 find_any_thread_of_pid.
6796 * linux-x86-low.c (same_process_callback): Remove.
6797 (x86_arch_setup_process_callback): Replace usage of
6798 same_process_callback with find_any_thread_of_pid.
6799 * thread-db.c (any_thread_of): Remove.
6800 (switch_to_process): Replace usage of any_thread_of with
6801 find_any_thread_of_pid.
6802 * inferiors.c (thread_pid_matches_callback): Remove.
6803 (find_thread_process): Adjust to use find_any_thread_of_pid.
6804
a059f00c
SDJ
68052017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6806
6807 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6808 with "!VEC_empty".
a059f00c 6809
cc397f3a
SDJ
68102017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6811
6812 * linux-low.c (handle_extended_wait): Use
6813 "allocate_target_description" instead of "XNEW".
6814 * linux-x86-low.c (initialize_low_arch): Likewise.
6815
22916b07
YQ
68162017-09-05 Yao Qi <yao.qi@linaro.org>
6817
6818 * configure.srv (srv_i386_regobj): Remove.
6819 (srv_amd64_regobj): Remove.
6820 (srv_regobj): Set it to "" for x86 non-linux targets.
6821 * linux-x86-tdesc.c (i386_linux_read_description):
6822 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6823 (init_registers_i386): Remove the declaration.
6824 (tdesc_i386): Remove the declaration.
6825 (lynx_i386_arch_setup): Call i386_create_target_description.
6826 * nto-x86-low.c: Likewise.
6827 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6828 [!__x86_64__]: include arch/i386.h.
6829 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6830
38602d55
YQ
68312017-09-05 Yao Qi <yao.qi@linaro.org>
6832
6833 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6834 i386/amd64-XXX-linux from it.
6835
44b886ff
YQ
68362017-09-05 Yao Qi <yao.qi@linaro.org>
6837
6838 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6839 false.
6840 (ipa_amd64_linux_regobj): Remove.
6841 (ipa_x32_linux_regobj): Remove.
6842
b4570e4b
YQ
68432017-09-05 Yao Qi <yao.qi@linaro.org>
6844
6845 * Makefile.in (arch-amd64.o): New rule.
6846 * configure.srv: Append arch-amd64.o.
6847 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6848 (get_ipa_tdesc): Call amd64_linux_read_description.
6849 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6850 and init_registers_amd64_XXX.
6851 * linux-x86-low.c (x86_linux_read_description): Call
6852 amd64_linux_read_description.
6853 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6854 (initialize_low_arch): Don't call init_registers_x32_XXX and
6855 init_registers_amd64_XXX.
6856 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6857 and tdesc_amd64_XXX.
6858 [__x86_64__] (amd64_tdesc_test): New function.
6859 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6860 and init_registers_amd64_XXX.
6861 * linux-x86-tdesc.c: Include arch/amd64.h.
6862 (xcr0_to_tdesc_idx): New function.
6863 (i386_linux_read_description): New function.
6864 (amd64_get_ipa_tdesc_idx): New function.
6865 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6866 (amd64_get_ipa_tdesc): Declare.
6867
d1f28ea2
YQ
68682017-09-05 Yao Qi <yao.qi@linaro.org>
6869
6870 * configure.srv (srv_i386_linux_xmlfiles): Remove
6871 i386/i386-XXX-linux.xml from it.
6872
25a93583
YQ
68732017-09-05 Yao Qi <yao.qi@linaro.org>
6874
6875 * configure.srv: Set srv_i386_linux_regobj empty if $development
6876 is false.
6877 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6878 initialize_low_tdesc.
6879 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6880 with #if initialize_low_tdesc.
6881 * linux-x86-tdesc-selftest.c: New file.
6882 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6883
5f035c07
YQ
68842017-09-05 Yao Qi <yao.qi@linaro.org>
6885
6886 * Makefile.in (arch-i386.o): New rule.
6887 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6888 (x86_64-*-linux*): Likewise.
6889 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6890 include arch/i386.h.
6891 (i386_linux_read_description): Remove code and call
6892 i386_create_target_description.
6893 * tdesc.c (allocate_target_description): New function.
6894 * tdesc.h (set_tdesc_architecture): Remove declaration.
6895 (set_tdesc_osabi): Likewise.
6896
0abe8a89
YQ
68972017-09-05 Yao Qi <yao.qi@linaro.org>
6898
6899 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6900 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6901 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6902 .xmltarget.
6903 * server.c (get_features_xml): Call tdesc_get_features_xml.
6904 * tdesc.c (set_tdesc_architecture): New function.
6905 (set_tdesc_osabi): New function.
6906 (tdesc_get_features_xml): New function.
6907 (tdesc_create_feature): Add an argument.
6908 * tdesc.h (struct target_desc) <features>: New field.
6909 <arch, osabi>: New field.
6910 (~target_desc): xfree features, arch, and osabi.
6911 (target_desc::oerator==): Don't compare .xmltarget.
6912 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6913 (set_tdesc_osabi): Likewise.
6914 (tdesc_get_features_xml): Likewise.
6915
0a188386
YQ
69162017-09-05 Yao Qi <yao.qi@linaro.org>
6917
6918 * linux-x86-tdesc.c: Include selftest.h.
6919 (i386_tdesc_test): New function.
6920 (initialize_low_tdesc): Call selftests::register_test.
6921 * tdesc.h: Include regdef.h.
6922 (target_desc): Override operator == and !=.
6923
f49ff000
YQ
69242017-09-05 Yao Qi <yao.qi@linaro.org>
6925
6926 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6927 (ipa_obj): Likewise.
6928 * linux-i386-ipa.c: Include common/x86-xstate.h
6929 (get_ipa_tdesc): Call i386_linux_read_description.
6930 (initialize_low_tracepoint): Don't call init_registers_XXX
6931 functions, call initialize_low_tdesc instead.
6932 * linux-x86-low.c (x86_linux_read_description): Call
6933 i386_linux_read_description.
6934 (initialize_low_arch): Don't call init_registers_i386_XXX
6935 functions, call initialize_low_tdesc.
6936 * linux-x86-tdesc.c: New file.
6937 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6938 (i386_get_ipa_tdesc_idx): Declare.
6939 (i386_get_ipa_tdesc): Declare.
6940 (initialize_low_tdesc): Declare.
6941
2b68ef2f
YQ
69422017-09-05 Yao Qi <yao.qi@linaro.org>
6943
6944 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6945 instead of 0.
6946
f7000548
YQ
69472017-09-05 Yao Qi <yao.qi@linaro.org>
6948
6949 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6950 * regcache.c (get_thread_regcache): Use VEC_length.
6951 (init_register_cache): Likewise.
6952 (regcache_cpy): Likewise.
6953 (registers_to_string): Iterate reg_defs via VEC_iterate.
6954 (find_regno): Likewise.
6955 (find_register_by_number): Use VEC_index.
6956 (register_size): Call find_register_by_number.
6957 (register_data): Call find_register_by_number.
6958 (supply_regblock): Use VEC_length.
6959 (regcache_raw_read_unsigned): Likewise.
6960 * tdesc.c (init_target_desc): Iterate reg_defs via
6961 VEC_iterate.
6962 (default_description): Update initializer.
6963 (copy_target_description): Don't update field num_registers.
6964 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6965 <num_registers>: Remove.
6966
50a421ac
SM
69672017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6968
6969 * Makefile.in (.SECONDARY): Define target.
6970
23fdd69e
SM
69712017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6972
6973 * linux-low.c (linux_wait_1): Adjust.
6974 * server.c (queue_stop_reply_callback): Adjust.
6975
0a2dde4a
SDJ
69762017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6977
6978 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6979 QEnvironmentUnset and QEnvironmentReset packets.
6980 (handle_query): Inform remote that QEnvironmentHexEncoded,
6981 QEnvironmentUnset and QEnvironmentReset are supported.
6982
6afd337d
SM
69832017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6984
6985 * inferiors.h (inferior_target_data): Rename to ...
6986 (thread_target_data): ... this.
6987 (inferior_regcache_data): Rename to ...
6988 (thread_regcache_data): ... this.
6989 (set_inferior_regcache_data): Rename to ...
6990 (set_thread_regcache_data): ... this.
6991 * inferiors.c (inferior_target_data): Rename to ...
6992 (thread_target_data): ... this.
6993 (inferior_regcache_data): Rename to ...
6994 (thread_regcache_data): ... this.
6995 (set_inferior_regcache_data): Rename to ...
6996 (set_thread_regcache_data): ... this.
6997 (free_one_thread): Update.
6998 * linux-low.h (get_thread_lwp): Update.
6999 * regcache.c (get_thread_regcache): Update.
7000 (regcache_invalidate_thread): Update.
7001 (free_register_cache_thread): Update.
7002 * win32-i386-low.c (update_debug_registers_callback): Update.
7003 (win32_get_current_dr): Update.
7004 * win32-low.c (thread_rec): Update.
7005 (delete_thread_info): Update.
7006 (continue_one_thread): Update.
7007 (suspend_one_thread): Update.
7008
a160cc46
SM
70092017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7010
7011 * inferiors.c (set_inferior_target_data): Remove.
7012 * inferiors.h (set_inferior_target_data): Remove.
7013
6d580b63
YQ
70142017-08-18 Yao Qi <yao.qi@linaro.org>
7015
7016 * Makefile.in (OBS): Add selftest.o.
7017 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7018 * configure, config.in: Re-generated.
7019 * server.c: Include common/sefltest.h.
7020 (captured_main): Handle option --selftest.
7021
f5a29eb0
YQ
70222017-08-09 Yao Qi <yao.qi@linaro.org>
7023
7024 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7025 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7026 i386-avx-mpx.o and i386-mmx.o.
7027 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7028 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7029 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7030 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7031 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7032 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7033 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7034 i386/amd64-avx-mpx.xml.
7035
57757c2f
YQ
70362017-08-09 Yao Qi <yao.qi@linaro.org>
7037
7038 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7039 and x32-avx-avx512.o.
7040 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7041 i386/x32-avx-avx512.xml.
7042
229d26fc
SM
70432017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7044
7045 * tracepoint.h (enum class fast_tpoint_collect_result): New
7046 enumeration.
7047 (fast_tracepoint_collecting): Change return type to
7048 fast_tpoint_collect_result.
7049 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7050 * linux-low.h: Include tracepoint.h.
7051 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7052 fast_tpoint_collect_result.
7053 * linux-low.c (handle_tracepoints): Adjust.
7054 (linux_fast_tracepoint_collecting): Change return type to
7055 fast_tpoint_collect_result.
7056 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7057 linux_wait_1, stuck_in_jump_pad_callback,
7058 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7059 proceed_one_lwp): Adjust to type change.
7060
2e1e43e1
YQ
70612017-07-10 Yao Qi <yao.qi@linaro.org>
7062
7063 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7064
adc764e7
YQ
70652017-06-29 Yao Qi <yao.qi@linaro.org>
7066
7067 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7068 Remove.
7069 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7070
a206891a
SM
70712017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7072
7073 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7074
9a6c7d9c
SDJ
70752017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7076
7077 * linux-low.c (linux_create_inferior): Adjust code to access the
7078 environment information via 'gdb_environ' class.
7079 * lynx-low.c (lynx_create_inferior): Likewise.
7080 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7081 (get_environ): Return a pointer to 'our_environ'.
7082 (captured_main): Initialize 'our_environ'.
7083 * server.h (get_environ): Adjust prototype.
7084 * spu-low.c (spu_create_inferior): Adjust code to access the
7085 environment information via 'gdb_environ' class.
7086
ae3e2ccf
SM
70872017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7088
7089 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7090 usage of "register" keyword.
7091
3e019bdc
SM
70922017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7093
7094 * configure: Re-generate.
7095
8465943a
SM
70962017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7097
7098 * configure: Re-generate.
7099
cf0dd6f0
SM
71002017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7101
7102 * Makefile.in (COMPILE.pre): Add "-x c++".
7103
9845682b
SDJ
71042017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7105
7106 * fork-child.c: Conditionally include <signal.h>.
7107
aefd8b33
SDJ
71082017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7109
7110 * server.c (handle_general_set): Handle new packet
7111 "QStartupWithShell".
7112 (handle_query): Add "QStartupWithShell" to the list of supported
7113 packets.
7114 (gdbserver_usage): Add help text explaining the
7115 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7116 options.
7117 (captured_main): Recognize and act upon the presence of the new
7118 CLI options.
7119
2090129c
SDJ
71202017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7121 Pedro Alves <palves@redhat.com>
7122
7123 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7124 * configure: Regenerate.
7125 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7126 "fork-inferior.o".
7127 (i[34567]86-*-lynxos*): Likewise.
7128 (spu*-*-*): Likewise.
7129 * fork-child.c: New file.
7130 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7131 and "environ.h".
7132 (linux_ptrace_fun): New function.
7133 (linux_create_inferior): Adjust function prototype to reflect
7134 change on "target.h". Adjust function code to use
7135 "fork_inferior".
7136 (linux_request_interrupt): Delete "signal_pid".
7137 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7138 (lynx_ptrace_fun): New function.
7139 (lynx_create_inferior): Adjust function prototype to reflect
7140 change on "target.h". Adjust function code to use
7141 "fork_inferior".
7142 * nto-low.c (nto_create_inferior): Adjust function prototype and
7143 code to reflect change on "target.h". Update comments.
7144 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7145 "common-terminal.h" and "environ.h".
7146 (terminal_fd): Moved to fork-child.c.
7147 (old_foreground_pgrp): Likewise.
7148 (restore_old_foreground_pgrp): Likewise.
7149 (last_status): Make it global.
7150 (last_ptid): Likewise.
7151 (our_environ): New variable.
7152 (startup_with_shell): Likewise.
7153 (program_name): Likewise.
7154 (program_argv): Rename to...
7155 (program_args): ...this.
7156 (wrapper_argv): New variable.
7157 (start_inferior): Delete function.
7158 (get_exec_wrapper): New function.
7159 (get_exec_file): Likewise.
7160 (get_environ): Likewise.
7161 (prefork_hook): Likewise.
7162 (post_fork_inferior): Likewise.
7163 (postfork_hook): Likewise.
7164 (postfork_child_hook): Likewise.
7165 (handle_v_run): Update code to deal with arguments coming from the
7166 remote host. Update calls from "start_inferior" to
7167 "create_inferior".
7168 (captured_main): Likewise. Initialize environment variable. Call
7169 "have_job_control".
7170 * server.h (post_fork_inferior): New prototype.
7171 (get_environ): Likewise.
7172 (last_status): Declare.
7173 (last_ptid): Likewise.
7174 (signal_pid): Likewise.
7175 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7176 (spu_ptrace_fun): New function.
7177 (spu_create_inferior): Adjust function prototype to reflect change
7178 on "target.h". Adjust function code to use "fork_inferior".
7179 * target.c (target_terminal_init): New function.
7180 (target_terminal_inferior): Likewise.
7181 (target_terminal_ours): Likewise.
7182 * target.h: Include <vector>.
7183 (struct target_ops) <create_inferior>: Update prototype.
7184 (create_inferior): Update macro.
7185 * utils.c (gdb_flush_out_err): New function.
7186 * win32-low.c (win32_create_inferior): Adjust function prototype
7187 and code to reflect change on "target.h".
7188
043a4934
SDJ
71892017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7190
7191 * inferiors.c (switch_to_thread): New function.
7192
15652511
SDJ
71932017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7194
7195 * Makefile.in (SFILE): Add "common/job-control.c".
7196 (OBS): Add "job-control.o".
7197
21ea5acd
SDJ
71982017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7199
7200 * Makefile: Remove "@host_makefile_frag@".
7201
e13cb306
PA
72022017-05-05 Pedro Alves <palves@redhat.com>
7203
7204 * configure: Regenerate.
7205
c94fee56
SDJ
72062017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7207
7208 * configure: Regenerate.
7209
a0ff9e1a
SM
72102017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7211
7212 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7213 software_single_step change of return type to
7214 std::vector<CORE_ADDR>.
7215 * linux-low.c (install_software_single_step_breakpoints):
7216 Likewise.
7217 * linux-low.h (install_software_single_step_breakpoints):
7218 Likewise.
7219
be628ab8
SDJ
72202017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7221
7222 * remote-utils.c: Include "gdb_termios.h" instead of
7223 "terminal.h".
7224 * terminal.h: Delete file.
7225
7c5ded6a
SDJ
72262017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7227
7228 * server.c: Include <vector>.
7229 <program_argv, wrapper_argv>: Convert to std::vector.
7230 (start_inferior): Rewrite function to use C++.
7231 (handle_v_run): Likewise. Update code that calculates the argv
7232 based on the vRun packet; use C++.
7233 (captured_main): Likewise.
7234
436252de
SM
72352017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7236
7237 * server.c (handle_v_cont): Initialize thread_resume::thread
7238 with null_ptid.
7239
9bf2a700
PA
72402017-04-05 Pedro Alves <palves@redhat.com>
7241
7242 * configure: Regenerate.
7243
a121b7c1
PA
72442017-04-05 Pedro Alves <palves@redhat.com>
7245
7246 * gdbreplay.c (sync_error): Constify.
7247 * linux-x86-low.c (push_opcode): Constify.
7248
21c8a587
PA
72492017-04-05 Pedro Alves <palves@redhat.com>
7250
7251 * win32-low.c (get_child_debug_event)
7252 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7253 Report TARGET_WAITKIND_SPURIOUS instead.
7254
fb32b4f7
PA
72552017-04-05 Pedro Alves <palves@redhat.com>
7256
e79be6e5
SM
7257 * remote-utils.c (remote_prepare, remote_open): Constify.
7258 * remote-utils.h (remote_prepare, remote_open): Constify.
7259 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7260
65dd1e59
SM
72612017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7262
7263 * Makefile.in (clean): Clear .deps.
7264
8fa5b777
SM
72652017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7266
7267 * .gitignore: Remove generated files, replace with wildcard.
7268 * (clean): Replace removal of generated files with wildcard.
7269 (version.c): Replace with...
7270 (version-generated.c): ...this.
7271 (xml-builtin.c): Replace with...
7272 (xml-builtin-generated.c): ...this.
7273 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7274 (%.c: *regformats*): Replace with...
7275 (%-generated.c: *regformats*): ...this.
7276
a12e714b
MF
72772017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7278
7279 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7280 (xtensa_fill_gregset): Call collect_register_by_name for
7281 threadptr register.
7282 (xtensa_store_gregset): Call supply_register_by_name for
7283 threadptr register.
7284
1a09b50a
MF
72852017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7286
7287 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7288 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7289 (xtensa_store_gregset): Call supply_register for all registers in
7290 a0_regnum..a0_regnum + C0_NREGS range.
7291
1a01e7c6
SM
72922017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7293
7294 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7295 (ax-ipa.o: ax.c): Remove.
7296 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7297 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7298 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7299 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7300 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7301
36bc18a8
SM
73022017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7303
7304 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7305 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7306 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7307 (errors-ipa.o: ../common/errors.c): Remove.
7308 (format-ipa.o: ../common/format.c): Remove.
7309 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7310
a8ebe3d5
SM
73112017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7312
7313 * Makefile.in (%-ipa.o: %.c): New rule.
7314 (tracepoint-ipa.o: tracepoint.c): Remove.
7315 (utils-ipa.o: utils.c): Remove.
7316 (remote-utils-ipa.o: remote-utils.c): Remove.
7317 (regcache-ipa.o: regcache.c): Remove.
7318 (i386-linux-ipa.o: i386-linux.c): Remove.
7319 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7320 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7321 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7322 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7323 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7324 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7325 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7326 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7327 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7328 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7329 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7330 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7331 (aarch64-ipa.o: aarch64.c): Remove.
7332 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7333 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7334 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7335 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7336 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7337 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7338 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7339 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7340 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7341 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7342 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7343 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7344 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7345 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7346 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7347 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7348 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7349 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7350 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7351 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7352 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7353 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7354 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7355 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7356 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7357 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7358 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7359 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7360 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7361 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7362 (tdesc-ipa.o: tdesc.c): Remove.
7363 (x32-linux-ipa.o: x32-linux.c): Remove.
7364 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7365 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7366
50cfacb7
SM
73672017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7368
7369 * Makefile.in (%.o: ../arch/%.c): New rule.
7370 (arm.o: ../arch/arm.c): Remove.
7371 (arm-linux.o: ../arch/arm-linux.c): Remove.
7372 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7373 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7374
c5a22423
SM
73752017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7376
7377 * Makefile.in (%.o: ../nat/%.c): New rule.
7378 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7379 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7380 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7381 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7382 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7383 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7384 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7385 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7386 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7387 (linux-personality.o: ../nat/linux-personality.c): Remove.
7388 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7389 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7390 (x86-linux.o: ../nat/x86-linux.c): Remove.
7391 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7392 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7393
6bda016b
SM
73942017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7395
7396 * Makefile.in (%.o: ../common/%.c): New rule.
7397 (signals.o: ../common/signals.c): Remove.
7398 (print-utils.o: ../common/print-utils.c): Remove.
7399 (rsp-low.o: ../common/rsp-low.c): Remove.
7400 (common-utils.o: ../common/common-utils.c): Remove.
7401 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7402 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7403 (vec.o: ../common/vec.c): Remove.
7404 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7405 (xml-utils.o: ../common/xml-utils.c): Remove.
7406 (ptid.o: ../common/ptid.c): Remove.
7407 (buffer.o: ../common/buffer.c): Remove.
7408 (format.o: ../common/format.c): Remove.
7409 (filestuff.o: ../common/filestuff.c): Remove.
7410 (agent.o: ../common/agent.c): Remove.
7411 (errors.o: ../common/errors.c): Remove.
7412 (environ.o: ../common/environ.c): Remove.
7413 (common-debug.o: ../common/common-debug.c): Remove.
7414 (cleanups.o: ../common/cleanups.c): Remove.
7415 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7416 (fileio.o: ../common/fileio.c): Remove.
7417 (common-regcache.o: ../common/common-regcache.c): Remove.
7418 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7419 (new-op.o: ../common/new-op.c): Remove.
7420 (btrace-common.o: ../common/btrace-common.c): Remove.
7421
21122961
SM
74222017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7423
7424 * Makefile.in (%.o: ../target/%.c): New rule.
7425 (waitstatus.o: ../target/waitstatus.c): Remove.
7426
c362e621
SM
74272017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7428
7429 * Makefile.in
7430 (%.c: ../regformats/%.dat,
7431 (%.c: ../regformats/arm/%.dat,
7432 (%.c: ../regformats/i386/%.dat,
7433 (%.c: ../regformats/rs6000/%.dat): New rules.
7434 (aarch64.c): Remove.
7435 (reg-arm.c): Remove.
7436 (arm-with-iwmmxt.c): Remove.
7437 (arm-with-vfpv2.c): Remove.
7438 (arm-with-vfpv3.c): Remove.
7439 (arm-with-neon.c): Remove.
7440 (reg-bfin.c): Remove.
7441 (reg-cris.c): Remove.
7442 (reg-crisv32.c): Remove.
7443 (i386.c): Remove.
7444 (i386-linux.c): Remove.
7445 (i386-avx.c): Remove.
7446 (i386-avx-linux.c): Remove.
7447 (i386-avx-avx512.c): Remove.
7448 (i386-avx-avx512-linux.c): Remove.
7449 (i386-mpx.c): Remove.
7450 (i386-mpx-linux.c): Remove.
7451 (i386-avx-mpx-avx512-pku.c): Remove.
7452 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7453 (i386-avx-mpx.c): Remove.
7454 (i386-avx-mpx-linux.c): Remove.
7455 (i386-mmx.c): Remove.
7456 (i386-mmx-linux.c): Remove.
7457 (reg-ia64.c): Remove.
7458 (reg-m32r.c): Remove.
7459 (reg-m68k.c): Remove.
7460 (reg-cf.c): Remove.
7461 (mips-linux.c): Remove.
7462 (mips-dsp-linux.c): Remove.
7463 (mips64-linux.c): Remove.
7464 (mips64-dsp-linux.c): Remove.
7465 (nios2-linux.c): Remove.
7466 (powerpc-32.c): Remove.
7467 (powerpc-32l.c): Remove.
7468 (powerpc-altivec32l.c): Remove.
7469 (powerpc-cell32l.c): Remove.
7470 (powerpc-vsx32l.c): Remove.
7471 (powerpc-isa205-32l.c): Remove.
7472 (powerpc-isa205-altivec32l.c): Remove.
7473 (powerpc-isa205-vsx32l.c): Remove.
7474 (powerpc-e500l.c): Remove.
7475 (powerpc-64l.c): Remove.
7476 (powerpc-altivec64l.c): Remove.
7477 (powerpc-cell64l.c): Remove.
7478 (powerpc-vsx64l.c): Remove.
7479 (powerpc-isa205-64l.c): Remove.
7480 (powerpc-isa205-altivec64l.c): Remove.
7481 (powerpc-isa205-vsx64l.c): Remove.
7482 (s390-linux32.c): Remove.
7483 (s390-linux32v1.c): Remove.
7484 (s390-linux32v2.c): Remove.
7485 (s390-linux64.c): Remove.
7486 (s390-linux64v1.c): Remove.
7487 (s390-linux64v2.c): Remove.
7488 (s390-te-linux64.c): Remove.
7489 (s390-vx-linux64.c): Remove.
7490 (s390-tevx-linux64.c): Remove.
7491 (s390x-linux64.c): Remove.
7492 (s390x-linux64v1.c): Remove.
7493 (s390x-linux64v2.c): Remove.
7494 (s390x-te-linux64.c): Remove.
7495 (s390x-vx-linux64.c): Remove.
7496 (s390x-tevx-linux64.c): Remove.
7497 (tic6x-c64xp-linux.c): Remove.
7498 (tic6x-c64x-linux.c): Remove.
7499 (tic6x-c62x-linux.c): Remove.
7500 (reg-sh.c): Remove.
7501 (reg-sparc64.c): Remove.
7502 (reg-spu.c): Remove.
7503 (amd64.c): Remove.
7504 (amd64-linux.c): Remove.
7505 (amd64-avx.c): Remove.
7506 (amd64-avx-linux.c): Remove.
7507 (amd64-avx-avx512.c): Remove.
7508 (amd64-avx-avx512-linux.c): Remove.
7509 (amd64-mpx.c): Remove.
7510 (amd64-mpx-linux.c): Remove.
7511 (amd64-avx-mpx-avx512-pku.c): Remove.
7512 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7513 (amd64-avx-mpx.c): Remove.
7514 (amd64-avx-mpx-linux.c): Remove.
7515 (x32.c): Remove.
7516 (x32-linux.c): Remove.
7517 (x32-avx.c): Remove.
7518 (x32-avx-linux.c): Remove.
7519 (x32-avx-avx512.c): Remove.
7520 (x32-avx-avx512-linux.c): Remove.
7521 (reg-xtensa.c): Remove.
7522 (reg-tilegx.c): Remove.
7523 (reg-tilegx32.c): Remove.
7524
1672e0d9
SDJ
75252017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7526
7527 * Makefile.in (SFILES): Add "common/environ.c".
7528 (OBJS): Add "common/environ.h".
7529
239b6d10
WT
75302017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7531
7532 * configure.ac: Check if the fs_base and gs_base members of
7533 `struct user_regs_struct' exist.
7534 * config.in: Regenerated.
7535 * configure: Likewise.
7536
694b382c
AT
75372017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7538
7539 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7540 target_read_memory.
7541 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7542 (get_next_pcs_syscall_next_pc): Likewise.
7543
7dc53023
LM
75442016-12-23 Luis Machado <lgustavo@codesourcery.com>
7545
7546 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7547 * nto-x86-low.c: Likewise.
7548
ad02e4fe
SM
75492016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7550
7551 * Makefile.in: Include disable-implicit-rules.mk.
7552
dcb07cfa
PA
75532016-11-23 Pedro Alves <palves@redhat.com>
7554
7555 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7556 (debug_vprintf): Use std::chrono::steady_clock instead of
7557 gettimeofday. Use '.' instead of ':'.
7558 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7559 (get_timestamp): Use std::chrono::steady_clock instead of
7560 gettimeofday.
7561
8629c02c
SM
75622016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7563
7564 * Makefile.in: Fix whitespace formatting.
7565
b593ecca
SM
75662016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7567
7568 * Makefile.in (SFILES, OBS): Flatten list and order
7569 alphabetically.
7570
9986ba08
PA
75712016-11-23 Pedro Alves <palves@redhat.com>
7572
7573 * event-loop.c (handle_file_event): Use warning.
7574 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7575 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7576 Use warning.
7577
4eefa7bc
PA
75782016-11-23 Pedro Alves <palves@redhat.com>
7579
7580 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7581 output.
7582 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7583 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7584 debug_printf and debug_flush for debug output.
7585 * server.c (handle_general_set): Likewise.
7586 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7587 output.
7588
5443506e
SM
75892016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7590
7591 * Makefile.in (.c.o): Replace rule with ...
7592 (%.o: %.c): ... this one.
7593
3b165252
SM
75942016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7595
7596 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7597 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7598 make.
7599 * configure.ac: Remove checks for the make program.
7600 * configure: Re-generate.
7601
0bcda685
PA
76022016-10-28 Pedro Alves <palves@redhat.com>
7603
7604 * Makefile.in (CXX_DIALECT): Get from configure.
7605 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7606 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7607 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7608 * config.in: Regenerate.
7609 * configure: Regenerate.
7610
c3805894
YQ
76112016-10-27 Yao Qi <yao.qi@linaro.org>
7612
7613 * linux-low.c (linux_supports_range_stepping): Return true if
7614 can_software_single_step return true.
7615
89342618
YQ
76162016-10-27 Yao Qi <yao.qi@linaro.org>
7617
7618 * inferiors.c (find_inferior_in_random): New function.
7619 * inferiors.h (find_inferior_in_random): Declare.
7620 * linux-low.c (linux_wait_for_event_filtered): Call
7621 find_inferior_in_random instead of find_inferior.
7622
e3652c84
YQ
76232016-10-27 Yao Qi <yao.qi@linaro.org>
7624
7625 * linux-low.c (linux_wait_1): If single-step breakpoints are
7626 inserted, remove them.
7627
5a04c4cf
PA
76282016-10-26 Pedro Alves <palves@redhat.com>
7629
7630 * linux-low.c (handle_extended_wait): Link parent/child fork
7631 threads.
7632 (linux_wait_1): Unlink them.
7633 (linux_set_resume_request): Ignore resume requests for
7634 already-resumed and unhandled fork child threads.
7635 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7636 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7637 New functions.
7638 (handle_v_requests) <vCont>: Don't call require_running.
7639 * server.h (in_queued_stop_replies): New declaration.
7640
cb93dc7f
YQ
76412016-10-24 Yao Qi <yao.qi@linaro.org>
7642
7643 PR server/20733
7644 * linux-aarch64-low.c (append_insns): Cast the return value to
7645 'uint32_t *'.
7646
a1078bea
YQ
76472016-10-10 Yao Qi <yao.qi@linaro.org>
7648
7649 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7650
1fb77080
SDJ
76512016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7652
7653 * target.c (target_supports_multi_process): New function, moved
7654 from...
7655 * target.h (target_supports_multi_process): ... here. Remove
7656 macro.
7657
39b5a3b9
TT
76582016-10-05 Tom Tromey <tom@tromey.com>
7659
7660 PR remote/20655:
7661 * tracepoint.c (handle_tracepoint_bkpts): Check
7662 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7663
c1d0b70a
YQ
76642016-10-05 Yao Qi <yao.qi@linaro.org>
7665
7666 * configure.srv: Update the path of arm-*.xml files.
7667
0a69eedb
YQ
76682016-10-05 Terry Guo <terry.guo@arm.com>
7669 Yao Qi <yao.qi@linaro.org>
7670
7671 * Makefile.in: Adjust the path of rules.
7672 * configure.srv: Update the path of xml files.
7673 * regformats/arm-with-iwmmxt.dat: Regenerated.
7674 * regformats/arm-with-neon.dat: Likewise.
7675 * regformats/arm-with-vfpv2.dat: Likewise.
7676 * regformats/arm-with-vfpv3.dat Likewise.
7677
17e16485
YQ
76782016-09-30 Yao Qi <yao.qi@linaro.org>
7679
7680 PR gdbserver/20627
7681 * target.c (target_stop_and_wait): Don't call
7682 target_continue_no_signal, use resume_stop instead.
7683
edeeb602
YQ
76842016-09-26 Yao Qi <yao.qi@linaro.org>
7685
7686 * linux-low.c (linux_wait_1): Call debug_exit.
7687
503b1c39
PA
76882016-09-23 Pedro Alves <palves@redhat.com>
7689
7690 * Makefile.in (SFILES): Add common/new-op.c.
7691 (OBS): Add common/new-op.o.
7692 (new-op.o): New rule.
7693
74172ecf
SM
76942016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7695
7696 * .gitinore: Ignore more files.
7697
fc6cda2e
YQ
76982016-09-21 Yao Qi <yao.qi@linaro.org>
7699
7700 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7701 23.
7702
bc1e6c81
SDJ
77032016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7704
7705 * server.c (start_inferior): Call target_mourn_inferior instead of
7706 mourn_inferior; pass ptid_t argument to it.
7707 (resume): Likewise.
7708 (handle_target_event): Likewise.
7709 * target.c (target_mourn_inferior): New function.
7710 * target.h (mourn_inferior): Delete macro.
7711
0e00e962
AA
77122016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7713
7714 * linux-low.c (lwp_is_stepping): New function.
7715
1d8cb77d
CL
77162016-09-06 Carl Love <cel@us.ibm.com>
7717
7718 * server.c (start_inferior): Fixed comment, requested comment change
7719 didn't get updated correctly. Removed reference to ptrace () call as
7720 it is only true on Linux systems.
7721
7313bced
CL
77222016-09-06 Carl Love <cel@us.ibm.com>
7723
7724 * server.c (start_inferior): Do not call
7725 function target_post_create_inferior () if the
7726 inferior process has already exited.
7727
cf6de44d
PA
77282016-09-05 Pedro Alves <palves@redhat.com>
7729
7730 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7731 (COMPILE.pre, CC_LD): Use CXX directly.
7732 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7733 * acinclude.m4: Don't include build-with-cxx.m4.
7734 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7735 * configure: Regenerate.
7736
c1da6748
AT
77372016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7738
7739 PR gdb/19495
7740 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7741 call writing data to own_buf.
7742
f2b9e3df
SDJ
77432016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7744
7745 * target.c (mywait): Call target_wait instead of
7746 the_target->wait.
7747 (target_wait): New function.
7748
049a8570
SDJ
77492016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7750
7751 * server.c (start_inferior): New variable 'ptid'. Replace calls
7752 to the_target->resume by target_continue{,_no_signal}, depending
7753 on the case.
7754 * target.c (target_stop_and_wait): Call target_continue_no_signal
7755 instead of the_target->resume.
7756 (target_continue): New function.
7757
3aa5cfa0
AT
77582016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7759
7760 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7761
754653a7
AZ
77622016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7763
7764 PR server/20491
7765 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7766 ps_prochandle.
7767 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7768 * linux-arm-low.c (ps_get_thread_area): Likewise.
7769 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7770 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7771 * linux-mips-low.c (ps_get_thread_area): Likewise.
7772 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7773 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7774 * linux-x86-low.c (ps_get_thread_area): Likewise.
7775 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7776
ed036b40
PA
77772016-08-19 Pedro Alves <palves@redhat.com>
7778
7779 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7780
c8ef42ee
PA
77812016-08-19 Pedro Alves <palves@redhat.com>
7782
7783 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7784 comment. Use memcpy instead of casting through unsigned long.
7785
9c235a72
PA
77862016-08-19 Pedro Alves <palves@redhat.com>
7787
7788 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7789 allocating around 0x80000000.
7790
201506da
PA
77912016-08-19 Pedro Alves <palves@redhat.com>
7792
7793 PR gdb/20415
7794 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7795 (x32-avx512-linux-ipa.o): New rules.
7796 * configure.ac (x86_64-*-linux*): New x32 check.
7797 * configure.srv (ipa_x32_linux_regobj): New.
7798 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7799 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7800 descriptions.
7801 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7802 descriptions.
7803 * configure: Regenerate.
7804
f348d89a
PA
78052016-08-09 Pedro Alves <palves@redhat.com>
7806
7807 PR gdb/18653
7808 * Makefile.in (OBS): Add signals-state-save-restore.o.
7809 (signals-state-save-restore.o): New rule.
7810 * config.in: Regenerate.
7811 * configure: Regenerate.
7812 * linux-low.c: Include "signals-state-save-restore.h".
7813 (linux_create_inferior): Call
7814 restore_original_signals_state.
7815 * server.c: Include "dispositions-save-restore.h".
7816 (captured_main): Call save_original_signals_state.
7817
1baf5149
PA
78182016-08-05 Pedro Alves <palves@redhat.com>
7819
7820 * configure: Regenerate.
7821
fcd4a73d
YQ
78222016-08-04 Yao Qi <yao.qi@linaro.org>
7823
7824 * linux-low.c (regsets_fetch_inferior_registers): Check
7825 errno is ESRCH or not.
7826
979659d0
YQ
78272016-08-02 Yao Qi <yao.qi@linaro.org>
7828
7829 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7830 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7831 (thread_db_load_search): Update.
7832 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7833 td_ta_set_event and td_ta_event_getmsg.
7834
6598661d
PA
78352016-07-26 Pedro Alves <palves@redhat.com>
7836
7837 PR server/20414
7838 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7839 of unsigned long for 64-bit registers and use uint32_t instead of
7840 unsigned int for 32-bit registers.
7841
9cf12d57
PA
78422016-07-26 Pedro Alves <palves@redhat.com>
7843
7844 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7845 to 'ptrace'.
7846
305450ed
TT
78472016-07-21 Tom Tromey <tom@tromey.com>
7848
7849 * configure: Rebuild.
7850
2583da7c
YQ
78512016-07-21 Yao Qi <yao.qi@linaro.org>
7852
7853 * mem-break.c (find_gdb_breakpoint): Cast bp to
7854 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7855
21536b36
YQ
78562016-07-21 Yao Qi <yao.qi@linaro.org>
7857
7858 * server.c (handle_v_requests): Support s and S actions
7859 if target_supports_software_single_step return true.
7860
8901d193
YQ
78612016-07-21 Yao Qi <yao.qi@linaro.org>
7862
7863 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7864 is resume_step, call maybe_hw_step.
7865 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7866 and unstop them.
7867 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7868 breakpoints or not.
7869 (proceed_one_lwp): If resume request is resume_step, install
7870 reinsert breakpoints and call maybe_hw_step.
7871
0e9a339e
YQ
78722016-07-21 Yao Qi <yao.qi@linaro.org>
7873
7874 * linux-low.c (proceed_one_lwp): Declare.
7875 (linux_resume_one_thread): Remove local variable 'step'.
7876 Lift code enqueue signal. Call proceed_one_lwp instead of
7877 linux_resume_one_lwp.
7878
4281b351
YQ
78792016-07-21 Yao Qi <yao.qi@linaro.org>
7880
7881 * linux-low.c (linux_resume_one_thread): Call
7882 enqueue_pending_signal.
7883
984a2c04
YQ
78842016-07-21 Yao Qi <yao.qi@linaro.org>
7885
7886 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7887 * inferiors.c (do_restore_current_thread_cleanup): New function.
7888 (make_cleanup_restore_current_thread): Likewise.
7889 * linux-low.c (install_software_single_step_breakpoints): Call
7890 make_cleanup_restore_current_thread. Switch current_thread to
7891 thread.
7892
bec903c9
YQ
78932016-07-21 Yao Qi <yao.qi@linaro.org>
7894
7895 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7896 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7897 (clone_one_breakpoint): Likewise.
7898 (delete_reinsert_breakpoints): Change parameter to thread.
7899 Callers updated.
7900 (has_reinsert_breakpoints): Likewise.
7901 (uninsert_reinsert_breakpoints): Likewise.
7902 (reinsert_reinsert_breakpoints): Likewise.
7903 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7904 (delete_reinsert_breakpoints): Likewise.
7905 (reinsert_reinsert_breakpoints): Likewise.
7906 (uninsert_reinsert_breakpoints): Likewise.
7907 (has_reinsert_breakpoints): Likewise.
7908
63c40ec7
YQ
79092016-07-21 Yao Qi <yao.qi@linaro.org>
7910
7911 * inferiors.c (get_thread_process): Make parameter const.
7912 * inferiors.h (get_thread_process): Update declaration.
7913 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7914 Add new parameters child_thread and parent_thread. Callers
7915 updated.
7916 * mem-break.h (clone_all_breakpoints): Update declaration.
7917
9aa76cd0
YQ
79182016-07-21 Yao Qi <yao.qi@linaro.org>
7919
7920 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7921 <command_list, handler>: Remove.
7922 (struct gdb_breakpoint): New.
7923 (struct other_breakpoint): New.
7924 (struct reinsert_breakpoint): New.
7925 (is_gdb_breakpoint): New function.
7926 (any_persistent_commands): Update command_list if
7927 is_gdb_breakpoint returns true.
7928 (set_breakpoint): Create breakpoints according to their types.
7929 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7930 (set_gdb_breakpoint_1): Likewise.
7931 (set_gdb_breakpoint): Likewise.
7932 (clear_breakpoint_conditions): Change parameter type to
7933 'struct gdb_breakpoint *'.
7934 (clear_breakpoint_commands): Likewise.
7935 (clear_breakpoint_conditions_and_commands): Likewise.
7936 (add_condition_to_breakpoint): Likewise.
7937 (add_breakpoint_condition): Likewise.
7938 (add_commands_to_breakpoint): Likewise.
7939 (check_breakpoints): Check other_breakpoint.
7940 (clone_one_breakpoint): Clone breakpopint according to its type.
7941 * mem-break.h (struct gdb_breakpoint): Declare.
7942 (set_gdb_breakpoint): Update declaration.
7943 (clear_breakpoint_conditions_and_commands): Likewise.
7944 (add_breakpoint_condition): Likewise.
7945 (add_breakpoint_commands): Likewise.
7946 * server.c (process_point_options): Change parameter type to
7947 'struct gdb_breakpoint *'.
7948
811f8301
YQ
79492016-07-21 Yao Qi <yao.qi@linaro.org>
7950
7951 * mem-break.c (set_breakpoint_at): Rename it to ...
7952 (set_breakpoint_type_at): ... it.
7953 (set_breakpoint_at): Call set_breakpoint_type_at.
7954 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7955 * mem-break.h (set_breakpoint_at): Update comments.
7956
b1c51e36
CLT
79572016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7958
7959 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7960 to buf parameter.
7961 (nios2_store_gregset): Likewise.
7962
ced2dffb
PA
79632016-07-01 Pedro Alves <palves@redhat.com>
7964 Antoine Tremblay <antoine.tremblay@ericsson.com>
7965
7966 * linux-low.c: Change interface to take the target lwp_info
7967 pointer directly and return void. Handle detaching from a zombie
7968 thread.
7969 (linux_detach_lwp_callback): New function.
7970 (linux_detach): Detach from the leader thread after detaching from
7971 the clone threads.
7972
2ac09a5b
YQ
79732016-06-28 Yao Qi <yao.qi@linaro.org>
7974
7975 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7976 for variable new_offset.
7977 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7978 (aarch64_ftrace_insn_reloc_cb): Likewise.
7979 (aarch64_ftrace_insn_reloc_tb): Likewise.
7980 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7981 PRIx64 instead of PRIx32.
7982
79e7fd4f
YQ
79832016-06-28 Yao Qi <yao.qi@linaro.org>
7984
7985 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7986 (the_low_target): Install arm_get_syscall_trapinfo.
7987
061fc021
YQ
79882016-06-28 Yao Qi <yao.qi@linaro.org>
7989
7990 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7991 function.
7992 (the_low_target): Install aarch64_get_syscall_trapinfo.
7993
4cc32bec
YQ
79942016-06-28 Yao Qi <yao.qi@linaro.org>
7995
7996 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7997 Callers updated.
7998 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7999 Remove parameter sysno.
8000 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8001 sysret.
8002
782c1122
AA
80032016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8004
8005 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8006 (s390_emit_ne_goto): Likewise.
8007 (s390_emit_lt_goto): Likewise.
8008 (s390_emit_le_goto): Likewise.
8009 (s390_emit_gt_goto): Likewise.
8010 (s390_emit_ge_goto): Likewise.
8011 (s390x_emit_eq_goto): Likewise.
8012 (s390x_emit_ne_goto): Likewise.
8013 (s390x_emit_lt_goto): Likewise.
8014 (s390x_emit_le_goto): Likewise.
8015 (s390x_emit_gt_goto): Likewise.
8016 (s390x_emit_ge_goto): Likewise.
8017 (s390_emit_ops_impl): Mark variable static.
8018 (s390x_emit_ops): Likewise.
8019
2e7b624b
YQ
80202016-06-17 Yao Qi <yao.qi@linaro.org>
8021
8022 * linux-low.c (handle_extended_wait): Call
8023 uninsert_reinsert_breakpoints for the parent process. Remove
8024 reinsert breakpoints from the child process. Reinsert them to
8025 the parent process when vfork is done.
8026 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8027 (reinsert_reinsert_breakpoints): New function.
8028 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8029 (reinsert_reinsert_breakpoints): Declare.
8030
8a81c5d7
YQ
80312016-06-17 Yao Qi <yao.qi@linaro.org>
8032
8033 * linux-low.c (handle_extended_wait): If the parent is doing
8034 step-over, remove the reinsert breakpoints from the forked child.
8035
f50bf8e5
YQ
80362016-06-17 Yao Qi <yao.qi@linaro.org>
8037
8038 * linux-low.c (unsuspend_all_lwps): Declare.
8039 (linux_low_filter_event): If thread exited, call finish_step_over.
8040 If step-over is finished, unsuspend other threads.
8041
8376a3cb
YQ
80422016-06-17 Yao Qi <yao.qi@linaro.org>
8043
8044 * linux-low.c (linux_resume_one_lwp_throw): Assert
8045 has_reinsert_breakpoints returns false.
8046 * mem-break.c (delete_disabled_breakpoints): Assert
8047 bp type isn't reinsert_breakpoint.
8048
f79b145d
YQ
80492016-06-17 Yao Qi <yao.qi@linaro.org>
8050
8051 * linux-low.c (maybe_hw_step): New function.
8052 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8053 (finish_step_over): Switch current_thread to lwp temporarily,
8054 and assert has_reinsert_breakpoints returns true.
8055 (proceed_one_lwp): Call maybe_hw_step.
8056 * mem-break.c (has_reinsert_breakpoints): New function.
8057 * mem-break.h (has_reinsert_breakpoints): Declare.
8058
0ae534d2
JT
80592016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8060
8061 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8062
fcdad592
YQ
80632016-05-17 Yao Qi <yao.qi@linaro.org>
8064
8065 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8066 instead of find_inferior.
8067
9e784964
YQ
80682016-05-05 Yao Qi <yao.qi@linaro.org>
8069
8070 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8071 Initialize res to zero.
8072
cf2ebb6e
YQ
80732016-05-05 Yao Qi <yao.qi@linaro.org>
8074
8075 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8076 to uint32_t.
8077
c1aebf87
UW
80782016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8079
8080 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8081 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8082 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8083
35fd2deb 80842016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8085 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8086
8087 * tracepoint.c (write_inferior_int8): New function.
8088 (cmd_qtenable_disable): Write enable flag using
8089 write_inferior_int8.
8090
484b3c32
YQ
80912016-04-25 Yao Qi <yao.qi@linaro.org>
8092
8093 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8094 (need_step_over_p): Return zero if the LWP has pending signals
8095 can be delivered on software single step target.
8096
85ba7d86
YQ
80972016-04-25 Yao Qi <yao.qi@linaro.org>
8098
8099 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8100 return instead of error.
8101
3539aa13
YQ
81022016-04-22 Yao Qi <yao.qi@linaro.org>
8103
8104 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8105 to 23.
8106
5b061e98
YQ
81072016-04-22 Yao Qi <yao.qi@linaro.org>
8108
8109 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8110 signal when stepping over breakpoint with software single
8111 step.
8112
3451269c
PA
81132016-04-21 Pedro Alves <palves@redhat.com>
8114
8115 * linux-s390-low.c (s390_collect_ptrace_register)
8116 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8117 add casts.
8118 (s390_check_regset): Use void * instead of gdb_byte *.
8119
a2358508
PA
81202016-04-20 Pedro Alves <palves@redhat.com>
8121
8122 * configure: Renegerate.
8123
6885166d
YQ
81242016-04-20 Yao Qi <yao.qi@linaro.org>
8125
8126 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8127 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8128 number 16.
8129 (arm_store_gregset): Likewise.
8130
2b863f51
WT
81312016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8132
8133 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8134 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8135 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8136 (amd64-avx-mpx-linux.c): New rules.
8137 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8138 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8139 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8140 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8141 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8142 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8143 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8144 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8145 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8146 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8147 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8148 * linux-x86-low.c (x86_linux_read_description): Add case for
8149 X86_XSTATE_AVX_MPX_MASK.
8150 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8151 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8152 init_registers_i386_avx_mpx_linux.
8153 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8154 (initialize_low_tracepoint): Call
8155 init_registers_i386_avx_mpx_linux.
8156 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8157 (initialize_low_tracepoint): Call
8158 init_registers_amd64_avx_mpx_linux.
8159 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8160 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8161 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8162 declarations.
8163
9b30624b
PA
81642016-04-18 Pedro Alves <palves@redhat.com>
8165
8166 * configure: Regenerate.
8167
45e3745e
AT
81682016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8169
8170 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8171 (aarch64_emit_sub): Likewise.
8172
2afc13ff
PA
81732016-04-12 Pedro Alves <palves@redhat.com>
8174
8175 * utils.c (prepare_to_throw_exception): Delete.
8176
6e774b13
SM
81772016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8178
8179 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8180
4dca19f8
MK
81812016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8182
8183 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8184
d0a9981f
MK
81852016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8186
8187 * linux-aarch64-ipa.c: Add <elf.h> include.
8188 * linux-ppc-ipa.c: Add <elf.h> include.
8189 * linux-s390-ipa.c: Add <elf.h> include.
8190
252db07e
MK
81912016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8192
8193 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8194 (get_raw_reg_ptr): Likewise.
8195 (get_trace_state_variable_value_ptr): Likewise.
8196 (set_trace_state_variable_value_ptr): Likewise.
8197 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8198 char *.
8199
14e2b6d9
MK
82002016-03-31 Wei-cheng Wang <cole945@gmail.com>
8201 Marcin Kościelnicki <koriakin@0x04.net>
8202
8203 PR/17221
8204 * linux-ppc-low.c (emit_insns): New function.
8205 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8206 (ppc_emit_prologue): New function.
8207 (ppc_emit_epilogue): New function.
8208 (ppc_emit_add): New function.
8209 (ppc_emit_sub): New function.
8210 (ppc_emit_mul): New function.
8211 (ppc_emit_lsh): New function.
8212 (ppc_emit_rsh_signed): New function.
8213 (ppc_emit_rsh_unsigned): New function.
8214 (ppc_emit_ext): New function.
8215 (ppc_emit_zero_ext): New function.
8216 (ppc_emit_log_not): New function.
8217 (ppc_emit_bit_and): New function.
8218 (ppc_emit_bit_or): New function.
8219 (ppc_emit_bit_xor): New function.
8220 (ppc_emit_bit_not): New function.
8221 (ppc_emit_equal): New function.
8222 (ppc_emit_less_signed): New function.
8223 (ppc_emit_less_unsigned): New function.
8224 (ppc_emit_ref): New function.
8225 (ppc_emit_const): New function.
8226 (ppc_emit_reg): New function.
8227 (ppc_emit_pop): New function.
8228 (ppc_emit_stack_flush): New function.
8229 (ppc_emit_swap): New function.
8230 (ppc_emit_stack_adjust): New function.
8231 (ppc_emit_call): New function.
8232 (ppc_emit_int_call_1): New function.
8233 (ppc_emit_void_call_2): New function.
8234 (ppc_emit_if_goto): New function.
8235 (ppc_emit_goto): New function.
8236 (ppc_emit_eq_goto): New function.
8237 (ppc_emit_ne_goto): New function.
8238 (ppc_emit_lt_goto): New function.
8239 (ppc_emit_le_goto): New function.
8240 (ppc_emit_gt_goto): New function.
8241 (ppc_emit_ge_goto): New function.
8242 (ppc_write_goto_address): New function.
8243 (ppc_emit_ops_impl): New static variable.
8244 (ppc64v1_emit_prologue): New function.
8245 (ppc64v2_emit_prologue): New function.
8246 (ppc64_emit_epilogue): New function.
8247 (ppc64_emit_add): New function.
8248 (ppc64_emit_sub): New function.
8249 (ppc64_emit_mul): New function.
8250 (ppc64_emit_lsh): New function.
8251 (ppc64_emit_rsh_signed): New function.
8252 (ppc64_emit_rsh_unsigned): New function.
8253 (ppc64_emit_ext): New function.
8254 (ppc64_emit_zero_ext): New function.
8255 (ppc64_emit_log_not): New function.
8256 (ppc64_emit_bit_and): New function.
8257 (ppc64_emit_bit_or): New function.
8258 (ppc64_emit_bit_xor): New function.
8259 (ppc64_emit_bit_not): New function.
8260 (ppc64_emit_equal): New function.
8261 (ppc64_emit_less_signed): New function.
8262 (ppc64_emit_less_unsigned): New function.
8263 (ppc64_emit_ref): New function.
8264 (ppc64_emit_const): New function.
8265 (ppc64v1_emit_reg): New function.
8266 (ppc64v2_emit_reg): New function.
8267 (ppc64_emit_pop): New function.
8268 (ppc64_emit_stack_flush): New function.
8269 (ppc64_emit_swap): New function.
8270 (ppc64v1_emit_call): New function.
8271 (ppc64v2_emit_call): New function.
8272 (ppc64v1_emit_int_call_1): New function.
8273 (ppc64v2_emit_int_call_1): New function.
8274 (ppc64v1_emit_void_call_2): New function.
8275 (ppc64v2_emit_void_call_2): New function.
8276 (ppc64_emit_if_goto): New function.
8277 (ppc64_emit_eq_goto): New function.
8278 (ppc64_emit_ne_goto): New function.
8279 (ppc64_emit_lt_goto): New function.
8280 (ppc64_emit_le_goto): New function.
8281 (ppc64_emit_gt_goto): New function.
8282 (ppc64_emit_ge_goto): New function.
8283 (ppc64v1_emit_ops_impl): New static variable.
8284 (ppc64v2_emit_ops_impl): New static variable.
8285 (ppc_emit_ops): New function.
8286 (linux_low_target): Wire in ppc_emit_ops.
8287
a2174ba4
MK
82882016-03-31 Wei-cheng Wang <cole945@gmail.com>
8289 Marcin Kościelnicki <koriakin@0x04.net>
8290
8291 PR/17221
8292 * Makefile.in: Add powerpc-*-ipa.o
8293 * configure.srv: Add ipa_obj for powerpc*-linux.
8294 * linux-ppc-ipa.c: New file.
8295 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8296 includes.
8297 (PPC_FIELD): New macro.
8298 (PPC_SEXT): New macro.
8299 (PPC_OP6): New macro.
8300 (PPC_BO): New macro.
8301 (PPC_LI): New macro.
8302 (PPC_BD): New macro.
8303 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8304 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8305 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8306 (ppc_get_thread_area): New function.
8307 (is_elfv2_inferior): New function.
8308 (gen_ds_form): New function.
8309 (GEN_STD): New macro.
8310 (GEN_STDU): New macro.
8311 (GEN_LD): New macro.
8312 (GEN_LDU): New macro.
8313 (gen_d_form): New function.
8314 (GEN_ADDI): New macro.
8315 (GEN_ADDIS): New macro.
8316 (GEN_LI): New macro.
8317 (GEN_LIS): New macro.
8318 (GEN_ORI): New macro.
8319 (GEN_ORIS): New macro.
8320 (GEN_LWZ): New macro.
8321 (GEN_STW): New macro.
8322 (GEN_STWU): New macro.
8323 (gen_xfx_form): New function.
8324 (GEN_MFSPR): New macro.
8325 (GEN_MTSPR): New macro.
8326 (GEN_MFCR): New macro.
8327 (GEN_MTCR): New macro.
8328 (GEN_SYNC): New macro.
8329 (GEN_LWSYNC): New macro.
8330 (gen_x_form): New function.
8331 (GEN_OR): New macro.
8332 (GEN_MR): New macro.
8333 (GEN_LWARX): New macro.
8334 (GEN_STWCX): New macro.
8335 (GEN_CMPW): New macro.
8336 (gen_md_form): New function.
8337 (GEN_RLDICL): New macro.
8338 (GEN_RLDICR): New macro.
8339 (gen_i_form): New function.
8340 (GEN_B): New macro.
8341 (GEN_BL): New macro.
8342 (gen_b_form): New function.
8343 (GEN_BNE): New macro.
8344 (GEN_LOAD): New macro.
8345 (GEN_STORE): New macro.
8346 (gen_limm): New function.
8347 (gen_atomic_xchg): New function.
8348 (gen_call): New function.
8349 (ppc_relocate_instruction): New function.
8350 (ppc_install_fast_tracepoint_jump_pad): New function.
8351 (ppc_get_min_fast_tracepoint_insn_len): New function.
8352 (ppc_get_ipa_tdesc_idx): New function.
8353 (the_low_target): Wire in the new functions.
8354 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8355 tdescs.
8356 * linux-ppc-tdesc.h: New file.
8357
a13c4696
MK
83582016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8359
8360 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8361 (alloc_jump_pad_buffer): New function.
8362 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8363 (alloc_jump_pad_buffer): New function.
8364 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8365 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8366 (alloc_jump_pad_buffer): New function.
8367 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8368 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8369 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8370 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8371
1cda1512
MK
83722016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8373
8374 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8375 * linux-amd64-ipa.c: Likewise.
8376 * linux-i386-ipa.c: Likewise.
8377 * linux-s390-ipa.c: Likewise.
8378 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8379 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8380 set_trace_state_variable_value_ptr.
8381 (struct ipa_sym_addresses): Likewise.
8382 (symbol_list): Likewise.
8383 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8384 accessing gdb_collect directly.
8385 (gdb_collect_ptr_type): New typedef.
8386 (get_raw_reg_ptr_type): New typedef.
8387 (get_trace_state_variable_value_ptr_type): New typedef.
8388 (set_trace_state_variable_value_ptr_type): New typedef.
8389 (gdb_collect_ptr): New global.
8390 (get_raw_reg_ptr): New global.
8391 (get_trace_state_variable_value_ptr): New global.
8392 (set_trace_state_variable_value_ptr): New global.
8393 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8394 accessing get_raw_reg directly.
8395 (get_get_tsv_func_addr): Likewise for
8396 get_trace_state_variable_value_ptr.
8397 (get_set_tsv_func_addr): Likewise for
8398 set_trace_state_variable_value_ptr.
8399 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8400
72fb5488
SM
84012016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8402
8403 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8404
28170b88
MK
84052016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8406
8407 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8408 packets.
8409 (relocate_instruction): Remove own_buf.
8410 * server.c (own_buf): Make global.
8411 (handle_v_requests): Make global.
8412 * server.h (own_buf): New declaration.
8413 (handle_v_requests): New prototype.
8414
f39e8743
MK
84152016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8416
8417 PR 18377
8418 * linux-s390-low.c (add_insns): New function.
8419 (s390_emit_prologue): New function.
8420 (s390_emit_epilogue): New function.
8421 (s390_emit_add): New function.
8422 (s390_emit_sub): New function.
8423 (s390_emit_mul): New function.
8424 (s390_emit_lsh): New function.
8425 (s390_emit_rsh_signed): New function.
8426 (s390_emit_rsh_unsigned): New function.
8427 (s390_emit_ext): New function.
8428 (s390_emit_log_not): New function.
8429 (s390_emit_bit_and): New function.
8430 (s390_emit_bit_or): New function.
8431 (s390_emit_bit_xor): New function.
8432 (s390_emit_bit_not): New function.
8433 (s390_emit_equal): New function.
8434 (s390_emit_less_signed): New function.
8435 (s390_emit_less_unsigned): New function.
8436 (s390_emit_ref): New function.
8437 (s390_emit_if_goto): New function.
8438 (s390_emit_goto): New function.
8439 (s390_write_goto_address): New function.
8440 (s390_emit_litpool): New function.
8441 (s390_emit_const): New function.
8442 (s390_emit_call): New function.
8443 (s390_emit_reg): New function.
8444 (s390_emit_pop): New function.
8445 (s390_emit_stack_flush): New function.
8446 (s390_emit_zero_ext): New function.
8447 (s390_emit_swap): New function.
8448 (s390_emit_stack_adjust): New function.
8449 (s390_emit_set_r2): New function.
8450 (s390_emit_int_call_1): New function.
8451 (s390_emit_void_call_2): New function.
8452 (s390_emit_eq_goto): New function.
8453 (s390_emit_ne_goto): New function.
8454 (s390_emit_lt_goto): New function.
8455 (s390_emit_le_goto): New function.
8456 (s390_emit_gt_goto): New function.
8457 (s390_emit_ge_goto): New function.
8458 (s390x_emit_prologue): New function.
8459 (s390x_emit_epilogue): New function.
8460 (s390x_emit_add): New function.
8461 (s390x_emit_sub): New function.
8462 (s390x_emit_mul): New function.
8463 (s390x_emit_lsh): New function.
8464 (s390x_emit_rsh_signed): New function.
8465 (s390x_emit_rsh_unsigned): New function.
8466 (s390x_emit_ext): New function.
8467 (s390x_emit_log_not): New function.
8468 (s390x_emit_bit_and): New function.
8469 (s390x_emit_bit_or): New function.
8470 (s390x_emit_bit_xor): New function.
8471 (s390x_emit_bit_not): New function.
8472 (s390x_emit_equal): New function.
8473 (s390x_emit_less_signed): New function.
8474 (s390x_emit_less_unsigned): New function.
8475 (s390x_emit_ref): New function.
8476 (s390x_emit_if_goto): New function.
8477 (s390x_emit_const): New function.
8478 (s390x_emit_call): New function.
8479 (s390x_emit_reg): New function.
8480 (s390x_emit_pop): New function.
8481 (s390x_emit_stack_flush): New function.
8482 (s390x_emit_zero_ext): New function.
8483 (s390x_emit_swap): New function.
8484 (s390x_emit_stack_adjust): New function.
8485 (s390x_emit_int_call_1): New function.
8486 (s390x_emit_void_call_2): New function.
8487 (s390x_emit_eq_goto): New function.
8488 (s390x_emit_ne_goto): New function.
8489 (s390x_emit_lt_goto): New function.
8490 (s390x_emit_le_goto): New function.
8491 (s390x_emit_gt_goto): New function.
8492 (s390x_emit_ge_goto): New function.
8493 (s390_emit_ops): New function.
8494 (struct linux_target_ops): Fill in emit_ops hook.
8495
abd9baf9
MK
84962016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8497
8498 PR 18377
8499 * Makefile.in: Add s390 IPA files.
8500 * configure.srv: Build IPA for s390.
8501 * linux-s390-ipa.c: New file.
8502 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8503 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8504 (tdesc_s390_linux32): Likewise.
8505 (init_registers_s390_linux32v1): Likewise.
8506 (tdesc_s390_linux32v1): Likewise.
8507 (init_registers_s390_linux32v2): Likewise.
8508 (tdesc_s390_linux32v2): Likewise.
8509 (init_registers_s390_linux64): Likewise.
8510 (tdesc_s390_linux64): Likewise.
8511 (init_registers_s390_linux64v1): Likewise.
8512 (tdesc_s390_linux64v1): Likewise.
8513 (init_registers_s390_linux64v2): Likewise.
8514 (tdesc_s390_linux64v2): Likewise.
8515 (init_registers_s390_te_linux64): Likewise.
8516 (tdesc_s390_te_linux64): Likewise.
8517 (init_registers_s390_vx_linux64): Likewise.
8518 (tdesc_s390_vx_linux64): Likewise.
8519 (init_registers_s390_tevx_linux64): Likewise.
8520 (tdesc_s390_tevx_linux64): Likewise.
8521 (init_registers_s390x_linux64): Likewise.
8522 (tdesc_s390x_linux64): Likewise.
8523 (init_registers_s390x_linux64v1): Likewise.
8524 (tdesc_s390x_linux64v1): Likewise.
8525 (init_registers_s390x_linux64v2): Likewise.
8526 (tdesc_s390x_linux64v2): Likewise.
8527 (init_registers_s390x_te_linux64): Likewise.
8528 (tdesc_s390x_te_linux64): Likewise.
8529 (init_registers_s390x_vx_linux64): Likewise.
8530 (tdesc_s390x_vx_linux64): Likewise.
8531 (init_registers_s390x_tevx_linux64): Likewise.
8532 (tdesc_s390x_tevx_linux64): Likewise.
8533 (have_hwcap_s390_vx): New static variable.
8534 (s390_arch_setup): Fill have_hwcap_s390_vx.
8535 (s390_get_thread_area): New function.
8536 (s390_ft_entry_gpr_esa): New const.
8537 (s390_ft_entry_gpr_zarch): New const.
8538 (s390_ft_entry_misc): New const.
8539 (s390_ft_entry_fr): New const.
8540 (s390_ft_entry_vr): New const.
8541 (s390_ft_main_31): New const.
8542 (s390_ft_main_64): New const.
8543 (s390_ft_exit_fr): New const.
8544 (s390_ft_exit_vr): New const.
8545 (s390_ft_exit_misc): New const.
8546 (s390_ft_exit_gpr_esa): New const.
8547 (s390_ft_exit_gpr_zarch): New const.
8548 (append_insns): New function.
8549 (s390_relocate_instruction): New function.
8550 (s390_install_fast_tracepoint_jump_pad): New function.
8551 (s390_get_min_fast_tracepoint_insn_len): New function.
8552 (s390_get_ipa_tdesc_idx): New function.
8553 (struct linux_target_ops): Wire in the above functions.
8554 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8555 * linux-s390-tdesc.h: New file.
8556
a4105d04
MK
85572016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8558
8559 * linux-s390-low.c (s390_supports_tracepoints): New function.
8560 (struct linux_target_ops): Fill supports_tracepoints hook.
8561
35ac8b3e
YQ
85622016-03-18 Yao Qi <yao.qi@linaro.org>
8563
8564 * linux-low.c (lwp_signal_can_be_delivered): New function.
8565 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8566
94610ec4
YQ
85672016-03-18 Yao Qi <yao.qi@linaro.org>
8568
8569 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8570 0 if signal is enqueued. Remove 'signal' from one debugging
8571 message. Move one debugging message to some lines below.
8572 Remove code setting 'signal' to 0.
8573
80aea927
YQ
85742016-03-18 Yao Qi <yao.qi@linaro.org>
8575
8576 * linux-low.c (linux_low_filter_event): Remove redundant
8577 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8578
b04fd3be
MK
85792016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8580
8581 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8582 (struct linux_target_ops): Wire in the above.
8583
c40c8d4b
YQ
85842016-03-03 Yao Qi <yao.qi@linaro.org>
8585
8586 * linux-low.c: Update comments to start_step_over.
8587
0f8288ae
YQ
85882016-03-03 Yao Qi <yao.qi@linaro.org>
8589
8590 PR server/19736
8591 * linux-low.c (handle_extended_wait): Set child suspended
8592 if event_lwp->bp_reinsert isn't zero.
8593
fdbd04a8
YQ
85942016-03-02 Yao Qi <yao.qi@linaro.org>
8595
8596 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8597 enqueue_pending_signal.
8598
6896a8fa
MK
85992016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8600
8601 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8602 is actually loaded.
8603
ab503087
MK
86042016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8605
8606 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8607 (s390_regmap_3264) [!__s390x__]: New global.
8608 (s390_collect_ptrace_register): Skip map entries containing -1.
8609 (s390_supply_ptrace_register): Ditto.
8610 (s390_fill_gprs_high): New function.
8611 (s390_store_gprs_high): New function.
8612 (s390_regsets): Add NT_S390_HIGH_GPRS.
8613 (s390_get_hwcap): Enable on 31-bit.
8614 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8615 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8616 Detect NT_S390_HIGH_GPRS.
8617 (s390_usrregs_info_3264): Enable on 31-bit.
8618 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8619 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8620
ae91f625
MK
86212016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8622
8623 PR gdb/13808
8624 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8625 * configure.srv: Ditto.
8626 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8627 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8628 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8629 (init_registers_amd64_linux): Remove prototype.
8630 (tdesc_amd64_linux): Remove declaration.
8631 (get_ipa_tdesc): New function.
8632 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8633 initialize remaining tdescs.
8634 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8635 (init_registers_i386_linux): Remove prototype.
8636 (tdesc_i386_linux): Remove declaration.
8637 (get_ipa_tdesc): New function.
8638 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8639 initialize remaining tdescs.
8640 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8641 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8642 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8643 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8644 (x86_get_ipa_tdesc_idx): New function.
8645 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8646 * linux-x86-tdesc.h: New file.
8647 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8648 (target_get_ipa_tdesc_idx): New macro.
8649 * tracepoint.c (ipa_tdesc_idx): New macro.
8650 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8651 (symbol_list): Add ipa_tdesc_idx.
8652 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8653 (ipa_tdesc): Remove.
8654 (ipa_tdesc_idx): New variable.
8655 (get_context_regcache): Use get_ipa_tdesc.
8656 (gdb_collect): Ditto.
8657 (gdb_probe): Ditto.
8658 * tracepoint.h (get_ipa_tdesc): New prototype.
8659 (ipa_tdesc): Remove.
8660
e7ad2f14
PA
86612016-02-24 Pedro Alves <palves@redhat.com>
8662
8663 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8664 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8665 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8666 Factor out common code between the USE_SIGTRAP_SIGINFO and
8667 !USE_SIGTRAP_SIGINFO blocks.
8668 (linux_low_filter_event): Call save_stop_reason instead of
8669 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8670 Update comments.
8671 (linux_wait_1): Update comments.
8672
657f9cde
WW
86732016-02-24 Wei-cheng Wang <cole945@gmail.com>
8674
8675 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8676 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8677 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8678 ppc_insert_point, ppc_remove_point.
8679
b00b61e1
MK
86802016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8681
8682 * linux-s390-low.c (s390_supports_z_point_type): New function.
8683 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8684
553cb527
YQ
86852016-02-16 Yao Qi <yao.qi@linaro.org>
8686
8687 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8688 PC. Get pc from regcache_read_pc.
8689
a5652c21
YQ
86902016-02-12 Yao Qi <yao.qi@linaro.org>
8691
8692 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8693 or linux_get_pc_32bit.
8694 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8695
ed443b61
YQ
86962016-02-12 Yao Qi <yao.qi@linaro.org>
8697
8698 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8699 arm_linux_get_next_pcs_fixup.
8700
020ecd38
MK
87012016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8702
8703 * tracepoint.c (x_tracepoint_action_download): Change
8704 write_inferior_data_ptr to write_inferior_data_pointer.
8705 (cmd_qtstart): Likewise.
8706 (write_inferior_data_ptr): Remove.
8707 (download_agent_expr): Change write_inferior_data_ptr to
8708 write_inferior_data_pointer.
8709 (download_tracepoint_1): Likewise.
8710 (download_tracepoint): Likewise.
8711 (download_trace_state_variables): Likewise.
8712
7cae9051
WW
87132016-02-11 Wei-cheng Wang <cole945@gmail.com>
8714 Marcin Kościelnicki <koriakin@0x04.net>
8715
8716 * tracepoint.c (struct tracepoint_action_ops): Remove.
8717 (struct tracepoint_action): Remove ops.
8718 (m_tracepoint_action_download, r_tracepoint_action_download)
8719 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8720 size and offset accordingly.
8721 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8722 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8723 (tracepoint_action_send, tracepoint_action_download): New functions.
8724 Helpers for trace action handlers.
8725 (add_tracepoint_action): Remove setup actions ops.
8726 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8727
9f6a71b4
YQ
87282016-02-10 Yao Qi <yao.qi@linaro.org>
8729
8730 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8731
1e94266c
SM
87322016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8733
8734 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8735 to AC_OUTPUT.
8736 * configure: Regenerate.
8737
8adce034
SM
87382016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8739
8740 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8741 void * to gdb_byte *.
8742 * linux-low.c (siginfo_fixup): Likewise.
8743 (linux_xfer_siginfo): Likewise.
8744 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8745 Likewise.
8746 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8747
93813b37
WT
87482016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8749
8750 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8751 to srv_tgtobj.
8752 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8753 to srv_tgtobj.
8754 * linux-x86-low.c [__x86_64__]: Include
8755 "nat/amd64-linux-siginfo.h".
8756 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8757 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8758 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8759 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8760 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8761 (cpt_si_fd, si_timerid, si_overrun): Move from
8762 nat/amd64-linux-siginfo.c.
8763 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8764
8424cc97
SM
87652016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8766
8767 * server.c (skip_to_semicolon): Remove.
8768 (process_point_options): Use strchrnul instead of
8769 skip_to_semicolon.
8770
4d18591b
YQ
87712016-01-26 Yao Qi <yao.qi@linaro.org>
8772
8773 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8774 * linux-low.c (install_software_single_step_breakpoints): Don't
8775 call regcache_read_pc.
8776 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8777 argument pc.
8778
d8020970
YQ
87792016-01-26 Yao Qi <yao.qi@linaro.org>
8780
8781 * linux-low.c (install_software_single_step_breakpoints): Call
8782 regcache_read_pc instead of get_pc.
8783
8b207339
YQ
87842016-01-26 Yao Qi <yao.qi@linaro.org>
8785
8786 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8787 (unblock_async_io): Rename to ...
8788 (block_unblock_async_io): ... it. New function.
8789 (enable_async_io): Don't install SIGIO handler. Unblock it
8790 instead.
8791 (disable_async_io): Don't ignore SIGIO. Block it instead.
8792 (initialize_async_io): Install SIGIO handler. Don't call
8793 unblock_async_io.
8794
18879fef
YQ
87952016-01-26 Yao Qi <yao.qi@linaro.org>
8796
8797 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8798 first character is '\003', call *the_target->request_interrupt.
8799
a0f8e08a
YQ
88002016-01-25 Yao Qi <yao.qi@linaro.org>
8801
8802 * remote-utils.c (new_thread_notify): Remove.
8803 (dead_thread_notify): Likewise.
8804 * remote-utils.h (new_thread_notify): Remove declaration.
8805 (dead_thread_notify): Likewise.
8806
cc5fd9ab
MK
88072016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8808
8809 * gdb.trace/pending.exp: Fix expected message on continue.
8810
99e8eb11
MK
88112016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8812
8813 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8814 it works properly on big-endian machines where sizeof (CORE_ADDR)
8815 != sizeof (void *).
8816
a994041d
PA
88172016-01-21 Pedro Alves <palves@redhat.com>
8818
8819 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8820 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8821 * configure: Regenerate.
8822
f7a6a40d
YQ
88232016-01-21 Yao Qi <yao.qi@linaro.org>
8824
8825 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8826 is_thumb and set it according to CPSR saved on the stack.
8827 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8828 arm_sigreturn_next_pc.
8829
6f69e520
YQ
88302016-01-18 Yao Qi <yao.qi@linaro.org>
8831
8832 * linux-low.c (linux_set_pc_64bit): New function.
8833 (linux_get_pc_64bit): New function.
8834 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8835 Declare.
8836 * linux-sparc-low.c (debug_threads): Remove declaration.
8837 (sparc_get_pc): Remove.
8838 (the_low_target): Use linux_get_pc_64bit instead of
8839 sparc_get_pc.
8840 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8841 (the_low_target): Use linux_get_pc_64bit and
8842 linux_set_pc_64bit.
8843
276d4552
YQ
88442016-01-18 Yao Qi <yao.qi@linaro.org>
8845
8846 * linux-arm-low.c (debug_threads): Remove declaration.
8847 (arm_get_pc, arm_set_pc): Remove.
8848 (the_low_target): Use linux_get_pc_32bit and
8849 linux_set_pc_32bit.
8850 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8851 (the_low_target): Use linux_get_pc_32bit and
8852 linux_set_pc_32bit.
8853 * linux-cris-low.c (debug_threads): Remove declaration.
8854 (cris_get_pc, cris_set_pc,): Remove.
8855 (the_low_target): Use linux_get_pc_32bit and
8856 linux_set_pc_32bit.
8857 * linux-crisv32-low.c (debug_threads): Remove declaration.
8858 (cris_get_pc, cris_set_pc): Remove.
8859 (the_low_target): Use linux_get_pc_32bit and
8860 linux_set_pc_32bit.
8861 * linux-low.c: Include inttypes.h.
8862 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8863 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8864 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8865 (the_low_target): Use linux_get_pc_32bit and
8866 linux_set_pc_32bit.
8867 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8868 (the_low_target): Use linux_get_pc_32bit and
8869 linux_set_pc_32bit.
8870 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8871 (the_low_target): Use linux_get_pc_32bit and
8872 linux_set_pc_32bit.
8873 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8874 (the_low_target): Use linux_get_pc_32bit and
8875 linux_set_pc_32bit.
8876 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8877 (the_low_target): Use linux_get_pc_32bit and
8878 linux_set_pc_32bit.
8879
eb0edac8
GB
88802016-01-18 Gary Benson <gbenson@redhat.com>
8881
8882 * configure.ac (AC_FUNC_FORK): New check.
8883 * config.in: Regenerate.
8884 * configure: Likewise.
8885
1b451dda
YQ
88862016-01-14 Yao Qi <yao.qi@linaro.org>
8887
8888 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8889 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8890 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8891 arm_get_next_pcs_ctor.
8892
82075af2
JS
88932016-01-12 Josh Stone <jistone@redhat.com>
8894 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8895
8896 * inferiors.h: Include "gdb_vecs.h".
8897 (struct process_info): Add syscalls_to_catch.
8898 * inferiors.c (remove_process): Free syscalls_to_catch.
8899 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8900 syscall_return stops.
8901 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8902 * server.c (handle_general_set): Handle QCatchSyscalls.
8903 (handle_query): Report support for QCatchSyscalls.
8904 * target.h (struct target_ops): Add supports_catch_syscall.
8905 (target_supports_catch_syscall): New macro.
8906 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8907 (struct lwp_info): Add syscall_state.
8908 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8909 Maintain syscall_state and syscalls_to_catch across exec.
8910 (get_syscall_trapinfo): New function, proxy to the_low_target.
8911 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8912 (linux_low_filter_event): Toggle syscall_state entry/return for
8913 syscall traps, and set it ignored for all others.
8914 (gdb_catching_syscalls_p): New function.
8915 (gdb_catch_this_syscall_p): New function.
8916 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8917 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8918 (linux_supports_catch_syscall): New function.
8919 (linux_target_ops): Install it.
8920 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8921 (the_low_target): Install it.
8922
8f13a3ce
MF
89232016-01-12 Mike Frysinger <vapier@gentoo.org>
8924
8925 * acinclude.m4: Include new ../warning.m4 file.
8926 * configure: Regenerated.
8927 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8928
5b3da067
MF
89292016-01-12 Mike Frysinger <vapier@gentoo.org>
8930
8931 * ax.c (is_goto_target): Mark static.
8932 * linux-low.c (register_addr): Likewise.
8933 (linux_fetch_registers, linux_store_registers): Likewise.
8934 * mem-break.c (any_persistent_commands): Fix old prototype.
8935 (add_commands_to_breakpoint): Mark static.
8936 * regcache.c (find_register_by_name): Delete unused func.
8937 * remote-utils.c (hex_or_minus_one): Mark static.
8938 * server.c (monitor_show_help): Mark static.
8939 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8940 handle_v_requests): Likewise.
8941
bc504a31
PA
89422016-01-12 Pedro Alves <palves@redhat.com>
8943
8944 Remove use of the registered trademark symbol throughout.
8945
5a0dd67a
YQ
89462016-01-08 Yao Qi <yao.qi@linaro.org>
8947
8948 * remote-utils.c (getpkt): If c is '\003', call target hook
8949 request_interrupt.
8950
b2ca446f
YQ
89512016-01-06 Yao Qi <yao.qi@linaro.org>
8952
8953 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8954 linux-aarch32-low.c.
8955 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8956 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8957 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8958 (thumb2_breakpoint): Declare.
8959 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8960 linux-aarch32-low.h.
8961 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8962 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8963 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8964
edd88788
JB
89652016-01-01 Joel Brobecker <brobecker@adacore.com>
8966
8967 * gdbreplay.c (gdbreplay_version): Change copyright year in
8968 version message.
8969 * server.c (gdbserver_version): Likewise.
8970
65da7f14
PP
89712015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8972
8973 * server.c (crc32_table): Delete.
8974 (crc32): Use libiberty's xcrc32 function.
8975
4abd5ed2
JB
89762015-12-22 Joel Brobecker <brobecker@adacore.com>
8977
8978 * lynx-low.c (lynx_delete_thread_callback): New function.
8979 (lynx_mourn): Properly delete our process and all of its
8980 threads. Remove call to clear_inferiors.
8981
0e50fe5c
JB
89822015-12-22 Joel Brobecker <brobecker@adacore.com>
8983
8984 * target.c (thread_search_callback): Add check that
8985 the thread_stopped target callback is not NULL before
8986 calling it.
8987
35adc03f
YQ
89882015-12-21 Yao Qi <yao.qi@linaro.org>
8989
8990 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8991 arm breakpoint.
8992
bd2b2909
AT
89932015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8994
8995 * server.c (handle_query): Call target_supports_software_single_step.
8996
7fe5e27e
AT
89972015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8998
8999 * linux-low.c (single_step): New function.
9000 (linux_resume_one_lwp_throw): Call single_step.
9001 (start_step_over): Likewise.
9002
d9311bfa
AT
90032015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9004
9005 * Makefile.in (SFILES): Append arch/arm-linux.c,
9006 arch/arm-get-next-pcs.c.
9007 (arm-linux.o): New rule.
9008 (arm-get-next-pcs.o): New rule.
9009 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9010 arm-linux.o.
9011 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9012 to linux-aarch32-low.c.
9013 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9014 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9015 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9016 (thumb2_breakpoint_len): Likewise.
9017 (arm_is_thumb_mode): Make non-static.
9018 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9019 from linux-aarch32-low.c.
9020 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9021 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9022 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9023 (thumb2_breakpoint_len): Likewise.
9024 (arm_is_thumb_mode): New declaration.
9025 * linux-arm-low.c: Include arch/arm-linux.h
9026 aarch/arm-get-next-pcs.h, sys/syscall.h.
9027 (get_next_pcs_ops): New struct.
9028 (get_next_pcs_addr_bits_remove): New function.
9029 (get_next_pcs_is_thumb): New function.
9030 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9031 (arm_sigreturn_next_pc): Likewise.
9032 (get_next_pcs_syscall_next_pc): Likewise.
9033 (arm_gdbserver_get_next_pcs): Likewise.
9034 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9035 Initialize.
9036 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9037 * server.h: Include gdb_vecs.h.
9038
68ce2059
AT
90392015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9040
9041 * Makefile.in (SFILES): Append common/common-regcache.c.
9042 (OBS): Append common-regcache.o.
9043 (common-regcache.o): New rule.
9044 * regcache.c (init_register_cache): Initialize cache to
9045 REG_UNAVAILABLE.
9046 (regcache_raw_read_unsigned): New function.
9047 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9048 register_status enum.
9049
fa5308bd
AT
90502015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9051
9052 * linux-aarch64-low.c (the_low_targets): Rename
9053 breakpoint_reinsert_addr to get_next_pcs.
9054 * linux-arm-low.c (the_low_targets): Likewise.
9055 * linux-bfin-low.c (the_low_targets): Likewise.
9056 * linux-cris-low.c (the_low_targets): Likewise.
9057 * linux-crisv32-low.c (the_low_targets): Likewise.
9058 * linux-low.c (can_software_single_step): Likewise.
9059 (install_software_single_step_breakpoints): New function.
9060 (start_step_over): Use install_software_single_step_breakpoints.
9061 * linux-low.h: New CORE_ADDR vector.
9062 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9063 get_next_pcs.
9064 * linux-mips-low.c (the_low_targets): Likewise.
9065 * linux-nios2-low.c (the_low_targets): Likewise.
9066 * linux-sparc-low.c (the_low_targets): Likewise.
9067
4a6ed09b
PA
90682015-12-17 Pedro Alves <palves@redhat.com>
9069
9070 * linux-low.c (linux_kill_one_lwp): Remove references to
9071 LinuxThreads.
9072 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9073 to 'kill'.
9074 (linux_init_signals): Delete.
9075 (initialize_low): Adjust.
9076 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9077
7544db95
PA
90782015-12-16 Pedro Alves <palves@redhat.com>
9079
9080 * configure.ac (compiler warning flags): When testing a
9081 -Wno-foo option, check whether -Wfoo works instead.
9082 * configure: Regenerate.
9083
8020350c
DB
90842015-12-11 Don Breazeal <donb@codesourcery.com>
9085
9086 * server.c (process_serial_event): Don't exit from gdbserver
9087 in remote mode if there are still active inferiors.
9088
db91f502
YQ
90892015-12-11 Yao Qi <yao.qi@linaro.org>
9090
9091 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9092 arm_breakpoint_at if the process is 32-bit.
9093
b37a6290
YQ
90942015-12-11 Yao Qi <yao.qi@linaro.org>
9095
9096 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9097 arm breakpoint.
9098
17b1509a
YQ
90992015-12-07 Yao Qi <yao.qi@linaro.org>
9100
9101 * configure.srv: Append arm.o to srv_tgtobj for
9102 aarch64*-*-linux* target.
9103 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9104 from linux-arm-low.c.
9105 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9106 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9107 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9108 (thumb2_breakpoint_len): Likewise.
9109 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9110 (arm_breakpoint_kinds): Likewise.
9111 (arm_breakpoint_kind_from_pc): Likewise.
9112 (arm_sw_breakpoint_from_kind): Likewise.
9113 (arm_breakpoint_kind_from_current_state): Likewise.
9114 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9115 (arm_sw_breakpoint_from_kind): Declare.
9116 (arm_breakpoint_kind_from_current_state): Declare.
9117 (arm_breakpoint_at): Declare.
9118 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9119 arm_sw_breakpoint_from_kind if process is 32-bit.
9120 (aarch64_breakpoint_kind_from_pc): New function.
9121 (aarch64_breakpoint_kind_from_current_state): New function.
9122 (the_low_target): Initialize fields breakpoint_kind_from_pc
9123 and breakpoint_kind_from_current_state.
9124 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9125 linux-aarch32-low.c.
9126 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9127 (arm_breakpoint, arm_breakpoint_len): Likewise.
9128 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9129 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9130 (arm_is_thumb_mode): Likewise.
9131 (arm_breakpoint_at): Likewise.
9132 (arm_breakpoint_kind_from_pc): Likewise.
9133 (arm_sw_breakpoint_from_kind): Likewise.
9134 (arm_breakpoint_kind_from_current_state): Likewise.
9135
9136 Revert:
9137 2015-08-04 Yao Qi <yao.qi@linaro.org>
9138
9139 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9140 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9141 * server.c (extended_protocol): Remove "static".
9142 * server.h (extended_protocol): Declare it.
9143
ece66d65
JS
91442015-12-04 Josh Stone <jistone@redhat.com>
9145
9146 * target.h (struct target_ops) <arch_setup>: Rename to ...
9147 (struct target_ops) <post_create_inferior>: ... this.
9148 (target_arch_setup): Rename to ...
9149 (target_post_create_inferior): ... this, calling post_create_inferior.
9150 * server.c (start_inferior): Update target_arch_setup calls to
9151 target_post_create_inferior.
9152 * linux-low.c (linux_low_ptrace_options): Forward declare.
9153 (linux_arch_setup): Update its comment for general use.
9154 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9155 (struct linux_target_ops): Use linux_post_create_inferior.
9156 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9157 to post_create_inferior.
9158 * nto-low.c (struct nto_target_ops): Likewise.
9159 * spu-low.c (struct spu_target_ops): Likewise.
9160 * win32-low.c (struct win32_target_ops): Likewise.
9161
e58c48b4
AT
91622015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9163
9164 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9165
fbec8956
AT
91662015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9167
9168 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9169 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9170 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9171 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9172 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9173 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9174 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9175 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9176 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9177 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9178 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9179 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9180
9b4c5f87
AT
91812015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9182
9183 * linux-low.c (linux_look_up_symbols): Don't call
9184 linux_supports_traceclone.
9185 * linux-low.h (thread_db_init): Remove use_events argument.
9186 * thread-db.c (thread_db_use_event): Remove global variable.
9187 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9188 (struct thread_db) <td_create_bp>: Remove field.
9189 (thread_db_create_event): Remove function.
9190 (thread_db_enable_reporting): Likewise.
9191 (find_one_thread): Don't check for thread_db_use_events.
9192 (attach_thread): Likewise.
9193 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9194 (try_thread_db_load_1): Don't check for thread_db_use_events.
9195 (thread_db_init): Remove use_events argument and thread events
9196 handling.
9197 (remove_thread_event_breakpoints): Remove function.
9198 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9199
7d00775e
AT
92002015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9201
9202 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9203 New function.
9204 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9205 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9206 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9207 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9208 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9209 Initialize.
9210 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9211 New function.
9212 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9213 * linux-low.c (can_hardware_single_step): Use
9214 supports_hardware_single_step.
9215 (can_software_single_step): New function.
9216 (start_step_over): Call can_software_single_step.
9217 (linux_supports_hardware_single_step): New function.
9218 (struct target_ops) <supports_software_single_step>: Initialize.
9219 * linux-low.h (struct linux_target_ops)
9220 <supports_hardware_single_step>: Initialize.
9221 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9222 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9223 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9224 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9225 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9226 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9227 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9228 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9229 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9230 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9231 Initialize.
9232 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9233 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9234 Initialize.
9235 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9236 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9237 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9238 New function.
9239 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9240 * target.h (struct target_ops): <supports_software_single_step>:
9241 New field.
9242 (target_supports_software_single_step): New macro.
9243
2d97cd35
AT
92442015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9245
9246 * linux-low.c (linux_wait_1): Fix pc advance condition.
9247 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9248 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9249
769ef81f
AT
92502015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9251
9252 * linux-arm-low.c (arm_is_thumb_mode): New function.
9253 (arm_breakpoint_at): Use arm_is_thumb_mode.
9254 (arm_breakpoint_kind_from_current_state): New function.
9255 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9256 Initialize.
9257 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9258 (linux_breakpoint_kind_from_current_state): New function.
9259 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9260 * linux-low.h (struct linux_target_ops)
9261 <breakpoint_kind_from_current_state>: New field.
9262 * target.h (struct target_ops): Likewise.
9263 (target_breakpoint_kind_from_current_state): New macro.
9264
1bebeeca
PA
92652015-11-30 Pedro Alves <palves@redhat.com>
9266
9267 * linux-low.c (linux_resume): Wake up the event loop before
9268 returning.
9269
a67a9fae
PA
92702015-11-30 Pedro Alves <palves@redhat.com>
9271
9272 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9273 check.
9274 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9275 to -1.
9276 * target.c (struct thread_search): New structure.
9277 (thread_search_callback): New function.
9278 (prev_general_thread): New global.
9279 (prepare_to_access_memory, done_accessing_memory): New functions.
9280 * target.h (prepare_to_access_memory, done_accessing_memory):
9281 Replace macros with function declarations.
9282
f2faf941
PA
92832015-11-30 Pedro Alves <palves@redhat.com>
9284
9285 PR 14618
9286 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9287 report TARGET_WAITKIND_NO_RESUMED.
9288 * remote-utils.c (prepare_resume_reply): Handle
9289 TARGET_WAITKIND_NO_RESUMED.
9290 * server.c (report_no_resumed): New global.
9291 (handle_query) <qSupported>: Handle "no-resumed+". Report
9292 "no-resumed+" support.
9293 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9294 return error if the client doesn't support no-resumed events.
9295 (push_stop_notification): New function.
9296 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9297 events if the client supports them.
9298
a681f9c9
PA
92992015-11-30 Pedro Alves <palves@redhat.com>
9300
9301 * linux-low.c (thread_still_has_status_pending_p): Don't check
9302 vCont;t here.
9303 (lwp_resumed): New function.
9304 (status_pending_p_callback): Return early if the LWP is not
9305 supposed to be resumed.
9306
65706a29
PA
93072015-11-30 Pedro Alves <palves@redhat.com>
9308
9309 * linux-low.c (handle_extended_wait): Assert that the LWP's
9310 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9311 thread create events, leave the new child's status pending.
9312 (linux_low_filter_event): If GDB wants to hear about thread exit
9313 events, leave the LWP marked dead and don't delete it.
9314 (linux_wait_for_event_filtered): Don't check for thread exit.
9315 (filter_exit_event): New function.
9316 (linux_wait_1): Use it, when returning an exit event.
9317 (linux_resume_one_lwp_throw): Assert that the LWP's
9318 waitstatus is TARGET_WAITKIND_IGNORE.
9319 * remote-utils.c (prepare_resume_reply): Handle
9320 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9321 * server.c (report_thread_events): New global.
9322 (handle_general_set): Handle QThreadEvents.
9323 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9324 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9325 TARGET_WAITKIND_THREAD_EXITED.
9326 * server.h (report_thread_events): Declare.
9327
56cf4bed
PA
93282015-11-30 Pedro Alves <palves@redhat.com>
9329
9330 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9331 the thread's last_resume_kind was resume_stop.
9332
500c1d85
PA
93332015-11-30 Pedro Alves <palves@redhat.com>
9334
9335 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9336 before returning.
9337
de979965
PA
93382015-11-30 Pedro Alves <palves@redhat.com>
9339
9340 * server.c (handle_v_requests): Handle vCtrlC.
9341
34c65914
PA
93422015-11-30 Pedro Alves <palves@redhat.com>
9343
9344 * gdbthread.h (find_any_thread_of_pid): Declare.
9345 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9346 functions.
9347 * server.c (handle_query): If current_thread is NULL, look for
9348 another thread of the selected process.
9349
79efa585 93502015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9351 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9352
9353 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9354 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9355 name in reply.
9356 * target.h (struct target_ops) <thread_name>: New field.
9357 (target_thread_name): New macro.
9358
80d82c19
JB
93592015-11-23 Joel Brobecker <brobecker@adacore.com>
9360
9361 * regcache.h (regcache_invalidate_pid): Add declaration.
9362 * regcache.c (regcache_invalidate_pid): New function, extracted
9363 from regcache_invalidate.
9364 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9365 Add trivial documentation comment.
9366 * lynx-low.c: Use regcache_invalidate_pid instead of
9367 regcache_invalidate.
9368
64da5dd5
JB
93692015-11-23 Joel Brobecker <brobecker@adacore.com>
9370
9371 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9372 and Elf64_auxv_t if the target is Android.
9373
37ce4055
DE
93742015-11-22 Doug Evans <xdje42@gmail.com>
9375
9376 * target.h: #include <sys/types.h>.
9377
06e03fff
PA
93782015-11-19 Pedro Alves <palves@redhat.com>
9379
9380 * linux-low.c (linux_process_qsupported): Change prototype.
9381 Adjust.
9382 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9383 Change prototype.
9384 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9385 and adjust to loop over all features.
9386 * server.c (handle_query) <qSupported>: Adjust to call
9387 target_process_qsupported once, passing it a vector of unprocessed
9388 features.
9389 * target.h (struct target_ops) <process_qsupported>: Change
9390 prototype.
9391 (target_process_qsupported): Adjust.
9392
9a084706
PA
93932015-11-19 Pedro Alves <palves@redhat.com>
9394
9395 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9396 mode.
9397 * configure: Regenerate.
9398
dad44a1f
PA
93992015-11-19 Pedro Alves <palves@redhat.com>
9400
9401 * configure: Regenerate.
9402
231c0592
YQ
94032015-11-19 Yao Qi <yao.qi@linaro.org>
9404
9405 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9406 type to uint32_t.
9407
6c1c9a8b
YQ
94082015-11-19 Yao Qi <yao.qi@linaro.org>
9409
9410 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9411 (struct aarch64_operand): Move enum out.
9412
9caa3311
YQ
94132015-11-19 Yao Qi <yao.qi@linaro.org>
9414
9415 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9416 struct user_fpsimd_state *.
9417 (aarch64_store_fpregset): Likewise.
9418
6a69a054
YQ
94192015-11-19 Yao Qi <yao.qi@linaro.org>
9420
9421 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9422 struct user_pt_regs *.
9423 (aarch64_store_gregset): Likewise.
9424
1798301e
PA
94252015-11-18 Pedro Alves <palves@redhat.com>
9426
9427 * Makefile.in (all_object_files): Add $IPA_OBJS.
9428
ce7715e2
PA
94292015-11-17 Pedro Alves <palves@redhat.com>
9430
9431 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9432 GDB_SIGNAL_0 and gdb_signal_to_string.
9433
c0879059
PA
94342015-11-17 Pedro Alves <palves@redhat.com>
9435
9436 * win32-low.c (handle_output_debug_string): Remove parameter.
9437 (win32_kill): Remove our_status local and adjust call to
9438 handle_output_debug_string.
9439 (get_child_debug_event): Adjust call to
9440 handle_output_debug_string.
9441
1996e237
SM
94422015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9443
9444 * linux-mips-low.c (mips_fill_gregset): Add cast.
9445 (mips_store_gregset): Likewise.
9446 (mips_fill_fpregset): Likewise.
9447 (mips_store_fpregset): Likewise.
9448
cbec665b
SM
94492015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9450
9451 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9452 priv.
9453
eb3e3c67
SM
94542015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9455
9456 * linux-mips-low.c (mips_linux_new_thread): Change type of
9457 watch_type to enum target_hw_bp_type.
9458
171de4b8
SM
94592015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9460
9461 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9462 Change return type to arm_hwbp_type.
9463
04248ead
SM
94642015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9465
9466 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9467 (arm_store_gregset): Likewise.
9468 * linux-arm-low.c (arm_get_hwcap): Likewise.
9469 (arm_read_description): Likewise.
9470
04b3479c
SM
94712015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9472
9473 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9474
2bc84e8a
SM
94752015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9476
9477 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9478 (ppc_fill_vsxregset): Likewise.
9479 (ppc_store_vsxregset): Likewise.
9480 (ppc_fill_vrregset): Likewise.
9481 (ppc_store_vrregset): Likewise.
9482 (ppc_fill_evrregset): Likewise.
9483 (ppc_store_evrregset): Likewise.
9484
e6c5bb05
SM
94852015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9486
9487 * linux-ppc-low.c (ppc_usrregs_info): Remove
9488 forward-declaration.
9489 (ppc_arch_setup): Move lower in file.
9490
7ea45d72
SM
94912015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9492
9493 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9494 (ps_pdwrite): Likewise.
9495
69291610
HW
94962015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9497
9498 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9499 to after assert checks.
9500
b42945fd
SM
95012015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9502
9503 * proc-service.c (ps_pdread): Add/adjust casts.
9504 (ps_pdwrite): Add/adjust casts.
9505
d6f85c84
SM
95062015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9507
9508 * server.c (handle_search_memory_1): Cast return value of
9509 memmem.
9510
f98cd059
SM
95112015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9512
9513 * server.c (write_qxfer_response): Change type of data to
9514 gdb_byte *.
9515
d2412fa5
PA
95162015-10-29 Pedro Alves <palves@redhat.com>
9517
9518 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9519
c17414a2
PA
95202015-10-29 Pedro Alves <palves@redhat.com>
9521
9522 * tracepoint.c (clear_installed_tracepoints): Add casts.
9523
e053fbc4
PA
95242015-10-29 Pedro Alves <palves@redhat.com>
9525
9526 * server.c (handle_v_cont, process_serial_event): Add enum
9527 gdb_signal casts to signal parsing code.
9528
add67df8
PA
95292015-10-29 Pedro Alves <palves@redhat.com>
9530
9531 * linux-low.h (NULL_REGSET): Define.
9532 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9533 * linux-arm-low.c (arm_regsets): Likewise.
9534 * linux-crisv32-low.c (cris_regsets): Likewise.
9535 * linux-m68k-low.c (m68k_regsets): Likewise.
9536 * linux-mips-low.c (mips_regsets): Likewise.
9537 * linux-nios2-low.c (nios2_regsets): Likewise.
9538 * linux-ppc-low.c (ppc_regsets): Likewise.
9539 * linux-s390-low.c (s390_regsets): Likewise.
9540 * linux-sh-low.c (sh_regsets): Likewise.
9541 * linux-sparc-low.c (sparc_regsets): Likewise.
9542 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9543 * linux-tile-low.c (tile_regsets): Likewise.
9544 * linux-x86-low.c (x86_regsets): Likewise.
9545 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9546
50bc912a
PA
95472015-10-29 Pedro Alves <palves@redhat.com>
9548
9549 * linux-low.h (NULL_REGSET): Define.
9550 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9551 * linux-arm-low.c (arm_regsets): Likewise.
9552 * linux-crisv32-low.c (cris_regsets): Likewise.
9553 * linux-m68k-low.c (m68k_regsets): Likewise.
9554 * linux-mips-low.c (mips_regsets): Likewise.
9555 * linux-nios2-low.c (nios2_regsets): Likewise.
9556 * linux-ppc-low.c (ppc_regsets): Likewise.
9557 * linux-s390-low.c (s390_regsets): Likewise.
9558 * linux-sh-low.c (sh_regsets): Likewise.
9559 * linux-sparc-low.c (sparc_regsets): Likewise.
9560 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9561 * linux-tile-low.c (tile_regsets): Likewise.
9562 * linux-x86-low.c (x86_regsets): Likewise.
9563 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9564
682b2546
DE
95652015-10-26 Doug Evans <dje@google.com>
9566
9567 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9568
963843d4
DE
95692015-10-26 Doug Evans <dje@google.com>
9570
9571 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9572
d41401ac
DE
95732015-10-26 Doug Evans <dje@google.com>
9574
9575 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9576 for debug_printf.
9577 (attach_thread, find_new_threads_callback): Ditto.
9578
3db28855
AT
95792015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9580
9581 * mem-break.h (set_breakpoint_data): Remove.
9582
fb78e89c
AT
95832015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9584
9585 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9586 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9587 (initialize_low): Remove set_breakpoint_data call.
9588 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9589 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9590 (initialize_low): Remove set_breakpoint_data call.
9591 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9592 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9593 (initialize_low): Remove set_breakpoint_data call.
9594
2e6ee069
AT
95952015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9596
9597 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9598 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9599 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9600 * target.h (target_breakpoint_kind_from_pc): New macro.
9601
1652a986
AT
96022015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9603
9604 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9605 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9606 the default breakpoint kind.
9607
abeead09
AT
96082015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9609
9610 * linux-arm-low.c (arm_supports_z_point_type): Add software
9611 breakpoint support.
9612
b0b4b501
AT
96132015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9614
9615 * linux-arm-low.c: Refactor breakpoint definitions.
9616 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9617 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9618
8689682c
AT
96192015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9620
9621 * Makefile.in: Add arm.c/o.
9622 * configure.srv: Likewise.
9623 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9624 (arm_breakpoint_kind_from_pc): New function.
9625 (arm_sw_breakpoint_from_kind): Return proper kind.
9626 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9627
27165294
AT
96282015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9629
9630 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9631 removal.
9632 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9633 (struct raw_breakpoint) <size>: Remove.
9634 (struct raw_breakpoint) <kind>: Add.
9635 (bp_size): New function.
9636 (bp_opcode): Likewise.
9637 (find_raw_breakpoint_at): Adjust for kind.
9638 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9639 (remove_memory_breakpoint): Adjust for kind call bp_size.
9640 (set_raw_breakpoint_at): Adjust for kind.
9641 (set_breakpoint): Likewise.
9642 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9643 (delete_raw_breakpoint): Adjust for kind.
9644 (delete_breakpoint): Likewise.
9645 (find_gdb_breakpoint): Likewise.
9646 (set_gdb_breakpoint_1): Likewise.
9647 (set_gdb_breakpoint): Likewise.
9648 (delete_gdb_breakpoint_1): Likewise.
9649 (delete_gdb_breakpoint): Likewise.
9650 (uninsert_raw_breakpoint): Likewise.
9651 (reinsert_raw_breakpoint): Likewise.
9652 (set_breakpoint_data): Remove.
9653 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9654 (check_mem_read): Adjust for kind call bp_size.
9655 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9656 (clone_one_breakpoint): Adjust for kind.
9657 * mem-break.h (set_gdb_breakpoint): Likewise.
9658 (delete_gdb_breakpoint): Likewise.
9659 * server.c (process_serial_event): Likewise.
9660
dd373349
AT
96612015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9662
9663 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9664 (struct linux_target_ops) <breakpoint>: Remove.
9665 (struct linux_target_ops) <breakpoint_len>: Remove.
9666 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9667 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9668 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9669 (arm_sw_breakpoint_from_kind): New function.
9670 * linux-bfin-low.c (bfin_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-cris-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-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9681 (struct linux_target_ops) <breakpoint>: Remove.
9682 (struct linux_target_ops) <breakpoint_len>: Remove.
9683 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9684 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9685 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9686 and sw_breakpoint_from_kind to increment the pc.
9687 (linux_breakpoint_kind_from_pc): New function.
9688 (linux_sw_breakpoint_from_kind): New function.
9689 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9690 (initialize_low): Call breakpoint_kind_from_pc and
9691 sw_breakpoint_from_kind to replace breakpoint_data/len.
9692 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9693 New field.
9694 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9695 * linux-m32r-low.c (m32r_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-m68k-low.c (m68k_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-mips-low.c (mips_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-nios2-low.c (nios2_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-ppc-low.c (ppc_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-s390-low.c (s390_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-sh-low.c (sh_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-sparc-low.c (sparc_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-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9736 (struct linux_target_ops) <breakpoint>: Remove.
9737 (struct linux_target_ops) <breakpoint_len>: Remove.
9738 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9739 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9740 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9741 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9742 (struct linux_target_ops) <breakpoint>: Remove.
9743 (struct linux_target_ops) <breakpoint_len>: Remove.
9744 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9745 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9746 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9747 (struct linux_target_ops) <breakpoint>: Remove.
9748 (struct linux_target_ops) <breakpoint_len>: Remove.
9749 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9750 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9751
4cd98a19
AT
97522015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9753
9754 * linux-cris-low.c (cris_get_pc): Remove void arg.
9755
774ee6d2
AR
97562015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9757
9758 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9759 variable name.
9760
833dcd29
AR
97612015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9762
9763 * inferiors.c (thread_pid_matches_callback): New function.
9764 (find_thread_process): New function.
9765 (remove_thread): Reset current_thread.
9766 (remove_process): Assert threads have been removed first.
9767
8d689ee5
YQ
97682015-10-15 Yao Qi <yao.qi@linaro.org>
9769
9770 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9771 if it is 3.
9772 (aarch64_remove_point): Likewise.
9773 * regcache.c (regcache_register_size): New function.
9774
1c2e1515
YQ
97752015-10-12 Yao Qi <yao.qi@linaro.org>
9776
9777 * linux-aarch64-low.c: Update all callers as emit_load_store
9778 is renamed to aarch64_emit_load_store.
9779
e1c587c3
YQ
97802015-10-12 Yao Qi <yao.qi@linaro.org>
9781
9782 * linux-aarch64-low.c: Update all callers of function renaming
9783 from emit_insn to aarch64_emit_insn.
9784
b6542f81
YQ
97852015-10-12 Yao Qi <yao.qi@linaro.org>
9786
9787 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9788 arch/aarch64-insn.h.
9789 (struct aarch64_memory_operand): Likewise.
9790 (ENCODE): Likewise.
9791 (emit_insn): Move to arch/aarch64-insn.c.
9792 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9793 (emit_load_store): Move to arch/aarch64-insn.c.
9794 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9795 (can_encode_int32): Remove.
9796
246994ce
YQ
97972015-10-12 Yao Qi <yao.qi@linaro.org>
9798
9799 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9800 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9801 (aarch64_relocate_instruction): Likewise.
9802 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9803 (struct aarch64_insn_visitor): Likewise.
9804
0badd99f
YQ
98052015-10-12 Yao Qi <yao.qi@linaro.org>
9806
9807 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9808 (struct aarch64_insn_visitor): New.
9809 (struct aarch64_insn_relocation_data): New.
9810 (aarch64_ftrace_insn_reloc_b): New function.
9811 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9812 (aarch64_ftrace_insn_reloc_cb): Likewise.
9813 (aarch64_ftrace_insn_reloc_tb): Likewise.
9814 (aarch64_ftrace_insn_reloc_adr): Likewise.
9815 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9816 (aarch64_ftrace_insn_reloc_others): Likewise.
9817 (visitor): New.
9818 (aarch64_relocate_instruction): Use visitor.
9819
dfaffe9d
YQ
98202015-10-12 Yao Qi <yao.qi@linaro.org>
9821
9822 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9823 int. Add argument buf.
9824 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9825 aarch64_relocate_instruction.
9826
70b439f0
YQ
98272015-10-12 Yao Qi <yao.qi@linaro.org>
9828
9829 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9830 argument insn. Remove local variable insn. Don't call
9831 target_read_uint32.
9832 (aarch64_install_fast_tracepoint_jump_pad): Call
9833 target_read_uint32.
9834
7781c06f
YQ
98352015-09-30 Yao Qi <yao.qi@linaro.org>
9836
9837 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9838 (emit_load_store_pair): Likewise.
9839
9a3c8263
SM
98402015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9841
9842 * dll.c (match_dll): Add cast(s).
9843 (unloaded_dll): Likewise.
9844 * linux-low.c (second_thread_of_pid_p): Likewise.
9845 (delete_lwp_callback): Likewise.
9846 (count_events_callback): Likewise.
9847 (select_event_lwp_callback): Likewise.
9848 (linux_set_resume_request): Likewise.
9849 * server.c (accumulate_file_name_length): Likewise.
9850 (emit_dll_description): Likewise.
9851 (handle_qxfer_threads_worker): Likewise.
9852 (visit_actioned_threads): Likewise.
9853 * thread-db.c (any_thread_of): Likewise.
9854 * tracepoint.c (same_process_p): Likewise.
9855 (match_blocktype): Likewise.
9856 (build_traceframe_info_xml): Likewise.
9857
224c3ddb
SM
98582015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9859
9860 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9861 assignment.
9862 (gdb_unparse_agent_expr): Likewise.
9863 * hostio.c (require_data): Likewise.
9864 (handle_pread): Likewise.
9865 * linux-low.c (disable_regset): Likewise.
9866 (fetch_register): Likewise.
9867 (store_register): Likewise.
9868 (get_dynamic): Likewise.
9869 (linux_qxfer_libraries_svr4): Likewise.
9870 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9871 (set_fast_tracepoint_jump): Likewise.
9872 (uninsert_fast_tracepoint_jumps_at): Likewise.
9873 (reinsert_fast_tracepoint_jumps_at): Likewise.
9874 (validate_inserted_breakpoint): Likewise.
9875 (clone_agent_expr): Likewise.
9876 * regcache.c (init_register_cache): Likewise.
9877 * remote-utils.c (putpkt_binary_1): Likewise.
9878 (decode_M_packet): Likewise.
9879 (decode_X_packet): Likewise.
9880 (look_up_one_symbol): Likewise.
9881 (relocate_instruction): Likewise.
9882 (monitor_output): Likewise.
9883 * server.c (handle_search_memory): Likewise.
9884 (handle_qxfer_exec_file): Likewise.
9885 (handle_qxfer_libraries): Likewise.
9886 (handle_qxfer): Likewise.
9887 (handle_query): Likewise.
9888 (handle_v_cont): Likewise.
9889 (handle_v_run): Likewise.
9890 (captured_main): Likewise.
9891 * target.c (write_inferior_memory): Likewise.
9892 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9893 * tracepoint.c (init_trace_buffer): Likewise.
9894 (add_tracepoint_action): Likewise.
9895 (add_traceframe): Likewise.
9896 (add_traceframe_block): Likewise.
9897 (cmd_qtdpsrc): Likewise.
9898 (cmd_qtdv): Likewise.
9899 (cmd_qtstatus): Likewise.
9900 (response_source): Likewise.
9901 (response_tsv): Likewise.
9902 (cmd_qtnotes): Likewise.
9903 (gdb_collect): Likewise.
9904 (initialize_tracepoint): Likewise.
9905
afbe19f8
PL
99062015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9907
9908 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9909 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9910 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9911 <NOP>: New.
9912 (enum aarch64_condition_codes): New enum.
9913 (w0): New static global.
9914 (fp): Likewise.
9915 (lr): Likewise.
9916 (struct aarch64_memory_operand) <type>: New
9917 MEMORY_OPERAND_POSTINDEX type.
9918 (postindex_memory_operand): New helper function.
9919 (emit_ret): New function.
9920 (emit_load_store_pair): New function, factored out of emit_stp
9921 with support for MEMORY_OPERAND_POSTINDEX.
9922 (emit_stp): Rewrite using emit_load_store_pair.
9923 (emit_ldp): New function.
9924 (emit_load_store): Likewise.
9925 (emit_ldr): Mention post-index instruction in comment.
9926 (emit_ldrh): New function.
9927 (emit_ldrb): New function.
9928 (emit_ldrsw): Mention post-index instruction in comment.
9929 (emit_str): Likewise.
9930 (emit_subs): New function.
9931 (emit_cmp): Likewise.
9932 (emit_and): Likewise.
9933 (emit_orr): Likewise.
9934 (emit_orn): Likewise.
9935 (emit_eor): Likewise.
9936 (emit_mvn): Likewise.
9937 (emit_lslv): Likewise.
9938 (emit_lsrv): Likewise.
9939 (emit_asrv): Likewise.
9940 (emit_mul): Likewise.
9941 (emit_sbfm): Likewise.
9942 (emit_sbfx): Likewise.
9943 (emit_ubfm): Likewise.
9944 (emit_ubfx): Likewise.
9945 (emit_csinc): Likewise.
9946 (emit_cset): Likewise.
9947 (emit_nop): Likewise.
9948 (emit_ops_insns): New helper function.
9949 (emit_pop): Likewise.
9950 (emit_push): Likewise.
9951 (aarch64_emit_prologue): New function.
9952 (aarch64_emit_epilogue): Likewise.
9953 (aarch64_emit_add): Likewise.
9954 (aarch64_emit_sub): Likewise.
9955 (aarch64_emit_mul): Likewise.
9956 (aarch64_emit_lsh): Likewise.
9957 (aarch64_emit_rsh_signed): Likewise.
9958 (aarch64_emit_rsh_unsigned): Likewise.
9959 (aarch64_emit_ext): Likewise.
9960 (aarch64_emit_log_not): Likewise.
9961 (aarch64_emit_bit_and): Likewise.
9962 (aarch64_emit_bit_or): Likewise.
9963 (aarch64_emit_bit_xor): Likewise.
9964 (aarch64_emit_bit_not): Likewise.
9965 (aarch64_emit_equal): Likewise.
9966 (aarch64_emit_less_signed): Likewise.
9967 (aarch64_emit_less_unsigned): Likewise.
9968 (aarch64_emit_ref): Likewise.
9969 (aarch64_emit_if_goto): Likewise.
9970 (aarch64_emit_goto): Likewise.
9971 (aarch64_write_goto_address): Likewise.
9972 (aarch64_emit_const): Likewise.
9973 (aarch64_emit_call): Likewise.
9974 (aarch64_emit_reg): Likewise.
9975 (aarch64_emit_pop): Likewise.
9976 (aarch64_emit_stack_flush): Likewise.
9977 (aarch64_emit_zero_ext): Likewise.
9978 (aarch64_emit_swap): Likewise.
9979 (aarch64_emit_stack_adjust): Likewise.
9980 (aarch64_emit_int_call_1): Likewise.
9981 (aarch64_emit_void_call_2): Likewise.
9982 (aarch64_emit_eq_goto): Likewise.
9983 (aarch64_emit_ne_goto): Likewise.
9984 (aarch64_emit_lt_goto): Likewise.
9985 (aarch64_emit_le_goto): Likewise.
9986 (aarch64_emit_gt_goto): Likewise.
9987 (aarch64_emit_ge_got): Likewise.
9988 (aarch64_emit_ops_impl): New static global variable.
9989 (aarch64_emit_ops): New target function, return
9990 &aarch64_emit_ops_impl.
9991 (struct linux_target_ops): Install it.
9992
bb903df0
PL
99932015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9994
9995 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9996 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9997 aarch64-ipa.o.
9998 * linux-aarch64-ipa.c: New file.
9999 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10000 and endian.h.
10001 (aarch64_get_thread_area): New target method.
10002 (extract_signed_bitfield): New helper function.
10003 (aarch64_decode_ldr_literal): New function.
10004 (enum aarch64_opcodes): New enum.
10005 (struct aarch64_register): New struct.
10006 (struct aarch64_operand): New struct.
10007 (x0): New static global.
10008 (x1): Likewise.
10009 (x2): Likewise.
10010 (x3): Likewise.
10011 (x4): Likewise.
10012 (w2): Likewise.
10013 (ip0): Likewise.
10014 (sp): Likewise.
10015 (xzr): Likewise.
10016 (aarch64_register): New helper function.
10017 (register_operand): Likewise.
10018 (immediate_operand): Likewise.
10019 (struct aarch64_memory_operand): New struct.
10020 (offset_memory_operand): New helper function.
10021 (preindex_memory_operand): Likewise.
10022 (enum aarch64_system_control_registers): New enum.
10023 (ENCODE): New macro.
10024 (emit_insn): New helper function.
10025 (emit_b): New function.
10026 (emit_bcond): Likewise.
10027 (emit_cb): Likewise.
10028 (emit_tb): Likewise.
10029 (emit_blr): Likewise.
10030 (emit_stp): Likewise.
10031 (emit_ldp_q_offset): Likewise.
10032 (emit_stp_q_offset): Likewise.
10033 (emit_load_store): Likewise.
10034 (emit_ldr): Likewise.
10035 (emit_ldrsw): Likewise.
10036 (emit_str): Likewise.
10037 (emit_ldaxr): Likewise.
10038 (emit_stxr): Likewise.
10039 (emit_stlr): Likewise.
10040 (emit_data_processing_reg): Likewise.
10041 (emit_data_processing): Likewise.
10042 (emit_add): Likewise.
10043 (emit_sub): Likewise.
10044 (emit_mov): Likewise.
10045 (emit_movk): Likewise.
10046 (emit_mov_addr): Likewise.
10047 (emit_mrs): Likewise.
10048 (emit_msr): Likewise.
10049 (emit_sevl): Likewise.
10050 (emit_wfe): Likewise.
10051 (append_insns): Likewise.
10052 (can_encode_int32_in): New helper function.
10053 (aarch64_relocate_instruction): New function.
10054 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10055 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10056 (struct linux_target_ops): Install aarch64_get_thread_area,
10057 aarch64_install_fast_tracepoint_jump_pad and
10058 aarch64_get_min_fast_tracepoint_insn_len.
10059
787749ea
PL
100602015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10061
10062 * Makefile.in (aarch64-insn.o): New rule.
10063 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10064
9812b2e6
YQ
100652015-09-21 Yao Qi <yao.qi@linaro.org>
10066
10067 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10068
18fe412b
YQ
100692015-09-21 Yao Qi <yao.qi@linaro.org>
10070
10071 * tracepoint.c (max_jump_pad_size): Remove.
10072
a0cc84cd
YQ
100732015-09-18 Yao Qi <yao.qi@linaro.org>
10074
10075 * linux-aarch64-low.c: Don't include sys/uio.h.
10076 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10077
d78908cf
WW
100782015-09-16 Wei-cheng Wang <cole945@gmail.com>
10079
10080 * tracepoint.c (eval_result_type): Change prototype.
10081 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10082
d57e0d50
PA
100832015-09-15 Pedro Alves <palves@redhat.com>
10084
10085 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10086 Check whether to report exec events instead of checking whether
10087 multiprocess is enabled.
10088
5a676acc
PA
100892015-09-15 Pedro Alves <palves@redhat.com>
10090
10091 PR remote/18965
10092 * remote-utils.c (prepare_resume_reply): Merge
10093 TARGET_WAITKIND_VFORK_DONE switch case with the
10094 TARGET_WAITKIND_FORKED case.
10095
7c5d0fad
YQ
100962015-09-15 Yao Qi <yao.qi@linaro.org>
10097
10098 * server.c (handle_query): Check string comparison using
10099 "else if" instead of "if".
10100
750ce8d1
YQ
101012015-09-15 Yao Qi <yao.qi@linaro.org>
10102
10103 * server.c (vCont_supported): New global variable.
10104 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10105 matches. Append ";vContSupported+" to own_buf.
10106 (handle_v_requests): Append ";s;S" to own_buf if target supports
10107 hardware single step or vCont_supported is false.
10108 (capture_main): Set vCont_supported to zero.
10109
70b90b91
YQ
101102015-09-15 Yao Qi <yao.qi@linaro.org>
10111
10112 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10113 it to ...
10114 (linux_supports_hardware_single_step): ... New function.
10115 (linux_target_ops): Update.
10116 * lynx-low.c (lynx_target_ops): Set field
10117 supports_hardware_single_step to target_can_do_hardware_single_step.
10118 * nto-low.c (nto_target_ops): Likewise.
10119 * spu-low.c (spu_target_ops): Likewise.
10120 * win32-low.c (win32_target_ops): Likewise.
10121 * target.c (target_can_do_hardware_single_step): New function.
10122 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10123 Remove. <supports_hardware_single_step>: New field.
10124 (target_supports_conditional_breakpoints): Remove.
10125 (target_supports_hardware_single_step): New macro.
10126 (target_can_do_hardware_single_step): Declare.
10127 * server.c (handle_query): Use target_supports_hardware_single_step
10128 instead of target_supports_conditional_breakpoints.
10129
ade90bde
YQ
101302015-09-15 Yao Qi <yao.qi@linaro.org>
10131
10132 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10133 function.
10134 (struct linux_target_ops the_low_target): Install
10135 aarch64_linux_siginfo_fixup.
10136
94585166
DB
101372015-09-11 Don Breazeal <donb@codesourcery.com>
10138 Luis Machado <lgustavo@codesourcery.com>
10139
10140 * linux-low.c (linux_mourn): Static declaration.
10141 (linux_arch_setup): Move in front of
10142 handle_extended_wait.
10143 (linux_arch_setup_thread): New function.
10144 (handle_extended_wait): Handle exec events. Call
10145 linux_arch_setup_thread. Make event_lwp argument a
10146 pointer-to-a-pointer.
10147 (check_zombie_leaders): Do not check stopped threads.
10148 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10149 (linux_low_filter_event): Add lwp and thread for exec'ing
10150 non-leader thread if leader thread has been deleted.
10151 Refactor code into linux_arch_setup_thread and call it.
10152 Pass child lwp pointer by reference to handle_extended_wait.
10153 (linux_wait_for_event_filtered): Update comment.
10154 (linux_wait_1): Prevent clobbering exec event status.
10155 (linux_supports_exec_events): New function.
10156 (linux_target_ops) <supports_exec_events>: Initialize new member.
10157 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10158 new member.
10159 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10160 * server.c (report_exec_events): New global variable.
10161 (handle_query): Handle qSupported query for exec-events feature.
10162 (captured_main): Initialize report_exec_events.
10163 * server.h (report_exec_events): Declare new global variable.
10164 * target.h (struct target_ops) <supports_exec_events>: New
10165 member.
10166 (target_supports_exec_events): New macro.
10167 * win32-low.c (win32_target_ops) <supports_exec_events>:
10168 Initialize new member.
10169
0568462b
MM
101702015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10171
10172 * linux-low.c (linux_low_enable_btrace): Remove.
10173 (linux_target_ops): Replace linux_low_enable_btrace with
10174 linux_enable_btrace.
10175
39edd165
YQ
101762015-09-03 Yao Qi <yao.qi@linaro.org>
10177
10178 * linux-aarch64-low.c (aarch64_insert_point): Call
10179 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10180 returns true.
10181
1db33b5a
UW
101822015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10183
10184 * linux-low.c (check_stopped_by_breakpoint): Use
10185 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10186
ab290430
PA
101872015-08-27 Pedro Alves <palves@redhat.com>
10188
10189 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10190
8d749320
SM
101912015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10192
6711b7f8
SM
10193 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10194 the XNEW-family equivalent.
8d749320
SM
10195 (compile_bytecodes): Likewise.
10196 * dll.c (loaded_dll): Likewise.
10197 * event-loop.c (append_callback_event): Likewise.
10198 (create_file_handler): Likewise.
10199 (create_file_event): Likewise.
10200 * hostio.c (handle_open): Likewise.
10201 * inferiors.c (add_thread): Likewise.
10202 (add_process): Likewise.
10203 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10204 * linux-arm-low.c (arm_new_process): Likewise.
10205 (arm_new_thread): Likewise.
10206 * linux-low.c (add_to_pid_list): Likewise.
10207 (linux_add_process): Likewise.
10208 (handle_extended_wait): Likewise.
10209 (add_lwp): Likewise.
10210 (enqueue_one_deferred_signal): Likewise.
10211 (enqueue_pending_signal): Likewise.
10212 (linux_resume_one_lwp_throw): Likewise.
10213 (linux_resume_one_thread): Likewise.
10214 (linux_read_memory): Likewise.
10215 (linux_write_memory): Likewise.
10216 * linux-mips-low.c (mips_linux_new_process): Likewise.
10217 (mips_linux_new_thread): Likewise.
10218 (mips_add_watchpoint): Likewise.
10219 * linux-x86-low.c (initialize_low_arch): Likewise.
10220 * lynx-low.c (lynx_add_process): Likewise.
10221 * mem-break.c (set_raw_breakpoint_at): Likewise.
10222 (set_breakpoint): Likewise.
10223 (add_condition_to_breakpoint): Likewise.
10224 (add_commands_to_breakpoint): Likewise.
10225 (clone_agent_expr): Likewise.
10226 (clone_one_breakpoint): Likewise.
10227 * regcache.c (new_register_cache): Likewise.
10228 * remote-utils.c (look_up_one_symbol): Likewise.
10229 * server.c (queue_stop_reply): Likewise.
10230 (start_inferior): Likewise.
10231 (queue_stop_reply_callback): Likewise.
10232 (handle_target_event): Likewise.
10233 * spu-low.c (fetch_ppc_memory): Likewise.
10234 (store_ppc_memory): Likewise.
10235 * target.c (set_target_ops): Likewise.
10236 * thread-db.c (thread_db_load_search): Likewise.
10237 (try_thread_db_load_1): Likewise.
10238 * tracepoint.c (add_tracepoint): Likewise.
10239 (add_tracepoint_action): Likewise.
10240 (create_trace_state_variable): Likewise.
10241 (cmd_qtdpsrc): Likewise.
10242 (cmd_qtro): Likewise.
10243 (add_while_stepping_state): Likewise.
10244 * win32-low.c (child_add_thread): Likewise.
10245 (get_image_name): Likewise.
10246
ed8b7b42
YQ
102472015-08-25 Yao Qi <yao.qi@linaro.org>
10248
10249 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10250
db3cb7cb
YQ
102512015-08-25 Yao Qi <yao.qi@linaro.org>
10252
10253 * Makefile.in (aarch64-linux.o): New rule.
10254 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10255 srv_tgtobj.
10256 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10257 (aarch64_init_debug_reg_state): Make it extern.
10258 (aarch64_linux_prepare_to_resume): Remove.
10259
f6011a1c
YQ
102602015-08-25 Yao Qi <yao.qi@linaro.org>
10261
10262 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10263 lwp_arch_private_info and ptid_of_lwp.
10264
88e2cf7e
YQ
102652015-08-25 Yao Qi <yao.qi@linaro.org>
10266
10267 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10268 Find proc_info by find_process_pid. All callers updated.
10269
5e35436e
YQ
102702015-08-25 Yao Qi <yao.qi@linaro.org>
10271
10272 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10273 Remove.
10274 (debug_reg_change_callback): Remove.
10275 (aarch64_notify_debug_reg_change): Remove.
10276
4a8a7965
YQ
102772015-08-25 Yao Qi <yao.qi@linaro.org>
10278
10279 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10280 Call current_lwp_ptid.
10281
32a271ee
YQ
102822015-08-25 Yao Qi <yao.qi@linaro.org>
10283
10284 * linux-aarch64-low.c (debug_reg_change_callback): Use
10285 debug_printf.
10286
0d51c8d7
YQ
102872015-08-25 Yao Qi <yao.qi@linaro.org>
10288
10289 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10290
31a43dd5
YQ
102912015-08-25 Yao Qi <yao.qi@linaro.org>
10292
10293 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10294
8ee52567
YQ
102952015-08-25 Yao Qi <yao.qi@linaro.org>
10296
10297 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10298 the code.
10299
ff3f0f45
YQ
103002015-08-25 Yao Qi <yao.qi@linaro.org>
10301
10302 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10303 Remove.
10304 (debug_reg_change_callback): Remove argument entry and add argument
10305 lwp. Remove local variable thread. Don't print thread id in the
10306 debugging output. Don't check whether pid of thread equals to pid.
10307 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10308 iterate_over_lwps instead find_inferior.
10309
3d40fbb5
PA
103102015-08-24 Pedro Alves <palves@redhat.com>
10311
10312 * inferiors.c (get_first_process): New function.
10313 * inferiors.h (get_first_process): New declaration.
10314 * remote-utils.c (read_ptid): Default to the first process in the
10315 list, instead of to the current thread's process.
10316
438e1e42
PA
103172015-08-24 Pedro Alves <palves@redhat.com>
10318
10319 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10320 * event-loop.c: Likewise.
10321 * remote-utils.c: Likewise.
10322 * tracepoint.c: Likewise.
10323
a8c6d4fc
PA
103242015-08-24 Pedro Alves <palves@redhat.com>
10325
10326 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10327 ptid_get_lwp.
10328
99b0bb12
PA
103292015-08-21 Pedro Alves <palves@redhat.com>
10330
10331 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10332 instead of literal 1.
10333
f8904751
PA
103342015-08-21 Pedro Alves <palves@redhat.com>
10335
10336 * tdesc.c (default_description): Explicitly zero-initialize.
10337
465a859e
PA
103382015-08-21 Pedro Alves <palves@redhat.com>
10339
10340 PR gdb/18749
10341 * inferiors.c (remove_thread): Discard any pending stop reply for
10342 this thread.
10343 * server.c (remove_all_on_match_pid): Rename to ...
10344 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10345 instead of a pid.
10346 (discard_queued_stop_replies): Change parameter to a ptid. Now
10347 extern.
10348 (handle_v_kill, kill_inferior_callback, captured_main)
10349 (process_serial_event): Adjust.
10350 * server.h (discard_queued_stop_replies): Declare.
10351
f0db101d
PA
103522015-08-21 Pedro Alves <palves@redhat.com>
10353
10354 * linux-low.c (wait_for_sigstop): Always switch to no thread
10355 selected if the previously current thread dies.
10356 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10357 process instead of the current thread's.
10358 * remote-utils.c (input_interrupt): Don't check if there's no
10359 current thread.
10360 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10361 current thread to the general thread fails, error out.
10362 (handle_qxfer_auxv, handle_qxfer_libraries)
10363 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10364 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10365 (handle_query): Check if there's a thread selected instead of
10366 checking whether there's any thread in the thread list.
10367 (handle_qxfer_threads, handle_qxfer_btrace)
10368 (handle_qxfer_btrace_conf): Don't error out early if there's no
10369 thread in the thread list.
10370 (handle_v_cont, myresume): Don't set the current thread to the
10371 continue thread.
10372 (process_serial_event) <Hg handling>: Also set thread_id if the
10373 previous general thread is still alive.
10374 (process_serial_event) <g/G handling>: If setting the current
10375 thread to the general thread fails, error out.
10376 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10377 thread's lwp instead of the current thread's.
10378 * target.c (set_desired_thread): If the desired thread was not
10379 found, leave the current thread pointing to NULL. Return an int
10380 (boolean) indicating success.
10381 * target.h (set_desired_thread): Change return type to int.
10382
40045d91
MF
103832015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10384
10385 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10386 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10387 #includes.
10388 (ps_get_thread_area): New function.
10389
45face3b
GB
103902015-08-19 Gary Benson <gbenson@redhat.com>
10391
10392 * hostio.c (handle_pread): Do not attempt to read more data
10393 than hostio_reply_with_data can fit in a packet.
10394
16d5f642
JB
103952015-08-18 Joel Brobecker <brobecker@adacore.com>
10396
10397 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10398
a738da3a
MF
103992015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10400
10401 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10402
33ebda9d
PA
104032015-08-06 Pedro Alves <palves@redhat.com>
10404
10405 * tracepoint.c (expr_eval_result): Now an int.
10406
a44892be
PA
104072015-08-06 Pedro Alves <palves@redhat.com>
10408
10409 * gdbthread.h (struct regcache): Forward declare.
10410 (struct thread_info) <regcache_data>: Now a struct regcache
10411 pointer.
10412 * inferiors.c (inferior_regcache_data)
10413 (set_inferior_regcache_data): Now work with struct regcache
10414 pointers.
10415 * inferiors.h (struct regcache): Forward declare.
10416 (inferior_regcache_data, set_inferior_regcache_data): Now work
10417 with struct regcache pointers.
10418 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10419 (free_register_cache_thread): Remove struct regcache pointer
10420 casts.
10421
608a1e46
PA
104222015-08-06 Pedro Alves <palves@redhat.com>
10423
10424 * server.c (captured_main): On error, print the exception message
10425 to stderr, and if run_once is set, throw a quit.
10426
f0ce0d3a
PA
104272015-08-06 Pedro Alves <palves@redhat.com>
10428
10429 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10430 the current thread.
10431
bf47e248
PA
104322015-08-06 Pedro Alves <palves@redhat.com>
10433
10434 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10435 reading beyond the passed in buffer length.
10436
b6b9ffcc
PL
104372015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10438
10439 * tracepoint.c (symbol_list) <required>: Remove.
10440
863d01bd
PA
104412015-08-06 Pedro Alves <palves@redhat.com>
10442
10443 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10444 count if stopping and suspending threads.
10445 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10446 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10447 (linux_detach): Complete an ongoing step-over.
10448 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10449 throughout.
10450 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10451 (linux_wait_1): If passing a signal to the inferior after
10452 finishing a step-over, unsuspend and re-resume all lwps. If we
10453 see a single-step event but the thread should be continuing, don't
10454 pass the trap to gdb.
10455 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10456 internal_error instead of gdb_assert.
10457 (enqueue_pending_signal): New function.
10458 (check_ptrace_stopped_lwp_gone): Add debug output.
10459 (start_step_over): Use internal_error instead of gdb_assert.
10460 (complete_ongoing_step_over): New function.
10461 (linux_resume_one_thread): Don't resume a suspended thread.
10462 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10463 it stepping.
10464
00db26fa
PA
104652015-08-06 Pedro Alves <palves@redhat.com>
10466
10467 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10468 (linux_thread_alive): Use lwp_is_marked_dead.
10469 (extended_event_reported): Delete.
10470 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10471 instead of extended_event_reported.
10472 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10473 as well.
10474 (lwp_is_marked_dead): New function.
10475 (lwp_running): Use lwp_is_marked_dead.
10476 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10477 comment.
10478
ad071a30
PA
104792015-08-06 Pedro Alves <palves@redhat.com>
10480
10481 * linux-low.c (linux_wait_1): Move fork event output out of the
10482 !report_to_gdb check. Pass event_child->waitstatus to
10483 target_waitstatus_to_string instead of ourstatus.
10484
524b57e6
YQ
104852015-08-04 Yao Qi <yao.qi@linaro.org>
10486
10487 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10488 if current_thread is 32 bit.
10489
6085d6f6
YQ
104902015-08-04 Yao Qi <yao.qi@linaro.org>
10491
10492 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10493 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10494 * server.c (extended_protocol): Remove "static".
10495 * server.h (extended_protocol): Declare it.
10496
8a7e4587
YQ
104972015-08-04 Yao Qi <yao.qi@linaro.org>
10498
10499 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10500 both aarch64 and aarch32.
10501 (aarch64_set_pc): Likewise.
10502
3b53ae99
YQ
105032015-08-04 Yao Qi <yao.qi@linaro.org>
10504
10505 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10506 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10507 arm-with-neon.xml to srv_xmlfiles.
10508 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10509 (is_64bit_tdesc): New function.
10510 (aarch64_linux_read_description): New function.
10511 (aarch64_arch_setup): Call aarch64_linux_read_description.
10512 (regs_info): Rename to regs_info_aarch64.
10513 (aarch64_regs_info): Return right regs_info.
10514 (initialize_low_arch): Call initialize_low_arch_aarch32.
10515
bd9e6534
YQ
105162015-08-04 Yao Qi <yao.qi@linaro.org>
10517
10518 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10519 * linux-aarch32-low.c: New file.
10520 * linux-aarch32-low.h: New file.
10521 * linux-arm-low.c (arm_fill_gregset): Move it to
10522 linux-aarch32-low.c.
10523 (arm_store_gregset): Likewise.
10524 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10525 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10526 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10527 (regs_info): Rename to regs_info_arm.
10528 (arm_regs_info): Return regs_info_aarch32 if
10529 have_ptrace_getregset is 1 and target description is
10530 arm_with_neon or arm_with_vfpv3.
10531 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10532 Call initialize_low_arch_aarch32 instead.
10533
ded48a5e
YQ
105342015-08-04 Yao Qi <yao.qi@linaro.org>
10535
10536 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10537 * linux-low.c: ... here.
10538 * linux-low.h (have_ptrace_getregset): Declare it.
10539
96e9210f
PA
105402015-08-04 Pedro Alves <palves@redhat.com>
10541
10542 * thread-db.c (struct thread_db): Use new typedefs.
10543 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10544 CHK calls.
10545 (disable_thread_event_reporting): Cast result of dlsym to
10546 destination function pointer type.
10547 (thread_db_mourn): Use td_ta_delete_ftype.
10548
af60a1ef
SL
105492015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10550
10551 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10552 arch variant.
10553 (CDX_BREAKPOINT): Define for R2.
10554 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10555 (the_low_target): Add comments.
10556
e8b41681
YQ
105572015-07-30 Yao Qi <yao.qi@linaro.org>
10558
10559 * linux-arm-low.c (arm_hwcap): Remove it.
10560 (arm_read_description): New local variable arm_hwcap. Don't
10561 set arm_hwcap to zero.
10562
89abb039
YQ
105632015-07-30 Yao Qi <yao.qi@linaro.org>
10564
10565 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10566 Use regcache->tdesc instead.
10567 (arm_store_wmmxregset): Likewise.
10568 (arm_fill_vfpregset): Likewise.
10569 (arm_store_vfpregset): Likewise.
10570
deca266c
YQ
105712015-07-30 Yao Qi <yao.qi@linaro.org>
10572
10573 * linux-arm-low.c: Include arch/arm.h.
10574 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10575 (arm_store_gregset): Likewise.
10576
aa58a496
SM
105772015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10578
10579 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10580 ptrace's 4th parameter.
10581
50904b25
YQ
105822015-07-27 Yao Qi <yao.qi@linaro.org>
10583
10584 * configure.srv (case aarch64*-*-linux*): Don't set
10585 srv_linux_usrregs.
10586
5826e159
PA
105872015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10588
10589 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10590 sys/ptrace.h.
10591 * linux-arm-low.c: Likewise.
10592 * linux-cris-low.c: Likewise.
10593 * linux-crisv32-low.c: Likewise.
10594 * linux-low.c: Likewise.
10595 * linux-m68k-low.c: Likewise.
10596 * linux-mips-low.c: Likewise.
10597 * linux-nios2-low.c: Likewise.
10598 * linux-s390-low.c: Likewise.
10599 * linux-sparc-low.c: Likewise.
10600 * linux-tic6x-low.c: Likewise.
10601 * linux-tile-low.c: Likewise.
10602 * linux-x86-low.c: Likewise.
10603
54019719
PA
106042015-07-24 Pedro Alves <palves@redhat.com>
10605
10606 * config.in: Regenerate.
10607 * configure: Regenerate.
10608
eb7aa561
PA
106092015-07-24 Pedro Alves <palves@redhat.com>
10610
10611 * acinclude.m4: Include ../ptrace.m4.
10612 * configure.ac: Call GDB_AC_PTRACE.
10613 * config.in, configure: Regenerate.
10614
55d7b841
YQ
106152015-07-24 Yao Qi <yao.qi@linaro.org>
10616
10617 * linux-low.c (linux_create_inferior): Remove setting to
10618 proc->priv->new_inferior.
10619 (linux_attach): Likewise.
10620 (linux_low_filter_event): Likewise.
10621 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10622
c06cbd92
YQ
106232015-07-24 Yao Qi <yao.qi@linaro.org>
10624
10625 * linux-low.c (linux_arch_setup): New function.
10626 (linux_low_filter_event): If proc->tdesc is NULL and
10627 proc->attached is true, call the_low_target.arch_setup.
10628 Otherwise, keep status pending, and return.
10629 (linux_resume_one_lwp_throw): Don't call get_pc if
10630 thread->while_stepping isn't NULL. Don't call
10631 get_thread_regcache if proc->tdesc is NULL.
10632 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10633 (linux_target_ops): Install arch_setup.
10634 * server.c (start_inferior): Call the_target->arch_setup.
10635 * target.h (struct target_ops) <arch_setup>: New field.
10636 (target_arch_setup): New marco.
10637 * lynx-low.c (lynx_target_ops): Update.
10638 * nto-low.c (nto_target_ops): Update.
10639 * spu-low.c (spu_target_ops): Update.
10640 * win32-low.c (win32_target_ops): Update.
10641
5ae3ebba
YQ
106422015-07-24 Yao Qi <yao.qi@linaro.org>
10643
10644 * linux-low.c (linux_add_process): Don't set
10645 proc->priv->new_inferior.
10646 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10647 (linux_attach): Likewise.
10648
eb97750b
YQ
106492015-07-24 Yao Qi <yao.qi@linaro.org>
10650
10651 * server.c (start_inferior): Code refactor.
10652
51aee833
YQ
106532015-07-24 Yao Qi <yao.qi@linaro.org>
10654
10655 * server.c (process_serial_event): Set general_thread.
10656
af1b22f3
YQ
106572015-07-21 Yao Qi <yao.qi@linaro.org>
10658
10659 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10660 aarch64_linux_get_debug_reg_capacity.
10661
554717a3
YQ
106622015-07-17 Yao Qi <yao.qi@linaro.org>
10663
10664 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10665 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10666 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10667 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10668 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10669 (AARCH64_HWP_ALIGNMENT): Likewise.
10670 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10671 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10672 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10673 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10674 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10675 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10676 (struct aarch64_debug_reg_state): Likewise.
10677 (struct arch_lwp_info): Likewise.
10678 (aarch64_align_watchpoint): Likewise.
10679 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10680 (aarch64_watchpoint_length): Likewise.
10681 (aarch64_point_encode_ctrl_reg): Likewise
10682 (aarch64_point_is_aligned): Likewise.
10683 (aarch64_align_watchpoint): Likewise.
10684 (aarch64_linux_set_debug_regs):
10685 (aarch64_dr_state_insert_one_point): Likewise.
10686 (aarch64_dr_state_remove_one_point): Likewise.
10687 (aarch64_handle_breakpoint): Likewise.
10688 (aarch64_handle_aligned_watchpoint): Likewise.
10689 (aarch64_handle_unaligned_watchpoint): Likewise.
10690 (aarch64_handle_watchpoint): Likewise.
10691
c67ca4de
YQ
106922015-07-17 Yao Qi <yao.qi@linaro.org>
10693
10694 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10695 and don't aarch64_get_debug_reg_state. All callers update.
10696 (aarch64_handle_aligned_watchpoint): Likewise.
10697 (aarch64_handle_unaligned_watchpoint): Likewise.
10698 (aarch64_handle_watchpoint): Likewise.
10699 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10700 (aarch64_remove_point): Likewise.
10701
25abf979
YQ
107022015-07-17 Yao Qi <yao.qi@linaro.org>
10703
10704 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10705 debug_printf.
10706 (aarch64_handle_unaligned_watchpoint): Likewise.
10707
db1ff28b
JK
107082015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10709
10710 Revert the previous 3 commits:
10711 Move gdb_regex* to common/
10712 Move linux_find_memory_regions_full & co.
10713 gdbserver build-id attribute generator
10714
700ca40f
JK
107152015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10716 Jan Kratochvil <jan.kratochvil@redhat.com>
10717
10718 gdbserver build-id attribute generator.
10719 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10720 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10721 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10722 (find_phdr): New.
10723 (get_dynamic): Use find_pdhr to traverse program headers.
10724 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10725 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10726 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10727 (get_hex_build_id): New.
10728 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10729 to reply XML document.
10730
9904185c
JK
107312015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10732 Jan Kratochvil <jan.kratochvil@redhat.com>
10733
10734 * target.c: Include target/target-utils.h and fcntl.h.
10735 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10736 (target_fileio_read_stralloc): New functions.
10737
6e5b4429
JK
107382015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10739
10740 * Makefile.in (OBS): Add gdb_regex.o.
10741 (gdb_regex.o): New.
10742 * config.in: Rebuilt.
10743 * configure: Rebuilt.
10744
ddc98fbf
JK
107452015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10746 Jan Kratochvil <jan.kratochvil@redhat.com>
10747
10748 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10749 * Makefile.in (OBS): Add target-utils.o.
10750 (linux-maps.o, target-utils.o): New.
10751 * configure.srv (srv_linux_obj): Add linux-maps.o.
10752
e57bb7a0
PL
107532015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10754
10755 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10756 function, return 1.
10757 (the_low_target): Install it.
10758
586b02a9
PA
107592015-07-14 Pedro Alves <palves@redhat.com>
10760
10761 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10762 Instead, ignore ECHILD, and throw an error for other errnos.
10763
58c1b36c
PA
107642015-07-10 Pedro Alves <palves@redhat.com>
10765
10766 * event-loop.c (struct callback_event) <data>: Change type to
10767 gdb_client_data instance instead of gdb_client_data pointer.
10768 (append_callback_event): Adjust.
10769
421530db
PL
107702015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10771
10772 * linux-aarch64-low.c: Add comments for each linux_target_ops
10773 method. Remove comments already covered in target_ops and
10774 linux_target_ops definitions.
10775 (the_low_target): Add comments for each unimplemented method.
10776
c2d65f38
YQ
107772015-07-09 Yao Qi <yao.qi@linaro.org>
10778
10779 * linux-aarch64-low.c (aarch64_regmap): Remove.
10780 (aarch64_usrregs_info): Remove.
10781 (regs_info): Set field usrregs to NULL.
10782
b20a6524
MM
107832015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10784
10785 * linux-low.c: Include "rsp-low.h"
10786 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10787 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10788 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10789 (handle_btrace_enable_pt): New.
10790 (handle_btrace_general_set): Support "pt".
10791 (handle_btrace_conf_general_set): Support "pt:size".
10792
96c97461
PL
107932015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10794
10795 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10796 Z_PACKET_SW_BP.
10797
37d66942
PL
107982015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10799
10800 * linux-aarch64-low.c: Remove comment about endianness.
10801 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10802 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10803 memcmp.
10804
dc06243f
GB
108052015-06-24 Gary Benson <gbenson@redhat.com>
10806
10807 * linux-i386-ipa.c (stdint.h): Do not include.
10808 * lynx-i386-low.c (stdint.h): Likewise.
10809 * lynx-ppc-low.c (stdint.h): Likewise.
10810 * mem-break.c (stdint.h): Likewise.
10811 * thread-db.c (stdint.h): Likewise.
10812 * tracepoint.c (stdint.h): Likewise.
10813 * win32-low.c (stdint.h): Likewise.
10814
124e13d9
SM
108152015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10816
10817 * server.c (write_qxfer_response): Update call to
10818 remote_escape_output.
10819
909c2cda
JK
108202015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10821 Jan Kratochvil <jan.kratochvil@redhat.com>
10822
10823 Merge multiple hex conversions.
10824 * gdbreplay.c (tohex): Rename to 'fromhex'.
10825 (logchar): Use fromhex.
10826
24c05f46
JK
108272015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10828
10829 * server.c (handle_qxfer_libraries): Set `version' attribute for
10830 <library-list>.
10831
14d2069a
GB
108322015-06-10 Gary Benson <gbenson@redhat.com>
10833
10834 * target.h (struct target_ops) <multifs_open>: New field.
10835 <multifs_unlink>: Likewise.
10836 <multifs_readlink>: Likewise.
10837 * linux-low.c (nat/linux-namespaces.h): New include.
10838 (linux_target_ops): Initialize the_target->multifs_open,
10839 the_target->multifs_unlink and the_target->multifs_readlink.
10840 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10841 * hostio.c (hostio_fs_pid): New static variable.
10842 (hostio_handle_new_gdb_connection): New function.
10843 (handle_setfs): Likewise.
10844 (handle_open): Use the_target->multifs_open as appropriate.
10845 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10846 (handle_readlink): Use the_target->multifs_readlink as
10847 appropriate.
10848 (handle_vFile): Handle vFile:setfs packets.
10849 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10850 after target_handle_new_gdb_connection.
10851
4b8b5e72
GB
108522015-06-10 Gary Benson <gbenson@redhat.com>
10853
10854 * configure.ac (AC_CHECK_FUNCS): Add setns.
10855 * config.in: Regenerate.
10856 * configure: Likewise.
10857 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10858 (linux-namespaces.o): New rule.
10859 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10860
3ac2e371
GB
108612015-06-09 Gary Benson <gbenson@redhat.com>
10862
10863 * hostio.c (handle_open): Process mode argument with
10864 fileio_to_host_mode.
10865
ca9b78ce
YQ
108662015-06-01 Yao Qi <yao.qi@linaro.org>
10867
10868 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10869 * linux-x86-low.c: Likewise.
10870
bfacd19d
DB
108712015-05-28 Don Breazeal <donb@codesourcery.com>
10872
10873 * linux-low.c (handle_extended_wait): Initialize
10874 thread_info.last_resume_kind for new fork children.
10875
452003ef
PA
108762015-05-15 Pedro Alves <palves@redhat.com>
10877
10878 * target.h (target_handle_new_gdb_connection): Rewrite using if
10879 wrapped in do/while.
10880
1041a03c
JB
108812015-05-14 Joel Brobecker <brobecker@adacore.com>
10882
10883 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10884 * configure, config.in: Regenerate.
10885 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10886 Declare typedef.
10887
c269dbdb
DB
108882015-05-12 Don Breazeal <donb@codesourcery.com>
10889
10890 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10891 PTRACE_EVENT_VFORK_DONE.
10892 (linux_low_ptrace_options, extended_event_reported): Add vfork
10893 events.
10894 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10895 and "vforkdone" for RSP 'T' Stop Reply Packet.
10896 * server.h (report_vfork_events): Declare
10897 global variable.
10898
3a8a0396
DB
108992015-05-12 Don Breazeal <donb@codesourcery.com>
10900
10901 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10902 (the_low_target) <new_fork>: Initialize new member.
10903 * linux-arm-low.c (arm_new_fork): New function.
10904 (the_low_target) <new_fork>: Initialize new member.
10905 * linux-low.c (handle_extended_wait): Call new target function
10906 new_fork.
10907 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10908 * linux-mips-low.c (mips_add_watchpoint): New function
10909 extracted from mips_insert_point.
10910 (the_low_target) <new_fork>: Initialize new member.
10911 (mips_linux_new_fork): New function.
10912 (mips_insert_point): Call mips_add_watchpoint.
10913 * linux-x86-low.c (x86_linux_new_fork): New function.
10914 (the_low_target) <new_fork>: Initialize new member.
10915
de0d863e
DB
109162015-05-12 Don Breazeal <donb@codesourcery.com>
10917
10918 * linux-low.c (handle_extended_wait): Implement return value,
10919 rename argument 'event_child' to 'event_lwp', handle
10920 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10921 (linux_low_ptrace_options): New function.
10922 (linux_low_filter_event): Call linux_low_ptrace_options,
10923 use different argument fo linux_enable_event_reporting,
10924 use return value from handle_extended_wait.
10925 (extended_event_reported): New function.
10926 (linux_wait_1): Call extended_event_reported and set
10927 status to report fork events.
10928 (linux_write_memory): Add pid to debug message.
10929 (reset_lwp_ptrace_options_callback): New function.
10930 (linux_handle_new_gdb_connection): New function.
10931 (linux_target_ops): Initialize new structure member.
10932 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10933 * lynx-low.c: Initialize new structure member.
10934 * remote-utils.c (prepare_resume_reply): Implement stop reason
10935 "fork" for "T" stop message.
10936 * server.c (handle_query): Call handle_new_gdb_connection.
10937 * server.h (report_fork_events): Declare global flag.
10938 * target.h (struct target_ops) <handle_new_gdb_connection>:
10939 New member.
10940 (target_handle_new_gdb_connection): New macro.
10941 * win32-low.c: Initialize new structure member.
10942
ddcbc397
DB
109432015-05-12 Don Breazeal <donb@codesourcery.com>
10944
10945 * mem-break.c (APPEND_TO_LIST): Define macro.
10946 (clone_agent_expr): New function.
10947 (clone_one_breakpoint): New function.
10948 (clone_all_breakpoints): New function.
10949 * mem-break.h: Declare new functions.
10950
89245bc0
DB
109512015-05-12 Don Breazeal <donb@codesourcery.com>
10952
10953 * linux-low.c (linux_supports_fork_events): New function.
10954 (linux_supports_vfork_events): New function.
10955 (linux_target_ops): Initialize new structure members.
10956 (initialize_low): Call linux_check_ptrace_features.
10957 * lynx-low.c (lynx_target_ops): Initialize new structure
10958 members.
10959 * server.c (report_fork_events, report_vfork_events):
10960 New global flags.
10961 (handle_query): Add new features to qSupported packet and
10962 response.
10963 (captured_main): Initialize new global variables.
10964 * target.h (struct target_ops) <supports_fork_events>:
10965 New member.
10966 <supports_vfork_events>: New member.
10967 (target_supports_fork_events): New macro.
10968 (target_supports_vfork_events): New macro.
10969 * win32-low.c (win32_target_ops): Initialize new structure
10970 members.
10971
835205d0
GB
109722015-05-12 Gary Benson <gbenson@redhat.com>
10973
10974 * server.c (handle_qxfer_exec_file): Use current process
10975 if annex is empty.
10976
21e94bd9
SL
109772015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10978
10979 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10980 Remove HAVE_PTRACE_GETREGS conditionals.
10981 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10982 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10983
45614f15
YQ
109842015-05-08 Yao Qi <yao.qi@linaro.org>
10985
10986 * linux-low.c (linux_supports_conditional_breakpoints): New
10987 function.
10988 (linux_target_ops): Install new target method.
10989 * lynx-low.c (lynx_target_ops): Install NULL hook for
10990 supports_conditional_breakpoints.
10991 * nto-low.c (nto_target_ops): Likewise.
10992 * spu-low.c (spu_target_ops): Likewise.
10993 * win32-low.c (win32_target_ops): Likewise.
10994 * server.c (handle_query): Check
10995 target_supports_conditional_breakpoints.
10996 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10997 New field.
10998 (target_supports_conditional_breakpoints): New macro.
10999
80ad801e
PA
110002015-05-06 Pedro Alves <palves@redhat.com>
11001
11002 PR server/18081
11003 * server.c (start_inferior): If the process exits, mourn it.
11004
819843c7
GB
110052015-04-21 Gary Benson <gbenson@redhat.com>
11006
11007 * hostio.c (fileio_open_flags_to_host): Factored out to
11008 fileio_to_host_openflags in common/fileio.c. Single use
11009 updated.
11010
a2d5a9d7
MF
110112015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11012
11013 * linux-xtensa-low.c (xtensa_fill_gregset)
11014 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11015 XCHAL_HAVE_LOOP.
11016
deb44829
MF
110172015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11018
11019 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11020 (regs_info): Replace usrregs pointer with NULL.
11021
e57f1de3
GB
110222015-04-17 Gary Benson <gbenson@redhat.com>
11023
11024 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11025 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11026 * server.c (handle_qxfer_exec_file): New function.
11027 (qxfer_packets): Add exec-file entry.
11028 (handle_query): Report qXfer:exec-file:read as supported packet.
11029
62828379
RN
110302015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11031
11032 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11033
b88bb450
GB
110342015-04-09 Gary Benson <gbenson@redhat.com>
11035
11036 * hostio-errno.c (errno_to_fileio_error): Remove function.
11037 Update caller to use remote_fileio_to_fio_error.
11038
c8f4bfdd
YQ
110392015-04-09 Yao Qi <yao.qi@linaro.org>
11040
11041 * linux-low.c (linux_insert_point): Call
11042 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11043 (linux_remove_point): Call remove_memory_breakpoint if type is
11044 raw_bkpt_type_sw.
11045 * linux-x86-low.c (x86_insert_point): Don't call
11046 insert_memory_breakpoint.
11047 (x86_remove_point): Don't call remove_memory_breakpoint.
11048
41f98f02
PA
110492015-04-01 Pedro Alves <palves@redhat.com>
11050 Cleber Rosa <crosa@redhat.com>
11051
11052 * server.c (gdbserver_usage): Reorganize and extend the usage
11053 message.
11054
2bf6fb9d
PA
110552015-03-24 Pedro Alves <palves@redhat.com>
11056
11057 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11058 output. Also dump TRAP_TRACE.
11059 (linux_low_filter_event): In debug output, distinguish a
11060 resume_stop SIGSTOP from a delayed SIGSTOP.
11061
369f6daa
GB
110622015-03-24 Gary Benson <gbenson@redhat.com>
11063
11064 * linux-x86-low.c (x86_linux_new_thread): Moved to
11065 nat/x86-linux.c.
11066 (x86_linux_prepare_to_resume): Likewise.
11067
8e5d4070
GB
110682015-03-24 Gary Benson <gbenson@redhat.com>
11069
11070 * Makefile.in (x86-linux-dregs.o): New rule.
11071 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11072 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11073 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11074 (x86_linux_dr_get): Likewise.
11075 (x86_linux_dr_set): Likewise.
11076 (update_debug_registers_callback): Likewise.
11077 (x86_linux_dr_set_addr): Likewise.
11078 (x86_linux_dr_get_addr): Likewise.
11079 (x86_linux_dr_set_control): Likewise.
11080 (x86_linux_dr_get_control): Likewise.
11081 (x86_linux_dr_get_status): Likewise.
11082 (x86_linux_update_debug_registers): Likewise.
11083
2b95d440
GB
110842015-03-24 Gary Benson <gbenson@redhat.com>
11085
11086 * linux-x86-low.c (x86_linux_update_debug_registers):
11087 New function, factored out from...
11088 (x86_linux_prepare_to_resume): ...this.
11089
14b0bc68
GB
110902015-03-24 Gary Benson <gbenson@redhat.com>
11091
11092 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11093 (x86_linux_dr_set): Likewise.
11094 (update_debug_registers_callback): Likewise.
11095 (x86_linux_dr_set_addr): Likewise.
11096 (x86_linux_dr_get_addr): Likewise.
11097 (x86_linux_dr_set_control): Likewise.
11098 (x86_linux_dr_get_control): Likewise.
11099 (x86_linux_dr_get_status): Likewise.
11100 (x86_linux_prepare_to_resume): Likewise.
11101
5dfe6ca8
GB
111022015-03-24 Gary Benson <gbenson@redhat.com>
11103
11104 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11105 Use perror_with_name. Pass string through gettext.
11106 (x86_linux_dr_set): Likewise.
11107
d33472ad
GB
111082015-03-24 Gary Benson <gbenson@redhat.com>
11109
11110 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11111 (x86_linux_dr_set_addr): ...this.
11112 (x86_dr_low_get_addr): Rename to...
11113 (x86_linux_dr_get_addr): ...this.
11114 (x86_dr_low_set_control): Rename to...
11115 (x86_linux_dr_set_control): ...this.
11116 (x86_dr_low_get_control): Rename to...
11117 (x86_linux_dr_get_control): ...this.
11118 (x86_dr_low_get_status): Rename to...
11119 (x86_linux_dr_get_status): ...this.
11120 (x86_dr_low): Update with new function names.
11121
4b134ca1
GB
111222015-03-24 Gary Benson <gbenson@redhat.com>
11123
11124 * Makefile.in (x86-linux.o): New rule.
11125 * configure.srv: Add x86-linux.o to relevant targets.
11126 * linux-low.c (lwp_set_arch_private_info): New function.
11127 (lwp_arch_private_info): Likewise.
11128 * linux-x86-low.c: Include nat/x86-linux.h.
11129 (arch_lwp_info): Removed structure.
11130 (update_debug_registers_callback):
11131 Use lwp_set_debug_registers_changed.
11132 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11133 and lwp_set_debug_registers_changed.
11134 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11135
34c703da
GB
111362015-03-24 Gary Benson <gbenson@redhat.com>
11137
11138 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11139 * linux-arm-low.c (arm_new_thread): Likewise.
11140 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11141 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11142 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11143 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11144
cff068da
GB
111452015-03-24 Gary Benson <gbenson@redhat.com>
11146
11147 * linux-low.c (ptid_of_lwp): New function.
11148 (lwp_is_stopped): Likewise.
11149 (lwp_stop_reason): Likewise.
11150 * linux-x86-low.c (update_debug_registers_callback):
11151 Use lwp_is_stopped.
11152 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11153 lwp_stop_reason.
11154
b2f7c7e8
GB
111552015-03-24 Gary Benson <gbenson@redhat.com>
11156
11157 * linux-low.h (linux_stop_lwp): Remove declaration.
11158
6d4ee8c6
GB
111592015-03-24 Gary Benson <gbenson@redhat.com>
11160
11161 * linux-low.h: Include nat/linux-nat.h.
11162 * linux-low.c (iterate_over_lwps_args): New structure.
11163 (iterate_over_lwps_filter): New function.
11164 (iterate_over_lwps): Likewise.
11165 * linux-x86-low.c (update_debug_registers_callback):
11166 Update signature to what iterate_over_lwps expects.
11167 Remove PID check that iterate_over_lwps now performs.
11168 (x86_dr_low_set_addr): Use iterate_over_lwps.
11169 (x86_dr_low_set_control): Likewise.
11170
70a0bb6b
GB
111712015-03-24 Gary Benson <gbenson@redhat.com>
11172
11173 * linux-x86-low.c (x86_debug_reg_state): New function.
11174 (x86_linux_prepare_to_resume): Use the above.
11175
7b669087
GB
111762015-03-24 Gary Benson <gbenson@redhat.com>
11177
11178 * linux-low.c (current_lwp_ptid): New function.
11179 * linux-x86-low.c: Include nat/linux-nat.h.
11180 (x86_dr_low_get_addr): Use current_lwp_ptid.
11181 (x86_dr_low_get_control): Likewise.
11182 (x86_dr_low_get_status): Likewise.
11183
eef49a3d
PA
111842015-03-20 Pedro Alves <palves@redhat.com>
11185
11186 * tracepoint.c (cmd_qtstatus): Make "str" const.
11187
b2333d22
PA
111882015-03-20 Pedro Alves <palves@redhat.com>
11189
11190 * server.c (handle_general_set): Make "req_str" const.
11191
23f238d3
PA
111922015-03-19 Pedro Alves <palves@redhat.com>
11193
11194 * linux-low.c (linux_resume_one_lwp): Rename to ...
11195 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11196 instead call perror_with_name.
11197 (check_ptrace_stopped_lwp_gone): New function.
11198 (linux_resume_one_lwp): Reimplement as wrapper around
11199 linux_resume_one_lwp_throw that swallows errors if the LWP is
11200 gone.
11201
91baf43f
PA
112022015-03-19 Pedro Alves <palves@redhat.com>
11203
11204 * linux-low.c (count_events_callback, select_event_lwp_callback):
11205 No longer check whether the thread has resume_stop as last resume
11206 kind.
11207
8bf3b159
PA
112082015-03-19 Pedro Alves <palves@redhat.com>
11209
11210 * linux-low.c (count_events_callback, select_event_lwp_callback):
11211 Use the lwp's status_pending_p field, not the thread's.
11212
b90fc188
PA
112132015-03-19 Pedro Alves <palves@redhat.com>
11214
11215 * linux-low.c (select_event_lwp_callback): Update comments to
11216 no longer mention SIGTRAP.
11217
464b0089
GB
112182015-03-18 Gary Benson <gbenson@redhat.com>
11219
11220 * server.c (handle_query): Do not report vFile:fstat as supported.
11221
aa9e327f
GB
112222015-03-11 Gary Benson <gbenson@redhat.com>
11223
11224 * hostio.c (sys/types.h): New include.
11225 (sys/stat.h): Likewise.
11226 (common-remote-fileio.h): Likewise.
11227 (handle_fstat): New function.
11228 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11229
791c0056
GB
112302015-03-11 Gary Benson <gbenson@redhat.com>
11231
11232 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11233 struct stat.st_blocks and struct stat.st_blksize.
11234 * configure: Regenerate.
11235 * config.in: Likewise.
11236 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11237 (OBS): Add common-remote-fileio.o.
11238 (common-remote-fileio.o): New rule.
11239
9a9df970
PA
112402015-03-09 Pedro Alves <palves@redhat.com>
11241
11242 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11243 'struct sockaddr' pointer in 'accept' call.
11244
9eb1356e
PA
112452015-03-09 Pedro Alves <palves@redhat.com>
11246
11247 Revert:
11248 2015-03-07 Pedro Alves <palves@redhat.com>
11249 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11250 or <winsock2.h> here. Instead include "gdb_socket.h".
11251 (remote_open): Use union gdb_sockaddr_u.
11252 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11253 or <winsock2.h> here. Instead include "gdb_socket.h".
11254 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11255 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11256 or <sys/un.h>.
11257 (init_named_socket, gdb_agent_helper_thread): Use union
11258 gdb_sockaddr_u.
11259
aac331e4
PA
112602015-03-07 Pedro Alves <palves@redhat.com>
11261
11262 * configure.ac (build_warnings): Move
11263 -Wdeclaration-after-statement to the C-specific set.
11264 * configure: Regenerate.
11265
366c75fc
PA
112662015-03-07 Pedro Alves <palves@redhat.com>
11267
11268 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11269 or <winsock2.h> here. Instead include "gdb_socket.h".
11270 (remote_open): Use union gdb_sockaddr_u.
11271 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11272 or <winsock2.h> here. Instead include "gdb_socket.h".
11273 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11274 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11275 or <sys/un.h>.
11276 (init_named_socket, gdb_agent_helper_thread): Use union
11277 gdb_sockaddr_u.
11278
492d29ea
PA
112792015-03-07 Pedro Alves <palves@redhat.com>
11280
11281 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11282 instead.
11283
60a191ed
YQ
112842015-03-06 Yao Qi <yao.qi@linaro.org>
11285
11286 * linux-aarch64-low.c (aarch64_insert_point): Use
11287 show_debug_regs as a boolean.
11288 (aarch64_remove_point): Likewise.
11289
f5771b1d
PA
112902015-03-05 Pedro Alves <palves@redhat.com>
11291
11292 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11293 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11294 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11295 * nto-low.c (nto_target_ops): Likewise.
11296 * spu-low.c (spu_target_ops): Likewise.
11297 * win32-low.c (win32_target_ops): Likewise.
11298
3e572f71
PA
112992015-03-04 Pedro Alves <palves@redhat.com>
11300
72f4393d 11301 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11302 Decide whether a breakpoint triggered based on the SIGTRAP's
11303 siginfo.si_code.
72f4393d
L
11304 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11305 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11306 (linux_low_filter_event): Check for breakpoints before checking
11307 watchpoints.
11308 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11309 siginfo.si_code.
72f4393d
L
11310 (linux_stopped_by_sw_breakpoint)
11311 (linux_supports_stopped_by_sw_breakpoint)
11312 (linux_stopped_by_hw_breakpoint)
11313 (linux_supports_stopped_by_hw_breakpoint): New functions.
11314 (linux_target_ops): Install new target methods.
3e572f71 11315
1ec68e26
PA
113162015-03-04 Pedro Alves <palves@redhat.com>
11317
11318 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11319 * server.c (swbreak_feature, hwbreak_feature): New globals.
11320 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11321 (captured_main): Clear swbreak_feature and hwbreak_feature.
11322 * server.h (swbreak_feature, hwbreak_feature): Declare.
11323 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11324 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11325 supports_stopped_by_hw_breakpoint>: New fields.
11326 (target_supports_stopped_by_sw_breakpoint)
11327 (target_stopped_by_sw_breakpoint)
11328 (target_supports_stopped_by_hw_breakpoint)
11329 (target_stopped_by_hw_breakpoint): Declare.
11330
15c66dd6
PA
113312015-03-04 Pedro Alves <palves@redhat.com>
11332
11333 enum lwp_stop_reason -> enum target_stop_reason
11334 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11335 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11336 (linux_wait_1, stuck_in_jump_pad_callback)
11337 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11338 (linux_stopped_by_watchpoint):
11339 * linux-low.h (enum lwp_stop_reason): Delete.
11340 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11341 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11342
98fc70d6
YQ
113432015-03-04 Yao Qi <yao.qi@linaro.org>
11344
11345 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11346
dd2ac174
GB
113472015-03-03 Gary Benson <gbenson@redhat.com>
11348
11349 * hostio.c (handle_vFile): Fix prefix lengths.
11350
d68e53f4
MM
113512015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11352
11353 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11354 ptr_bits.
11355
bf2d68ab
AA
113562015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11357
11358 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11359 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11360 (clean): Add "rm -f" for above C files.
11361 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11362 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11363 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11364 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11365 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11366 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11367 (init_registers_s390x_vx_linux64)
11368 (init_registers_s390x_tevx_linux64)
11369 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11370 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11371 declarations.
11372 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11373 (s390_store_vxrs_high): New functions.
11374 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11375 NT_S390_VXRS_HIGH.
11376 (s390_arch_setup): Add logic for selecting one of the new target
11377 descriptions. Activate the new vector regsets if applicable.
11378 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11379 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11380 and init_registers_s390x_tevx_linux64.
11381
c966a859
PA
113822015-03-01 Pedro Alves <palves@redhat.com>
11383
11384 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11385 parameter.
11386
4180215b
PA
113872015-02-27 Pedro Alves <palves@redhat.com>
11388
11389 * linux-x86-low.c (u_debugreg_offset): New function.
11390 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11391
749bab01
PA
113922015-02-27 Pedro Alves <palves@redhat.com>
11393
11394 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11395 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11396 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11397 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11398 (ps_lsetfpregs, ps_getpid)
11399 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11400 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11401 (ps_lsetxregs, ps_plog): Declare.
11402
3c14e5a3
PA
114032015-02-27 Pedro Alves <palves@redhat.com>
11404
11405 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11406 IP_AGENT_EXPORT_FUNC.
11407 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11408 IP_AGENT_EXPORT_FUNC.
11409 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11410 (IP_AGENT_EXPORT): Delete.
11411 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11412 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11413 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11414 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11415 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11416 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11417 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11418 (traceframe_read_count, traceframe_write_count)
11419 (traceframes_created, trace_state_variables, get_raw_reg)
11420 (get_trace_state_variable_value, set_trace_state_variable_value)
11421 (ust_loaded, helper_thread_id, cmd_buf): Use
11422 IPA_SYM_EXPORTED_NAME.
11423 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11424 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11425 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11426 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11427 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11428 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11429 EXTERN_C_PUSH/EXTERN_C_POP.
11430 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11431 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11432 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11433 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11434 (traceframe_write_count, traceframe_read_count)
11435 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11436 (about_to_request_buffer_space, get_trace_state_variable_value)
11437 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11438 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11439 EXTERN_C_PUSH/EXTERN_C_POP.
11440 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11441 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11442 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11443 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11444 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11445 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11446 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11447 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11448 Define.
11449 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11450 (IP_AGENT_EXPORT_VAR_DECL): Define.
11451 (tracing): Declare.
11452 (gdb_agent_get_raw_reg): Declare.
11453
fe978cb0
PA
114542015-02-27 Tom Tromey <tromey@redhat.com>
11455 Pedro Alves <palves@redhat.com>
11456
11457 Rename symbols whose names are reserved C++ keywords throughout.
11458
3bc3d82a
PA
114592015-02-27 Pedro Alves <palves@redhat.com>
11460
11461 * Makefile.in (COMPILER): New, get it from autoconf.
11462 (CXX): Get from autoconf instead.
11463 (COMPILE.pre): Use COMPILER.
11464 (CC-LD): Rename to ...
11465 (CC_LD): ... this. Use COMPILER.
11466 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11467 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11468 * acinclude.m4: Include build-with-cxx.m4.
11469 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11470 Disable -Werror by default if building in C++ mode.
11471 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11472 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11473 the C++ compiler. Save/restore CXXFLAGS too.
11474 * configure: Regenerate.
11475
07697489
PA
114762015-02-27 Pedro Alves <palves@redhat.com>
11477
11478 * acinclude.m4: Include libiberty.m4.
11479 * configure.ac: Call libiberty_INIT.
11480 * config.in, configure: Regenerate.
11481
9beb7c4e
PA
114822015-02-26 Pedro Alves <palves@redhat.com>
11483
11484 * linux-low.c (linux_wait_1): When incrementing the PC past a
11485 program breakpoint always use the_low_target.breakpoint_len as
11486 increment, rather than the maximum between that and
11487 the_low_target.decr_pc_after_break.
11488
8090aef2
PA
114892015-02-23 Pedro Alves <palves@redhat.com>
11490
11491 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11492 thread was doing a step-over; always adjust the PC if
11493 we stepped over a permanent breakpoint.
11494 (linux_wait_1): If we stepped over breakpoint that was on top of a
11495 permanent breakpoint, manually advance the PC past it.
11496
bc9540e8
PA
114972015-02-23 Pedro Alves <palves@redhat.com>
11498
11499 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11500 modes.
11501 (x86_fill_gregset, x86_store_gregset): Use it when handling
11502 $orig_eax.
11503
2db9a427
PA
115042015-02-20 Pedro Alves <palves@redhat.com>
11505
11506 * thread-db.c: Include "nat/linux-procfs.h".
11507 (thread_db_init): Skip listing new threads if the kernel supports
11508 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11509
afa8d396
PA
115102015-02-20 Pedro Alves <palves@redhat.com>
11511
11512 * linux-low.c (status_pending_p_callback): Use ptid_match.
11513
c9587f88
AT
115142015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11515
11516 PR breakpoints/16812
11517 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11518 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11519 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11520
b05ec7a5
AT
115212015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11522
11523 PR breakpoints/15956
11524 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11525
d33501a5
MM
115262015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11527
11528 * linux-low.c (linux_low_btrace_conf): Print size.
11529 * server.c (handle_btrace_conf_general_set): New.
11530 (hanle_general_set): Call handle_btrace_conf_general_set.
11531 (handle_query): Report Qbtrace-conf:bts:size as supported.
11532
f4abbc16
MM
115332015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11534
11535 * linux-low.c (linux_low_enable_btrace): Update parameters.
11536 (linux_low_btrace_conf): New.
11537 (linux_target_ops)<to_btrace_conf>: Initialize.
11538 * server.c (current_btrace_conf): New.
11539 (handle_btrace_enable): Rename to ...
11540 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11541 to target_enable_btrace. Update comment. Update users.
11542 (handle_qxfer_btrace_conf): New.
11543 (qxfer_packets): Add btrace-conf entry.
11544 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11545 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11546 (target_ops)<read_btrace_conf>: New.
11547 (target_enable_btrace): Update parameters.
11548 (target_read_btrace_conf): New.
11549
043c3577
MM
115502015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11551
11552 * server.c (handle_btrace_general_set): Remove call to
11553 target_supports_btrace.
11554 (supported_btrace_packets): New.
11555 (handle_query): Call supported_btrace_packets.
11556 * target.h: include btrace-common.h.
11557 (btrace_target_info): Removed.
11558 (supports_btrace, target_supports_btrace): Update parameters.
11559
734b0e4b
MM
115602015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11561
11562 * Makefile.in (SFILES): Add common/btrace-common.c.
11563 (OBS): Add common/btrace-common.o.
11564 (btrace-common.o): Add build rules.
11565 * linux-low: Include btrace-common.h.
11566 (linux_low_read_btrace): Use struct btrace_data. Call
11567 btrace_data_init and btrace_data_fini.
11568
d6c146e9
PA
115692015-02-06 Pedro Alves <palves@redhat.com>
11570
11571 * thread-db.c (find_new_threads_callback): Add debug output.
11572
20ba1ce6
PA
115732015-02-04 Pedro Alves <palves@redhat.com>
11574
11575 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11576 (resume_stopped_resumed_lwps): New function.
11577 (linux_wait_for_event_filtered): Use it.
11578
8cc73a39
SDJ
115792015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11580
11581 * Makefile.in (SFILES): Add linux-personality.c.
11582 (linux-personality.o): New rule.
11583 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11584 list of objects to be built.
11585 * linux-low.c: Include nat/linux-personality.h.
11586 (linux_create_inferior): Remove code to disable address space
11587 randomization (moved to ../nat/linux-personality.c). Create
11588 cleanup to disable address space randomization.
11589
fb23d554
SDJ
115902015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11591
11592 * Makefile.in (posix-strerror.o): New rule.
11593 (mingw-strerror.o): Likewise.
11594 * configure: Regenerated.
11595 * configure.ac: Source file ../common/common.host. Initialize new
11596 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11597
cdf43629
YQ
115982015-01-14 Yao Qi <yao@codesourcery.com>
11599
11600 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11601 (ppc-linux.o): New rule.
11602 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11603 * configure.ac: AC_CHECK_FUNCS(getauxval).
11604 * config.in: Re-generated.
11605 * configure: Re-generated.
11606 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11607 ppc64_64bit_inferior_p
11608
514c5338
YQ
116092015-01-14 Yao Qi <yao@codesourcery.com>
11610
11611 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11612 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11613 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11614 (PT_ORIG_R3, PT_TRAP): Likewise.
11615 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11616 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11617 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11618
3368c1e5
JB
116192015-01-10 Joel Brobecker <brobecker@adacore.com>
11620
11621 * i387-fp.c (i387_cache_to_xsave): In look over
11622 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11623 zmmh_low_space field by use of zmmh_high_space.
11624
582511be
PA
116252015-01-09 Pedro Alves <palves@redhat.com>
11626
11627 * linux-low.c (step_over_bkpt): Move higher up in the file.
11628 (handle_extended_wait): Don't store the stop_pc here.
11629 (get_stop_pc): Adjust comments and rename to ...
11630 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11631 stopped for a software breakpoint or hardware breakpoint.
11632 (thread_still_has_status_pending_p): New function.
11633 (status_pending_p_callback): Use
11634 thread_still_has_status_pending_p. If the event is no longer
11635 interesting, resume the LWP.
11636 (handle_tracepoints): Add assert.
11637 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11638 (wstatus_maybe_breakpoint): New function.
11639 (cancel_breakpoint): Delete function.
11640 (check_stopped_by_watchpoint): New function, factored out from
11641 linux_low_filter_event.
11642 (lp_status_maybe_breakpoint): Delete function.
11643 (linux_low_filter_event): Remove filter_ptid argument.
11644 Leave thread group exits pending here. Store the LWP's stop PC.
11645 Always leave events pending.
11646 (linux_wait_for_event_filtered): Pull all events out of the
11647 kernel, and leave them all pending.
11648 (count_events_callback, select_event_lwp_callback): Consider all
11649 events.
11650 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11651 (select_event_lwp): Only give preference to the stepping LWP in
11652 all-stop mode. Adjust comments.
11653 (ignore_event): New function.
11654 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11655 references to cancel_breakpoints. Adjust to renames. Also give
11656 equal priority to all LWPs that have had events in non-stop mode.
11657 If reporting a software breakpoint event, unadjust the LWP's PC.
11658 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11659 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11660 Adjust.
11661 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11662 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11663 (linux_stopped_by_watchpoint): Adjust.
11664 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11665 * linux-low.h (enum lwp_stop_reason): New.
11666 (struct lwp_info) <stop_pc>: Adjust comment.
11667 <stopped_by_watchpoint>: Delete field.
11668 <stop_reason>: New field.
11669 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11670 * mem-break.c (software_breakpoint_inserted_here)
11671 (hardware_breakpoint_inserted_here): New function.
11672 * mem-break.h (software_breakpoint_inserted_here)
11673 (hardware_breakpoint_inserted_here): Declare.
11674 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11675 (cancel_breakpoints): Delete.
11676 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11677 (upload_fast_traceframes): Remove references to
11678 cancel_breakpoints.
11679
a33e3959
PA
116802015-01-09 Pedro Alves <palves@redhat.com>
11681
11682 * thread-db.c (find_new_threads_callback): Ignore thread if the
11683 kernel thread ID is -1.
11684
8784d563
PA
116852015-01-09 Pedro Alves <palves@redhat.com>
11686
11687 * linux-low.c (linux_attach_fail_reason_string): Move to
11688 nat/linux-ptrace.c, and rename.
11689 (linux_attach_lwp): Update comment.
11690 (attach_proc_task_lwp_callback): New function.
11691 (linux_attach): Adjust to rename and use
11692 linux_proc_attach_tgid_threads.
11693 (linux_attach_fail_reason_string): Delete declaration.
11694
76f2b779
JB
116952015-01-01 Joel Brobecker <brobecker@adacore.com>
11696
11697 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11698 * server.c (gdbserver_version): Likewise.
11699
fafcc06a
SDJ
117002014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11701
11702 * remote-utils.c: Include ctype.h.
11703 (input_interrupt): Explicitly handle the case when the char
11704 received is the NUL byte. Improve the printing of non-ASCII
11705 characters.
11706
beed38b8
JB
117072014-12-16 Joel Brobecker <brobecker@adacore.com>
11708
11709 * linux-low.c (linux_low_filter_event): Update call to
11710 linux_enable_event_reporting following the addition of
11711 a new parameter to that function.
11712
bf330350
CU
117132014-12-16 Catalin Udma <catalin.udma@freescale.com>
11714
11715 PR server/17457
11716 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11717 (AARCH64_FPCR_REGNO): Likewise.
11718 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11719 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11720 (aarch64_store_fpregset): Likewise.
11721
5227d625
JB
117222014-12-15 Joel Brobecker <brobecker@adacore.com>
11723
11724 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11725 Remove FIXME comment about assumption about N.
11726
f93b65a0
JB
117272014-12-13 Joel Brobecker <brobecker@adacore.com>
11728
11729 * configure.ac: If large-file support is disabled in GDBserver,
11730 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11731 * configure: Regenerate.
11732
e5a9158d
AA
117332014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11734
11735 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11736 warning upon ENODATA from ptrace.
11737 * linux-s390-low.c (s390_store_tdb): New.
11738 (s390_regsets): Add regset for NT_S390_TDB.
11739
feea5f36
AA
117402014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11741
11742 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11743 without a fill_function.
11744 * linux-s390-low.c (s390_fill_last_break): Remove.
11745 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11746 (s390_arch_setup): Use regset's size instead of fill_function for
11747 loop end condition.
11748
098dbe61
AA
117492014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11750
11751 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11752 the regset's store function when ptrace returned an error.
11753 * regcache.c (get_thread_regcache): Invalidate register cache
11754 before fetching inferior's registers.
11755
28eef672
AA
117562014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11757
11758 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11759 while-loop as for-loop.
11760 (regsets_store_inferior_registers): Likewise.
11761
bdca27a2
YQ
117622014-11-28 Yao Qi <yao@codesourcery.com>
11763
11764 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11765 * config.in, configure: Re-generate.
11766 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11767 is defined.
11768
9c232dda
YQ
117692014-11-21 Yao Qi <yao@codesourcery.com>
11770
11771 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11772 (AC_CHECK_HEADERS): Remove malloc.h.
11773 * configure: Re-generated.
11774 * config.in: Re-generated.
11775 * server.h: Don't include alloca.h and malloc.h.
11776 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11777 Don't include malloc.h.
11778
43968415
JB
117792014-11-17 Joel Brobecker <brobecker@adacore.com>
11780
11781 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11782 corresponding ERRNO check in same block.
11783
40e91bc7
PA
117842014-11-12 Pedro Alves <palves@redhat.com>
11785
11786 * server.c (cont_thread): Update comment.
11787 (start_inferior, attach_inferior): No longer clear cont_thread.
11788 (handle_v_cont): No longer set cont_thread.
11789 (captured_main): Clear cont_thread each time a GDB connects.
11790
c2c118cf
PA
117912014-11-12 Pedro Alves <palves@redhat.com>
11792
11793 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11794 thread, and don't resume all threads if the Hc thread has exited.
11795
78708b7c
PA
117962014-11-12 Pedro Alves <palves@redhat.com>
11797
11798 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11799 the process group instead of to a specific LWP.
11800
a2abc7de
PA
118012014-10-15 Pedro Alves <palves@redhat.com>
11802
11803 PR server/17487
11804 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11805 parameter.
11806 (arm_set_thread_context): Delete.
11807 (the_low_target): Adjust.
11808 * win32-i386-low.c (debug_registers_changed)
11809 (debug_registers_used): Delete.
11810 (update_debug_registers_callback): New function.
11811 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11812 needing to update their debug registers.
11813 (win32_get_current_dr): New function.
11814 (x86_dr_low_get_addr, x86_dr_low_get_control)
11815 (x86_dr_low_get_status): Fetch the debug register from the thread
11816 record's context.
11817 (i386_initial_stuff): Adjust.
11818 (i386_get_thread_context): Remove current_event parameter. Don't
11819 clear debug_registers_changed nor copy DR values to
11820 debug_reg_state.
11821 (i386_set_thread_context): Delete.
11822 (i386_prepare_to_resume): New function.
11823 (i386_thread_added): Mark the thread as needing to update irs
11824 debug registers.
11825 (the_low_target): Remove i386_set_thread_context and install
11826 i386_prepare_to_resume.
11827 * win32-low.c (win32_get_thread_context): Adjust.
11828 (win32_set_thread_context): Use SetThreadContext
11829 directly.
11830 (win32_prepare_to_resume): New function.
11831 (win32_require_context): New function, factored out from ...
11832 (thread_rec): ... this.
11833 (continue_one_thread): Call win32_prepare_to_resume on each thread
11834 we're about to continue.
11835 (win32_resume): Call win32_prepare_to_resume on the event thread.
11836 * win32-low.h (struct win32_thread_info)
11837 <debug_registers_changed>: New field.
11838 (struct win32_target_ops): Change prototype of set_thread_context,
11839 delete set_thread_context and add prepare_to_resume.
11840 (win32_require_context): New declaration.
11841
a442d071
GB
118422014-10-08 Gary Benson <gbenson@redhat.com>
11843
11844 * server.h: Do not include common-exceptions.h.
11845
6f1947e8
GB
118462014-10-08 Gary Benson <gbenson@redhat.com>
11847
11848 * server.h: Do not include cleanups.h.
11849
63b434a4
JH
118502014-09-30 James Hogan <james.hogan@imgtec.com>
11851
11852 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11853 mips64-dsp-linux.c.
11854
c4d9ceb6
YQ
118552014-09-23 Yao Qi <yao@codesourcery.com>
11856
11857 * linux-low.c (lp_status_maybe_breakpoint): New function.
11858 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11859 (count_events_callback): Likewise.
11860 (select_event_lwp_callback): Likewise.
11861 (cancel_breakpoints_callback): Likewise.
11862
89a5711c
DB
118632014-09-19 Don Breazeal <donb@codesourcery.com>
11864
11865 * linux-low.c (handle_extended_wait): Call
11866 linux_ptrace_get_extended_event.
11867 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11868 linux_is_extended_waitstatus.
11869
bffc0964
JB
118702014-09-16 Joel Brobecker <brobecker@adacore.com>
11871
11872 * Makefile.in (CPPFLAGS): Define.
11873 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11874 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11875
0bfdf32f
GB
118762014-09-16 Gary Benson <gbenson@redhat.com>
11877
11878 * inferiors.h (current_inferior): Renamed as...
11879 (current_thread): New variable. All uses updated.
11880 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11881 (maybe_move_out_of_jump_pad): Likewise.
11882 (cancel_breakpoint): Likewise.
11883 (linux_low_filter_event): Likewise.
11884 (wait_for_sigstop): Likewise.
11885 (linux_resume_one_lwp): Likewise.
11886 (need_step_over_p): Likewise.
11887 (start_step_over): Likewise.
11888 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11889 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11890 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11891 and save_inferior as saved_thread.
11892 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11893 saved_thread.
11894 (regcache_invalidate_thread): Likewise.
11895 * remote-utils.c (prepare_resume_reply): Likewise.
11896 * thread-db.c (thread_db_get_tls_address): Likewise.
11897 (disable_thread_event_reporting): Likewise.
11898 (remove_thread_event_breakpoints): Likewise.
11899 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11900 as saved_thread.
11901 * target.h (set_desired_inferior): Renamed as...
11902 (set_desired_thread): New declaration. All uses updated.
11903 * server.c (myresume): Updated comment to reference thread instead
11904 of inferior.
11905 (handle_serial_event): Likewise.
11906 (handle_target_event): Likewise.
11907
361c8ade
GB
119082014-09-12 Tom Tromey <tromey@redhat.com>
11909 Gary Benson <gbenson@redhat.com>
11910
11911 * regcache.h: Include common-regcache.h.
11912 (regcache_read_pc): Don't declare.
11913 * regcache.c (get_thread_regcache_for_ptid): New function.
11914
bd9269f7
GB
119152014-09-11 Tom Tromey <tromey@redhat.com>
11916 Gary Benson <gbenson@redhat.com>
11917
11918 * symbol.c: New file.
11919 * Makefile.in (SFILES): Add symbol.c.
11920 (OBS): Add symbol.o.
11921
f8c1d06b
GB
119222014-09-11 Gary Benson <gbenson@redhat.com>
11923
11924 * target.c (target_stop_ptid, target_continue_ptid): New
11925 functions.
11926
721ec300
GB
119272014-09-11 Tom Tromey <tromey@redhat.com>
11928 Gary Benson <gbenson@redhat.com>
11929
11930 * target.h: Include target/target.h.
11931 * target.c (target_read_memory, target_read_uint32)
11932 (target_write_memory): New functions.
11933
c5e92cca
GB
119342014-09-11 Gary Benson <gbenson@redhat.com>
11935
11936 * server.h (debug_hw_points): Don't declare.
11937 * server.c (debug_hw_points): Don't define. Replace all uses
11938 with show_debug_regs.
11939 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11940 all uses with show_debug_regs.
11941
2e4bb98a
EBM
119422014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11943
11944 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11945 endianness into account.
11946 (ppc_supply_ptrace_register): Likewise.
11947
ac740bc7
JH
119482014-09-03 James Hogan <james.hogan@imgtec.com>
11949
11950 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11951 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11952
97ea6506
GB
119532014-09-03 Gary Benson <gbenson@redhat.com>
11954
11955 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11956 ALL_DEBUG_ADDRESS_REGISTERS.
11957
df7e5265
GB
119582014-09-02 Gary Benson <gbenson@redhat.com>
11959
11960 * i386-low.h: Renamed as...
11961 * x86-low.h: New file. All type, function and variable name
11962 prefixes changed from "i386_" to "x86_". All references updated.
11963 * i386-low.c: Renamed as...
11964 * x86-low.c: New file. All type, function and variable name
11965 prefixes changed from "i386_" to "x86_". All references updated.
11966
ed859da7
GB
119672014-09-02 Gary Benson <gbenson@redhat.com>
11968
11969 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11970 (x86_linux_new_thread): Likewise.
11971
860789c7
GB
119722014-08-29 Gary Benson <gbenson@redhat.com>
11973
11974 * server.h (setjmp.h): Do not include.
11975 (toplevel): Do not declare.
11976 (common-exceptions.h): Include.
11977 (cleanups.h): Likewise.
11978 * server.c (toplevel): Do not define.
11979 (exit_code): New static global.
11980 (detach_or_kill_for_exit_cleanup): New function.
11981 (main): New function. Original main renamed to...
11982 (captured_main): New function.
11983 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11984
ff55e1b5
GB
119852014-08-29 Gary Benson <gbenson@redhat.com>
11986
11987 * Makefile.in (SFILES): Add common/common-exceptions.c.
11988 (OBS): Add common-exceptions.o.
11989 (common-exceptions.o): New rule.
11990 * utils.c (prepare_to_throw_exception): New function.
11991
e9bcb658
GB
119922014-08-29 Gary Benson <gbenson@redhat.com>
11993
11994 * config.in: Regenerate.
11995 * configure: Likewise.
11996
e3180625
GB
119972014-08-29 Gary Benson <gbenson@redhat.com>
11998
11999 * Makefile.in (SFILES): Add common/cleanups.c.
12000 (OBS): cleanups.o.
12001 (cleanups.o): New rule.
12002
e3d6ba5d
GB
120032014-08-29 Gary Benson <gbenson@redhat.com>
12004
12005 * utils.c (internal_vwarning): New function.
12006
7096e886
GB
120072014-08-28 Gary Benson <gbenson@redhat.com>
12008
12009 * utils.h (fatal): Remove declaration.
12010 * utils.c (fatal): Remove function.
12011
14ce3192
GB
120122014-08-28 Gary Benson <gbenson@redhat.com>
12013
12014 * tracepoint.c (gdb_agent_init): Replace fatal with
12015 perror_with_name.
12016 (initialize_tracepoint): Likewise.
12017
50278d59
GB
120182014-08-28 Gary Benson <gbenson@redhat.com>
12019
12020 * remote-utils.c (remote_prepare): Replace fatal with error.
12021
aa96c426
GB
120222014-08-28 Gary Benson <gbenson@redhat.com>
12023
12024 * linux-low.c (linux_async): Replace fatal with warning.
12025 Tidy up and return.
12026 (linux_start_non_stop): Return -1 if linux_async failed.
12027
f7160e97
GB
120282014-08-28 Gary Benson <gbenson@redhat.com>
12029
12030 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12031 gdb_assert.
12032 (i386_dr_low_get_addr): Remove vague comment.
12033 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12034 gdb_assert.
12035
38e08fca
GB
120362014-08-28 Gary Benson <gbenson@redhat.com>
12037
12038 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12039 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12040 internal_error.
12041 (linux_resume_one_lwp): Likewise.
12042 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12043 gdb_assert.
12044 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12045 with internal_error.
12046 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12047 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12048 (find_register_by_name): Replace fatal with internal_error.
12049 (find_regno): Likewise.
12050 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12051 * thread-db.c (thread_db_create_event): Likewise.
12052 (thread_db_load_search): Likewise.
12053 (try_thread_db_load_1): Likewise.
12054 * tracepoint.c (get_jump_space_head): Replace fatal with
12055 internal_error.
12056 (claim_trampoline_space): Likewise.
12057 (have_fast_tracepoint_trampoline_buffer): Likewise.
12058 (cmd_qtstart): Likewise.
12059 (stop_tracing): Likewise.
12060 (fast_tracepoint_collecting): Likewise.
12061 (target_malloc): Likewise.
12062 (download_tracepoint): Likewise.
12063 (download_trace_state_variables): Replace check with gdb_assert.
12064 (upload_fast_traceframes): Replace fatal with internal_error.
12065
34abf635
GB
120662014-08-19 Tom Tromey <tromey@redhat.com>
12067 Gary Benson <gbenson@redhat.com>
12068
12069 * Makefile.in (SFILES): Add common/common-debug.c.
12070 (OBS): Add common-debug.o.
12071 (common-debug.o): New rule.
12072 * debug.h (debug_printf): Don't declare.
12073 * debug.c (debug_printf): Renamed and rewritten as...
12074 (debug_vprintf): New function.
12075
f6e94d78
GB
120762014-08-19 Gary Benson <gbenson@redhat.com>
12077
12078 * utils.h: Do not include print-utils.h.
12079
9239eeab
GB
120802014-08-19 Tom Tromey <tromey@redhat.com>
12081 Gary Benson <gbenson@redhat.com>
12082
12083 * server.h: Add static assertion.
12084 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12085
ef87c8bb
GB
120862014-08-19 Tom Tromey <tromey@redhat.com>
12087 Gary Benson <gbenson@redhat.com>
12088
12089 * Makefile.in (SFILES): Add common/errors.c.
12090 (OBS): Add errors.o.
12091 (IPA_OBS): Add errors-ipa.o.
12092 (errors.o): New rule.
12093 (errors-ipa.o): Likewise.
12094 * utils.h (perror_with_name, error, warning): Don't declare.
12095 * utils.c (warning): Renamed and rewritten as...
12096 (vwarning): New function.
12097 (error): Renamed and rewritten as...
12098 (verror): New function.
12099 (internal_error): Renamed and rewritten as...
12100 (internal_verror): New function.
12101
bb974a24
GB
121022014-08-07 Gary Benson <gbenson@redhat.com>
12103
12104 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12105 * configure: Regenerate.
12106 * config.in: Likewise.
12107 * server.h: Do not include errno.h.
12108 * event-loop.c: Likewise.
12109 * hostio-errno.c: Likewise.
12110 * linux-low.c: Likewise.
12111 * remote-utils.c: Likewise.
12112 * spu-low.c: Likewise.
12113 * utils.c: Likewise.
12114 * gdbreplay.c: Unconditionally include errno.h.
12115
6d3d12eb
GB
121162014-08-07 Gary Benson <gbenson@redhat.com>
12117
12118 * server.h: Do not include string.h.
12119 * event-loop.c: Likewise.
12120 * linux-low.c: Likewise.
12121 * regcache.c: Likewise.
12122 * remote-utils.c: Likewise.
12123 * spu-low.c: Likewise.
12124 * utils.c: Likewise.
12125
dccbb609
GB
121262014-08-07 Gary Benson <gbenson@redhat.com>
12127
12128 * server.h: Do not include gdb_assert.h.
12129
e76df0d0
GB
121302014-08-07 Gary Benson <gbenson@redhat.com>
12131
12132 * server.h: Do not include common-utils.h.
12133
4cb9c816
GB
121342014-08-07 Gary Benson <gbenson@redhat.com>
12135
12136 * server.h: Do not include ptid.h.
12137 * notif.h: Likewise.
12138
3995eeee
GB
121392014-08-07 Gary Benson <gbenson@redhat.com>
12140
12141 * server.h: Do not include gdb_locale.h.
12142
cb9f1a9b
GB
121432014-08-07 Gary Benson <gbenson@redhat.com>
12144
12145 * server.h: Do not include gdb/signals.h.
12146 * win32-low.c: Likewise.
12147
a5fceff8
GB
121482014-08-07 Gary Benson <gbenson@redhat.com>
12149
12150 * server.h: Do not include pathmax.h.
12151
b9391142
GB
121522014-08-07 Gary Benson <gbenson@redhat.com>
12153
12154 * server.h: Do not include libiberty.h.
12155 * linux-bfin-low.c: Likewise.
12156
0e443c87
GB
121572014-08-07 Gary Benson <gbenson@redhat.com>
12158
12159 * server.h: Do not include ansidecl.h.
12160
8ebb3f56
GB
121612014-08-07 Gary Benson <gbenson@redhat.com>
12162
12163 * linux-x86-low.c: Do not include stddef.h.
12164 * lynx-ppc-low.c: Likewise.
12165 * tracepoint.c: Likewise.
12166
8980bdf6
GB
121672014-08-07 Gary Benson <gbenson@redhat.com>
12168
12169 * server.h: Do not include stdarg.h.
12170 * nto-low.c: Likewise.
12171
d7096f71
GB
121722014-08-07 Gary Benson <gbenson@redhat.com>
12173
12174 * server.h: Do not include stdlib.h.
12175 * inferiors.c: Likewise.
12176 * linux-low.c: Likewise.
12177 * regcache.c: Likewise.
12178 * spu-low.c: Likewise.
12179 * tracepoint.c: Likewise.
12180 * utils.c: Likewise.
12181
d02f550d
GB
121822014-08-07 Gary Benson <gbenson@redhat.com>
12183
12184 * server.h: Do not include stdio.h.
12185 * linux-low.c: Likewise.
12186 * remote-utils.c: Likewise.
12187 * spu-low.c: Likewise.
12188 * utils.c: Likewise.
12189 * wincecompat.c: Likewise.
12190
87f6c4e3
GB
121912014-08-06 Gary Benson <gbenson@redhat.com>
12192
12193 * regcache.c (init_register_cache): Move conditionals inside if.
12194
7089dca4
GB
121952014-08-06 Gary Benson <gbenson@redhat.com>
12196
12197 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12198
462f517e
GB
121992014-07-31 Gary Benson <gbenson@redhat.com>
12200
12201 * ax.h: Do not include server.h.
12202 * gdbthread.h: Likewise.
12203 * lynx-low.h: Likewise.
12204 * notif.h: Likewise.
12205
976411d6
GB
122062014-07-30 Gary Benson <gbenson@redhat.com>
12207
12208 * server.h: Include common-defs.h.
12209 Do not include config.h or build-gnulib-gdbserver/config.h.
12210
d41f6d8e
GB
122112014-07-30 Gary Benson <gbenson@redhat.com>
12212
12213 * hostio-errno.c: Move server.h to top of includes list.
12214 * inferiors.c: Likewise.
12215 * linux-x86-low.c: Likewise.
12216 * notif.c: Include server.h.
12217
314c6a35
TT
122182014-07-24 Tom Tromey <tromey@redhat.com>
12219 Gary Benson <gbenson@redhat.com>
12220
12221 * server.h (CORE_ADDR): Now unsigned.
12222
69ff6be5
PA
122232014-07-16 Pedro Alves <palves@redhat.com>
12224
12225 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12226
ce9e3fe7
PA
122272014-07-15 Pedro Alves <palves@redhat.com>
12228
12229 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12230 copy.
12231
e76126e8
PA
122322014-07-11 Pedro Alves <palves@redhat.com>
12233
12234 * linux-low.c (kill_wait_lwp): New function, based on
12235 kill_one_lwp_callback, but use my_waitpid directly.
12236 (kill_one_lwp_callback, linux_kill): Use it.
12237
8e9db26e
PA
122382014-06-23 Pedro Alves <palves@redhat.com>
12239
12240 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12241 before setting DR0..DR3.
12242
698b3e08
GB
122432014-06-20 Gary Benson <gbenson@redhat.com>
12244
12245 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12246 * configure: Regenerated.
12247 * config.in: Likewise.
12248
125f8a3d
GB
122492014-06-20 Gary Benson <gbenson@redhat.com>
12250
12251 * Makefile.in (SFILES): Update locations for files moved
12252 from common to nat.
12253 (object file files): Reordered.
12254
42995dbd
GB
122552014-06-20 Gary Benson <gbenson@redhat.com>
12256
12257 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12258 (i386_dr_low_set_addr): Likewise.
12259 (i386_dr_low_get_addr): Likewise.
12260 (i386_dr_low_can_set_control): Likewise.
12261 (i386_dr_low_set_control): Likewise.
12262 (i386_dr_low_get_control): Likewise.
12263 (i386_dr_low_get_status): Likewise.
12264 (i386_get_debug_register_length): Likewise.
12265 * linux-x86-low.c (i386_dr_low_set_addr):
12266 Changed signature. Made static.
12267 (i386_dr_low_get_addr): Likewise.
12268 (i386_dr_low_set_control): Likewise.
12269 (i386_dr_low_get_control): Likewise.
12270 (i386_dr_low_get_status): Likewise.
12271 (i386_dr_low): New global variable.
12272 * win32-i386-low.c (i386_dr_low_set_addr):
12273 Changed signature. Made static.
12274 (i386_dr_low_get_addr): Likewise.
12275 (i386_dr_low_set_control): Likewise.
12276 (i386_dr_low_get_control): Likewise.
12277 (i386_dr_low_get_status): Likewise.
12278 (i386_dr_low): New global variable.
12279
e1d2394b
MS
122802014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12281
12282 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12283 * Makefile.in (AR, AR_FLAGS): Define.
12284 * configure: Regenerate.
12285
3a8ee006
GB
122862014-06-19 Gary Benson <gbenson@redhat.com>
12287
12288 * Makefile.in (i386-dregs.o): New rule.
12289 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12290 * i386-low.c (target.h): Remove include.
12291 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12292 (DR_CONTROL_SHIFT): Likewise.
12293 (DR_CONTROL_SIZE): Likewise.
12294 (DR_RW_EXECUTE): Likewise.
12295 (DR_RW_WRITE): Likewise.
12296 (DR_RW_READ): Likewise.
12297 (DR_RW_IORW): Likewise.
12298 (DR_LEN_1): Likewise.
12299 (DR_LEN_2): Likewise.
12300 (DR_LEN_4): Likewise.
12301 (DR_LEN_8): Likewise.
12302 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12303 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12304 (DR_ENABLE_SIZE): Likewise.
12305 (DR_LOCAL_SLOWDOWN): Likewise.
12306 (DR_GLOBAL_SLOWDOWN): Likewise.
12307 (DR_CONTROL_RESERVED): Likewise.
12308 (I386_DR_CONTROL_MASK): Likewise.
12309 (I386_DR_VACANT): Likewise.
12310 (I386_DR_LOCAL_ENABLE): Likewise.
12311 (I386_DR_GLOBAL_ENABLE): Likewise.
12312 (I386_DR_DISABLE): Likewise.
12313 (I386_DR_SET_RW_LEN): Likewise.
12314 (I386_DR_GET_RW_LEN): Likewise.
12315 (I386_DR_WATCH_HIT): Likewise.
12316 (i386_wp_op_t): Likewise.
12317 (i386_show_dr): Likewise.
12318 (i386_length_and_rw_bits): Likewise.
12319 (i386_insert_aligned_watchpoint): Likewise.
12320 (i386_remove_aligned_watchpoint): Likewise.
12321 (i386_handle_nonaligned_watchpoint): Likewise.
12322 i386_update_inferior_debug_regs(): Likewise.
12323 (i386_dr_insert_watchpoint): Likewise.
12324 (i386_dr_remove_watchpoint): Likewise.
12325 (i386_dr_region_ok_for_watchpoint): Likewise.
12326 (i386_dr_stopped_data_address): Likewise.
12327 (i386_dr_stopped_by_watchpoint): Likewise.
12328
8f26655c
GB
123292014-06-19 Gary Benson <gbenson@redhat.com>
12330
12331 * i386-low.c (i386_dr_show): Renamed to
12332 i386_show_dr and made static. All uses updated.
12333 (i386_dr_length_and_rw_bits): Renamed to
12334 i386_length_and_rw_bits and made static.
12335 All uses updated.
12336 (i386_dr_insert_aligned_watchpoint): Renamed to
12337 i386_insert_aligned_watchpoint and made static.
12338 All uses updated.
12339 (i386_dr_remove_aligned_watchpoint): Renamed to
12340 i386_remove_aligned_watchpoint and made static.
12341 All uses updated.
12342 (i386_dr_update_inferior_debug_regs): Renamed to
12343 i386_update_inferior_debug_regs and made static.
12344 All uses updated.
12345
b9228891
GB
123462014-06-18 Gary Benson <gbenson@redhat.com>
12347
5171def3
GB
12348 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12349 (i386_dr_low_can_set_control): Likewise.
12350 (i386_get_debug_register_length): Likewise.
12351 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12352 (i386_dr_low_can_set_control): Likewise.
12353 (i386_get_debug_register_length): Likewise.
12354
123552014-06-17 Gary Benson <gbenson@redhat.com>
12356
b9228891
GB
12357 * i386-low.h (i386-dregs.h): New include.
12358 (DR_FIRSTADDR): Now in i386-dregs.h.
12359 (DR_LASTADDR): Likewise.
12360 (DR_NADDR): Likewise.
12361 (DR_STATUS): Likewise.
12362 (DR_CONTROL): Likewise.
12363 (i386_debug_reg_state): Likewise.
12364 (i386_dr_insert_watchpoint): Likewise.
12365 (i386_dr_remove_watchpoint): Likewise.
12366 (i386_dr_region_ok_for_watchpoint): Likewise.
12367 (i386_dr_stopped_data_address): Likewise.
12368 (i386_dr_stopped_by_watchpoint): Likewise.
12369 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12370
4be83cc2
GB
123712014-06-18 Gary Benson <gbenson@redhat.com>
12372
12373 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12374 i386_dr_insert_watchpoint.
12375 (i386_low_remove_watchpoint): Renamed to
12376 i386_dr_remove_watchpoint.
12377 (i386_low_region_ok_for_watchpoint): Renamed to
12378 i386_dr_region_ok_for_watchpoint.
12379 (i386_low_stopped_data_address): Renamed to
12380 i386_dr_stopped_data_address.
12381 (i386_low_stopped_by_watchpoint): Renamed to
12382 i386_dr_stopped_by_watchpoint.
12383 * i386-low.c (i386_show_dr): Renamed to
12384 i386_dr_show and made nonstatic. All uses updated.
12385 (i386_length_and_rw_bits): Renamed to
12386 i386_dr_length_and_rw_bits and made nonstatic.
12387 All uses updated.
12388 (i386_insert_aligned_watchpoint): Renamed to
12389 i386_dr_insert_aligned_watchpoint and made nonstatic.
12390 All uses updated.
12391 (i386_remove_aligned_watchpoint): Renamed to
12392 i386_dr_remove_aligned_watchpoint and made nonstatic.
12393 All uses updated.
12394 (i386_update_inferior_debug_regs): Renamed to
12395 i386_dr_update_inferior_debug_regs and made nonstatic.
12396 All uses updated.
12397 (i386_low_insert_watchpoint): Renamed to
12398 i386_dr_insert_watchpoint. All uses updated.
12399 (i386_low_remove_watchpoint): Renamed to
12400 i386_dr_remove_watchpoint. All uses updated.
12401 (i386_low_region_ok_for_watchpoint): Renamed to
12402 i386_dr_region_ok_for_watchpoint. All uses updated.
12403 (i386_low_stopped_data_address): Renamed to
12404 i386_dr_stopped_data_address. All uses updated.
12405 (i386_low_stopped_by_watchpoint): Renamed to
12406 i386_dr_stopped_by_watchpoint. All uses updated.
12407
131aa0d4
GB
124082014-06-18 Gary Benson <gbenson@redhat.com>
12409
12410 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12411 (i386_dr_low_can_set_control): Likewise.
12412 (i386_insert_aligned_watchpoint): New check.
12413
d9305f7f
GB
124142014-06-18 Gary Benson <gbenson@redhat.com>
12415
12416 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12417 Renamed to state.
12418
e927c9fc
GB
124192014-06-18 Gary Benson <gbenson@redhat.com>
12420
12421 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12422 instead of fatal and error.
12423 (i386_handle_nonaligned_watchpoint): Likewise.
12424
1b6d4134
GB
124252014-06-18 Gary Benson <gbenson@redhat.com>
12426
12427 * i386-low.c (i386_get_debug_register_length): New macro.
12428 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12429 (i386_show_dr): Use debug_printf instead of fprintf. Use
12430 phex to format values.
12431
6e62758f
GB
124322014-06-18 Gary Benson <gbenson@redhat.com>
12433
12434 * i386-low.h: Comment changes.
12435 * i386-low.c: Likewise.
12436
fc6e2f03
GB
124372014-06-18 Gary Benson <gbenson@redhat.com>
12438
12439 * i386-low.c: Whitespace changes.
12440
f9d1eeed
TT
124412014-06-12 Tom Tromey <tromey@redhat.com>
12442
12443 * utils.c (freeargv): Remove.
12444
0b04e523
TT
124452014-06-12 Tom Tromey <tromey@redhat.com>
12446
12447 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12448 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12449 (parse_debug_format_options): Likewise.
12450 (gdbserver_usage): Likewise.
12451 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12452 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12453 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12454 against libiberty.
12455 ($(LIBGNU)): Depend on libiberty.
12456 (all-lib): Recurse into all subdirs.
12457 (install-only): Invoke "install" target in subdirs.
12458 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12459 targets.
12460 * configure: Rebuild.
12461 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12462 for vasprintf, vsnprintf, or gettimeofday.
12463 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12464 srv_tgtobj.
12465
270c9937
JB
124662014-06-05 Joel Brobecker <brobecker@adacore.com>
12467
12468 * development.sh: Delete.
12469 * Makefile.in (config.status): Adjust dependency on development.sh.
12470 * configure.ac: Adjust development.sh source call.
12471 * configure: Regenerate.
12472
0a261ed8
PA
124732014-06-02 Pedro Alves <palves@redhat.com>
12474
12475 * ax.c (gdb_free_agent_expr): New function.
12476 * ax.h (gdb_free_agent_expr): New declaration.
12477 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12478 list.
12479 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12480 static.
12481 (clear_breakpoint_conditions_and_commands): New function.
12482 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12483 (clear_breakpoint_conditions_and_commands): New declaration.
12484
e9dae05e
RR
124852014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12486
12487 * linux-aarch64-low.c (asm/ptrace.h): Include.
12488
5876f503
JK
124892014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12490
12491 Fix TLS access for -static -pthread.
12492 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12493 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12494 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12495
802e8e6d
PA
124962014-05-20 Pedro Alves <palves@redhat.com>
12497
12498 * linux-aarch64-low.c (aarch64_insert_point)
12499 (aarch64_remove_point): No longer check whether the type is
12500 supported here. Adjust to new interface.
12501 (the_low_target): Install aarch64_supports_z_point_type as
12502 supports_z_point_type method.
12503 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12504 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12505 instead of a Z packet char. Adjust.
12506 (arm_supports_z_point_type): New function.
12507 (arm_insert_point, arm_remove_point): Adjust to new interface.
12508 (the_low_target): Install arm_supports_z_point_type.
12509 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12510 (cris_insert_point, cris_remove_point): Adjust to new interface.
12511 Don't check whether the type is supported here.
12512 (the_low_target): Install cris_supports_z_point_type.
12513 * linux-low.c (linux_supports_z_point_type): New function.
12514 (linux_insert_point, linux_remove_point): Adjust to new interface.
12515 * linux-low.h (struct linux_target_ops) <insert_point,
12516 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12517 raw_breakpoint pointer parameter.
12518 <supports_z_point_type>: New method.
12519 * linux-mips-low.c (mips_supports_z_point_type): New function.
12520 (mips_insert_point, mips_remove_point): Adjust to new interface.
12521 Use mips_supports_z_point_type.
12522 (the_low_target): Install mips_supports_z_point_type.
12523 * linux-ppc-low.c (the_low_target): Install NULL as
12524 supports_z_point_type method.
12525 * linux-s390-low.c (the_low_target): Install NULL as
12526 supports_z_point_type method.
12527 * linux-sparc-low.c (the_low_target): Install NULL as
12528 supports_z_point_type method.
12529 * linux-x86-low.c (x86_supports_z_point_type): New function.
12530 (x86_insert_point): Adjust to new insert_point interface. Use
12531 insert_memory_breakpoint. Adjust to new
12532 i386_low_insert_watchpoint interface.
12533 (x86_remove_point): Adjust to remove_point interface. Use
12534 remove_memory_breakpoint. Adjust to new
12535 i386_low_remove_watchpoint interface.
12536 (the_low_target): Install x86_supports_z_point_type.
12537 * lynx-low.c (lynx_target_ops): Install NULL as
12538 supports_z_point_type callback.
12539 * nto-low.c (nto_supports_z_point_type): New.
12540 (nto_insert_point, nto_remove_point): Adjust to new interface.
12541 (nto_target_ops): Install nto_supports_z_point_type.
12542 * mem-break.c: Adjust intro comment.
12543 (struct raw_breakpoint) <raw_type, size>: New fields.
12544 <inserted>: Update comment.
12545 <shlib_disabled>: Delete field.
12546 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12547 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12548 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12549 (raw_bkpt_type_to_target_hw_bp_type): New function.
12550 (find_enabled_raw_code_breakpoint_at): New function.
12551 (find_raw_breakpoint_at): New type and size parameters. Use them.
12552 (insert_memory_breakpoint): New function, based off
12553 set_raw_breakpoint_at.
12554 (remove_memory_breakpoint): New function.
12555 (set_raw_breakpoint_at): Reimplement.
12556 (set_breakpoint): New, based on set_breakpoint_at.
12557 (set_breakpoint_at): Reimplement.
12558 (delete_raw_breakpoint): Go through the_target->remove_point
12559 instead of assuming memory breakpoints.
12560 (find_gdb_breakpoint_at): Delete.
12561 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12562 (find_gdb_breakpoint): New function.
12563 (set_gdb_breakpoint_at): Delete.
12564 (z_type_supported): New function.
12565 (set_gdb_breakpoint_1): New function, loosely based off
12566 set_gdb_breakpoint_at.
12567 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12568 (delete_gdb_breakpoint_at): Delete.
12569 (delete_gdb_breakpoint_1): New function, loosely based off
12570 delete_gdb_breakpoint_at.
12571 (delete_gdb_breakpoint): New function.
12572 (clear_gdb_breakpoint_conditions): Rename to ...
12573 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12574 breakpoint.
12575 (add_condition_to_breakpoint): Make static.
12576 (add_breakpoint_condition): Take a struct breakpoint pointer
12577 instead of an address. Adjust.
12578 (gdb_condition_true_at_breakpoint): Rename to ...
12579 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12580 z_type parameter.
12581 (gdb_condition_true_at_breakpoint): Reimplement.
12582 (add_breakpoint_commands): Take a struct breakpoint pointer
12583 instead of an address. Adjust.
12584 (gdb_no_commands_at_breakpoint): Rename to ...
12585 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12586 parameter. Return true if no breakpoint was found. Change debug
12587 output.
12588 (gdb_no_commands_at_breakpoint): Reimplement.
12589 (run_breakpoint_commands): Rename to ...
12590 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12591 and change return type to boolean.
12592 (run_breakpoint_commands): New function.
12593 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12594 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12595 breakpoint. Go through the_target->remove_point instead of
12596 assuming memory breakpoint.
12597 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12598 software and hardware breakpoints.
12599 (reinsert_raw_breakpoint): Go through the_target->insert_point
12600 instead of assuming memory breakpoint.
12601 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12602 software and hardware breakpoints.
12603 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12604 Check both software and hardware breakpoints.
12605 (validate_inserted_breakpoint): Assert the breakpoint is a
12606 software breakpoint. Set the inserted flag to -1 instead of
12607 setting shlib_disabled.
12608 (delete_disabled_breakpoints): Adjust.
12609 (validate_breakpoints): Only validate software breakpoints.
12610 Adjust to inserted flag change.
12611 (check_mem_read, check_mem_write): Skip breakpoint types other
12612 than software breakpoints. Adjust to inserted flag change.
12613 * mem-break.h (enum raw_bkpt_type): New enum.
12614 (raw_breakpoint, struct process_info): Forward declare.
12615 (Z_packet_to_target_hw_bp_type): Delete declaration.
12616 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12617 (set_gdb_breakpoint, delete_gdb_breakpoint)
12618 (clear_breakpoint_conditions): New declarations.
12619 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12620 (breakpoint_inserted_here): Update comment.
12621 (add_breakpoint_condition, add_breakpoint_commands): Replace
12622 address parameter with a breakpoint pointer parameter.
12623 (gdb_breakpoint_here): Update comment.
12624 (delete_gdb_breakpoint_at): Delete.
12625 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12626 * server.c (process_point_options): Take a struct breakpoint
12627 pointer instead of an address. Adjust.
12628 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12629 delete_gdb_breakpoint.
12630 * spu-low.c (spu_target_ops): Install NULL as
12631 supports_z_point_type method.
12632 * target.h: Include mem-break.h.
12633 (struct target_ops) <prepare_to_access_memory>: Update comment.
12634 <supports_z_point_type>: New field.
12635 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12636 instead of a char. Also take a raw breakpoint pointer.
12637 * win32-arm-low.c (the_low_target): Install NULL as
12638 supports_z_point_type.
12639 * win32-i386-low.c (i386_supports_z_point_type): New function.
12640 (i386_insert_point, i386_remove_point): Adjust to new interface.
12641 (the_low_target): Install i386_supports_z_point_type.
12642 * win32-low.c (win32_supports_z_point_type): New function.
12643 (win32_insert_point, win32_remove_point): Adjust to new interface.
12644 (win32_target_ops): Install win32_supports_z_point_type.
12645 * win32-low.h (struct win32_target_ops):
12646 <supports_z_point_type>: New method.
12647 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12648 instead of a char. Also take a raw breakpoint pointer.
12649
932539e3
PA
126502014-05-20 Pedro Alves <palves@redhat.com>
12651
12652 * mem-break.h: Include break-common.h.
12653 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12654 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12655 (Z_packet_to_target_hw_bp_type): New declaration.
12656 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12657 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12658 (Z_PACKET_ACCESS_WP): Delete macros.
12659 (Z_packet_to_hw_type): Delete function.
12660 * i386-low.h: Don't include break-common.h here.
12661 (Z_packet_to_hw_type): Delete declaration.
12662 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12663 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12664 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12665 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12666 * linux-aarch64-low.c: Don't include break-common.h here.
12667 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12668 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12669 (Z_packet_to_target_hw_bp_type): Delete function.
12670 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12671 function.
12672 (mips_insert_point, mips_remove_point): Use
12673 Z_packet_to_target_hw_bp_type.
12674
4ff0d3d8
PA
126752014-05-20 Pedro Alves <palves@redhat.com>
12676
12677 * linux-aarch64-low.c: Include break-common.h.
12678 (enum target_point_type): Delete.
12679 (Z_packet_to_point_type): Rename to ...
12680 (Z_packet_to_target_hw_bp_type): ... this, and return a
12681 target_hw_bp_type instead.
12682 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12683 instead of an enum target_point_type.
12684 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12685 breakpoint type.
12686 (aarch64_dr_state_insert_one_point)
12687 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12688 (aarch64_handle_aligned_watchpoint)
12689 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12690 Take an enum target_hw_bp_type instead of an enum
12691 target_point_type.
12692 (aarch64_supports_z_point_type): New function.
12693 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12694 use Z_packet_to_target_hw_bp_type.
12695
786dc519
JB
126962014-05-20 Joel Brobecker <brobecker@adacore.com>
12697
12698 * configure.ac: Only use -Werror by default when DEVELOPMENT
12699 is true.
12700 * configure: Regenerate.
12701
9e0aa64f
JK
127022014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12703
12704 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12705 * linux-x86-low.c (X86_64_USER_REGS): New.
12706 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12707
2b577b92
YQ
127082014-04-28 Yao Qi <yao@codesourcery.com>
12709
12710 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12711 name.
12712
94611da2
PA
127132014-04-25 Pedro Alves <palves@redhat.com>
12714
12715 PR server/16255
12716 * linux-low.c (linux_attach_fail_reason_string): New function.
12717 (linux_attach_lwp): Delete.
12718 (linux_attach_lwp_1): Rename to ...
12719 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12720 argument. Remove "initial" parameter. Return int instead of
12721 void. Don't error or warn here.
12722 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12723 failure to attach to the tgid. Call warning when failing to
12724 attach to an lwp.
12725 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12726 argument. Remove "initial" parameter. Return int instead of
12727 void. Don't error or warn here.
12728 (linux_attach_fail_reason_string): New declaration.
12729 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12730 interface change. Use linux_attach_fail_reason_string.
12731
01f9f808
MS
127322014-04-24 Michael Sturm <michael.sturm@mintel.com>
12733 Walfred Tedeschi <walfred.tedeschi@intel.com>
12734
12735 * Makefile.in: Added rules to handle new files
12736 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12737 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12738 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12739 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12740 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12741 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12742 x32-avx512-linux.o.
12743 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12744 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12745 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12746 i386/x32-avx512.xml.
12747 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12748 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12749 i386/x32-avx512-linux.xml.
12750 * i387-fp.c (num_avx512_k_registers): New constant for number
12751 of K registers.
12752 (num_avx512_zmmh_low_registers): New constant for number of
12753 lower ZMM registers (0-15).
12754 (num_avx512_zmmh_high_registers): New constant for number of
12755 higher ZMM registers (16-31).
12756 (num_avx512_ymmh_registers): New contant for number of higher
12757 YMM registers (ymm16-31 added by avx521 on x86_64).
12758 (num_avx512_xmm_registers): New constant for number of higher
12759 XMM registers (xmm16-31 added by AVX512 on x86_64).
12760 (struct i387_xsave): Add space for AVX512 registers.
12761 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12762 Add code to handle AVX512 registers.
12763 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12764 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12765 prototypei from generated file.
12766 (tdesc_amd64_avx512_linux): Likewise.
12767 (init_registers_x32_avx512_linux): Likewise.
12768 (tdesc_x32_avx512_linux): Likewise.
12769 (init_registers_i386_avx512_linux): Likewise.
12770 (tdesc_i386_avx512_linux): Likewise.
12771 (x86_64_regmap): Add AVX512 registers.
12772 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12773 mask.
12774 (initialize_low_arch): Add code to initialize AVX512 registers.
12775
51aa91f9
PA
127762014-04-23 Pedro Alves <palves@redhat.com>
12777
12778 * mem-break.c (find_gdb_breakpoint_at): Make static.
12779 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12780
a4165e94
PA
127812014-04-23 Pedro Alves <palves@redhat.com>
12782
12783 * i386-low.c: Don't include break-common.h here.
12784 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12785 prototype to take target_hw_bp_type as argument instead of a Z
12786 packet char.
12787 * i386-low.h: Include break-common.h here.
12788 (Z_packet_to_hw_type): Declare.
12789 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12790 prototypes.
12791 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12792 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12793 (x86_remove_point): Convert the packet number to a
12794 target_hw_bp_type before calling i386_low_remove_watchpoint.
12795 * win32-i386-low.c (i386_insert_point): Convert the packet number
12796 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12797 (i386_remove_point): Convert the packet number to a
12798 target_hw_bp_type before calling i386_low_remove_watchpoint.
12799
b8acf843
PA
128002014-04-23 Pedro Alves <palves@redhat.com>
12801
12802 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12803
d708bcd1
PA
128042014-04-10 Pedro Alves <palves@redhat.com>
12805
12806 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12807 Check if the condition or command is NULL before checking if the
12808 breakpoint is known. On success, return true.
12809 * mem-break.h (add_breakpoint_condition): Document return.
12810 (add_breakpoint_commands): Add describing comment.
12811 * server.c (skip_to_semicolon): New function.
12812 (process_point_options): Use it.
12813
2eec7d5b
PA
128142014-04-09 Pedro Alves <palves@redhat.com>
12815
12816 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12817 to lwpid_of.
12818
fa96cb38
PA
128192014-02-27 Pedro Alves <palves@redhat.com>
12820
12821 PR 12702
12822 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12823 macros.
12824 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12825 output.
12826 (last_thread_of_process_p): Take a PID argument instead of a
12827 thread pointer.
12828 (linux_wait_for_lwp): Delete.
12829 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12830 functions.
12831 (linux_low_filter_event): New function, party factored out from
12832 linux_wait_for_event.
12833 (linux_wait_for_event): Rename to ...
12834 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12835 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12836 sigsuspend. Check for zombie leaders.
12837 (linux_wait_for_event): Reimplement as wrapper around
12838 linux_wait_for_event_filtered.
12839 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12840 a normal or signal exit is seen, it's the whole process exiting.
12841 (wait_for_sigstop): No longer a for_each_inferior callback.
12842 Rewrite on top of linux_wait_for_event_filtered.
12843 (stop_all_lwps): Call wait_for_sigstop directly.
12844 * server.c (resume, handle_target_event): Handle
12845 TARGET_WAITKIND_NO_RESUMED.
12846
d763de10
JB
128472014-02-26 Joel Brobecker <brobecker@adacore.com>
12848
12849 * win32-low.c (psapi_get_dll_name,
12850 * win32_CreateToolhelp32Snapshot): Delete.
12851 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12852 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12853 Delete.
12854 (handle_load_dll): Add function description.
12855 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12856
850a0f76
JB
128572014-02-26 Joel Brobecker <brobecker@adacore.com>
12858
12859 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12860 Add comment.
12861 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12862 base address when calling win32_add_one_solib.
12863 (handle_load_dll): Delete local variable load_addr.
12864 Remove 0x1000 offset applied to DLL base address when calling
12865 win32_add_one_solib.
12866 (handle_unload_dll): Add comment.
12867
f25b3fc3
JB
128682014-02-26 Joel Brobecker <brobecker@adacore.com>
12869
12870 * win32-low.c (win32_add_all_dlls): Renames
12871 win32_ensure_ntdll_loaded. Rewrite function documentation.
12872 Adjust implementation to always load all DLLs.
12873 Add 0x1000 offset to DLL base address when calling
12874 win32_add_one_solib.
12875 (child_initialization_done): New static global.
12876 (do_initial_child_stuff): Set child_initialization_done to
12877 zero during child initialization, and 1 after. Replace call
12878 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12879 Add comment.
12880 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12881 (handle_unload_dll): Add function documentation.
12882 (get_child_debug_event): Ignore load and unload DLL events
12883 during child initialization.
12884
d86d4aaf
DE
128852014-02-20 Doug Evans <dje@google.com>
12886
3bc32da3 12887 Remove global all_lwps.
d86d4aaf
DE
12888 * inferiors.h (ptid_of): Move here from linux-low.h.
12889 (pid_of, lwpid_of): Ditto.
12890 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12891 parameter is a struct thread_info * now.
12892 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12893 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12894 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12895 directly.
12896 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12897 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12898 * linux-arm-low.c (update_registers_callback): Update, "entry"
12899 parameter is a struct thread_info * now.
12900 Fetch lwpid from current_inferior directly.
12901 (arm_insert_point): Pass &all_threads to find_inferior instead of
12902 &all_lwps.
12903 (arm_remove_point): Ditto.
12904 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12905 (arm_prepare_to_resume): Fetch pid from thread.
12906 (arm_read_description): Fetch lwpid from current_inferior directly.
12907 * linux-low.c (all_lwps): Delete.
12908 (delete_lwp): Delete call to remove_inferior.
12909 (handle_extended_wait): Fetch lwpid from thread.
12910 (add_lwp): Don't set lwp->entry.id. Remove call to
12911 add_inferior_to_list.
12912 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12913 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12914 (kill_one_lwp_callback): Ditto.
12915 (linux_kill): Don't dereference NULL pointer.
12916 Fetch ptid,lwpid from thread.
12917 (get_detach_signal): Fetch ptid from thread.
12918 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12919 Simplify call to regcache_invalidate_thread.
12920 (delete_lwp_callback): Update, "entry" parameter is a
12921 struct thread_info * now. Fetch pid from thread.
12922 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12923 (status_pending_p_callback): Update, "entry" parameter is a
12924 struct thread_info * now. Fetch ptid from thread.
12925 (find_lwp_pid): Update, "entry" parameter is a
12926 struct thread_info * now.
12927 (linux_wait_for_lwp): Fetch pid from thread.
12928 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12929 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12930 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12931 (dequeue_one_deferred_signal): Ditto.
12932 (cancel_breakpoint): Fetch ptid from current_inferior.
12933 (linux_wait_for_event): Pass &all_threads to find_inferior,
12934 not &all_lwps. Fetch ptid, lwpid from thread.
12935 (count_events_callback): Update, "entry" parameter is a
12936 struct thread_info * now.
12937 (select_singlestep_lwp_callback): Ditto.
12938 (select_event_lwp_callback): Ditto.
12939 (cancel_breakpoints_callback): Ditto.
12940 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12941 not &all_lwps.
12942 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12943 (unsuspend_one_lwp): Update, "entry" parameter is a
12944 struct thread_info * now.
12945 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12946 not &all_lwps.
12947 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12948 Fetch lwpid from thread, not lwp.
12949 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12950 Pass &all_threads to find_inferior, not &all_lwps.
12951 (send_sigstop): Fetch lwpid from thread, not lwp.
12952 (send_sigstop_callback): Update, "entry" parameter is a
12953 struct thread_info * now.
12954 (suspend_and_send_sigstop_callback): Ditto.
12955 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12956 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12957 struct thread_info * now.
12958 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12959 from thread, lwp.
12960 (lwp_running): Update, "entry" parameter is a
12961 struct thread_info * now.
12962 (stop_all_lwps): Fetch ptid from thread.
12963 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12964 (linux_resume_one_lwp): Fetch lwpid from thread.
12965 (linux_set_resume_request): Update, "entry" parameter is a
12966 struct thread_info * now. Fetch pid, lwpid from thread.
12967 (resume_status_pending_p): Update, "entry" parameter is a
12968 struct thread_info * now.
12969 (need_step_over_p): Ditto. Fetch lwpid from thread.
12970 (start_step_over): Fetch lwpid from thread.
12971 (linux_resume_one_thread): Update, "entry" parameter is a
12972 struct thread_info * now. Fetch lwpid from thread.
12973 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12974 (proceed_one_lwp): Update, "entry" parameter is a
12975 struct thread_info * now. Fetch lwpid from thread.
12976 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12977 struct thread_info * now.
12978 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12979 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12980 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12981 directly.
12982 (regsets_store_inferior_registers): Ditto.
12983 (fetch_register, store_register): Ditto.
12984 (linux_read_memory, linux_write_memory): Ditto.
12985 (linux_request_interrupt): Ditto.
12986 (linux_read_auxv): Ditto.
12987 (linux_xfer_siginfo): Ditto.
12988 (linux_qxfer_spu): Ditto.
12989 (linux_qxfer_libraries_svr4): Ditto.
12990 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12991 moved to inferiors.h.
12992 (get_lwp): Delete.
12993 (get_thread_lwp): Update.
12994 (struct lwp_info): Delete member "entry". Simplify comment for
12995 member "thread".
12996 (all_lwps): Delete.
12997 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12998 current_inferior directly.
12999 (update_watch_registers_callback): Update, "entry" parameter is a
13000 struct thread_info * now. Fetch pid from thread.
13001 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13002 (mips_insert_point): Fetch lwpid from current_inferior.
13003 Pass &all_threads to find_inferior, not &all_lwps.
13004 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13005 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13006 directly.
13007 (mips_stopped_data_address): Ditto.
13008 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13009 directly.
13010 * linux-tile-low.c (tile_arch_setup): Ditto.
13011 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13012 (update_debug_registers_callback): Update, "entry" parameter is a
13013 struct thread_info * now. Fetch pid from thread.
13014 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13015 Pass &all_threads to find_inferior, not &all_lwps.
13016 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13017 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13018 Pass &all_threads to find_inferior, not &all_lwps.
13019 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13020 (i386_dr_low_get_status): Ditto.
13021 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13022 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13023 (x86_linux_read_description): Ditto.
13024 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13025
3b8361aa
DE
130262014-02-20 Doug Evans <dje@google.com>
13027
13028 * inferiors.c (get_first_inferior): Fix buglet.
13029
f7667f0d
DE
130302014-02-19 Doug Evans <dje@google.com>
13031
13032 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13033 * inferiors.c (add_thread): Change result type to struct thread_info *.
13034 All callers updated.
13035 (add_lwp): Call add_thread here instead of in callers.
13036 All callers updated.
13037 * linux-low.h (get_lwp_thread): Rewrite.
13038 (struct lwp_info): New member "thread".
13039
b3312d80
DE
130402014-02-19 Doug Evans <dje@google.com>
13041
13042 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13043 All callers updated.
13044
ecc6f45c
DE
130452014-02-19 Doug Evans <dje@google.com>
13046
13047 * inferiors.c (add_thread): Fix whitespace.
13048
649ebbca
DE
130492014-02-19 Doug Evans <dje@google.com>
13050
13051 * dll.c (clear_dlls): Replace accessing list implemention details
13052 with API function.
13053 * gdbthread.h (get_first_thread): Declare.
13054 * inferiors.c (for_each_inferior_with_data): New function.
13055 (get_first_thread): New function.
13056 (find_thread_ptid): Simplify.
13057 (get_first_inferior): New function.
13058 (clear_list): Delete.
13059 (one_inferior_p): New function.
13060 (clear_inferior_list): New function.
13061 (clear_inferiors): Update.
13062 * inferiors.h (for_each_inferior_with_data): Declare.
13063 (clear_inferior_list): Declare.
13064 (one_inferior_p): Declare.
13065 (get_first_inferior): Declare.
13066 * linux-low.c (linux_wait_for_event): Replace accessing list
13067 implemention details with API function.
13068 * server.c (target_running): Ditto.
13069 (accumulate_file_name_length): New function.
13070 (emit_dll_description): New function.
13071 (handle_qxfer_libraries): Replace accessing list implemention
13072 details with API function.
13073 (handle_qxfer_threads_worker): New function.
13074 (handle_qxfer_threads_proper): Replace accessing list implemention
13075 details with API function.
13076 (handle_query): Ditto.
13077 (visit_actioned_threads_callback_ftype): New typedef.
13078 (visit_actioned_threads_data): New struct.
13079 (visit_actioned_threads): Rewrite to be find_inferior callback.
13080 (resume): Call find_inferior.
13081 (handle_status): Replace accessing list implemention
13082 details with API function.
13083 (process_serial_event): Replace accessing list implemention details
13084 with API function.
13085 * target.c (set_desired_inferior): Replace accessing list implemention
13086 details with API function.
13087 * tracepoint.c (same_process_p): New function.
13088 (gdb_agent_about_to_close): Replace accessing list implemention
13089 details with API function.
13090 * win32-low.c (child_delete_thread): Replace accessing list
13091 implemention details with API function.
13092 (match_dll_by_basename): New function.
13093 (dll_is_loaded_by_basename): New function.
13094 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13095 details call to dll_is_loaded_by_basename.
13096
80894984
DE
130972014-02-19 Doug Evans <dje@google.com>
13098
13099 * dll.h (struct dll_info): Add comment.
13100 * gdbthread.h (struct thread_info): Add comment.
13101 (current_ptid): Simplify.
13102 * inferiors.c (add_process): Update.
13103 (remove_process): Update.
13104 * inferiors.h (struct process_info): Rename member "head" to "entry".
13105 * linux-low.c (delete_lwp): Update.
13106 (add_lwp): Update.
13107 (last_thread_of_process_p): Update.
13108 (kill_one_lwp_callback, linux_kill): Update.
13109 (status_pending_p_callback): Update.
13110 (wait_for_sigstop): Update. Simplify read of ptid.
13111 (start_step_over): Update.
13112 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13113 (get_lwp_thread): Update.
13114 (struct lwp_info): Rename member "head" to "entry".
13115 * regcache.h (inferior_list_entry): Delete.
13116 * server.c (kill_inferior_callback): Update.
13117 (detach_or_kill_inferior_callback): Update.
13118 (print_started_pid): Update.
13119 (print_attached_pid): Update.
13120 (process_serial_event): Simplify read of ptid.
13121 * thread-db.c (thread_db_create_event): Update.
13122 (thread_db_get_tls_address): Update.
13123 * win32-low.c (current_inferior_ptid): Simplify.
13124
46917d26
TT
131252014-02-19 Tom Tromey <tromey@redhat.com>
13126
13127 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13128 argument.
13129 (target_supports_btrace): Update.
13130
0759a81e
YQ
131312014-02-14 Yao Qi <yao@codesourcery.com>
13132
13133 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13134 (rsp-low-ipa.o): New target.
13135
a7191e8b
TT
131362014-02-12 Tom Tromey <tromey@redhat.com>
13137
13138 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13139 convert_ascii_to_int.
13140 * regcache.c (registers_to_string): Likewise.
13141 * remote-utils.c (decode_M_packet): Likewise.
13142 * server.c (process_serial_event): Likewise.
13143
ff0e980e
TT
131442014-02-12 Tom Tromey <tromey@redhat.com>
13145
13146 * server.c (handle_query, handle_v_run): Use hex2bin, not
13147 unhexify.
13148 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13149
e9371aff
TT
131502014-02-12 Tom Tromey <tromey@redhat.com>
13151
13152 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13153 convert_int_to_ascii.
13154 * regcache.c (registers_to_string, collect_register_as_string):
13155 Likewise.
13156 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13157 Likewise.
13158 * server.c (process_serial_event): Likewise.
13159 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13160 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13161
971dc0b8
TT
131622014-02-12 Tom Tromey <tromey@redhat.com>
13163
13164 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13165 bin2hex, not hexify.
13166 * tracepoint.c (cmd_qtstatus): Likewise.
13167
0a822afb
TT
131682014-02-12 Tom Tromey <tromey@redhat.com>
13169
13170 * remote-utils.c (monitor_output): Pass explicit length to
13171 hexify.
13172
9c3d6531
TT
131732014-02-12 Tom Tromey <tromey@redhat.com>
13174
13175 * tracepoint.c: Include rsp-low.h.
13176 * server.c: Include rsp-low.h.
13177 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13178 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13179 declare.
13180 * remote-utils.c: Include rsp-low.h.
13181 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13182 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13183 (convert_int_to_ascii, convert_ascii_to_int): Move to
13184 common/rsp-low.c.
13185 * regcache.c: Include rsp-low.h.
13186 * ax.c: Include rsp-low.h.
13187 * Makefile.in (SFILES): Add common/rsp-low.c.
13188 (OBS): Add rsp-low.o.
13189 (rsp-low.o): New target.
13190
01fd3ea5
TT
131912014-02-12 Tom Tromey <tromey@redhat.com>
13192
13193 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13194 Include print-utils.h.
13195 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13196 (plongest, thirty_two, phex_nz): Remove.
13197 * Makefile.in (SFILES): Add common/print-utils.c.
13198 (OBS): Add print-utils.o.
13199 (print-utils-ipa.o): New target.
13200 (print-utils.o): New target.
13201 (IPA_OBJS): Add print-utils-ipa.o.
13202
e99dc820
TT
132032014-02-06 Tom Tromey <tromey@redhat.com>
13204
13205 * Makefile.in (SFILES): Fix indentation.
13206
ee1e2d4f
DE
132072014-02-05 Doug Evans <dje@google.com>
13208
13209 * linux-low.c (linux_wait_for_event): Improve comment.
13210 (linux_wait_1): Keep current_inferior in sync with event_child.
13211
f5a02773
DE
132122014-01-22 Doug Evans <dje@google.com>
13213
13214 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13215
87ce2a04
DE
132162014-01-22 Doug Evans <dje@google.com>
13217
13218 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13219 * configure: Regenerate.
13220 * config.in: Regenerate.
13221 * Makefile.in (SFILES): Add debug.c.
13222 (OBS): Add debug.o.
13223 * debug.c: New file.
13224 * debug.h: New file.
13225 * linux-aarch64-low.c (*): Update all debugging printfs to use
13226 debug_printf instead of fprintf.
13227 * linux-arm-low.c (*): Ditto.
13228 * linux-cris-low.c (*): Ditto.
13229 * linux-crisv32-low.c (*): Ditto.
13230 * linux-m32r-low.c (*): Ditto.
13231 * linux-sparc-low.c (*): Ditto.
13232 * linux-x86.c (*): Ditto.
13233 * linux-low.c (*): Ditto.
13234 (linux_wait_1): Add calls to debug_enter, debug_exit.
13235 (linux_wait): Remove redundant debugging printf.
13236 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13237 (linux_resume, unstop_all_lwps): Ditto.
13238 * mem-break.c (*): Update all debugging printfs to use
13239 debug_printf instead of fprintf.
13240 * remote-utils.c (*): Ditto.
13241 * thread-db.c (*): Ditto.
13242 * server.c #include <ctype.h>, "gdb_vecs.h".
13243 (debug_threads): Moved to debug.c.
13244 (*): Update all debugging printfs to use debug_printf instead of
13245 fprintf.
13246 (start_inferior): Replace call to fflush with call to debug_flush.
13247 (monitor_show_help): Mention set debug-format.
13248 (parse_debug_format_options): New function.
13249 (handle_monitor_command): Handle "monitor set debug-format".
13250 (gdbserver_usage): Mention --debug-format.
13251 (main): Parse --debug-format.
13252 * server.h (debug_threads): Declaration moved to debug.h.
13253 #include "debug.h".
13254 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13255 trace_debug_1 that uses debug_printf.
13256 (tracepoint_look_up_symbols): Update all debugging printfs to use
13257 debug_printf instead of fprintf.
13258
e671835b
BS
132592014-01-20 Baruch Siach <baruch@tkos.co.il>
13260
13261 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13262 sys/ptrace.h.
13263
b5737fa9
PA
132642014-01-17 Pedro Alves <palves@redhat.com>
13265
ea38d2a9 13266 PR build/16445
c7faa97a
PA
13267 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13268 defined after including gdb_proc_service.h.
b5737fa9 13269
40ed484e
DE
132702014-01-16 Doug Evans <dje@google.com>
13271
13272 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13273 (match_dll): Use it.
13274
969c39fb
MM
132752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13276
13277 * target.h (target_ops) <read_btrace>: Change parameters and
13278 return type to allow error reporting.
13279 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13280 trace reading errors on.
13281 * linux-low.c (linux_low_read_btrace): Pass trace reading
13282 errors on.
13283 (linux_low_disable_btrace): New.
13284
ab7f45ba
DE
132852014-01-15 Doug Evans <dje@google.com>
13286
13287 * inferiors.c (thread_id_to_gdb_id): Delete.
13288 * inferiors.h (thread_id_to_gdb_id): Delete.
13289
66af0f44
EZ
132902014-01-13 Eli Zaretskii <eliz@gnu.org>
13291
13292 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13293 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13294 versions.
13295
9939e131
PA
132962014-01-08 Pedro Alves <palves@redhat.com>
13297
13298 * server.c (handle_status): Don't discard previous queued stop
13299 replies or thread's pending status here.
13300 (main) <disconnection>: Do it here instead.
13301
b7ea362b
PA
133022014-01-08 Pedro Alves <palves@redhat.com>
13303
13304 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13305 * server.c (visit_actioned_threads, handle_pending_status): New
13306 function.
13307 (handle_v_cont): Factor out parts to ...
13308 (resume): ... this new function. If in all-stop, and a thread
13309 being resumed has a pending status, report it without actually
13310 resuming.
13311 (myresume): Adjust to use the new 'resume' function.
13312 (clear_pending_status_callback, set_pending_status_callback)
13313 (find_status_pending_thread_callback): New functions.
13314 (handle_status): Handle the case of multiple threads having
13315 interesting statuses to report. Report threads' real last signal
13316 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13317 with an interesting thread to report the status for, instead of
13318 always reporting the status of the first thread.
13319
28498c42
JB
133202014-01-01 Joel Brobecker <brobecker@adacore.com>
13321
13322 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13323 * gdbreplay.c (gdbreplay_version): Likewise.
13324
f45c82da
YZ
133252013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13326
13327 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13328 iov.iov_len with the real length in use.
13329
379a5e2d
JB
133302013-12-13 Joel Brobecker <brobecker@adacore.com>
13331
13332 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13333 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13334 for all targets that use win32-low.c.
13335 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13336 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13337
4210d83e
PA
133382013-12-13 Pedro Alves <palves@redhat.com>
13339
13340 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13341 if equal to TARGET_WAITKIND_LOADED.
13342 * win32-low.c (cached_status): New static global.
13343 (win32_wait): Add declaration.
13344 (do_initial_child_stuff): Flush all initial pending debug events
13345 up to the initial breakpoint.
13346 (win32_wait): If CACHED_STATUS was set, return that instead
13347 of doing a real wait. Remove the code resuming the execution
13348 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13349 during the initial phase. Also remove the code changing
13350 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13351 TARGET_WAITKIND_STOPPED.
13352
e7f0d979
YQ
133532013-12-11 Yao Qi <yao@codesourcery.com>
13354
13355 * notif.c (handle_notif_ack): Return 0 if no notification
13356 matches.
13357
ebcf782c
DE
133582013-11-20 Doug Evans <dje@google.com>
13359
13360 * linux-low.c (linux_set_resume_request): Fix comment.
13361
20ad9378
DE
133622013-11-20 Doug Evans <dje@google.com>
13363
13364 * linux-low.c (resume_status_pending_p): Tweak comment.
13365
a196ebeb
WT
133662013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13367
13368 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13369 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13370 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13371 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13372 (srv_amd64_regobj): Add amd64-mpx.o.
13373 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13374 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13375 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13376 * i387-fp.c (num_pl_bnd_register) Added constant.
13377 (num_pl_bnd_cfg_registers) Added constant.
13378 (struct i387_xsave) Added reserved area and MPX fields.
13379 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13380 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13381 function.
13382 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13383 (init_registers_amd64_mpx_linux): Declare new function.
13384 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13385 (x86_64_regmap): Add MPX registers.
13386 (x86_linux_read_description): Add MPX case.
13387 (initialize_low_arch): Initialize MPX targets.
13388
0080a2f6
TT
133892013-11-18 Tom Tromey <tromey@redhat.com>
13390
13391 * configure: Rebuild.
13392 * configure.ac: Don't check for stdlib.h.
13393 * gdbreplay.c: Unconditionally include stdlib.h.
13394
2978b111
TT
133952013-11-18 Tom Tromey <tromey@redhat.com>
13396
13397 * config.in: Rebuild.
13398 * configure: Rebuild.
13399 * configure.ac: Don't use AC_HEADER_DIRENT.
13400
a3d08894
TT
134012013-11-18 Tom Tromey <tromey@redhat.com>
13402
13403 * server.h: Don't check HAVE_STRING_H.
13404 * gdbreplay.c: Don't check HAVE_STRING_H.
13405 * configure: Rebuild.
13406
0a5dd17d
TT
134072013-11-18 Tom Tromey <tromey@redhat.com>
13408
13409 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13410 LIBGNU.
13411
1bd2f0ba
TT
134122013-11-08 Tom Tromey <tromey@redhat.com>
13413
13414 * configure, config.in: Rebuild.
13415 * configure.ac: Remove unused configury.
13416
3266f10b
TT
134172013-11-08 Tom Tromey <tromey@redhat.com>
13418
13419 * acinclude.m4: Include common.m4, codeset.m4.
13420 * configure, config.in: Rebuild.
13421 * configure.ac: Use GDB_AC_COMMON.
13422
6682d959
AA
134232013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13424
13425 * linux-s390-low.c (HWCAP_S390_TE): New define.
13426 (s390_arch_setup): Consider the TE field in the HWCAP for
13427 determining 'have_regset_tdb'.
13428
fd0a4d76
SDJ
134292013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13430
13431 PR gdb/16014
13432 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13433 call to sizeof.
13434
1a3d890b
PA
134352013-10-02 Pedro Alves <palves@redhat.com>
13436
13437 * server.c (process_serial_event): Don't output "GDBserver
13438 exiting" if GDB is connected through stdio.
13439 * target.c (mywait): Likewise, be silent if GDB is connected
13440 through stdio.
13441
97ad4581
JB
134422013-10-01 Joel Brobecker <brobecker@adacore.com>
13443
13444 * lynx-low.c (lynx_add_threads_after_attach): New function.
13445 (lynx_attach): Remove call to add_thread. Add call to
13446 lynx_add_threads_after_attach instead.
13447
5b4e221c
MF
134482013-09-28 Mike Frysinger <vapier@gentoo.org>
13449
13450 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13451 * config.in, configure: Regenerated.
13452
ee47b2f8
YQ
134532013-09-18 Yao Qi <yao@codesourcery.com>
13454
13455 PR server/15959
13456 * server.c (start_inferior): Clear 'resume_info'.
13457
d6707650 134582013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13459
d6707650
JW
13460 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13461 for each register.
13462
9243dd0e 134632013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13464
9243dd0e
JW
13465 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13466 linux-tile-low.o to srv_tgtobj.
13467
c623a6ef
WN
134682013-09-16 Will Newton <will.newton@linaro.org>
13469
13470 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13471 out regs.
13472
fb71d39e
PA
134732013-09-06 Pedro Alves <palves@redhat.com>
13474
13475 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13476 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13477 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13478 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13479 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13480 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13481
8e7e9910
PA
134822013-09-06 Pedro Alves <palves@redhat.com>
13483
13484 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13485 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13486
7c3a12ca
PA
134872013-09-06 Pedro Alves <palves@redhat.com>
13488
13489 * linux-amd64-ipa.c: Include tracepoint.h.
13490 * linux-i386-ipa.c: Include tracepoint.h.
13491
8eb3d7b6
RW
134922013-09-06 Ricard Wanderlof <ricardw@axis.com>
13493
13494 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13495 (ps_get_thread_area): New function.
13496
eddddb9d
RW
134972013-09-06 Ricard Wanderlof <ricardw@axis.com>
13498
13499 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13500 (initialize_low_arch): Call init_registers_crisv32 rather than
13501 init_register_crisv32.
13502
533b0600
PA
135032013-09-05 Pedro Alves <palves@redhat.com>
13504
13505 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13506 to ...
13507 * hostio.h: ... this new file.
13508 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13509 win32-low.c: Include hostio.h.
13510
0ce3d3b5
PA
135112013-09-05 Pedro Alves <palves@redhat.com>
13512
13513 * server.h (gdb_client_data, handler_func, callback_handler_func)
13514 (delete_file_handler, add_file_handler, append_callback_event)
13515 (delete_callback_event, start_event_loop, initialize_event_loop):
13516 Move to event-loop.h and include it.
13517 * event-loop.h: New file.
13518
799cdc37
PA
135192013-09-05 Pedro Alves <palves@redhat.com>
13520
13521 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13522 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13523 (loaded_dll, unloaded_dll): Move to ...
13524 * dll.h: ... this new file.
13525 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13526
6a6bbd9d
PA
135272013-09-05 Pedro Alves <palves@redhat.com>
13528
13529 * server.h (current_process, get_thread_process, all_processes)
13530 (add_inferior_to_list, for_each_inferior, current_inferior)
13531 (remove_inferior, add_process, remove_process, find_process_pid)
13532 (have_started_inferiors_p, have_attached_inferiors_p)
13533 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13534 (clear_inferiors, find_inferior, find_inferior_id)
13535 (inferior_target_data, set_inferior_target_data)
13536 (inferior_regcache_data, set_inferior_regcache_data): Move to
13537 inferiors.h, and include it.
13538 * inferiors.h: New file.
13539
f699aaba
PA
135402013-09-05 Pedro Alves <palves@redhat.com>
13541
13542 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13543 Move ...
72f4393d 13544 * ax.h: ... here.
f699aaba 13545
c144c7a0
PA
135462013-09-05 Pedro Alves <palves@redhat.com>
13547
13548 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13549 tracepoint.h.
13550 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13551 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13552 (handle_tracepoint_general_set, handle_tracepoint_query)
13553 (tracepoint_finished_step, tracepoint_was_hit)
13554 (release_while_stepping_state_list, current_traceframe)
13555 (in_readonly_region, traceframe_read_mem)
13556 (fetch_traceframe_registers, traceframe_read_sdata)
13557 (traceframe_read_info, struct fast_tpoint_collect_status)
13558 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13559 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13560 (supply_fast_tracepoint_registers)
13561 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13562 (ipa_tdesc, claim_trampoline_space)
13563 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13564 (agent_mem_read, agent_get_trace_state_variable_value)
13565 (agent_set_trace_state_variable_value, agent_tsv_read)
13566 (agent_mem_read_string, get_raw_reg_func_addr)
13567 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13568 * tracepoint.h: ... this new file.
13569
ff42e6ab
PA
135702013-09-05 Pedro Alves <palves@redhat.com>
13571
13572 * server.h (perror_with_name, error, fatal, warning, paddress)
13573 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13574 include it.
13575 * utils.h: New file.
13576
541af0f4
PA
135772013-09-05 Pedro Alves <palves@redhat.com>
13578
13579 * server.h (remote_debug, noack_mode, transport_is_reliable)
13580 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13581 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13582 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13583 (write_enn, initialize_async_io, enable_async_io)
13584 (disable_async_io, check_remote_input_interrupt_request)
13585 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13586 (dead_thread_notify, prepare_resume_reply)
13587 (decode_address_to_semicolon, decode_address, decode_m_packet)
13588 (decode_M_packet, decode_X_packet, decode_xfer_write)
13589 (decode_search_memory_packet, unhexify, hexify)
13590 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13591 (look_up_one_symbol, relocate_instruction)
13592 (monitor_output): Move to remote-utils.h, and include it.
13593 * remote-utils.h: New file.
13594
eebdf26b
PA
135952013-09-05 Pedro Alves <palves@redhat.com>
13596
13597 * server.h (_): Delete.
13598
3aafd2ff
PA
135992013-09-02 Pedro Alves <palves@redhat.com>
13600
13601 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13602 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13603 allocated.
13604 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13605
cee83bcb
PM
136062013-09-02 Pierre Muller <muller@sourceware.org>
13607
13608 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13609 or WriteProcessMemory complete successfully and handle
13610 ERROR_PARTIAL_COPY error.
13611
9a13b2fa
PA
136122013-09-02 Pedro Alves <palves@redhat.com>
13613
13614 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13615 error instead of EIO.
13616
602e3198
JK
136172013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13618
13619 PR server/15604
13620 * linux-low.c: Include filestuff.h.
13621 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13622 * lynx-low.c: Include filestuff.h.
13623 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13624 * server.c: Include filestuff.h.
13625 (main): Call notice_open_fds.
13626 * spu-low.c: Include filestuff.h.
13627 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13628
96d7229d
LM
136292013-08-22 Luis Machado <lgustavo@codesourcery.com>
13630
13631 * Makefile.in: Explain why ../target and ../nat are not
13632 listed as include file search paths.
13633 (linux-waitpid.o): New object file rule.
13634 * configure.srv (srv_native_linux_obj): New variable.
13635 Replace all occurrences of linux native object files with
13636 $srv_native_linux_obj.
13637 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13638 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13639 (linux_enable_event_reporting): Remove declaration.
13640 (my_waitpid): Moved to common/linux-waitpid.c.
13641 (linux_wait_for_event): Pass ptid when calling
13642 linux_enable_event_reporting.
13643 (linux_supports_tracefork_flag): Remove.
13644 (linux_enable_event_reporting): Likewise.
13645 (linux_tracefork_grandchild): Remove.
13646 (STACK_SIZE): Moved to common/linux-ptrace.c.
13647 (linux_tracefork_child): Remove.
13648 (linux_test_for_tracefork): Remove.
13649 (linux_look_up_symbols): Call linux_supports_traceclone.
13650 (initialize_low): Remove call to linux_test_for_tracefork.
13651 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13652 common/linux-ptrace.h.
13653 (PTRACE_TYPE_ARG4): Likewise.
13654 Include linux-ptrace.h.
13655
32940073
PA
136562013-08-21 Pedro Alves <palves@redhat.com>
13657
13658 * config.in: Renegerate.
13659
33b60d58 136602013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13661
33b60d58
LM
13662 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13663 (SFILES): Remove $(srcdir)/common/target-common.c and
13664 add $(srcdir)/target/waitstatus.c.
13665 (OBS): Remove target-common.o and add waitstatus.o.
13666 (server_h): Remove $(srcdir)/../common/target-common.h and
13667 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13668 and $(srcdir)/../target/waitstatus.h.
13669 (target-common.o): Remove.
13670 (waitstatus.o): New target object file.
13671 * target.h: Do not include target-common.h and
13672 include target/resume.h, target/wait.h and
13673 target/waitstatus.h.
13674
b8e1b30e
LM
136752013-08-13 Luis Machado <lgustavo@codesourcery.com>
13676
13677 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13678 to PTRACE_TYPE_ARG3.
13679 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13680 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13681 PTRACE_TYPE_ARG4.
13682 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13683 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13684
7a60ad40
YQ
136852013-07-27 Jie Zhang <jie@codesourcery.com>
13686 Daniel Jacobowitz <dan@codesourcery.com>
13687 Yao Qi <yao@codesourcery.com>
13688
13689 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13690 (mips-linux-watch.o): New rule.
13691 (mips_linux_watch_h): New variable.
13692 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13693 srv_tgtobj.
13694 * linux-mips-low.c: Include mips-linux-watch.h.
13695 (struct arch_process_info, struct arch_lwp_info): New.
13696 (update_watch_registers_callback): New function.
13697 (mips_linux_new_process, mips_linux_new_thread) New functions.
13698 (mips_linux_prepare_to_resume, mips_insert_point): New
13699 functions.
13700 (mips_remove_point, mips_stopped_by_watchpoint): New
13701 functions.
13702 (rsp_bp_type_to_target_hw_bp_type): New function.
13703 (mips_stopped_data_address): New function.
13704 (the_low_target): Add watchpoint support functions.
13705
de6f69ad
YQ
137062013-07-27 Yao Qi <yao@codesourcery.com>
13707
13708 * i386-low.c: Include break-common.h.
13709 (enum target_hw_bp_type): Remove.
13710
3360c0bf
LM
137112013-07-24 Luis Machado <lgustavo@codesourcery.com>
13712
13713 * Makefile.in (SFILES): /common/target-common.c.
13714 (OBS): Add target-common.o.
13715 (server_h): Add $(srcdir)/../common/target-common.h.
13716 (target-common.o): New target.
13717 * server.c (queue_stop_reply_callback): Free
13718 status string after use.
13719 * target.c (target_waitstatus_to_string): Remove.
13720 * target.h: Include target-common.h.
13721 (resume_kind): Likewise.
13722 (target_waitkind): Likewise.
13723 (target_waitstatus): Likewise.
13724 (TARGET_WNOHANG): Likewise.
13725
bd885420
YQ
137262013-07-04 Yao Qi <yao@codesourcery.com>
13727
13728 * Makefile.in (host_alias): Use @host_noncanonical@.
13729 (target_alias): Use @target_noncanonical@.
13730 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13731 ACX_NONCANONICAL_HOST.
13732 * configure: Regenerated.
13733
13734 Revert:
13735 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13736
13737 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13738 * configure: Rebuild.
13739 * Makefile.in (version_host, version_target): Get from configure.
13740 (version.c): Use $(version_host) and $(version_target).
13741
17ef446e
PA
137422013-07-03 Pedro Alves <palves@redhat.com>
13743
13744 * Makefile.in (config.status): Depend on development.sh.
13745 * acinclude.m4: Include libmcheck.m4.
13746 * configure: Regenerate.
13747
7a9a7487
MG
137482013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13749
13750 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13751 attribute inside the parentheses.
13752 (winapi_DebugSetProcessKillOnExit): Ditto.
13753 (winapi_DebugBreakProcess): Ditto.
13754 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13755
49b64de6
MG
137562013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13757
13758 * notif.h (notif_event): Add a dummy member to avoid compiler
13759 errors.
13760
d5749ee7
PA
137612013-07-01 Pedro Alves <palves@redhat.com>
13762
13763 * hostio.c (HOSTIO_PATH_MAX): Define.
13764 (require_filename, handle_open, handle_unlink, handle_readlink):
13765 Use it.
13766
d8d2a3ee
PA
137672013-07-01 Pedro Alves <palves@redhat.com>
13768
13769 * server.h: Include "pathmax.h".
13770 * linux-low.c: Don't include sys/param.h.
13771 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13772 MAXPATHLEN.
13773 * win32-low.c: Don't include sys/param.h.
13774 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13775
bc7dea8d
PA
137762013-07-01 Pedro Alves <palves@redhat.com>
13777
13778 * event-loop.c: Don't check HAVE_UNISTD_H before including
13779 <unistd.h>.
13780 * gdbreplay.c: Likewise.
13781 * remote-utils.c: Likewise.
13782 * server.c: Likewise.
13783 * configure.ac: Don't check for unistd.h.
13784 * configure: Regenerate.
13785
d6c2da54
TT
137862013-06-28 Tom Tromey <tromey@redhat.com>
13787
13788 * Makefile.in (version.c): Use version.in, not
13789 common/version.in.
13790
257b6bec
MG
137912013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13792
13793 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13794 * configure: Rebuild.
13795 * Makefile.in (version_host, version_target): Get from configure.
13796 (version.c): Use $(version_host) and $(version_target).
13797
86ebe149
DK
137982013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13799
13800 Fix trace-status to output user name without trailing colon.
13801 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13802
f30aa5af
DK
138032013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13804
13805 Fix trace-status to output proper start-time and stop-time.
13806 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13807 output start time and stop time in hex as gdb expects.
13808
28a93511
YQ
138092013-06-26 Pedro Alves <pedro@codesourcery.com>
13810
13811 * tracepoint.c (build_traceframe_info_xml): Output trace state
13812 variables present in the trace buffer.
13813
01208463
TT
138142013-06-24 Tom Tromey <tromey@redhat.com>
13815
13816 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13817 create-version.sh.
13818 (version.o): Remove.
13819 * gdbreplay.c: Include version.h.
13820 (version, host_name): Don't declare.
13821 * server.h: Include version.h.
13822 (version, host_name): Don't declare.
13823
760256f9
PA
138242013-06-12 Pedro Alves <palves@redhat.com>
13825
13826 * linux-x86-low.c (linux_is_elf64): Delete global.
13827 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13828 with local linux_pid_exe_is_elf_64_file use.
13829
030031ee
PA
138302013-06-11 Pedro Alves <palves@redhat.com>
13831
13832 * linux-low.c (regset_disabled, disable_regset): New functions.
13833 (regsets_fetch_inferior_registers)
13834 (regsets_store_inferior_registers): Use them.
13835 (initialize_regsets_info); Don't allocate the disabled_regsets
13836 array here.
13837 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13838 comment.
13839
5da6eb0a
PA
138402013-06-11 Pedro Alves <palves@redhat.com>
13841
13842 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13843 xmalloc.
13844
7e5aaa09
PA
138452013-06-11 Pedro Alves <palves@redhat.com>
13846
13847 * linux-x86-low.c (initialize_low_arch): Call
13848 init_registers_x32_avx_linux.
13849
d878444c
JK
138502013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13851
13852 Fix compatibility with Android Bionic.
13853 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13854 it is not empty.
13855
3aee8918
PA
138562013-06-07 Pedro Alves <palves@redhat.com>
13857
5f2b57b5 13858 PR server/14823
3aee8918
PA
13859 * Makefile.in (OBS): Add tdesc.o.
13860 (IPA_OBJS): Add tdesc-ipa.o.
13861 (tdesc-ipa.o): New rule.
13862 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13863 interface.
13864 * linux-low.c (new_inferior): Delete.
13865 (disabled_regsets, num_regsets): Delete.
13866 (linux_add_process): Adjust to set the new per-process
13867 new_inferior flag.
13868 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13869 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13870 was a stop. When calling arch_setup, switch the current inferior
13871 to the thread that got an event.
13872 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13873 (regsets_fetch_inferior_registers)
13874 (regsets_store_inferior_registers): New regsets_info parameter.
13875 Adjust to use it.
13876 (linux_register_in_regsets): New regs_info parameter. Adjust to
13877 use it.
13878 (register_addr, fetch_register, store_register): New usrregs_info
13879 parameter. Adjust to use it.
13880 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13881 parameter regs_info. Adjust to use it.
13882 (linux_fetch_registers): Get the current inferior's regs_info, and
13883 adjust to use it.
13884 (linux_store_registers): Ditto.
13885 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13886 (initialize_low): Don't initialize the target_regsets here. Call
13887 initialize_low_arch.
13888 * linux-low.h (target_regsets): Delete declaration.
13889 (struct regsets_info): New.
13890 (struct usrregs_info): New.
13891 (struct regs_info): New.
13892 (struct process_info_private) <new_inferior>: New field.
13893 (struct linux_target_ops): Delete the num_regs, regmap, and
13894 regset_bitmap fields. New field regs_info.
13895 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13896 * i387-fp.c (num_xmm_registers): Delete.
13897 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13898 calls to new interface.
13899 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13900 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13901 Infer the number of xmm registers from the regcache's target
13902 description.
13903 * i387-fp.h (num_xmm_registers): Delete.
13904 * inferiors.c (add_thread): Don't install the thread's regcache
13905 here.
13906 * proc-service.c (gregset_info): Fetch the current inferior's
13907 regs_info. Adjust to use it.
13908 * regcache.c: Include tdesc.h.
13909 (register_bytes, reg_defs, num_registers)
13910 (gdbserver_expedite_regs): Delete.
13911 (get_thread_regcache): If the thread doesn't have a regcache yet,
13912 create one, instead of aborting gdbserver.
13913 (regcache_invalidate_one): Rename to ...
13914 (regcache_invalidate_thread): ... this.
13915 (regcache_invalidate_one): New.
13916 (regcache_invalidate): Only invalidate registers of the current
13917 process.
13918 (init_register_cache): Add target_desc parameter, and use it.
13919 (new_register_cache): Ditto. Assert the target description has a
13920 non zero registers_size.
13921 (regcache_cpy): Add assertions. Adjust.
13922 (realloc_register_cache, set_register_cache): Delete.
13923 (registers_to_string, registers_from_string): Adjust.
13924 (find_register_by_name, find_regno, find_register_by_number)
13925 (register_cache_size): Add target_desc parameter, and use it.
13926 (free_register_cache_thread, free_register_cache_thread_one)
13927 (regcache_release, register_cache_size): New.
13928 (register_size): Add target_desc parameter, and use it.
13929 (register_data, supply_register, supply_register_zeroed)
13930 (supply_regblock, supply_register_by_name, collect_register)
13931 (collect_register_as_string, collect_register_by_name): Adjust.
13932 * regcache.h (struct target_desc): Forward declare.
13933 (struct regcache) <tdesc>: New field.
13934 (init_register_cache, new_register_cache): Add target_desc
13935 parameter.
13936 (regcache_invalidate_thread): Declare.
13937 (regcache_invalidate_one): Delete declaration.
13938 (regcache_release): Declare.
13939 (find_register_by_number, register_cache_size, register_size)
13940 (find_regno): Add target_desc parameter.
13941 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13942 declarations.
13943 * remote-utils.c: Include tdesc.h.
13944 (outreg, prepare_resume_reply): Adjust.
13945 * server.c: Include tdesc.h.
13946 (gdbserver_xmltarget): Delete declaration.
13947 (get_features_xml, process_serial_event): Adjust.
13948 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13949 declare.
13950 (struct process_info) <tdesc>: New field.
13951 (ipa_tdesc): Declare.
13952 * tdesc.c: New file.
13953 * tdesc.h: New file.
13954 * tracepoint.c: Include tdesc.h.
13955 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13956 (get_context_regcache): Adjust to pass ipa_tdesc down.
13957 (do_action_at_tracepoint): Adjust to get the register cache size
13958 from the context regcache's description.
13959 (traceframe_walk_blocks): Adjust to get the register cache size
13960 from the current trace frame's description.
13961 (traceframe_get_pc): Adjust to get current trace frame's
13962 description and pass it down.
13963 (gdb_collect): Adjust to get the register cache size from the
13964 IPA's description.
13965 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13966 (gdbserver_xmltarget): Delete.
13967 (initialize_low_tracepoint): Set the ipa's target description.
13968 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13969 (initialize_low_tracepoint): Set the ipa's target description.
13970 * linux-x86-low.c: Include tdesc.h.
13971 [__x86_64__] (is_64bit_tdesc): New.
13972 (ps_get_thread_area, x86_get_thread_area): Use it.
13973 (i386_cannot_store_register): Rename to ...
13974 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13975 (i386_cannot_fetch_register): Rename to ...
13976 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13977 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13978 to new interface.
13979 (target_regsets): Rename to ...
13980 (x86_regsets): ... this.
13981 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13982 interface.
13983 (x86_siginfo_fixup): Use is_64bit_tdesc.
13984 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13985 (tdesc_x32_avx_linux, tdesc_x32_linux)
13986 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13987 Declare.
13988 (x86_linux_update_xmltarget): Delete.
13989 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13990 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13991 (AMD64_LINUX_USER64_CS): New.
13992 (x86_linux_read_description): New, based on
13993 x86_linux_update_xmltarget.
13994 (same_process_callback): New.
13995 (x86_arch_setup_process_callback): New.
13996 (x86_linux_update_xmltarget): New.
13997 (x86_regsets_info): New.
13998 (amd64_linux_regs_info): New.
13999 (i386_linux_usrregs_info): New.
14000 (i386_linux_regs_info): New.
14001 (x86_linux_regs_info): New.
14002 (x86_arch_setup): Reimplement.
14003 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14004 (x86_emit_ops): Ditto.
14005 (the_low_target): Adjust. Install x86_linux_regs_info,
14006 x86_cannot_fetch_register, and x86_cannot_store_register.
14007 (initialize_low_arch): New.
14008 * linux-ia64-low.c (tdesc_ia64): Declare.
14009 (ia64_fetch_register): Adjust.
14010 (ia64_usrregs_info, regs_info): New globals.
14011 (ia64_regs_info): New function.
14012 (the_low_target): Adjust.
14013 (initialize_low_arch): New function.
14014 * linux-sparc-low.c (tdesc_sparc64): Declare.
14015 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14016 Adjust.
14017 (sparc_arch_setup): New function.
14018 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14019 (the_low_target): Adjust.
14020 (initialize_low_arch): New function.
14021 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14022 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14023 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14024 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14025 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14026 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14027 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14028 (tdesc_powerpc_isa205_vsx64l): Declare.
14029 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14030 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14031 (ppc_set_pc, ppc_get_hwcap): Adjust.
14032 (ppc_usrregs_info): Forward declare.
14033 (!__powerpc64__) ppc_regmap_adjusted: New global.
14034 (ppc_arch_setup): Adjust to the current process'es target
14035 description.
14036 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14037 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14038 (ppc_store_evrregset): Adjust.
14039 (target_regsets): Rename to ...
14040 (ppc_regsets): ... this, and make static.
14041 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14042 (ppc_regs_info): New function.
14043 (the_low_target): Adjust.
14044 (initialize_low_arch): New function.
14045 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14046 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14047 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14048 (tdesc_s390x_linux64v2): Declare.
14049 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14050 (s390_fill_gregset, s390_store_last_break): Adjust.
14051 (target_regsets): Rename to ...
14052 (s390_regsets): ... this, and make static.
14053 (s390_get_pc, s390_set_pc): Adjust.
14054 (s390_get_hwcap): New target_desc parameter, and use it.
14055 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14056 (s390_arch_setup): Adjust to set the current process'es target
14057 description. Don't adjust the regmap.
14058 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14059 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14060 (regs_info_3264): New globals.
14061 (s390_regs_info): New function.
14062 (the_low_target): Adjust.
14063 (initialize_low_arch): New function.
14064 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14065 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14066 [__mips64] (init_registers_mips_linux)
14067 (init_registers_mips_dsp_linux): Delete defines.
14068 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14069 (have_dsp): New global.
14070 (mips_read_description): New, based on mips_arch_setup.
14071 (mips_arch_setup): Reimplement.
14072 (get_usrregs_info): New function.
14073 (mips_cannot_fetch_register, mips_cannot_store_register)
14074 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14075 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14076 (target_regsets): Rename to ...
14077 (mips_regsets): ... this, and make static.
14078 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14079 (dsp_regs_info, regs_info): New globals.
14080 (mips_regs_info): New function.
14081 (the_low_target): Adjust.
14082 (initialize_low_arch): New function.
14083 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14084 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14085 Declare.
14086 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14087 (arm_read_description): New, with bits factored from
14088 arm_arch_setup.
14089 (arm_arch_setup): Reimplement.
14090 (target_regsets): Rename to ...
14091 (arm_regsets): ... this, and make static.
14092 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14093 (arm_regs_info): New function.
14094 (the_low_target): Adjust.
14095 (initialize_low_arch): New function.
14096 * linux-m68k-low.c (tdesc_m68k): Declare.
14097 (target_regsets): Rename to ...
14098 (m68k_regsets): ... this, and make static.
14099 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14100 (m68k_regs_info): New function.
14101 (m68k_arch_setup): New function.
14102 (the_low_target): Adjust.
14103 (initialize_low_arch): New function.
14104 * linux-sh-low.c (tdesc_sharch): Declare.
14105 (target_regsets): Rename to ...
14106 (sh_regsets): ... this, and make static.
14107 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14108 (sh_regs_info, sh_arch_setup): New functions.
14109 (the_low_target): Adjust.
14110 (initialize_low_arch): New function.
14111 * linux-bfin-low.c (tdesc_bfin): Declare.
14112 (bfin_arch_setup): New function.
14113 (bfin_usrregs_info, regs_info): New globals.
14114 (bfin_regs_info): New function.
14115 (the_low_target): Adjust.
14116 (initialize_low_arch): New function.
14117 * linux-cris-low.c (tdesc_cris): Declare.
14118 (cris_arch_setup): New function.
14119 (cris_usrregs_info, regs_info): New globals.
14120 (cris_regs_info): New function.
14121 (the_low_target): Adjust.
14122 (initialize_low_arch): New function.
14123 * linux-cris-low.c (tdesc_crisv32): Declare.
14124 (cris_arch_setup): New function.
14125 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14126 (cris_regs_info): New function.
14127 (the_low_target): Adjust.
14128 (initialize_low_arch): New function.
14129 * linux-m32r-low.c (tdesc_m32r): Declare.
14130 (m32r_arch_setup): New function.
14131 (m32r_usrregs_info, regs_info): New globals.
14132 (m32r_regs_info): Adjust.
14133 (initialize_low_arch): New function.
14134 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14135 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14136 (tic6x_usrregs_info): Forward declare.
14137 (tic6x_read_description): New function, based on ...
14138 (tic6x_arch_setup): ... this. Reimplement.
14139 (target_regsets): Rename to ...
14140 (tic6x_regsets): ... this, and make static.
14141 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14142 (tic6x_regs_info): New function.
14143 (the_low_target): Adjust.
14144 (initialize_low_arch): New function.
14145 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14146 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14147 (target_regsets): Rename to ...
14148 (xtensa_regsets): ... this, and make static.
14149 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14150 globals.
14151 (xtensa_arch_setup, xtensa_regs_info): New functions.
14152 (the_low_target): Adjust.
14153 (initialize_low_arch): New function.
14154 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14155 (nios2_arch_setup): Set the current process'es tdesc.
14156 (target_regsets): Rename to ...
14157 (nios2_regsets): ... this.
14158 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14159 (nios2_regs_info): New function.
14160 (the_low_target): Adjust.
14161 (initialize_low_arch): New function.
a261b8f5
PA
14162 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14163 (aarch64_arch_setup): Set the current process'es tdesc.
14164 (target_regsets): Rename to ...
14165 (aarch64_regsets): ... this.
14166 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14167 (aarch64_regs_info): New function.
14168 (the_low_target): Adjust.
14169 (initialize_low_arch): New function.
3aee8918
PA
14170 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14171 globals.
14172 (target_regsets): Rename to ...
14173 (tile_regsets): ... this.
14174 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14175 (tile_regs_info): New function.
14176 (tile_arch_setup): Set the current process'es tdesc.
14177 (the_low_target): Adjust.
14178 (initialize_low_arch): New function.
14179 * spu-low.c (tdesc_spu): Declare.
14180 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14181 * win32-arm-low.c (tdesc_arm): Declare.
14182 (arm_arch_setup): New function.
14183 (the_low_target): Install arm_arch_setup instead of
14184 init_registers_arm.
14185 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14186 (init_windows_x86): Rename to ...
14187 (i386_arch_setup): ... this. Set `win32_tdesc'.
14188 (the_low_target): Adjust.
14189 * win32-low.c (win32_tdesc): New global.
14190 (child_add_thread): Don't create the thread cache here.
14191 (do_initial_child_stuff): Set the new process'es tdesc.
14192 * win32-low.h (struct target_desc): Forward declare.
14193 (win32_tdesc): Declare.
14194 * lynx-i386-low.c (tdesc_i386): Declare global.
14195 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14196 * lynx-low.c (lynx_tdesc): New global.
14197 (lynx_add_process): Set the new process'es tdesc.
14198 * lynx-low.h (struct target_desc): Forward declare.
14199 (lynx_tdesc): Declare global.
14200 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14201 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14202 * nto-low.c (nto_tdesc): New global.
14203 (do_attach): Set the new process'es tdesc.
14204 * nto-low.h (struct target_desc): Forward declare.
14205 (nto_tdesc): Declare.
14206 * nto-x86-low.c (tdesc_i386): Declare.
14207 (nto_x86_arch_setup): Set `nto_tdesc'.
14208
b1fbec62
GB
142092013-06-04 Gary Benson <gbenson@redhat.com>
14210
14211 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14212 to qSupported response when appropriate.
14213 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14214 with nonzero-length annex.
14215 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14216 arguments supplied in annex.
14217
d1ec4ce7
DE
142182013-05-31 Doug Evans <dje@google.com>
14219
ac44adcb 14220 PR server/15594
d1ec4ce7
DE
14221 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14222 64 bits in 64-cross-32 environment.
14223
9b25f2d3
PA
142242013-05-28 Pedro Alves <palves@redhat.com>
14225
14226 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14227 (aarch64-without-fpu.c): Delete rule.
14228 * configure.srv (aarch64*-*-linux*): Remove references to
14229 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14230 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14231 declaration.
14232
6740dc9c
PA
142332013-05-24 Pedro Alves <palves@redhat.com>
14234
14235 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14236 instead of strchr/decode_address. Error if the range isn't split
14237 with a ','. Don't assume there's be a ':' in the action.
14238
c2d6af84
PA
142392013-05-23 Yao Qi <yao@codesourcery.com>
14240 Pedro Alves <palves@redhat.com>
14241
14242 * linux-low.c (lwp_in_step_range): New function.
14243 (linux_wait_1): If the thread was range stepping and stopped
14244 outside the stepping range, report the stop to GDB. Otherwise,
14245 continue stepping. Add range stepping debug output.
14246 (linux_set_resume_request): Copy the step range from the resume
14247 request to the lwp.
14248 (linux_supports_range_stepping): New.
14249 (linux_target_ops) <supports_range_stepping>: Set to
14250 linux_supports_range_stepping.
14251 * linux-low.h (struct linux_target_ops)
14252 <supports_range_stepping>: New field.
14253 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14254 * linux-x86-low.c (x86_supports_range_stepping): New.
14255 (the_low_target) <supports_range_stepping>: Set to
14256 x86_supports_range_stepping.
14257 * server.c (handle_v_cont): Handle 'r' action.
14258 (handle_v_requests): Append ";r" if the target supports range
14259 stepping.
14260 * target.h (struct thread_resume) <step_range_start,
14261 step_range_end>: New fields.
14262 (struct target_ops) <supports_range_stepping>:
14263 New field.
14264 (target_supports_range_stepping): New macro.
14265
58794e1a
JB
142662013-05-17 Joel Brobecker <brobecker@adacore.com>
14267
14268 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14269 confusion in comment.
14270
d631c5a7
JB
142712013-05-17 Joel Brobecker <brobecker@adacore.com>
14272
14273 * lynx-low.c (struct process_info_private): New type.
14274 (lynx_add_process): New function.
14275 (lynx_create_inferior, lynx_attach): Replace calls to
14276 add_process by calls to lynx_add_process.
14277 (lynx_resume): If PTID is null, then try using
14278 current_process()->private->last_wait_event_ptid.
14279 Add comments.
14280 (lynx_clear_inferiors): Delete. The contents of that function
14281 has been inlined in lynx_mourn;
14282 (lynx_wait_1): Save the ptid in the process's private data.
14283 (lynx_mourn): Free the process' private data. Replace call
14284 to lynx_clear_inferiors by call to clear_inferiors.
14285
96f7a20f
YQ
142862013-05-17 Yao Qi <yao@codesourcery.com>
14287
14288 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14289 the right place.
14290
db0dfaa0
LM
142912013-05-16 Luis Machado <lgustavo@codesourcery.com>
14292
14293 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14294 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14295 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14296 PT_TEXT_END_ADDR guards. Update comments.
14297 (linux_target_op) <read_offsets>: Conditionally define to
14298 linux_read_offsets if the target is UCLIBC and if it defines
14299 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14300
68f5f838
SL
143012013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14302 Andrew Jenner <andrew@codesourcery.com>
14303
14304 * Makefile.in (SFILES): Add linux-nios2-low.c.
14305 (clean): Add action to delete nios2-linux.c.
14306 (nios2-linux.c): New rule.
14307 * configure.srv: Add nios2*-*-linux*.
14308 * linux-nios2-low.c: New.
14309
1ebff1fd
HAQ
143102013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14311
14312 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14313
f6150862
HZ
143142013-04-25 Hui Zhu <hui@codesourcery.com>
14315
14316 PR gdb/15186
f6150862
HZ
14317 * ax.c (ax_printf): Add fflush.
14318
614c279d
TT
143192013-04-22 Tom Tromey <tromey@redhat.com>
14320
14321 * Makefile.in (SFILES): Add filestuff.c.
14322 (OBS): Add filestuff.o.
14323 (filestuff.o): New target.
14324 * config.in, configure: Rebuild.
14325 * configure.ac: Check for fdwalk, pipe2.
14326
7d4e5717
PA
143272013-04-17 Pedro Alves <palves@redhat.com>
14328
14329 * configure.ac (USE_THREAD_DB): Delete variable.
14330 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14331 Don't AC_SUBST USE_THREAD_DB.
14332 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14333 * config.in, configure: Regenerate.
14334
d5c93e41
PA
143352013-04-16 Pedro Alves <palves@redhat.com>
14336
14337 * linux-low.h (struct lwp_info) <thread_known>: Move under
14338 the USE_THREAD_DB #ifdef.
14339
04f5fe89
PA
143402013-04-16 Pedro Alves <palves@redhat.com>
14341
14342 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14343 (linux-low.o): Delete rule.
14344 * linux-low.h: Always include "gdb_thread_db.h" instead of
14345 conditionally including thread_db.h.
14346 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14347 HAVE_THREAD_DB_H.
14348
480b27bf
JK
143492013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14350
14351 * Makefile.in (install-only): Fix make install regression.
14352
43662968
JK
143532013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14354
14355 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14356 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14357 installation.
14358 * gdbserver.1: Remove.
14359
3e74e146
PA
143602013-03-22 Pedro Alves <palves@redhat.com>
14361
14362 * linux-low.c (handle_extended_wait): Don't call
14363 linux_enable_event_reporting.
14364
a8347a2a
TT
143652013-03-15 Tony Theodore <tonyt@logyst.com>
14366
14367 PR build/9098:
14368 * Makefile.in (SHELL): Use @SHELL@.
14369
eeb56fa7
SDJ
143702013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14371
14372 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14373 compiler warning.
14374
4fa7e2ff
JB
143752013-03-13 Joel Brobecker <brobecker@adacore.com>
14376
14377 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14378 Remove extraneous NULL element.
14379
8ddb1965
YQ
143802013-03-13 Yao Qi <yao@codesourcery.com>
14381
14382 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14383 'V' block in trace frame.
14384
9accd112
MM
143852013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14386
14387 * target.h (struct target_ops): Add btrace ops.
14388 (target_supports_btrace): New macro.
14389 (target_enable_btrace): New macro.
14390 (target_disable_btrace): New macro.
14391 (target_read_btrace): New macro.
14392 * gdbthread.h (struct thread_info): Add btrace field.
14393 * server.c: Include btrace-common.h.
14394 (handle_btrace_general_set): New function.
14395 (handle_btrace_enable): New function.
14396 (handle_btrace_disable): New function.
14397 (handle_general_set): Call handle_btrace_general_set.
14398 (handle_qxfer_btrace): New function.
14399 (struct qxfer qxfer_packets[]): Add btrace entry.
14400 * inferiors.c (remove_thread): Disable btrace.
14401 * linux-low: Include linux-btrace.h.
14402 (linux_low_enable_btrace): New function.
14403 (linux_low_read_btrace): New function.
14404 (linux_target_ops): Add btrace ops.
14405 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14406 Add srv_linux_btrace=yes.
14407 (x86_64-*-linux*): Add linux-btrace.o.
14408 Add srv_linux_btrace=yes.
14409 * configure.ac: Define HAVE_LINUX_BTRACE.
14410 * config.in: Regenerated.
14411 * configure: Regenerated.
14412
5cc22e4c
MM
144132013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14414
14415 * server.c (handle_qxfer): Preserve error message if -3 is
14416 returned.
14417 (qxfer): Document the -3 return value.
14418
7c97f91e
MM
144192013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14420
14421 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14422 (linux_btrace_h): New variable.
14423 (linux-btrace.o): New rule.
14424
be9a119c 144252013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14426 Hafiz Abid Qadeer <abidh@codesourcery.com>
14427
14428 * tracepoint.c (trace_buffer_size): New global.
14429 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14430 (init_trace_buffer): Change to one-argument function. Allocate
14431 trace buffer memory.
14432 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14433 handle QTBuffer:size packet.
14434 (cmd_bigqtbuffer_size): New function.
14435 (initialize_tracepoint): Call init_trace_buffer with
14436 DEFAULT_TRACE_BUFFER_SIZE.
14437 * server.c (handle_query): Add QTBuffer:size in the
14438 supported packets.
14439
e64f7499
YQ
144402013-03-07 Yao Qi <yao@codesourcery.com>
14441
14442 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14443 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14444 of -1.
14445 (cmd_qtsp): Adjust condition. Do post increment.
14446 Set cur_action and cur_step_action back to 0.
14447
f0ae6fc3
PA
144482013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14449
14450 PR server/15236
14451 * linux-low.c (linux_write_memory): Return early success if LEN is
14452 zero.
14453
b5b0b0af
CV
144542013-03-05 Corinna Vinschen <vinschen@redhat.de>
14455
334ad4a8 14456 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14457
589bc927
TT
144582013-02-28 Tom Tromey <tromey@redhat.com>
14459
14460 * configure.ac: Invoke AC_SYS_LARGEFILE.
14461 * configure, config.in: Rebuild.
14462
dfe07582
CV
144632013-02-28 Corinna Vinschen <vinschen@redhat.com>
14464
14465 * win32-low.c: Throughout, fix format strings and casts of
14466 printf-like functions to avoid type related warnings on all
14467 platforms.
14468 (get_child_debug_event): Print dwDebugEventCode as hex since
14469 that's how it's usually documented.
14470
736cd585
YQ
144712013-02-28 Yao Qi <yao@codesourcery.com>
14472
14473 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14474 pulongest.
14475
e1f58301
JW
144762013-02-27 Jiong Wang <jiwang@tilera.com>
14477
14478 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14479 (reg-tilegx32.c): New rule.
14480 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14481 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14482 different register info initializer according to elf class.
14483 (init_registers_tilgx32): New function. The tilegx32 register info
14484 initializer.
14485 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14486 (tile_store_gregset): Likewise.
14487
d171ca78
YQ
144882013-02-27 Yao Qi <yao@codesourcery.com>
14489
14490 * server.c (process_point_options): Print debug message when
14491 debug_threads is true.
14492
282bbdf3
YQ
144932013-02-26 Yao Qi <yao@codesourcery.com>
14494
14495 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14496
aca22551
PA
144972013-02-19 Pedro Alves <palves@redhat.com>
14498 Kai Tietz <ktietz@redhat.com>
14499
14500 PR gdb/15161
14501
14502 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14503 instead of strtoul to extract address from packet.
14504 (process_serial_event) <'z'>: Likewise.
14505
4f3cee1c
YQ
145062013-02-18 Yao Qi <yao@codesourcery.com>
14507
14508 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14509
8e1d55a3
PA
145102013-02-14 Pedro Alves <palves@redhat.com>
14511
14512 Plug memory leak.
14513
14514 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14515 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14516
458820da
PA
145172013-02-14 Pedro Alves <palves@redhat.com>
14518
14519 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14520
baea0dae
PA
145212013-02-14 Pedro Alves <palves@redhat.com>
14522
14523 * tracepoint.c (save_string): Delete.
14524 (add_tracepoint_action): Use savestring instead of save_string.
14525
0b1afbb3
PA
145262013-02-12 Pedro Alves <palves@redhat.com>
14527
14528 * linux-xtensa-low.c: Ditto.
14529 * xtensa-xtregs.c: Ditto.
14530
8a4ac37e
PA
145312013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14532
14533 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14534 thread_db.
14535
148de6bb
MS
145362013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14537
14538 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14539 aarch64_num_wp_regs and aarch64_num_bp_regs to
14540 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14541
55fac6e0
MS
145422013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14543
14544 * linux-aarch64-low.c (ps_get_thread_area): Replace
14545 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14546
176eb98c
MS
145472013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14548 Marcus Shawcroft <marcus.shawcroft@arm.com>
14549 Nigel Stephens <nigel.stephens@arm.com>
14550 Yufeng Zhang <yufeng.zhang@arm.com>
14551
14552 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14553 (aarch64.c, aarch64-without-fpu.c): New targets.
14554 * configure.srv (aarch64*-*-linux*): New.
14555 * linux-aarch64-low.c: New file.
14556
56f7af9c
MS
145572013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14558
43aaf8b6 14559 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14560 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14561 (dequeue_one_deferred_signal, linux_resume_one_thread)
14562 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14563 (linux_tracefork_grandchild, linux_test_for_tracefork)
14564 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14565 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14566 where the argument is 0.
14567
60f662b0
YQ
145682013-01-25 Yao Qi <yao@codesourcery.com>
14569
14570 * event-loop.c: Include "queue.h".
14571 (gdb_event_p): New typedef.
14572 (struct gdb_event) <next_event>: Remove.
14573 (event_queue): Change to QUEUE(gdb_event_p).
14574 (async_queue_event): Remove.
14575 (gdb_event_xfree): New.
14576 (initialize_event_loop): New.
14577 (process_event): Use API from QUEUE.
14578 (wait_for_event): Likewise.
14579 * server.c (main): Call initialize_event_loop.
14580 * server.h (initialize_event_loop): Declare.
14581
5ae4861a
YQ
145822013-01-18 Yao Qi <yao@codesourcery.com>
14583
14584 * ax.h (struct eval_agent_expr_context): New.
14585 (gdb_eval_agent_expr): Update declaration.
14586 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14587 TFRAME. Add new argument CTX.
14588 * server.h (struct eval_agent_expr_context): Declare.
14589 (agent_mem_read, agent_tsv_read): Update declaration.
14590 (agent_mem_read_string): Likewise.
14591 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14592 (add_traceframe_block): Add new argument TPOINT.
14593 Increase TPOINT->traceframe_usage.
14594 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14595 eval_tracepoint_agent_expr.
14596 (condition_true_at_tracepoint): Likewise.
14597 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14598 (agent_mem_read_string, agent_tsv_read): Likewise.
14599
85e00e85
YQ
146002013-01-16 Yao Qi <yao@codesourcery.com>
14601
14602 * linux-low.c (linux_resume_one_lwp): Don't check
14603 'lwp->bp_reinsert != 0'.
14604
4039cf45
JB
146052013-01-07 Joel Brobecker <brobecker@adacore.com>
14606 Pedro Alves <palves@redhat.com>
14607
14608 * lynx-low.c (ptrace_request_to_str): Define a temporary
14609 macro and use it to simplify this function's implementation.
14610
9044dee2
JB
146112013-01-07 Joel Brobecker <brobecker@adacore.com>
14612
14613 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14614 sets errno.
14615
e6352c8f
JB
146162013-01-07 Joel Brobecker <brobecker@adacore.com>
14617
14618 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14619
50681a27
JB
146202013-01-07 Joel Brobecker <brobecker@adacore.com>
14621
14622 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14623
3f6e77ef
JB
146242013-01-07 Joel Brobecker <brobecker@adacore.com>
14625
14626 * lynx-low.c (lynx_resume): Use the resume_info parameter
14627 to determine the ptid for the lynx_ptrace call, unless
14628 it is equal to minus_one_ptid, in which case we use the
14629 ptid of the current_inferior.
14630 (lynx_wait_1): After having received a thread create/exit
14631 event, resume the inferior's execution using the signaling
14632 thread's ptid, rather than the old ptid.
14633
7fda33ae
JB
146342013-01-07 Joel Brobecker <brobecker@adacore.com>
14635
14636 * lynx-low.c (lynx_resume): Delete variable ret.
14637
b9786c74
JB
146382013-01-01 Joel Brobecker <brobecker@adacore.com>
14639
14640 * gdbreplay.c (gdbreplay_version): Update copyright year.
14641 * server.c (gdbserver_version): Likewise.
14642
8b93d60f
JB
146432012-12-17 Joel Brobecker <brobecker@adacore.com>
14644
14645 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14646 new thread.
14647
037335a7
JB
146482012-12-17 Joel Brobecker <brobecker@adacore.com>
14649
14650 * lynx-low.c (ptrace_request_to_str): Add handling for
14651 PTRACE_GETTRACESIG.
14652
52d4cbd8
JB
146532012-12-17 Joel Brobecker <brobecker@adacore.com>
14654
14655 * lynx-low.c (lynx_attach): Delete variable new_process.
14656
ab8f6ca9
JB
146572012-12-17 Joel Brobecker <brobecker@adacore.com>
14658
14659 * lynx-low.c (lynx_create_inferior): Delete variable
14660 new_process.
14661
78cbc024
JB
146622012-12-17 Joel Brobecker <brobecker@adacore.com>
14663
14664 * lynx-low.c (ptrace_request_to_str): Do not handle
14665 PTRACE_GETTHREADLIST if this macro does not exist.
14666
14a00470
YQ
146672012-12-15 Yao Qi <yao@codesourcery.com>
14668
14669 * Makefile.in (OBS): Add notif.o.
14670 * notif.c, notif.h: New.
14671 * server.c: Include "notif.h".
14672 (struct vstop_notif) <next>: Remove.
14673 <base>: New field.
14674 (queue_stop_reply): Update.
14675 (push_event, send_next_stop_reply): Remove.
14676 (discard_queued_stop_replies): Update.
14677 (notif_stop): New variable.
14678 (handle_v_stopped): Remove.
14679 (handle_v_requests): Don't call handle_v_stopped. Call
14680 handle_ack_notif instead.
14681 (queue_stop_reply_callback): Call notif_event_enque instead
14682 of queue_stop_reply.
14683 (handle_status): Don't call send_next_stop_reply, call
14684 notif_write_event instead.
14685 (kill_inferior_callback): Likewise.
14686 (detach_or_kill_inferior_callback): Likewise.
14687 (main): Call initialize_notif.
14688 (process_serial_event): Call QUEUE_is_empty.
14689 (handle_target_event): Call notif_push instead of push event.
14690 * server.h (push_event): Remove declaration.
14691
61c125b9
TT
146922012-12-10 Tom Tromey <tromey@redhat.com>
14693
14694 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14695 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14696 macros.
14697 (.c.o): Rewrite.
14698 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14699 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14700 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14701 (amd64-linux-ipa.o, ax.o): Rewrite.
14702 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14703 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14704 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14705 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14706 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14707 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14708 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14709 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14710 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14711 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14712 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14713 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14714 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14715 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14716 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14717 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14718 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14719 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14720 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14721 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14722 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14723 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14724 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14725 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14726 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14727 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14728 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14729 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14730 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14731 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14732 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14733 (reg-tilegx.o): Remove.
14734 (all_object_files): New macro.
14735 Include .deps files.
14736 * aclocal.m4, configure: Rebuild.
14737 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14738 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14739 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14740
e90e9ad9
TT
147412012-12-05 Tom Tromey <tromey@redhat.com>
14742
14743 PR gdb/14917:
14744 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14745
02d403bf 147462012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14747
14748 * configure.ac: Check for linux/perf_event.h.
14749 * config.in: Regenerated.
14750 * configure: Regenerated.
14751
0270a750
PA
147522012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14753
14754 * hostio.c (handle_readlink): Decrease buffer size
14755 parameter passed to readlink by one byte.
14756
8c29b58e
YQ
147572012-11-26 Yao Qi <yao@codesourcery.com>
14758
14759 * configure.ac (build_warnings): Append '-Wempty-body'.
14760 * configure: Regenerated.
14761 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14762 body.
14763
8bdce1ff
PM
147642012-11-15 Pierre Muller <muller@sourceware.org>
14765
14766 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14767 * config.in: Regenerate.
14768 * configure: Regenerate.
14769 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14770 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14771 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14772 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14773 header.
14774 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14775 instead of <sys/wait.h> header.
14776 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14777
02d403bf 147782012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14779
14780 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14781 (various make rules): Remove -DGDBSERVER
14782
fbd5db48
YQ
147832012-11-09 Yao Qi <yao@codesourcery.com>
14784
14785 * spu-low.c (current_ptid): Move it to ..
14786 * gdbthread.h: ... here. New.
14787 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14788 * server.c (myresume, process_serial_event): Likewise.
14789 * thread-db.c (thread_db_find_new_threads): Likewise.
14790 * tracepoint.c (run_inferior_command): Likewise.
14791
b3dc46ff
AB
147922012-10-01 Andrew Burgess <aburgess@broadcom.com>
14793
14794 * server.c (handle_search_memory_1): Include access length in
14795 warning message.
14796
07c04788
HPN
147972012-09-05 Michael Brandt <michael.brandt@axis.com>
14798
14799 * linux-crisv32-low.c: Fix compile errors.
14800
918d227b
YQ
148012012-09-04 Yao Qi <yao@codesourcery.com>
14802
14803 * tracepoint.c (cmd_qtsv): Adjust debug message.
14804 Don't check CUR_TPOINT.
14805
18c1b81a
YQ
148062012-08-28 Yao Qi <yao@codesourcery.com>
14807
14808 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14809 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14810 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14811 Remove declarations of xmalloc, xreallloc, xstrdup and
14812 freeargv.
14813 * Makefile.in (libiberty_h): New.
14814 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14815 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14816
dc82f37b
YQ
148172012-08-23 Yao Qi <yao@codesourcery.com>
14818
14819 * server.h: Remove declaration of 'xsnprintf'.
14820
406b1477
KS
148212012-08-22 Keith Seitz <keiths@redhat.com>
14822
14823 * server.h: Include build-gnulib-gbserver/config.h.
14824 * gdbreplay.c: Likewise.
14825
e6712ff1
DE
148262012-08-08 Doug Evans <dje@google.com>
14827
14828 * Makefile.in (SFILES): Add gdb_vecs.c.
14829 (OBS): Add gdb_vecs.o.
14830 (gdb_vecs_h, host_defs_h): New variables.
14831 (thread-db.o): Add $(gdb_vecs_h) dependency.
14832 (gdb_vecs.o): New rule.
14833 * thread-db.c: #include "gdb_vecs.h".
14834 (thread_db_load_search): Use a vector to iterate over path elements.
14835 Handle text appearing after "$pdir".
14836
14837 * configure.ac: Add check for strstr.
14838 * config.in: Regenerate.
14839 * configure: Regenerate.
14840
7c3270ae
UW
148412012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14842
14843 * hostio.c (handle_pread): If pread fails, fall back to attempting
14844 lseek/read.
14845 (handle_pwrite): Likewise for pwrite.
14846
b62e2b27
UW
148472012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14848
14849 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14850 between unsupported TYPE and unimplementable ADDR/LEN combination.
14851 (arm_insert_point): Act on new return value.
14852
78a99e91
PA
148532012-07-31 Pedro Alves <palves@redhat.com>
14854
14855 * server.c (process_point_options): Only skip tokens if we find
14856 one that is unrecognized. Don't treat 'X' specially while
14857 skipping unrecognized tokens.
14858
fcf303ab
UW
148592012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14860
14861 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14862 to 4-byte-align HW breakpoint addresses for Thumb.
14863
7255706c
YQ
148642012-07-27 Yao Qi <yao@codesourcery.com>
14865
14866 PR remote/14161.
14867
14868 * server.h: Declare gdb_agent_about_to_close.
14869 * target.c (kill_inferior): Include "agent.h".
14870 New. Send command 'kill'.
14871 * target.h (kill_inferior): Removed macro.
14872 * tracepoint.c (gdb_agent_about_to_close): New.
14873 (gdb_agent_helper_thread): Handle command 'close'.
14874 Wait endlessly until the inferior stops.
14875 Install gdb_agent_remove_socket to atexit hook.
14876 (agent_socket_name): New static variable.
14877 (gdb_agent_socket_init): Replace local variable 'name' with
14878 'agent_socket_name'.
14879 (gdb_agent_remove_socket): New.
14880
5a3f286f
YQ
148812012-07-27 Yao Qi <yao@codesourcery.com>
14882
14883 * server.c (process_point_options): Stop at 'X' when parsing.
14884
961bd387
ME
148852012-07-19 Michael Eager <eager@eagercon.com>
14886
a261b8f5 14887 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14888 to hw_execute.
14889 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14890 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14891 hardware breakpoint.
14892
aa7c7447
JK
148932012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14894
14895 * gdbserver/linux-low.c (initialize_low): Call
14896 linux_ptrace_init_warnings.
14897
7f216e7c
DE
148982012-07-02 Doug Evans <dje@google.com>
14899
14900 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14901 pointer to int.
14902
d3ce09f5
SS
149032012-07-02 Stan Shebs <stan@codesourcery.com>
14904
14905 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14906 (ax.o): Add it to build rule.
14907 (ax-ipa.o): Ditto.
14908 (OBS): Add format.o.
14909 (IPA_OBS): Add format.o.
14910 * server.c (handle_query): Claim support for breakpoint commands.
14911 (process_point_options): Add command case.
14912 (process_serial_event): Leave running if there are printfs in
14913 effect.
14914 * mem-break.h (any_persistent_commands): Declare.
14915 (add_breakpoint_commands): Declare.
14916 (gdb_no_commands_at_breakpoint): Declare.
14917 (run_breakpoint_commands): Declare.
14918 * mem-break.c (struct point_command_list): New struct.
14919 (struct breakpoint): New field command_list.
14920 (any_persistent_commands): New function.
14921 (add_commands_to_breakpoint): New function.
14922 (add_breakpoint_commands): New function.
14923 (gdb_no_commands_at_breakpoint): New function.
14924 (run_breakpoint_commands): New function.
14925 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14926 locally.
14927 * ax.c: Include format.h.
14928 (ax_printf): New function.
14929 (gdb_eval_agent_expr): Add printf opcode.
14930
2f8f6aed
YQ
149312012-06-13 Yao Qi <yao@codesourcery.com>
14932
14933 * server.c (start_inferior): Remove duplicated writes to fields
14934 'last_resume_kind' and 'last_status' of 'current_inferior'.
14935
0c9070b3
YQ
149362012-06-12 Yao Qi <yao@codesourcery.com>
14937 Pedro Alves <palves@redhat.com>
14938
14939 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14940 comment.
14941 * server.c (handle_v_cont): Extend comment.
14942
c52daf70
YQ
149432012-06-11 Yao Qi <yao@codesourcery.com>
14944
14945 * linux-low.c (linux_attach): Add 'static'.
14946
d38bbb0a
YQ
149472012-06-06 Yao Qi <yao@codesourcery.com>
14948
14949 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14950
89dc0afd
JK
149512012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14952
14953 Fix gcc -flto compilation warning.
14954 * server.c (main): Make variable multi_mode and attach volatile.
14955
75f62ce7
TJB
149562012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14957
14958 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14959 if the platform doesn't know about it.
14960
65f479b6
PA
149612012-05-30 Jeff Kenton <jkenton@tilera.com>
14962
14963 * Makefile.in (SFILES): Add linux-tile-low.c.
14964 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14965 * configure.srv: Handle tilegx-*-linux*.
14966 * linux-tile-low.c: New file.
14967
0c5bf5a9
JK
149682012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14969
14970 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14971
a493e3e2
PA
149722012-05-24 Pedro Alves <palves@redhat.com>
14973
14974 PR gdb/7205
14975
43aaf8b6 14976 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14977
2ea28649
PA
149782012-05-24 Pedro Alves <palves@redhat.com>
14979
14980 PR gdb/7205
14981
14982 Replace target_signal with gdb_signal throughout.
14983
8d409d16
MR
149842012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14985
14986 * linux-low.c (linux_store_registers): Avoid the copying sequence
14987 when no data has been retrieved by ptrace.
14988
23512c01
MGD
149892012-05-22 Will Deacon <will.deacon@arm.com>
14990
14991 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14992 Include asm/ptrace.h.
14993 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14994 already defined.
14995
4934b29e
MR
149962012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14997
14998 * linux-low.c (linux_store_registers): Don't re-retrieve data
14999 with ptrace that has already been obtained from /proc. Always
15000 copy any data retrieved with ptrace to the buffer supplied.
15001
bde24c0a
PA
150022012-05-11 Yao Qi <yao@codesourcery.com>
15003 Pedro Alves <palves@redhat.com>
15004
15005 * linux-low.c (enum stopping_threads_kind): New.
15006 (stopping_threads): Change type to `enum stopping_threads_kind'.
15007 (handle_extended_wait): If stopping and suspending threads, leave
15008 the new_lwp suspended too.
15009 (linux_wait_for_event): Adjust.
15010 (stop_all_lwps): Set `stopping_threads' to
15011 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15012 whether we're suspending threads or just stopping them. Assert no
15013 recursion happens.
15014
623b6bdf
YQ
150152012-04-29 Yao Qi <yao@codesourcery.com>
15016
15017 * server.h: Move some code to ...
15018 * gdbthread.h: ... here. New.
15019 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15020 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15021 (nto-low.o, win32-low.o): Likewise.
15022 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15023 * regcache.c, remote-utils.c, server.c: Likewise.
15024 * target.c, tracepoint.c, win32-low.c: Likewise.
15025
f15f9948
TJB
150262012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15027
15028 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15029 (PTRACE_ARG4_TYPE): Likewise.
15030 (PTRACE_XFER_TYPE): Likewise.
15031 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15032 ptrace to PTRACE_ARG3_TYPE.
15033 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15034 (PTRACE_ARG4_TYPE): Likewise.
15035 (PTRACE_XFER_TYPE): Likewise.
15036 (linux_detach_one_lwp): Cast fourth argument of
15037 ptrace to long then PTRACE_ARG4_TYPE.
15038 (regsets_fetch_inferior_registers): Cast third argument of
15039 ptrace to long then PTRACE_ARG3_TYPE.
15040 (regsets_store_inferior_registers): Likewise.
15041
38ea300a
PA
150422012-04-20 Pedro Alves <palves@redhat.com>
15043
15044 * configure: Regenerate.
15045
c971b7fa
PA
150462012-04-19 Pedro Alves <palves@redhat.com>
15047
43aaf8b6 15048 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15049 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15050 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15051 (all, install-only, uninstall, clean-info, all-lib, clean): No
15052 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15053 (maintainer-clean realclean distclean): Use subdir_do.
15054 (subdir_do): New.
15055 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15056 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15057 * acinclude.m4: Include acx_configure_dir.m4.
15058 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15059 calls. Call AC_PROG_RANLIB. Configure gnulib using
15060 ACX_CONFIGURE_DIR.
15061 (GNULIB): New.
15062 (GNULIB_STDINT_H): Adjust.
15063 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15064 * gdbreplay.c: Include build-gnulib/config.h.
15065 * server.h: Likewise.
15066 * aclocal.m4: Regenerate.
15067 * config.in: Regenerate.
15068 * configure: Regenerate.
c971b7fa 15069
809277f8
PA
150702012-04-19 Pedro Alves <palves@redhat.com>
15071
15072 * Makefile.in (LIBGNU, INCGNU): Adjust.
15073 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15074 (all, install-only, uninstall, clean-info, all-lib, clean)
15075 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15076 * configure.ac: Adjust AC_OUTPUT output.
15077 * aclocal.m4: Regenerate.
15078 * configure: Regenerate.
15079
fd9bb8b8
PA
150802012-04-19 Pedro Alves <palves@redhat.com>
15081
15082 * Makefile.in (generated_files): New.
15083 (server_h): Remove the explicit dependency on config.h, and depend
15084 on $generated_files.
15085
1c298c66
PA
150862012-04-19 Pedro Alves <palves@redhat.com>
15087
15088 * Makefile.in (INCGNU): Add -Ignulib.
15089
57c4b50b
PA
150902012-04-19 Pedro Alves <palves@redhat.com>
15091
15092 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15093 (INCGNU): ... this, and spell out -I here.
15094 (GNULIB_LIB): Rename to ...
15095 (LIBGNU): ... this.
15096 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15097
1030e047
PA
150982012-04-19 Pedro Alves <palves@redhat.com>
15099
15100 * config.in: Regenerate.
15101
447d4319
PA
151022012-04-19 Pedro Alves <palves@redhat.com>
15103
15104 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15105 * server.h (memmem): Remove declaration.
15106 * config.in: Regenerate.
15107 * configure: Regenerate.
15108
aad9eab9
YQ
151092012-04-19 Yao Qi <yao@codesourcery.com>
15110
15111 * Makefile.in (SFILES): Add common/vec.c.
15112 (OBS): Add vec.o.
15113 (vec.o): New rule.
15114
3e10640f
YQ
151152012-04-19 Yao Qi <yao@codesourcery.com>
15116
15117 * remote-utils.c (prepare_resume_reply): Replace with macro
15118 target_core_of_thread.
15119 * server.c (handle_qxfer_threads_proper): Likewise.
15120 * target.h (traget_core_of_thread): New macro.
15121
71622373
PA
151222012-04-18 Pedro Alves <palves@redhat.com>
15123
15124 * aclocal.m4: Regenerate.
15125 * configure: Regenerate.
15126
80d26939
YQ
151272012-04-16 Yao Qi <yao@codesourcery.com>
15128
15129 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15130 duplicated on address.
15131
42476b70
YQ
151322012-04-16 Yao Qi <yao@codesourcery.com>
15133
15134 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15135 (struct tracepoint_action_ops) <send>: New field.
15136 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15137 (agent_expr_send, x_tracepoint_action_send): New.
15138 (l_tracepoint_action_send): New.
15139 (cmd_qtdp): Download and install tracepoint
15140 according to `use_agent'.
15141 (run_inferior_command): Add one more parameter `len'.
15142 Update callers.
15143 (tracepoint_send_agent): New.
15144 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15145
7bc83639
YQ
151462012-04-16 Yao Qi <yao@codesourcery.com>
15147
15148 * tracepoint.c (download_tracepoints): Moved to ...
15149 (cmd_qtstart): ... here.
15150
5f18041e
YQ
151512012-04-14 Yao Qi <yao@codesourcery.com>
15152
15153 * tracepoint.c: Include inttypes.h.
15154 (struct collect_memory_action): Use sized types.
15155 (struct tracepoint): Likewise.
15156 (cmd_qtdp, stop_tracing): Update print specifiers.
15157 (cmd_qtp, response_tracepoint): Likewise.
15158 (collect_data_at_tracepoint): Likewise.
15159 (collect_data_at_step): Likewise.
15160
55a8c076
YQ
151612012-04-14 Yao Qi <yao@codesourcery.com>
15162
15163 Import gnulib module inttypes.
15164 * aclocal.m4, config.in, configure: Regenerated.
15165
dc750257
YQ
151662012-04-14 Yao Qi <yao@codesourcery.com>
15167
15168 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15169 Makefile and config.status at last.
15170
0ab5faf9
YQ
151712012-04-13 Yao Qi <yao@codesourcery.com>
15172
15173 * tracepoint.c: Include stdint.h unconditionally.
15174
18f5fd81
TJB
151752012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15176
15177 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15178 on BFD_HAVE_SYS_PROCFS_TYPE.
15179 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15180 * configure: Regenerate.
15181 * config.in: Likewise.
15182
4d47af5c
L
151832012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15184
15185 * Makefile.in (clean): Also remove x32.c x32-linux.c
15186 x32-avx.c x32-avx-linux.c.
15187 (x32.o): New target.
15188 (x32.c): Likewise.
15189 (x32-linux.o): Likewise.
15190 (x32-linux.c): Likewise.
15191 (x32-avx.o): Likewise.
15192 (x32-avx.c): Likewise.
15193 (x32-avx-linux.o): Likewise.
15194 (x32-avx-linux.c): Likewise.
15195
15196 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15197 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15198 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15199 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15200 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15201 i386/x32-avx-linux.xml.
15202
15203 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15204 (init_registers_x32_avx_linux): Likwise.
15205 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15206 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15207
ecedbe58
PA
152082012-04-13 Pedro Alves <palves@redhat.com>
15209
15210 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15211 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15212 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15213 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15214 the sub-make.
15215
c92b5177
L
152162012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15217
15218 * linux-x86-low.c (compat_x32_clock_t): New.
15219 (compat_x32_siginfo_t): Likewise.
15220 (compat_x32_siginfo_from_siginfo): Likewise.
15221 (siginfo_from_compat_x32_siginfo): Likewise.
15222 (linux_is_elf64): Likewise.
15223 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15224 and siginfo_from_compat_x32_siginfo for x32.
15225 (x86_arch_setup): Set linux_is_elf64.
15226
214d508e
L
152272012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15228
15229 PR gdb/13969
15230 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15231 e_machine field.
15232 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15233 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15234 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15235 compatible with process.
15236
c9a1864a
YQ
152372012-04-12 Yao Qi <yao@codesourcery.com>
15238
15239 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15240 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15241 (install-only, install-info, clean): Handle sub dir gnulib.
15242 (all-lib, am--refresh): New targets.
15243 (memmem.o): Remove target.
15244 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15245 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15246 (AC_REPLACE_FUNCS): Remove memmem.
15247 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15248 (AC_OUTPUT): Generate Makefile in gnulib/.
15249 * aclocal.m4, config.in, configure: Regenerated.
15250
367ba2c2
MR
152512012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15252
15253 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15254
9d236627
PA
152552012-04-05 Pedro Alves <palves@redhat.com>
15256
15257 -Werror=strict-aliasing
15258
15259 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15260 pointer.
15261
111217b3
PA
152622012-04-04 Pedro Alves <palves@redhat.com>
15263
15264 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15265 (sparc_store_gregset_from_stack, sparc_store_gregset)
15266 (sparc_breakpoint_at): Fix formatting.
15267
8365dcf5
TJB
152682012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15269
15270 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15271 are available.
15272 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15273 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15274 * config.in: Regenerate.
15275 * configure: Likewise.
15276
689cc2ae
PA
152772012-03-29 Pedro Alves <palves@redhat.com>
15278
15279 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15280 Correct ptrace arguments.
15281
c14dfd32
PA
152822012-03-28 Pedro Alves <palves@redhat.com>
15283
15284 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15285 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15286 (IA64_FR1_REGNUM): New defines.
15287 (ia64_fetch_register): New.
15288 (the_low_target): Install it.
15289 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15290 field.
15291 * linux-low.c (linux_fetch_registers): Try the
15292 the_low_target.fetch_register hook first.
15293
15294 * linux-arm-low.c (the_low_target): Adjust.
15295 * linux-bfin-low.c (the_low_target): Adjust.
15296 * linux-cris-low.c (the_low_target): Adjust.
15297 * linux-crisv32-low.c (the_low_target): Adjust.
15298 * linux-m32r-low.c (the_low_target): Adjust.
15299 * linux-m68k-low.c (the_low_target): Adjust.
15300 * linux-mips-low.c (the_low_target): Adjust.
15301 * linux-ppc-low.c (the_low_target): Adjust.
15302 * linux-s390-low.c (the_low_target): Adjust.
15303 * linux-sh-low.c (the_low_target): Adjust.
15304 * linux-sparc-low.c (the_low_target): Adjust.
15305 * linux-tic6x-low.c (the_low_target): Adjust.
15306 * linux-x86-low.c (the_low_target): Adjust.
15307 * linux-xtensa-low.c (the_low_target): Adjust.
15308
63c88e13
PA
153092012-03-26 Pedro Alves <palves@redhat.com>
15310
15311 * server.c (handle_qxfer_libraries): Don't bail early if
15312 the_target->qxfer_libraries_svr4 is not NULL.
15313
fb723180
PA
153142012-03-26 Pedro Alves <palves@redhat.com>
15315
15316 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15317
0afae3cf
PA
153182012-03-23 Pedro Alves <palves@redhat.com>
15319
15320 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15321 "library-list-svr4" element's start tag when the the DSO list is
15322 empty.
15323
485f1ee4
PA
153242012-03-23 Pedro Alves <palves@redhat.com>
15325
15326 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15327 a variable whose type size is the same as the inferior's pointer
15328 size.
15329
a5362b9a
TS
153302012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15331
15332 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15333 struct siginfo.
15334 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15335 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15336 * linux-low.h: Include <signal.h>.
15337 (struct siginfo): Remove forward declaration.
15338 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15339 struct siginfo.
15340
d226c142
MF
153412012-03-21 Mike Frysinger <vapier@gentoo.org>
15342
15343 * .gitignore: Ignore more files.
15344
122f36ef
PA
153452012-03-19 Pedro Alves <palves@redhat.com>
15346 Jan Kratochvil <jan.kratochvil@redhat.com>
15347
15348 * server.c (cont_thread, general_thread): Add describing comments.
15349 (start_inferior): Clear `cont_thread'.
15350 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15351 of a process.
15352
fc3e5175
YQ
153532012-03-15 Yao Qi <yao@codesourcery.com>
15354
15355 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15356 handling to ...
15357 (cmd_qtdp): ... here.
15358
8d0d92cd
YQ
153592012-03-15 Yao Qi <yao@codesourcery.com>
15360
15361 * tracepoint.c (struct tracepoint_action_ops): New.
15362 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15363 (m_tracepoint_action_download): New.
15364 (r_tracepoint_action_download): New.
15365 (x_tracepoint_action_download): New.
15366 (l_tracepoint_action_download): New.
15367 (add_tracepoint_action): Install `action->ops' according type.
15368 (download_tracepoint_1): Move code `download' function pointer
15369 of various tracepoint_action_ops.
15370
87b0bb13
JK
153712012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15372
15373 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15374 linux_ptrace_attach_warnings.
15375
5f572dec
JK
153762012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15377
15378 * Makefile.in (linux-ptrace.o): New.
15379 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15380 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15381 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15382 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15383 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15384 of these targets.
15385 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15386
f4647387
YQ
153872012-03-08 Yao Qi <yao@codesourcery.com>
15388 Pedro Alves <palves@redhat.com>
15389
15390 Fix PR server/13392.
15391 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15392 offset of JMP insn.
15393 * tracepoint.c (remove_tracepoint): New.
15394 (cmd_qtdp): Call remove_tracepoint when failed to install.
15395
9b224c5e
PA
153962012-03-07 Pedro Alves <palves@redhat.com>
15397
15398 * linux-low.c (get_detach_signal): New.
15399 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15400 Pass on pending signals to PTRACE_DETACH. Check the result of the
15401 ptrace call.
15402 * server.c (program_signals, program_signals_p): New.
15403 (handle_general_set): Handle QProgramSignals.
15404 * server.h (program_signals, program_signals_p): Declare.
15405
e237a7e2
JK
154062012-03-05 Pedro Alves <palves@redhat.com>
15407 Jan Kratochvil <jan.kratochvil@redhat.com>
15408
15409 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15410 New comment why.
15411
5808517f
YQ
154122012-03-03 Yao Qi <yao@codesourcery.com>
15413
15414 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15415 agent_look_up_symbols.
15416
58b4daa5
YQ
154172012-03-03 Yao Qi <yao@codesourcery.com>
15418
15419 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15420 (linux-x86-low.o): Likewise.
15421 * server.h: Remove in_process_agent_loaded.
15422 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15423 common/agent.c.
15424 Update callers.
15425
8ffcbaaf
YQ
154262012-03-03 Yao Qi <yao@codesourcery.com>
15427
15428 * tracepoint.c (gdb_agent_capability): New global.
15429 (in_process_agent_loaded_ust): Renamed to
15430 `in_process_agent_supports_ust'.
15431 Update callers.
15432 (in_process_agent_supports_ust): Call agent_capability_check.
15433 (clear_installed_tracepoints): Assert that agent supports
15434 agent.
15435
d1feda86
YQ
154362012-03-03 Yao Qi <yao@codesourcery.com>
15437
15438 * linux-low.c (linux_supports_agent): New.
15439 (linux_target_ops): Initialize field `supports_agent' with
15440 linux_supports_agent.
15441 * target.h (struct target_ops) <supports_agent>: New.
15442 (target_supports_agent): New macro.
15443 * server.c (handle_general_set): Handle packet 'QAgent'.
15444 (handle_query): Send `QAgent+'.
15445 * Makefile.in (server.o): Depends on agent.h.
15446
2fa291ac
YQ
154472012-03-03 Yao Qi <yao@codesourcery.com>
15448
15449 * Makefile.in (OBS): Add agent.o.
15450 Add new rule for agent.o.
15451 Track dependence of tracepoint.c on agent.h.
15452 * tracepoint.c (run_inferior_command_1):
15453 (run_inferior_command): Call agent_run_command.
15454 (gdb_ust_connect_sync_socket): Deleted. Move it to
15455 common/agent.c.
15456 (resume_thread, stop_thread): Likewise.
15457 (gdb_ust_socket_init): Renamed to ...
15458 (gdb_agent_socket_init): ... New.
15459 (gdb_ust_thread): Renamed to ...
15460 (gdb_agent_helper_thread): ... New.
15461 (gdb_ust_init): Move some code to ...
15462 (gdb_agent_init): ... here. New.
15463 [HAVE_UST]: Call gdb_ust_init.
15464 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15465 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15466 * config.in, configure: Regenerated.
15467
05044653
PA
154682012-03-02 Pedro Alves <palves@redhat.com>
15469
15470 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15471 * linux-low.c (struct simple_pid_list): New.
15472 (stopped_pids): New a struct simple_pid_list pointer.
15473 (add_to_pid_list, pull_pid_from_list): New.
15474 (handle_extended_wait): Don't assume the first signal new children
15475 report is SIGSTOP. Adjust call to pull_pid_from_list.
15476 (linux_wait_for_lwp): Adjust.
15477
8d00225b
YQ
154782012-03-02 Yao Qi <yao@codesourcery.com>
15479
15480 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15481 debug log.
15482
19560ba5
YQ
154832012-03-02 Yao Qi <yao@codesourcery.com>
15484
15485 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15486 `stop_pc' and `tpoint'. Update caller.
15487
1faeff08
MR
154882012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15489
15490 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15491 * linux-low.c (use_linux_regsets): New macro.
15492 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15493 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15494 (linux_register_in_regsets): New function.
15495 (usr_fetch_inferior_registers): Skip registers covered by
15496 regsets.
15497 (usr_store_inferior_registers): Likewise.
15498 (usr_fetch_inferior_registers): New macro.
15499 (usr_store_inferior_registers): Likewise.
15500 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15501 (linux_store_registers): Likewise.
15502 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15503 prototype.
15504 (init_registers_mips64_dsp_linux): Likewise.
15505 (init_registers_mips_linux): New macro.
15506 (init_registers_mips_dsp_linux): Likewise.
15507 (mips_dsp_num_regs): Likewise.
15508 (DSP_BASE, DSP_CONTROL): New fallback macros.
15509 (mips_base_regs): New macro.
15510 (mips_regmap): Use it. Fix the size.
15511 (mips_dsp_regmap): New variable.
15512 (mips_dsp_regset_bitmap): Likewise.
15513 (mips_arch_setup): New function.
15514 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15515 than mips_regmap.
15516 (mips_cannot_store_register): Likewise.
15517 (the_low_target): Update .arch_setup, .num_regs and .regmap
15518 initializers. Add .regset_bitmap initializer.
15519 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15520 initializer.
15521 * linux-bfin-low.c (the_low_target): Likewise.
15522 * linux-cris-low.c (the_low_target): Likewise.
15523 * linux-crisv32-low.c (the_low_target): Likewise.
15524 * linux-ia64-low.c (the_low_target): Likewise.
15525 * linux-m32r-low.c (the_low_target): Likewise.
15526 * linux-m68k-low.c (the_low_target): Likewise.
15527 * linux-ppc-low.c (the_low_target): Likewise.
15528 * linux-s390-low.c (the_low_target): Likewise.
15529 * linux-sh-low.c (the_low_target): Likewise.
15530 * linux-sparc-low.c (the_low_target): Likewise.
15531 * linux-tic6x-low.c (the_low_target): Likewise.
15532 * linux-x86-low.c (the_low_target): Likewise.
15533 * linux-xtensa-low.c (the_low_target): Likewise.
15534 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15535 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15536 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15537 srv_xmlfiles.
15538 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15539 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15540
c03e6ccc
YQ
155412012-02-29 Yao Qi <yao@codesourcery.com>
15542 Pedro Alves <palves@redhat.com>
15543
15544 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15545 `step_over_finished' is true.
15546
644cebc9
PA
155472012-02-27 Pedro Alves <palves@redhat.com>
15548
15549 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15550 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15551
c14d7ab2
PA
155522012-02-27 Pedro Alves <palves@redhat.com>
15553
15554 PR server/9684
15555 * linux-low.c (pid_is_stopped): New.
15556 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15557
412c89dd
LM
155582012-02-25 Luis Machado <lgustavo@codesourcery.com>
15559
15560 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15561 of conditions.
15562
b745defe
MR
155632012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15564
15565 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15566
9f3a5c85
LM
155672012-02-24 Luis Machado <lgustavo@codesourcery>
15568
15569 * server.c (handle_query): Advertise support for target-side
15570 breakpoint condition evaluation.
15571 (process_point_options): New function.
15572 (process_serial_event): When inserting a breakpoint, check for
15573 a target-side condition that should be evaluated.
15574
15575 * mem-break.c: Include regcache.h and ax.h.
15576 (point_cond_list_t): New data structure.
15577 (breakpoint) <cond_list>: New field.
15578 (find_gdb_breakpoint_at): Make non-static.
15579 (delete_gdb_breakpoint_at): Clear any target-side
15580 conditions.
15581 (clear_gdb_breakpoint_conditions): New function.
15582 (add_condition_to_breakpoint): Likewise.
15583 (add_breakpoint_condition): Likewise.
15584 (gdb_condition_true_at_breakpoint): Likewise.
15585 (gdb_breakpoint_here): Return result directly instead
15586 of going through a local variable.
15587
15588 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15589 (clear_gdb_breakpoint_conditions): Likewise.
15590 (add_breakpoint_condition): Likewise.
15591 (gdb_condition_true_at_breakpoint): Likewise.
15592
15593 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15594 (need_step_over_p): Take target-side breakpoint condition into
15595 consideration.
15596
5e1dc496
LM
155972012-02-24 Luis Machado <lgustavo@codesourcery>
15598
15599 * server.h: Include tracepoint.h.
15600 (agent_mem_read, agent_get_trace_state_variable_value,
15601 agent_set_trace_state_variable_value,
15602 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15603 get_set_tsv_func_addr): New prototypes.
15604
15605 * ax.h: New include file.
15606 * ax.c: New source file.
15607
15608 * tracepoint.c: Include ax.h.
15609 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15610 agent_expr, eval_result_type): Move to ax.h.
15611 (parse_agent_expr): Rename to ...
15612 (gdb_parse_agent_expr): ... this, make it non-static and move
15613 to ax.h.
15614 (unparse_agent_expr) Rename to ...
15615 (gdb_unparse_agent_expr): ... this, make it non-static and move
15616 to ax.h.
15617 (eval_agent_expr): Rename to ...
15618 (eval_tracepoint_agent_expr): ... this.
15619 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15620 forward declarations.
15621 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15622 (agent_get_trace_state_variable_value): New function.
15623 (agent_set_trace_state_variable_value): New function.
15624 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15625 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15626 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15627 (condition_true_at_tracepoint): Likewise.
15628 (parse_agent_expr): Rename to ...
15629 (gdb_parse_agent_expr): ... this and move to ax.c.
15630 (unparse_agent_expr): Rename to ...
15631 (gdb_unparse_agent_expr): ... this and move to ax.c.
15632 (gdb_agent_op_name): Move to ax.c.
15633 (eval_agent_expr): Rename to ...
15634 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15635 and move to ax.c.
15636 (eval_tracepoint_agent_expr): New function.
15637 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15638 non-static.
5e1dc496
LM
15639 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15640 ax.c.
15641 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15642 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15643 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15644 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15645 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15646 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15647 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15648 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15649 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15650 (compile_bytecodes): Remove forward declaration.
15651 (is_goto_target): Move to ax.c.
15652 (compile_bytecodes): Move to ax.c and call
15653 agent_get_trace_state_variable_value (...) and
15654 agent_set_trace_state_variable_value (...).
15655
15656 * Makefile.in: Update ax.c and IPA dependencies.
15657
277e4e52
PA
156582012-02-24 Pedro Alves <palves@redhat.com>
15659
15660 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15661 (cmd_bigqtbuffer_circular): ... this. Only handle
15662 'QTBuffer:circular:'.
15663 (handle_tracepoint_general_set): Adjust.
15664
bf4c19f7
YQ
156652012-02-16 Yao Qi <yao@codesourcery.com>
15666
15667 * inferiors.c: Move code to ...
15668 * dll.c: .... here. New.
15669 * server.h: Declare clear_dlls.
15670 * Makefile.in (SFILES): Add dll.c.
15671 (OBS): Add dll.o
15672 (dll.o): New rule.
15673
d73f2619
YQ
156742012-02-11 Yao Qi <yao@codesourcery.com>
15675
15676 * server.c: (handle_monitor_command): Add a new parameter
15677 `own_buf'.
15678 (handle_query): Update caller.
15679
f8255c2a
JB
156802012-02-09 Joel Brobecker <brobecker@adacore.com>
15681
15682 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15683 * configure, config.in: Regenerate.
15684 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15685 is not defined.
15686
da84f473
PA
156872012-02-02 Pedro Alves <palves@redhat.com>
15688
15689 Try SIGKILL first, then PTRACE_KILL.
15690 * linux-low.c (linux_kill_one_lwp): New.
15691 (linux_kill_one_lwp): Rename to ...
15692 (kill_one_lwp_callback): ... this. Use the new
15693 linux_kill_one_lwp.
15694
e886a173
PA
156952012-02-02 Pedro Alves <palves@redhat.com>
15696
15697 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15698 inferior.
15699
be07f1a2
PA
157002012-01-27 Pedro Alves <palves@redhat.com>
15701
15702 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15703 (elf_64_file_p): Make static.
15704 (linux_pid_exe_is_elf_64_file): New.
15705 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15706 Delete declarations.
15707 (linux_pid_exe_is_elf_64_file): Declare.
15708 * linux-x86-low.c (x86_arch_setup): Use
15709 linux_pid_exe_is_elf_64_file.
15710
d8301ad1
JK
157112012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15712
15713 * linux-low.c (linux_wait_for_event_1): Rename to ...
15714 (linux_wait_for_event): ... here and merge it with former
15715 linux_wait_for_event - new variable wait_ptid, use it.
15716 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15717
01b17894
PA
157182012-01-23 Pedro Alves <palves@redhat.com>
15719
15720 * server.c (main): Avoid yet another case of infinite loop while
15721 detaching/killing after a longjmp.
15722
e825046f
JK
157232012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15724
15725 Code cleanup.
15726 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15727
b9e7b9c3
UW
157282012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15729
15730 * hostio.c (handle_readlink): New function.
15731 (handle_vFile): Call it to handle "vFile:readlink" packets.
15732
901f9912
UW
157332012-01-20 Pedro Alves <palves@redhat.com>
15734 Ulrich Weigand <ulrich.weigand@linaro.org>
15735
15736 * server.c (handle_v_requests): Only support vAttach and vRun to
15737 start multiple processes when in extended protocol mode.
15738
fc1ab1a0
PA
157392012-01-17 Pedro Alves <palves@redhat.com>
15740
15741 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15742 memalign plus mprotect to allocate the scratch buffer.
15743
7d5d4e98
PA
157442012-01-13 Pedro Alves <palves@redhat.com>
15745
15746 * server.c (attach_inferior): Clear `cont_thread'.
15747
f128d5e9
PA
157482012-01-13 Pedro Alves <palves@redhat.com>
15749
15750 * server.c (main): Avoid infinite loop while detaching/killing
15751 after a longjmp.
15752
06db92f0
DE
157532012-01-09 Doug Evans <dje@google.com>
15754
15755 * server.c (start_inferior): Set last_ptid in --wrapper case.
15756
32d92999
YQ
157572012-01-06 Yao Qi <yao@codesourcery.com>
15758
15759 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15760 defined.
15761 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15762
5e0a92a9
YQ
157632012-01-04 Yao Qi <yao@codesourcery.com>
15764
15765 * tracepoint.c (cmd_qtdp): Print debug message
15766 for static tracepoint.
15767
ae639e8c
YQ
157682012-01-04 Yao Qi <yao@codesourcery.com>
15769
15770 * tracepoint.c (trace_vdebug): Differentiate debug message
15771 between gdbserver and IPA.
15772
f72429c5
YQ
157732012-01-03 Yao Qi <yao@codesourcery.com>
15774
15775 * tracepoint.c (tracepoint_was_hit): Don't collect for
15776 static tracepoint.
15777
12c3e59c
JB
157782012-01-02 Joel Brobecker <brobecker@adacore.com>
15779
15780 * terminal.h: Reformat copyright header.
15781
67827812
JB
157822012-01-02 Joel Brobecker <brobecker@adacore.com>
15783
15784 * server.c (gdbserver_version): Update copyright year.
15785 * gdbreplay.c (gdbreplay_version): Likewise.
15786
3e52c33d
JK
157872011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15788
15789 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15790
15791 Revert:
15792 2011-12-18 Hui Zhu <teawater@gmail.com>
15793 * linux-low.c (linux_create_inferior): Save return value to ret.
15794
66f1260e
HZ
157952011-12-18 Hui Zhu <teawater@gmail.com>
15796
15797 * linux-low.c (linux_create_inferior): Save return value to ret.
15798
e77616d7
DE
157992011-12-16 Doug Evans <dje@google.com>
15800
e7b06c57
DE
15801 * linux-low.c (linux_create_inferior): If stdio connection,
15802 redirect stdin from /dev/null, stdout to stderr.
15803 * remote-utils.c (remote_is_stdio): New static global.
15804 (remote_connection_is_stdio): New function.
15805 (remote_prepare): Handle stdio connection.
15806 (remote_open): Ditto.
15807 (remote_close): Don't close stdin for stdio connections.
15808 (read_prim,write_prim): New functions. Replace all calls to
15809 read/write to these.
15810 * server.c (main): Watch for "-" argument. Move call to
15811 remote_prepare before start_inferior.
15812 * server.h (STDIO_CONNECTION_NAME): New macro.
15813 (remote_connection_is_stdio): Declare.
15814
e77616d7
DE
15815 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15816 in debugging output.
15817
82067193
YQ
158182011-12-15 Yao Qi <yao@codesourcery.com>
15819
15820 * tracepoint.c: Include sys/syscall.h.
15821 (gdb_ust_thread): Remove preprocessor conditional.
15822
82bfbe7e
PA
158232011-12-14 Pedro Alves <pedro@codesourcery.com>
15824
15825 * linux-low.c (linux_detach_one_lwp): Call
15826 the_low_target.prepare_to_resume before detaching.
15827
712c6575
YQ
158282011-12-14 Yao Qi <yao@codesourcery.com>
15829
15830 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15831 of write.
15832
d54d1edf
YQ
158332011-12-14 Yao Qi <yao@codesourcery.com>
15834
15835 * i386-low.c (i386_low_stopped_data_address): Initialize local
15836 variable `control'.
15837
6210a125
PA
158382011-12-13 Pedro Alves <pedro@codesourcery.com>
15839
15840 PR remote/13492
15841
15842 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15843 DR_CONTROL unless necessary. Extend comments.
15844 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15845 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15846
2ece8244
YQ
158472011-12-13 Yao Qi <yao@codesourcery.com>
15848
15849 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15850 macros.
15851 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15852
784867a5
JK
158532011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15854
15855 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15856 Print new debug message for such case.
15857
6bf36717
JK
158582011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15859
15860 Fix overlapping memcpy.
15861 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15862 the read_inferior_memory transfer.
15863 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15864 write_inferior_memory transfer.
15865 (set_fast_tracepoint_jump): New variable buf. Use it for the
15866 read_inferior_memory and write_inferior_memory transfers.
15867 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15868 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15869 Use it for the write_inferior_memory transfer.
15870 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15871 buffers.
15872
50275556
MR
158732011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15874
15875 * linux-low.c (fetch_register, store_register): Make code
15876 consistent, fix formatting.
15877
7325beb4
MR
158782011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15879
15880 * linux-low.c (usr_store_inferior_registers): Factor out code
15881 to handle individual registers into...
15882 (store_register): ... this new function.
15883
c642a434
UW
158842011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15885
15886 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15887 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15888 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15889 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15890 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15891 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15892 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15893 (srv_xmlfiles): Add new XML files.
15894
15895 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15896 and <sys/uio.h>.
15897 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15898 (init_registers_s390_linux32v1): Add prototype.
15899 (init_registers_s390_linux32v2): Likewise.
15900 (init_registers_s390_linux64v1): Likewise.
15901 (init_registers_s390_linux64v2): Likewise.
15902 (init_registers_s390x_linux64v1): Likewise.
15903 (init_registers_s390x_linux64v2): Likewise.
15904 (s390_num_regs): Increment to 52.
15905 (s390_regmap): Add orig_r2 register.
15906 (s390_num_regs_3264): Increment to 68.
15907 (s390_regmap_3264): Add orig_r2 register.
15908 (s390_collect_ptrace_register): Handle orig_r2 register.
15909 (s390_supply_ptrace_register): Likewise.
15910 (s390_fill_last_break): New function.
15911 (s390_store_last_break): Likewise.
15912 (s390_fill_system_call): New function.
15913 (s390_store_system_call): Likewise.
15914 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15915 register sets.
15916 (s390_check_regset): New function.
15917 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15918 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15919 Update target_regsets for available register sets.
15920
2268b414
JK
159212011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15922 Jan Kratochvil <jan.kratochvil@redhat.com>
15923
15924 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15925 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15926 New.
15927 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15928 * linux-low.h (struct process_info_private): New member r_debug.
15929 * server.c (handle_qxfer_libraries): Call
15930 the_target->qxfer_libraries_svr4.
15931 (handle_qxfer_libraries_svr4): New function.
15932 (qxfer_packets): New entry "libraries-svr4".
15933 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15934 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15935 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15936 PACKET_qXfer_libraries_svr4.
15937
d6db1fab
UW
159382011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15939
15940 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15941 PSW address/mask between 8-byte and 16-byte formats.
15942 (s390_supply_ptrace_register): Likewise.
15943 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15944 basic addressing mode bit.
15945
242f5f1c
SS
159462011-11-24 Stan Shebs <stan@codesourcery.com>
15947
15948 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15949
f196051f
SS
159502011-11-17 Stan Shebs <stan@codesourcery.com>
15951
15952 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15953 (tracing_start_time): New global.
15954 (tracing_stop_time): New global.
15955 (tracing_user_name): New global.
15956 (tracing_notes): New global.
15957 (tracing_stop_note): New global.
15958 (cmd_qtstart): Set traceframe_usage, start_time.
15959 (stop_tracing): Set stop_time.
15960 (cmd_qtstatus): Report additional status.
15961 (cmd_qtp): New function.
15962 (handle_tracepoint_query): Call it.
15963 (cmd_qtnotes): New function.
15964 (handle_tracepoint_general_set): Call it.
15965 (get_timestamp): Rename from tsv_get_timestamp.
15966
405f8e94
SS
159672011-11-14 Stan Shebs <stan@codesourcery.com>
15968 Kwok Cheung Yeung <kcy@codesourcery.com>
15969
15970 * linux-x86-low.c (small_jump_insn): New.
15971 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15972 trampoline and error message, build a trampoline and issue a small
15973 jump instruction to it.
15974 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15975 trampoline and error message.
15976 (x86_get_min_fast_tracepoint_insn_len): New.
15977 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15978 * linux-low.h (struct linux_target_ops): Add arguments to
15979 install_fast_tracepoint_jump_pad operation, add new operation.
15980 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15981 arguments.
15982 (linux_get_min_fast_tracepoint_insn_len): New function.
15983 (linux_target_op): Add new operation.
15984 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15985 (gdb_trampoline_buffer_end): Ditto.
15986 (gdb_trampoline_buffer_error): Ditto.
15987 (struct ipa_sym_addresses): Add fields for new IPA variables.
15988 (symbol_list): Add entries for new IPA variables.
15989 (struct tracepoint): Add fields to hold the address range of the
15990 trampoline used by the tracepoint.
15991 (trampoline_buffer_head): New static variable.
15992 (trampoline_buffer_tail): Ditto.
15993 (claim_trampoline_space): New function.
15994 (have_fast_tracepoint_trampoline_buffer): New function.
15995 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15996 structure.
15997 (install_fast_tracepoint): Ditto, also add error buffer argument.
15998 (cmd_qtminftpilen): New function.
15999 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16000 (fast_tracepoint_from_trampoline_address): New function.
16001 (fast_tracepoint_collecting): Handle trampoline as part of jump
16002 pad space.
16003 (set_trampoline_buffer_space): New function.
16004 (initialize_tracepoint): Initialize new IPA variables.
16005 * target.h (struct target_ops): Add arguments to
16006 install_fast_tracepoint_jump_pad operation, add new
16007 get_min_fast_tracepoint_insn_len operation.
16008 (target_get_min_fast_tracepoint_insn_len): New.
16009 (install_fast_tracepoint_jump_pad): Add arguments.
16010 * server.h (IPA_BUFSIZ): Define.
16011 * linux-i386-ipa.c: Include extra header files.
16012 (initialize_fast_tracepoint_trampoline_buffer): New function.
16013 (initialize_low_tracepoint): Call it.
16014 * server.h (set_trampoline_buffer_space): Declare.
16015 (claim_trampoline_space): Ditto.
16016 (have_fast_tracepoint_trampoline_buffer): Ditto.
16017
1e4d1764
YQ
160182011-11-14 Yao Qi <yao@codesourcery.com>
16019
16020 * server.c (handle_query): Handle InstallInTrace for qSupported.
16021 * tracepoint.c (add_tracepoint): Sort list.
16022 (install_tracepoint, download_tracepoint): New.
16023 (cmd_qtdp): Call them to install and download tracepoints.
16024 (sort_tracepoints): Removed.
16025 (cmd_qtstart): Update.
16026
5c73ff4e
YQ
160272011-11-14 Yao Qi <yao@codesourcery.com>
16028
16029 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16030 * mem-break.h: Declare.
16031 * tracepoint.c (cmd_qtstart): Move some code to ...
16032 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16033 New.
16034 (download_tracepoints): Move some code to ...
16035 (download_tracepoint_1): ... here. New.
16036
86a30030
YQ
160372011-11-08 Yao Qi <yao@codesourcery.com>
16038
16039 * remote-utils.c (relocate_instruction): A comment fix.
16040
8d26e50c
JB
160412011-11-07 Joel Brobecker <brobecker@adacore.com>
16042
16043 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16044 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16045 dr_status_mirror and dr_control_mirror from debug_reg_state.
16046 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16047 (i386_initial_stuff): Remove use of deleted globals.
16048 (i386_get_thread_context, i386_set_thread_context,
16049 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16050 from debug_reg_state.
16051
a59306a3
YQ
160522011-11-05 Yao Qi <yao@codesourcery.com>
16053
16054 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16055 address as TPOINT's.
16056
3065dfb6
SS
160572011-11-02 Stan Shebs <stan@codesourcery.com>
16058
16059 * tracepoint.c (agent_mem_read_string): New function.
16060 (eval_agent_expr): Call it for tracenz.
16061 * server.c (handle_query): Report support for tracenz.
16062
fd0d8c7c
YQ
160632011-11-02 Yao Qi <yao@codesourcery.com>
16064
16065 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16066
609086b1
YQ
160672011-11-02 Yao Qi <yao@codesourcery.com>
16068
16069 * target.h: Fix a typo in comment.
16070
b9fd1791
PA
160712011-10-31 Pedro Alves <pedro@codesourcery.com>
16072
16073 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16074 clobber the breakpoints' shadows with fast tracepoint jumps.
16075 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16076 * target.c (write_inferior_memory): Also pass MYADDR down to
16077 check_mem_write.
16078
03583c20
UW
160792011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16080
16081 * configure.ac: Check support for personality routine.
16082 * configure: Regenerate.
16083 * config.in: Likewise.
16084 * linux-low.c: Include <sys/personality.h>.
16085 Define ADDR_NO_RANDOMIZE if necessary.
16086 (linux_create_inferior): Disable address space randomization when
16087 forking inferior, if requested.
16088 (linux_supports_disable_randomization): New function.
16089 (linux_target_ops): Install it.
16090 * server.h (disable_randomization): Declare.
16091 * server.c (disable_randomization): New global variable.
16092 (handle_general_set): Handle QDisableRandomization.
16093 (handle_query): Likewise for qSupported.
16094 (main): Support --disable-randomization and --no-disable-randomization
16095 command line arguments.
16096 * target.h (struct target_ops): Add supports_disable_randomization.
16097 (target_supports_disable_randomization): New macro.
16098
723b724b
MF
160992011-09-29 Mike Frysinger <vapier@gentoo.org>
16100
16101 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16102 ifdef check.
16103 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16104 [!PT_GETDSBT] (target_loadmap): New definition.
16105 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16106 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16107 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16108 and PT_GETDSBT to LINUX_LOADMAP.
16109 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16110 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16111
55329a5c 161122011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16113
16114 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16115 (arm_linux_hwbp_cap): New static variable.
16116 (arm_linux_get_hwbp_cap): Replace by ...
16117 (arm_linux_init_hwbp_cap): ... this new function.
16118 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16119 (arm_linux_get_hw_watchpoint_count): Likewise.
16120 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16121 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16122 (arm_prepare_to_resume): Use perror_with_name instead of error.
16123
55329a5c 161242011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16125
16126 * linux-arm-low.c: Include <signal.h>.
16127 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16128 (struct arm_linux_hwbp_cap): New data type.
16129 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16130 (struct arm_linux_hw_breakpoint): New data type.
16131 (MAX_BPTS, MAX_WPTS): Define.
16132 (struct arch_process_info, struct arch_lwp_info): New data types.
16133 (arm_linux_get_hwbp_cap): New function.
16134 (arm_linux_get_hw_breakpoint_count): Likewise.
16135 (arm_linux_get_hw_watchpoint_count): Likewise.
16136 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16137 (arm_hwbp_control_initialize): Likewise.
16138 (arm_hwbp_control_is_enabled): Likewise.
16139 (arm_hwbp_control_is_initialized): Likewise.
16140 (arm_hwbp_control_disable): Likewise.
16141 (arm_linux_hw_breakpoint_equal): Likewise.
16142 (arm_linux_hw_point_initialize): Likewise.
16143 (struct update_registers_data): New data structure.
16144 (update_registers_callback: New function.
16145 (arm_insert_point): Likewise.
16146 (arm_remove_point): Likewise.
16147 (arm_stopped_by_watchpoint): Likewise.
16148 (arm_stopped_data_address): Likewise.
16149 (arm_new_process): Likewise.
16150 (arm_new_thread): Likewise.
16151 (arm_prepare_to_resume): Likewise.
16152 (the_low_target): Register arm_insert_point, arm_remove_point,
16153 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16154 arm_new_thread, and arm_prepare_to_resume.
16155
6b9801d4
SS
161562011-09-15 Stan Shebs <stan@codesourcery.com>
16157
16158 * server.h (struct emit_ops): Add compare-goto fields.
16159 * tracepoint.c (gdb_agent_op_sizes): New table.
16160 (emit_eq_goto): New function.
16161 (emit_ne_goto): New function.
16162 (emit_lt_goto): New function.
16163 (emit_le_goto): New function.
16164 (emit_gt_goto): New function.
16165 (emit_ge_goto): New function.
16166 (is_goto_target): New function.
16167 (compile_bytecodes): Recognize special cases of compare-goto
16168 combinations and call specialized emitters for them.
16169 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16170 (amd64_emit_ne_goto): New function.
16171 (amd64_emit_lt_goto): New function.
16172 (amd64_emit_le_goto): New function.
16173 (amd64_emit_gt_goto): New function.
16174 (amd64_emit_ge_goto): New function.
16175 (amd64_emit_ops): Add the new functions.
16176 (i386_emit_eq_goto): New function.
16177 (i386_emit_ne_goto): New function.
16178 (i386_emit_lt_goto): New function.
16179 (i386_emit_le_goto): New function.
16180 (i386_emit_gt_goto): New function.
16181 (i386_emit_ge_goto): New function.
16182 (i386_emit_ops): Add the new functions.
16183
bf15cbda
SS
161842011-09-08 Stan Shebs <stan@codesourcery.com>
16185
16186 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16187 (i386_emit_epilogue): Restore %ebx.
16188
943ca1dd
JZ
161892011-08-31 Jie Zhang <jzhang918@gmail.com>
16190
16191 * server.c (step_thread): Remove definition.
16192 (process_serial_event): Don't handle Hs.
16193 * server.h (step_thread): Remove declaration.
16194 * target.c (set_desired_inferior): Remove use of step_thread.
16195
e3deef73
LM
161962011-08-24 Luis Machado <lgustavo@codesourcery.com>
16197
16198 * linux-low.c: Include linux-procfs.h.
16199 (linux_attach_lwp_1): Update comments.
16200 (linux_attach): Scan for existing threads when attaching to a
16201 process that is the tgid.
16202 * Makefile.in: Update dependencies.
16203
13da1c97
LM
162042011-08-24 Luis Machado <lgustavo@codesourcery.com>
16205
16206 * configure.srv: Add linux-procfs.o dependencies.
16207
881127c9
YQ
162082011-08-14 Yao Qi <yao@codesourcery.com>
16209
16210 * target.h (struct target_ops): Fix indent.
16211 * win32-low.c (win32_target_ops): Fix comment.
16212
58dbd541
YQ
162132011-08-14 Andrew Jenner <andrew@codesourcery.com>
16214 Yao Qi <yao@codesourcery.com>
16215
16216 * Makefile.in (clean): Remove tic6x-*.c files.
16217 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16218 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16219 (tic6x-c64xp-linux.c): Likewise.
16220 * configure.srv: Add support for tic6x-*-uclinux.
16221 * linux-tic6x-low.c: New.
16222 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16223
78d85199
YQ
162242011-08-14 Andrew Stubbs <ams@codesourcery.com>
16225 Yao Qi <yao@codesourcery.com>
16226
16227 * target.h (struct target_ops): Add read_loadmap.
16228 * linux-low.c (struct target_loadseg): New type.
16229 (struct target_loadmap): New type.
16230 (linux_read_loadmap): New function.
16231 (linux_target_ops): Add linux_read_loadmap.
16232 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16233 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16234 to NULL.
78d85199 16235
a959a88d
EZ
162362011-08-05 Eli Zaretskii <eliz@gnu.org>
16237
16238 * win32-low.c: Include <stdint.h>.
16239
1ced966e
PA
162402011-07-22 Pedro Alves <pedro@codesourcery.com>
16241
16242 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16243 to the inferior here.
16244 (i386_remove_aligned_watchpoint): Ditto.
16245 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16246 fit part of the watchpoint in the debug registers.
16247 (i386_update_inferior_debug_regs): New.
16248 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16249 registers, and only update the inferior on success.
16250 (i386_low_remove_watchpoint): Ditto.
16251
d26e3629
KY
162522011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16253
16254 * linux-low.c (compare_ints, unique, list_threads, show_process,
16255 linux_core_of_thread): Delete.
16256 (linux_target_ops): Change linux_core_of_thread to
16257 linux_common_core_of_thread.
16258 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16259 * utils.c (malloc_failure): Change type of argument.
16260 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16261 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16262 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16263 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16264 (IPA_OBJS): Add common-utils-ipa.o.
16265 (ptid_h, linux_osdata_h): New macros.
16266 (server_h): Add common/common-utils.h, common/xml-utils.h,
16267 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16268 common/ptid.h.
16269 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16270 ptid.o, buffer.o): New rules.
16271 (linux-low.o): Add common/linux-osdata.h as a dependency.
16272 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16273 * configure.ac: Add AC_HEADER_DIRENT check.
16274 * config.in: Regenerate.
16275 * configure: Regenerate.
16276 * remote-utils.c (xml_escape_text): Delete.
16277 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16278 buffer_xml_printf): Move to common/buffer.c.
16279 * server.c (main): Remove call to initialize_inferiors.
16280 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16281 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16282 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16283 internal_error, gdb_assert, gdb_assert_fail): Delete.
16284 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16285 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16286 common/buffer.h.
16287 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16288 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16289 initialize_inferiors): Delete.
16290
2275a1a7
PA
162912011-07-20 Pedro Alves <pedro@codesourcery.com>
16292
16293 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16294 symbol error.
16295
0a5b1e09
PA
162962011-05-31 Pedro Alves <pedro@codesourcery.com>
16297
16298 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16299 assertion.
16300 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16301
6938fd34
YQ
163022011-05-26 Yao Qi <yao@codesourcery.com>
16303
16304 * Makefile.in (thread-db.o): Track dependence to
16305 common/gdb_thread_db.h.
16306 * thread-db.c: include gdb_thread_db.h from right place.
16307
b481f9e0
TT
163082011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16309
16310 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16311 __FILE__ and __LINE__ to internal_error.
16312
98a5dd13
DE
163132011-05-13 Doug Evans <dje@google.com>
16314
16315 * thread-db.c (try_thread_db_load_from_sdir): New function.
16316 (try_thread_db_load_from_dir): New function.
16317 (thread_db_load_search): Handle $sdir, ignore $pdir.
16318 Remove trying of system directories if search of
16319 libthread-db-search-path fails, that is now done via $sdir.
16320
d248b706
KY
163212011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16322
16323 * server.c (handle_query): Add EnableDisableTracepoints to the list
16324 of supported features.
43aaf8b6 16325 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16326 tracepoints.
43aaf8b6
PA
16327 (cmd_qtenable_disable): New.
16328 (cmd_qtstart): Install tracepoints even if disabled.
16329 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16330 receiving a QTEnable or QTDisable packet.
16331 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16332 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16333 tracepoints.
16334 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16335
84e578fb
DE
163362011-05-10 Doug Evans <dje@google.com>
16337
16338 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16339
71f55dd8
DE
163402011-05-04 Doug Evans <dje@google.com>
16341
16342 * linux-low.c (linux_join): Skip process lookup.
16343 * spu-low.c (spu_join): Ditto.
16344 * server.c (join_inferiors_callback): Delete.
16345 (process_serial_event): For 'D' packet (detach) call join_inferior
16346 directly.
16347
4d393d60
JM
163482011-05-04 Joseph Myers <joseph@codesourcery.com>
16349
16350 * README: Don't mention xscale*-*-linux*.
16351 * configure.srv (xscale*-*-linux*): Don't handle target.
16352
b00ad6ff
NF
163532011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16354
16355 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16356 casting pointers.
16357 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16358 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16359 (i386_emit_void_call_2): Likewise.
16360
af96c192
YQ
163612011-04-26 Yao Qi <yao@codesourcery.com>
16362
43aaf8b6
PA
16363 * linux-low.c: Move common macros to linux-ptrace.h.
16364 Include linux-ptrace.h.
af96c192
YQ
16365 * Makefile.in (linux_ptrace_h): New.
16366 (linux-low.o): Depends on linux-ptrace.h.
16367
03f2bd59
JK
163682011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16369
16370 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16371 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16372 (remote_prepare): New function with most of the TCP code from ...
16373 (remote_open): ... here. Detect PORT here unconditionally. Move also
16374 setting transport_is_reliable.
16375 * server.c (run_once): New variable.
16376 (gdbserver_usage): Document it.
16377 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16378 the first run if RUN_ONCE.
16379 * server.h (run_once, remote_prepare): New declarations.
16380
7a9dd1b2
TT
163812011-04-19 Tom Tromey <tromey@redhat.com>
16382
16383 * win32-low.c (handle_load_dll): Remove duplicate "the".
16384
81239425
PM
163852011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16386
16387 Remove support for old Cygwin 1.5 versions.
16388 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16389 function to avoid warning.
16390 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16391 warning.
16392
9e0627f1
PM
163932011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16394
16395 * gdbserver/server.h (Macro _): Define it if not available.
16396
588eebee
MS
163972011-03-14 Michael Snyder <msnyder@vmware.com>
16398
348af9f7 16399 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16400
43f70d4c
JB
164012011-03-10 Joel Brobecker <brobecker@adacore.com>
16402
16403 * Makefile.in (maintainer-clean realclean distclean): Remove
16404 "make ... subdir_do" command.
16405
348af9f7
MS
164062011-03-10 Michael Snyder <msnyder@vmware.com>
16407
16408 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16409
16410 * server.c (handle_v_run): Free alloced buffer on early return.
16411
e637a4f5
YQ
164122011-03-09 Yao Qi <yao@codesourcery.com>
16413
16414 Revert:
16415 2011-03-04 Yao Qi <yao@codesourcery.com>
16416
16417 * Makefile.in: Remove GNU make feature --directory.
16418
16419 2011-03-05 Yao Qi <yao@codesourcery.com>
16420
16421 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16422 (subdir_do): New make target. Copied from gdb/Makefile.
16423 (maintainer-clean, realclean, distclean, clean): Call corresponding
16424 make targets in common/Makefile.
16425
16426 2011-02-11 Yao Qi <yao@codesourcery.com>
16427
16428 * configure.ac: Call AC_PROG_RANLIB.
16429 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16430 * configure: Regenerate.
16431
e6edda56
JK
164322011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16433
16434 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16435
e5141119
JB
164362011-03-06 Yao Qi <yao@codesourcery.com>
16437
16438 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16439
64794aa4
JB
164402011-03-05 Yao Qi <yao@codesourcery.com>
16441
16442 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16443 (subdir_do): New make target. Copied from gdb/Makefile.
16444 (maintainer-clean, realclean, distclean, clean): Call corresponding
16445 make targets in common/Makefile.
16446
7a762829
YQ
164472011-03-04 Yao Qi <yao@codesourcery.com>
16448
16449 * Makefile.in: Remove GNU make feature --directory.
16450
348af9f7
MS
164512011-03-04 Michael Snyder <msnyder@vmware.com>
16452
16453 * server.c (queue_stop_reply): Call xmalloc not malloc.
16454
164552011-03-02 Michael Snyder <msnyder@vmware.com>
16456
16457 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16458
9f72fee2
MS
164592011-02-28 Michael Snyder <msnyder@vmware.com>
16460
588eebee
MS
16461 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16462 (cmd_qtframe): Ditto.
16463 (cmd_qtbuffer): Ditto.
16464 (cmd_bigqtbuffer): Ditto.
16465
9f72fee2
MS
16466 * utils.c (decimal2str): Initialize 'width' to nine, then
16467 don't mess with it.
16468
8040bd49
UW
164692011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16470
16471 * hostio.c (require_data): Free *data, not data.
16472
7e52cbd0
JK
164732011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16474
16475 * hostio.c (require_data): Use free, not xfree.
16476
9130f83e
MS
164772011-02-27 Michael Snyder <msnyder@vmware.com>
16478
4b812f4e
MS
16479 * server.c (handle_query): Discard unused value.
16480
9130f83e
MS
16481 * hostio.c (require_data): Free malloc memory before returning
16482 error.
16483
69d37113
MS
164842011-02-26 Michael Snyder <msnyder@vmware.com>
16485
16486 * linux-low.c (list_threads): Call closedir for dirent.
16487
35f5825a
MS
164882011-02-27 Michael Snyder <msnyder@vmware.com>
16489
2a589cef
MS
16490 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16491 a case statement falls through.
16492
0adea5f7
MS
16493 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16494
35f5825a
MS
16495 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16496 in comparison.
16497
238f1c74
MS
164982011-02-26 Michael Snyder <msnyder@vmware.com>
16499
16500 * utils.c (decimal2str): Eliminate dead code and dead param.
16501 (pulongest): Drop dead param from call to decimal2str.
16502 (plongest): Ditto.
16503
633ff500
JB
165042011-02-24 Joel Brobecker <brobecker@adacore.com>
16505
16506 Revert the following patch (not approved yet):
16507 2011-02-21 Hui Zhu <teawater@gmail.com>
16508 * tracepoint.c (tp_printf): New function.
16509 (eval_agent_expr): Handle gdb_agent_op_printf.
16510
f9c6ff72
HZ
165112011-02-21 Hui Zhu <teawater@gmail.com>
16512
16513 * tracepoint.c (tp_printf): New function.
16514 (eval_agent_expr): Handle gdb_agent_op_printf.
16515
94d5e490
TT
165162011-02-18 Tom Tromey <tromey@redhat.com>
16517
16518 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16519 (tracepoint.o): Likewise.
16520 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16521 (gdb_agent_op_names): Likewise.
16522
c7f96d2b
TT
165232011-02-18 Tom Tromey <tromey@redhat.com>
16524
16525 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16526 gdb_agent_op_rot>: New constants.
16527 (gdb_agent_op_names): Add pick and roll.
16528 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16529 cases.
16530
0feedb2c
JK
165312011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16532
16533 * aclocal.m4: Regenerated with aclocal-1.11.1.
16534
b3b9301e
PA
165352011-02-14 Pedro Alves <pedro@codesourcery.com>
16536
16537 * server.c (handle_qxfer_traceframe_info): New.
16538 (qxfer_packets): Register "traceframe-info".
16539 (handle_query): Report support for qXfer:traceframe-info:read+.
16540 * tracepoint.c (match_blocktype): New.
16541 (traceframe_find_block_type): Rename to ...
16542 (traceframe_walk_blocks): ... this. Add callback filter argument,
16543 and use it.
16544 (traceframe_find_block_type): New, reimplemented on top of
16545 traceframe_walk_blocks.
16546 (build_traceframe_info_xml): New.
16547 (traceframe_read_info): New.
16548 * server.h (traceframe_read_info): Declare.
16549
4f3e6fb7
YQ
165502011-02-11 Yao Qi <yao@codesourcery.com>
16551
16552 * configure.ac: Call AC_PROG_RANLIB.
16553 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16554 * configure: Regenerate.
16555
764880b7
PA
165562011-02-07 Pedro Alves <pedro@codesourcery.com>
16557
16558 * server.c (gdb_read_memory): Change return semantics to allow
16559 partial transfers.
16560 (handle_search_memory_1): Adjust.
16561 (process_serial_event) <'m' packet>: Handle partial transfers.
16562 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16563
1c79eb8a
PA
165642011-01-28 Pedro Alves <pedro@codesourcery.com>
16565
16566 * regcache.c (init_register_cache): Initialize
16567 regcache->register_status.
16568 (free_register_cache): Release regcache->register_status.
16569 (regcache_cpy): Copy register_status.
16570 (registers_to_string): Print 'x's for unavailable registers.
16571 (supply_register): Mark the register's status valid or
16572 unavailable, depending on whether a buffer was passed in or not.
16573 (supply_register_zeroed): New.
16574 (supply_regblock): Mark the registers' status valid or
16575 unavailable, depending on whether a buffer was passed in or not.
16576 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16577 (struct regcache): New `register_status' field.
16578 (supply_register_zeroed): Declare.
16579 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16580 supply_register_zeroed, rather than passing a NULL buffer to
16581 supply_register.
16582 * tracepoint.c (fetch_traceframe_registers): Update comment.
16583
85724a0e
PA
165842011-01-28 Pedro Alves <pedro@codesourcery.com>
16585
16586 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16587 buffer explicit.
16588
d08aafef
PA
165892011-01-25 Pedro Alves <pedro@codesourcery.com>
16590
16591 * server.h (decode_xfer_write): Change prototype.
16592 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16593 and don't extract the annex here.
16594 * server.c (decode_xfer_read): Remove `annex' parameter,
16595 and don't extract the annex here.
16596 (decode_xfer): New.
16597 (struct qxfer): New.
16598 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16599 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16600 (handle_qxfer_statictrace): New functions, abstracted out from
16601 handle_query, and made to use the struct qxfer interface.
16602 (handle_threads_qxfer_proper): Rename to ...
16603 (handle_qxfer_threads_proper): ... this.
16604 (handle_threads_qxfer): Rename to ...
16605 (handle_qxfer_threads): ... this. Adjust.
16606 (qxfer_packets): New array.
16607 (handle_qxfer): New function.
16608 (handle_query): Use handle_qxfer.
16609
493e2a69
MS
166102011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16611
16612 * gdbreplay.c: Shorten lines of >= 80 columns.
16613 * linux-low.c: Ditto.
16614 * linux-ppc-low.c: Ditto.
16615 * linux-s390-low.c: Ditto.
16616 * linux-sparc-low.c: Ditto.
16617 * linux-x86-low.c: Ditto.
16618 * linux-xtensa-low.c: Ditto.
16619 * mem-break.c: Ditto.
16620 * nto-low.c: Ditto.
16621 * regcache.h: Ditto.
16622 * remote-utils.c: Ditto.
16623 * server.c: Ditto.
16624 * server.h: Ditto.
16625 * thread-db.c: Ditto.
16626 * tracepoint.c: Ditto.
16627 * utils.c: Ditto.
16628 * win32-low.h: Ditto.
16629
44944448
JB
166302011-01-05 Joel Brobecker <brobecker@adacore.com>
16631
16632 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16633 update.
16634
71ce852c
JB
166352011-01-01 Joel Brobecker <brobecker@adacore.com>
16636
16637 * server.c (gdbserver_version): Update copyright year in version
16638 output.
16639 * gdbreplay.c (gdbreplay_version): Ditto.
16640
eb826dc6
MF
166412010-12-29 Jie Zhang <jie.zhang@analog.com>
16642
16643 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16644 * linux-bfin-low.c: New file.
16645 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16646 PT_DATA_ADDR for BFIN targets.
16647 * Makefile.in (SFILES): Add linux-bfin-low.c.
16648 (clean): Remove reg-bfin.c.
16649 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16650 * README: Mention supported Blackfin targets.
16651
39ab222a
MF
166522010-12-23 Mike Frysinger <vapier@gentoo.org>
16653
16654 * .gitignore: New file.
16655
a1f2ce7d
MF
166562010-11-16 Mike Frysinger <vapier@gentoo.org>
16657
16658 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16659
f474844c
JZ
166602010-10-22 Jie Zhang <jie@codesourcery.com>
16661
16662 * Makefile.in: Add FLAGS_TO_PASS variable.
16663 (install): Remove dependency of install-only and recursively
16664 invoke make for install-only.
16665
f1048712
DE
166662010-10-04 Doug Evans <dje@google.com>
16667
16668 * Makefile.in (uninstall): Use $(DESTDIR).
16669
b53a1623
PA
166702010-09-24 Pedro Alves <pedro@codesourcery.com>
16671
e6ee044d
PA
16672 PR gdb/11842
16673
b53a1623
PA
16674 * linux-x86-low.c (compat_siginfo_from_siginfo)
16675 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16676 si_code is < 0. Check for si_code == SI_TIMER before checking for
16677 si_code < 0.
16678
fa1bd1e4
JB
166792010-09-13 Joel Brobecker <brobecker@adacore.com>
16680
16681 * lynx-i386-low.c: New file.
16682 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16683
47fac8f8
JB
166842010-09-13 Joel Brobecker <brobecker@adacore.com>
16685
16686 * lynx-low.c (ptrace_request_to_str): Remove handling for
16687 request values that have been removed in LynxOS 5.x.
16688
1adfc54d
JB
166892010-09-13 Joel Brobecker <brobecker@adacore.com>
16690
16691 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16692 <ptrace.h>
16693
c2a66c29
NS
166942010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16695
16696 * configure.ac: Add --enable-inprocess-agent option.
16697 * configure: Rebuilt.
16698
32fcada3
YQ
166992010-09-06 Yao Qi <yao@codesourcery.com>
16700
16701 * linux-low.c (linux_kill): Remove unused variable.
16702 (linux_stabilize_threads): Likewise.
16703 * server.c (start_inferior): Likewise.
16704 (queue_stop_reply_callback): Likewise.
16705 * tracepoint.c (do_action_at_tracepoint): Likewise.
16706
0cccb683
YQ
167072010-09-06 Yao Qi <yao@codesourcery.com>
16708
16709 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16710 on return.
16711
423ec54c
JK
167122010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16713
16714 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16715
12ac6819
PA
167162010-09-06 Pedro Alves <pedro@codesourcery.com>
16717
16718 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16719 "$(IPA_DEPFILES)".
16720
8ed54b31
JB
167212010-09-01 Joel Brobecker <brobecker@adacore.com>
16722
16723 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16724 gdbserver/lynx-ppc-low.c: New files.
16725 * Makefile.in (lynx_low_h): New variable.
16726 (lynx-low.o, lynx-ppc-low.o): New rules.
16727 * configure.ac: On LynxOS, link with -lnetinet.
16728 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16729 * configure: regenerate.
16730
bb0116a4
JB
167312010-09-01 Joel Brobecker <brobecker@adacore.com>
16732
16733 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16734 * configure.ac: Add check for vasprintf and vsnprintf.
16735 * configure, config.in: Regenerate.
16736 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16737
a778ab81 167382010-09-01 Joel Brobecker <brobecker@adacore.com>
16739
16740 * gdbreplay.c: Move include of alloca.h up, next to include of
16741 malloc.h.
16742 * server.h: Add include of malloc.h.
16743 * mem-break.c: Remove include of malloc.h.
16744 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16745
8b034a19 167462010-09-01 Joel Brobecker <brobecker@adacore.com>
16747
16748 * Makefile.in (memmem.o): Build with -Wno-error.
16749
167502010-09-01 Joel Brobecker <brobecker@adacore.com>
16751
16752 * utils.c (xsnprintf): Make non-static.
16753 * server.h: Add xsnprintf declaration.
16754 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16755 replace calls to snprintf by calls to xsnprintf throughout.
16756
167572010-09-01 Joel Brobecker <brobecker@adacore.com>
16758
16759 * configure.ac: Add configure check for alloca.
16760 * configure, config.in: Regenerate.
16761 * server.h: Include alloca.h if it exists.
16762 * gdbreplay.c: Include alloca.h if it exists.
16763
1a981360
PA
167642010-08-28 Pedro Alves <pedro@codesourcery.com>
16765
16766 * linux-low.c (__SIGRTMIN): Define if not already defined.
16767 (linux_create_inferior): Check for __ANDROID__ rather than
16768 __SIGRTMIN.
16769 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16770 are already deferred.
16771 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16772 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16773 stopped and already has a pending signal to report.
16774 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16775 a pending signal to report or is moving out of a jump pad.
16776 (linux_init_signals): Check for __ANDROID__ rather than
16777 __SIGRTMIN.
16778
b4d51a55
PA
167792010-08-28 Pedro Alves <pedro@codesourcery.com>
16780
16781 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16782 debug_threads check. Avoid a linear search when not doing debug
16783 output.
16784
ec48365d
PA
167852010-08-27 Pedro Alves <pedro@codesourcery.com>
16786
16787 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16788 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16789 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16790 (process_event): Change local fd's type to gdb_fildes_t.
16791 (create_file_handler): Adjust prototype.
16792 (delete_file_handler): Adjust prototype.
16793 (handle_file_event): Adjust prototype. Use pfildes.
16794 (create_file_event): Adjsut prototype.
16795 * remote-utils.c (remote_desc, listen_desc): Change type to
16796 gdb_fildes_t.
16797 * server.h: New gdb_fildes_t typedef.
16798 [USE_WIN32API]: Include winsock2.h.
16799 (delete_file_handler, add_file_handler): Adjust prototypes.
16800 (pfildes): Declare.
16801 * utils.c (pfildes): New.
16802
854d88f0
PA
168032010-08-27 Pedro Alves <pedro@codesourcery.com>
16804
16805 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16806 * configure: Regenerate.
16807
0146f85b
PA
168082010-08-27 Pedro Alves <pedro@codesourcery.com>
16809
16810 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16811 (linux_done_accessing_memory): ... this.
16812 (linux_target_ops): Adjust.
16813 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16814 * nto-low.c (nto_target_ops): Adjust comment.
16815 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16816 * spu-low.c (spu_target_ops): Adjust comment.
16817 * target.h (target_ops): Rename unprepare_to_access_memory field
16818 to done_accessing_memory.
16819 (unprepare_to_access_memory): Rename to ...
16820 (done_accessing_memory): ... this.
16821
90d74c30
PA
168222010-08-26 Pedro Alves <pedro@codesourcery.com>
16823
16824 * linux-low.c (linux_prepare_to_access_memory): New.
16825 (linux_unprepare_to_access_memory): New.
16826 (linux_target_ops): Install them.
16827 * server.c (read_memory): Rename to ...
16828 (gdb_read_memory): ... this. Use
16829 prepare_to_access_memory/prepare_to_access_memory.
16830 (write_memory): Rename to ...
16831 (gdb_write_memory): ... this. Use
16832 prepare_to_access_memory/prepare_to_access_memory.
16833 (handle_search_memory_1): Adjust.
16834 (process_serial_event): Adjust.
16835 * target.h (struct target_ops): New fields
16836 prepare_to_access_memory and unprepare_to_access_memory.
16837 (prepare_to_access_memory, unprepare_to_access_memory): New.
16838 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16839 prepare_to_access_memory/prepare_to_access_memory.
16840 * nto-low.c (nto_target_ops): Adjust.
16841 * spu-low.c (spu_target_ops): Adjust.
16842 * win32-low.c (win32_target_ops): Adjust.
16843
fd467969
PA
168442010-08-26 Pedro Alves <pedro@codesourcery.com>
16845
16846 * Makefile.in (WARN_CFLAGS): Get it from configure.
16847 (WERROR_CFLAGS): New.
16848 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16849 * configure.ac: Introduce --enable-werror, which adds -Werror to
16850 the compiler command line. Enabled by default. Disable with
16851 --disable-werror. Add -Wdeclaration-after-statement
16852 Wpointer-arith and -Wformat-nonliteral to warning flags.
16853 * configure: Regenerate.
16854
331e2f5f
PA
168552010-08-26 Pedro Alves <pedro@codesourcery.com>
16856
16857 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16858
e581f2b4
PA
168592010-08-26 Pedro Alves <pedro@codesourcery.com>
16860
16861 * gdbreplay.c (remote_error): New.
16862 (gdbchar): New.
16863 (expect): Use gdbchar. Check for error reading from GDB.
16864 Clarify sync error output.
16865 (play): Check for errors writing to GDB.
16866 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16867 * remote-utils.c (getpkt): Check for errors writing to the remote
16868 descriptor.
16869
3c11dd79
PA
168702010-08-25 Pedro Alves <pedro@codesourcery.com>
16871
16872 * linux-low.c (linux_wait_1): Move non-debugging code out of
16873 `debug_threads' control.
16874
d20a8ad9
PA
168752010-08-25 Pedro Alves <pedro@codesourcery.com>
16876
16877 * linux-low.c (linux_wait_1): Don't set last_status here.
16878 * server.c (push_event, queue_stop_reply_callback): Assert we're
16879 not pushing a TARGET_WAITKIND_IGNORE event.
16880 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16881 (myresume, handle_target_event): Set the thread's last_resume_kind
16882 and last_status from the target returned status.
16883
964e4306
PA
168842010-08-25 Pedro Alves <pedro@codesourcery.com>
16885
16886 PR threads/10729
16887
16888 * linux-x86-low.c (update_debug_registers_callback): New.
16889 (i386_dr_low_set_addr): Use it.
16890 (i386_dr_low_get_addr): New.
16891 (i386_dr_low_set_control): Use update_debug_registers_callback.
16892 (i386_dr_low_get_control): New.
16893 (i386_dr_low_get_status): Adjust.
16894 * linux-low.c (linux_stop_lwp): New.
16895 * linux-low.h (linux_stop_lwp): Declare.
16896
16897 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16898 argument instead of a i386_debug_reg_state.
16899 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16900 a i386_debug_reg_state.
16901 (i386_insert_aligned_watchpoint): Adjust.
16902 (i386_remove_aligned_watchpoint): Adjust.
16903 (i386_low_stopped_data_address): Read the debug registers from the
16904 inferior instead of from the mirrors.
16905 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16906 (i386_dr_low_get_addr): Declare.
16907 (i386_dr_low_get_control): Declare.
16908 (i386_dr_low_get_status): Change prototype.
16909
16910 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16911 (i386_dr_low_get_addr): New.
16912 (i386_dr_low_get_control): New.
16913 (i386_dr_low_get_status): Adjust prototype. Return
16914 dr_status_mirror.
16915 (i386_initial_stuff): Clear dr_status_mirror and
16916 dr_control_mirror.
16917 (i386_get_thread_context): Adjust.
16918 (i386_set_thread_context): Adjust.
16919 (i386_thread_added): Adjust.
16920
5f21a75b
PA
169212010-08-24 Pedro Alves <pedro@codesourcery.com>
16922
16923 * linux-low.h (linux_thread_area): Delete declaration.
16924
3e4c1235
TS
169252010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16926
16927 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16928 after its termination.
16929
1971b033
PA
169302010-08-09 Pedro Alves <pedro@codesourcery.com>
16931
16932 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16933 (gdb_wants_all_stopped): Delete.
16934 (linux_wait_1): Don't call them.
16935 * server.c (handle_v_cont): Tag all threads as want-stopped.
16936 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16937 stopped as "client-wants-stopped".
16938
310444ac
PA
169392010-07-31 Pedro Alves <pedro@codesourcery.com>
16940
16941 * Makefile.in (signals_h): New.
16942 (server_h): Depend on it.
16943 (server.o): Don't depend on $(signals_def).
16944 (signals.o): Depend on $(signals_def).
16945
a19cae16
JK
169462010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16947
16948 * Makefile.in (signals_def): New.
16949 (server_h): Append include/gdb/signals.h and signals_def.
16950 (server.o): Append signals_def.
16951
30d50328
JK
169522010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16953
16954 * server.c (handle_target_event): Use target_signal_to_host for
16955 resume_info.sig initialization.
16956 * target.h (struct thread_resume) <sig>: New comment.
16957
5c3216e2
OS
169582010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16959
c6f46ca0
OS
16960 * server.c (handle_query): strcpy() the returned string from paddress()
16961 instead of sprintf().
5c3216e2
OS
16962 * utils.c (paddress): Return phex_nz().
16963
6bd31874
JB
169642010-07-07 Joel Brobecker <brobecker@adacore.com>
16965
16966 * server.c (handle_v_cont): Call mourn_inferior if process
16967 just exited.
16968 (myresume): Likewise.
16969
0fb4aa4b
PA
169702010-07-01 Pedro Alves <pedro@codesourcery.com>
16971
16972 Static tracepoints, and integration with UST.
16973
16974 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16975 * mem-break.c (uninsert_all_breakpoints)
16976 (reinsert_all_breakpoints): New.
16977 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16978 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16979 (gdb_agent_ust_loaded, helper_thread_id)
16980 (gdb_agent_helper_thread_id): New macros.
16981 (struct ipa_sym_addresses): Add addr_ust_loaded,
16982 addr_helper_thread_id, addr_cmd_buf.
16983 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16984 (in_process_agent_loaded_ust): New.
16985 (write_e_ust_not_loaded): New.
16986 (maybe_write_ipa_ust_not_loaded): New.
16987 (struct collect_static_trace_data_action): New.
16988 (enum tracepoint_type) <static_tracepoint>: New.
16989 (struct tracepoint) <handle>: Mention static tracepoints.
16990 (struct static_tracepoint_ctx): New.
16991 (CMD_BUF_SIZE): New.
16992 (add_tracepoint_action): Handle static tracepoint actions.
16993 (unprobe_marker_at): New.
16994 (clear_installed_tracepoints): Handle static tracepoints.
16995 (cmd_qtdp): Handle static tracepoints.
16996 (probe_marker_at): New.
16997 (cmd_qtstart): Handle static tracepoints.
16998 (response_tracepoint): Handle static tracepoints.
16999 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17000 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17001 (get_context_regcache): Handle static tracepoints.
17002 (do_action_at_tracepoint): Handle static tracepoint actions.
17003 (traceframe_find_block_type): Handle static trace data blocks.
17004 (traceframe_read_sdata): New.
17005 (download_tracepoints): Download static tracepoint actions.
17006 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17007 (GDB_PROBE_NAME): New.
17008 (ust_ops): New.
17009 (GET_UST_SYM): New.
17010 (USTF): New.
17011 (dlsym_ust): New.
17012 (ust_marker_to_static_tracepoint): New.
17013 (gdb_probe): New.
17014 (collect_ust_data_at_tracepoint): New.
17015 (gdb_ust_probe): New.
17016 (UNIX_PATH_MAX, SOCK_DIR): New.
17017 (gdb_ust_connect_sync_socket): New.
17018 (resume_thread, stop_thread): New.
17019 (run_inferior_command): New.
17020 (init_named_socket): New.
17021 (gdb_ust_socket_init): New.
17022 (cstr_to_hexstr): New.
17023 (next_st): New.
17024 (first_marker, next_marker): New.
17025 (response_ust_marker): New.
17026 (cmd_qtfstm, cmd_qtsstm): New.
17027 (unprobe_marker_at, probe_marker_at): New.
17028 (cmd_qtstmat, gdb_ust_thread): New.
17029 (gdb_ust_init): New.
17030 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17031 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17032 (ST_REGENTRY): New.
17033 (x86_64_st_collect_regmap): New.
17034 (X86_64_NUM_ST_COLLECT_GREGS): New.
17035 (AMD64_RIP_REGNUM): New.
17036 (supply_static_tracepoint_registers): New.
17037 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17038 (ST_REGENTRY): New.
17039 (i386_st_collect_regmap): New.
17040 (i386_NUM_ST_COLLECT_GREGS): New.
17041 (supply_static_tracepoint_registers): New.
17042 * server.c (handle_query): Handle qXfer:statictrace:read.
17043 <qSupported>: Report support for StaticTracepoints, and
17044 qXfer:statictrace:read features.
17045 * server.h (traceframe_read_sdata)
17046 (supply_static_tracepoint_registers): Declare.
17047 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17048 (unpack_varlen_hex): Include in IPA build.
17049 * Makefile.in (ustlibs, ustinc): New.
17050 (IPA_OBJS): Add remote-utils-ipa.o.
17051 ($(IPA_LIB)): Link -ldl and -lpthread.
17052 (UST_CFLAGS): New.
17053 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17054 * config.in, configure: Regenerate.
17055
9e4344e5
PA
170562010-06-20 Ian Lance Taylor <iant@google.com>
17057 Pedro Alves <pedro@codesourcery.com>
17058
17059 * linux-x86-low.c (always_true): Delete.
17060 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17061 trying to fool the compiler with always_true.
17062
c6beb2cb
PA
170632010-06-20 Pedro Alves <pedro@codesourcery.com>
17064
17065 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17066 conditions in gdbserver.
17067
d2ed6730
UW
170682010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17069
17070 * spu-low.c (spu_read_memory): Wrap around local store limit.
17071 (spu_write_memory): Likewise.
17072
4e29fb54
PA
170732010-06-15 Pedro Alves <pedro@codesourcery.com>
17074
17075 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17076 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17077 LONGEST uses.
17078 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17079 uses.
17080 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17081 uses with LONGEST uses.
17082
6a271cae
PA
170832010-06-14 Stan Shebs <stan@codesourcery.com>
17084 Pedro Alves <pedro@codesourcery.com>
17085
17086 Bytecode compiler.
17087
17088 * linux-x86-low.c: Include limits.h.
17089 (add_insns): New.
17090 (always_true): New.
17091 (EMIT_ASM): New.
17092 (EMIT_ASM32): New.
17093 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17094 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17095 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17096 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17097 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17098 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17099 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17100 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17101 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17102 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17103 (amd64_emit_void_call_2): New.
17104 (amd64_emit_ops): New.
17105 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17106 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17107 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17108 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17109 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17110 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17111 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17112 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17113 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17114 (i386_emit_stack_adjust, i386_emit_int_call_1)
17115 (i386_emit_void_call_2): New.
17116 (i386_emit_ops): New.
17117 (x86_emit_ops): New.
17118 (the_low_target): Install x86_emit_ops.
17119 * server.h (struct emit_ops): New.
17120 (get_raw_reg_func_addr): Declare.
17121 (current_insn_ptr, emit_error): Declare.
17122 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17123 (set_trace_state_variable_value): New defines.
17124 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17125 addr_get_trace_state_variable_value and
17126 addr_set_trace_state_variable_value.
17127 (symbol_list): New fields for get_raw_reg,
17128 get_trace_state_variable_value and set_trace_state_variable_value.
17129 (condfn): New typedef.
17130 (struct tracepoint): New field `compiled_cond'.
17131 (do_action_at_tracepoint): Clear compiled_cond.
17132 (get_trace_state_variable_value, set_trace_state_variable_value):
17133 Export in the IPA.
17134 (condition_true_at_tracepoint): If there's a compiled condition,
17135 run that.
17136 (current_insn_ptr, emit_error): New globals.
17137 (struct bytecode_address): New.
17138 (get_raw_reg_func_addr): New.
17139 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17140 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17141 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17142 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17143 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17144 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17145 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17146 (compile_tracepoint_condition, compile_bytecodes): New.
17147 * target.h (emit_ops): Forward declare.
17148 (struct target_ops): New field emit_ops.
17149 (target_emit_ops): New.
17150 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17151 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17152 * linux-low.c (linux_emit_ops): New.
17153 (linux_target_ops): Install it.
17154 * linux-low.h (struct linux_target_ops): New field emit_ops.
17155
92b72907
UW
171562010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17157
17158 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17159 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17160
fa593d66
PA
171612010-06-01 Pedro Alves <pedro@codesourcery.com>
17162 Stan Shebs <stan@codesourcery.com>
17163
17164 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17165 (all): Depend on $(extra_libraries).
17166 (install-only): Install the IPA.
17167 (IPA_OBJS, IPA_LIB): New.
17168 (clean): Remove the IPA lib.
17169 (IPAGENT_CFLAGS): New.
17170 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17171 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17172 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17173 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17174 * configure.ac: Check for atomic builtins support in the compiler.
17175 (IPA_DEPFILES, extra_libraries): Define.
17176 * configure.srv (ipa_obj): Add description.
17177 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17178 (i[34567]86-*-linux*): Set ipa_obj.
17179 (x86_64-*-linux*): Set ipa_obj.
17180 * linux-low.c (stabilizing_threads): New.
17181 (supports_fast_tracepoints): New.
17182 (linux_detach): Stabilize threads before detaching.
17183 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17184 the lwp is either not stabilizing, or is moving out of a jump pad.
17185 (linux_fast_tracepoint_collecting): New.
17186 (maybe_move_out_of_jump_pad): New.
17187 (enqueue_one_deferred_signal): New.
17188 (dequeue_one_deferred_signal): New.
17189 (linux_wait_for_event_1): If moving out of a jump pad, defer
17190 pending signals to later.
17191 (linux_stabilize_threads): New.
17192 (linux_wait_1): Check if threads need moving out of jump pads, and
17193 do it if so.
17194 (stuck_in_jump_pad_callback): New.
17195 (move_out_of_jump_pad_callback): New.
17196 (lwp_running): New.
17197 (linux_resume_one_lwp): Handle moving out of jump pads.
17198 (linux_set_resume_request): Dequeue deferred signals.
17199 (need_step_over_p): Also step over fast tracepoint jumps.
17200 (start_step_over): Also uninsert fast tracepoint jumps.
17201 (finish_step_over): Also reinsert fast tracepoint jumps.
17202 (linux_install_fast_tracepoint_jump): New.
17203 (linux_target_ops): Install linux_stabilize_threads and
17204 linux_install_fast_tracepoint_jump_pad.
17205 * linux-low.h (linux_target_ops) <get_thread_area,
17206 install_fast_tracepoint_jump_pad>: New fields.
17207 (struct lwp_info) <collecting_fast_tracepoint,
17208 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17209 (linux_get_thread_area): Declare.
17210 * linux-x86-low.c (jump_insn): New.
17211 (x86_get_thread_area): New.
17212 (append_insns): New.
17213 (push_opcode): New.
17214 (amd64_install_fast_tracepoint_jump_pad): New.
17215 (i386_install_fast_tracepoint_jump_pad): New.
17216 (x86_install_fast_tracepoint_jump_pad): New.
17217 (the_low_target): Install x86_get_thread_area and
17218 x86_install_fast_tracepoint_jump_pad.
17219 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17220 (struct fast_tracepoint_jump): New.
17221 (fast_tracepoint_jump_insn): New.
17222 (fast_tracepoint_jump_shadow): New.
17223 (find_fast_tracepoint_jump_at): New.
17224 (fast_tracepoint_jump_here): New.
17225 (delete_fast_tracepoint_jump): New.
17226 (set_fast_tracepoint_jump): New.
17227 (uninsert_fast_tracepoint_jumps_at): New.
17228 (reinsert_fast_tracepoint_jumps_at): New.
17229 (set_breakpoint_at): Use write_inferior_memory.
17230 (uninsert_raw_breakpoint): Use write_inferior_memory.
17231 (check_mem_read): Mask out fast tracepoint jumps.
17232 (check_mem_write): Mask out fast tracepoint jumps.
17233 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17234 (set_fast_tracepoint_jump): Declare.
17235 (delete_fast_tracepoint_jump)
17236 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17237 (reinsert_fast_tracepoint_jumps_at): Declare.
17238 * regcache.c: Don't compile many functions when building the
17239 in-process agent library.
17240 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17241 the register buffer in the heap.
17242 (free_register_cache): If the register buffer isn't owned by the
17243 regcache, don't free it.
17244 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17245 pre-existing register caches.
17246 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17247 type.
17248 (convert_ascii_to_int): : Constify `from' parameter type.
17249 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17250 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17251 the needed buffer in-place.
17252 (relocate_instruction): New.
17253 * server.c (handle_query) <qSymbols>: If the target supports
17254 tracepoints, give it a chance of looking up symbols. Report
17255 support for fast tracepoints.
17256 (handle_status): Stabilize threads.
17257 (process_serial_event): Adjust.
17258 * server.h (struct fast_tracepoint_jump): Forward declare.
17259 (struct process_info) <fast_tracepoint_jumps>: New field.
17260 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17261 (decode_X_packet, decode_M_packet): Adjust.
17262 (relocate_instruction): Declare.
17263 (in_process_agent_loaded): Declare.
17264 (tracepoint_look_up_symbols): Declare.
17265 (struct fast_tpoint_collect_status): Declare.
17266 (fast_tracepoint_collecting): Declare.
17267 (force_unlock_trace_buffer): Declare.
17268 (handle_tracepoint_bkpts): Declare.
17269 (initialize_low_tracepoint)
17270 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17271 * target.h (struct target_ops) <stabilize_threads,
17272 install_fast_tracepoint_jump_pad>: New fields.
17273 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17274 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17275 [HAVE_STDINT_H]: Include stdint.h.
17276 (trace_debug_1): Rename to ...
17277 (trace_vdebug): ... this.
17278 (trace_debug): Rename to ...
17279 (trace_debug_1): ... this. Add `level' parameter.
17280 (trace_debug): New.
17281 (ATTR_USED, ATTR_NOINLINE): New.
17282 (IP_AGENT_EXPORT): New.
17283 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17284 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17285 (about_to_request_buffer_space, trace_buffer_is_full)
17286 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17287 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17288 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17289 (traceframe_write_count, traceframes_created)
17290 (trace_state_variables)
17291 New renaming defines.
17292 (struct ipa_sym_addresses): New.
17293 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17294 (symbol_list): New.
17295 (ipa_sym_addrs): New.
17296 (all_tracepoint_symbols_looked_up): New.
17297 (in_process_agent_loaded): New.
17298 (write_e_ipa_not_loaded): New.
17299 (maybe_write_ipa_not_loaded): New.
17300 (tracepoint_look_up_symbols): New.
17301 (debug_threads) [IN_PROCESS_AGENT]: New.
17302 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17303 (UNKNOWN_SIDE_EFFECTS): New.
17304 (stop_tracing): New.
17305 (flush_trace_buffer): New.
17306 (stop_tracing_bkpt): New.
17307 (flush_trace_buffer_bkpt): New.
17308 (read_inferior_integer): New.
17309 (read_inferior_uinteger): New.
17310 (read_inferior_data_pointer): New.
17311 (write_inferior_data_pointer): New.
17312 (write_inferior_integer): New.
17313 (write_inferior_uinteger): New.
17314 (struct collect_static_trace_data_action): Delete.
17315 (enum tracepoint_type): New.
17316 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17317 <actions_str, step_actions, step_actions_str>: Only include in
17318 GDBserver.
fa593d66
PA
17319 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17320 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17321 (tracepoints): Use IP_AGENT_EXPORT.
17322 (last_tracepoint): Don't include in the IPA.
17323 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17324 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17325 (alloced_trace_state_variables): New.
17326 (trace_state_variables): Use IP_AGENT_EXPORT.
17327 (traceframe_t): Delete unused variable.
17328 (circular_trace_buffer): Don't include in the IPA.
17329 (trace_buffer_start): Delete.
17330 (struct trace_buffer_control): New.
17331 (trace_buffer_free): Delete.
17332 (struct ipa_trace_buffer_control): New.
17333 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17334 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17335 New.
17336 (trace_buffer_ctrl): New.
17337 (TRACE_BUFFER_CTRL_CURR): New.
17338 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17339 Reimplement as macros.
17340 (trace_buffer_wrap): Delete.
17341 (traceframe_write_count, traceframe_read_count)
17342 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17343 (struct tracepoint_hit_ctx) <type>: New field.
17344 (struct fast_tracepoint_ctx): New.
17345 (memory_barrier): New.
17346 (cmpxchg): New.
17347 (record_tracepoint_error): Update atomically in the IPA.
17348 (clear_inferior_trace_buffer): New.
17349 (about_to_request_buffer_space): New.
17350 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17351 updating the same buffer.
17352 (add_tracepoint): Default the tracepoint's type to trap
17353 tracepoint, and orig_size to -1.
17354 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17355 internal variables.
17356 (create_trace_state_variable): New parameter `gdb'. Handle it.
17357 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17358 (cmd_qtdp): Handle fast tracepoints.
17359 (cmd_qtdv): Adjust.
17360 (max_jump_pad_size): New.
17361 (gdb_jump_pad_head): New.
17362 (get_jump_space_head): New.
17363 (claim_jump_space): New.
17364 (sort_tracepoints): New.
17365 (MAX_JUMP_SIZE): New.
17366 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17367 IPA.
17368 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17369 support. Upload fast traceframes, and delete internal IPA
17370 breakpoints.
17371 (stop_tracing_handler): New.
17372 (flush_trace_buffer_handler): New.
17373 (cmd_qtstop): Upload fast tracepoints.
17374 (response_tracepoint): Handle fast tracepoints.
17375 (tracepoint_finished_step): Upload fast traceframes. Set the
17376 tracepoint hit context's tracepoint type.
17377 (handle_tracepoint_bkpts): New.
17378 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17379 type. Add comment about fast tracepoints.
17380 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17381 non-existing action_str field.
17382 (get_context_regcache): Handle fast tracepoints.
17383 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17384 to the regcache.
17385 (fast_tracepoint_from_jump_pad_address): New.
17386 (fast_tracepoint_from_ipa_tpoint_address): New.
17387 (collecting_t): New.
17388 (force_unlock_trace_buffer): New.
17389 (fast_tracepoint_collecting): New.
17390 (collecting): New.
17391 (gdb_collect): New.
17392 (write_inferior_data_ptr): New.
17393 (target_tp_heap): New.
17394 (target_malloc): New.
17395 (download_agent_expr): New.
17396 (UALIGN): New.
17397 (download_tracepoints): New.
17398 (download_trace_state_variables): New.
17399 (upload_fast_traceframes): New.
17400 (IPA_FIRST_TRACEFRAME): New.
17401 (IPA_NEXT_TRACEFRAME_1): New.
17402 (IPA_NEXT_TRACEFRAME): New.
17403 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17404 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17405 (gdb_jump_pad_buffer_end): New.
17406 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17407 (initialize_tracepoint): Adjust.
17408 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17409 buffer. Initialize the low module.
17410 * utils.c (PREFIX, TOOLNAME): New.
17411 (malloc_failure): Use PREFIX.
17412 (error): In the IPA, an error causes an exit.
17413 (fatal, warning): Use PREFIX.
17414 (internal_error): Use TOOLNAME.
17415 (NUMCELLS): Increase to 10.
17416 * configure, config.in: Regenerate.
17417
d149dd1d
PA
174182010-06-01 Pedro Alves <pedro@codesourcery.com>
17419
17420 * server.c (handle_query) <qSupported>: Do two passes over the
17421 qSupported string to avoid nesting strtok.
17422
f6528abd
JK
174232010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17424
17425 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17426 (CDEPS): New.
17427 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17428 -Wl,--dynamic-list.
17429 * configure: Regenerate.
17430 * proc-service.list: New.
17431
ca2a87a0
JK
174322010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17433
17434 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17435 New comment.
17436
363a6e9f
OS
174372010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17438
17439 * gdbreplay.c (remote_open): Check error return from socket() call by
17440 its equality to -1 not by it being negative.
17441 * remote-utils.c (remote_open): Likewise.
17442
d23b6cb1
PA
174432010-05-23 Pedro Alves <pedro@codesourcery.com>
17444
17445 * config.h: Regenerate.
17446
28d3cf85
MK
174472010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17448
17449 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17450 doesn't provide PTRACE_GET_THREAD_AREA.
17451
fea36a59
MK
174522010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17453
17454 * linux-m68k-low.c: Include <asm/ptrace.h>
17455 (ps_get_thread_area): Implement.
17456
24b066ba
DE
174572010-05-03 Doug Evans <dje@google.com>
17458
17459 * event-loop.c (struct callback_event): New struct.
17460 (callback_list): New global.
17461 (append_callback_event, delete_callback_event): New functions.
17462 (process_callback): New function.
17463 (start_event_loop): Call it.
17464 * remote-utils.c (NOT_SCHEDULED): Define.
17465 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17466 moved out of readchar.
17467 (readchar): Rewrite. Call reschedule before returning.
17468 (reset_readchar): New function.
17469 (remote_close): Call it.
17470 (process_remaining, reschedule): New functions.
17471 * server.h (callback_handler_func): New typedef.
17472 (append_callback_event, delete_callback_event): Declare.
17473
9836d6ea
PA
174742010-05-03 Pedro Alves <pedro@codesourcery.com>
17475
17476 * proc-service.c (ps_pglobal_lookup): Use
17477 thread_db_look_up_one_symbol.
17478 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17479 parameter. Use it instead of all_symbols_looked_up.
17480 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17481 field.
17482 (all_symbols_looked_up): Don't declare.
17483 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17484 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17485 field.
17486 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17487 Set all_symbols_looked_up here.
17488 (thread_db_look_up_one_symbol): New.
17489 (thread_db_get_tls_address): Adjust.
17490 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17491 thread_db object on the heap, and tentatively set it in the
17492 process structure.
17493 (thread_db_init): Don't set all_symbols_looked_up here.
17494 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17495
7984d532
PA
174962010-05-03 Pedro Alves <pedro@codesourcery.com>
17497
17498 * linux-low.c (linux_kill, linux_detach): Adjust.
17499 (status_pending_p_callback): Remove redundant statement. Check
17500 for !TARGET_WAITIKIND_IGNORE, instead of
17501 TARGET_WAITKIND_STOPPED.
17502 (handle_tracepoints): Make sure LWP is locked. Adjust.
17503 (linux_wait_for_event_1): Adjust.
17504 (linux_cancel_breakpoints): New.
17505 (unsuspend_one_lwp): New.
17506 (unsuspend_all_lwps): New.
17507 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17508 (send_sigstop_callback): Change return type to int, add new
17509 `except' parameter and handle it.
17510 (suspend_and_send_sigstop_callback): New.
17511 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17512 pass them down. If SUSPEND, also increment the lwp's suspend
17513 count.
17514 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17515 (need_step_over_p): Don't consider suspended LWPs.
17516 (start_step_over): Adjust.
17517 (proceed_one_lwp): Change return type to int, add new `except'
17518 parameter and handle it.
17519 (unsuspend_and_proceed_one_lwp): New.
17520 (proceed_all_lwps): Use find_inferior instead of
17521 for_each_inferior.
17522 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17523 also decrement the suspend count of LWPs. Pass `except' down,
17524 instead of hacking its suspend count.
17525 (linux_pause_all): Add `freeze' parameter. Adjust.
17526 (linux_unpause_all): New.
17527 (linux_target_ops): Install linux_unpause_all.
17528 * server.c (handle_status): Adjust.
17529 * target.h (struct target_ops): New fields `unpause_all' and
17530 `cancel_breakpoints'. Add new parameter to `pause_all'.
17531 (pause_all): Add new `freeze' parameter.
17532 (unpause_all): New.
17533 (cancel_breakpoints): New.
17534 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17535 cancel breakpoints.
17536 (cmd_qtstart): Pause threads.
17537 (stop_tracing): Pause threads, and cancel breakpoints.
17538 * win32-low.c (win32_target_ops): Adjust.
17539
e471f25b
PA
175402010-05-03 Pedro Alves <pedro@codesourcery.com>
17541
17542 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17543 the inferior right away from here...
17544 (linux_wait_1): ... to here, and adjust to check the thread's
17545 last_resume_kind instead of the lwp's step or stop_expected flags.
17546
1915ef4f
PA
175472010-05-02 Pedro Alves <pedro@codesourcery.com>
17548
17549 * README: Use consistent `GDB' and `GDBserver' spellings.
17550
f9e39928
PA
175512010-05-02 Pedro Alves <pedro@codesourcery.com>
17552
17553 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17554 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17555 (linux_detach_one_lwp): Assume the lwp is stopped.
17556 (any_thread_of): Delete.
17557 (linux_detach): Stop all lwps here. Don't blindly delete all
17558 breakpoints.
17559 (delete_lwp_callback): New.
17560 (linux_mourn): Delete all lwps of the process that is gone.
17561 (linux_wait_1): Don't delete the last lwp of the process here.
17562 * mem-break.h (mark_breakpoints_out): Declare.
17563 * mem-break.c (mark_breakpoints_out): New.
17564 (free_all_breakpoints): Use it.
17565 * server.c (handle_target_event): If the process is gone, mark
17566 breakpoints out.
17567 * thread-db.c (struct thread_db) <create_bp>: New field.
17568 (thread_db_enable_reporting): Fix prototype. Store a thread event
17569 breakpoint reference in the thread_db struct.
17570 (thread_db_load_search): Clear the thread_db object.
17571 (try_thread_db_load_1): Ditto.
17572 (switch_to_process): New.
17573 (disable_thread_event_reporting): Use it.
17574 (remove_thread_event_breakpoints): New.
17575 (thread_db_detach, thread_db_mourn): Use it.
17576
1e7fc18c
PA
175772010-05-01 Pedro Alves <pedro@codesourcery.com>
17578
17579 * linux-low.c (linux_enable_event_reporting): New.
17580 (linux_wait_for_event_1, handle_extended_wait): Use it.
17581
02fc4de7
PA
175822010-04-30 Pedro Alves <pedro@codesourcery.com>
17583
17584 * linux-low.c (linux_kill_one_lwp, linux_kill)
17585 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17586 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17587 SIGSTOP even if the LWP is stopped.
17588 (send_sigstop_callback): New.
17589 (stop_all_lwps): Use send_sigstop_callback instead.
17590 (linux_resume_one_thread): Adjust.
17591 (proceed_one_lwp): Still proceed an LWP that the client has
17592 requested to stop, if we haven't reported it as stopped yet. Make
17593 sure that LWPs the client want stopped, have a pending SIGSTOP.
17594
bc3b5632
DE
175952010-04-26 Doug Evans <dje@google.com>
17596
ae1ada35
DE
17597 * server.c (handle_general_set): Make static.
17598
bc3b5632
DE
17599 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17600 Print received char after testing for error/eof instead of before.
17601 (input_interrupt): Tweak comment.
17602
65730243
DE
176032010-04-23 Doug Evans <dje@google.com>
17604
17605 * server.c (start_inferior): Print inferior argv if --debug.
17606
a8ae7dc0
AR
176072010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17608
17609 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17610 * nto-x86-low.c: Include server.h
17611
1c07cc19
PM
176122010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17613
17614 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17615 be consistent with other sources of this directory.
17616 (init_registers_amd64): Correct name of source file of this function
17617 in the comment.
17618
e0a61e09
PM
176192010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17620
17621 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17622 64-bit executables.
17623
54709339
PM
176242010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17625
17626 * win32-i386-low.c: Add 64-bit support.
17627 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17628 (init_registers_amd64): Declare.
17629 (mappings): Add 64-bit version of array.
17630 (init_windows_x86): New function.
17631 (the_low_target): Change init_arch field to init_windows_x86.
17632
e8f0053d
PM
176332010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17634
17635 * win32-low.c: Adapt to support also 64-bit architecture.
17636 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17637 (get_image_name): Use SIZE_T type for local variable `done'.
17638 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17639 (toolhelp_get_dll_name): Idem.
17640 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17641 Use uintptr_t typecast to avoid warning.
17642 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17643 (handle_exception): Use phex_nz to avoid warning.
17644 (win32_wait): Remove unused local variable `process'.
17645
c481e77e
PM
176462010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17647
17648 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17649 `amd64-avx.o'.
17650
12ea4b69
PM
176512010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17652
17653 * configure.ac: Use `ws2_32' library for srv_mingw.
17654 * configure: Regenerate.
17655 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17656 * remote-utils.c: Likewise.
17657
f6d1620c
L
176582010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17659
17660 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17661 if __x86_64__ is defined.
17662
8e642873
PM
176632010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17664
17665 * configure: Regenerate.
17666
711e434b
PM
176672010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17668
17669 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17670 * target.h (target_ops): New get_tib_address field.
17671 * win32-low.h (win32_thread_info): Add thread_local_base field.
17672 * win32-low.c (child_add_thread): Add tlb argument.
17673 Set thread_local_base field to TLB.
17674 (get_child_debug_event): Adapt to child_add_thread change.
17675 (win32_get_tib_address): New function.
17676 (win32_target_ops): Set get_tib_address field to
17677 win32_get_tib_address.
17678 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17679
505106cd
PA
176802010-04-12 Pedro Alves <pedro@codesourcery.com>
17681
505106cd
PA
17682 * linux-low.c (linux_mourn): Also remove the process.
17683 * server.c (handle_target_event): Don't remove the process here.
17684 * nto-low.c (nto_mourn): New.
17685 (nto_target_ops): Install it.
17686 * spu-low.c (spu_mourn): New.
17687 (spu_target_ops): Install it.
17688 * win32-low.c (win32_mourn): New.
17689 (win32_target_ops): Install it.
17690
e8470a06
PA
176912010-04-12 Pedro Alves <pedro@codesourcery.com>
17692
17693 * server.h (buffer_xml_printf): Remove redundant `;'.
17694
45ba0d02
PA
176952010-04-12 Pedro Alves <pedro@codesourcery.com>
17696
17697 * regcache.c (set_register_cache): Invalidate regcaches before
17698 changing the register cache layout.
17699 (regcache_invalidate_one): Allow a NULL regcache.
17700 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17701 regcaches before changing the register cache layout or the target
17702 regsets.
17703
59e04013
L
177042010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17705
17706 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17707 variable warning on Linux/x86-64.
17708
8336d594
PA
177092010-04-11 Pedro Alves <pedro@codesourcery.com>
17710
17711 GDBserver disconnected tracing support.
17712
17713 * linux-low.c (linux_remove_process): Delete.
17714 (add_lwp): Don't set last_resume_kind here.
17715 (linux_kill): Use `mourn'.
17716 (linux_detach): Use `thread_db_detach', and `mourn'.
17717 (linux_mourn): New.
17718 (linux_attach_lwp_1): Adjust comment.
17719 (linux_attach): last_resume_kind moved the thread_info; adjust.
17720 (status_pending_p_callback): Adjust.
17721 (linux_wait_for_event_1): Adjust.
17722 (count_events_callback, select_singlestep_lwp_callback)
17723 (select_event_lwp_callback, cancel_breakpoints_callback)
17724 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17725 (proceed_one_lwp): Adjust.
17726 (linux_async): Add debug output.
17727 (linux_thread_stopped): New.
17728 (linux_pause_all): New.
17729 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17730 linux_pause_all.
17731 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17732 (thread_db_free): Delete declaration.
17733 (thread_db_detach, thread_db_mourn): Declare.
17734 * thread-db.c (thread_db_init): Use thread_db_mourn.
17735 (thread_db_free): Delete, split in two.
17736 (disable_thread_event_reporting): New.
17737 (thread_db_detach): New.
17738 (thread_db_mourn): New.
17739
17740 * server.h (struct thread_info) <last_resume_kind>: New field.
17741 <attached>: Add comment.
17742 <gdb_detached>: New field.
17743 (handler_func): Change return type to int.
17744 (handle_serial_event, handle_target_event): Ditto.
17745 (gdb_connected): Declare.
17746 (tracing): Delete.
17747 (disconnected_tracing): Declare.
17748 (stop_tracing): Declare.
17749
17750 * server.c (handle_query) <qSupported>: Report support for
17751 disconnected tracing.
17752 (queue_stop_reply_callback): Account for running threads.
17753 (gdb_wants_thread_stopped): New.
17754 (gdb_wants_all_threads_stopped): New.
17755 (gdb_reattached_process): New.
17756 (handle_status): Clear the `gdb_detached' flag of all processes.
17757 In all-stop, stop all threads.
17758 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17759 (process_serial_event): If the remote connection breaks, or if an
17760 exit was forced with "monitor exit", force an event loop exit.
17761 Handle disconnected tracing on detach.
17762 (handle_serial_event): Adjust.
17763 (handle_target_event): If GDB isn't connected, forward events back
17764 to the inferior, unless the last process exited, in which case,
17765 exit gdbserver. Adjust interface.
17766
17767 * remote-utils.c (remote_open): Don't block in accept. Instead
17768 register an event loop source on the listen socket file
17769 descriptor. Refactor bits into ...
17770 (listen_desc): ... this new global.
17771 (gdb_connected): ... this new function.
17772 (enable_async_notification): ... this new function.
17773 (handle_accept_event): ... this new function.
17774 (remote_close): Clear remote_desc.
17775
17776 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17777
17778 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17779 New fields.
17780 (mourn_inferior): Define.
17781 (target_process_qsupported): Avoid the dangling else problem.
17782 (thread_stopped): Define.
17783 (pause_all): Define.
17784 (target_waitstatus_to_string): Declare.
17785 * target.c (target_waitstatus_to_string): New.
17786
17787 * tracepoint.c (tracing): Make extern.
17788 (disconnected_tracing): New.
17789 (stop_tracing): Make extern. Handle tracing stops due to GDB
17790 disconnecting.
17791 (cmd_qtdisconnected): New.
17792 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17793 (handle_tracepoint_general_set): Handle QTDisconnected.
17794
17795 * event-loop.c (event_handler_func): Change return type to int.
17796 (process_event): Bail out if the event handler wants the event
17797 loop to stop.
17798 (handle_file_event): Ditto.
17799 (start_event_loop): Bail out if the event handler wants the event
17800 loop to stop.
17801
17802 * nto-low.c (nto_target_ops): Adjust.
17803 * spu-low.c (spu_wait): Don't remove the process here.
17804 (spu_target_ops): Adjust.
17805 * win32-low.c (win32_wait): Don't remove the process here.
17806 (win32_target_ops): Adjust.
17807
5d267c4c
PA
178082010-04-11 Pedro Alves <pedro@codesourcery.com>
17809
17810 * regcache.c (realloc_register_cache): Invalidate inferior's
17811 regcache before recreating it.
17812
623ccd72
PA
178132010-04-09 Pedro Alves <pedro@codesourcery.com>
17814
17815 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17816
219f2f23
PA
178172010-04-09 Stan Shebs <stan@codesourcery.com>
17818 Pedro Alves <pedro@codesourcery.com>
17819
17820 * server.h (LONGEST): New.
17821 (struct thread_info) <while_stepping>: New field.
17822 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17823 Declare.
17824 (initialize_tracepoint, handle_tracepoint_general_set)
17825 (handle_tracepoint_query, tracepoint_finished_step)
17826 (tracepoint_was_hit, release_while_stepping_state_list):
17827 (current_traceframe): Declare.
17828 * server.c (handle_general_set): Handle tracepoint packets.
17829 (read_memory): New.
17830 (write_memory): New.
17831 (handle_search_memory_1): Use read_memory.
17832 (handle_query): Report support for conditional tracepoints, trace
17833 state variables, and tracepoint sources. Handle tracepoint
17834 queries.
17835 (main): Initialize the tracepoints module.
17836 (process_serial_event): Handle traceframe reads/writes.
17837
17838 * linux-low.c (handle_tracepoints): New.
17839 (linux_wait_1): Call it.
17840 (linux_resume_one_lwp): Handle while-stepping.
17841 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17842 (linux_target_ops): Install them.
17843 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17844 New field.
17845 * linux-x86-low.c (x86_supports_tracepoints): New.
17846 (the_low_target). Install it.
17847
17848 * mem-break.h (delete_breakpoint): Declare.
17849 * mem-break.c (delete_breakpoint): Make external.
17850
17851 * target.h (struct target_ops): Add `supports_tracepoints',
17852 `read_pc', and `write_pc' fields.
17853 (target_supports_tracepoints): Define.
17854 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17855 (phex_nz): New.
17856
17857 * regcache.h (struct regcache) <registers_owned>: New field.
17858 (init_register_cache, regcache_cpy): Declare.
17859 (regcache_read_pc, regcache_write_pc): Declare.
17860 (register_cache_size): Declare.
17861 (supply_regblock): Declare.
17862 * regcache.c (init_register_cache): New.
17863 (new_register_cache): Use it.
17864 (regcache_cpy): New.
17865 (register_cache_size): New.
17866 (supply_regblock): New.
17867 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17868
219f2f23
PA
17869 * tracepoint.c: New.
17870
17871 * Makefile.in (OBS): Add tracepoint.o.
17872 (tracepoint.o): New rule.
17873
3a13a53b
L
178742010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17875
17876 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17877 (i386-mmx.o): New.
17878 (i386-mmx.c): Likewise.
17879 (i386-mmx-linux.o): Likewise.
17880 (i386-mmx-linux.c): Likewise.
17881
17882 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17883 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17884 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17885 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17886
17887 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17888 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17889 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17890
1570b33e
L
178912010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17892
17893 * Makefile.in (clean): Updated.
17894 (i386-avx.o): New.
17895 (i386-avx.c): Likewise.
17896 (i386-avx-linux.o): Likewise.
17897 (i386-avx-linux.c): Likewise.
17898 (amd64-avx.o): Likewise.
17899 (amd64-avx.c): Likewise.
17900 (amd64-avx-linux.o): Likewise.
17901 (amd64-avx-linux.c): Likewise.
17902
17903 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17904 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17905 (srv_amd64_regobj): Add amd64-avx.o.
17906 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17907 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17908 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17909 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17910 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17911 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17912 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17913
17914 * i387-fp.c: Include "i386-xstate.h".
17915 (i387_xsave): New.
17916 (i387_cache_to_xsave): Likewise.
17917 (i387_xsave_to_cache): Likewise.
17918 (x86_xcr0): Likewise.
17919
17920 * i387-fp.h (i387_cache_to_xsave): Likewise.
17921 (i387_xsave_to_cache): Likewise.
17922 (x86_xcr0): Likewise.
17923
17924 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17925 * linux-crisv32-low.c (target_regsets): Likewise.
17926 * linux-m68k-low.c (target_regsets): Likewise.
17927 * linux-mips-low.c (target_regsets): Likewise.
17928 * linux-ppc-low.c (target_regsets): Likewise.
17929 * linux-s390-low.c (target_regsets): Likewise.
17930 * linux-sh-low.c (target_regsets): Likewise.
17931 * linux-sparc-low.c (target_regsets): Likewise.
17932 * linux-xtensa-low.c (target_regsets): Likewise.
17933
17934 * linux-low.c: Include <sys/uio.h>.
17935 (regsets_fetch_inferior_registers): Support nt_type.
17936 (regsets_store_inferior_registers): Likewise.
17937 (linux_process_qsupported): New.
17938 (linux_target_ops): Add linux_process_qsupported.
17939
17940 * linux-low.h (regset_info): Add nt_type.
17941 (linux_target_ops): Add process_qsupported.
17942
17943 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17944 and <sys/uio.h>.
17945 (init_registers_i386_avx_linux): New.
17946 (init_registers_amd64_avx_linux): Likewise.
17947 (xmltarget_i386_linux_no_xml): Likewise.
17948 (xmltarget_amd64_linux_no_xml): Likewise.
17949 (PTRACE_GETREGSET): Likewise.
17950 (PTRACE_SETREGSET): Likewise.
17951 (x86_fill_xstateregset): Likewise.
17952 (x86_store_xstateregset): Likewise.
17953 (use_xml): Likewise.
17954 (x86_linux_update_xmltarget): Likewise.
17955 (x86_linux_process_qsupported): Likewise.
17956 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17957 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17958 init_registers_i386_linux here. Call
17959 x86_linux_update_xmltarget.
17960 (the_low_target): Add x86_linux_process_qsupported.
17961
17962 * server.c (handle_query): Call target_process_qsupported.
17963
17964 * target.h (target_ops): Add process_qsupported.
17965 (target_process_qsupported): New.
17966
fc7238bb
PA
179672010-04-03 Pedro Alves <pedro@codesourcery.com>
17968
17969 * inferiors.c (add_thread): Set last_status kind to
17970 TARGET_WAITKIND_IGNORE.
17971 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17972 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17973 (linux_wait_1): Move `thread' local definition to block that uses
17974 it. Don't NULL initialize `event_child'.
17975 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17976 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17977 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17978
bdabb078
PA
179792010-04-01 Pedro Alves <pedro@codesourcery.com>
17980
17981 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17982 an extended waitstatus, or by a watchpoint.
17983 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17984 thread was stepping or has been stopped by a watchpoint.
17985
d3bbe7a0
PA
179862010-04-01 Pedro Alves <pedro@codesourcery.com>
17987
17988 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17989 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17990 of another, then delete the previous, and validate all
17991 breakpoints.
17992 (validate_inserted_breakpoint): New.
17993 (delete_disabled_breakpoints): New.
17994 (validate_breakpoints): New.
17995 (check_mem_read): Validate breakpoints before trusting their
17996 shadow. Delete disabled breakpoints.
17997 (check_mem_write): Validate breakpoints before trusting they
17998 should be inserted. Delete disabled breakpoints.
17999 * mem-break.h (validate_breakpoints):
18000 * server.c (handle_query): Validate breakpoints when we see a
18001 qSymbol query.
18002
8b07ae33
PA
180032010-04-01 Pedro Alves <pedro@codesourcery.com>
18004
18005 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18006 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18007 if we could tell there's a GDB breakpoint at stop_pc.
18008 (need_step_over_p): Don't do a step over if we find a GDB
18009 breakpoint at the resume PC.
18010
18011 * mem-break.c (struct raw_breakpoint): New.
18012 (enum bkpt_type): New type `gdb_breakpoint'.
18013 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18014 fields. New field `raw'.
18015 (find_raw_breakpoint_at): New.
18016 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18017 breakpoint instead.
18018 (set_breakpoint_at): Adjust.
18019 (delete_raw_breakpoint): New.
18020 (release_breakpoint): New.
18021 (delete_breakpoint): Rename to...
18022 (delete_breakpoint_1): ... this. Add proc parameter. Use
18023 release_breakpoint. Return ENOENT.
18024 (delete_breakpoint): Reimplement.
18025 (find_breakpoint_at): Delete.
18026 (find_gdb_breakpoint_at): New.
18027 (delete_breakpoint_at): Delete.
18028 (set_gdb_breakpoint_at): New.
18029 (delete_gdb_breakpoint_at): New.
18030 (gdb_breakpoint_here): New.
18031 (set_reinsert_breakpoint): Use release_breakpoint.
18032 (uninsert_breakpoint): Rename to ...
18033 (uninsert_raw_breakpoint): ... this.
18034 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18035 (reinsert_raw_breakpoint): Change parameter type to
18036 raw_breakpoint.
18037 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18038 instead.
18039 (check_breakpoints): Adjust. Use release_breakpoint.
18040 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18041 (breakpoint_inserted_here): Ditto.
18042 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18043 Don't trust the breakpoint's shadow if it is not inserted.
18044 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18045 (delete_all_breakpoints): Adjust.
18046 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18047 use delete_breakpoint_1.
18048
18049 * mem-break.h (breakpoints_supported): Delete declaration.
18050 (set_gdb_breakpoint_at): Declare.
18051 (gdb_breakpoint_here): Declare.
18052 (delete_breakpoint_at): Delete.
18053 (delete_gdb_breakpoint_at): Declare.
18054
18055 * server.h (struct raw_breakpoint): Forward declare.
18056 (struct process_info): New field `raw_breakpoints'.
18057
18058 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18059 breakpoints.
18060
6bf5e0ba
PA
180612010-03-24 Pedro Alves <pedro@codesourcery.com>
18062
18063 * linux-low.c (status_pending_p_callback): Fix comment.
18064 (linux_wait_for_event_1): Move most of the internal breakpoint
18065 handling from here...
18066 (linux_wait_1): ... to here.
18067 (count_events_callback): New.
18068 (select_singlestep_lwp_callback): New.
18069 (select_event_lwp_callback): New.
18070 (cancel_breakpoints_callback): New.
18071 (select_event_lwp): New.
18072 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18073 priority to all LWPs that have had events that should be reported
18074 to the client. Cancel breakpoints when about to reporting the
18075 event to the client, not while stopping lwps. No longer cancel
18076 finished single-steps here.
18077 (cancel_finished_single_step): Delete.
18078 (cancel_finished_single_steps): Delete.
18079
414a389f
PA
180802010-03-24 Pedro Alves <pedro@codesourcery.com>
18081
18082 * mem-break.c (enum bkpt_type): New.
18083 (struct breakpoint): New field `type'.
18084 (set_breakpoint_at): Change return type to struct breakpoint
18085 pointer. Set type to `other_breakpoint' by default.
18086 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18087 in the breakpoint list.
18088 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18089 (reinsert_breakpoint): Rename to ...
18090 (reinsert_raw_breakpoint): ... this.
18091 (reinsert_breakpoints_at): Adjust.
18092 * mem-break.h (struct breakpoint): Declare.
18093 (set_breakpoint_at): Change return type to struct breakpoint
18094 pointer.
18095
2280c721
PA
180962010-03-24 Pedro Alves <pedro@codesourcery.com>
18097
18098 * server.c (handle_query): Assign, not compare.
18099
d50171e4
PA
181002010-03-24 Pedro Alves <pedro@codesourcery.com>
18101
18102 Teach linux gdbserver to step-over-breakpoints.
18103
18104 * linux-low.c (can_hardware_single_step): New.
18105 (supports_breakpoints): New.
18106 (handle_extended_wait): If stopping threads, read the stop pc of
18107 the new cloned LWP.
18108 (get_pc): New.
18109 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18110 low target doesn't support retrieving the PC.
18111 (add_lwp): Set last_resume_kind to resume_continue.
18112 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18113 (linux_attach): Don't clear stop_expected. Set the lwp's
18114 last_resume_kind to resume_stop.
18115 (linux_detach_one_lwp): Don't check for removed breakpoints.
18116 (check_removed_breakpoint): Delete.
18117 (status_pending_p): Rename to ...
18118 (status_pending_p_callback): ... this. Don't check for removed
18119 breakpoints. Don't consider threads that are stopped from GDB's
18120 perspective.
18121 (linux_wait_for_lwp): Always read the stop_pc here.
18122 (cancel_breakpoint): New.
18123 (step_over_bkpt): New global.
18124 (linux_wait_for_event_1): Implement stepping over breakpoints.
18125 (gdb_wants_lwp_stopped): New.
18126 (gdb_wants_all_stopped): New.
18127 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18128 single-step traps here. Store the thread's last reported target
18129 wait status.
18130 (send_sigstop): Don't clear stop_expected. Always set it,
18131 instead.
18132 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18133 (cancel_finished_single_step): New.
18134 (cancel_finished_single_steps): New.
18135 (wait_for_sigstop): Don't cancel finished single-step traps here.
18136 (linux_resume_one_lwp): Don't check for removed breakpoints.
18137 Don't set `step' on non-hardware step archs.
18138 (linux_set_resume_request): Ignore resume_stop requests if already
18139 stopping or stopped. Set the lwp's last_resume_kind.
18140 (resume_status_pending_p): Don't check for removed breakpoints.
18141 (need_step_over_p): New.
18142 (start_step_over): New.
18143 (finish_step_over): New.
18144 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18145 requests. Clear the thread's last reported target waitstatus.
18146 Don't use the `suspended' flag. Don't consider pending breakpoints.
18147 (linux_resume): Start a step-over if necessary.
18148 (proceed_one_lwp): New.
18149 (proceed_all_lwps): New.
18150 (unstop_all_lwps): New.
18151 * linux-low.h (struct lwp_info): Rewrite comment for the
18152 `suspended' flag. Add the `stop_pc' field. Delete the
18153 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18154 Add `'last_resume_kind' and `need_step_over' fields.
18155 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18156 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18157 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18158 (set_raw_breakpoint_at): New.
18159 (set_breakpoint_at): Rewrite to use it.
18160 (reinsert_breakpoint_handler): Delete.
18161 (set_reinsert_breakpoint): New.
18162 (reinsert_breakpoint_by_bp): Delete.
18163 (delete_reinsert_breakpoints): New.
18164 (uninsert_breakpoint): Rewrite.
18165 (uninsert_breakpoints_at): New.
18166 (reinsert_breakpoint): Rewrite.
18167 (reinsert_breakpoints_at): New.
18168 (check_breakpoints): Rewrite.
18169 (breakpoint_here): New.
18170 (breakpoint_inserted_here): New.
18171 (check_mem_read): Adjust.
18172 * mem-break.h (breakpoints_supported, breakpoint_here)
18173 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18174 (reinsert_breakpoint_by_bp): Delete declaration.
18175 (delete_reinsert_breakpoints): Declare.
18176 (reinsert_breakpoint): Delete declaration.
18177 (reinsert_breakpoints_at): Declare.
18178 (uninsert_breakpoint): Delete declaration.
18179 (uninsert_breakpoints_at): Declare.
18180 (check_breakpoints): Adjust prototype.
18181 * server.h: Adjust include order.
18182 (struct thread_info): Declare here. Add a `last_status' field.
18183
30ba68cb
MS
181842010-03-23 Michael Snyder <msnyder@vmware.com>
18185
18186 * server.c (crc32): New function.
18187 (handle_query): Add handling for 'qCRC:' request.
18188
b9a881c2
PA
181892010-03-23 Pedro Alves <pedro@codesourcery.com>
18190
18191 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18192 lwp had been stopped by a watchpoint.
18193
e92d13d5
PA
181942010-03-16 Pedro Alves <pedro@codesourcery.com>
18195
18196 * server.h (internal_error): Declare.
18197 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18198 * utils.c (internal_error): New function.
18199
64daa791
AS
182002010-03-15 Andreas Schwab <schwab@redhat.com>
18201
18202 * configure.srv: Fix typo setting srv_regobj.
18203
f52cd8cd
PA
182042010-03-15 Pedro Alves <pedro@codesourcery.com>
18205
18206 * linux-low.c (fetch_register): Avoid passing a non string literal
18207 format to `error'.
18208 (usr_store_inferior_registers): Ditto.
18209
93ae6fdc
PA
182102010-03-14 Pedro Alves <pedro@codesourcery.com>
18211
18212 * linux-low.c (linux_write_memory): Bail out early if peeking
18213 memory failed.
18214
c3adc08c
PA
182152010-03-14 Pedro Alves <pedro@codesourcery.com>
18216
18217 * linux-low.h (struct lwp_info): New fields
18218 `stopped_by_watchpoint' and `stopped_data_address'.
18219 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18220 here, and cache them in the lwp object.
18221 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18222 directly.
18223 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18224 field.
18225 (linux_stopped_by_watchpoint): Rewrite.
18226 (linux_stopped_data_address): Rewrite.
18227
bce522a2
PA
182282010-03-06 Simo Melenius <simo.melenius@iki.fi>
18229
18230 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18231 switching the current inferior, not before.
18232
90884b2b
L
182332010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18234
18235 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18236 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18237 i386-linux.c and amd64-linux.c.
18238 (reg-i386.o): Removed.
18239 (reg-i386.c): Likewise.
18240 (reg-i386-linux.o): Likewise.
18241 (reg-i386-linux.c): Likewise.
18242 (reg-x86-64.o): Likewise.
18243 (reg-x86-64.c): Likewise.
18244 (reg-x86-64-linux.o): Likewise.
18245 (reg-x86-64-linux.c): Likewise.
18246 (i386.o): New.
18247 (i386.c): Likewise.
18248 (i386-linux.o): Likewise.
18249 (i386-linux.c): Likewise.
18250 (amd64.o): Likewise.
18251 (amd64.c): Likewise.
18252 (amd64-linux.o): Likewise.
18253 (amd64-linux.c): Likewise.
18254
18255 * configure.srv (srv_i386_regobj): New.
18256 (srv_i386_linux_regobj): Likewise.
18257 (srv_amd64_regobj): Likewise.
18258 (srv_amd64_linux_regobj): Likewise.
18259 (srv_i386_32bit_xmlfiles): Likewise.
18260 (srv_i386_64bit_xmlfiles): Likewise.
18261 (srv_i386_xmlfiles): Likewise.
18262 (srv_amd64_xmlfiles): Likewise.
18263 (srv_i386_linux_xmlfiles): Likewise.
18264 (srv_amd64_linux_xmlfiles): Likewise.
18265 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18266 srv_xmlfiles to $srv_i386_xmlfiles.
18267 (i[34567]86-*-mingw32ce*): Likewise.
18268 (i[34567]86-*-mingw*): Likewise.
18269 (i[34567]86-*-nto*): Likewise.
18270 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18271 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18272 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18273 (x86_64-*-linux*): Likewise.
18274
18275 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18276 (init_registers_amd64_linux): New.
18277 (x86_arch_setup): Replace init_registers_x86_64_linux with
18278 init_registers_amd64_linux.
18279
193f13e6
MK
182802010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18281
18282 * configure.ac: Check for libdl. If it is not available link against
18283 static libthread_db.
18284 * configure: Regenerate.
18285
85d721b8
PA
182862010-02-22 Pedro Alves <pedro@codesourcery.com>
18287
18288 PR9605
18289
18290 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18291 handing a read watchpoint.
18292 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18293
6076632b
DE
182942010-02-12 Doug Evans <dje@google.com>
18295
18296 * linux-low.c (linux_supports_tracefork_flag): Document.
18297 (linux_look_up_symbols): Add comment.
18298
3327ccf7
L
182992010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18300
18301 * regcache.c (supply_register): Clear regcache if buf is NULL.
18302
0718675c 183032010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18304 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18305
18306 * inferiors.c (find_inferior): Add function documentation.
18307 (unloaded_dll): Handle the case where the unloaded dll has not
18308 been previously registered in the dll list.
18309
177321bd
DJ
183102010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18311
18312 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18313 (thumb2_breakpoint): New.
18314 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18315
2b009048
DJ
183162010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18317
18318 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18319 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18320 breakpoints.
18321
3be029c7
PA
183222010-01-21 Pedro Alves <pedro@codesourcery.com>
18323
18324 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18325
18f5de3b
JK
183262010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18327
18328 * linux-s390-low.c (s390_collect_ptrace_register)
18329 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18330
3743bb4f
DE
183312010-01-21 Doug Evans <dje@google.com>
18332
14ce3065
DE
18333 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18334 (PTRACE_ARG4_TYPE): New macro.
18335 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18336 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18337 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18338 (usr_store_inferior_registers): Ditto.
18339 (linux_read_memory, linux_write_memory): Ditto.
18340 (linux_test_for_tracefork): Ditto.
18341
3743bb4f
DE
18342 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18343 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18344
8b315be5
PA
183452010-01-21 Pedro Alves <pedro@codesourcery.com>
18346
18347 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18348 target.
18349
85492558
PA
183502010-01-21 Pedro Alves <pedro@codesourcery.com>
18351
18352 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18353 prototype to take a regcache. Adjust.
18354
442ea881
PA
183552010-01-20 Pedro Alves <pedro@codesourcery.com>
18356
18357 * regcache.h (struct thread_info): Forward declare.
18358 (struct regcache): New.
18359 (new_register_cache): Adjust prototype.
18360 (get_thread_regcache): Declare.
18361 (free_register_cache): Adjust prototype.
18362 (registers_to_string, registers_from_string): Ditto.
18363 (supply_register, supply_register_by_name, collect_register)
18364 (collect_register_as_string, collect_register_by_name): Ditto.
18365 * regcache.c (struct inferior_regcache_data): Delete.
18366 (get_regcache): Rename to ...
18367 (get_thread_regcache): ... this. Adjust. Switch inferior before
18368 fetching registers.
18369 (regcache_invalidate_one): Adjust.
18370 (regcache_invalidate): Fix prototype.
18371 (new_register_cache): Return the new register cache.
18372 (free_register_cache): Change prototype.
18373 (realloc_register_cache): Adjust.
18374 (registers_to_string): Change prototype to take a regcache. Adjust.
18375 (registers_from_string): Ditto.
18376 (register_data): Ditto.
18377 (supply_register): Ditto.
18378 (supply_register_by_name): Ditto.
18379 (collect_register): Ditto.
18380 (collect_register_as_string): Ditto.
18381 (collect_register_by_name): Ditto.
18382 * server.c (process_serial_event): Adjust.
18383 * linux-low.h (regset_fill_func, regset_store_func): Change
18384 prototype.
18385 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18386 Change prototype.
18387 * linux-low.c (get_stop_pc): Adjust.
18388 (check_removed_breakpoint): Adjust.
18389 (linux_wait_for_event): Adjust.
18390 (linux_resume_one_lwp): Adjust.
18391 (fetch_register): Add regcache parameter. Adjust.
18392 (usr_store_inferior_registers): Ditto.
18393 (regsets_fetch_inferior_registers): Ditto.
18394 (regsets_store_inferior_registers): Ditto.
18395 (linux_fetch_registers, linux_store_registers): Ditto.
18396 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18397 regcache. Adjust.
43aaf8b6
PA
18398 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18399 Ditto.
442ea881
PA
18400 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18401 prototype to take a regcache.
18402 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18403 * remote-utils.c (convert_ascii_to_int, outreg)
18404 (prepare_resume_reply): Change prototype to take a regcache.
18405 Adjust.
18406 * target.h (struct target_ops) <fetch_registers, store_registers>:
18407 Change prototype to take a regcache.
18408 (fetch_inferior_registers, store_inferior_registers): Change
18409 prototype to take a regcache. Adjust.
18410 * proc-service.c (ps_lgetregs): Adjust.
18411 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18412 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18413 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18414 take a regcache. Adjust.
18415 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18416 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18417 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18418 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18419 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18420 (cris_cannot_fetch_register):
18421 (cris_breakpoint_at): Change prototype to take a regcache.
18422 Adjust.
18423 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18424 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18425 to take a regcache. Adjust.
18426 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18427 Adjust.
18428 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18429 take a regcache. Adjust.
18430 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18431 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18432 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18433 * linux-mips-low.c (mips_get_pc):
18434 (mips_set_pc): Change prototype to take a regcache. Adjust.
18435 (mips_reinsert_addr): Adjust.
18436 (mips_collect_register): Change prototype to take a regcache.
18437 Adjust.
18438 (mips_supply_register):
18439 (mips_collect_register_32bit, mips_supply_register_32bit)
18440 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18441 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18442 * linux-ppc-low.c (ppc_supply_ptrace_register)
18443 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18444 (parse_spufs_run): Adjust.
18445 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18446 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18447 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18448 take a regcache. Adjust.
18449 * linux-s390-low.c (s390_collect_ptrace_register)
18450 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18451 (s390_set_pc): Change prototype to take a regcache. Adjust.
18452 (s390_arch_setup): Adjust.
18453 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18454 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18455 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18456 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18457 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18458 regcache. Adjust.
18459 (sparc_breakpoint_at): Adjust.
18460 * linux-xtensa-low.c (xtensa_fill_gregset):
18461 (xtensa_store_gregset):
18462 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18463 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18464 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18465 prototype to take a regcache. Adjust.
18466 * win32-arm-low.c (arm_fetch_inferior_register)
18467 (arm_store_inferior_register): Change prototype to take a
18468 regcache. Adjust.
18469 * win32-i386-low.c (i386_fetch_inferior_register)
18470 (i386_store_inferior_register): Change prototype to take a
18471 regcache. Adjust.
18472 * win32-low.c (child_fetch_inferior_registers)
18473 (child_store_inferior_registers): Change prototype to take a
18474 regcache. Adjust.
18475 (win32_wait): Adjust.
18476 (win32_fetch_inferior_registers): Change prototype to take a
18477 regcache. Adjust.
18478 (win32_store_inferior_registers): Adjust.
18479 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18480 store_inferior_register>: Change prototype to take a regcache.
18481
60c3d7b0
DE
184822010-01-20 Doug Evans <dje@google.com>
18483
18484 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18485 #ifdef.
18486 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18487 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18488
dc146f7c
VP
184892010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18490
18491 * linux-low.c (linux_core_of_thread): New.
18492 (compare_ints, show_process, list_threads): New.
18493 (linux_qxfer_osdata): Report threads and cores.
18494 (linux_target_op): Register linux_core_of_thread.
18495 * remote-utils.c (prepare_resume_reply): Report the core.
18496 (buffer_xml_printf): Support %d specifier.
18497 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18498 New.
18499 (handle_query): Handle qXfer:threads. Announce availability
18500 thereof.
18501 * target.h (struct target_ops): New field core_of_thread.
18502
7803799a
UW
185032010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18504
18505 * Makefile.in (clean): Remove new generated files.
18506 (reg-s390.o, reg-s390.c): Remove rules.
18507 (reg-s390x.o, reg-s390x.c): Likewise.
18508 (s390-linux32.o, s390-linux32.c): Add rules.
18509 (s390-linux64.o, s390-linux64.c): Likewise.
18510 (s390x-linux64.o, s390x-linux64.c): Likewise.
18511 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18512 * linux-s390-low.c: Include <elf.h>.
18513 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18514 (init_registers_s390): Remove prototype.
18515 (init_registers_s390x): Likewise.
18516 (init_registers_s390_linux32): Add prototype.
18517 (init_registers_s390_linux64): Likewise.
18518 (init_registers_s390x_linux64): Likewise.
18519 (s390_num_regs_3264): New define.
18520 (s390_regmap_3264): New global variable.
18521 (s390_cannot_fetch_register): Remove obsolete check.
18522 (s390_cannot_store_register): Likewise.
18523 (s390_collect_ptrace_register): Handle upper/lower register halves.
18524 (s390_supply_ptrace_register): Likewise.
18525 (s390_fill_gregset): Update to register number changes.
18526 (s390_get_hwcap): New routine.
18527 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18528 Install appropriate regmap and register set.
18529
6e7ffa39
JB
185302010-01-01 Joel Brobecker <brobecker@adacore.com>
18531
18532 * server.c (gdbserver_version): Update copyright year to 2010.
18533 * gdbreplay.c (gdbreplay_version): Likewise.
18534
957f3f49
DE
185352009-12-28 Doug Evans <dje@google.com>
18536
18537 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18538 elf/external.h. Include <elf.h> instead but only if necessary.
18539
ca5c370d
PA
185402009-12-28 Pedro Alves <pedro@codesourcery.com>
18541
18542 * linux-low.c (linux_remove_process): Remove `detaching'
18543 parameter. Don't release/detach from thread_db here.
18544 (linux_kill): Release/detach from thread_db here, ...
18545 (linux_detach): ... and here, before actually detaching.
18546 (linux_wait_1): ... and here, when a process exits.
18547 * thread-db.c (any_thread_of): New.
18548 (thread_db_free): Switch the current inferior to a thread of the
18549 passed in process.
18550
4ee62156
DE
185512009-12-21 Doug Evans <dje@google.com>
18552
d90e6a88
DE
18553 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18554
c5f62d5f
DE
18555 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18556 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18557 warning ifndef __NR_tkill. Move setting of errno there too.
18558 Delete unnecessary resetting of errno after syscall.
18559 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18560
10e86dd7
DE
18561 * configure.ac: Check for dladdr.
18562 * config.in: Regenerate.
18563 * configure: Regenerate.
18564 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18565 (try_thread_db_load): Update.
18566
4ee62156
DE
18567 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18568
00f515da
DE
185692009-12-18 Doug Evans <dje@google.com>
18570
e9464885
DE
18571 * event-loop.c: Include unistd.h if it exists.
18572
07d4f67e
DE
18573 * linux-low.c (my_waitpid): Move definition away from being in
18574 between linux_tracefork_child/linux_test_for_tracefork.
18575
00f515da
DE
18576 * gdb_proc_service.h (psaddr_t): Fix type.
18577 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18578 signature to match glibc.
18579
1de1badb
DE
185802009-12-16 Doug Evans <dje@google.com>
18581
18582 * linux-low.c (linux_read_memory): Fix argument to read.
18583
aeeb81d1
PA
185842009-11-26 Pedro Alves <pedro@codesourcery.com>
18585
18586 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18587 events, don't leave current_inferior pointing at null.
18588
10357975
PA
185892009-11-26 Pedro Alves <pedro@codesourcery.com>
18590
18591 * win32-low.c (LOG): Delete.
18592 (OUTMSG): Output to stderr.
18593 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18594 on compile time LOG macro.
18595 (win32_wait): Fix debug output.
18596
cf6e3471
PA
185972009-11-26 Pedro Alves <pedro@codesourcery.com>
18598
18599 * win32-low.c (win32_add_one_solib): If the dll name is
18600 "ntdll.dll", prepend the system directory to the dll path.
18601
0c85e18e
MK
186022009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18603
18604 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18605
9ac544ce 186062009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18607 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18608
18609 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18610 * configure.ac: Check for __mcoldfire__ and set
18611 gdb_cv_m68k_is_coldfire.
18612 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18613 reg-cf.o and reg-m68k.o.
18614 * configure: Regenerated.
18615
fd7dd3e6
PA
186162009-11-16 Pedro Alves <pedro@codesourcery.com>
18617
18618 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18619 Pass it to thread_db_free.
18620 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18621 proper `detaching' argument to linux_remove_process.
18622 * linux-low.h (thread_db_free): Add `detaching' parameter.
18623 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18624 to thread_db_free.
18625 (thread_db_free): Add `detaching' parameter. Only
18626 call td_ta_clear_event if detaching from process.
18627
75aa492e
MK
186282009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18629
18630 * thread-db.c (thread_db_free): Fix typo.
18631
21e1bee4
PP
186322009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18633
18634 PR gdb/10838
18635 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18636
8838b45e
NS
186372009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18638
18639 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18640 with an i686 compiler.
18641 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18642 needed.
18643 * configure: Rebuilt.
18644
8a35fb51
SL
186452009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18646
18647 PR gdb/10783
18648
18649 * server.c (handle_search_memory_1): Correct read_addr initialization
18650 in loop for searching subsequent chunks.
18651
96f15937
PP
186522009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18653
18654 * configure.ac: New --with-libthread-db option.
18655 * thread-db.c: Allow direct dependence on libthread_db.
18656 (thread_db_free): Adjust.
18657 * config.in: Regenerate.
18658 * configure: Likewise.
889bf7c5 18659
5f7d1694
PP
186602009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18661
18662 PR gdb/10757
18663 * thread-db.c (attach_thread): New function.
18664 (maybe_attach_thread): Return success/failure.
18665 (find_new_threads_callback): Adjust.
889bf7c5
PA
18666 (thread_db_find_new_threads): Loop until no new threads.
18667
88e3b899
PA
186682009-10-13 Pedro Alves <pedro@codesourcery.com>
18669
18670 * proc-service.c (ps_lgetregs): Formatting.
18671
cdbfd419
PP
186722009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18673
18674 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18675 * configure.ac: Adjust.
18676 * linux-low.h (struct process_info_private): Move members to struct
18677 thread_db.
18678 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18679 * linux-low.c (linux_remove_process): Adjust.
18680 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18681 * server.c (handle_query): Move code ...
18682 (handle_monitor_command): ... here. New function.
18683 * target.h (struct target_ops): New member.
18684 * thread-db.c (struct thread_db): New.
18685 (libthread_db_search_path): New variable.
18686 (thread_db_create_event, thread_db_enable_reporting)
18687 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18688 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18689 (try_thread_db_load_1, dladdr_to_soname): New functions.
18690 (try_thread_db_load, thread_db_load_search): New functions.
18691 (thread_db_init): Search for libthread_db.
18692 (thread_db_free): New function.
18693 (thread_db_handle_monitor_command): Likewise.
18694 * config.in: Regenerate.
18695 * configure: Regenerate.
889bf7c5 18696
4168d2d6
UW
186972009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18698
18699 * spu-low.c (spu_kill): Wait for inferior to terminate.
18700 Call clear_inferiors.
18701 (spu_detach): Call clear_inferiors.
18702
81ecdfbb
RW
187032009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18704
18705 * aclocal.m4: Regenerate.
18706 * config.in: Likewise.
18707 * configure: Likewise.
18708
0b9ff2c0
UW
187092009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18710
18711 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18712 (parse_spufs_run): New function.
18713 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18714 (ppc_breakpoint_at): Handle SPU breakpoints.
18715
efcbbd14
UW
187162009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18717
18718 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18719 (SPUFS_MAGIC): Define.
18720 (spu_enumerate_spu_ids): New function.
18721 (linux_qxfer_spu): New function.
18722 (linux_target_ops): Install linux_qxfer_spu.
18723
f4d9bade
UW
187242009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18725
18726 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18727 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18728 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18729 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18730 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18731 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18732 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18733 (init_registers_powerpc_cell32l): Add prototype.
18734 (init_registers_powerpc_cell64l): Likewise.
18735 (ppc_arch_setup): Detect Cell/B.E. architecture.
18736
96e946ca
RW
187372009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18738
18739 * Makefile.in (datarootdir): New variable.
18740
58d6951d
DJ
187412009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18742
18743 * linux-low.c (linux_write_memory): Update debugging output.
18744 * Makefile.in (clean): Add new descriptions.
18745 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18746 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18747 * configure.srv: Add new files for arm*-*-linux*.
18748 * linux-arm-low.c: Add new declarations.
18749 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18750 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18751 (HWCAP_VFPv3D16): New.
18752 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18753 instead of __IWMMXT__.
18754 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18755 (arm_arch_setup): New.
18756 (target_regsets): Remove #ifdef. Add VFP regset.
18757 (the_low_target): Use arm_arch_setup.
18758
12b42a12
DJ
187592009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18760
18761 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18762 the main thread again.
18763
ac8c974e
AR
187642009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18765
18766 Adding Neutrino gdbserver.
18767 * configure: Regenerated.
18768 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18769 * configure.srv (i[34567]86-*-nto*): New target.
18770 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18771 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18772 (nto_comctrl) [__QNX__]: New function.
18773 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18774
4424e0c3 187752009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18776
18777 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18778 srv_tgtobj.
18779
912cf4ba
PA
187802009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18781 Pedro Alves <pedro@codesourcery.com>
18782
18783 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18784 don't support CONTEXT_EXTENDED_REGISTERS.
18785 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18786 (the_low_target): Install them.
18787 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18788 failing with ERROR_PIPE_NOT_CONNECTED.
18789
aa5ca48f
DE
187902009-06-30 Doug Evans <dje@google.com>
18791 Pierre Muller <muller@ics.u-strasbg.fr>
18792
18793 Add h/w watchpoint support to x86-linux, win32-i386.
18794 * Makefile.in (SFILES): Add i386-low.c
18795 (i386_low_h): Define.
18796 (i386-low.o): Add dependencies.
18797 (linux-x86-low.o): Add i386-low.h dependency.
18798 (win32-i386-low.o): Ditto.
18799 * i386-low.c: New file.
18800 * i386-low.h: New file.
18801 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18802 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18803 * linux-low.c (linux_add_process): Initialize arch_private.
18804 (linux_remove_process): Free arch_private.
18805 (add_lwp): Initialize arch_private.
18806 (delete_lwp): Free arch_private.
18807 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18808 provided.
18809 * linux-low.h (process_info_private): New member arch_private.
18810 (lwp_info): New member arch_private.
18811 (linux_target_ops): New members new_process, new_thread,
18812 prepare_to_resume.
18813 (ptid_of): New macro.
18814 * linux-x86-low.c: Include stddef.h, i386-low.h.
18815 (arch_process_info): New struct.
18816 (arch_lwp_info): New struct.
18817 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18818 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18819 (i386_dr_low_get_status): New function.
18820 (x86_insert_point, x86_remove_point): New functions.
18821 (x86_stopped_by_watchpoint): New function.
18822 (x86_stopped_data_address): New function.
18823 (x86_linux_new_process, x86_linux_new_thread): New functions.
18824 (x86_linux_prepare_to_resume): New function.
18825 (the_low_target): Add entries for insert_point, remove_point,
18826 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18827 prepare_to_resume.
18828 * server.c (debug_hw_points): New global.
18829 (monitor_show_help): Document set debug-hw-points.
18830 (handle_query): Process "set debug-hw-points".
18831 * server.h (debug_hw_points): Declare.
18832 (paddress): Declare.
18833 * utils.c (NUMCELLS, CELLSIZE): New macros.
18834 (get_sell, xsnprintf, paddress): New functions.
18835 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18836 remove_point, stopped_by_watchpoint, stopped_data_address.
18837 * win32-i386-low.c: Include i386-low.h.
18838 (debug_reg_state): Replaces dr.
18839 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18840 (i386_dr_low_get_status): New function.
18841 (i386_insert_point, i386_remove_point): New functions.
18842 (i386_stopped_by_watchpoint): New function.
18843 (i386_stopped_data_address): New function.
18844 (i386_initial_stuff): Update.
18845 (get_thread_context,set_thread_context,i386_thread_added): Update.
18846 (the_low_target): Add entries for insert_point,
18847 remove_point, stopped_by_watchpoint, stopped_data_address.
18848 * win32-low.c (win32_insert_watchpoint): New function.
18849 (win32_remove_watchpoint): New function.
18850 (win32_stopped_by_watchpoint): New function.
18851 (win32_stopped_data_address): New function.
18852 (win32_target_ops): Add entries for insert_watchpoint,
18853 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18854 * win32-low.h (win32_target_ops): New members insert_point,
18855 remove_point, stopped_by_watchpoint, stopped_data_address.
18856
d993e290
PA
188572009-06-25 Pedro Alves <pedro@codesourcery.com>
18858
18859 * server.c (process_serial_event): Re-return unsupported, not
18860 error, if the type isn't recognized. Re-allow supporting only
18861 insert or remove packets. Also call require_running for
18862 breakpoints. Add missing break statement to default case. Tidy.
18863 * target.h (struct target_ops): Rename insert_watchpoint to
18864 insert_point, and remove_watchpoint to remove_point.
18865
18866 * linux-low.h (struct linux_target_ops): Likewise.
18867 * linux-low.c (linux_insert_watchpoint): Rename to ...
18868 (linux_insert_point): ... this. Adjust.
18869 (linux_remove_watchpoint): Rename to ...
18870 (linux_remove_point): ... this. Adjust.
18871 (linux_target_ops): Adjust.
18872 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18873 (cris_insert_point): ... this.
18874 (cris_remove_watchpoint): Rename to ...
18875 (cris_remove_point): ... this.
18876 (the_low_target): Adjust.
18877
0f54c268
PM
188782009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18879
18880 * server.c (handle_v_kill): Pass signal_pid to
18881 kill_inferior if multi_process is zero.
18882
c6314022
AR
188832009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18884
18885 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18886 * target.h (target_ops): Comment for *_watchpoint to make it clear
18887 the functions can get types '0' and '1'.
18888
4463ce24
AR
188892009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18890
18891 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18892 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18893 * regcache.c (get_regcache): Likewise.
18894 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18895 * win32-low.c (child_fetch_inferior_registers): Remove check for
18896 regno 0.
18897
cf8fd78b
PA
188982009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18899 Pedro Alves <pedro@codesourcery.com>
18900
18901 * target.h (struct target_ops) <supports_multi_process>: New
18902 callback.
18903 (target_supports_multi_process): New.
18904 * server.c (handle_query): Even if GDB reports support, only
18905 enable multi-process if the target also supports it. Report
18906 multi-process support only if the target backend supports it.
18907 * linux-low.c (linux_supports_multi_process): New function.
18908 (linux_target_ops): Install it as target_supports_multi_process
18909 callback.
18910
47c0c975
DE
189112009-05-24 Doug Evans <dje@google.com>
18912
e09875d4
DE
18913 Global renaming of find_thread_pid to find_thread_ptid.
18914 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18915 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18916 All callers updated.
18917
e27d73f6
DE
18918 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18919 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18920 directly.
18921
47c0c975
DE
18922 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18923 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18924 (linux_resume_one_lwp): Ditto.
18925
2acc282a
DE
189262009-05-23 Doug Evans <dje@google.com>
18927
18928 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18929 from struct inferior_list_entry * to struct lwp_info *.
18930 All callers updated.
18931
9f1036c1
DE
189322009-05-13 Doug Evans <dje@google.com>
18933
18934 * linux-x86-low.c: Don't include assert.h.
18935 (x86_siginfo_fixup): Use fatal, not assert.
18936 (x86_arch_setup): Fix comment.
18937
d0722149
DE
189382009-05-12 Doug Evans <dje@google.com>
18939
18940 Biarch support for i386/amd64 gdbserver.
18941 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18942 Add linux-x86-low.c.
18943 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18944 (linux-x86-low.o): Add.
18945 * linux-x86-64-low.c: Delete.
18946 * linux-i386-low.c: Delete.
18947 * linux-x86-low.c: New file.
18948 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18949 linux-x86-low.o.
18950 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18951 linux-x86-low.o.
18952 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18953 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18954 (linux_child_pid_to_exec_file): New function.
18955 (elf_64_header_p, elf_64_file_p): New functions.
18956 (siginfo_fixup): New function.
18957 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18958 give target a chance to convert layout.
18959 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18960 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18961
fdeb2a12
DE
189622009-05-07 Doug Evans <dje@google.com>
18963
18964 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18965 (regsets_store_inferior_registers): Ditto.
18966
a6dbe5df
PA
189672009-05-06 Pedro Alves <pedro@codesourcery.com>
18968
18969 PR server/10048
18970
18971 * linux-low.c (must_set_ptrace_flags): Delete.
18972 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18973 of the global.
18974 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18975 `lwp->must_set_ptrace_flags' instead.
ba42693b 18976 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18977 (linux_wait_1): ... not here.
18978
5091eb23
DE
189792009-04-30 Doug Evans <dje@google.com>
18980
9f767825
DE
18981 * inferiors.c (started_inferior_callback): New function.
18982 (attached_inferior_callback): New function.
18983 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18984 * server.c (print_started_pid, print_attached_pid): New functions.
18985 (detach_or_kill_for_exit): New function.
18986 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18987 * server.h (have_started_inferiors_p): Declare.
18988 (have_attached_inferiors_p): Declare.
18989
5091eb23
DE
18990 * inferiors.c (remove_process): Fix memory leak, free process.
18991 * linux-low.c (linux_remove_process): New function.
18992 (linux_kill): Call it instead of remove_process.
18993 (linux_detach, linux_wait_1): Ditto.
18994
155c8968
PA
189952009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18996
18997 * configure.srv: Add x86 Windows CE target.
18998
7fe519cb
UW
189992009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19000
19001 * inferiors.c (get_thread_process): Make global.
19002 * server.h (get_thread_process): Add prototype.
19003 * thread-db.c (find_one_thread): Use get_thread_process
19004 instead of current_process.
19005 (thread_db_get_tls_address): Do not crash if called when
19006 thread layer is not yet initialized.
19007
5472f405
UW
190082009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19009
19010 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19011 * spu-low.c (current_tid): Rename to ...
19012 (current_ptid): ... this.
19013 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19014 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19015 ptid_get_lwp (current_ptid) instead of current_tid.
19016 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19017 instead of current_tid. Use find_process_pid to verify pid
19018 argument is valid. Pass proper argument to remove_process.
19019 (spu_thread_alive): Compare current_ptid instead of current_tid.
19020 (spu_resume): Likewise.
19021
55ac2b99
PA
190222009-04-02 Pedro Alves <pedro@codesourcery.com>
19023
19024 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19025 variable.
19026
95954743
PA
190272009-04-01 Pedro Alves <pedro@codesourcery.com>
19028
19029 Implement the multiprocess extensions, and add linux multiprocess
19030 support.
19031
19032 * server.h (ULONGEST): Declare.
19033 (struct ptid, ptid_t): New.
19034 (minus_one_ptid, null_ptid): Declare.
19035 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19036 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19037 (struct inferior_list_entry): Change `id' type from unsigned from
19038 to ptid_t.
19039 (struct sym_cache, struct breakpoint, struct
19040 process_info_private): Forward declare.
19041 (struct process_info): Declare.
19042 (current_process): Declare.
19043 (all_processes): Declare.
19044 (initialize_inferiors): Declare.
19045 (add_thread): Adjust to use ptid_t.
19046 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19047 (add_process, remove_process, find_thread_pid): Declare.
19048 (find_inferior_id): Adjust to use ptid_t.
19049 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19050 (multi_process): Declare.
19051 (push_event): Adjust to use ptid_t.
19052 (read_ptid, write_ptid): Declare.
19053 (prepare_resume_reply): Adjust to use ptid_t.
19054 (clear_symbol_cache): Declare.
19055 * inferiors.c (all_processes): New.
19056 (null_ptid, minus_one_ptid): New.
19057 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19058 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19059 (add_thread): Change unsigned long to ptid. Remove gdb_id
19060 parameter. Adjust.
19061 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19062 (gdb_id_to_thread): Rename to ...
19063 (find_thread_pid): ... this. Change unsigned long to ptid.
19064 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19065 (loaded_dll, pull_pid_from_list): Adjust.
19066 (add_process, remove_process, find_process_pid)
19067 (get_thread_process, current_process, initialize_inferiors): New.
19068 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19069 (struct target_waitstatus) <related_pid>: Ditto.
19070 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19071 return type to int.
19072 (struct target_ops) <join>: Add `pid' argument.
19073 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19074 (struct target_ops) <wait>: Add `ptid' field. Change return type
19075 to ptid.
19076 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19077 (mywait): Add `ptid' argument. Change return type to ptid_t.
19078 (target_pid_to_str): Declare.
19079 * target.c (set_desired_inferior): Adjust to use ptids.
19080 (mywait): Add new `ptid' argument. Adjust.
19081 (target_pid_to_str): New.
19082 * mem-break.h (free_all_breakpoints): Declare.
19083 * mem-break.c (breakpoints): Delelete.
19084 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19085 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19086 to use per-process breakpoint list.
19087 (free_all_breakpoints): New.
19088 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19089 (symbol_cache, all_symbols_looked_up): Delete.
19090 (hexchars): New.
19091 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19092 read_ptid): New.
19093 (prepare_resume_reply): Change ptid argument's type from unsigned
19094 long to ptid_t. Adjust. Implement W;process and X;process.
19095 (free_sym_cache, clear_symbol_cache): New.
19096 (look_up_one_symbol): Adjust to per-process symbol cache. *
19097 * server.c (cont_thread, general_thread, step_thread): Change type
19098 to ptid_t.
19099 (attached): Delete.
19100 (multi_process): New.
19101 (last_ptid): Change type to ptid_t.
19102 (struct vstop_notif) <ptid>: Change type to ptid_t.
19103 (queue_stop_reply, push_event): Change `ptid' argument's type to
19104 ptid_t.
19105 (discard_queued_stop_replies): Add `pid' argument.
19106 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19107 changes. Don't reference the `attached' global.
19108 (attach_inferior): Adjust to mywait interface changes.
19109 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19110 features. Handle and report "multiprocess+". Handle
19111 "qAttached:PID".
19112 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19113 changes.
19114 (handle_v_kill): New.
19115 (handle_v_stopped): Adjust to use target_pid_to_str.
19116 (handle_v_requests): Allow multiple attaches and runs when
19117 multiprocess extensions are in effect. Handle "vKill".
19118 (myresume): Adjust to use ptids.
19119 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19120 (handle_status): Adjust to discard_queued_stop_replies interface
19121 change.
19122 (first_thread_of, kill_inferior_callback)
19123 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19124 (main): Call initialize_inferiors. Adjust to use ptids, killing
19125 and detaching from all inferiors. Handle multiprocess packet
19126 variants.
19127 * linux-low.h: Include gdb_proc_service.h.
19128 (struct process_info_private): New.
19129 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19130 <lwpid_of>: Use ptid_get_lwp.
19131 (get_lwp_thread): Adjust.
19132 (struct lwp_info): Add `dead' member.
19133 (find_lwp_pid): Declare.
19134 * linux-low.c (thread_db_active): Delete.
19135 (new_inferior): Adjust comment.
19136 (inferior_pid): Delete.
19137 (linux_add_process): New.
19138 (handle_extended_wait): Adjust.
19139 (add_lwp): Change unsigned long to ptid.
19140 (linux_create_inferior): Add process to processes table. Adjust
19141 to use ptids. Don't set new_inferior here.
19142 (linux_attach_lwp): Rename to ...
19143 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19144 it. Adjust to use ptids.
19145 (linux_attach_lwp): New.
19146 (linux_attach): Add process to processes table. Don't set
19147 new_inferior here.
19148 (struct counter): New.
19149 (second_thread_of_pid_p, last_thread_of_process_p): New.
19150 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19151 multiple processes.
19152 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19153 processes. Remove process from process table.
19154 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19155 to multiple processes.
19156 (any_thread_of): New.
19157 (linux_detach): Add `pid' argument, and handle it. Remove process
19158 from processes table.
19159 (linux_join): Add `pid' argument. Handle it.
19160 (linux_thread_alive): Change unsighed long argument to ptid_t.
19161 Consider dead lwps as not being alive.
19162 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19163 threads we're not interested in.
19164 (same_lwp, find_lwp_pid): New.
19165 (linux_wait_for_lwp): Change `pid' argument's type from int to
19166 ptid_t. Adjust.
19167 (linux_wait_for_event): Rename to ...
19168 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19169 from int to ptid_t. Adjust.
19170 (linux_wait_for_event): New.
19171 (linux_wait_1): Add `ptid' argument. Change return type to
19172 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19173 that exit from the process table.
19174 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19175 Adjust.
19176 (mark_lwp_dead): New.
19177 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19178 stopping all threads, mark its main lwp as dead.
19179 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19180 ptids.
19181 (fetch_register, usr_store_inferior_registers)
19182 (regsets_fetch_inferior_registers)
19183 (regsets_store_inferior_registers, linux_read_memory)
19184 (linux_write_memory): Inline `inferior_pid'.
19185 (linux_look_up_symbols): Adjust to use per-process
19186 `thread_db_active'.
19187 (linux_request_interrupt): Adjust to use ptids.
19188 (linux_read_auxv): Inline `inferior_pid'.
19189 (initialize_low): Don't reference thread_db_active.
19190 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19191 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19192 (ps_getpid): Return the pid of the current inferior.
19193 * thread-db.c (proc_handle, thread_agent): Delete.
19194 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19195 per-process data.
19196 (find_one_thread): Change argument type to ptid_t. Adjust to
19197 per-process data.
19198 (maybe_attach_thread): Adjust to per-process data and ptids.
19199 (thread_db_find_new_threads): Ditto.
19200 (thread_db_init): Ditto.
19201 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19202 processes table. Adjust to use ptids.
19203 (spu_kill, spu_detach): Adjust interface. Remove process from
19204 processes table.
19205 (spu_join, spu_thread_alive): Adjust interface.
19206 (spu_wait): Adjust interface. Remove process from processes
19207 table. Adjust to use ptids.
19208 * win32-low.c (current_inferior_tid): Delete.
19209 (current_inferior_ptid): New.
19210 (debug_event_ptid): New.
19211 (thread_rec): Take a ptid. Adjust.
19212 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19213 (child_delete_thread): Ditto.
19214 (do_initial_child_stuff): Add `attached' argument. Add process to
19215 processes table.
19216 (child_fetch_inferior_registers, child_store_inferior_registers):
19217 Adjust.
19218 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19219 (win32_attach): Pass 1 to do_initial_child_stuff.
19220 (win32_kill): Adjust interface. Remove process from processes
19221 table.
19222 (win32_detach): Ditto.
19223 (win32_join): Adjust interface.
19224 (win32_thread_alive): Take a ptid.
19225 (win32_resume): Adjust to use ptids.
19226 (get_child_debug_event): Ditto.
19227 (win32_wait): Adjust interface. Remove exiting process from
19228 processes table.
19229
bd99dc85
PA
192302009-04-01 Pedro Alves <pedro@codesourcery.com>
19231
19232 Non-stop mode support.
19233
19234 * server.h (non_stop): Declare.
19235 (gdb_client_data, handler_func): Declare.
19236 (delete_file_handler, add_file_handler, start_event_loop):
19237 Declare.
19238 (handle_serial_event, handle_target_event, push_event)
19239 (putpkt_notif): Declare.
19240 * target.h (enum resume_kind): New.
19241 (struct thread_resume): Replace `step' field by `kind' field.
19242 (TARGET_WNOHANG): Define.
19243 (struct target_ops) <wait>: Add `options' argument.
19244 <supports_non_stop, async, start_non_stop>: New fields.
19245 (target_supports_non_stop, target_async): New.
19246 (start_non_stop): Declare.
19247 (mywait): Add `options' argument.
19248 * target.c (mywait): Add `options' argument. Print child exit
19249 notifications here.
19250 (start_non_stop): New.
19251 * server.c (non_stop, own_buf, mem_buf): New globals.
19252 (struct vstop_notif): New.
19253 (notif_queue): New global.
19254 (queue_stop_reply, push_event, discard_queued_stop_replies)
19255 (send_next_stop_reply): New.
19256 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19257 interface changes.
19258 (attach_inferior): In non-stop mode, don't wait for the target
19259 here.
19260 (handle_general_set): Handle QNonStop.
19261 (handle_query): When handling qC, return the current general
19262 thread, instead of the first thread of the list.
19263 (handle_query): If the backend supports non-stop mode, include
19264 QNonStop+ in the qSupported query response.
19265 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19266 and non-stop mode.
19267 (handle_v_attach, handle_v_run): Handle non-stop mode.
19268 (handle_v_stopped): New.
19269 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19270 (myresume): Adjust to use resume_kind. Handle non-stop.
19271 (queue_stop_reply_callback): New.
19272 (handle_status): Handle non-stop mode.
19273 (main): Clear non_stop flag on reconnection. Use the event-loop.
19274 Refactor serial protocol handling from here ...
19275 (process_serial_event): ... to this new function. When GDB
19276 selects any thread, select one here. In non-stop mode, wait until
19277 GDB acks all pending events before exiting.
19278 (handle_serial_event, handle_target_event): New.
19279 * remote-utils.c (remote_open): Install remote_desc in the event
19280 loop.
19281 (remote_close): Remove remote_desc from the event loop.
19282 (putpkt_binary): Rename to...
19283 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19284 (putpkt_binary): New as wrapper around putpkt_binary_1.
19285 (putpkt_notif): New.
19286 (prepare_resume_reply): In non-stop mode, don't change the
19287 general_thread.
19288 * event-loop.c: New.
19289 * Makefile.in (OBJ): Add event-loop.o.
19290 (event-loop.o): New rule.
19291
19292 * linux-low.h (pid_of): Moved here.
19293 (lwpid_of): New.
19294 (get_lwp_thread): Use lwpid_of.
19295 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19296 * linux-low.c (pid_of): Delete.
19297 (inferior_pid): Use lwpid_of.
19298 (linux_event_pipe): New.
19299 (target_is_async_p): New.
19300 (delete_lwp): New.
19301 (handle_extended_wait): Use lwpid_of.
19302 (add_lwp): Don't set lwpid field.
19303 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19304 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19305 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19306 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19307 first. Adjust to linux_wait_for_event interface changes. Use
19308 lwpid_of.
19309 (linux_detach): Don't delete the main lwp here.
19310 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19311 (status_pending_p): Don't consider explicitly suspended lwps.
19312 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19313 pointer. Add OPTIONS argument. Change return type to int. Use
19314 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19315 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19316 pointer. Add status pointer argument. Return a pid instead of a
19317 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19318 changes. In non-stop mode, don't switch to a random thread.
19319 (linux_wait): Rename to...
19320 (linux_wait_1): ... this. Add target_options argument, and handle
19321 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19322 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19323 clean exit and signal exit code. Don't stop all threads in
19324 non-stop mode. In all-stop mode, only stop all threads when
19325 reporting a stop to GDB. Handle explicit thread stop requests.
19326 (async_file_flush, async_file_mark): New.
19327 (linux_wait): New.
19328 (send_sigstop): Use lwpid_of.
19329 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19330 interface changes. In non-stop mode, don't switch to a random
19331 thread.
19332 (linux_resume_one_lwp): Use lwpid_of.
19333 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19334 (linux_resume_one_thread): ... this. Handle resume_stop. In
19335 non-stop mode, don't look for pending flag in all threads.
19336 (resume_status_pending_p): Don't consider explicitly suspended
19337 threads.
19338 (my_waitpid): Reimplement. Emulate __WALL.
19339 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19340 Use lwpid_of.
19341 (sigchld_handler, linux_supports_non_stop, linux_async)
19342 (linux_start_non_stop): New.
19343 (linux_target_ops): Register linux_supports_non_stop, linux_async
19344 and linux_start_non_stop.
19345 (initialize_low): Install SIGCHLD handler.
19346 * thread-db.c (thread_db_create_event, find_one_thread)
19347 (thread_db_get_tls_address): Use lwpid_of.
19348 * win32-low.c (win32_detach): Adjust to use resume_kind.
19349 (win32_wait): Add `options' argument.
19350 * spu-low.c (spu_resume): Adjust to use resume_kind.
19351 (spu_wait): Add `options' argument.
19352
5b1c542e
PA
193532009-04-01 Pedro Alves <pedro@codesourcery.com>
19354
19355 Decouple target code from remote protocol.
19356
19357 * target.h (enum target_waitkind): New.
19358 (struct target_waitstatus): New.
19359 (struct target_ops) <wait>: Return an unsigned long. Take a
19360 target_waitstatus pointer instead of a char pointer.
19361 (mywait): Likewise.
19362 * target.c (mywait): Change prototype to return an unsigned long.
19363 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19364 * server.h (thread_from_wait, old_thread_from_wait): Delete
19365 declarations.
19366 (prepare_resume_reply): Change prototype to take a
19367 target_waitstatus.
19368 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19369 (last_status, last_ptid): New.
19370 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19371 pid instead of a signal.
19372 (attach_inferior): Remove "status" and "signal" parameters.
19373 Adjust.
19374 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19375 not as an address.
19376 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19377 (handle_v_requests, myresume): Remove "status" and "signal"
19378 parameters. Adjust.
19379 (handle_status): New.
19380 (main): Delete local `status'. Adjust.
19381 * remote-utils.c: Include target.h.
19382 (prepare_resume_reply): Change prototype to take a
19383 target_waitstatus. Adjust.
19384
19385 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19386 interface.
19387 * spu-low.c (spu_wait): Adjust.
19388 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19389 Delete.
19390 (win32_wait): Adjust.
19391
2bd7c093
PA
193922009-04-01 Pedro Alves <pedro@codesourcery.com>
19393
19394 * target.h (struct thread_resume): Delete leave_stopped member.
19395 (struct target_ops): Add a `n' argument to the `resume' callback.
19396 * server.c (start_inferior): Adjust.
19397 (handle_v_cont, myresume): Adjust.
19398 * linux-low.c (check_removed_breakpoint): Adjust to resume
19399 interface change, and to removed leave_stopped field.
19400 (resume_ptr): Delete.
19401 (struct thread_resume_array): New.
19402 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19403 resume interface change.
19404 (linux_continue_one_thread, linux_queue_one_thread)
19405 (resume_status_pending_p): Check if the resume field is NULL
19406 instead of checking the leave_stopped member.
19407 (linux_resume): Adjust to the target resume interface change.
19408 * spu-low.c (spu_resume): Adjust to the target resume interface
19409 change.
19410 * win32-low.c (win32_detach, win32_resume): Ditto.
19411
c35fafde
PA
194122009-04-01 Pedro Alves <pedro@codesourcery.com>
19413
19414 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19415 flag.
19416 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19417 pending.
19418 (linux_continue_one_thread): Only preserve the stepping flag if
19419 there's a pending breakpoint.
19420
0a59d50b
PA
194212009-03-31 Pedro Alves <pedro@codesourcery.com>
19422
19423 * server.c (main): After the inferior having exited, call
19424 remote_close before exiting gdbserver.
19425
f04c6d38
TJB
194262009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19427
19428 Fix size of FPSCR in Power 7 processors.
19429 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19430 (PPC_FEATURE_HAS_DFP): New #define.
19431 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19432 size of the FPSCR.
19433
78e5cee6
PA
194342009-03-23 Pedro Alves <pedro@codesourcery.com>
19435
19436 * server.c (handle_query) Whitespace and formatting.
19437
1b3f6016
PA
194382009-03-22 Pedro Alves <pedro@codesourcery.com>
19439
19440 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19441 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19442 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19443 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19444 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19445 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19446 Makefile.in, configure.ac: Fix whitespace throughout.
19447 * configure: Regenerate.
19448
a07b2135
PA
194492009-03-22 Pedro Alves <pedro@codesourcery.com>
19450
19451 * inferiors.c (find_inferior): Make it safe for the callback
19452 function to delete the currently iterated inferior.
19453
67cc2626
PA
194542009-03-22 Pedro Alves <pedro@codesourcery.com>
19455
19456 * Makefile.in (linuw_low_h): Move higher.
19457 (thread-db.o): Depend on $(linux_low_h).
19458
54a0b537
PA
194592009-03-17 Pedro Alves <pedro@codesourcery.com>
19460
19461 Rename "process" to "lwp" throughout.
19462
19463 * linux-low.c (all_processes): Rename to...
19464 (all_lwps): ... this.
19465 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19466 (add_process): Rename to ...
19467 (add_lwp): ... this. Adjust.
19468 (linux_create_inferior): Adjust.
19469 (linux_attach_lwp): Adjust.
19470 (linux_attach): Adjust.
19471 (linux_kill_one_process): Rename to ...
19472 (linux_kill_one_lwp): ... this. Adjust.
19473 (linux_kill): Adjust.
19474 (linux_detach_one_process): Rename to ...
19475 (linux_detach_one_lwp): ... this. Adjust.
19476 (linux_detach): Adjust.
19477 (check_removed_breakpoint): Adjust.
19478 (status_pending_p): Adjust.
19479 (linux_wait_for_process): Rename to ...
19480 (linux_wait_for_lwp): ... this. Adjust.
19481 (linux_wait_for_event): Adjust.
19482 (send_sigstop): Adjust.
19483 (wait_for_sigstop): Adjust.
19484 (stop_all_processes): Rename to ...
19485 (stop_all_lwps): ... this.
19486 (linux_resume_one_process): Rename to ...
19487 (linux_resume_one_lwp): ... this. Adjust.
19488 (linux_set_resume_request, linux_continue_one_thread)
19489 (linux_queue_one_thread, resume_status_pending_p)
19490 (usr_store_inferior_registers, regsets_store_inferior_registers)
19491 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19492 Adjust.
19493 * linux-low.h (get_process): Rename to ...
19494 (get_lwp): ... this. Adjust.
19495 (get_thread_process): Rename to ...
19496 (get_thread_lwp): ... this. Adjust.
19497 (get_process_thread): Rename to ...
19498 (get_lwp_thread): ... this. Adjust.
19499 (struct process_info): Rename to ...
19500 (struct lwp_info): ... this.
19501 (all_processes): Rename to ...
19502 (all_lwps): ... this.
19503 * proc-service.c (ps_lgetregs): Adjust.
19504 * thread-db.c (thread_db_create_event, find_one_thread)
19505 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19506
0b16c5cf
PA
195072009-03-14 Pedro Alves <pedro@codesourcery.com>
19508
19509 * server.c (handle_query): Handle "qAttached".
19510
32de4b9d
NS
195112009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19512
19513 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19514 GPLv3, update license URL.
19515
2aecd87f
DE
195162009-03-01 Doug Evans <dje@google.com>
19517
93efd302 19518 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19519 (server_h): Add gdb_signals.h.
19520 (signals.o): Update.
19521 * server.h (target_signal_from_host,target_signal_to_host_p)
19522 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19523
86b1f9c5
PM
195242009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19525
19526 * remote-utils.c (getpkt): Also generate remote-debug
19527 information if noack_mode is set.
19528
4aa995e1
PA
195292009-02-06 Pedro Alves <pedro@codesourcery.com>
19530
19531 * server.c (handle_query): Report qXfer:siginfo:read and
19532 qXfer:siginfo:write as supported and handle them.
19533 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19534 * linux-low.c (linux_xfer_siginfo): New.
19535 (linux_target_ops): Set it.
19536
62709adf
PA
195372009-01-26 Pedro Alves <pedro@codesourcery.com>
19538
19539 * server.c (gdbserver_usage): Mention --remote-debug.
19540 (main): Accept '--remote-debug' switch.
19541
aef93bd7
DE
195422009-01-18 Doug Evans <dje@google.com>
19543
19544 * regcache.c (new_register_cache): No need to check result of xcalloc.
19545 * server.c (handle_search_memory): Back out calls to xmalloc,
19546 result is checked and error is returned to user upon failure.
19547 (handle_query): Ditto. Add more checks for result of malloc.
19548 (handle_v_cont): Check result of malloc, report error back to
19549 user upon failure.
19550 (handle_v_run): Ditto. Call freeargv.
19551 * server.h (freeargv): Declare.
19552 * utils.c (freeargv): New fn.
19553
54363045
DE
195542009-01-15 Doug Evans <dje@google.com>
19555
f626972c
DE
19556 * gdbreplay.c (perror_with_name): Make arg const char *.
19557 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19558 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19559 * utils.c (perror_with_name): Make arg const char *.
54363045 19560
18aae699
PA
195612009-01-14 Pedro Alves <pedro@codesourcery.com>
19562
19563 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19564 when handling a EXIT_PROCESS_DEBUG_EVENT.
19565
ff703abe
JB
195662009-01-06 Joel Brobecker <brobecker@adacore.com>
19567
19568 * gdbreplay.c (gdbreplay_version): Update copyright year.
19569 * server.c (gdbserver_version): Likewise.
19570
f21cc1a2 195712009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19572
19573 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19574 (handle_extended_wait): Improve comment.
0e21c1ec 19575
bca929d3
DE
195762008-12-13 Doug Evans <dje@google.com>
19577
19578 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19579 * server.h (ATTR_MALLOC): New macro.
19580 (xmalloc,xcalloc,xstrdup): Declare.
19581 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19582 * inferiors.c: Ditto.
19583 * linux-low.c: Ditto.
19584 * mem-break.c: Ditto.
19585 * regcache.c: Ditto.
19586 * remote-utils.c: Ditto.
19587 * server.c: Ditto.
19588 * target.c: Ditto.
19589 * win32-low.c: Ditto.
19590
97438e3f
DE
195912008-12-12 Doug Evans <dje@google.com>
19592
896c7fbb
DE
19593 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19594 in debugging printf.
19595
97438e3f
DE
19596 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19597
e3b886f8
DE
195982008-12-09 Doug Evans <dje@google.com>
19599
19600 * linux-low.h (struct process_info): Delete member tid, unused.
19601 * thread-db.c (find_one_thread): Update.
19602 (maybe_attach_thread): Update.
19603
07e059b5
VP
196042008-12-02 Pedro Alves <pedro@codesourcery.com>
19605
889bf7c5
PA
19606 * target.h (struct target_ops): Add qxfer_osdata member.
19607 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19608 and dirent.h.
19609 (linux_qxfer_osdata): New functions.
19610 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19611 callback.
19612 * server.c (handle_query): Handle "qXfer:osdata:read:".
19613 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19614 (buffer_xml_printf): New functions.
19615 * server.h (struct buffer): New.
19616 (buffer_grow_str, buffer_grow_str0): New macros.
19617 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19618 (buffer_xml_printf): Declare.
07e059b5 19619
4cab47ab
DE
196202008-11-24 Doug Evans <dje@google.com>
19621
19622 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19623
f142445f
DJ
196242008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19625
19626 * server.c (handle_v_run): Always use the supplied argument list.
19627
d0107bb6 196282008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19629
d0107bb6
BW
19630 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19631 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19632
2c4ad781
TJB
196332008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19634
19635 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19636 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19637 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19638 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19639 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19640 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19641 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19642 XML target descriptions.
19643 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19644 when inferior is running on an ISA 2.05 or later processor. Add
19645 special case to return offset for full 64-bit slot of FPSCR when
19646 in 32-bits.
19647
dfb64f85
DJ
196482008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19649
19650 * Makefile.in (SFILES, clean): Added sparc64 files.
19651 (reg-sparc64.o, reg-sparc64.c): New.
19652 * configure.srv (sparc*-*-linux*): New configuration.
19653 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19654 syscall arguments for SPARC.
19655 (regsets_store_inferior_registers): Likewise.
19656 * linux-sparc-low.c: New file.
19657
66b6e1dd
DE
196582008-10-21 Doug Evans <dje@google.com>
19659
19660 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19661 (READLINE_DIR,READLINE_DEP): Delete.
19662 (INTERNAL_CFLAGS): Update.
19663 (LINTFLAGS): Update.
19664
9b710a42
PA
196652008-10-10 Pedro Alves <pedro@codesourcery.com>
19666
19667 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19668 whole argv from the last run, not just argv[0].
19669
5822d809
PA
196702008-09-08 Pedro Alves <pedro@codesourcery.com>
19671
19672 * regcache.c (new_register_cache): Return NULL if the register
19673 cache size isn't known yet.
19674 (free_register_cache): Avoid dereferencing a NULL regcache.
19675
74aac56f
DJ
196762008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19677
19678 * configure.srv: Merge MIPS and MIPS64.
19679
400b20f5
MR
196802008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19681
19682 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19683
677c5bb1
LM
196842008-08-18 Luis Machado <luisgpm@br.ibm.com>
19685
19686 * Makefile.in: Add required vsx dependencies.
19687
19688 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19689 Declare init_registers_powerpc_vsx32l.
19690 Declare init_registers_powerpc_vsx64l.
19691 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19692 (ppc_arch_setup): Check for VSX in hwcap.
19693 (ppc_fill_vsxregset): New function.
19694 (ppc_store_vsxregset): New function.
19695 Add new VSX entry in regset_info target_regsets.
19696
19697 * configure.srv: Add new VSX dependencies.
19698
a6f3e723
SL
196992008-08-12 Pedro Alves <pedro@codesourcery.com>
19700
19701 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19702 (remote_open): Set or clear transport_is_reliable.
19703 (putpkt_binary): Don't expect acks in noack mode.
19704 (getpkt): Don't send ack/nac in noack mode.
19705 * server.c (handle_general_set): Handle QStartNoAckMode.
19706 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19707 qSupported.
19708 (main): Reset noack_mode on every connection.
19709 * server.h (noack_mode): Declare.
19710
a417dc56
RW
197112008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19712
19713 * Makefile.in (GDBREPLAY_OBS): New variable.
19714 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19715
3221518c
UW
197162008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19717 Daniel Jacobowitz <dan@codesourcery.com>
19718
19719 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19720 (usr_store_inferior_registers): Likewise.
19721 (regsets_store_inferior_registers): Likewise.
19722
ec56be1b
PA
197232008-07-31 Rolf Jansen <rj@surtec.com>
19724 Pedro Alves <pedro@codesourcery.com>
19725
19726 * configure.ac: Check for memmem declaration.
19727 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19728 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19729 (disable_packet_qfThreadInfo): Unconditionally compile.
19730 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19731 * configure, config.in: Regenerate.
19732
2fe5e3ff
DE
197332008-07-28 Doug Kwan <dougkwan@google.com>
19734
19735 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19736 (linux_write_memory): Remove declaration of errno.
19737
836acd6d
UW
197382008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19739
19740 * linux-low.c (handle_extended_wait): Do not use "status"
19741 variable uninitialized.
19742
aeba519e
PA
197432008-07-07 Pedro Alves <pedro@codesourcery.com>
19744
19745 * server.c (handle_v_attach): Inhibit reporting dll changes.
19746
db42f210
PA
197472008-06-27 Pedro Alves <pedro@codesourcery.com>
19748
19749 * remote-utils.c (prepare_resume_reply): If requested, don't
19750 output "thread:TID" in the T stop reply.
19751
19752 * server.c (disable_packet_vCont, disable_packet_Tthread)
19753 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19754 (handle_query): If requested, disable support for qC, qfThreadInfo
19755 and qsThreadInfo.
19756 (handle_v_requests): If requested, disable support for vCont.
19757 (gdbserver_show_disableable): New.
19758 (main): Handle --disable-packet and --disable-packet=LIST.
19759
19760 * server.h (disable_packet_vCont, disable_packet_Tthread)
19761 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19762
8e4c5421
CD
197632008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19764
19765 * server.c (gdbserver_usage): Mention --version.
19766
6e23a804
DJ
197672008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19768
19769 * Makefile.in (gdbreplay.o): New rule.
19770
90aa6a40
JM
197712008-06-06 Joseph Myers <joseph@codesourcery.com>
19772
19773 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19774 message, not gdbserver.
19775
c16158bc 197762008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19777 Nathan Sidwell <nathan@codesourcery.com>
19778 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19779
19780 * acinclude.m4: Include ../../config/acx.m4.
19781 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19782 * configure, config.in: Regenerate.
19783 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19784 * server.c (gdbserver_version): Print PKGVERSION.
19785 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19786 (main): Adjust gdbserver_usage calls.
19787 * gdbreplay.c (version, host_name): Add declarations.
19788 (gdbreplay_version, gdbreplay_usage): New.
19789 (main): Accept --version and --help options.
19790
aeb75bf5
DJ
197912008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19792
19793 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19794 (arm_breakpoint_at): Handle Thumb.
19795 (the_low_target): Add comment.
19796
76b233dd
UW
197972008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19798
19799 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19800
08388c79
DE
198012008-05-09 Doug Evans <dje@google.com>
19802
a3c83fae
DE
19803 * server.h (decode_search_memory_packet): Declare.
19804 * remote-utils.c (decode_search_memory_packet): New fn.
19805 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19806 (handle_search_memory): New fn.
19807 (handle_query): Process qSearch:memory packets.
19808
bb9c3d36
UW
198092008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19810
19811 * regcache.c (registers_length): Remove.
19812 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19813 full register packet.
19814 * regcache.h (registers_length): Remove prototype.
19815 * server.h (PBUFSIZ): Define to 16384.
19816
7284e1be
UW
198172008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19818
19819 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19820 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19821 powerpc-64l.o, and powerpc-altivec64l.o.
19822 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19823 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19824 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19825 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19826 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19827 to srv_xmlfiles.
19828
19829 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19830 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19831 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19832 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19833 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19834 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19835 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19836 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19837 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19838 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19839 (clean): Update.
19840
19841 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19842 (init_registers_powerpc_32l): ... this new prototype.
19843 (init_registers_powerpc_32): Remove, replace by ...
19844 (init_registers_powerpc_altivec32l): ... this new prototype.
19845 (init_registers_powerpc_e500): Remove, replace by ...
19846 (init_registers_powerpc_e500l): ... this new prototype.
19847 (init_registers_ppc64): Remove, replace by ...
19848 (init_registers_powerpc_64l): ... this new prototype.
19849 (init_registers_powerpc_64): Remove, replace by ...
19850 (init_registers_powerpc_altivec64l): ... this new prototype.
19851 (ppc_num_regs): Set to 73.
19852 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19853 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19854 (ppc_cannot_store_register): Handle orig_r3 and trap.
19855 (ppc_arch_setup): Update init_registers_... calls.
19856 (ppc_fill_gregset): Handle orig_r3 and trap.
19857
19858 * inferiors.c (clear_inferiors): Reset current_inferior.
19859
fdc59709
PB
198602008-04-23 Paolo Bonzini <bonzini@gnu.org>
19861
889bf7c5
PA
19862 * acinclude.m4: Add override.m4.
19863 * configure: Regenerate.
fdc59709 19864
c9b2f845
UW
198652008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19866
19867 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19868 initial call to init_register_ppc64.
19869
550512b8
UW
198702008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19871
43aaf8b6
PA
19872 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19873 single powerpc*-*-linux* case.
550512b8
UW
19874 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19875
b6430ec3
UW
198762008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19877
19878 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19879 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19880 from reg_xmlfiles.
19881 * linux-ppc-low.c: Include <elf.h>.
19882 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19883 (ppc_hwcap): New global variable.
19884 (ppc_regmap): Remove __SPE__ #ifdef sections.
19885 (ppc_regmap_e500): New global variable.
19886 (ppc_cannot_store_register): Update __SPE__ special case.
19887 (ppc_get_hwcap): New function.
19888 (ppc_arch_setup): Use it to determine whether inferior supports
19889 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19890 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19891 Do not access registers if target does not support AltiVec.
19892 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19893 Do not access registers if target does not support SPE.
19894 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19895
52fa2412
UW
198962008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19897
19898 * linux-low.c (disabled_regsets, num_regsets): New.
19899 (use_regsets_p): Delete.
19900 (linux_wait_for_process): Clear disabled_regsets.
19901 (regsets_fetch_inferior_registers): Check and set it.
19902 (regsets_store_inferior_registers): Likewise.
19903 (linux_fetch_registers, linux_store_registers): Do not use
19904 use_regsets_p.
19905 (initialize_low): Allocate disabled_regsets.
19906
e28b3332
DJ
199072008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19908
19909 * Makefile.in (LIBOBJS): New.
19910 (OBS): Use LIBOBJS.
19911 (memmem.o): New rule.
19912 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19913 * configure: Regenerated.
19914
4536995d
UW
199152008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19916
19917 * server.c (handle_query): Never return "unsupported" for
19918 qXfer:features:read queries.
19919
221c031f
UW
199202008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19921
19922 * server.c (get_features_xml): Fix inverted condition.
19923 (handle_query): Always support qXfer:feature:read.
19924
ccd213ac
DJ
199252008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19926
19927 * server.c (wrapper_argv): New.
19928 (start_inferior): Handle wrapper_argv. If set, expect an extra
19929 trap.
19930 (gdbserver_usage): Document --wrapper.
19931 (main): Parse --wrapper.
19932
6fe305f7
UW
199332008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19934
19935 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19936 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19937 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19938 (ppc_set_pc): Likewise.
19939 (ppc_arch_setup): New function.
19940 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19941 of collect_register.
889bf7c5 19942 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19943
5b0a002e
UW
199442008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19945
19946 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19947 instead of linux-ppc64-low.o.
19948 * linux-ppc64-low.c: Remove file.
19949 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19950 (linux-ppc64-low.o): Remove rule.
19951
19952 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19953 (init_registers_powerpc_64): Likewise.
19954 (ppc_regmap): Conditionally define depending on __powerpc64__.
19955 (ppc_cannot_store_register): Do not special-case "fpscr" when
19956 compiled on __powerpc64__.
19957 (ppc_collect_ptrace_register): New function.
19958 (ppc_supply_ptrace_register): New function.
19959 (ppc_breakpoint): Change type to "unsigned int".
19960 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19961 (the_low_target): Conditionally provide initializers for the
889bf7c5 19962 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19963 collect_ptrace_register and supply_ptrace_register members.
19964
9b4b61c8
UW
199652008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19966
19967 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19968 * server.c (gdbserver_xmltarget): Define.
19969 (get_features_xml): Use it to replace "target.xml" and arch_string.
19970
19971 * configure.srv: Remove srv_xmltarget. Add XML files that were
19972 mentioned there to srv_xmlfiles instead. Remove conditional tests
19973 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19974 srv_xmlfiles and srv_regobj to include all possible choices.
19975 * configure.ac (srv_xmltarget): Remove.
19976 (srv_xmlfiles): Do not add "target.xml".
19977 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19978 checks for supplementary target information.
19979 * configure: Regenerate.
19980 * Makefile.in (XML_TARGET): Remove.
19981 (target.xml): Remove rule.
19982 (clean): Do not clean up target.xml.
19983 (.PRECIOUS): Do not mention target.xml.
19984
19985 * target.h (struct target_ops): Remove arch_string member.
19986 * linux-low.c (linux_arch_string): Remove.
19987 (linux_target_ops): Remove arch_string initializer.
19988 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19989 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19990 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19991 * spu-low.c (spu_arch_string): Remove.
19992 (spu_target_ops): Remove arch_string initializer.
19993 * win32-low.c (win32_arch_string): Remove.
19994 (win32_target_ops): Remove arch_string initializer.
19995 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19996 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19997 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19998
ee1a7ae4
UW
199992008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20000
20001 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20002 by collect_ptrace_register and supply_ptrace_register hooks.
20003 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20004 instead of checking for the_low_target.left_pad_xfer.
20005 (usr_store_inferior_registers): Use collect_ptrace_register callback
20006 instead of checking for the_low_target.left_pad_xfer.
20007
20008 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20009 (s390_supply_ptrace_register): Likewise.
20010 (s390_fill_gregset): Call s390_collect_ptrace_register.
20011 (the_low_target): Update.
20012
20013 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20014 (ppc_supply_ptrace_register): Likewise.
20015 (the_low_target): Update.
20016
20017 * linux-i386-low.c (the_low_target): Update.
20018 * linux-x86-64-low.c (the_low_target): Update.
20019
d61ddec4
UW
200202008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20021
20022 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20023 reg-s390.o and reg-s390x.o.
20024
20025 * linux-low.c (new_inferior): New global variable.
20026 (linux_create_inferior, linux_attach): Set it.
20027 (linux_wait_for_process): Call the_low_target.arch_setup after the
20028 target has stopped for the first time.
20029 (initialize_low): Do not call the_low_target.arch_setup.
20030
20031 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20032 (s390_set_pc): Likewise.
20033 (s390_arch_setup): New function.
20034 (the_low_target): Use s390_arch_setup as arch_setup routine.
20035
20036 * regcache.c (realloc_register_cache): New function.
20037 (set_register_cache): Call it for each existing regcache.
20038
d05b4ac3
UW
200392008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20040
20041 * server.h (init_registers): Remove prototype.
20042
20043 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20044 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20045 instead of init_registers ().
20046 * linux-arm-low.c (init_registers_arm): Add prototype.
20047 (init_registers_arm_with_iwmmxt): Likewise.
20048 (the_low_target): Add initializer for arch_setup field.
20049 * linux-cris-low.c (init_registers_cris): Add prototype.
20050 (the_low_target): Add initializer for arch_setup field.
20051 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20052 (the_low_target): Add initializer for arch_setup field.
20053 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20054 (the_low_target): Add initializer for arch_setup field.
20055 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20056 (the_low_target): Add initializer for arch_setup field.
20057 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20058 (the_low_target): Add initializer for arch_setup field.
20059 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20060 (the_low_target): Add initializer for arch_setup field.
20061 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20062 (init_registers_mips64_linux): Likewise.
20063 (the_low_target): Add initializer for arch_setup field.
20064 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20065 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20066 (the_low_target): Add initializer for arch_setup field.
20067 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20068 (init_registers_powerpc_64): Likewise.
20069 (the_low_target): Add initializer for arch_setup field.
20070 * linux-s390-low.c (init_registers_s390): Add prototype.
20071 (init_registers_s390x): Likewise.
20072 (the_low_target): Add initializer for arch_setup field.
20073 * linux-sh-low.c (init_registers_sh): Add prototype.
20074 (the_low_target): Add initializer for arch_setup field.
20075 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20076 (the_low_target): Add initializer for arch_setup field.
20077 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20078 (the_low_target): Add initializer for arch_setup field.
20079
20080 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20081 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20082 instead of init_registers ().
20083 * win32-arm-low.c (init_registers_arm): Add prototype.
20084 (the_low_target): Add initializer for arch_setup field.
20085 * win32-i386-low.c (init_registers_i386): Add prototype.
20086 (the_low_target): Add initializer for arch_setup field.
20087
20088 * spu-low.c (init_registers_spu): Add prototype.
20089 (initialize_low): Call initialie_registers_spu () instead of
20090 initialize_registers ().
20091
fd96d250
PA
200922008-02-19 Pedro Alves <pedro@codesourcery.com>
20093
20094 * server.c (handle_v_requests): When handling the vRun and vAttach
20095 packets, if already debugging a process, don't kill it. Return an
20096 error instead.
20097
d41b6bb4
DJ
200982008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20099
20100 * server.c (handle_query): Correct length check.
20101
5ac588cf
PA
201022008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20103
20104 * win32-low.c (do_initial_child_stuff): Add process handle
20105 parameter. Set current_process_handle and current_process_id from the
20106 parameters. Clear globals.
20107 (win32_create_inferior): Don't set current_process_handle and
20108 current_process_id here. Instead pass them on the call to
20109 do_initial_child_stuff.
20110 (win32_attach): Likewise.
20111 (win32_clear_inferiors): New.
20112 (win32_kill): Don't close the current process handle or the
20113 current thread handle here. Instead call win32_clear_inferiors.
20114 (win32_detach): Don't open a new handle to the process. Call
20115 win32_clear_inferiors.
20116 (win32_join): Don't rely on current_process_handle; open a new
20117 handle using the process id.
20118 (win32_wait): Call win32_clear_inferiors when the inferior process
20119 has exited.
20120
ecd7ecbc
DJ
201212008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20122
20123 * server.c (monitor_show_help): Add "exit".
20124
1525d545
MG
201252008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20126
ecd7ecbc 20127 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20128 (clean): Add reg-xtensa.c.
20129 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20130 * configure.srv (xtensa*-*-linux*) New target.
20131 * linux-xtensa-low.c: New.
20132 * xtensa-xtregs.c: New.
1525d545 20133
59a016f0
PA
201342008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20135
20136 * hostio.c: Don't include errno.h.
20137 (errno_to_fileio_errno): Move to hostio-errno.
20138 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20139 error number outputting to the target->hostio_last_error callback.
20140 (hostio_packet_error): Use FILEIO_EINVAL directly.
20141 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20142 calls to hostio_error.
20143 * hostio-errno.c: New.
20144 * server.h (hostio_last_error_from_errno): Declare.
20145 * target.h (target_ops): Add hostio_last_error member.
20146 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20147 as hostio_last_error handler.
889bf7c5 20148 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20149 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20150 (wince_hostio_last_error): New functions.
20151 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20152 as hostio_last_error handler.
20153 (win32_target_ops) [!_WIN32_WCE]: Register
20154 hostio_last_error_from_errno as hostio_last_error handler.
20155 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20156 (hostio-errno.o): New rule.
20157 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20158 * configure.srv (srv_hostio_err_objs): New variable. Default to
20159 hostio-errno.o.
20160 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20161 * configure: Regenerate.
20162
2d717e4f
DJ
201632008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20164
20165 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20166 (linux_kill, linux_detach): Clean up the process list.
20167 * remote-utils.c (remote_open): Improve port number parsing.
20168 (putpkt_binary, input_interrupt): Only send interrupts if the target
20169 is running.
20170 * server.c (extended_protocol): Make static.
20171 (attached): Define earlier.
20172 (exit_requested, response_needed, program_argv): New variables.
20173 (target_running): New.
20174 (start_inferior): Clear attached here.
20175 (attach_inferior): Set attached here.
20176 (require_running): Define.
20177 (handle_query): Use require_running and target_running. Implement
20178 "monitor exit".
20179 (handle_v_attach, handle_v_run): New.
20180 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20181 (gdbserver_usage): Update.
20182 (main): Redo argument parsing. Handle --debug and --multi. Handle
20183 --attach along with other options or after the port. Save
20184 program_argv. Support no initial program. Resynchronize
20185 communication with GDB after an error. Handle "monitor exit".
20186 Use require_running and target_running. Always allow the extended
20187 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20188 restart in extended mode.
20189 * README: Refer to the GDB manual. Update --attach usage.
20190
7407e2de
AS
201912007-12-20 Andreas Schwab <schwab@suse.de>
20192
20193 * linux-low.c (STACK_SIZE): Define.
20194 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20195 (linux_test_for_tracefork): Likewise.
20196
b65d95c5
DJ
201972007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20198
20199 * linux-low.c (linux_wait_for_event): Update messages. Do not
20200 reinsert auto-delete breakpoints.
20201 * mem-break.c (struct breakpoint): Change return type of handler to
20202 int.
20203 (set_breakpoint_at): Update handler type.
20204 (reinsert_breakpoint_handler): Return 1 instead of calling
20205 delete_breakpoint.
20206 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20207 setting a new one.
20208 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20209 * mem-break.h (set_breakpoint_at): Update handler type.
20210 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20211 * win32-low.c (auto_delete_breakpoint): New.
20212 (get_child_debug_event): Use it.
20213
4e799345
DJ
202142007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20215
20216 * configure.ac: Check for pread and pwrite.
20217 * hostio.c (handle_pread): Fall back to lseek and read.
20218 (handle_pwrite): Fall back to lseek and write.
20219 * config.in, configure: Regenerated.
20220
27524b67
DJ
202212007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20222
20223 * server.c (myresume): Add own_buf argument.
20224 (main): Update calls.
20225
a20d5e98
DJ
202262007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20227
20228 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20229 * remote-utils.c (remote_open): Do not call disable_async_io.
20230 (block_async_io): Delete.
20231 (unblock_async_io): Make static.
20232 (initialize_async_io): New.
20233 * server.c (handle_v_cont): Handle async I/O here.
20234 (myresume): Likewise. Move other common resume tasks here...
20235 (main): ... from here. Call initialize_async_io. Disable async
20236 I/O before the main loop.
20237 * server.h (initialize_async_io): Declare.
20238 (block_async_io, unblock_async_io): Delete prototypes.
20239 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20240
b79d787e
DJ
202412007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20242
20243 * remote-utils.c (readchar): Allow binary data in received messages.
20244
d97903b2
PA
202452007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20246
20247 * win32-low.c (attaching): New global.
20248 (win32_create_inferior): Clear the `attaching' global.
20249 (win32_attach): Set the `attaching' global.
20250 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20251 attaching. Only set a breakpoint at the entry point if not
20252 attaching.
20253
311de423
PA
202542007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20255
20256 * server.c (main): Don't report dll events on the initial
20257 connection on attaches.
20258
6c2d16d2
PA
202592007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20260
20261 * server.c (main): Relax numerical bases supported for the pid of
20262 the --attach command line argument.
20263
5ca906e6
PA
202642007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20265
20266 * win32-low.c (win32_attach): Call OpenProcess before
20267 DebugActiveProcess, not after. Add last error output to error
20268 call.
20269
9c6c8194
PA
202702007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20271
20272 * win32-low.c (win32_get_thread_context)
20273 (win32_set_thread_context): New functions.
20274 (thread_rec): Use win32_get_thread_context.
20275 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20276 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20277 field.
20278
4d5d1aaa
PA
202792007-12-03 Leo Zayas
20280 Pedro Alves <pedro_alves@portugalmail.pt>
20281
20282 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20283 global variables.
20284 (child_add_thread): Minor cleanup.
20285 (child_continue): Resume artificially suspended threads before
20286 calling ContinueDebugEvent.
20287 (suspend_one_thread): New.
20288 (fake_breakpoint_event): New.
20289 (get_child_debug_event): Change return type to int. Check here if
20290 gdb sent an interrupt request. If a soft interrupt was requested,
20291 fake a breakpoint event. Return 0 if there is no event to handle,
20292 and 1 otherwise.
20293 (win32_wait): Don't check here if gdb sent an interrupt request.
20294 Ensure there is a valid event to handle.
20295 (win32_request_interrupt): Add soft interruption method as last
20296 resort.
20297
c436e841
PA
202982007-12-03 Leo Zayas
20299 Pedro Alves <pedro_alves@portugalmail.pt>
20300
20301 * win32-low.h (win32_thread_info): Add descriptions to the
20302 structure members. Replace `suspend_count' counter by a
20303 `suspended' flag.
20304 * win32-low.c (thread_rec): Update condition of when to get the
20305 context from the inferior. Rely on ContextFlags being set if it
20306 has already been retrieved. Only suspend the inferior thread if
20307 we haven't already. Warn if that fails.
20308 (continue_one_thread): s/suspend_count/suspended/. Only call
20309 ResumeThread once. Warn if that fails.
20310
e7b5fa67
PA
203112007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20312
20313 * win32-low.c (win32_wait): Don't read from the inferior when it
20314 has already exited.
20315
a385171d
PA
203162007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20317
20318 * Makefile.in (win32_low_h): New variable.
20319 (win32-low.o): Add dependency on $(win32_low_h).
20320 (win32-arm-low.o, win32-i386-low.o): New rules.
20321
f80c84b3
DJ
203222007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20323
20324 * hostio.c: Correct copyright year.
20325
a6b151f1
DJ
203262007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20327
20328 * Makefile.in (OBS): Add hostio.o.
20329 (hostio.o): New rule.
20330 * server.h (handle_vFile): Declare.
20331 * hostio.c: New file.
20332 * server.c (handle_v_requests): Take packet_len and new_packet_len
20333 for binary packets. Call handle_vFile.
20334 (main): Update call to handle_v_requests.
20335
f9387fc3
DJ
203362007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20337
20338 * linux-low.c: Include <sched.h>.
20339
51c2684e
DJ
203402007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20341
20342 * linux-low.c (linux_tracefork_grandchild): New.
20343 (linux_tracefork_child): Use clone.
20344 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20345
75f83163
JB
203462007-10-31 Joel Brobecker <brobecker@adacore.com>
20347
20348 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20349
da5898ce
DJ
203502007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20351
20352 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20353
24a09b5f
DJ
203542007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20355
20356 * inferiors.c (change_inferior_id): Delete.
20357 (add_pid_to_list, pull_pid_from_list): New.
20358 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20359 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20360 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20361 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20362 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20363 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20364 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20365 (using_threads): Always set to 1.
20366 (handle_extended_wait): New.
20367 (add_process): Do not set TID.
20368 (linux_create_inferior): Set must_set_ptrace_flags.
20369 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20370 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20371 (linux_thread_alive): Rename TID argument to LWPID.
20372 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20373 (linux_wait_for_event): Do not use TID or check using_threads. Update
20374 call to dead_thread_notify. Call handle_extended_wait.
20375 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20376 (send_sigstop): Delete sigstop_sent.
20377 (wait_for_sigstop): Avoid TID.
20378 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20379 (linux_test_for_tracefork): New.
20380 (linux_lookup_signals): Use thread_db_active and
20381 linux_supports_tracefork_flag.
20382 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20383 * linux-low.h (get_process_thread): Avoid TID.
20384 (struct process_ifo): Move thread_known and tid to the end. Remove
20385 sigstop_sent.
20386 (linux_attach_lwp, thread_db_init): Update prototypes.
20387 * server.h (change_inferior_id): Delete prototype.
20388 (add_pid_to_list, pull_pid_from_list): New prototypes.
20389 * thread-db.c (thread_db_use_events): New.
20390 (find_first_thread): Rename to...
20391 (find_one_thread): ...this. Update callers and messages. Do not
20392 call fatal. Check thread_db_use_events. Do not call
20393 change_inferior_id or new_thread_notify.
20394 (maybe_attach_thread): Update. Do not call new_thread_notify.
20395 (thread_db_init): Set thread_db_use_events. Check use_events.
20396 * utils.c (fatal, warning): Correct message prefix.
20397
30ed0a8f
DJ
203982007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20399
20400 * Makefile.in (clean): Remove new files.
20401 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20402 (powerpc-64.o, powerpc-64.c): New rules.
20403 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20404 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20405 with SPE.
20406 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20407 SPE targets.
20408 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20409 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20410 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20411 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20412 (target_regsets): Add AltiVec and SPE register sets.
20413 * configure.ac: Check for AltiVec and SPE.
20414 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20415 (ppc_fill_vrregset, ppc_store_vrregset): New.
20416 (target_regsets): Add AltiVec register set.
20417 * configure: Regenerated.
20418
fd462a61
DJ
204192007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20420
20421 * linux-low.c (O_LARGEFILE): Define.
20422 (linux_read_memory): Use /proc/PID/mem.
20423 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20424 * configure, config.in: Regenerated.
20425
69f223ed
DJ
204262007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20427
20428 * linux-low.c (linux_wait_for_event): Do not pass signals while
20429 single-stepping.
20430
aec18585
PA
204312007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20432
20433 * win32-low.c (create_process): New.
20434 (win32_create_inferior): Use create_process instead of
20435 CreateProcess. If create_process failed retry appending an ".exe"
20436 suffix. Store the GetLastError result immediatelly after
20437 create_process calls and use it on the call to error.
20438
34d86ddd
PA
204392007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20440
20441 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20442
5a0e3bd0
JB
204432007-08-23 Joel Brobecker <brobecker@adacore.com>
20444
20445 * configure.ac: Switch license to GPLv3.
20446
f88c79e6
MS
204472007-08-01 Michael Snyder <msnyder@access-company.com>
20448
20449 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20450
6b3d9b83
PA
204512007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20452
20453 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20454 typedef.
20455 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20456 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20457 CloseToolhelp32Snapshot.
20458 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20459 CloseToolhelp32Snapshot.
20460
c588c53c
MS
204612007-07-27 Michael Snyder <michael.snyder@access-company.com>
20462
20463 * server.c (main): Check for inferior exit before main loop.
20464
aa0403d9
PA
204652007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20466
20467 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20468 instead of on tmp_desc.
20469
255e7678
DJ
204702007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20471 Daniel Jacobowitz <dan@codesourcery.com>
20472
20473 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20474 (add_thread): Minor cleanups.
20475 (clear_inferiors): Move lower in the file. Clear the DLL
20476 list.
20477 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20478 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20479 (xml_escape_text): New.
20480 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20481 for qSupported.
20482 (handle_v_cont): Report errors.
20483 (gdbserver_version): Update.
20484 (main): Correct size of own_buf. Do not report initial DLL events.
20485 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20486 (unloaded_dll, xml_escape_text): New.
20487 * win32-low.c (enum target_waitkind): Update comments.
20488 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20489 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20490 (win32_EnumProcessModules, win32_GetModuleInformation)
20491 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20492 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20493 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20494 (win32_Module32First, win32_Module32Next, load_toolhelp)
20495 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20496 (get_child_debug_event): Handle DLL events.
20497 (win32_wait): Likewise.
20498
0d37add9
DJ
204992007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20500
20501 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20502 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20503
45e2715e
PA
205042007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20505
20506 * win32-low.c (handle_output_debug_string): Ignore event if not
20507 waiting.
20508
c5674cf1
PA
205092007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20510
20511 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20512
2bbe3cc1
DJ
205132007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20514
20515 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20516
ae13219e
DJ
205172007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20518
20519 * inferiors.c (change_inferior_id): Add comment.
20520 * linux-low.c (check_removed_breakpoint): Add an early
20521 prototype. Improve debug output.
20522 (linux_attach): Doc update.
20523 (linux_detach_one_process, linux_detach): Clean up before releasing
20524 each process.
20525 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20526 * linux-low.h (struct process_info): Doc improvement.
20527 * mem-break.c (delete_all_breakpoints): New.
20528 * mem-break.h (delete_all_breakpoints): New prototype.
20529 * thread-db.c (find_first_thread): New.
20530 (thread_db_create_event): Call it instead of
20531 thread_db_find_new_threads. Clean up unused variables.
20532 (maybe_attach_thread): Remove first thread handling.
20533 (thread_db_find_new_threads): Use find_first_thread.
20534 (thread_db_get_tls_address): Likewise.
20535
4105de34
DJ
205362007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20537
20538 * thread-db.c (thread_db_find_new_threads): Add prototype.
20539 (thread_db_create_event): Check for the main thread before adding
20540 a new thread.
20541 (maybe_attach_thread): Only enable event reporting if TID == 0.
20542 (thread_db_get_tls_address): Check for new threads.
20543
2b876972
DJ
205442007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20545
20546 * linux-low.c (linux_create_inferior): Try execv before execvp.
20547 * spu-low.c (spu_create_inferior): Likewise.
20548
7a245884
DJ
205492007-06-13 Mike Frysinger <vapier@gentoo.org>
20550
20551 * linux-low.c (linux_create_inferior): Change execv to execvp.
20552 * spu-low.c (spu_create_inferior): Likewies.
20553
117ce543
DJ
205542007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20555
20556 * Makefile.in (clean): Clean new files instead of deleted ones.
20557 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20558 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20559 rules.
20560 * configure.srv: Specify XML files and new regformats for MIPS and
20561 MIPS64 GNU/Linux.
20562 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20563 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20564 an entry for the restart register.
20565 (mips_cannot_fetch_register, mips_cannot_store_register)
20566 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20567 register names to match the XML descriptions.
20568 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20569 restart register instead of $0.
20570
0e7f50da
UW
205712007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20572 Markus Deuling <deuling@de.ibm.com>
20573
20574 * remote-utils.c (decode_xfer_write): New function.
20575 * server.h (decode_xfer_write): Add prototype.
20576 * server.c (handle_query): Add PACKET_LEN argument. Support
20577 qXfer:spu:read and qXfer:spu:write packets.
20578 (main): Pass packet_len to handle_query.
20579 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20580 * target.h (target_ops): Add qxfer_spu.
20581
374c1d38
UW
205822007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20583
20584 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20585 accessing non-seekable spufs files.
20586
bb63802a
UW
205872007-05-16 Markus Deuling <deuling@de.ibm.com>
20588
889bf7c5 20589 * server.c (handle_query): Add reply for qC packet.
bb63802a 20590
7390519e
PA
205912007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20592 Leo Zayas <lerele@champenstudios@com>
20593
20594 * server.h (check_remote_input_interrupt_request): New function.
20595 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20596 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20597 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20598 (check_remote_input_interrupt_request): New function.
20599 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20600 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20601 winapi_GenerateConsoleCtrlEvent): New typedefs.
20602 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20603 to 250 ms.
20604 (win32_wait): Check for remote interrupt request
20605 with check_remote_input_interrupt_request.
20606 (win32_request_interrupt): New function.
20607 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20608
34b34921
PA
206092007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20610
20611 * win32-low.c (debug_registers_changed,
20612 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20613 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20614 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20615 (thread_rec): Get context using the low target.
20616 (child_add_thread): Call thread_added on the low target,
20617 which does the same thing.
20618 (regptr): Delete.
20619 (do_initial_child_stuff): Remove debug registers references.
20620 Set context using the low target. Resume threads after
20621 setting the contexts.
20622 (child_continue): Remove dead variable. Remove debug
20623 registers references.
20624 (child_fetch_inferior_registers): Go through the low target.
20625 (do_child_store_inferior_registers): Remove.
20626 (child_store_inferior_registers): Go through the low target.
20627 (win32_resume): Remove debug registers references.
20628 Set context using the low target.
20629 (handle_exception): Change return type to void. Don't record
20630 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20631 first chance exception.
889bf7c5 20632 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20633 goto loop. Always return after waiting for debug event.
20634 (win32_wait): Convert to switch statement. Handle spurious
20635 events.
20636
20637 * win32-i386-low.c (debug_registers_changed,
20638 debug_registers_used): New.
20639 (initial_stuff): Rename to ...
20640 (i386_initial_stuff): ... this. Clear debug registers
20641 state variables.
20642 (store_debug_registers): Delete.
20643 (i386_get_thread_context): New.
20644 (load_debug_registers): Delete.
20645 (i386_set_thread_context): New.
20646 (i386_thread_added): New.
20647 (single_step): Rename to ...
20648 (i386_single_step): ... this.
20649 (do_fetch_inferior_registers): Rename to ...
20650 (i386_fetch_inferior_register): ... this.
20651 (i386_store_inferior_register): New.
20652 (the_low_target): Adapt to new interface.
20653
20654 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20655 (arm_get_thread_context): New.
20656 (arm_set_thread_context): New.
20657 (regptr): New.
20658 (do_fetch_inferior_registers): Rename to ...
20659 (arm_fetch_inferior_register): ... this.
20660 (arm_store_inferior_register): New.
20661 (arm_wince_breakpoint): Reimplement as unsigned long.
20662 (arm_wince_breakpoint_len): Define.
20663 (the_low_target): Adapt to new interface.
20664
20665 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20666 load_debug_registers. Add get_thread_context, set_thread_context,
20667 thread_added and store_inferior_register. Rename
20668 fetch_inferior_registers to fetch_inferior_register.
20669 (regptr): Remove declaration.
20670
dd6953e1
PA
206712007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20672
20673 * linux-low.c (linux_detach): Change return type to int. Return 0.
20674 * spu-low.c (spu_detach): Likewise.
20675
444d6139
PA
206762007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20677
20678 * target.h (target_ops): Change return type of detach to int.
20679 Add join.
20680 (join_inferior): New.
20681 * server.c (main): Don't skip detach support on mingw32.
20682 If the inferior doesn't support detaching return error.
20683 Call join_inferior instead of using waitpid.
20684 * linux-low.c (linux_join): New.
20685 (linux_target_op): Add linux_join.
20686 * spu-low.c (spu_join): New.
20687 (spu_target_ops): Add spu_join.
20688 * win32-low.c (win32_detach): Adapt to new interface.
20689 Reopen current_process_handle before detaching. Issue a child
20690 resume before detaching.
20691 (win32_join): New.
20692 (win32_target_op): Add win32_join.
20693
1d5315fe
PA
206942007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20695
20696 * win32-low.c (win32-attach): Fix return value.
20697 * target.h (target_ops): Describe ATTACH return values.
20698
bf914831
PA
206992007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20700
20701 * win32-low.c (GETPROCADDRESS): Define.
20702 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20703 (winapi_DebugSetProcessKillOnExit): Likewise.
20704 (win32_create_inferior): Force usage of ansi CreateProcessA.
20705 (win32_attach): Use GETPROCADDRESS.
20706 (win32_detach): Likewise.
20707
f72f3e60
PA
207082007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20709
20710 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20711
ed50f18f
PA
207122007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20713
20714 * win32-low.c: Commit leftover changes from 2007-03-29.
20715
0c2ead7e
DJ
207162007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20717
20718 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20719 fields short instead of int. Add explicit padding.
20720 (i387_cache_to_fsave): Remove unnecessary casts.
20721 (i387_fsave_to_cache): Doc fix.
20722 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20723
73725ff3
DJ
207242007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20725
20726 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20727 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20728
d99f33d8
PA
207292007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20730
20731 * configure.srv (arm*-*-mingw32ce*): Move near the other
20732 arm targets.
20733
68070c10
PA
207342007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20735
2482afc6 20736 * configure.ac: Add errno checking.
68070c10
PA
20737 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20738 sys/file.h and malloc.h.
20739 (AC_CHECK_DECLS): Add perror.
20740 (srv_mingwce): Handle.
2482afc6 20741 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20742 win32-i386-low.o to srv_tgtobj.
20743 (i[34567]86-*-mingw*): Likewise.
20744 (arm*-*-mingw32ce*): Add case.
20745 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20746 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20747 [__MINGW32CE__] (strerror): New function.
20748 [__MINGW32CE__] (errno): Define to GetLastError.
20749 [__MINGW32CE__] (COUNTOF): New macro.
20750 (remote_open): Remove extra close call.
20751 * mem-break.c (delete_breakpoint_at): New function.
20752 * mem-break.h (delete_breakpoint_at): Declare.
20753 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20754 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20755 [USE_WIN32API] (read, write): Add char* casts.
20756 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20757 * server.h: Include wincecompat.h on Windows CE.
20758 [HAVE_ERRNO_H]: Check.
20759 (perror): Declare if not declared.
20760 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20761 (perror_with_name): Remove errno declaration.
20762 * wincecompat.h: New.
20763 * wincecompat.c: New.
20764 * win32-low.h: New.
20765 * win32-arm-low.c: New.
20766 * win32-i386-low.c: New.
20767 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20768 (OUTMSG2): Make it safe.
20769 (_T): New macro.
20770 (COUNTOF): New macro.
20771 (NUM_REGS): Get it from the low target.
20772 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20773 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20774 (thread_rec): Let low target handle debug registers.
20775 (child_add_thread): Likewise.
20776 (child_init_thread_list): Likewise.
20777 (continue_one_thread): Likewise.
20778 (regptr): New.
20779 (do_child_fetch_inferior_registers): Move to ...
20780 * win32-i386-low.c: ... here, and rename to ...
20781 (do_fetch_inferior_registers): ... this.
889bf7c5 20782 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20783 Go through the low target.
20784 (do_child_store_inferior_registers): Use regptr.
20785 (strwinerror): New function.
20786 (win32_create_inferior): Handle Windows CE.
20787 Use strwinerror instead of strerror on Windows error
20788 codes. Add program to the error output.
20789 Don't close the main thread handle on Windows CE.
20790 (win32_attach): Use coredll.dll on Windows CE.
20791 (win32_kill): Close current process and current
20792 thread handles.
20793 (win32_detach): Use coredll.dll on Windows CE.
20794 (win32_resume): Let low target handle debug registers, and
20795 step request.
20796 (handle_exception): Add/Remove initial breakpoint. Avoid
20797 non-existant WSTOPSIG on Windows CE.
20798 (win32_read_inferior_memory): Cast to remove warning.
20799 (win32_arch_string): Go through the low target.
20800 (initialize_low): Call set_breakpoint_data with the low
20801 target's breakpoint.
20802 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20803 FOP_REGNUM, mappings): Move to ...
20804 * win32-i386-low.c: ... here.
20805 * win32-low.c (win32_thread_info): Move to ...
20806 * win32-low.h: ... here.
20807 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20808 win32-arm-low.c and wincecompat.c.
20809 (all:): Add $EXEEXT.
20810 (install-only:): Likewise.
20811 (gdbserver:): Likewise.
20812 (gdbreplay:): Likewise.
20813 * config.in: Regenerate.
20814 * configure: Regenerate.
20815
41093d81
PA
208162007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20817
20818 * win32-low.c: Rename typedef thread_info to
20819 win32_thread_info throughout.
20820
544afa54
PA
208212007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20822
20823 * win32-i386-low.c: Rename to ...
20824 * win32-low.c: ... this.
20825 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20826 * Makefile.in: Likewise.
20827
bce7165d
PA
208282007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20829
20830 * remote-utils.c (monitor_output): Constify msg parameter.
20831 * server.h (monitor_output): Likewise.
20832 * win32-i386-low.c (handle_output_debug_string): New.
20833 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20834 handle_output_debug_string.
20835 (get_child_debug_event): Likewise.
20836
506c7aa0
DJ
208372007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20838
20839 * server.c (main): Correct strtoul check.
20840
42c81e2a
DJ
208412007-03-27 Jon Ringle <jon@ringle.org>
20842
20843 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20844
9453113a
DJ
208452007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20846
20847 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20848
64a69107
DJ
208492007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20850
20851 * terminal.h: Check HAVE_SGTTY_H.
20852
208532007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20854
20855 * remote-utils.c (remote_open): Print out the assigned port number.
20856
c74d0ad8
DJ
208572007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20858
20859 * remote-utils.c (monitor_output): New function.
20860 * server.c (debug_threads): Define here.
20861 (monitor_show_help): New function.
20862 (handle_query): Handle qRcmd.
20863 (main): Do not handle 'd' packet.
20864 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20865 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20866 of debug_threads.
20867
de7c3b4a
PA
208682007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20869
20870 * Makefile.in (EXEEXT): New.
20871 (clean): Use $(EXEEXT).
20872
ef57601b
PA
208732007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20874
20875 * target.h (target_ops): Rename send_signal to request_interrupt,
20876 and remove enum target_signal parameter.
20877 * linux-low.c (linux_request_interrupt): Rename from
20878 linux_send_signal, and always send SIGINT.
20879 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20880 and always send SIGINT.
20881 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20882 of send_signal.
20883 (input_interrupt): Likewise.
20884
820f2bda
PA
208852007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20886
20887 * server.c (get_features_xml): Check if target implemented
20888 arch_string.
20889 * win32-i386-low.c (win32_arch_string): New.
20890 (win32_target_ops): Add win32_arch_string as arch_string member.
20891
ab39bf24
UW
208922007-02-22 Markus Deuling <deuling@de.ibm.com>
20893
20894 * spu-low.c (spu_arch_string): New.
20895 (spu_target_ops): Add spu_arch_string.
20896
61ff6e04
DJ
208972007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20898
20899 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20900 * configure.ac: Do not check for terminal.h.
20901 * configure, config.in: Regenerated.
20902
fb1e4ffc
DJ
209032007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20904
20905 * Makefile.in (OBS): Add $(XML_BUILTIN).
20906 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20907 (clean): Update.
20908 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20909 (arm-with-iwmmxt.c): New.
20910 * config.in, configure: Regenerate.
20911 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20912 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20913 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20914 (arm*-*-linux*): Add iWMMXt and regset support.
20915 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20916 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20917 (arm_store_wmmxregset, target_regsets): New.
20918 * server.c (get_features_xml): Take annex argument. Check builtin
20919 XML documents.
20920 (handle_query): Handle multiple annexes.
20921
0f48aa01
DJ
209222007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20923
20924 * remote-utils.c [USE_WIN32API] (read, write): Define.
20925 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20926 write.
20927
23181151
DJ
209282007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20929
20930 * linux-i386-low.c (the_low_target): Set arch_string.
20931 * linux-x86-64-low.c (the_low_target): Likewise.
20932 * linux-low.c (linux_arch_string): New.
20933 (linux_target_ops): Add it.
20934 * linux-low.h (struct linux_target_ops): Add arch_string.
20935 * server.c (write_qxfer_response): Use const void * for DATA.
20936 (get_features_xml): New.
20937 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20938 * target.h (struct target_ops): Add arch_string method.
20939
9d606399
DJ
209402007-01-03 Denis Pilat <denis.pilat@st.com>
20941 Daniel Jacobowitz <dan@codesourcery.com>
20942
20943 * linux-low.c (linux_kill): Handle being called with no threads.
20944 * win32-i386-low.c (win32_kill): Likewise.
20945 (get_child_debug_event): Clear current_process_handle.
20946
209472006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20948 Daniel Jacobowitz <dan@codesourcery.com>
20949
20950 * remote-utils.c (remote_open): Check the type of specified
20951 serial port devices before opening them.
20952 * server.c (main): Kill the inferior if an error occurs during
20953 the first remote_open.
20954
a5e13d24
DJ
209552006-12-05 Markus Deuling <deuling@de.ibm.com>
20956
20957 * README: Update supported targets.
20958
186947f7
DJ
209592006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20960
20961 * Makefile.in (clean): Remove reg-mips64.c.
20962 (reg-mips64.c, reg-mips64.o): New rules.
20963 * configure.srv: Handle mips64. Include regset support for mips.
20964 * linux-mips-low.c (union mips_register): New.
20965 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20966 (mips_breakpoint, mips_breakpoint_at): Use int.
20967 (mips_collect_register, mips_supply_register)
20968 (mips_collect_register_32bit, mips_supply_register_32bit)
20969 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20970 (mips_store_fpregset, target_regsets): New.
20971 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20972
a13e2c95
UW
209732006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20974
20975 * configure.srv: Add target "spu*-*-*".
20976 * Makefile.in (clean): Remove reg-spu.c.
20977 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20978 * spu-low.c: New file.
20979
cb7283db
DJ
209802006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20981
20982 * configure.ac: Correct td_thr_tls_get_addr test.
20983 * configure: Regenerated.
20984
89be2091
DJ
209852006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20986
20987 * linux-low.c (linux_wait_for_event): Reformat. Use the
20988 pass_signals array.
20989 * remote-utils.c (decode_address_to_semicolon): New.
20990 * server.c (pass_signals, handle_general_set): New.
20991 (handle_query): Mention QPassSignals for qSupported.
20992 (main): Call handle_general_set.
20993 * server.h (pass_signals, decode_address_to_semicolon): New.
20994
000ef4f0
DJ
209952006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20996
20997 * server.c (handle_query): Correct error handling for read_auxv.
20998
b7149293
UW
209992005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21000
21001 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21002 and srv_linux_thread_db to yes.
21003 * linux-s390-low.c (s390_fill_gregset): New function.
21004 (target_regsets): Define data structure.
21005
dae5f5cf
DJ
210062006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21007
21008 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21009 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21010 * config.in, configure: Regenerated.
21011 * inferiors.c (gdb_id_to_thread): New function.
21012 (gdb_id_to_thread_id): Use it.
21013 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21014 * linux-low.h (struct process_info): Add th member.
21015 (thread_db_get_tls_address): New prototype.
21016 * remote-utils.c (decode_address): Make non-static.
21017 * server.c (handle_query): Handle qGetTLSAddr.
21018 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21019 * target.h (struct target_ops): Add get_tls_address.
21020 * thread-db.c (maybe_attach_thread): Save the thread handle.
21021 (thread_db_get_tls_address): New.
21022
32ca6d61
DJ
210232006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21024
21025 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21026 (linux_resume_one_process): Take a siginfo_t *. Update all
21027 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21028 (struct pending_signals): Add a siginfo_t.
21029 (linux_wait_for_process): Always set last_status.
21030 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21031 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21032 * linux-low.h (struct process_info): Add last_status.
21033
5ffff7c1
DJ
210342006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21035
21036 * remote-utils.c (try_rle): New function.
21037 (putpkt_binary): Use it.
21038
8695c747
DJ
210392006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21040
21041 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21042 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21043 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21044 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21045 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21046 point registers.
21047
290fadea
RS
210482006-08-08 Richard Sandiford <richard@codesourcery.com>
21049
21050 * server.c (terminal_fd): New variable.
21051 (old_foreground_pgrp): Likewise.
21052 (restore_old_foreground_pgrp): New function.
21053 (start_inferior): Record the terminal file descriptor in terminal_fd
21054 and its original foreground group in old_foreground_pgrp. Register
21055 restore_old_foreground_pgrp with atexit().
21056
9f2e1e63
DJ
210572006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21058
21059 * server.c (handle_query): Correct qPart to qXfer.
21060
b80864fb
DJ
210612006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21062
21063 * configure.ac: Check for more headers which are missing on
21064 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21065 * configure.srv: Add Cygwin and mingw32.
21066 * remote-utils.c: Don't include headers unconditionally which
21067 are missing on mingw32. Include <winsock.h> for mingw32.
21068 (remote_open): Adjust for mingw32 support. Flush
21069 standard error after writing to it.
21070 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21071 (unblock_async_io, enable_async_io, disable_async_io)
21072 (readchar, getpkt): Update for Winsock support.
21073 (prepare_resume_reply): Expect a protocol signal number.
21074 * server.c: Disable <sys/wait.h> on mingw32.
21075 (start_inferior): Adjust for mingw32 support. Flush
21076 standard error after writing to it.
21077 (attach_inferior): Likewise. Use protocol signal
21078 numbers.
21079 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21080 and names.
21081 * win32-i386-low.c: New file.
21082 * Makefile.in (XM_CLIBS): Set.
21083 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21084 (win32-i386-low.o): New dependency rule.
21085 * linux-low.c (linux_wait): Use target signal numbers.
21086 * target.h (struct target_ops): Doc fix.
21087 * server.h (target_signal_to_name): New prototype.
21088 * gdbreplay.c: Don't include headers unconditionally which
21089 are missing on mingw32. Include <winsock.h> for mingw32.
21090 (remote_close, remote_open): Adjust for Winsock support.
21091 * configure, config.in: Regenerated.
21092
0876f84a
DJ
210932006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21094
21095 * server.c (decode_xfer_read, write_qxfer_response): New.
21096 (handle_query): Take a packet length argument. Handle
21097 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21098 the qSupported response.
21099 (main): Update call to handle_query.
21100
01f9e8fa
DJ
211012006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21102
21103 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21104 (putpkt_binary): Renamed from putpkt and adjusted for binary
21105 data.
21106 (putpkt): New wrapper for putpkt_binary.
21107 (readchar): Don't mask off the high bit.
21108 (decode_X_packet): New function.
21109 * server.c (main): Call putpkt_binary if a handler sets the packet
21110 length. Save the length of the incoming packet. Handle 'X'.
21111 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21112
be2a5f71
DJ
211132006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21114
21115 * server.c (handle_query): Handle qSupported.
21116
ea025f5f
DJ
211172006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21118
21119 * remote-utils.c (all_symbols_looked_up): New variable.
21120 (look_up_one_symbol): Check it.
21121 * server.h (look_up_one_symbol): New declaration.
21122 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21123
9308fc88
DJ
211242006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21125
21126 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21127 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21128 (PTRACE_GET_THREAD_AREA): Define.
21129 (ps_get_thread_area): New function.
21130
52fb6437
NS
211312006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21132
21133 * configure.srv (m68k*-*-uclinux*): New target.
21134 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21135 (linux_resume_one_process): Remove extraneous cast.
21136 (linux_read_offsets): New.
21137 (linux_target_op): Add linux_read_offsets on mmuless systems.
21138 * server.c (handle_query): Add qOffsets logic.
21139 * target.h (struct target_ops): Add read_offsets.
21140
21b0f40c
DJ
211412006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21142
21143 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21144 (PTRACE_GET_THREAD_AREA): Define.
21145 (ps_get_thread_area): New function.
21146 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21147 (linux-x86-64-low.o): Update.
21148
0050a760
DJ
211492006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21150
21151 * configure.ac: Remove checks for prfpregset_t.
21152 * gdb_proc_service.h: New file.
21153 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21154 new "gdb_proc_service.h".
21155 * proc-service.c: Likewise.
21156 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21157 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21158 * Makefile.in (gdb_proc_service_h): Updated.
21159 * configure, config.in: Regenerated.
21160
b92a518e
DJ
211612006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21162
21163 * remote-utils.c (prepare_resume_reply): Move declaration
21164 of gdb_id_from_wait to the top of the block.
21165
545587ee
DJ
211662006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21167
21168 * linux-low.c (regsets_store_inferior_registers): Read the regset
21169 from the target before filling it.
21170
9db87ebd
DJ
211712006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21172
21173 * server.c (attach_inferior): Return SIGTRAP for a successful
21174 attach.
21175
dd24457d
DJ
211762006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21177
21178 * Makefile.in (OBS): Add version.o.
21179 (STAGESTUFF): Delete.
21180 (version.o): Add dependencies.
21181 (version.c): Replace rule.
21182 (clean): Remove version.c.
21183 * server.c (gdbserver_version): New.
21184 (gdbserver_usage): Use printf.
21185 (main): Handle --version and --help.
21186 * server.h (version, host_name): Add declarations.
21187
6f0f660e
EZ
211882005-12-23 Eli Zaretskii <eliz@gnu.org>
21189
889bf7c5
PA
21190 * linux-arm-low.c:
21191 * linux-arm-low.c:
21192 * inferiors.c:
21193 * i387-fp.h:
21194 * i387-fp.c:
21195 * gdbreplay.c:
21196 * regcache.c:
21197 * proc-service.c:
21198 * mem-break.h:
21199 * mem-break.c:
21200 * linux-x86-64-low.c:
21201 * linux-sh-low.c:
21202 * linux-s390-low.c:
21203 * linux-ppc64-low.c:
21204 * linux-ppc-low.c:
21205 * linux-mips-low.c:
21206 * linux-m68k-low.c:
21207 * linux-m32r-low.c:
21208 * linux-low.h:
21209 * linux-low.c:
21210 * linux-ia64-low.c:
21211 * linux-i386-low.c:
21212 * linux-crisv32-low.c:
21213 * thread-db.c:
21214 * terminal.h:
21215 * target.h:
21216 * target.c:
21217 * server.h:
21218 * server.c:
21219 * remote-utils.c:
21220 * regcache.h:
21221 * utils.c:
21222 * Makefile.in:
21223 * configure.ac:
6f0f660e
EZ
21224 * gdbserver.1: Add (C) after Copyright. Update the FSF
21225 address.
21226
9d1fb177
DJ
212272005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21228
21229 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21230 (arm_breakpoint_at): Recognize both breakpoints.
21231 (the_low_target): Use the correct breakpoint instruction.
21232
011a70c2
DJ
212332005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21234
21235 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21236 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21237 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21238 (the_low_target): Update.
21239
7fb85e41
AS
212402005-10-25 Andreas Schwab <schwab@suse.de>
21241
21242 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21243
21244 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21245 (ia64_num_regs): Reduce to 462.
21246
3db0444b
DJ
212472005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21248
21249 * acinclude.m4: Correct quoting.
21250 * aclocal.m4: Regenerated.
21251
21252 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21253 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21254 (thread_db_init): Call thread_db_err_str.
21255 * configure.ac: Check for TD_VERSION.
21256 * config.in, configure: Regenerated.
21257
bee0189a
DJ
212582005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21259
21260 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21261
e9d25b98
DJ
212622005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21263
21264 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21265 is not available. Define HAVE_PTRACE_GETREGS if it is.
21266 * config.in, configure: Regenerated.
21267 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21268 * linux-i386-low.c, linux-m68k-low.c: Update to use
21269 HAVE_PTRACE_GETREGS.
21270 * linux-low.c (regsets_fetch_inferior_registers)
21271 (regsets_store_inferior_registers): Only return 0 if we processed
21272 GENERAL_REGS.
21273 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21274 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21275
a06660f7
DJ
212762005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21277
21278 * inferiors.c (struct thread_info): Add gdb_id.
21279 (add_thread): Add gdb_id argument.
21280 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21281 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21282 calls to add_thread.
21283 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21284 * server.c (handle_query): Use thread_to_gdb_id.
21285 (handle_v_cont, main): Use gdb_id_to_thread_id.
21286 * server.h (add_thread): Update prototype.
21287 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21288 prototypes.
21289
5a1f5858
DJ
212902005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21291
21292 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21293 left-padded registers.
21294 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21295 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21296
e122f1f5
SE
212972005-07-01 Steve Ellcey <sje@cup.hp.com>
21298
21299 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21300 * configure: Regenerate.
21301 * config.in: Regenerate.
21302 * server.h (NEED_DECLARATION_STRERROR):
21303 Replace with !HAVE_DECL_STRERROR.
21304
d592fa2f
DJ
213052005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21306
21307 * linux-low.c (linux_wait, linux_send_signal): Don't test
21308 an unsigned long variable for > 0 if it could be MAX_ULONG.
21309 * server.c (myresume): Likewise.
21310 * target.c (set_desired_inferior): Likewise.
21311
ccbd4912
MK
213122005-06-13 Mark Kettenis <kettenis@gnu.org>
21313
21314 * configure.ac: Simplify and improve check for socklen_t.
21315 * configure, config.in: Regenerate.
21316
f450004a
DJ
213172005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21318
21319 * acconfig.h: Remove.
21320 * configure.ac: Add a test for socklen_t. Use three-argument
21321 AC_DEFINE throughout.
21322 * config.in: Regenerated using autoheader 2.59.
21323 * configure: Regenerated.
21324
21325 * gdbreplay.c (socklen_t): Provide a default.
21326 (remote_open): Use socklen_t.
21327 * remote-utils.c (socklen_t): Provide a default.
21328 (remote_open): Use socklen_t.
21329 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21330 unsigned char.
21331
21332 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21333 char for buffers.
21334 * linux-low.c (linux_read_memory, linux_write_memory)
21335 (linux_read_auxv): Likewise.
21336 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21337 (check_mem_write): Likewise.
21338 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21339 Likewise.
21340 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21341 (registers_from_string, register_data): Likewise.
21342 * server.c (handle_query, main): Likewise.
21343 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21344 (decode_M_packet): Likewise.
21345 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21346 * target.h (struct target_ops): Update read_memory, write_memory,
21347 and read_auxv.
21348 (read_inferior_memory, write_inferior_memory): Update.
21349 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21350 to unsigned char *.
21351 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21352 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21353 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21354 linux-s390-low.c, linux-sh-low.c: Update for changes in
21355 read_inferior_memory and the_low_target->breakpoint.
21356
eee84df1
DJ
213572005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21358
21359 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21360 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21361 * configure.srv: Add powerpc64-*-linux*.
21362 * linux-ppc64-low.c: New file.
21363
45b134e5
OF
213642005-05-23 Orjan Friberg <orjanf@axis.com>
21365
21366 * linux-cris-low.c: New file with support for CRIS.
21367 * linux-crisv32-low.c: Ditto for CRISv32.
21368 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21369 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21370 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21371 reg-crisv32.o, and reg-crisv32.c to make rules.
21372 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21373 recognized targets.
21374
48d93c75
UW
213752005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21376
21377 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21378 of sizeof (PTRACE_XFER_TYPE).
21379 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21380
e013ee27
OF
213812005-05-12 Orjan Friberg <orjanf@axis.com>
21382
889bf7c5 21383 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21384 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21385 pointers for hardware watchpoint support.
21386 * linux-low.h (struct linux_target_ops): Ditto.
21387 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21388 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21389 to linux_target_ops.
21390 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21391 reply packet.
21392 * server.c (main): Recognize 'Z' and 'z' packets.
21393
b0ded00b
UW
213942005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21395
21396 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21397 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21398 (the_low_target): Add new members.
21399
8643e2ad
DJ
214002005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21401
21402 * proc-service.c (ps_lgetregs): Search all_processes instead of
21403 all_threads.
21404
fc620387
DJ
214052005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21406
21407 * server.c (start_inferior): Change return type to int.
21408 (attach_inferior): Change sigptr to int *.
21409 (handle_v_cont, handle_v_requests): Change signal to int *.
21410 (main): Change signal to int.
21411
214122005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21413
21414 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21415 * configure.srv: Add m32r*-*-linux*.
21416 * linux-m32r-low.c: New file.
21417
e0e76420
DJ
214182005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21419
21420 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21421
a1928bad
DJ
214222005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21423
21424 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21425 Take unsigned long arguments for PIDs.
21426 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21427 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21428 (wait_for_sigstop, linux_resume_one_process)
21429 (regsets_fetch_inferior_registers, linux_send_signal)
21430 (linux_read_auxv): Likewise. Update the types of variables holding
21431 PIDs. Update format string specifiers.
21432 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21433 * remote-utils.c (prepare_resume_reply): Likewise.
21434 * server.c (cont_thread, general_thread, step_thread)
21435 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21436 unsigned long.
21437 (handle_query): Update format specifiers.
21438 (handle_v_cont, main): Use strtoul for thread IDs.
21439 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21440 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21441 (general_thread, step_thread, thread_from_wait)
21442 (old_thread_from_wait): Update.
21443 * target.h (struct thread_resume): Use unsigned long for THREAD.
21444 (struct target_ops): Use unsigned long for arguments to attach and
21445 thread_alive.
21446
dcdb98d2
DJ
214472005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21448
21449 * acinclude.m4: Include bfd/bfd.m4 directly.
21450 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21451 <agriffis@toolchain.org>.
21452 * aclocal.m4, configure: Regenerated.
21453
bec39cab
AC
214542005-01-07 Andrew Cagney <cagney@gnu.org>
21455
21456 * configure.ac: Rename configure.in, require autoconf 2.59.
21457 * configure: Re-generate.
21458
434c4c77
DJ
214592004-12-08 Daniel Jacobowitz <dan@debian.org>
21460
21461 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21462 LIBS when finished.
21463 * aclocal.m4: Regenerated.
21464 * configure: Regenerated.
21465
db1d3e1b
AS
214662004-11-21 Andreas Schwab <schwab@suse.de>
21467
21468 * linux-m68k-low.c (m68k_num_gregs): Define.
21469 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21470 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21471 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21472 (m68k_breakpoint_at): New. Add to the_low_target.
21473
21474 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21475 srv_linux_thread_db to yes.
21476
43360365
JB
214772004-10-20 Joel Brobecker <brobecker@gnat.com>
21478
21479 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21480 (ARCH_SET_FS): Likewise.
21481 (ARCH_GET_FS): Likewise.
21482 (ARCH_GET_GS): Likewise.
21483
fd500816
DJ
214842004-10-16 Daniel Jacobowitz <dan@debian.org>
21485
21486 * linux-i386-low.c (ps_get_thread_area): New.
21487 * linux-x86-64-low.c (ps_get_thread_area): New.
21488 * linux-low.c: Include <sys/syscall.h>.
21489 (linux_kill_one_process): Don't kill the first thread here.
21490 (linux_kill): Kill the first thread here.
21491 (kill_lwp): New function.
21492 (send_sigstop, linux_send_signal): Use it.
21493 * proc-service.c: Clean up #ifdefs.
21494 (fpregset_info): Delete.
21495 (ps_lgetregs): Update and enable implementation.
21496 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21497 implementations.
21498 * remote-utils.c (struct sym_cache, symbol_cache): New.
21499 (input_interrupt): Print a clearer message.
21500 (async_io_enabled): New variable.
21501 (enable_async_io, disable_async_io): Use it. Update comments.
21502 (look_up_one_symbol): Use the symbol cache.
21503 * thread-db.c (thread_db_look_up_symbols): New function.
21504 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21505
f6de3c42
DJ
215062004-10-16 Daniel Jacobowitz <dan@debian.org>
21507
21508 * configure.in: Test for -rdynamic.
21509 * configure: Regenerated.
21510 * Makefile (INTERNAL_LDFLAGS): New.
21511 (gdbserver, gdbreplay): Use it.
21512
2c0fc042
AC
215132004-09-02 Andrew Cagney <cagney@gnu.org>
21514
21515 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21516
075b3282
DJ
215172004-03-23 Daniel Jacobowitz <drow@mvista.com>
21518
21519 * linux-low.c (linux_wait): Clear all_processes list also.
21520
fa6a77dc
DJ
215212004-03-12 Daniel Jacobowitz <drow@mvista.com>
21522
21523 * linux-low.c: Include <errno.h>. Remove extern declaration of
21524 errno.
21525
6d782a97
DJ
215262004-03-12 Daniel Jacobowitz <drow@mvista.com>
21527
21528 * gdbreplay.c, server.h, utils.c: Update copyright years.
21529
3a7fb99b
DJ
215302004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21531
21532 * server.c (main): Print child status or termination signal from
21533 variable 'signal', not 'sig'.
21534
c3e735a6
DJ
215352004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21536
21537 * linux-low.c (linux_read_memory): Change return type to
21538 int. Check for and return error from ptrace().
21539 * target.c (read_inferior_memory): Change return type to int. Pass
21540 back return status from the_target->read_memory().
21541 * target.h (struct target_ops): Adapt *read_memory() prototype.
21542 Update comment.
21543 (read_inferior_memory): Adapt prototype.
21544 * server.c (main): Return an error packet if
21545 read_inferior_memory() returns an error.
21546
a59d1c82
DJ
215472004-03-04 Daniel Jacobowitz <drow@mvista.com>
21548
21549 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21550 Unify with other clean targets.
21551
dc3f8883
DJ
215522004-02-29 Daniel Jacobowitz <drow@mvista.com>
21553
21554 * server.c (handle_v_cont): Call set_desired_inferior.
21555
89a208da
DJ
215562004-02-29 Daniel Jacobowitz <drow@mvista.com>
21557
21558 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21559
62ea82f5
DJ
215602004-02-29 Daniel Jacobowitz <drow@mvista.com>
21561
21562 * linux-low.c (linux_wait): Unblock async I/O.
21563 (linux_resume): Block and enable async I/O.
21564 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21565 * server.h (block_async_io, unblock_async_io): Add prototypes.
21566
6910d122
DJ
215672004-02-29 Daniel Jacobowitz <drow@mvista.com>
21568
21569 * remote-utils.c (remote_open): Print a status notice after
21570 opening a TCP port.
21571 * server.c (attach_inferior): Print a status notice after
21572 attaching.
21573
215742004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21575
21576 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21577
c89dc5d4
DJ
215782004-02-26 Daniel Jacobowitz <drow@mvista.com>
21579
21580 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21581 error packet.
21582 * server.c, target.h: Update copyright years.
21583
4b8dad4a
RM
215842004-02-25 Roland McGrath <roland@redhat.com>
21585
21586 * target.h (struct target_ops): New member `read_auxv'.
21587 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21588 * linux-low.c (linux_read_auxv): New function.
21589 (linux_target_ops): Initialize `read_auxv' member to that.
21590
d7446758
JB
215912004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21592
21593 Committed by Jim Blandy <jimb@redhat.com>.
21594
21595 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21596 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21597 instead of GPR_SIZE to distiguish s390 and s390x targets.
21598
5544ad89
DJ
215992004-01-31 Daniel Jacobowitz <drow@mvista.com>
21600
21601 * linux-low.c: Update copyright year.
21602 (check_removed_breakpoint): Clear pending_is_breakpoint.
21603 (linux_set_resume_request, linux_queue_one_thread)
21604 (resume_status_pending_p): New functions.
21605 (linux_continue_one_thread): Use process->resume.
21606 (linux_resume): Only resume threads if there are no pending events.
21607 * linux-low.h (struct process_info): Add resume request
21608 pointer.
21609
2a68b70e
DJ
216102004-01-30 Daniel Jacobowitz <drow@mvista.com>
21611
21612 * regcache.c (new_register_cache): Clear the allocated register
21613 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21614
64386c31
DJ
216152003-10-13 Daniel Jacobowitz <drow@mvista.com>
21616
21617 * linux-low.c (linux_resume): Take a struct thread_resume *
21618 argument.
21619 (linux_wait): Update call.
21620 (resume_ptr): New static variable.
21621 (linux_continue_one_thread): Renamed from
21622 linux_continue_one_process. Use resume_ptr.
21623 (linux_resume): Use linux_continue_one_thread.
21624 * server.c (handle_v_cont, handle_v_requests): New functions.
21625 (myresume): New function.
21626 (main): Handle 'v' case.
21627 * target.h (struct thread_resume): New type.
21628 (struct target_ops): Change argument of "resume" to struct
21629 thread_resume *.
21630 (myresume): Delete macro.
21631
c938e9b0
L
216322003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21633
21634 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21635 (uninstall): Support DESTDIR.
21636
7f313d07
BC
21637Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21638
21639 * configure.srv: Add xscale*linux copy of arm*linux entry.
21640
3b2fc2ea
DJ
216412003-07-24 Daniel Jacobowitz <drow@mvista.com>
21642
21643 * linux-arm-low.c (arm_reinsert_addr): New function.
21644 (the_low_target): Add arm_reinsert_addr.
21645
1c0a559e
MK
216462003-07-08 Mark Kettenis <kettenis@gnu.org>
21647
21648 * mem-break.c: Remove whitespace at end of file.
21649
43d5792c
DJ
216502003-06-28 Daniel Jacobowitz <drow@mvista.com>
21651
21652 * configure.in: Check whether we need to prototype strerror.
21653 * server.h: Optionally prototype strerror.
21654 * gdbreplay.c (perror_with_name): Use strerror.
21655 * linux-low.c (linux_attach_lwp): Use strerror.
21656 * utils.c (perror_with_name): Use strerror.
21657 * config.in, configure: Regenerated.
21658
c8a86edf
DJ
216592003-06-28 Daniel Jacobowitz <drow@mvista.com>
21660
21661 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21662 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21663
73d37363
DJ
216642003-06-20 Daniel Jacobowitz <drow@mvista.com>
21665
21666 * Makefile.in (SFILES): Update.
21667 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21668 low-sun3.c: Remove files.
21669
6ad8ae5c
DJ
216702003-06-17 Daniel Jacobowitz <drow@mvista.com>
21671
21672 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21673 (linux_detach_one_process, linux_detach): New functions.
21674 (linux_target_ops): Add linux_detach.
21675 * server.c (main): Handle 'D' packet.
21676 * target.h (struct target_ops): Add "detach" member.
21677 (detach_inferior): Define.
21678
1581182a
MK
216792003-06-13 Mark Kettenis <kettenis@gnu.org>
21680
21681 From Kelley Cook <kelleycook@wideopenwest.com>:
21682 * configure.srv: Accept i[34567]86 variants.
21683
e5379b03
DJ
216842003-06-05 Daniel Jacobowitz <drow@mvista.com>
21685
21686 * linux-low.c (linux_wait_for_event): Correct comment typos.
21687 (linux_resume_one_process): Call check_removed_breakpoint.
21688 (linux_send_signal): New function.
21689 (linux_target_ops): Add linux_send_signal.
21690 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21691 of kill.
21692 * target.h (struct target_ops): Add send_signal.
21693
2ff29de4
JB
216942003-05-29 Jim Blandy <jimb@redhat.com>
21695
21696 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21697 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21698 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21699 away part of the register's value.
21700
254787d4
DJ
217012003-03-26 Daniel Jacobowitz <drow@mvista.com>
21702
21703 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21704 (linux_wait_for_event, linux_init_signals): Likewise.
21705
94e10508
DJ
217062003-03-17 Daniel Jacobowitz <drow@mvista.com>
21707
21708 * configure.in: Check for stdlib.h.
21709 * configure: Regenerated.
21710 * config.in: Regenerated.
21711
4c0711e0
DJ
217122003-01-04 Andreas Schwab <schwab@suse.de>
21713
21714 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21715
ef66e766
AC
217162003-01-02 Andrew Cagney <ac131313@redhat.com>
21717
21718 * Makefile.in: Remove obsolete code.
21719
a1358604
DJ
217202002-11-20 Daniel Jacobowitz <drow@mvista.com>
21721
21722 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21723 defined(PT_FPR0_HI).
21724
23ce3b1c
DJ
217252002-11-17 Stuart Hughes <seh@zee2.com>
21726
21727 * linux-arm-low.c (arm_num_regs): Increase.
21728 (arm_regmap): Include status register.
21729
217302002-11-17 Daniel Jacobowitz <drow@mvista.com>
21731
21732 * linux-low.c (register_addr): Remove incorrect -1 check.
21733
a9fa9f7d
DJ
217342002-08-29 Daniel Jacobowitz <drow@mvista.com>
21735
21736 * linux-low.c (linux_create_inferior): Call setpgid. Return
21737 the new PID.
21738 (unstopped_p, linux_signal_pid): Remove.
21739 (linux_target_ops): Remove linux_signal_pid.
21740 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21741 global instead of target method.
21742 * target.h (struct target_ops): Remove signal_pid. Update comment
21743 for create_inferior.
21744 * server.c (signal_pid): New variable.
21745 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21746 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21747 (attach_inferior): Set signal_pid.
21748
17574093
DJ
217492002-08-23 Daniel Jacobowitz <drow@mvista.com>
21750
21751 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21752
217532002-08-20 Jim Blandy <jimb@redhat.com>
21754
21755 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21756 default for this.
21757
217582002-08-01 Andrew Cagney <cagney@redhat.com>
21759
21760 * Makefile.in: Make chill references obsolete.
21761
217622002-07-24 Kevin Buettner <kevinb@redhat.com>
21763
21764 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21765 * configure: Regenerate.
21766 * config.in: Regenerate.
21767
217682002-07-09 David O'Brien <obrien@FreeBSD.org>
21769
21770 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21771 (perror_with_name, remote_close, remote_open, expect, play): Static.
21772
217732002-07-04 Michal Ludvig <mludvig@suse.cz>
21774
4b8dad4a 21775 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21776 byte offsets instead of an array of indexes.
21777 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21778
217792002-06-13 Daniel Jacobowitz <drow@mvista.com>
21780
21781 * regcache.c: Add comment.
21782
217832002-06-11 Daniel Jacobowitz <drow@mvista.com>
21784
21785 * thread-db.c: New file.
21786 * proc-service.c: New file.
21787 * acinclude.m4: New file.
21788 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21789 proc-service.o, and thread-db.o.
21790 (linux-low.o): Add USE_THREAD_DB.
21791 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21792 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21793 * aclocal.m4: Regenerated.
21794 * config.in: Regenerated.
21795 * configure: Regenerated.
21796 * configure.in: Check for proc_service.h, sys/procfs.h,
21797 thread_db.h, and linux/elf.h headrs.
21798 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21799 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21800 Check for -lthread_db and thread support.
21801 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21802 PowerPC, and SuperH.
21803 * i387-fp.c: Constify arguments.
21804 * i387-fp.h: Likewise.
21805 * inferiors.c: (struct thread_info): Renamed from
21806 `struct inferior_info'. Remove PID member. Use generic inferior
21807 list header. All uses updated.
21808 (inferiors, signal_pid): Removed.
21809 (all_threads): New variable.
21810 (get_thread): Define.
21811 (add_inferior_to_list): New function.
21812 (for_each_inferior): New function.
21813 (change_inferior_id): New function.
21814 (add_inferior): Removed.
21815 (remove_inferior): New function.
21816 (add_thread): New function.
21817 (free_one_thread): New function.
21818 (remove_thread): New function.
21819 (clear_inferiors): Use for_each_inferior and free_one_thread.
21820 (find_inferior): New function.
21821 (find_inferior_id): New function.
21822 (inferior_target_data): Update argument type.
21823 (set_inferior_target_data): Likewise.
21824 (inferior_regcache_data): Likewise.
21825 (set_inferior_regcache_data): Likewise.
21826 * linux-low.c (linux_bp_reinsert): Remove.
21827 (all_processes, stopping_threads, using_thrads)
21828 (struct pending_signals, debug_threads, pid_of): New.
21829 (inferior_pid): Replace with macro.
21830 (struct inferior_linux_data): Remove.
21831 (get_stop_pc, add_process): New functions.
21832 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21833 Use add_process and add_thread.
21834 (linux_attach_lwp): New function, based on old linux_attach. Use
21835 add_process and add_thread. Set stop_expected for new threads.
21836 (linux_attach): New function.
21837 (linux_kill_one_process): New function.
21838 (linux_kill): Kill all LWPs.
21839 (linux_thread_alive): Use find_inferior_id.
21840 (check_removed_breakpoints, status_pending_p): New functions.
21841 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21842 Update. Use WNOHANG. Wait for cloned processes also. Update process
21843 struct for the found process.
21844 (linux_wait_for_event): New function.
21845 (linux_wait): Use it. Support LWPs.
21846 (send_sigstop, wait_for_sigstop, stop_all_processes)
21847 (linux_resume_one_process, linux_continue_one_process): New functions.
21848 (linux_resume): Support LWPs.
21849 (REGISTER_RAW_SIZE): Remove.
21850 (fetch_register): Use register_size instead. Call supply_register.
21851 (usr_store_inferior_registers): Likewise. Call collect_register.
21852 Fix recursive case.
21853 (regsets_fetch_inferior_registers): Improve error message.
21854 (regsets_store_inferior_registers): Add debugging.
21855 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21856 (unstopped_p, linux_signal_pid): New functions.
21857 (linux_target_ops): Add linux_signal_pid.
21858 (linux_init_signals): New function.
21859 (initialize_low): Call it. Initialize using_threads.
21860 * regcache.c (inferior_regcache_data): Add valid
21861 flag.
21862 (get_regcache): Fetch registers lazily. Add fetch argument
21863 and update all callers.
21864 (regcache_invalidate_one, regcache_invalidate): New
21865 functions.
21866 (new_register_cache): Renamed from create_register_cache.
21867 Return the new regcache.
21868 (free_register_cache): Change argument to a void *.
21869 (registers_to_string, registers_from_string): Call get_regcache
21870 with fetch flag set.
21871 (register_data): Make static. Pass fetch flag to get_regcache.
21872 (supply_register): Call get_regcache with fetch flag clear.
21873 (collect_register): Call get_regcache with fetch flag set.
21874 (collect_register_as_string): New function.
21875 * regcache.h: Update.
21876 * remote-utils.c (putpkt): Flush after debug output and use
21877 stderr.
21878 Handle input interrupts while waiting for an ACK.
21879 (input_interrupt): Use signal_pid method.
21880 (getpkt): Flush after debug output and use stderr.
21881 (outreg): Use collect_register_as_string.
21882 (new_thread_notify, dead_thread_notify): New functions.
21883 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21884 and general_thread.
21885 (look_up_one_symbol): Flush after debug output.
21886 * server.c (step_thread, server_waiting): New variables.
21887 (start_inferior): Don't use signal_pid. Update call to mywait.
21888 (attach_inferior): Update call to mywait.
21889 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21890 (main): Don't fetch/store registers explicitly. Use
21891 set_desired_inferior. Support proposed ``Hs'' packet. Update
21892 calls to mywait.
21893 * server.h: Update.
21894 (struct inferior_list, struct_inferior_list_entry): New.
21895 * target.c (set_desired_inferior): New.
21896 (write_inferior_memory): Constify.
21897 (mywait): New function.
21898 * target.h: Update.
21899 (struct target_ops): New signal_pid method.
21900 (mywait): Removed macro, added prototype.
21901
21902 * linux-low.h (regset_func): Removed.
21903 (regset_fill_func, regset_store_func): New.
21904 (enum regset_type): New.
21905 (struct regset_info): Add type field. Use new operation types.
21906 (struct linux_target_ops): stop_pc renamed to get_pc.
21907 Add decr_pc_after_break and breakpoint_at.
21908 (get_process, get_thread_proess, get_process_thread)
21909 (strut process_info, all_processes, linux_attach_lwp)
21910 (thread_db_init): New.
21911
21912 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21913 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21914 (the_low_target): Add new members.
21915 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21916 (i386_store_fpxregset): Constify.
21917 (target_regsets): Add new kind identifier.
21918 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21919 (i386_set_pc): Add debugging.
21920 (i386_breakpoint_at): New function.
21921 (the_low_target): Add new members.
21922 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21923 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21924 (mips_breakpoint_at): New.
21925 (the_low_target): Add new members.
21926 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21927 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21928 (the_low_target): Add new members.
21929 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21930 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21931 (the_low_target): Add new members.
21932 * linux-x86-64-low.c (target_regsets): Add new kind
21933 identifier.
21934
219352002-05-15 Daniel Jacobowitz <drow@mvista.com>
21936
21937 From Martin Pool <mbp@samba.org>:
21938 * server.c (gdbserver_usage): New function.
21939 (main): Call it.
21940
219412002-05-14 Daniel Jacobowitz <drow@mvista.com>
21942
21943 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21944 stop_at -> stop_pc.
21945
219462002-05-04 Andrew Cagney <ac131313@redhat.com>
21947
21948 * Makefile.in: Remove obsolete code.
21949
219502002-04-24 Michal Ludvig <mludvig@suse.cz>
21951
21952 * linux-low.c (regsets_fetch_inferior_registers),
21953 (regsets_store_inferior_registers): Removed cast to int from
21954 ptrace() calls.
21955 * regcache.h: Added declaration of struct inferior_info.
21956
219572002-04-20 Daniel Jacobowitz <drow@mvista.com>
21958
21959 * inferiors.c (struct inferior_info): Add regcache_data.
21960 (add_inferior): Call create_register_cache.
21961 (clear_inferiors): Call free_register_cache.
21962 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21963 * regcache.c (struct inferior_regcache_data): New.
21964 (registers): Remove.
21965 (get_regcache): New function.
21966 (create_register_cache, free_register_cache): New functions.
21967 (set_register_cache): Don't initialize the register cache here.
21968 (registers_to_string, registers_from_string, register_data): Call
21969 get_regcache.
21970 * regcache.h: Add prototypes.
21971 * server.h: Likewise.
21972
219732002-04-20 Daniel Jacobowitz <drow@mvista.com>
21974
21975 * mem-break.c: New file.
21976 * mem-break.h: New file.
21977 * Makefile.in: Add mem-break.o rule; update server.h
21978 dependencies.
21979 * inferiors.c (struct inferior_info): Add target_data
21980 member.
21981 (clear_inferiors): Free target_data member if set.
21982 (inferior_target_data, set_inferior_target_data): New functions.
21983 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21984 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21985 * linux-low.c (linux_bp_reinsert): New variable.
21986 (struct inferior_linux_data): New.
21987 (linux_create_inferior): Use set_inferior_target_data.
21988 (linux_attach): Likewise. Call add_inferior.
21989 (linux_wait_for_one_inferior): New function.
21990 (linux_wait): Call it.
21991 (linux_write_memory): Add const.
21992 (initialize_low): Call set_breakpoint_data.
21993 * linux-low.h (struct linux_target_ops): Add breakpoint
21994 handling members.
21995 * server.c (attach_inferior): Remove extra add_inferior
21996 call.
21997 * server.h: Include mem-break.h. Update inferior.c
21998 prototypes.
21999 * target.c (read_inferior_memory)
22000 (write_inferior_memory): New functions.
22001 * target.h (read_inferior_memory)
22002 (write_inferior_memory): Change macros to prototypes.
22003 (struct target_ops): Update comments. Add const to write_memory
22004 definition.
22005
220062002-04-11 Daniel Jacobowitz <drow@mvista.com>
22007
22008 * linux-low.c (usr_store_inferior_registers): Support
22009 registers which are allowed to fail to store.
22010 * linux-low.h (linux_target_ops): Likewise.
22011 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22012 (ppc_cannot_store_register): FPSCR may not be storable.
22013
220142002-04-09 Daniel Jacobowitz <drow@mvista.com>
22015
22016 * server.h: Include <string.h> if HAVE_STRING_H.
22017 * ChangeLog: Correct paths in last ChangeLog entry.
22018
220192002-04-09 Daniel Jacobowitz <drow@mvista.com>
22020
22021 * linux-low.h: Remove obsolete prototypes.
22022 (struct linux_target_ops): New.
22023 (extern the_low_target): New.
22024 * linux-low.c (num_regs, regmap): Remove declarations.
22025 (register_addr): Use the_low_target explicitly.
22026 (fetch_register): Likewise.
22027 (usr_fetch_inferior_registers): Likewise.
22028 (usr_store_inferior_registers): Likewise.
22029 * linux-arm-low.c (num_regs): Remove.
22030 (arm_num_regs): Define.
22031 (arm_regmap): Renamed from regmap, made static.
22032 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22033 made static.
22034 (arm_cannot_store_register): Renamed from cannot_store_register,
22035 made static.
22036 (the_low_target): New.
22037 * linux-i386-low.c (num_regs): Remove.
22038 (i386_num_regs): Define.
22039 (i386_regmap): Renamed from regmap, made static.
22040 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22041 made static.
22042 (i386_cannot_store_register): Renamed from cannot_store_register,
22043 made static.
22044 (the_low_target): New.
22045 * linux-ia64-low.c (num_regs): Remove.
22046 (ia64_num_regs): Define.
22047 (ia64_regmap): Renamed from regmap, made static.
22048 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22049 made static.
22050 (ia64_cannot_store_register): Renamed from cannot_store_register,
22051 made static.
22052 (the_low_target): New.
22053 * linux-m68k-low.c (num_regs): Remove.
22054 (m68k_num_regs): Define.
22055 (m68k_regmap): Renamed from regmap, made static.
22056 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22057 made static.
22058 (m68k_cannot_store_register): Renamed from cannot_store_register,
22059 made static.
22060 (the_low_target): New.
22061 * linux-mips-low.c (num_regs): Remove.
22062 (mips_num_regs): Define.
22063 (mips_regmap): Renamed from regmap, made static.
22064 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22065 made static.
22066 (mips_cannot_store_register): Renamed from cannot_store_register,
22067 made static.
22068 (the_low_target): New.
22069 * linux-ppc-low.c (num_regs): Remove.
22070 (ppc_num_regs): Define.
22071 (ppc_regmap): Renamed from regmap, made static.
22072 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22073 made static.
22074 (ppc_cannot_store_register): Renamed from cannot_store_register,
22075 made static.
22076 (the_low_target): New.
22077 * linux-s390-low.c (num_regs): Remove.
22078 (s390_num_regs): Define.
22079 (s390_regmap): Renamed from regmap, made static.
22080 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22081 made static.
22082 (s390_cannot_store_register): Renamed from cannot_store_register,
22083 made static.
22084 (the_low_target): New.
22085 * linux-sh-low.c (num_regs): Remove.
22086 (sh_num_regs): Define.
22087 (sh_regmap): Renamed from regmap, made static.
22088 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22089 made static.
22090 (sh_cannot_store_register): Renamed from cannot_store_register,
22091 made static.
22092 (the_low_target): New.
22093 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22094 (the_low_target): New.
22095
220962002-04-09 Daniel Jacobowitz <drow@mvista.com>
22097
22098 * Makefile.in: Add stamp-h target.
22099 * configure.in: Create stamp-h.
22100 * configure: Regenerated.
22101
221022002-04-09 Daniel Jacobowitz <drow@mvista.com>
22103
22104 * inferiors.c: New file.
22105 * target.c: New file.
22106 * target.h: New file.
22107 * Makefile.in: Add target.o and inferiors.o. Update
22108 dependencies.
22109 * linux-low.c (inferior_pid): New static variable,
22110 moved from server.c.
22111 (linux_create_inferior): Renamed from create_inferior.
22112 Call add_inferior. Return 0 on success instead of a PID.
22113 (linux_attach): Renamed from myattach.
22114 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22115 (linux_thread_alive): Renamed from mythread_alive.
22116 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22117 child dies.
22118 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22119 (regsets_store_inferior_registers): Correct error message.
22120 Add missing ``return 0''.
22121 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22122 (linux_store_registers): Renamed from store_inferior_registers.
22123 (linux_read_memory): Renamed from read_inferior_memory.
22124 (linux_write_memory): Renamed from write_inferior_memory.
22125 (linux_target_ops): New structure.
22126 (initialize_low): Call set_target_ops ().
22127 * remote-utils.c (unhexify): New function.
22128 (hexify): New function.
22129 (input_interrupt): Send signals to ``signal_pid''.
22130 * server.c (inferior_pid): Remove.
22131 (start_inferior): Update create_inferior call.
22132 (attach_inferior): Call add_inferior.
22133 (handle_query): New function.
22134 (main): Call handle_query for `q' packets.
22135 * server.h: Include "target.h". Remove obsolete prototypes.
22136 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22137
221382002-04-09 Daniel Jacobowitz <drow@mvista.com>
22139
22140 * Makefile.in: Add WARN_CFLAGS. Update configury
22141 dependencies.
22142 * configure.in: Check for <string.h>
22143 * configure: Regenerate.
22144 * config.in: Regenerate.
22145 * gdbreplay.c: Include needed system headers.
22146 (remote_open): Remove strchr prototype.
22147 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22148 * regcache.c (supply_register): Change buf argument to const void *.
22149 (supply_register_by_name): Likewise.
22150 (collect_register): Change buf argument to void *.
22151 (collect_register_by_name): Likewise.
22152 * regcache.h: Add missing prototypes.
22153 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22154 * server.c (handle_query): New function.
22155 (attached): New static variable, moved out of main.
22156 (main): Quiet longjmp clobber warnings.
22157 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22158 * utils.c (error): Remove NORETURN.
22159 (fatal): Likewise.