gdbserver/linux-ia64-low: fix a build-breaking typo
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
8bbf0394
TBA
12020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
4 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
5 (ia64_target::low_breakpoint_at): Ditto.
6
01370779
HD
72020-05-15 Hannes Domani <ssbssa@yahoo.de>
8
9 * win32-i386-low.cc (i386_supports_z_point_type): Handle
10 Z_PACKET_HW_BP z_type.
11 (i386_insert_point): Handle raw_bkpt_type type.
12 (i386_remove_point): Likewise.
13
7d186bc0
HD
142020-04-30 Hannes Domani <ssbssa@yahoo.de>
15
16 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
17 Add arch/i386.o.
18 * win32-arm-low.cc (arm_num_regs): New function.
19 (struct win32_target_ops): Use arm_num_regs.
20 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
21 processes.
22 (i386_get_thread_context): Likewise.
23 (i386_prepare_to_resume): Likewise.
24 (i386_thread_added): Likewise.
25 (i386_single_step): Likewise.
26 (i386_fetch_inferior_register): Likewise.
27 (i386_store_inferior_register): Likewise.
28 (i386_arch_setup): Likewise.
29 (i386_win32_num_regs): New function.
30 (struct win32_target_ops): Use i386_win32_num_regs.
31 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
32 processes.
33 (win32_require_context): Likewise.
34 (child_add_thread): Likewise.
35 (do_initial_child_stuff): Likewise.
36 (continue_one_thread): Likewise.
37 (win32_process_target::resume): Likewise.
38 (load_psapi): Likewise.
39 (win32_add_all_dlls): Likewise.
40 (maybe_adjust_pc): Likewise.
41 (win32_process_target::qxfer_siginfo): Likewise.
42 (initialize_low): Likewise.
43 * win32-low.h (struct win32_target_ops): Change num_regs to
44 callback function.
45
1eb39914
SM
462020-04-27 Simon Marchi <simon.marchi@efficios.com>
47
48 * configure.ac: Remove check for fs_base/gs_base in
49 user_regs_struct.
50 * configure: Re-generate.
51 * config.in: Re-generate.
52 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
53 x86_store_gregset): Adjust.
54
51ac8e22
HD
552020-04-22 Hannes Domani <ssbssa@yahoo.de>
56
57 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
58 comparison.
59
a010605f
TT
602020-04-16 Tom Tromey <tromey@adacore.com>
61
62 * win32-low.cc (windows_nat::handle_access_violation): New
63 function.
64
e2275c6e
SM
652020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
66
67 * win32-low.cc (get_child_debug_event): Fix format string warning.
68
73944e9f
TT
692020-04-13 Tom Tromey <tom@tromey.com>
70
71 * server.h (gdb_fildes_t): Remove typedef.
72 * remote-utils.c (remote_desc, list_desc): Now int.
73 (INVALID_DESCRIPTOR): Remove.
74 (gdb_connected, remote_close)
75 (check_remote_input_interrupt_request): Update.
76 * utils.h (pfildes): Don't declare.
77 * utils.c (pfildes): Remove.
78
55d7aec8
TT
792020-04-13 Tom Tromey <tom@tromey.com>
80
81 * server.h (handle_serial_event, handle_target_event): Update.
82 * server.c: Don't call initialize_event_loop.
83 (keep_processing_events): New global.
84 (handle_serial_event): Return void. Set keep_processing_events.
85 (handle_target_event): Return void.
86 (start_event_loop): Move from event-loop.c. Rewrite.
87 * remote-utils.c (handle_accept_event): Return void.
88 (reset_readchar): Use delete_timer.
89 (process_remaining): Return void.
90 (reschedule): Use create_timer.
91 * event-loop.h: Remove.
92 * event-loop.cc: Remove.
93 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
94
e487f994
TT
952020-04-13 Tom Tromey <tom@tromey.com>
96
97 * server.c (invoke_async_signal_handlers)
98 (check_async_event_handlers, flush_streams, gdb_select): New
99 functions.
100
8ae8e197
TT
1012020-04-13 Tom Tromey <tom@tromey.com>
102
103 * configure: Rebuild.
104 * config.in: Rebuild.
105
360ad8b3
TT
1062020-04-08 Tom Tromey <tromey@adacore.com>
107
108 PR gdb/22992
109 * win32-low.c (child_continue): Call matching_pending_stop.
110 (get_child_debug_event): Call fetch_pending_stop. Push pending
111 stop when needed.
112
523d4f80
TT
1132020-04-08 Tom Tromey <tromey@adacore.com>
114
115 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
116 (win32_process_target::supports_stopped_by_sw_breakpoint):
117 Declare.
118 * win32-low.c (win32_supports_z_point_type): Always handle
119 Z_PACKET_SW_BP.
120 (win32_insert_point): Call insert_memory_breakpoint when needed.
121 (win32_remove_point): Call remove_memory_breakpoint when needed.
122 (win32_process_target::stopped_by_sw_breakpoint)
123 (win32_process_target::supports_stopped_by_sw_breakpoint): New
124 methods.
125 (win32_target_ops): Update.
126 (maybe_adjust_pc): New function.
127 (win32_wait): Call maybe_adjust_pc.
128
e54e5929
TT
1292020-04-08 Tom Tromey <tromey@adacore.com>
130
131 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
132 field.
133 * win32-i386-low.c (the_low_target): Update.
134 * win32-arm-low.c (the_low_target): Update.
135
d6225aff
TT
1362020-04-08 Tom Tromey <tromey@adacore.com>
137
138 * win32-low.h (win32_process_target::read_pc)
139 (win32_process_target::write_pc): Declare.
140 * win32-low.c (win32_process_target::read_pc)
141 (win32_process_target::write_pc): New methods.
142 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
143 functions.
144 (the_low_target): Update.
145 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
146 functions.
147 (the_low_target): Update.
148
2c1d95e8
TT
1492020-04-08 Tom Tromey <tromey@adacore.com>
150
151 * win32-low.c (win32_kill, get_child_debug_event): Use
152 wait_for_debug_event.
153
e758e19c
TT
1542020-04-08 Tom Tromey <tromey@adacore.com>
155
156 * win32-low.c (child_continue): Call continue_last_debug_event.
157
8d30e395
TT
1582020-04-08 Tom Tromey <tromey@adacore.com>
159
160 * win32-low.c (handle_exception): Remove.
161 (windows_nat::handle_ms_vc_exception): New function.
162 (get_child_debug_event): Add "continue_status" parameter.
163 Update.
164 (win32_wait): Update.
165
a816ba18
TT
1662020-04-08 Tom Tromey <tromey@adacore.com>
167
168 * win32-low.c (windows_nat::handle_load_dll): Rename from
169 handle_load_dll. No longer static.
170 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
171 No longer static.
172
d41b524f
TT
1732020-04-08 Tom Tromey <tromey@adacore.com>
174
175 * win32-low.c (handle_output_debug_string): Add parameter. Change
176 return type.
177 (win32_kill, get_child_debug_event): Update.
178
3c76026d
TT
1792020-04-08 Tom Tromey <tromey@adacore.com>
180
181 * win32-low.c (current_process_handle, current_process_id)
182 (main_thread_id, last_sig, current_event, siginfo_er): Move to
183 nat/windows-nat.c.
184
9d8679cc
TT
1852020-04-08 Tom Tromey <tromey@adacore.com>
186
187 * win32-low.c (get_image_name): Remove.
188 (handle_load_dll): Update.
189
28688adf
TT
1902020-04-08 Tom Tromey <tromey@adacore.com>
191
192 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
193 No longer static. Change parameters.
194 (child_add_thread, child_fetch_inferior_registers)
195 (child_store_inferior_registers, win32_resume)
196 (win32_get_tib_address): Update.
197
4834dad0
TT
1982020-04-08 Tom Tromey <tromey@adacore.com>
199
200 * win32-low.h (struct win32_target_ops): Use qualified names where
201 needed.
202 * win32-i386-low.c: Add "using namespace".
203 * win32-low.c: Add "using namespace".
204 * win32-arm-low.c: Add "using namespace".
205
65bafd5b
TT
2062020-04-08 Tom Tromey <tromey@adacore.com>
207
208 * win32-low.c (delete_thread_info): Don't call CloseHandle.
209
98a03287
TT
2102020-04-08 Tom Tromey <tromey@adacore.com>
211
212 * win32-low.c (win32_require_context, suspend_one_thread): Use
213 windows_thread_info::suspend.
214 (continue_one_thread): Use windows_thread_info::resume.
215 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
216
62fe396b
TT
2172020-04-08 Tom Tromey <tromey@adacore.com>
218
219 * win32-i386-low.c (update_debug_registers)
220 (i386_prepare_to_resume, i386_thread_added): Update.
221
e9534bd2
TT
2222020-04-08 Tom Tromey <tromey@adacore.com>
223
224 * win32-low.c (child_add_thread): Use new.
225 (delete_thread_info): Use delete.
226
ae1f8880
TT
2272020-04-08 Tom Tromey <tromey@adacore.com>
228
229 * win32-low.h (struct windows_thread_info): Remove.
230
e56f8ccb
TT
2312020-04-08 Tom Tromey <tromey@adacore.com>
232
233 * win32-low.h (struct windows_thread_info): Rename from
234 win32_thread_info. Remove typedef.
235 (struct win32_target_ops, win32_require_context): Update.
236 * win32-low.c (win32_get_thread_context)
237 (win32_set_thread_context, win32_prepare_to_resume)
238 (win32_require_context, thread_rec, child_add_thread)
239 (delete_thread_info, continue_one_thread)
240 (child_fetch_inferior_registers, child_store_inferior_registers)
241 (win32_resume, suspend_one_thread, win32_get_tib_address):
242 Update.
243 * win32-i386-low.c (update_debug_registers)
244 (win32_get_current_dr, i386_get_thread_context)
245 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
246 (i386_fetch_inferior_register, i386_store_inferior_register):
247 Update.
248 * win32-arm-low.c (arm_get_thread_context)
249 (arm_fetch_inferior_register, arm_store_inferior_register):
250 Update.
251
0dd7b52e
TBA
2522020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
253
254 * linux-low.h (struct linux_target_ops): Remove.
255 (the_low_target): Remove.
256 * linux-x86-low.cc (the_low_target): Remove.
257 * linux-aarch64-low.cc (the_low_target): Ditto.
258 * linux-arm-low.cc (the_low_target): Ditto.
259 * linux-bfin-low.cc (the_low_target): Ditto.
260 * linux-cris-low.cc (the_low_target): Ditto.
261 * linux-crisv32-low.cc (the_low_target): Ditto.
262 * linux-ia64-low.cc (the_low_target): Ditto.
263 * linux-m32r-low.cc (the_low_target): Ditto.
264 * linux-m68k-low.cc (the_low_target): Ditto.
265 * linux-mips-low.cc (the_low_target): Ditto.
266 * linux-nios2-low.cc (the_low_target): Ditto.
267 * linux-ppc-low.cc (the_low_target): Ditto.
268 * linux-riscv-low.cc (the_low_target): Ditto.
269 * linux-s390-low.cc (the_low_target): Ditto.
270 * linux-sh-low.cc (the_low_target): Ditto.
271 * linux-sparc-low.cc (the_low_target): Ditto.
272 * linux-tic6x-low.cc (the_low_target): Ditto.
273 * linux-tile-low.cc (the_low_target): Ditto.
274 * linux-xtensa-low.cc (the_low_target): Ditto.
275
fc5ecdb6
TBA
2762020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
277
278 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
279 linux target define the op by overriding the declaration in
280 process_stratum_target.
281
282 * linux-low.h (struct linux_target_ops): Remove the op.
283 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
284 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
285 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
286 (x86_get_ipa_tdesc_idx): Turn into...
287 (x86_target::get_ipa_tdesc_idx): ...this.
288 (the_low_target): Remove the op field.
289 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
290 (ppc_get_ipa_tdesc_idx): Turn into...
291 (ppc_target::get_ipa_tdesc_idx): ...this.
292 (the_low_target): Remove the op field.
293 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
294 (s390_get_ipa_tdesc_idx): Turn into...
295 (s390_target::get_ipa_tdesc_idx): ...this.
296 (the_low_target): Remove the op field.
297
9eedd27d
TBA
2982020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
299
300 Turn the 'get_syscall_trapinfo' linux target op into a method
301 of process_stratum_target.
302
303 * linux-low.h (struct linux_target_ops): Remove the op.
304 (class linux_process_target) <get_syscall_trapinfo>
305 <gdb_catch_this_syscall>
306 <low_supports_catch_syscall>
307 <low_get_syscall_trapinfo>: Declare.
308 * linux-low.cc (get_syscall_trapinfo): Turn into...
309 (linux_process_target::get_syscall_trapinfo): ...this.
310 (linux_process_target::low_get_syscall_trapinfo): Define.
311 (gdb_catch_this_syscall_p): Turn into...
312 (linux_process_target::gdb_catch_this_syscall): ...this.
313 (linux_process_target::low_supports_catch_syscall): Define.
314
315 Update the callers below.
316
317 (linux_process_target::wait_1)
318 (linux_process_target::supports_catch_syscall)
319
320 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
321 <low_get_syscall_trapinfo>: Declare.
322 (x86_target::low_supports_catch_syscall): Define.
323 (x86_get_syscall_trapinfo): Turn into...
324 (x86_target::low_get_syscall_trapinfo): ...this.
325 (the_low_target): Remove the op field.
326 * linux-aarch64-low.cc (class aarch64_target)
327 <low_supports_catch_syscall>
328 <low_get_syscall_trapinfo>: Declare.
329 (aarch64_target::low_supports_catch_syscall): Define.
330 (aarch64_get_syscall_trapinfo): Turn into...
331 (aarch64_target::low_get_syscall_trapinfo): ...this.
332 (the_low_target): Remove the op field.
333 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
334 <low_get_syscall_trapinfo>: Declare.
335 (arm_target::low_supports_catch_syscall): Define.
336 (arm_get_syscall_trapinfo): Turn into...
337 (arm_target::low_get_syscall_trapinfo): ...this.
338 (the_low_target): Remove the op field.
339 * linux-ppc-low.cc (the_low_target): Remove the op field.
340 * linux-s390-low.cc (the_low_target): Remove the op field.
341
b31cdfa6
TBA
3422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
343
344 Remove the 'supports_hardware_single_step' linux target op and
345 override the process_stratum_target's op definition in
346 linux_process_target to return true.
347
348 * linux-low.h (struct linux_target_ops): Remove the op.
349 (class linux_process_target) <finish_step_over>
350 <maybe_hw_step>: Declare.
351 * linux-low.cc (can_hardware_single_step): Remove.
352 (maybe_hw_step): Turn into...
353 (linux_process_target::maybe_hw_step): ...this.
354 (finish_step_over): Turn into...
355 (linux_process_target::finish_step_over): ...this.
356 (linux_process_target::supports_hardware_single_step): Update
357 to return true.
358
359 Update the callers below.
360
361 (linux_process_target::single_step)
362 (linux_process_target::resume_one_lwp_throw)
363
364 * linux-arm-low.cc (class arm_target)
365 <supports_hardware_single_step>: Declare.
366 (arm_supports_hardware_single_step): Turn into...
367 (arm_target::supports_hardware_single_step): ...this.
368 (the_low_target): Remove the op field.
369 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
370 (the_low_target): Remove the op field.
371 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
372 Remove.
373 (the_low_target): Remove the op field.
374 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
375 (the_low_target): Remove the op field.
376 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
377 (the_low_target): Remove the op field.
378 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
379 (the_low_target): Remove the op field.
380 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
381 (the_low_target): Remove the op field.
382 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
383 (the_low_target): Remove the op field.
384 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
385 (the_low_target): Remove the op field.
386 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
387 (the_low_target): Remove the op field.
388 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
389 (the_low_target): Remove the op field.
390 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
391 (the_low_target): Remove the op field.
392 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
393 Remove.
394 (the_low_target): Remove the op field.
395
9cfd8715
TBA
3962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
397
398 Turn the 'supports_range_stepping' linux target op into a method
399 of linux_process_target.
400
401 * linux-low.h (struct linux_target_ops): Remove the op.
402 (class linux_process_target) <low_supports_range_stepping>: Declare.
403 * linux-low.cc (linux_process_target::low_supports_range_stepping):
404 Define.
405 (linux_process_target::supports_range_stepping): Update the call
406 site.
407 * linux-x86-low.cc (class x86_target)
408 <low_supports_range_stepping>: Declare.
409 (x86_supports_range_stepping): Turn into...
410 (x86_target::low_supports_range_stepping): ...this.
411 (the_low_target): Remove the op field.
412 * linux-aarch64-low.cc (class aarch64_target)
413 <low_supports_range_stepping>: Declare.
414 (aarch64_supports_range_stepping): Turn into...
415 (aarch64_target::low_supports_range_stepping): ...this.
416 (the_low_target): Remove the op field.
417 * linux-arm-low.cc (the_low_target): Remove the op field.
418 * linux-bfin-low.cc (the_low_target): Ditto.
419 * linux-crisv32-low.cc (the_low_target): Ditto.
420 * linux-m32r-low.cc (the_low_target): Ditto.
421 * linux-m68k-low.cc (the_low_target): Ditto.
422 * linux-ppc-low.cc (the_low_target): Ditto.
423 * linux-s390-low.cc (the_low_target): Ditto.
424 * linux-sh-low.cc (the_low_target): Ditto.
425 * linux-tic6x-low.cc (the_low_target): Ditto.
426 * linux-tile-low.cc (the_low_target): Ditto.
427 * linux-xtensa-low.cc (the_low_target): Ditto.
428
ab64c999
TBA
4292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
430
431 Remove the 'emit_ops' linux target ops and let the concrete
432 linux target define the op by overriding the declaration of
433 process_stratum_target.
434
435 * linux-low.h (struct linux_target_ops): Remove the op.
436 (class linux_process_target) <emit_ops>: Remove.
437 * linux-low.cc (linux_process_target::emit_ops): Remove.
438 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
439 (x86_emit_ops): Turn into...
440 (x86_target::emit_ops): ...this.
441 (the_low_target): Remove the op field.
442 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
443 (aarch64_emit_ops): Turn into...
444 (aarch64_target::emit_ops): ...this.
445 (the_low_target): Remove the op field.
446 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
447 (ppc_emit_ops): Turn into...
448 (ppc_target::emit_ops): ...this.
449 (the_low_target): Remove the op field.
450 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
451 (s390_emit_ops): Turn into...
452 (s390_target::emit_ops): ...this.
453 (the_low_target): Remove the op field.
454 * linux-arm-low.cc (the_low_target): Remove the op field.
455 * linux-bfin-low.cc (the_low_target): Ditto.
456 * linux-crisv32-low.cc (the_low_target): Ditto.
457 * linux-m32r-low.cc (the_low_target): Ditto.
458 * linux-m68k-low.cc (the_low_target): Ditto.
459 * linux-sh-low.cc (the_low_target): Ditto.
460 * linux-tic6x-low.cc (the_low_target): Ditto.
461 * linux-tile-low.cc (the_low_target): Ditto.
462 * linux-xtensa-low.cc (the_low_target): Ditto.
463
809a0c35
TBA
4642020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
465
466 Remove the 'install_fast_tracepoint_jump_pad' and
467 'get_min_fast_tracepoint_insn_len' linux target ops to let the
468 concrete linux target define the ops by overriding the declarations
469 of process_stratum_target.
470
471 * linux-low.h (struct linux_target_ops): Remove the ops.
472 (class linux_process_target) <supports_fast_tracepoints>
473 <install_fast_tracepoint_jump_pad>
474 <get_min_fast_tracepoint_insn_len>: Remove.
475 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
476 (linux_process_target::install_fast_tracepoint_jump_pad)
477 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
478 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
479 <install_fast_tracepoint_jump_pad>
480 <get_min_fast_tracepoint_insn_len>: Declare.
481 (x86_target::supports_fast_tracepoints): Define.
482 (x86_install_fast_tracepoint_jump_pad): Turn into...
483 (x86_target::install_fast_tracepoint_jump_pad): ...this.
484 (x86_get_min_fast_tracepoint_insn_len): Turn into...
485 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
486 (the_low_target): Remove the op fields.
487 * linux-aarch64-low.cc (class aarch64_target)
488 <supports_fast_tracepoints>
489 <install_fast_tracepoint_jump_pad>
490 <get_min_fast_tracepoint_insn_len>: Declare.
491 (aarch64_target::supports_fast_tracepoints): Define.
492 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
493 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
494 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
495 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
496 (the_low_target): Remove the op fields.
497 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
498 <install_fast_tracepoint_jump_pad>
499 <get_min_fast_tracepoint_insn_len>: Declare.
500 (ppc_target::supports_fast_tracepoints): Define.
501 (ppc_install_fast_tracepoint_jump_pad): Turn into...
502 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
503 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
504 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
505 (the_low_target): Remove the op fields.
506 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
507 <install_fast_tracepoint_jump_pad>
508 <get_min_fast_tracepoint_insn_len>: Declare.
509 (s390_target::supports_fast_tracepoints): Define.
510 (s390_install_fast_tracepoint_jump_pad): Turn into...
511 (s390_target::install_fast_tracepoint_jump_pad): ...this.
512 (s390_get_min_fast_tracepoint_insn_len): Turn into...
513 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
514 (the_low_target): Remove the op fields.
515 * linux-arm-low.cc (the_low_target): Remove the op fields.
516 * linux-bfin-low.cc (the_low_target): Ditto.
517 * linux-crisv32-low.cc (the_low_target): Ditto.
518 * linux-m32r-low.cc (the_low_target): Ditto.
519 * linux-m68k-low.cc (the_low_target): Ditto.
520 * linux-sh-low.cc (the_low_target): Ditto.
521 * linux-tic6x-low.cc (the_low_target): Ditto.
522 * linux-tile-low.cc (the_low_target): Ditto.
523 * linux-xtensa-low.cc (the_low_target): Ditto.
524
13e567af
TBA
5252020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
526
527 Turn the 'get_thread_area' linux target op into a method of
528 process_stratum_target.
529
530 * linux-low.h (struct linux_target_ops): Remove the op.
531 (class linux_process_target) <stuck_in_jump_pad>
532 <linux_fast_tracepoint_collecting>
533 <low_get_thread_area>: Declare.
534 * linux-low.cc (supports_fast_tracepoints): Remove.
535 (linux_fast_tracepoint_collecting): Turn into...
536 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
537 (linux_process_target::low_get_thread_area): Define.
538 (stuck_in_jump_pad_callback): Turn into...
539 (linux_process_target::stuck_in_jump_pad): ...this.
540
541 Update the caller below.
542
543 (linux_process_target::stabilize_threads)
544
545 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
546 Declare.
547 (x86_get_thread_area): Turn into...
548 (x86_target::low_get_thread_area): ...this.
549 (the_low_target): Remove the op field.
550 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
551 Declare.
552 (aarch64_get_thread_area): Turn into...
553 (aarch64_target::low_get_thread_area): ...this.
554 (the_low_target): Remove the op field.
555 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
556 Declare.
557 (ppc_get_thread_area): Turn into...
558 (ppc_target::low_get_thread_area): ...this.
559 (the_low_target): Remove the op field.
560 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
561 Declare.
562 (s390_get_thread_area): Turn into...
563 (s390_target::low_get_thread_area): ...this.
564 (the_low_target): Remove the op field.
565 * linux-arm-low.cc (the_low_target): Remove the op field.
566 * linux-bfin-low.cc (the_low_target): Ditto.
567 * linux-crisv32-low.cc (the_low_target): Ditto.
568 * linux-m32r-low.cc (the_low_target): Ditto.
569 * linux-m68k-low.cc (the_low_target): Ditto.
570 * linux-sh-low.cc (the_low_target): Ditto.
571 * linux-tic6x-low.cc (the_low_target): Ditto.
572 * linux-tile-low.cc (the_low_target): Ditto.
573 * linux-xtensa-low.cc (the_low_target): Ditto.
574
47f70aa7
TBA
5752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
576
577 Remote the 'supports_tracepoints' linux target op and let the
578 concrete linux target define it by overriding the op declared in
579 process_stratum_target.
580
581 * linux-low.h (struct linux_target_ops): Remove the op.
582 (class linux_process_target) <supports_tracepoints>: Remove.
583 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
584 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
585 Declare.
586 (x86_supports_tracepoints): Turn into...
587 (x86_target::supports_tracepoints): ...this.
588 (the_low_target): Remove the op field.
589 * linux-aarch64-low.cc (class aarch64_target)
590 <supports_tracepoints>: Declare.
591 (aarch64_supports_tracepoints): Turn into...
592 (aarch64_target::supports_tracepoints): ...this.
593 (the_low_target): Remove the op field.
594 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
595 Declare.
596 (ppc_supports_tracepoints): Turn into...
597 (ppc_target::supports_tracepoints): ...this.
598 (the_low_target): Remove the op field.
599 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
600 Declare.
601 (s390_supports_tracepoints): Turn into...
602 (s390_target::supports_tracepoints): ...this.
603 (the_low_target): Remove the op field.
604 * linux-arm-low.cc (the_low_target): Remove the op field.
605 * linux-bfin-low.cc (the_low_target): Ditto.
606 * linux-crisv32-low.cc (the_low_target): Ditto.
607 * linux-m32r-low.cc (the_low_target): Ditto.
608 * linux-m68k-low.cc (the_low_target): Ditto.
609 * linux-sh-low.cc (the_low_target): Ditto.
610 * linux-tic6x-low.cc (the_low_target): Ditto.
611 * linux-tile-low.cc (the_low_target): Ditto.
612 * linux-xtensa-low.cc (the_low_target): Ditto.
613
a5b5da92
TBA
6142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
615
616 Remove the 'process_qsupported' linux target op and let a concrete
617 linux target define the op by overriding the op declaration in
618 process_stratum_target.
619
620 * linux-low.h (struct linux_target_ops): Remove the op.
621 (class linux_process_target) <process_qsupported>: Remove.
622 * linux-low.cc (linux_process_target::process_qsupported): Remove.
623 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
624 (x86_linux_process_qsupported): Turn into...
625 (x86_target::process_qsupported): ...this.
626 (the_low_target): Remove the op field.
627 * linux-aarch64-low.cc (the_low_target): Remove the op
628 field.
629 * linux-arm-low.cc (the_low_target): Ditto.
630 * linux-bfin-low.cc (the_low_target): Ditto.
631 * linux-crisv32-low.cc (the_low_target): Ditto.
632 * linux-m32r-low.cc (the_low_target): Ditto.
633 * linux-m68k-low.cc (the_low_target): Ditto.
634 * linux-ppc-low.cc (the_low_target): Ditto.
635 * linux-s390-low.cc (the_low_target): Ditto.
636 * linux-sh-low.cc (the_low_target): Ditto.
637 * linux-tic6x-low.cc (the_low_target): Ditto.
638 * linux-tile-low.cc (the_low_target): Ditto.
639 * linux-xtensa-low.cc (the_low_target): Ditto.
640
d7599cc0
TBA
6412020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
642
643 Turn the 'prepare_to_resume' linux target op into a method of
644 linux_process_target.
645
646 * linux-low.h (struct linux_target_ops): Remove the op.
647 (class linux_process_target) <low_prepare_to_resume>: Declare.
648 * linux-low.cc (linux_process_target::low_prepare_to_resume):
649 Define.
650
651 Update the callers below:
652
653 (linux_process_target::resume_one_lwp_throw)
654 (linux_process_target::low_prepare_to_resume)
655
656 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
657 Declare.
658 (x86_target::low_prepare_to_resume): Define.
659 (the_low_target): Remove the op field.
660 * linux-aarch64-low.cc (class aarch64_target)
661 <low_prepare_to_resume>: Declare.
662 (aarch64_target::low_prepare_to_resume): Define.
663 (the_low_target): Remove the op field.
664 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
665 Declare.
666 (arm_prepare_to_resume): Turn into...
667 (arm_target::low_prepare_to_resume): ...this.
668 (the_low_target): Remove the op field.
669 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
670 Declare.
671 (mips_linux_prepare_to_resume): Turn into...
672 (mips_target::low_prepare_to_resume): ...this.
673 (the_low_target): Remove the op field.
674 * linux-bfin-low.cc (the_low_target): Remove the op field.
675 * linux-crisv32-low.cc (the_low_target): Ditto.
676 * linux-m32r-low.cc (the_low_target): Ditto.
677 * linux-m68k-low.cc (the_low_target): Ditto.
678 * linux-ppc-low.cc (the_low_target): Ditto.
679 * linux-s390-low.cc (the_low_target): Ditto.
680 * linux-sh-low.cc (the_low_target): Ditto.
681 * linux-tic6x-low.cc (the_low_target): Ditto.
682 * linux-tile-low.cc (the_low_target): Ditto.
683 * linux-xtensa-low.cc (the_low_target): Ditto.
684
fd000fb3
TBA
6852020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
686
687 Turn the 'new_process', 'delete_process', 'new_thread',
688 'delete_thread', and 'new_fork' linux target ops into methods
689 of linux_process_target.
690
691 * linux-low.h (struct linux_target_ops): Remove the ops.
692 (class linux_process_target) <add_linux_process>
693 <add_lwp>
694 <delete_lwp>
695 <attach_lwp>
696 <detach_one_lwp>
697 <check_zombie_leaders>
698 <filter_exit_event>
699 <low_new_process>
700 <low_delete_process>
701 <low_new_thread>
702 <low_delete_thread>
703 <low_new_fork>: Declare.
704 * linux-low.cc (delete_lwp): Turn into...
705 (linux_process_target::delete_lwp): ...this.
706 (linux_process_target::low_delete_thread): Define.
707 (linux_add_process): Turn into...
708 (linux_process_target::add_linux_process): ...this.
709 (linux_process_target::low_new_process): Define.
710 (linux_process_target::low_delete_process): Define.
711 (linux_process_target::low_new_fork): Define.
712 (add_lwp): Turn into...
713 (linux_process_target::add_lwp): ...this.
714 (linux_process_target::low_new_thread): Define.
715 (linux_attach_lwp): Turn into...
716 (linux_process_target::attach_lwp): ...this.
717 (linux_detach_one_lwp): Turn into...
718 (linux_process_target::detach_one_lwp): ...this.
719 (linux_detach_lwp_callback): Remove and inline...
720 (linux_process_target::detach): ...here.
721 (check_zombie_leaders): Turn into...
722 (linux_process_target::check_zombie_leaders): ...this.
723 (filter_exit_event): Turn into...
724 (linux_process_target::filter_exit_event): ...this.
725
726 Update the callers below.
727
728 (linux_process_target::handle_extended_wait)
729 (linux_process_target::create_inferior)
730 (attach_proc_task_lwp_callback)
731 (linux_process_target::attach)
732 (linux_process_target::detach)
733 (linux_process_target::mourn)
734 * thread-db.cc (attach_thread)
735
736 * linux-x86-low.cc (class x86_target) <low_new_process>
737 <low_delete_process>
738 <low_new_thread>
739 <low_delete_thread>
740 <low_new_fork>: Declare.
741 (x86_linux_new_process): Turn into...
742 (x86_target::low_new_process): ...this.
743 (x86_linux_delete_process): Turn into...
744 (x86_target::low_delete_process): ...this.
745 (x86_target::low_new_thread): Define.
746 (x86_target::low_delete_thread): Define.
747 (x86_linux_new_fork): Turn into...
748 (x86_target::low_new_fork): ...this.
749 (the_low_target): Remove the op fields.
750 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
751 <low_delete_process>
752 <low_new_thread>
753 <low_delete_thread>
754 <low_new_fork>: Declare.
755 (aarch64_linux_new_process): Turn into...
756 (aarch64_target::low_new_process): ...this.
757 (aarch64_linux_delete_process): Turn into...
758 (aarch64_target::low_delete_process): ...this.
759 (aarch64_target::low_new_thread): Define.
760 (aarch64_target::low_delete_thread): Define.
761 (aarch64_linux_new_fork): Turn into...
762 (aarch64_target::low_new_fork): ...this.
763 (the_low_target): Remove the op fields.
764 * linux-arm-low.cc (class arm_target) <low_new_process>
765 <low_delete_process>
766 <low_new_thread>
767 <low_delete_thread>
768 <low_new_fork>: Declare.
769 (arm_new_process): Turn into...
770 (arm_target::low_new_process): ...this.
771 (arm_delete_process): Turn into...
772 (arm_target::low_delete_process): ...this.
773 (arm_new_thread): Turn into...
774 (arm_target::low_new_thread): ...this.
775 (arm_delete_thread): Turn into...
776 (arm_target::low_delete_thread): ...this.
777 (arm_new_fork): Turn into...
778 (arm_target::low_new_fork): ...this.
779 (the_low_target): Remove the op fields.
780 * linux-mips-low.cc (class mips_target) <low_new_process>
781 <low_delete_process>
782 <low_new_thread>
783 <low_delete_thread>
784 <low_new_fork>: Declare.
785 (mips_linux_new_process): Turn into...
786 (mips_target::low_new_process): ...this.
787 (mips_linux_delete_process): Turn into...
788 (mips_target::low_delete_process): ...this.
789 (mips_linux_new_thread): Turn into...
790 (mips_target::low_new_thread): ...this.
791 (mips_linux_delete_thread): Turn into...
792 (mips_target::low_delete_thread): ...this.
793 (mips_linux_new_fork): Turn into...
794 (mips_target::low_new_fork): ...this.
795 (the_low_target): Remove the op fields.
796 * linux-bfin-low.cc (the_low_target): Remove the op fields.
797 * linux-crisv32-low.cc (the_low_target): Ditto.
798 * linux-m32r-low.cc (the_low_target): Ditto.
799 * linux-m68k-low.cc (the_low_target): Ditto.
800 * linux-ppc-low.cc (the_low_target): Ditto.
801 * linux-s390-low.cc (the_low_target): Ditto.
802 * linux-sh-low.cc (the_low_target): Ditto.
803 * linux-tic6x-low.cc (the_low_target): Ditto.
804 * linux-tile-low.cc (the_low_target): Ditto.
805 * linux-xtensa-low.cc (the_low_target): Ditto.
806
cb63de7c
TBA
8072020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
808
809 Turn the 'siginfo_fixup' linux target op into a method of
810 linux_process_target.
811
812 * linux-low.h (struct linux_target_ops): Remove the op.
813 (class linux_process_target) <siginfo_fixup>
814 <low_siginfo_fixup>: Declare.
815 * linux-low.cc (siginfo_fixup): Turn into...
816 (linux_process_target::siginfo_fixup): ...this.
817 (linux_process_target::low_siginfo_fixup): Define.
818 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
819 (x86_siginfo_fixup): Turn into...
820 (x86_target::low_siginfo_fixup): ...this.
821 (the_low_target): Remove the op field.
822 * linux-aarch64-low.cc (class aarch64_target):
823 <low_siginfo_fixup>: Declare.
824 (aarch64_linux_siginfo_fixup): Turn into...
825 (aarch64_target::low_siginfo_fixup): ...this.
826 (the_low_target): Remove the op field.
827 * linux-arm-low.cc (the_low_target): Remove the op field.
828 * linux-bfin-low.cc (the_low_target): Ditto.
829 * linux-crisv32-low.cc (the_low_target): Ditto.
830 * linux-m32r-low.cc (the_low_target): Ditto.
831 * linux-m68k-low.cc (the_low_target): Ditto.
832 * linux-mips-low.cc (the_low_target): Ditto.
833 * linux-ppc-low.cc (the_low_target): Ditto.
834 * linux-s390-low.cc (the_low_target): Ditto.
835 * linux-sh-low.cc (the_low_target): Ditto.
836 * linux-tic6x-low.cc (the_low_target): Ditto.
837 * linux-tile-low.cc (the_low_target): Ditto.
838 * linux-xtensa-low.cc (the_low_target): Ditto.
839
b35db733
TBA
8402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
841
842 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
843 linux target ops into methods of linux_process_target.
844
845 * linux-low.h (struct linux_target_ops): Remove the ops.
846 (class linux_process_target) <low_collect_ptrace_register>
847 <low_store_ptrace_register>: Declare.
848 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
849 (linux_process_target::low_supply_ptrace_register): Define.
850
851 Update the callers below.
852
853 (linux_process_target::fetch_register)
854 (linux_process_target::store_register)
855
856 * linux-x86-low.cc (the_low_target): Remove the op fields.
857 * linux-aarch64-low.cc (the_low_target): Ditto.
858 * linux-arm-low.cc (the_low_target): Ditto.
859 * linux-bfin-low.cc (the_low_target): Ditto.
860 * linux-crisv32-low.cc (the_low_target): Ditto.
861 * linux-m32r-low.cc (the_low_target): Ditto.
862 * linux-m68k-low.cc (the_low_target): Ditto.
863 * linux-sh-low.cc (the_low_target): Ditto.
864 * linux-sparc-low.cc (the_low_target): Ditto.
865 * linux-tic6x-low.cc (the_low_target): Ditto.
866 * linux-tile-low.cc (the_low_target): Ditto.
867 * linux-xtensa-low.cc (the_low_target): Ditto.
868 * linux-mips-low.cc (class mips_target)
869 <low_collect_ptrace_register>
870 <low_supply_ptrace_register>: Declare.
871 (mips_collect_ptrace_register): Turn into ...
872 (mips_target::low_collect_ptrace_register): ...this.
873 (mips_supply_ptrace_register): Turn into...
874 (mips_target::low_supply_ptrace_register): ...this.
875 (the_low_target): Remove the op fields.
876 * linux-ppc-low.cc (class ppc_target)
877 <low_collect_ptrace_register>
878 <low_supply_ptrace_register>: Declare.
879 (ppc_collect_ptrace_register): Turn into ...
880 (ppc_target::low_collect_ptrace_register): ...this.
881 (ppc_supply_ptrace_register): Turn into ...
882 (ppc_target::low_supply_ptrace_register): ...this.
883 (ppc_fill_gregset): Update for the calls to
884 low_collect_ptrace_register.
885 (the_low_target): Remove the op fields.
886 * linux-s390-low.cc (class s390_target)
887 <low_collect_ptrace_register>
888 <low_supply_ptrace_register>: Declare.
889 (s390_collect_ptrace_register): Turn into ...
890 (s390_target::low_collect_ptrace_register): ...this.
891 (s390_supply_ptrace_register): Turn into ...
892 (s390_target::low_supply_ptrace_register): ...this.
893 (s390_fill_gregset): Update for the calls to
894 low_collect_ptrace_register.
895 (the_low_target): Remove the op fields.
896
ac1bbaca
TBA
8972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
898
899 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
900 target ops into methods of linux_process_target.
901
902 * linux-low.h (struct linux_target_ops): Remove the ops.
903 (class linux_process_target) <check_stopped_by_watchpoint>
904 <low_stopped_by_watchpoint>
905 <low_stopped_data_address>: Declare.
906 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
907 (linux_process_target::check_stopped_by_watchpoint): ...this.
908 (linux_process_target::low_stopped_by_watchpoint): Define.
909 (linux_process_target::low_stopped_data_address): Define.
910 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
911 <low_stopped_data_address>: Declare.
912 (x86_stopped_by_watchpoint): Turn into...
913 (x86_target::low_stopped_by_watchpoint): ...this.
914 (x86_stopped_data_address): Turn into...
915 (x86_target::low_stopped_data_address): ...this.
916 (the_low_target): Remove the op fields.
917 * linux-aarch64-low.cc (class aarch64_target)
918 <low_stopped_by_watchpoint>
919 <low_stopped_data_address>: Declare.
920 (aarch64_stopped_by_watchpoint): Turn into...
921 (aarch64_target::low_stopped_by_watchpoint): ...this.
922 (aarch64_stopped_data_address): Turn into...
923 (aarch64_target::low_stopped_data_address): ...this.
924 (the_low_target): Remove the op fields.
925 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
926 <low_stopped_data_address>: Declare.
927 (arm_stopped_by_watchpoint): Turn into...
928 (arm_target::low_stopped_by_watchpoint): ...this.
929 (arm_stopped_data_address): Turn into...
930 (arm_target::low_stopped_data_address): ...this.
931 (the_low_target): Remove the op fields.
932 * linux-crisv32-low.cc (class crisv32_target)
933 <low_stopped_by_watchpoint>
934 <low_stopped_data_address>: Declare.
935 (cris_stopped_by_watchpoint): Turn into...
936 (crisv32_target::low_stopped_by_watchpoint): ...this.
937 (cris_stopped_data_address): Turn into...
938 (crisv32_target::low_stopped_data_address): ...this.
939 (the_low_target): Remove the op fields.
940 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
941 <low_stopped_data_address>: Declare.
942 (mips_stopped_by_watchpoint): Turn into...
943 (mips_target::low_stopped_by_watchpoint): ...this.
944 (mips_stopped_data_address): Turn into...
945 (mips_target::low_stopped_data_address): ...this.
946 (the_low_target): Remove the op fields.
947 * linux-bfin-low.cc (the_low_target): Remove the op fields.
948 * linux-m32r-low.cc (the_low_target): Ditto.
949 * linux-m68k-low.cc (the_low_target): Ditto.
950 * linux-ppc-low.cc (the_low_target): Ditto.
951 * linux-s390-low.cc (the_low_target): Ditto.
952 * linux-sh-low.cc (the_low_target): Ditto.
953 * linux-sparc-low.cc (the_low_target): Ditto.
954 * linux-tic6x-low.cc (the_low_target): Ditto.
955 * linux-tile-low.cc (the_low_target): Ditto.
956 * linux-xtensa-low.cc (the_low_target): Ditto.
957
9db9aa23
TBA
9582020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
959
960 Turn the 'insert_point' and 'remove_point' linux target ops into
961 methods of linux_process_target.
962
963 * linux-low.h (struct linux_target_ops): Remove the ops.
964 (class linux_process_target) <low_insert_point>
965 <low_remove_point>: Declare.
966 * linux-low.cc (linux_process_target::low_insert_point)
967 (linux_process_target::low_remove_point): Define.
968 (linux_process_target::insert_point)
969 (linux_process_target::remove_point): Update for calls to
970 low_insert_point and low_remove_point.
971 * linux-x86-low.cc (class x86_target) <low_insert_point>
972 <low_remove_point>: Declare.
973 (x86_insert_point): Turn into...
974 (x86_target::low_insert_point): ...this.
975 (x86_remove_point): Turn into...
976 (x86_target::low_remove_point): ...this.
977 (the_low_target): Remove the op fields.
978 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
979 <low_remove_point>: Declare.
980 (aarch64_insert_point): Turn into...
981 (aarch64_target::low_insert_point): ...this.
982 (aarch64_remove_point): Turn into...
983 (aarch64_target::low_remove_point): ...this.
984 (the_low_target): Remove the op fields.
985 * linux-arm-low.cc (class arm_target) <low_insert_point>
986 <low_remove_point>: Declare.
987 (arm_insert_point): Turn into...
988 (arm_target::low_insert_point): ...this.
989 (arm_remove_point): Turn into...
990 (arm_target::low_remove_point): ...this.
991 (the_low_target): Remove the op fields.
992 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
993 <low_remove_point>: Declare.
994 (crisv32_insert_point): Turn into...
995 (crisv32_target::low_insert_point): ...this.
996 (crisv32_remove_point): Turn into...
997 (crisv32_target::low_remove_point): ...this.
998 (the_low_target): Remove the op fields.
999 * linux-mips-low.cc (class mips_target) <low_insert_point>
1000 <low_remove_point>: Declare.
1001 (mips_insert_point): Turn into...
1002 (mips_target::low_insert_point): ...this.
1003 (mips_remove_point): Turn into...
1004 (mips_target::low_remove_point): ...this.
1005 (the_low_target): Remove the op fields.
1006 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1007 <low_remove_point>: Declare.
1008 (ppc_insert_point): Turn into...
1009 (ppc_target::low_insert_point): ...this.
1010 (ppc_remove_point): Turn into...
1011 (ppc_target::low_remove_point): ...this.
1012 (the_low_target): Remove the op fields.
1013 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1014 * linux-m32r-low.cc (the_low_target): Ditto.
1015 * linux-m68k-low.cc (the_low_target): Ditto.
1016 * linux-s390-low.cc (the_low_target): Ditto.
1017 * linux-sh-low.cc (the_low_target): Ditto.
1018 * linux-sparc-low.cc (the_low_target): Ditto.
1019 * linux-tic6x-low.cc (the_low_target): Ditto.
1020 * linux-tile-low.cc (the_low_target): Ditto.
1021 * linux-xtensa-low.cc (the_low_target): Ditto.
1022
007c9b97
TBA
10232020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1024
1025 Remove the 'supports_z_point_type' linux target op and let the
1026 concrete linux target define it by overriding the op declared in
1027 process_stratum_target.
1028
1029 * linux-low.cc (linux_process_target::supports_z_point_type):
1030 Remove.
1031 * linux-low.h (struct linux_target_ops): Remove the op.
1032 (class linux_process_target) <supports_z_point_type>: Remove.
1033 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1034 Declare.
1035 (x86_supports_z_point_type): Turn into...
1036 (x86_target::supports_z_point_type): ...this.
1037 (the_low_target): Remove the op field.
1038 * linux-aarch64-low.cc (class aarch64_target)
1039 <supports_z_point_type>: Declare.
1040 (aarch64_supports_z_point_type): Turn into...
1041 (aarch64_target::supports_z_point_type): ...this.
1042 (the_low_target): Remove the op field.
1043 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1044 Declare.
1045 (arm_supports_z_point_type): Turn into...
1046 (arm_target::supports_z_point_type): ...this.
1047 (the_low_target): Remove the op field.
1048 * linux-crisv32-low.cc (class crisv32_target)
1049 <supports_z_point_type>: Declare.
1050 (cris_supports_z_point_type): Turn into...
1051 (crisv32_target::supports_z_point_type): ...this.
1052 (the_low_target): Remove the op field.
1053 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1054 Declare.
1055 (mips_supports_z_point_type): Turn into...
1056 (mips_target::supports_z_point_type): ...this.
1057 (the_low_target): Remove the op field.
1058 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1059 Declare.
1060 (ppc_supports_z_point_type): Turn into...
1061 (ppc_target::supports_z_point_type): ...this.
1062 (the_low_target): Remove the op field.
1063 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1064 Declare.
1065 (s390_supports_z_point_type): Turn into...
1066 (s390_target::supports_z_point_type): ...this.
1067 (the_low_target): Remove the op field.
1068 * linux-bfin-low.cc (the_low_target): Remove the op field.
1069 * linux-m32r-low.cc (the_low_target): Ditto.
1070 * linux-m68k-low.cc (the_low_target): Ditto.
1071 * linux-sh-low.cc (the_low_target): Ditto.
1072 * linux-sparc-low.cc (the_low_target): Ditto.
1073 * linux-tic6x-low.cc (the_low_target): Ditto.
1074 * linux-tile-low.cc (the_low_target): Ditto.
1075 * linux-xtensa-low.cc (the_low_target): Ditto.
1076
d7146cda
TBA
10772020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1078
1079 Turn the 'breakpoint_at' linux target op into a method of
1080 linux_process_target.
1081
1082 * linux-low.h (struct linux_target_ops): Remove the op.
1083 (class linux_process_target) <low_breakpoint_at>: Declare.
1084
1085 Update the callers below:
1086
1087 * linux-low.cc (linux_process_target::save_stop_reason)
1088 (linux_process_target::thread_still_has_status_pending)
1089 (linux_process_target::wait_1)
1090
1091 * linux-x86-low.cc (class x86_target)
1092 <low_breakpoint_at>: Declare.
1093 (x86_breakpoint_at): Turn into...
1094 (x86_target::low_breakpoint_at): ...this.
1095 (the_low_target): Remove the op field.
1096 * linux-aarch64-low.cc (class aarch64_target)
1097 <low_breakpoint_at>: Declare.
1098 (aarch64_breakpoint_at): Turn into...
1099 (aarch64_target::low_breakpoint_at): ...this.
1100 (the_low_target): Remove the op field.
1101 * linux-arm-low.cc (class arm_target)
1102 <low_breakpoint_at>: Declare.
1103 (arm_target::low_breakpoint_at): Define.
1104 (the_low_target): Remove the op field.
1105 * linux-bfin-low.cc (class bfin_target)
1106 <low_breakpoint_at>: Declare.
1107 (bfin_breakpoint_at): Turn into...
1108 (bfin_target::low_breakpoint_at): ...this.
1109 (the_low_target): Remove the op field.
1110 * linux-cris-low.cc (class cris_target)
1111 <low_breakpoint_at>: Declare.
1112 (cris_breakpoint_at): Turn into...
1113 (cris_target::low_breakpoint_at): ...this.
1114 (the_low_target): Remove the op field.
1115 * linux-crisv32-low.cc (class crisv32_target)
1116 <low_breakpoint_at>: Declare.
1117 (crisv32_breakpoint_at): Turn into...
1118 (crisv32_target::low_breakpoint_at): ...this.
1119 (the_low_target): Remove the op field.
1120 * linux-ia64-low.cc (class ia64_target)
1121 <low_breakpoint_at>: Declare.
1122 (ia64_target::low_breakpoint_at): Define.
1123 * linux-m32r-low.cc (class m32r_target)
1124 <low_breakpoint_at>: Declare.
1125 (m32r_breakpoint_at): Turn into...
1126 (m32r_target::low_breakpoint_at): ...this.
1127 (the_low_target): Remove the op field.
1128 * linux-m68k-low.cc (class m68k_target)
1129 <low_breakpoint_at>: Declare.
1130 (m68k_breakpoint_at): Turn into...
1131 (m68k_target::low_breakpoint_at): ...this.
1132 (the_low_target): Remove the op field.
1133 * linux-mips-low.cc (class mips_target)
1134 <low_breakpoint_at>: Declare.
1135 (mips_breakpoint_at): Turn into...
1136 (mips_target::low_breakpoint_at): ...this.
1137 (the_low_target): Remove the op field.
1138 * linux-nios2-low.cc (class nios2_target)
1139 <low_breakpoint_at>: Declare.
1140 (nios2_breakpoint_at): Turn into...
1141 (nios2_target::low_breakpoint_at): ...this.
1142 (the_low_target): Remove the op field.
1143 * linux-ppc-low.cc (class ppc_target)
1144 <low_breakpoint_at>: Declare.
1145 (ppc_breakpoint_at): Turn into...
1146 (ppc_target::low_breakpoint_at): ...this.
1147 (the_low_target): Remove the op field.
1148 * linux-riscv-low.cc (class riscv_target)
1149 <low_breakpoint_at>: Declare.
1150 (riscv_breakpoint_at): Turn into...
1151 (riscv_target::low_breakpoint_at): ...this.
1152 (the_low_target): Remove the op field.
1153 * linux-s390-low.cc (class s390_target)
1154 <low_breakpoint_at>: Declare.
1155 (s390_breakpoint_at): Turn into...
1156 (s390_target::low_breakpoint_at): ...this.
1157 (the_low_target): Remove the op field.
1158 * linux-sh-low.cc (class sh_target)
1159 <low_breakpoint_at>: Declare.
1160 (sh_breakpoint_at): Turn into...
1161 (sh_target::low_breakpoint_at): ...this.
1162 (the_low_target): Remove the op field.
1163 * linux-sparc-low.cc (class sparc_target)
1164 <low_breakpoint_at>: Declare.
1165 (sparc_breakpoint_at): Turn into...
1166 (sparc_target::low_breakpoint_at): ...this.
1167 (the_low_target): Remove the op field.
1168 * linux-tic6x-low.cc (class tic6x_target)
1169 <low_breakpoint_at>: Declare.
1170 (tic6x_breakpoint_at): Turn into...
1171 (tic6x_target::low_breakpoint_at): ...this.
1172 (the_low_target): Remove the op field.
1173 * linux-tile-low.cc (class tile_target)
1174 <low_breakpoint_at>: Declare.
1175 (tile_breakpoint_at): Turn into...
1176 (tile_target::low_breakpoint_at): ...this.
1177 (the_low_target): Remove the op field.
1178 * linux-xtensa-low.cc (class xtensa_target)
1179 <low_breakpoint_at>: Declare.
1180 (xtensa_breakpoint_at): Turn into...
1181 (xtensa_target::low_breakpoint_at): ...this.
1182 (the_low_target): Remove the op field.
1183
d4807ea2
TBA
11842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1185
1186 Turn the 'decr_pc_after_break' linux_target_ops field into
1187 a method of linux_process_target.
1188
1189 * linux-low.h (struct linux_target_ops)
1190 <decr_pc_after_break>: Remove.
1191 (class linux_process_target) <low_decr_pc_after_break>: New method
1192 declaration.
1193 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1194 New method implementation.
1195
1196 Update the users below.
1197
1198 (linux_process_target::save_stop_reason)
1199 (linux_process_target::wait_1)
1200 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1201 New declaration.
1202 (x86_target::low_decr_pc_after_break): New method implementation.
1203 (the_low_target): Remove the field.
1204 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1205 New declaration.
1206 (bfin_target::low_decr_pc_after_break): New method implementation.
1207 (the_low_target): Remove the field.
1208 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1209 New declaration.
1210 (m68k_target::low_decr_pc_after_break): New method implementation.
1211 (the_low_target): Remove the field.
1212 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1213 New declaration.
1214 (s390_target::low_decr_pc_after_break): New method implementation.
1215 (the_low_target): Remove the field.
1216 * linux-aarch64-low.cc (the_low_target): Remove the field.
1217 * linux-arm-low.cc (the_low_target): Remove the field.
1218 * linux-cris-low.cc (the_low_target): Remove the field.
1219 * linux-crisv32-low.cc (the_low_target): Remove the field.
1220 * linux-m32r-low.cc (the_low_target): Remove the field.
1221 * linux-mips-low.cc (the_low_target): Remove the field.
1222 * linux-nios2-low.cc (the_low_target): Remove the field.
1223 * linux-ppc-low.cc (the_low_target): Remove the field.
1224 * linux-riscv-low.cc (the_low_target): Remove the field.
1225 * linux-sh-low.cc (the_low_target): Remove the field.
1226 * linux-sparc-low.cc (the_low_target): Remove the field.
1227 * linux-tic6x-low.cc (the_low_target): Remove the field.
1228 * linux-tile-low.cc (the_low_target): Remove the field.
1229 * linux-xtensa-low.cc (the_low_target): Remove the field.
1230
7582c77c
TBA
12312020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1232
1233 Remove the 'supports_software_single_step' linux target op and let
1234 the concrete linux target define it by overriding the op in
1235 process_stratum_target.
1236 Turn the 'get_next_pcs' linux target op into a method of
1237 linux_process_target.
1238
1239 * linux-low.h (struct linux_target_ops): Remove the ops.
1240 (class linux_process_target) <supports_software_single_step>:
1241 Remove.
1242 <low_get_next_pcs>: Declare.
1243 * linux-low.cc (can_software_single_step): Remove.
1244 (linux_process_target::low_get_next_pcs): Define.
1245 (linux_process_target::supports_software_single_step): Remove.
1246
1247 Update the callers below.
1248
1249 (linux_process_target::handle_extended_wait)
1250 (linux_process_target::wait_1)
1251 (linux_process_target::install_software_single_step_breakpoints)
1252 (linux_process_target::single_step)
1253 (linux_process_target::thread_needs_step_over)
1254 (linux_process_target::proceed_one_lwp)
1255 (linux_process_target::supports_range_stepping)
1256
1257 * linux-x86-low.cc (the_low_target): Remove the op field.
1258 * linux-aarch64-low.cc (the_low_target): Ditto.
1259 * linux-bfin-low.cc (the_low_target): Ditto.
1260 * linux-cris-low.cc (the_low_target): Ditto.
1261 * linux-crisv32-low.cc (the_low_target): Ditto.
1262 * linux-m32r-low.cc (the_low_target): Ditto.
1263 * linux-m68k-low.cc (the_low_target): Ditto.
1264 * linux-mips-low.cc (the_low_target): Ditto.
1265 * linux-nios2-low.cc (the_low_target): Ditto.
1266 * linux-ppc-low.cc (the_low_target): Ditto.
1267 * linux-riscv-low.cc (the_low_target): Ditto.
1268 * linux-s390-low.cc (the_low_target): Ditto.
1269 * linux-sh-low.cc (the_low_target): Ditto.
1270 * linux-sparc-low.cc (the_low_target): Ditto.
1271 * linux-tic6x-low.cc (the_low_target): Ditto.
1272 * linux-tile-low.cc (the_low_target): Ditto.
1273 * linux-xtensa-low.cc (the_low_target): Ditto.
1274 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1275 <supports_software_single_step>: Declare.
1276 (arm_target::supports_software_single_step): Define.
1277 (arm_gdbserver_get_next_pcs): Turn into...
1278 (arm_target::low_get_next_pcs): ...this.
1279 (the_low_target): Remove the op field.
1280
3ca4edb6
TBA
12812020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1282
1283 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1284 the concrete linux target define it by overriding the op
1285 in process_stratum_target.
1286
1287 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1288 Remove.
1289 * linux-low.h (struct linux_target_ops): Remove the op.
1290 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1291 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1292 Declare.
1293 (x86_sw_breakpoint_from_kind): Turn into...
1294 (x86_target::sw_breakpoint_from_kind): ...this.
1295 (the_low_target): Remove the op field.
1296 * linux-aarch64-low.cc (class aarch64_target)
1297 <sw_breakpoint_from_kind>: Declare.
1298 (aarch64_sw_breakpoint_from_kind): Turn into...
1299 (aarch64_target::sw_breakpoint_from_kind): ...this.
1300 (the_low_target): Remove the op field.
1301 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1302 Declare.
1303 (arm_target::sw_breakpoint_from_kind): Define.
1304 (the_low_target): Remove the op field.
1305 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1306 Declare.
1307 (bfin_sw_breakpoint_from_kind): Turn into...
1308 (bfin_target::sw_breakpoint_from_kind): ...this.
1309 (the_low_target): Remove the op field.
1310 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1311 Declare.
1312 (cris_sw_breakpoint_from_kind): Turn into...
1313 (cris_target::sw_breakpoint_from_kind): ...this.
1314 (the_low_target): Remove the op field.
1315 * linux-crisv32-low.cc (class crisv32_target)
1316 <sw_breakpoint_from_kind>: Declare.
1317 (cris_sw_breakpoint_from_kind): Turn into...
1318 (crisv32_target::sw_breakpoint_from_kind): ...this.
1319 (the_low_target): Remove the op field.
1320 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1321 Declare.
1322 (ia64_target::sw_breakpoint_from_kind): Define.
1323 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1324 Declare.
1325 (m32r_sw_breakpoint_from_kind): Turn into...
1326 (m32r_target::sw_breakpoint_from_kind): ...this.
1327 (the_low_target): Remove the op field.
1328 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1329 Declare.
1330 (m68k_sw_breakpoint_from_kind): Turn into...
1331 (m68k_target::sw_breakpoint_from_kind): ...this.
1332 (the_low_target): Remove the op field.
1333 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1334 Declare.
1335 (mips_sw_breakpoint_from_kind): Turn into...
1336 (mips_target::sw_breakpoint_from_kind): ...this.
1337 (the_low_target): Remove the op field.
1338 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1339 Declare.
1340 (nios2_sw_breakpoint_from_kind): Turn into...
1341 (nios2_target::sw_breakpoint_from_kind): ...this.
1342 (the_low_target): Remove the op field.
1343 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1344 Declare.
1345 (ppc_sw_breakpoint_from_kind): Turn into...
1346 (ppc_target::sw_breakpoint_from_kind): ...this.
1347 (the_low_target): Remove the op field.
1348 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1349 Declare.
1350 (riscv_sw_breakpoint_from_kind): Turn into...
1351 (riscv_target::sw_breakpoint_from_kind): ...this.
1352 (the_low_target): Remove the op field.
1353 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1354 Declare.
1355 (s390_sw_breakpoint_from_kind): Turn into...
1356 (s390_target::sw_breakpoint_from_kind): ...this.
1357 (the_low_target): Remove the op field.
1358 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1359 Declare.
1360 (sh_sw_breakpoint_from_kind): Turn into...
1361 (sh_target::sw_breakpoint_from_kind): ...this.
1362 (the_low_target): Remove the op field.
1363 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1364 Declare.
1365 (sparc_sw_breakpoint_from_kind): Turn into...
1366 (sparc_target::sw_breakpoint_from_kind): ...this.
1367 (the_low_target): Remove the op field.
1368 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1369 Declare.
1370 (tic6x_sw_breakpoint_from_kind): Turn into...
1371 (tic6x_target::sw_breakpoint_from_kind): ...this.
1372 (the_low_target): Remove the op field.
1373 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1374 Declare.
1375 (tile_sw_breakpoint_from_kind): Turn into...
1376 (tile_target::sw_breakpoint_from_kind): ...this.
1377 (the_low_target): Remove the op field.
1378 * linux-xtensa-low.cc (class xtensa_target)
1379 <sw_breakpoint_from_kind>: Declare.
1380 (xtensa_sw_breakpoint_from_kind): Turn into...
1381 (xtensa_target::sw_breakpoint_from_kind): ...this.
1382 (the_low_target): Remove the op field.
1383
06250e4e
TBA
13842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1385
1386 Remove the 'breakpoint_kind_from_pc' and
1387 'breakpoint_kind_from_current_state' linux target ops, and let the
1388 concrete linux target define them by overriding the ops of
1389 process_stratum_target.
1390
1391 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1392 Remove.
1393 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1394 * linux-low.h (struct linux_target_ops): Remove ops.
1395 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1396 <breakpoint_kind_from_current_state>: Remove.
1397 * linux-x86-low.cc (the_low_target): Remove the op fields.
1398 * linux-bfin-low.cc (the_low_target): Ditto.
1399 * linux-cris-low.cc (the_low_target): Ditto.
1400 * linux-crisv32-low.cc (the_low_target): Ditto.
1401 * linux-m32r-low.cc (the_low_target): Ditto.
1402 * linux-m68k-low.cc (the_low_target): Ditto.
1403 * linux-mips-low.cc (the_low_target): Ditto.
1404 * linux-nios2-low.cc (the_low_target): Ditto.
1405 * linux-ppc-low.cc (the_low_target): Ditto.
1406 * linux-s390-low.cc (the_low_target): Ditto.
1407 * linux-sh-low.cc (the_low_target): Ditto.
1408 * linux-sparc-low.cc (the_low_target): Ditto.
1409 * linux-tic6x-low.cc (the_low_target): Ditto.
1410 * linux-tile-low.cc (the_low_target): Ditto.
1411 * linux-xtensa-low.cc (the_low_target): Ditto.
1412 * linux-aarch64-low.cc (class aarch64_target)
1413 <breakpoint_kind_from_pc>
1414 <breakpoint_kind_from_current_state>: Declare.
1415 (aarch64_breakpoint_kind_from_pc): Turn into...
1416 (aarch64_target::breakpoint_kind_from_pc): ...this.
1417 (aarch64_breakpoint_kind_from_current_state): Turn into...
1418 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1419 (the_low_target): Remove the op fields.
1420 * linux-arm-low.cc (class arm_target):
1421 <breakpoint_kind_from_pc>
1422 <breakpoint_kind_from_current_state>: Declare.
1423 (arm_target::breakpoint_kind_from_pc): Define.
1424 (arm_target::breakpoint_kind_from_current_state): Define.
1425 (the_low_target): Remove the op fields.
1426 * linux-riscv-low.cc (class riscv_target):
1427 <breakpoint_kind_from_pc>: Declare.
1428 (riscv_breakpoint_kind_from_pc): Turn into...
1429 (riscv_target::breakpoint_kind_from_pc): ...this.
1430 (the_low_target): Remove the op fields.
1431
bf9ae9d8
TBA
14322020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1433
1434 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1435 of linux_process_target.
1436
1437 * linux-low.h (struct linux_target_ops): Remove the ops.
1438 (class linux_process_target) <low_supports_breakpoints>
1439 <low_get_pc>
1440 <low_set_pc>: Declare.
1441 * linux-low.cc (supports_breakpoints): Turn into...
1442 (linux_process_target::low_supports_breakpoints): ...this.
1443 (linux_process_target::low_get_pc): Define.
1444 (linux_process_target::low_set_pc): Define.
1445
1446 Update the callers below.
1447
1448 (linux_process_target::get_pc)
1449 (linux_process_target::save_stop_reason)
1450 (linux_process_target::maybe_move_out_of_jump_pad)
1451 (linux_process_target::wait_1)
1452 (linux_process_target::resume_one_lwp_throw)
1453 (linux_process_target::resume)
1454 (linux_process_target::proceed_all_lwps)
1455 (linux_process_target::read_pc)
1456 (linux_process_target::write_pc)
1457
1458 * linux-x86-low.cc (class linux_process_target)
1459 <low_supports_breakpoints>
1460 <low_get_pc>
1461 <low_set_pc>: Declare.
1462 (x86_target::low_supports_breakpoints): Define.
1463 (x86_get_pc): Turn into...
1464 (x86_target::low_get_pc): ...this.
1465 (x86_set_pc): Turn into...
1466 (x86_target::low_set_pc): ...this.
1467 (the_low_target): Remove the op fields.
1468 * linux-arm-low.cc (class arm_target)
1469 <low_supports_breakpoints>
1470 <low_get_pc>
1471 <low_set_pc>: Declare.
1472 (arm_target::low_supports_breakpoints)
1473 (arm_target::low_get_pc)
1474 (arm_target::low_set_pc): Define.
1475 (the_low_target): Remove the op fields.
1476 * linux-bfin-low.cc (class bfin_target)
1477 <low_supports_breakpoints>
1478 <low_get_pc>
1479 <low_set_pc>: Declare.
1480 (bfin_target::low_supports_breakpoints)
1481 (bfin_target::low_get_pc)
1482 (bfin_target::low_set_pc): Define.
1483 (the_low_target): Remove the op fields.
1484 * linux-cris-low.cc (class cris_target)
1485 <low_supports_breakpoints>
1486 <low_get_pc>
1487 <low_set_pc>: Declare.
1488 (cris_target::low_supports_breakpoints)
1489 (cris_target::low_get_pc)
1490 (cris_target::low_set_pc): Define.
1491 (the_low_target): Remove the op fields.
1492 * linux-crisv32-low.cc (class crisv32_target)
1493 <low_supports_breakpoints>
1494 <low_get_pc>
1495 <low_set_pc>: Declare.
1496 (crisv32_target::low_supports_breakpoints)
1497 (crisv32_target::low_get_pc)
1498 (crisv32_target::low_set_pc): Define.
1499 (the_low_target): Remove the op fields.
1500 * linux-m32r-low.cc (class m32r_target)
1501 <low_supports_breakpoints>
1502 <low_get_pc>
1503 <low_set_pc>: Declare.
1504 (m32r_target::low_supports_breakpoints)
1505 (m32r_target::low_get_pc)
1506 (m32r_target::low_set_pc): Define.
1507 (the_low_target): Remove the op fields.
1508 * linux-m68k-low.cc (class m68k_target)
1509 <low_supports_breakpoints>
1510 <low_get_pc>
1511 <low_set_pc>: Declare.
1512 (m68k_target::low_supports_breakpoints)
1513 (m68k_target::low_get_pc)
1514 (m68k_target::low_set_pc): Define.
1515 (the_low_target): Remove the op fields.
1516 * linux-nios2-low.cc (class nios2_target)
1517 <low_supports_breakpoints>
1518 <low_get_pc>
1519 <low_set_pc>: Declare.
1520 (nios2_target::low_supports_breakpoints)
1521 (nios2_target::low_get_pc)
1522 (nios2_target::low_set_pc): Define.
1523 (the_low_target): Remove the op fields.
1524 * linux-sh-low.cc (class sh_target)
1525 <low_supports_breakpoints>
1526 <low_get_pc>
1527 <low_set_pc>: Declare.
1528 (sh_target::low_supports_breakpoints)
1529 (sh_target::low_get_pc)
1530 (sh_target::low_set_pc): Define.
1531 (the_low_target): Remove the op fields.
1532 * linux-xtensa-low.cc (class xtensa_target)
1533 <low_supports_breakpoints>
1534 <low_get_pc>
1535 <low_set_pc>: Declare.
1536 (xtensa_target::low_supports_breakpoints)
1537 (xtensa_target::low_get_pc)
1538 (xtensa_target::low_set_pc): Define.
1539 (the_low_target): Remove the op fields.
1540 * linux-sparc-low.cc (class sparc_target)
1541 <low_supports_breakpoints>
1542 <low_get_pc>: Declare.
1543 (sparc_target::low_supports_breakpoints)
1544 (sparc_target::low_get_pc): Define.
1545 (the_low_target): Remove the op fields.
1546 * linux-tile-low.cc (class tile_target)
1547 <low_supports_breakpoints>
1548 <low_get_pc>
1549 <low_set_pc>: Declare.
1550 (tile_target::low_supports_breakpoints)
1551 (tile_target::low_get_pc)
1552 (tile_target::low_set_pc): Define.
1553 (the_low_target): Remove the op fields.
1554 * linux-aarch64-low.cc (class aarch64_target)
1555 <low_supports_breakpoints>
1556 <low_get_pc>
1557 <low_set_pc>: Declare.
1558 (aarch64_target::low_supports_breakpoints): Define.
1559 (aarch64_get_pc): Turn into...
1560 (aarch64_target::low_get_pc): ...this.
1561 (aarch64_set_pc): Turn into...
1562 (aarch64_target::low_set_pc): ...this.
1563 (the_low_target): Remove the op fields.
1564 * linux-mips-low.cc (class mips_target)
1565 <low_supports_breakpoints>
1566 <low_get_pc>
1567 <low_set_pc>: Declare.
1568 (mips_target::low_supports_breakpoints): Define.
1569 (mips_get_pc): Turn into...
1570 (mips_target::low_get_pc): ...this.
1571 (mips_set_pc): Turn into...
1572 (mips_target::low_set_pc): ...this.
1573 (the_low_target): Remove the op fields.
1574 * linux-ppc-low.cc (class ppc_target)
1575 <low_supports_breakpoints>
1576 <low_get_pc>
1577 <low_set_pc>: Declare.
1578 (ppc_target::low_supports_breakpoints): Define.
1579 (ppc_get_pc): Turn into...
1580 (ppc_target::low_get_pc): ...this.
1581 (ppc_set_pc): Turn into...
1582 (ppc_target::low_set_pc): ...this.
1583 (the_low_target): Remove the op fields.
1584 * linux-riscv-low.cc (class riscv_target)
1585 <low_supports_breakpoints>
1586 <low_get_pc>
1587 <low_set_pc>: Declare.
1588 (riscv_target::low_supports_breakpoints): Define.
1589 (riscv_get_pc): Turn into...
1590 (riscv_target::low_get_pc): ...this.
1591 (riscv_set_pc): Turn into...
1592 (riscv_target::low_set_pc): ...this.
1593 (the_low_target): Remove the op fields.
1594 * linux-s390-low.cc (class s390_target)
1595 <low_supports_breakpoints>
1596 <low_get_pc>
1597 <low_set_pc>: Declare.
1598 (s390_target::low_supports_breakpoints): Define.
1599 (s390_get_pc): Turn into...
1600 (s390_target::low_get_pc): ...this.
1601 (s390_set_pc): Turn into...
1602 (s390_target::low_set_pc): ...this.
1603 (the_low_target): Remove the op fields.
1604 * linux-tic6x-low.cc (class tic6x_target)
1605 <low_supports_breakpoints>
1606 <low_get_pc>
1607 <low_set_pc>: Declare.
1608 (tic6x_target::low_supports_breakpoints): Define.
1609 (tic6x_get_pc): Turn into...
1610 (tic6x_target::low_get_pc): ...this.
1611 (tic6x_set_pc): Turn into...
1612 (tic6x_target::low_set_pc): ...this.
1613 (the_low_target): Remove the op fields.
1614
df95181f
TBA
16152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1616
1617 Turn some more static methods in linux-low into private methods
1618 of linux_process_target.
1619
1620 * linux-low.cc (get_pc): Turn into...
1621 (linux_process_target::get_pc): ...this.
1622 (save_stop_reason): Turn into...
1623 (linux_process_target::save_stop_reason): ...this.
1624 (thread_still_has_status_pending_p): Turn into...
1625 (linux_process_target::thread_still_has_status_pending): ...this.
1626 (status_pending_p_callback): Turn into...
1627 (linux_process_target::status_pending_p_callback): ...this.
1628 (resume_stopped_resumed_lwps): Turn into...
1629 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1630 (install_software_single_step_breakpoints): Turn into...
1631 (linux_process_target::install_software_single_step_breakpoints):
1632 ...this.
1633 (single_step): Turn into...
1634 (linux_process_target::single_step): ...this.
1635 (linux_resume_one_lwp_throw): Turn into...
1636 (linux_process_target::resume_one_lwp_throw): ...this.
1637 (linux_resume_one_lwp): Turn into...
1638 (linux_process_target::resume_one_lwp): ...this.
1639 (resume_status_pending_p): Turn into...
1640 (linux_process_target::resume_status_pending): ...this.
1641 (need_step_over_p): Turn into...
1642 (linux_process_target::thread_needs_step_over): ...this.
1643 (linux_resume_one_thread): Turn into...
1644 (linux_process_target::resume_one_thread): ...this.
1645 (proceed_one_lwp): Turn into...
1646 (linux_process_target::proceed_one_lwp): ...this.
1647 (unsuspend_and_proceed_one_lwp): Turn into...
1648 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1649
1650 Update the calls/references to the above functions below.
1651
1652 (linux_process_target::handle_extended_wait)
1653 (linux_process_target::filter_event)
1654 (linux_process_target::wait_for_event_filtered)
1655 (linux_process_target::wait_1)
1656 (linux_process_target::move_out_of_jump_pad)
1657 (linux_process_target::start_step_over)
1658 (linux_process_target::resume)
1659 (linux_process_target::proceed_all_lwps)
1660 (regsets_store_inferior_registers)
1661 (linux_process_target::store_register)
1662
1663 * linux-low.h (class linux_process_target)
1664 <get_pc>
1665 <save_stop_reason>
1666 <thread_still_has_status_pending>
1667 <status_pending_p_callback>
1668 <resume_stopped_resumed_lwps>
1669 <install_software_single_step_breakpoints>
1670 <single_step>
1671 <resume_one_lwp_throw>
1672 <resume_one_lwp>
1673 <resume_status_pending>
1674 <thread_needs_step_over>
1675 <resume_one_thread>
1676 <proceed_one_lwp>
1677 <unsuspend_and_proceed_one_lwp>: Declare.
1678
bd70b1f2
TBA
16792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1680
1681 Turn the 'fetch_register' linux target op into a method of
1682 linux_process_target.
1683
1684 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1685 (class linux_process_target) <low_fetch_register>: Declare.
1686 * linux-x86-low.cc (the_low_target)
1687 * linux-aarch64-low.cc (the_low_target)
1688 * linux-arm-low.cc (the_low_target)
1689 * linux-bfin-low.cc (the_low_target)
1690 * linux-cris-low.cc (the_low_target)
1691 * linux-crisv32-low.cc (the_low_target)
1692 * linux-m32r-low.cc (the_low_target)
1693 * linux-m68k-low.cc (the_low_target)
1694 * linux-nios2-low.cc (the_low_target)
1695 * linux-ppc-low.cc (the_low_target)
1696 * linux-s390-low.cc (the_low_target)
1697 * linux-sh-low.cc (the_low_target)
1698 * linux-sparc-low.cc (the_low_target)
1699 * linux-tic6x-low.cc (the_low_target)
1700 * linux-tile-low.cc (the_low_target)
1701 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1702 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1703 Declare.
1704 (ia64_fetch_register): Turn into...
1705 (ia64_target::low_fetch_register): ...this.
1706 (the_low_target): Remove the op field.
1707 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1708 Declare.
1709 (mips_fetch_register): Turn into...
1710 (mips_target::low_fetch_register): ...this.
1711 (the_low_target): Remove the op field.
1712 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1713 Declare.
1714 (riscv_fetch_register): Turn into...
1715 (riscv_target::low_fetch_register): ...this.
1716 (the_low_target): Remove the op field.
1717
1718 Update the callers below.
1719
1720 * linux-low.cc (linux_process_target::fetch_registers)
1721 (linux_process_target::low_fetch_register)
1722
daca57a7
TBA
17232020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1724
1725 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1726 linux target ops into methods of linux_process_target.
1727
1728 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1729 (class linux_process_target) <fetch_register>
1730 <store_register>
1731 <usr_fetch_inferior_registers>
1732 <usr_store_inferior_registers>
1733 <low_cannot_fetch_register>
1734 <low_cannot_fetch_register> Declare.
1735 * linux-low.cc (fetch_register): Turn into...
1736 (linux_process_target::fetch_register): ...this.
1737 (store_register): Turn into ...
1738 (linux_process_target::store_register): ...this.
1739 (usr_fetch_inferior_registers): Turn into...
1740 (linux_process_target::usr_fetch_inferior_registers): ...this.
1741 (usr_store_inferior_registers): Turn into...
1742 (linux_process_target::usr_store_inferior_registers): ...this.
1743 * linux-x86-low.cc (class x86_target)
1744 <low_cannot_fetch_register>
1745 <low_cannot_store_register>: Declare.
1746 (x86_cannot_store_register): Turn into...
1747 (x86_target::low_cannot_store_register): ...this.
1748 (x86_cannot_fetch_register): Turn into...
1749 (x86_target::low_cannot_fetch_register): ...this.
1750 (the_low_target): Remove the target op fields.
1751 * linux-aarch64-low.cc (class aarch64_target)
1752 <low_cannot_fetch_register>
1753 <low_cannot_store_register>: Declare.
1754 (aarch64_target::low_cannot_fetch_register)
1755 (aarch64_target::low_cannot_store_register): Define.
1756 (the_low_target): Remove the op fields.
1757 * linux-arm-low.cc (class arm_target)
1758 <low_cannot_fetch_register>
1759 <low_cannot_store_register>: Declare.
1760 (arm_cannot_fetch_register): Turn into...
1761 (arm_target::low_cannot_fetch_register): ...this.
1762 (arm_cannot_store_register): Turn into...
1763 (arm_target::low_cannot_store_register): ...this.
1764 (the_low_target): Remove the op fields.
1765 * linux-bfin-low.cc (class bfin_target)
1766 <low_cannot_fetch_register>
1767 <low_cannot_store_register>: Declare.
1768 (bfin_cannot_fetch_register): Turn into...
1769 (bfin_target::low_cannot_fetch_register): ...this.
1770 (bfin_cannot_store_register): Turn into...
1771 (bfin_target::low_cannot_store_register): ...this.
1772 (the_low_target): Remove the op fields.
1773 * linux-cris-low.cc (class cris_target)
1774 <low_cannot_fetch_register>
1775 <low_cannot_store_register>: Declare.
1776 (cris_cannot_fetch_register): Turn into...
1777 (cris_target::low_cannot_fetch_register): ...this.
1778 (cris_cannot_store_register): Turn into...
1779 (cris_target::low_cannot_store_register): ...this.
1780 (the_low_target): Remove the op fields.
1781 * linux-crisv32-low.cc (class crisv32_target)
1782 <low_cannot_fetch_register>
1783 <low_cannot_store_register>: Declare.
1784 (crisv32_target::low_cannot_fetch_register)
1785 (crisv32_target::low_cannot_store_register): Define.
1786 (the_low_target): Remove the op fields.
1787 * linux-ia64-low.cc (class ia64_target)
1788 <low_cannot_fetch_register>
1789 <low_cannot_store_register>: Declare.
1790 (ia64_cannot_fetch_register): Turn into...
1791 (ia64_target::low_cannot_fetch_register): ...this.
1792 (ia64_cannot_store_register): Turn into...
1793 (ia64_target::low_cannot_store_register): ...this.
1794 (the_low_target): Remove the op fields.
1795 * linux-m32r-low.cc (class m32r_target)
1796 <low_cannot_fetch_register>
1797 <low_cannot_store_register>: Declare.
1798 (m32r_cannot_fetch_register): Turn into...
1799 (m32r_target::low_cannot_fetch_register): ...this.
1800 (m32r_cannot_store_register): Turn into...
1801 (m32r_target::low_cannot_store_register): ...this.
1802 (the_low_target): Remove the op fields.
1803 * linux-m68k-low.cc (class m68k_target)
1804 <low_cannot_fetch_register>
1805 <low_cannot_store_register>: Declare.
1806 (m68k_cannot_fetch_register): Turn into...
1807 (m68k_target::low_cannot_fetch_register): ...this.
1808 (m68k_cannot_store_register): Turn into...
1809 (m68k_target::low_cannot_store_register): ...this.
1810 (the_low_target): Remove the op fields.
1811 * linux-mips-low.cc (class mips_target)
1812 <low_cannot_fetch_register>
1813 <low_cannot_store_register>: Declare.
1814 (mips_cannot_fetch_register): Turn into...
1815 (mips_target::low_cannot_fetch_register): ...this.
1816 (mips_cannot_store_register): Turn into...
1817 (mips_target::low_cannot_store_register): ...this.
1818 (get_usrregs_info): Inline at the call sites in
1819 low_cannot_fetch_register and low_cannot_store_register,
1820 and remove.
1821 (the_low_target): Remove the op fields.
1822 * linux-nios2-low.cc (class nios2_target)
1823 <low_cannot_fetch_register>
1824 <low_cannot_store_register>: Declare.
1825 (nios2_cannot_fetch_register): Turn into...
1826 (nios2_target::low_cannot_fetch_register): ...this.
1827 (nios2_cannot_store_register): Turn into...
1828 (nios2_target::low_cannot_store_register): ...this.
1829 (the_low_target): Remove the op fields.
1830 * linux-ppc-low.cc (class ppc_target)
1831 <low_cannot_fetch_register>
1832 <low_cannot_store_register>: Declare.
1833 (ppc_cannot_fetch_register): Turn into...
1834 (ppc_target::low_cannot_fetch_register): ...this.
1835 (ppc_cannot_store_register): Turn into...
1836 (ppc_target::low_cannot_store_register): ...this.
1837 (the_low_target): Remove the op fields.
1838 * linux-riscv-low.cc (class riscv_target)
1839 <low_cannot_fetch_register>
1840 <low_cannot_store_register>: Declare.
1841 (riscv_target::low_cannot_fetch_register)
1842 (riscv_target::low_cannot_store_register): Define.
1843 (the_low_target): Remove the op fields.
1844 * linux-s390-low.cc (class s390_target)
1845 <low_cannot_fetch_register>
1846 <low_cannot_store_register>: Declare.
1847 (s390_cannot_fetch_register): Turn into...
1848 (s390_target::low_cannot_fetch_register): ...this.
1849 (s390_cannot_store_register): Turn into...
1850 (s390_target::low_cannot_store_register): ...this.
1851 (the_low_target): Remove the op fields.
1852 * linux-sh-low.cc (class sh_target)
1853 <low_cannot_fetch_register>
1854 <low_cannot_store_register>: Declare.
1855 (sh_cannot_fetch_register): Turn into...
1856 (sh_target::low_cannot_fetch_register): ...this.
1857 (sh_cannot_store_register): Turn into...
1858 (sh_target::low_cannot_store_register): ...this.
1859 (the_low_target): Remove the op fields.
1860 * linux-sparc-low.cc (class sparc_target)
1861 <low_cannot_fetch_register>
1862 <low_cannot_store_register>: Declare.
1863 (sparc_cannot_fetch_register): Turn into...
1864 (sparc_target::low_cannot_fetch_register): ...this.
1865 (sparc_cannot_store_register): Turn into...
1866 (sparc_target::low_cannot_store_register): ...this.
1867 (the_low_target): Remove the op fields.
1868 * linux-tic6x-low.cc (class tic6x_target)
1869 <low_cannot_fetch_register>
1870 <low_cannot_store_register>: Declare.
1871 (tic6x_cannot_fetch_register): Turn into...
1872 (tic6x_target::low_cannot_fetch_register): ...this.
1873 (tic6x_cannot_store_register): Turn into...
1874 (tic6x_target::low_cannot_store_register): ...this.
1875 (the_low_target): Remove the op fields.
1876 * linux-tile-low.cc (class tile_target)
1877 <low_cannot_fetch_register>
1878 <low_cannot_store_register>: Declare.
1879 (tile_cannot_fetch_register): Turn into...
1880 (tile_target::low_cannot_fetch_register): ...this.
1881 (tile_cannot_store_register): Turn into...
1882 (tile_target::low_cannot_store_register): ...this.
1883 (the_low_target): Remove the op fields.
1884 * linux-xtensa-low.cc (class xtensa_target)
1885 <low_cannot_fetch_register>
1886 <low_cannot_store_register>: Declare.
1887 (xtensa_target::low_cannot_fetch_register)
1888 (xtensa_target::low_cannot_store_register): Define.
1889 (the_low_target): Remove the op fields.
1890
aa8d21c9
TBA
18912020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1892
1893 Turn the 'regs_info' linux target op into a method of
1894 linux_process_target.
1895
1896 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1897 (class linux_process_target) <get_regs_info>: Define.
1898
1899 Update the callers below.
1900
1901 * linux-low.cc (linux_process_target::fetch_registers)
1902 (linux_process_target::store_registers)
1903 * proc-service.cc (gregset_info)
1904
1905 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1906 (x86_linux_regs_info): Turn into ...
1907 (x86_target::get_regs_info): ...this.
1908 (the_low_target): Remove the op field.
1909 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1910 Declare.
1911 (aarch64_regs_info): Turn into ...
1912 (aarch64_target::get_regs_info): ...this.
1913 (the_low_target): Remove the op field.
1914 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1915 (arm_regs_info): Turn into ...
1916 (arm_target::get_regs_info): ...this.
1917 (the_low_target): Remove the op field.
1918 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1919 (bfin_regs_info): Turn into ...
1920 (bfin_target::get_regs_info): ...this.
1921 (the_low_target): Remove the op field.
1922 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1923 (cris_regs_info): Turn into ...
1924 (cris_target::get_regs_info): ...this.
1925 (the_low_target): Remove the op field.
1926 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1927 Declare.
1928 (crisv32_regs_info): Turn into ...
1929 (crisv32_target::get_regs_info): ...this.
1930 (the_low_target): Remove the op field.
1931 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1932 (ia64_regs_info): Turn into ...
1933 (ia64_target::get_regs_info): ...this.
1934 (the_low_target): Remove the op field.
1935 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1936 (m32r_regs_info): Turn into ...
1937 (m32r_target::get_regs_info): ...this.
1938 (the_low_target): Remove the op field.
1939 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1940 (m68k_regs_info): Turn into ...
1941 (m68k_target::get_regs_info): ...this.
1942 (the_low_target): Remove the op field.
1943 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1944 (mips_regs_info): Turn into ...
1945 (mips_target::get_regs_info): ...this.
1946 (the_low_target): Remove the op field.
1947 (get_usrregs_info): Update the call to the op.
1948 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1949 (nios2_regs_info): Turn into ...
1950 (nios2_target::get_regs_info): ...this.
1951 (the_low_target): Remove the op field.
1952 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1953 (ppc_regs_info): Turn into ...
1954 (ppc_target::get_regs_info): ...this.
1955 (the_low_target): Remove the op field.
1956 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1957 (riscv_regs_info): Turn into ...
1958 (riscv_target::get_regs_info): ...this.
1959 (the_low_target): Remove the op field.
1960 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1961 (s390_regs_info): Turn into ...
1962 (s390_target::get_regs_info): ...this.
1963 (the_low_target): Remove the op field.
1964 (s390_collect_ptrace_register)
1965 (s390_supply_ptrace_register)
1966 (s390_fill_gregset): Update the call to the op.
1967 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1968 (sh_regs_info): Turn into ...
1969 (sh_target::get_regs_info): ...this.
1970 (the_low_target): Remove the op field.
1971 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1972 (sparc_regs_info): Turn into ...
1973 (sparc_target::get_regs_info): ...this.
1974 (the_low_target): Remove the op field.
1975 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1976 (tic6x_regs_info): Turn into ...
1977 (tic6x_target::get_regs_info): ...this.
1978 (the_low_target): Remove the op field.
1979 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1980 (tile_regs_info): Turn into ...
1981 (tile_target::get_regs_info): ...this.
1982 (the_low_target): Remove the op field.
1983 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1984 Declare.
1985 (xtensa_regs_info): Turn into ...
1986 (xtensa_target::get_regs_info): ...this.
1987 (the_low_target): Remove the op field.
1988
797bcff5
TBA
19892020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1990
1991 Turn the 'arch_setup' linux target op into a method of
1992 linux_process_target.
1993
1994 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1995 (class linux_process_target) <arch_setup_thread>
1996 <low_arch_setup>: New declarations.
1997 * linux-low.cc (linux_arch_setup): Delete.
1998 (linux_arch_setup_thread): Turn into...
1999 (linux_process_target::arch_setup_thread): ... this.
2000
2001 Update the callers below.
2002
2003 (linux_process_target::handle_extended_wait)
2004 (linux_process_target::post_create_inferior)
2005 (linux_process_target::filter_event)
2006
2007 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2008 declaration.
2009 (x86_linux_update_xmltarget): Turn into...
2010 (x86_target::update_xmltarget): ...this.
2011 (x86_linux_process_qsupported): Update the call to
2012 x86_linux_update_xmltarget.
2013 (x86_arch_setup): Turn into ...
2014 (x86_target::low_arch_setup): ...this.
2015 (the_low_target): Remove the op field.
2016 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2017 declaration.
2018 (aarch64_arch_setup): Turn into ...
2019 (aarch64_target::low_arch_setup): ...this.
2020 (the_low_target): Remove the op field.
2021 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2022 declaration.
2023 (arm_arch_setup): Turn into ...
2024 (arm_target::low_arch_setup): ...this.
2025 (the_low_target): Remove the op field.
2026 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2027 declaration.
2028 (bfin_arch_setup): Turn into ...
2029 (bfin_target::low_arch_setup): ...this.
2030 (the_low_target): Remove the op field.
2031 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2032 declaration.
2033 (cris_arch_setup): Turn into ...
2034 (cris_target::low_arch_setup): ...this.
2035 (the_low_target): Remove the op field.
2036 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2037 declaration.
2038 (crisv32_arch_setup): Turn into ...
2039 (crisv32_target::low_arch_setup): ...this.
2040 (the_low_target): Remove the op field.
2041 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2042 declaration.
2043 (ia64_arch_setup): Turn into ...
2044 (ia64_target::low_arch_setup): ...this.
2045 (the_low_target): Remove the op field.
2046 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2047 declaration.
2048 (m32r_arch_setup): Turn into ...
2049 (m32r_target::low_arch_setup): ...this.
2050 (the_low_target): Remove the op field.
2051 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2052 declaration.
2053 (m68k_arch_setup): Turn into ...
2054 (m68k_target::low_arch_setup): ...this.
2055 (the_low_target): Remove the op field.
2056 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2057 declaration.
2058 (mips_arch_setup): Turn into ...
2059 (mips_target::low_arch_setup): ...this.
2060 (the_low_target): Remove the op field.
2061 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2062 declaration.
2063 (nios2_arch_setup): Turn into ...
2064 (nios2_target::low_arch_setup): ...this.
2065 (the_low_target): Remove the op field.
2066 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2067 declaration.
2068 (ppc_arch_setup): Turn into ...
2069 (ppc_target::low_arch_setup): ...this.
2070 (the_low_target): Remove the op field.
2071 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2072 declaration.
2073 (riscv_arch_setup): Turn into ...
2074 (riscv_target::low_arch_setup): ...this.
2075 (the_low_target): Remove the op field.
2076 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2077 declaration.
2078 (s390_arch_setup): Turn into ...
2079 (s390_target::low_arch_setup): ...this.
2080 (the_low_target): Remove the op field.
2081 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2082 declaration.
2083 (sh_arch_setup): Turn into ...
2084 (sh_target::low_arch_setup): ...this.
2085 (the_low_target): Remove the op field.
2086 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2087 declaration.
2088 (sparc_arch_setup): Turn into ...
2089 (sparc_target::low_arch_setup): ...this.
2090 (the_low_target): Remove the op field.
2091 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2092 declaration.
2093 (tic6x_arch_setup): Turn into ...
2094 (tic6x_target::low_arch_setup): ...this.
2095 (the_low_target): Remove the op field.
2096 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2097 declaration.
2098 (tile_arch_setup): Turn into ...
2099 (tile_target::low_arch_setup): ...this.
2100 (the_low_target): Remove the op field.
2101 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2102 declaration.
2103 (xtensa_arch_setup): Turn into ...
2104 (xtensa_target::low_arch_setup): ...this.
2105 (the_low_target): Remove the op field.
2106
ef0478f6
TBA
21072020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2108
2109 * linux-low.h (the_linux_target): New extern declaration.
2110 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2111 'the_target'.
2112 (the_linux_target): Remove.
2113 * linux-x86-low.cc (class x86_target): New class.
2114 (the_x86_target): New static object.
2115 (the_linux_target): Define as pointer to the_x86_target.
2116 * linux-aarch64-low.cc (class aarch64_target): New class.
2117 (the_aarch64_target): New static object.
2118 (the_linux_target): Define as pointer to the_aarch64_target.
2119 * linux-arm-low.cc (class arm_target): New class.
2120 (the_arm_target): New static object.
2121 (the_linux_target): Define as pointer to the_arm_target.
2122 * linux-bfin-low.cc (class bfin_target): New class.
2123 (the_bfin_target): New static object.
2124 (the_linux_target): Define as pointer to the_bfin_target.
2125 * linux-cris-low.cc (class cris_target): New class.
2126 (the_cris_target): New static object.
2127 (the_linux_target): Define as pointer to the_cris_target.
2128 * linux-crisv32-low.cc (class crisv32_target): New class.
2129 (the_crisv32_target): New static object.
2130 (the_linux_target): Define as pointer to the_crisv32_target.
2131 * linux-ia64-low.cc (class ia64_target): New class.
2132 (the_ia64_target): New static object.
2133 (the_linux_target): Define as pointer to the_ia64_target.
2134 * linux-m32r-low.cc (class m32r_target): New class.
2135 (the_m32r_target): New static object.
2136 (the_linux_target): Define as pointer to the_m32r_target.
2137 * linux-m68k-low.cc (class m68k_target): New class.
2138 (the_m68k_target): New static object.
2139 (the_linux_target): Define as pointer to the_m68k_target.
2140 * linux-mips-low.cc (class mips_target): New class.
2141 (the_mips_target): New static object.
2142 (the_linux_target): Define as pointer to the_mips_target.
2143 * linux-nios2-low.cc (class nios2_target): New class.
2144 (the_nios2_target): New static object.
2145 (the_linux_target): Define as pointer to the_nios2_target.
2146 * linux-ppc-low.cc (class ppc_target): New class.
2147 (the_ppc_target): New static object.
2148 (the_linux_target): Define as pointer to the_ppc_target.
2149 * linux-riscv-low.cc (class riscv_target): New class.
2150 (the_riscv_target): New static object.
2151 (the_linux_target): Define as pointer to the_riscv_target.
2152 * linux-s390-low.cc (class s390_target): New class.
2153 (the_s390_target): New static object.
2154 (the_linux_target): Define as pointer to the_s390_target.
2155 * linux-sh-low.cc (class sh_target): New class.
2156 (the_sh_target): New static object.
2157 (the_linux_target): Define as pointer to the_sh_target.
2158 * linux-sparc-low.cc (class sparc_target): New class.
2159 (the_sparc_target): New static object.
2160 (the_linux_target): Define as pointer to the_sparc_target.
2161 * linux-tic6x-low.cc (class tic6x_target): New class.
2162 (the_tic6x_target): New static object.
2163 (the_linux_target): Define as pointer to the_tic6x_target.
2164 * linux-tile-low.cc (class tile_target): New class.
2165 (the_tile_target): New static object.
2166 (the_linux_target): Define as pointer to the_tile_target.
2167 * linux-xtensa-low.cc (class xtensa_target): New class.
2168 (the_xtensa_target): New static object.
2169 (the_linux_target): Define as pointer to the_xtensa_target.
2170
d16f3f6c
TBA
21712020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2172
2173 Turn some static functions in linux-low.cc into private methods of
2174 linux_process_target.
2175
2176 * linux-low.cc (handle_extended_wait): Turn into ...
2177 (linux_process_target::handle_extended_wait): ...this. Call
2178 'mourn' on 'this' object instead of 'the_target'.
2179 (maybe_move_out_of_jump_pad): Turn into...
2180 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2181 (linux_low_filter_event): Turn into...
2182 (linux_process_target::filter_event): ...this.
2183 (linux_wait_for_event_filtered): Turn into...
2184 (linux_process_target::wait_for_event_filtered): ...this.
2185 (linux_wait_for_event): Turn into...
2186 (linux_process_target::wait_for_event): ...this.
2187 (linux_wait_1): Turn into...
2188 (linux_process_target::wait_1): ...this.
2189 (wait_for_sigstop): Turn into...
2190 (linux_process_target::wait_for_sigstop): ...this.
2191 (move_out_of_jump_pad_callback): Turn into...
2192 (linux_process_target::move_out_of_jump_pad): ...this.
2193 (stop_all_lwps): Turn into...
2194 (linux_process_target::stop_all_lwps): ...this.
2195 (start_step_over): Turn into...
2196 (linux_process_target::start_step_over): ...this.
2197 (complete_ongoing_step_over): Turn into...
2198 (linux_process_target::complete_ongoing_step_over): ...this.
2199 (proceed_all_lwps): Turn into...
2200 (linux_process_target::proceed_all_lwps): ...this.
2201 (unstop_all_lwps): Turn into...
2202 (linux_process_target::unstop_all_lwps): ...this.
2203
2204 * linux-low.h (class linux_process_target)
2205 <handle_extended_wait>
2206 <maybe_move_out_of_jump_pad>
2207 filter_event>
2208 <wait_for_event_filtered>
2209 <wait_for_event>
2210 <wait_1>
2211 <wait_for_sigstop>
2212 <move_out_of_jump_pad>
2213 <stop_all_lwps>
2214 <start_step_over>
2215 <complete_ongoing_step_over>
2216 <proceed_all_lwps>
2217 <unstop_all_lwps>: Declare.
2218
2219 Update the callers below.
2220
2221 * linux-low.cc (linux_process_target::attach): Update.
2222 (linux_process_target::stabilize_threads): Ditto.
2223 (linux_process_target::wait): Ditto.
2224
a5863204
TBA
22252020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2226
2227 * linux-low.h (struct linux_target_ops): Update the comment for
2228 'cannot_store_register' to return 0 or 1.
2229 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2230 of 2.
2231
c884cc46
SM
22322020-03-20 Simon Marchi <simon.marchi@efficios.com>
2233
2234 * config.in: Re-generate.
2235 * configure: Re-generate.
2236
5a82b8a1
KR
22372020-03-17 Kamil Rytarowski <n54@gmx.com>
2238
2239 * regcache.cc (find_register_by_number): Update.
2240 * tdesc.cc (init_target_desc): Likewise.
2241 * tdesc.h (target_desc::reg_defs): Likewise.
2242
4635ff97
TT
22432020-03-12 Tom Tromey <tom@tromey.com>
2244
2245 * configure: Rebuild.
2246 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2247 (WIN32APILIBS): New subst.
2248 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2249 gdbsupport files.
2250 (gdbsupport/%.o): Remove target.
2251 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2252 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2253 (WIN32APILIBS): New variable.
2254 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2255 (gdbreplay$(EXEEXT)): Likewise.
2256
9a665d62
TT
22572020-03-12 Tom Tromey <tom@tromey.com>
2258
2259 * config.in, configure: Rebuild.
2260 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2261 * acinclude.m4: Include gettext-sister.m4.
2262 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2263 variables.
2264 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2265 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2266
272cd5a3
SM
22672020-03-12 Simon Marchi <simon.marchi@efficios.com>
2268
2269 * acinclude.m4: Update path to selftest.m4.
2270
db6878ac
SM
22712020-03-12 Simon Marchi <simon.marchi@efficios.com>
2272
2273 * configure.ac: Don't source bfd/development.sh, move
2274 GDB_AC_COMMON higher.
2275 * configure: Re-generate.
2276
4d696a5c
SM
22772020-03-12 Simon Marchi <simon.marchi@efficios.com>
2278
2279 * configure: Re-generate.
2280
a0761e34
SM
22812020-03-11 Simon Marchi <simon.marchi@efficios.com>
2282
2283 * configure: Re-generate.
2284
20ea4a60
AB
22852020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2286
2287 * .dir-locals.el: New file.
2288
842806cb
TBA
22892020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2290
2291 * .gitattributes: New file.
2292
442131c1
AB
22932020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2294
2295 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2296 reply into an S reply.
2297 * server.cc (disable_packet_T): New global.
2298 (captured_main): Set new global when appropriate.
2299 * server.h (disable_packet_T): Declare.
2300
dda42c0b
TT
23012020-02-21 Tom Tromey <tom@tromey.com>
2302
2303 * Makefile.in (mostlyclean): New target.
2304
52405d85
TBA
23052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2306
2307 * target.h (struct process_stratum_target): Remove.
2308 (class process_target): Rename to ...
2309 (class process_stratum_target): ... this.
2310 * linux-low.h (class linux_process_target): Derive from
2311 'process_stratum_target'.
2312 * linux-low.cc (linux_target_ops): Remove.
2313 (initialize_low): Set the_target to the singleton instance of
2314 linux_process_target.
2315 * lynx-low.h (class lynx_process_target): Derive from
2316 'process_stratum_target'.
2317 * lynx-low.cc (lynx_target_ops): Remove.
2318 (initialize_low): Set the_target to the singleton instance of
2319 lynx_process_target.
2320 * nto-low.h (class nto_process_target): Derive from
2321 'process_stratum_target'.
2322 * nto-low.cc (nto_target_ops): Remove.
2323 (initialize_low): Set the_target to the singleton instance of
2324 nto_process_target.
2325 * win32-low.h (class win32_process_target): Derive from
2326 'process_stratum_target'.
2327 * win32-low.cc (win32_target_ops): Remove.
2328 (initialize_low): Set the_target to the singleton instance of
2329 win32_process_target.
2330
2331 Replace 'the_target->pt' with 'the_target' in the uses below.
2332
2333 * hostio.cc (hostio_error)
2334 (handle_setfs)
2335 (handle_open)
2336 (handle_unlink)
2337 (handle_readlink)
2338 * linux-aarch32-low.cc (arm_breakpoint_at)
2339 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2340 * linux-arm-low.cc (arm_sigreturn_next_pc)
2341 (arm_get_hwcap)
2342 (arm_get_syscall_trapinfo)
2343 * linux-cris-low.cc (cris_breakpoint_at)
2344 * linux-crisv32-low.cc (cris_breakpoint_at)
2345 * linux-low.cc (handle_extended_wait)
2346 (linux_wait_1)
2347 (linux_read_memory)
2348 (linux_process_target::breakpoint_kind_from_pc)
2349 (linux_get_auxv)
2350 * linux-m32r-low.cc (m32r_breakpoint_at)
2351 * linux-mips-low.cc (mips_breakpoint_at)
2352 * linux-nios2-low.cc (nios2_breakpoint_at)
2353 * linux-ppc-low.cc (ppc_breakpoint_at)
2354 * linux-s390-low.cc (s390_get_hwcap)
2355 * linux-sh-low.cc (sh_breakpoint_at)
2356 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2357 (sparc_store_gregset_from_stack)
2358 (sparc_breakpoint_at)
2359 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2360 * linux-tile-low.cc (tile_breakpoint_at)
2361 * linux-x86-low.cc (x86_breakpoint_at)
2362 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2363 * mem-break.cc (bp_size)
2364 (bp_opcode)
2365 (insert_memory_breakpoint)
2366 (set_raw_breakpoint_at)
2367 (delete_raw_breakpoint)
2368 (z_type_supported)
2369 (uninsert_raw_breakpoint)
2370 (reinsert_raw_breakpoint)
2371 (validate_inserted_breakpoint)
2372 * regcache.cc (regcache_read_pc)
2373 (regcache_write_pc)
2374 * remote-utils.cc (putpkt_binary_1)
2375 (input_interrupt)
2376 (getpkt)
2377 (prepare_resume_reply)
2378 * server.cc (handle_general_set)
2379 (handle_detach)
2380 (handle_qxfer_auxv)
2381 (handle_qxfer_exec_file)
2382 (handle_qxfer_libraries_svr4)
2383 (handle_qxfer_osdata)
2384 (handle_qxfer_siginfo)
2385 (handle_qxfer_fdpic)
2386 (handle_query)
2387 (resume)
2388 (handle_v_requests)
2389 (queue_stop_reply_callback)
2390 (captured_main)
2391 * target.cc (prepare_to_access_memory)
2392 (done_accessing_memory)
2393 (read_inferior_memory)
2394 (target_write_memory)
2395 (target_stop_and_wait)
2396 (target_wait)
2397 (target_mourn_inferior)
2398 (target_continue_no_signal)
2399 (target_continue)
2400 (target_supports_multi_process)
2401 (kill_inferior)
2402 * target.h
2403 (target_create_inferior)
2404 (target_post_create_inferior)
2405 (myattach)
2406 (target_supports_fork_events)
2407 (target_supports_vfork_events)
2408 (target_supports_exec_events)
2409 (target_handle_new_gdb_connection)
2410 (detach_inferior)
2411 (mythread_alive)
2412 (fetch_inferior_registers)
2413 (store_inferior_registers)
2414 (join_inferior)
2415 (target_supports_non_stop)
2416 (target_async)
2417 (target_process_qsupported)
2418 (target_supports_catch_syscall)
2419 (target_get_ipa_tdesc_idx)
2420 (target_supports_tracepoints)
2421 (target_supports_fast_tracepoints)
2422 (target_get_min_fast_tracepoint_insn_len)
2423 (target_thread_stopped)
2424 (target_pause_all)
2425 (target_unpause_all)
2426 (target_stabilize_threads)
2427 (target_install_fast_tracepoint_jump_pad)
2428 (target_emit_ops)
2429 (target_supports_disable_randomization)
2430 (target_supports_agent)
2431 (target_enable_btrace)
2432 (target_disable_btrace)
2433 (target_read_btrace)
2434 (target_read_btrace_conf)
2435 (target_supports_range_stepping)
2436 (target_supports_stopped_by_sw_breakpoint)
2437 (target_stopped_by_sw_breakpoint)
2438 (target_supports_stopped_by_hw_breakpoint)
2439 (target_supports_hardware_single_step)
2440 (target_stopped_by_hw_breakpoint)
2441 (target_breakpoint_kind_from_pc)
2442 (target_breakpoint_kind_from_current_state)
2443 (target_supports_software_single_step)
2444 (target_core_of_thread)
2445 (target_thread_name)
2446 (target_thread_handle)
2447 * win32-low.cc (do_initial_child_stuff)
2448
2449 Rename target op default definitions listed below.
2450
2451 * target.cc (process_target::post_create_inferior): Rename as ...
2452 (process_stratum_target::post_create_inferior): ... this.
2453 (process_target::prepare_to_access_memory): Rename as ...
2454 (process_stratum_target::prepare_to_access_memory): ... this.
2455 (process_target::done_accessing_memory): Rename as ...
2456 (process_stratum_target::done_accessing_memory): ... this.
2457 (process_target::look_up_symbols): Rename as ...
2458 (process_stratum_target::look_up_symbols): ... this.
2459 (process_target::supports_read_auxv): Rename as ...
2460 (process_stratum_target::supports_read_auxv): ... this.
2461 (process_target::read_auxv): Rename as ...
2462 (process_stratum_target::read_auxv): ... this.
2463 (process_target::supports_z_point_type): Rename as ...
2464 (process_stratum_target::supports_z_point_type): ... this.
2465 (process_target::insert_point): Rename as ...
2466 (process_stratum_target::insert_point): ... this.
2467 (process_target::remove_point): Rename as ...
2468 (process_stratum_target::remove_point): ... this.
2469 (process_target::stopped_by_sw_breakpoint): Rename as ...
2470 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2471 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2472 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2473 (process_target::stopped_by_hw_breakpoint): Rename as ...
2474 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2475 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2476 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2477 (process_target::supports_hardware_single_step): Rename as ...
2478 (process_stratum_target::supports_hardware_single_step): ... this.
2479 (process_target::stopped_by_watchpoint): Rename as ...
2480 (process_stratum_target::stopped_by_watchpoint): ... this.
2481 (process_target::stopped_data_address): Rename as ...
2482 (process_stratum_target::stopped_data_address): ... this.
2483 (process_target::supports_read_offsets): Rename as ...
2484 (process_stratum_target::supports_read_offsets): ... this.
2485 (process_target::read_offsets): Rename as ...
2486 (process_stratum_target::read_offsets): ... this.
2487 (process_target::supports_get_tls_address): Rename as ...
2488 (process_stratum_target::supports_get_tls_address): ... this.
2489 (process_target::get_tls_address): Rename as ...
2490 (process_stratum_target::get_tls_address): ... this.
2491 (process_target::hostio_last_error): Rename as ...
2492 (process_stratum_target::hostio_last_error): ... this.
2493 (process_target::supports_qxfer_osdata): Rename as ...
2494 (process_stratum_target::supports_qxfer_osdata): ... this.
2495 (process_target::qxfer_osdata): Rename as ...
2496 (process_stratum_target::qxfer_osdata): ... this.
2497 (process_target::supports_qxfer_siginfo): Rename as ...
2498 (process_stratum_target::supports_qxfer_siginfo): ... this.
2499 (process_target::qxfer_siginfo): Rename as ...
2500 (process_stratum_target::qxfer_siginfo): ... this.
2501 (process_target::supports_non_stop): Rename as ...
2502 (process_stratum_target::supports_non_stop): ... this.
2503 (process_target::async): Rename as ...
2504 (process_stratum_target::async): ... this.
2505 (process_target::start_non_stop): Rename as ...
2506 (process_stratum_target::start_non_stop): ... this.
2507 (process_target::supports_multi_process): Rename as ...
2508 (process_stratum_target::supports_multi_process): ... this.
2509 (process_target::supports_fork_events): Rename as ...
2510 (process_stratum_target::supports_fork_events): ... this.
2511 (process_target::supports_vfork_events): Rename as ...
2512 (process_stratum_target::supports_vfork_events): ... this.
2513 (process_target::supports_exec_events): Rename as ...
2514 (process_stratum_target::supports_exec_events): ... this.
2515 (process_target::handle_new_gdb_connection): Rename as ...
2516 (process_stratum_target::handle_new_gdb_connection): ... this.
2517 (process_target::handle_monitor_command): Rename as ...
2518 (process_stratum_target::handle_monitor_command): ... this.
2519 (process_target::core_of_thread): Rename as ...
2520 (process_stratum_target::core_of_thread): ... this.
2521 (process_target::supports_read_loadmap): Rename as ...
2522 (process_stratum_target::supports_read_loadmap): ... this.
2523 (process_target::read_loadmap): Rename as ...
2524 (process_stratum_target::read_loadmap): ... this.
2525 (process_target::process_qsupported): Rename as ...
2526 (process_stratum_target::process_qsupported): ... this.
2527 (process_target::supports_tracepoints): Rename as ...
2528 (process_stratum_target::supports_tracepoints): ... this.
2529 (process_target::read_pc): Rename as ...
2530 (process_stratum_target::read_pc): ... this.
2531 (process_target::write_pc): Rename as ...
2532 (process_stratum_target::write_pc): ... this.
2533 (process_target::supports_thread_stopped): Rename as ...
2534 (process_stratum_target::supports_thread_stopped): ... this.
2535 (process_target::thread_stopped): Rename as ...
2536 (process_stratum_target::thread_stopped): ... this.
2537 (process_target::supports_get_tib_address): Rename as ...
2538 (process_stratum_target::supports_get_tib_address): ... this.
2539 (process_target::get_tib_address): Rename as ...
2540 (process_stratum_target::get_tib_address): ... this.
2541 (process_target::pause_all): Rename as ...
2542 (process_stratum_target::pause_all): ... this.
2543 (process_target::unpause_all): Rename as ...
2544 (process_stratum_target::unpause_all): ... this.
2545 (process_target::stabilize_threads): Rename as ...
2546 (process_stratum_target::stabilize_threads): ... this.
2547 (process_target::supports_fast_tracepoints): Rename as ...
2548 (process_stratum_target::supports_fast_tracepoints): ... this.
2549 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2550 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2551 (process_target::emit_ops): Rename as ...
2552 (process_stratum_target::emit_ops): ... this.
2553 (process_target::supports_disable_randomization): Rename as ...
2554 (process_stratum_target::supports_disable_randomization): ... this.
2555 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2556 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2557 (process_target::qxfer_libraries_svr4): Rename as ...
2558 (process_stratum_target::qxfer_libraries_svr4): ... this.
2559 (process_target::supports_agent): Rename as ...
2560 (process_stratum_target::supports_agent): ... this.
2561 (process_target::enable_btrace): Rename as ...
2562 (process_stratum_target::enable_btrace): ... this.
2563 (process_target::disable_btrace): Rename as ...
2564 (process_stratum_target::disable_btrace): ... this.
2565 (process_target::read_btrace): Rename as ...
2566 (process_stratum_target::read_btrace): ... this.
2567 (process_target::read_btrace_conf): Rename as ...
2568 (process_stratum_target::read_btrace_conf): ... this.
2569 (process_target::supports_range_stepping): Rename as ...
2570 (process_stratum_target::supports_range_stepping): ... this.
2571 (process_target::supports_pid_to_exec_file): Rename as ...
2572 (process_stratum_target::supports_pid_to_exec_file): ... this.
2573 (process_target::pid_to_exec_file): Rename as ...
2574 (process_stratum_target::pid_to_exec_file): ... this.
2575 (process_target::supports_multifs): Rename as ...
2576 (process_stratum_target::supports_multifs): ... this.
2577 (process_target::multifs_open): Rename as ...
2578 (process_stratum_target::multifs_open): ... this.
2579 (process_target::multifs_unlink): Rename as ...
2580 (process_stratum_target::multifs_unlink): ... this.
2581 (process_target::multifs_readlink): Rename as ...
2582 (process_stratum_target::multifs_readlink): ... this.
2583 (process_target::breakpoint_kind_from_pc): Rename as ...
2584 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2585 (process_target::breakpoint_kind_from_current_state): Rename as ...
2586 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2587 (process_target::thread_name): Rename as ...
2588 (process_stratum_target::thread_name): ... this.
2589 (process_target::thread_handle): Rename as ...
2590 (process_stratum_target::thread_handle): ... this.
2591 (process_target::supports_software_single_step): Rename as ...
2592 (process_stratum_target::supports_software_single_step): ... this.
2593 (process_target::supports_catch_syscall): Rename as ...
2594 (process_stratum_target::supports_catch_syscall): ... this.
2595 (process_target::get_ipa_tdesc_idx): Rename as ...
2596 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2597
478f9adf
PA
25982020-02-20 Pedro Alves <palves@redhat.com>
2599
2600 * target.cc (set_target_ops): Simply copy the given target pointer
2601 instead of creating a copy of the pointed object.
2602
d633e831
TBA
26032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2604
2605 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2606 of process_target.
2607
2608 * target.h (struct process_stratum_target): Remove the target op.
2609 (class process_target): Add the target op.
2610 (target_get_ipa_tdesc_idx): Update the macro.
2611 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2612
2613 Update the derived classes and callers below.
2614
2615 * linux-low.cc (linux_target_ops): Update.
2616 (linux_get_ipa_tdesc_idx): Turn into ...
2617 (linux_process_target::get_ipa_tdesc_idx): ... this.
2618 * linux-low.h (class linux_process_target): Update.
2619 * lynx-low.cc (lynx_target_ops): Update.
2620 * nto-low.cc (nto_target_ops): Update.
2621 * win32-low.cc (win32_target_ops): Update.
2622
bc8d3ae4
TBA
26232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2624
2625 Turn process_stratum_target's supports_catch_syscall op into a
2626 method of process_target.
2627
2628 * target.h (struct process_stratum_target): Remove the target op.
2629 (class process_target): Add the target op.
2630 (target_supports_catch_syscall): Update the macro.
2631 * target.cc (process_target::supports_catch_syscall): Define.
2632
2633 Update the derived classes and callers below.
2634
2635 * linux-low.cc (linux_target_ops): Update.
2636 (linux_supports_catch_syscall): Turn into ...
2637 (linux_process_target::supports_catch_syscall): ... this.
2638 * linux-low.h (class linux_process_target): Update.
2639 * lynx-low.cc (lynx_target_ops): Update.
2640 * nto-low.cc (nto_target_ops): Update.
2641 * win32-low.cc (win32_target_ops): Update.
2642
5303a34f
TBA
26432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2644
2645 Turn process_stratum_target's supports_software_single_step op
2646 into a method of process_target.
2647
2648 * target.h (struct process_stratum_target): Remove the target op.
2649 (class process_target): Add the target op.
2650 (target_supports_software_single_step): Update the macro.
2651 * target.cc (process_target::supports_software_single_step): Define.
2652
2653 Update the derived classes and callers below.
2654
2655 * linux-low.cc (linux_target_ops): Update.
2656 (linux_supports_software_single_step): Turn into ...
2657 (linux_process_target::supports_software_single_step): ... this.
2658 * linux-low.h (class linux_process_target): Update.
2659 * lynx-low.cc (lynx_target_ops): Update.
2660 * nto-low.cc (nto_target_ops): Update.
2661 * win32-low.cc (win32_target_ops): Update.
2662
7f63b89b
TBA
26632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2664
2665 Turn process_stratum_target's thread_name and thread_handle ops
2666 into methods of process_target.
2667
2668 * target.h (struct process_stratum_target): Remove the target ops.
2669 (class process_target): Add the target ops.
2670 (target_thread_name): Update the macro.
2671 (target_thread_handle): Update the macro.
2672 * target.cc (process_target::thread_name): Define.
2673 (process_target::thread_handle): Define.
2674
2675 Update the derived classes and callers below.
2676
2677 * linux-low.cc (linux_target_ops): Update.
2678 (linux_process_target::thread_name): Define.
2679 (linux_process_target::thread_handle): Define.
2680 * linux-low.h (class linux_process_target): Update.
2681 * lynx-low.cc (lynx_target_ops): Update.
2682 * nto-low.cc (nto_target_ops): Update.
2683 * win32-low.cc (win32_target_ops): Update.
2684
d367006f
TBA
26852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2686
2687 Turn process_stratum_target's breakpoint_kind_from_pc,
2688 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2689 ops into methods of process_target.
2690
2691 * target.h (struct process_stratum_target): Remove the target op.
2692 (class process_target): Add the target op.
2693 (target_breakpoint_kind_from_pc): Update the macro.
2694 (target_breakpoint_kind_from_current_state): Update the macro.
2695 (default_breakpoint_kind_from_pc): Remove declaration.
2696 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2697 (process_target::breakpoint_kind_from_pc): ... this.
2698 (process_target::breakpoint_kind_from_current_state): Define.
2699
2700 Update the derived classes and callers below.
2701
2702 * mem-break.cc (bp_size): Update.
2703 (bp_opcode): Update.
2704 * linux-low.cc (linux_target_ops): Update.
2705 (linux_wait_1): Update.
2706 (linux_breakpoint_kind_from_pc): Turn into ...
2707 (linux_process_target::breakpoint_kind_from_pc): ... this.
2708 (linux_sw_breakpoint_from_kind): Turn into ...
2709 (linux_process_target::sw_breakpoint_from_kind): ... this.
2710 (linux_breakpoint_kind_from_current_state): Turn into ...
2711 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2712 * linux-low.h (class linux_process_target): Update.
2713 * lynx-low.cc (lynx_target_ops): Update.
2714 (lynx_process_target::sw_breakpoint_from_kind): Define.
2715 * lynx-low.h (class lynx_process_target): Update.
2716 * nto-low.cc (nto_target_ops): Update.
2717 (nto_sw_breakpoint_from_kind): Turn into ...
2718 (nto_process_target::sw_breakpoint_from_kind): ... this.
2719 * nto-low.h (class nto_process_target): Update.
2720 * win32-low.cc (win32_target_ops): Update.
2721 (win32_sw_breakpoint_from_kind): Turn into ...
2722 (win32_process_target::sw_breakpoint_from_kind): ... this.
2723 * win32-low.h (class win32_process_target): Update.
2724
c9b7b804
TBA
27252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2726
2727 Turn process_stratum_target's multifs_open, multifs_readlink,
2728 multifs_unlink ops into methods of process_target.
2729
2730 * target.h (struct process_stratum_target): Remove the target ops.
2731 (class process_target): Add the target ops. Also add
2732 'supports_multifs'.
2733 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2734 "sys/stat.h".
2735 (process_target::supports_multifs): Define.
2736 (process_target::multifs_open): Define.
2737 (process_target::multifs_readlink): Define.
2738 (process_target::multifs_unlink): Define.
2739
2740 Update the derived classes and callers below.
2741
2742 * hostio.cc (handle_setfs): Update.
2743 (handle_open): Update.
2744 (handle_unlink): Update.
2745 (handle_readlink): Update.
2746 * linux-low.cc (linux_target_ops): Update.
2747 (linux_process_target::supports_multifs): Define.
2748 (linux_process_target::multifs_open): Define.
2749 (linux_process_target::multifs_readlink): Define.
2750 (linux_process_target::multifs_unlink): Define.
2751 * linux-low.h (class linux_process_target): Update.
2752 * lynx-low.cc (lynx_target_ops): Update.
2753 * nto-low.cc (nto_target_ops): Update.
2754 * win32-low.cc (win32_target_ops): Update.
2755
8247b823
TBA
27562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2757
2758 Turn process_stratum_target's pid_to_exec_file op into a method
2759 of process_target.
2760
2761 * target.h (struct process_stratum_target): Remove the target op.
2762 (class process_target): Add the target op. Also add
2763 'supports_pid_to_exec_file'.
2764 * target.cc (process_target::pid_to_exec_file): Define.
2765 (process_target::supports_pid_to_exec_file): Define.
2766
2767 Update the derived classes and callers below.
2768
2769 * server.cc (handle_qxfer_exec_file): Update.
2770 (handle_query): Update.
2771 * linux-low.cc (linux_target_ops): Update.
2772 (linux_process_target::supports_pid_to_exec_file): Define.
2773 (linux_process_target::pid_to_exec_file): Define.
2774 * linux-low.h (class linux_process_target): Update.
2775 * lynx-low.cc (lynx_target_ops): Update.
2776 * nto-low.cc (nto_target_ops): Update.
2777 * win32-low.cc (win32_target_ops): Update.
2778
2526e0cd
TBA
27792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2780
2781 Turn process_stratum_target's supports_range_stepping op into a
2782 method of process_target.
2783
2784 * target.h (struct process_stratum_target): Remove the target op.
2785 (class process_target): Add the target op.
2786 (target_supports_range_stepping): Update the macro.
2787 * target.cc (process_target::supports_range_stepping): Define.
2788
2789 Update the derived classes and callers below.
2790
2791 * linux-low.cc (linux_target_ops): Update.
2792 (linux_supports_range_stepping): Turn into ...
2793 (linux_process_target::supports_range_stepping): ... this.
2794 * linux-low.h (class linux_process_target): Update.
2795 * lynx-low.cc (lynx_target_ops): Update.
2796 * nto-low.cc (nto_target_ops): Update.
2797 * win32-low.cc (win32_target_ops): Update.
2798
79597bdd
TBA
27992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2800
2801 Turn process_stratum_target's btrace-related ops (enable_btrace,
2802 disable_btrace, read_btrace, read_btrace_conf) into methods of
2803 process_target.
2804
2805 * target.h (struct process_stratum_target): Remove the target ops.
2806 (class process_target): Add the target ops.
2807 (target_enable_btrace): Update.
2808 (target_disable_btrace): Update.
2809 (target_read_btrace): Update.
2810 (target_read_btrace_conf): Update.
2811 * target.cc (process_target::enable_btrace): Define.
2812 (process_target::disable_btrace): Define.
2813 (process_target::read_btrace): Define.
2814 (process_target::read_btrace_conf): Define.
2815
2816 Update the derived classes and callers below.
2817
2818 * linux-low.cc (linux_target_ops): Update.
2819 (linux_process_target:enable_btrace): Define as a wrapper around
2820 linux_enable_btrace.
2821 (linux_low_disable_btrace): Turn into ...
2822 (linux_process_target::disable_btrace): ... this.
2823 (linux_low_read_btrace): Turn into ...
2824 (linux_process_target::read_btrace): ... this.
2825 (linux_low_btrace_conf): Turn into ...
2826 (linux_process_target::read_btrace_conf): ... this.
2827 * linux-low.h (class linux_process_target): Update.
2828 * lynx-low.cc (lynx_target_ops): Update.
2829 * nto-low.cc (nto_target_ops): Update.
2830 * win32-low.cc (win32_target_ops): Update.
2831
c0245cb9
TBA
28322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2833
2834 Turn process_stratum_target's supports_agent op into a method of
2835 process_target.
2836
2837 * target.h (struct process_stratum_target): Remove the target op.
2838 (class process_target): Add the target op.
2839 (target_supports_agent): Update the macro.
2840 * target.cc (process_target::supports_agent): Define.
2841
2842 Update the derived classes and callers below.
2843
2844 * linux-low.cc (linux_target_ops): Update.
2845 (linux_supports_agent): Turn into ...
2846 (linux_process_target::supports_agent): ... this.
2847 * linux-low.h (class linux_process_target): Update.
2848 * lynx-low.cc (lynx_target_ops): Update.
2849 * nto-low.cc (nto_target_ops): Update.
2850 * win32-low.cc (win32_target_ops): Update.
2851
974387bb
TBA
28522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2853
2854 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2855 method of process_target.
2856
2857 * target.h (struct process_stratum_target): Remove the target op.
2858 (class process_target): Add the target op. Also add
2859 'supports_qxfer_libraries_svr4'.
2860 * target.cc (process_target::qxfer_libraries_svr4): Define.
2861 (process_target::supports_qxfer_libraries_svr4): Define.
2862
2863 Update the derived classes and callers below.
2864
2865 * server.cc (handle_qxfer_libraries_svr4): Update.
2866 (handle_query): Update.
2867 * linux-low.cc (linux_target_ops): Update.
2868 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2869 (linux_qxfer_libraries_svr4): Turn into ...
2870 (linux_process_target::qxfer_libraries_svr4): ... this.
2871 * linux-low.h (class linux_process_target): Update.
2872 * lynx-low.cc (lynx_target_ops): Update.
2873 * nto-low.cc (nto_target_ops): Update.
2874 * win32-low.cc (win32_target_ops): Update.
2875
c756403b
TBA
28762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2877
2878 Turn process_stratum_target's supports_disable_randomization op
2879 into a method of process_target.
2880
2881 * target.h (struct process_stratum_target): Remove the target op.
2882 (class process_target): Add the target op.
2883 (target_supports_disable_randomization): Update the macro.
2884 * target.cc (process_target::supports_disable_randomization): Define.
2885
2886 Update the derived classes and callers below.
2887
2888 * linux-low.cc (linux_target_ops): Update.
2889 (linux_supports_disable_randomization): Turn into ...
2890 (linux_process_target::supports_disable_randomization): ... this.
2891 * linux-low.h (class linux_process_target): Update.
2892 * lynx-low.cc (lynx_target_ops): Update.
2893 * nto-low.cc (nto_target_ops): Update.
2894 * win32-low.cc (win32_target_ops): Update.
2895
345dafad
TBA
28962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2897
2898 Turn process_stratum_target's emit_ops op into a method of
2899 process_target.
2900
2901 * target.h (struct process_stratum_target): Remove the target op.
2902 (class process_target): Add the target op.
2903 (target_emit_ops): Update the macro.
2904 * target.cc (process_target::emit_ops): Define.
2905
2906 Update the derived classes and callers below.
2907
2908 * linux-low.cc (linux_target_ops): Update.
2909 (linux_emit_ops): Turn into ...
2910 (linux_process_target::emit_ops): ... this.
2911 * linux-low.h (class linux_process_target): Update.
2912 * lynx-low.cc (lynx_target_ops): Update.
2913 * nto-low.cc (nto_target_ops): Update.
2914 * win32-low.cc (win32_target_ops): Update.
2915
c23c9391
TBA
29162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2917
2918 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2919 and get_min_fast_tracepoint_insn_len ops into methods of
2920 process_target.
2921
2922 * target.h (struct process_stratum_target): Remove the target ops.
2923 (class process_target): Add the target ops. Also add
2924 'supports_fast_tracepoints'.
2925 (target_supports_fast_tracepoints): Update the macro.
2926 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2927 (install_fast_tracepoint_jump_pad): Update and rename the macro
2928 to ...
2929 (target_install_fast_tracepoint_jump_pad): ... this.
2930 * target.cc (process_target::supports_fast_tracepoints): Define.
2931 (process_target::install_fast_tracepoint_jump_pad): Define.
2932 (process_target::get_min_fast_tracepoint_insn_len): Define.
2933
2934 Update the derived classes and callers below.
2935
2936 * tracepoint.cc (install_fast_tracepoint): Update.
2937 * linux-low.cc (linux_target_ops): Update.
2938 (linux_process_target::supports_fast_tracepoints): Define.
2939 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2940 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2941 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2942 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2943 * linux-low.h (class linux_process_target): Update.
2944 * lynx-low.cc (lynx_target_ops): Update.
2945 * nto-low.cc (nto_target_ops): Update.
2946 * win32-low.cc (win32_target_ops): Update.
2947
5c9eb2f2
TBA
29482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2949
2950 Turn process_stratum_target's stabilize_threads op into a
2951 method of process_target.
2952
2953 * target.h (struct process_stratum_target): Remove the target op.
2954 (class process_target): Add the target op.
2955 (target_stabilize_threads): Update the macro.
2956 * target.cc (process_target::stabilize_threads): Define.
2957
2958 Update the derived classes and callers below.
2959
2960 * server.cc (handle_status): Update.
2961 * tracepoint.cc (cmd_qtdp): Update.
2962 (cmd_qtstart): Update.
2963 * linux-low.cc (linux_target_ops): Update.
2964 (linux_stabilize_threads): Turn into ...
2965 (linux_process_target::stabilize_threads): ... this.
2966 (linux_wait_1): Update.
2967 * linux-low.h (class linux_process_target): Update.
2968 * lynx-low.cc (lynx_target_ops): Update.
2969 * nto-low.cc (nto_target_ops): Update.
2970 * win32-low.cc (win32_target_ops): Update.
2971
29e8dc09
TBA
29722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2973
2974 Turn process_stratum_target's pause_all and unpause_all ops
2975 into methods of process_target.
2976
2977 * target.h (struct process_stratum_target): Remove the target ops.
2978 (class process_target): Add the target ops.
2979 (pause_all): Update the macro and rename to...
2980 (target_pause_all): ... this.
2981 (unpause_all): Update the macro and rename to...
2982 (target_unpause_all): ... this.
2983 * target.cc (process_target::pause_all): Define.
2984 (process_target::unpause_all): Define.
2985
2986 Update the derived classes and callers below.
2987
2988 * server.cc (handle_status): Update.
2989 * tracepoint.cc (clear_installed_tracepoints): Update.
2990 (cmd_qtdp): Update.
2991 (cmd_qtstart): Update.
2992 (stop_tracing): Update.
2993 (cmd_qtstatus): Update.
2994 (upload_fast_traceframes): Update.
2995 (run_inferior_command): Update.
2996 * linux-low.cc (linux_target_ops): Update.
2997 (linux_pause_all): Turn into ...
2998 (linux_process_target::pause_all): ... this.
2999 (linux_unpause_all): Turn into ...
3000 (linux_process_target::unpause_all): ... this.
3001 (linux_process_target::prepare_to_access_memory): Update.
3002 (linux_process_target::done_accessing_memory): Update.
3003 * linux-low.h (class linux_process_target): Update.
3004 * lynx-low.cc (lynx_target_ops): Update.
3005 * nto-low.cc (nto_target_ops): Update.
3006 * win32-low.cc (win32_target_ops): Update.
3007
4e2e869c
TBA
30082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3009
3010 Turn process_stratum_target's get_tib_address op into a method of
3011 process_target.
3012
3013 * target.h (struct process_stratum_target): Remove the target op.
3014 (class process_target): Add the target op. Also add
3015 'supports_get_tib_address'.
3016 * target.cc (process_target::get_tib_address): Define.
3017 (process_target::supports_get_tib_address): Define.
3018
3019 Update the derived classes and callers below.
3020
3021 * server.cc (handle_query): Update.
3022 * linux-low.cc (win32_target_ops): Update.
3023 * lynx-low.cc (lynx_target_ops): Update.
3024 * nto-low.cc (nto_target_ops): Update.
3025 * win32-low.cc (win32_target_ops): Update.
3026 (win32_process_target::supports_get_tib_address): Define.
3027 (win32_get_tib_address): Turn into ...
3028 (win32_process_target::get_tib_address): ... this.
3029 * win32-low.h (class win32_process_target): Update.
3030
68119632
TBA
30312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3032
3033 Turn process_stratum_target's thread_stopped op into a method of
3034 process_target.
3035
3036 * target.h (struct process_stratum_target): Remove the target op.
3037 (class process_target): Add the target op. Also add
3038 'supports_thread_stopped'.
3039 (target_thread_stopped): Update the macro.
3040 * target.cc (process_target::thread_stopped): Define.
3041 (process_target::supports_thread_stopped): Define.
3042 (prepare_to_access_memory): Update.
3043
3044 Update the derived classes and callers below.
3045
3046 * server.cc (queue_stop_reply_callback): Update.
3047 * linux-low.cc (linux_target_ops): Update.
3048 (linux_process_target::supports_thread_stopped): Define.
3049 (linux_thread_stopped): Turn into ...
3050 (linux_process_target::thread_stopped): ... this.
3051 * linux-low.h (class linux_process_target): Update.
3052 * lynx-low.cc (lynx_target_ops): Update.
3053 * nto-low.cc (nto_target_ops): Update.
3054 * win32-low.cc (win32_target_ops): Update.
3055
770d8f6a
TBA
30562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3057
3058 Turn process_stratum_target's read_pc and write_pc ops into
3059 methods of process_target.
3060
3061 * target.h (struct process_stratum_target): Remove the target ops.
3062 (class process_target): Add the target ops.
3063 * target.cc (process_target::read_pc): Define.
3064 (process_target::write_pc): Define.
3065
3066 Update the derived classes and callers below.
3067
3068 * regcache.cc (regcache_read_pc): Update.
3069 (regcache_write_pc): Update.
3070 * linux-low.cc (linux_target_ops): Update.
3071 (linux_read_pc): Turn into ...
3072 (linux_process_target::read_pc): ... this.
3073 (linux_write_pc): Turn into ...
3074 (linux_process_target::write_pc): ... this.
3075 * linux-low.h (class linux_process_target): Update.
3076 * lynx-low.cc (lynx_target_ops): Update.
3077 * nto-low.cc (nto_target_ops): Update.
3078 * win32-low.cc (win32_target_ops): Update.
3079
290732bf
TBA
30802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3081
3082 Turn process_stratum_target's supports_tracepoints op into a
3083 method of process_target.
3084
3085 * target.h (struct process_stratum_target): Remove the target op.
3086 (class process_target): Add the target op.
3087 (target_supports_tracepoints): Update the macro.
3088 * target.cc (process_target::supports_tracepoints): Define.
3089
3090 Update the derived classes and callers below.
3091
3092 * linux-low.cc (linux_target_ops): Update.
3093 (linux_supports_tracepoints): Turn into ...
3094 (linux_process_target::supports_tracepoints): ... this.
3095 * linux-low.h (class linux_process_target): Update.
3096 * lynx-low.cc (lynx_target_ops): Update.
3097 * nto-low.cc (nto_target_ops): Update.
3098 * win32-low.cc (win32_target_ops): Update.
3099
0df28b1b
TBA
31002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3101
3102 Turn process_stratum_target's process_qsupported op into a method
3103 of process_target.
3104
3105 * target.h (struct process_stratum_target): Remove the target op.
3106 (class process_target): Add the target op.
3107 (target_process_qsupported): Update the macro.
3108 * target.cc (process_target::process_qsupported): Define.
3109
3110 Update the derived classes and callers below.
3111
3112 * linux-low.cc (linux_target_ops): Update.
3113 (linux_process_qsupported): Turn into ...
3114 (linux_process_target::process_qsupported): ... this.
3115 * linux-low.h (class linux_process_target): Update.
3116 * lynx-low.cc (lynx_target_ops): Update.
3117 * nto-low.cc (nto_target_ops): Update.
3118 * win32-low.cc (win32_target_ops): Update.
3119
9da41fda
TBA
31202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3121
3122 Turn process_stratum_target's read_loadmap op into a method of
3123 process_target.
3124
3125 * target.h (struct process_stratum_target): Remove the target op.
3126 (class process_target): Add the target op. Also add
3127 'supports_read_loadmap'.
3128 * target.cc (process_target::read_loadmap): Define.
3129 (process_target::supports_read_loadmap): Define.
3130
3131 Update the derived classes and callers below.
3132
3133 * server.cc (handle_qxfer_fdpic): Update.
3134 (handle_query): Update.
3135 * linux-low.cc (linux_target_ops): Update.
3136 (linux_process_target::supports_read_loadmap): Define.
3137 (linux_read_loadmap): Turn into ...
3138 (linux_process_target::read_loadmap): ... this.
3139 * linux-low.h (class linux_process_target): Update.
3140 * lynx-low.cc (lynx_target_ops): Update.
3141 * nto-low.cc (nto_target_ops): Update.
3142 * win32-low.cc (win32_target_ops): Update.
3143
95a45fc1
TBA
31442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3145
3146 Turn process_stratum_target's core_of_thread op into a method of
3147 process_target.
3148
3149 * target.h (struct process_stratum_target): Remove the target op.
3150 (class process_target): Add the target op.
3151 (target_core_of_thread): Update the macro.
3152 * target.cc (process_target::core_of_thread): Define.
3153
3154 Update the derived classes and callers below.
3155
3156 * linux-low.cc (linux_target_ops): Update.
3157 (linux_process_target::core_of_thread): Define.
3158 * linux-low.h (class linux_process_target): Update.
3159 * lynx-low.cc (lynx_target_ops): Update.
3160 * nto-low.cc (nto_target_ops): Update.
3161 * win32-low.cc (win32_target_ops): Update.
3162
55cf3021
TBA
31632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3164
3165 Turn process_stratum_target's handle_monitor_command op into a
3166 method of process_target.
3167
3168 * target.h (struct process_stratum_target): Remove the target op.
3169 (class process_target): Add the target op.
3170 (target_handle_monitor_command): Update the macro.
3171 * target.cc (process_target::handle_monitor_command): Define.
3172
3173 Update the derived classes and callers below.
3174
3175 * server.cc (handle_query): Update.
3176 * linux-low.cc (linux_target_ops): Update.
3177 (linux_process_target::handle_monitor_command): Define.
3178 * linux-low.h (class linux_process_target): Update.
3179 * lynx-low.cc (lynx_target_ops): Update.
3180 * nto-low.cc (nto_target_ops): Update.
3181 * win32-low.cc (win32_target_ops): Update.
3182
fb00dfce
TBA
31832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3184
3185 Turn process_stratum_target's handle_new_gdb_connection op into a
3186 method of process_target.
3187
3188 * target.h (struct process_stratum_target): Remove the target op.
3189 (class process_target): Add the target op.
3190 (target_handle_new_gdb_connection): Update the macro.
3191 * target.cc (process_target::handle_new_gdb_connection): Define.
3192
3193 Update the derived classes and callers below.
3194
3195 * linux-low.cc (linux_target_ops): Update.
3196 (linux_handle_new_gdb_connection): Turn into ...
3197 (linux_process_target::handle_new_gdb_connection): ... this.
3198 * linux-low.h (class linux_process_target): Update.
3199 * lynx-low.cc (lynx_target_ops): Update.
3200 * nto-low.cc (nto_target_ops): Update.
3201 * win32-low.cc (win32_target_ops): Update.
3202
9690a72a
TBA
32032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3204
3205 Turn process_stratum_target's supports_fork_events,
3206 supports_vfork_events, and supports_exec_events ops into methods
3207 of process_target.
3208
3209 * target.h (struct process_stratum_target): Remove the target ops.
3210 (class process_target): Add the target ops.
3211 (target_supports_fork_events): Update the macro.
3212 (target_supports_vfork_events): Update the macro.
3213 (target_supports_exec_events): Update the macro.
3214 * target.cc (process_target::supports_fork_events): Define.
3215 (process_target::supports_vfork_events): Define.
3216 (process_target::supports_exec_events): Define.
3217
3218 Update the derived classes and callers below.
3219
3220 * linux-low.cc (linux_target_ops): Update.
3221 (linux_supports_fork_events): Turn into ...
3222 (linux_process_target::supports_fork_events): ... this.
3223 (linux_supports_vfork_events): Turn into ...
3224 (linux_process_target::supports_vfork_events): ... this.
3225 (linux_supports_exec_events): Turn into ...
3226 (linux_process_target::supports_exec_events): ... this.
3227 * linux-low.h (class linux_process_target): Update.
3228 * lynx-low.cc (lynx_target_ops): Update.
3229 * nto-low.cc (nto_target_ops): Update.
3230 * win32-low.cc (win32_target_ops): Update.
3231
652aef77
TBA
32322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3233
3234 Turn process_stratum_target's supports_multi_process op into a
3235 method of process_target.
3236
3237 * target.h (struct process_stratum_target): Remove the target op.
3238 (class process_target): Add the target op.
3239 * target.cc (process_target::supports_multi_process): Define.
3240 (target_supports_multi_process): Update.
3241
3242 Update the derived classes and callers below.
3243
3244 * linux-low.cc (linux_target_ops): Update.
3245 (linux_supports_multi_process): Turn into ...
3246 (linux_process_target::supports_multi_process): ... this.
3247 * linux-low.h (class linux_process_target): Update.
3248 * lynx-low.cc (lynx_target_ops): Update.
3249 * nto-low.cc (nto_target_ops): Update.
3250 * win32-low.cc (win32_target_ops): Update.
3251
0dc587d4
TBA
32522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3253
3254 Turn process_stratum_target's supports_non_stop, async, and
3255 start_non_stop ops into methods of process_target.
3256
3257 * target.h (struct process_stratum_target): Remove the target ops.
3258 (class process_target): Add the target ops.
3259 (target_supports_non_stop): Update the macro.
3260 (target_async): Update the macro.
3261 (start_non_stop): Remove declaration.
3262 * target.cc (process_target::supports_non_stop): Define.
3263 (process_target::async): Define.
3264 (process_target::start_non_stop): Define.
3265 (start_non_stop): Remove.
3266
3267 Update the derived classes and callers below.
3268
3269 * server.cc (handle_qxfer_siginfo): Update.
3270 (handle_query): Update.
3271 * linux-low.cc (linux_target_ops): Update.
3272 (linux_supports_non_stop): Turn into ...
3273 (linux_process_target::supports_non_stop): ... this.
3274 (linux_async): Turn into ...
3275 (linux_process_target::async): ... this.
3276 (linux_start_non_stop): Turn into ...
3277 (linux_process_target::start_non_stop): ... this.
3278 * linux-low.h (class linux_process_target): Update.
3279 * lynx-low.cc (lynx_target_ops): Update.
3280 * nto-low.cc (nto_target_ops): Update.
3281 (nto_supports_non_stop): Remove; rely on the default behavior
3282 instead.
3283 * win32-low.cc (win32_target_ops): Update.
3284
d7abedf7
TBA
32852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3286
3287 Turn process_stratum_target's qxfer_siginfo op into a method of
3288 process_target.
3289
3290 * target.h (struct process_stratum_target): Remove the target op.
3291 (class process_target): Add the target op. Also add
3292 'supports_qxfer_siginfo'.
3293 * target.cc (process_target::qxfer_siginfo): Define.
3294 (process_target::supports_qxfer_siginfo): Define.
3295
3296 Update the derived classes and callers below.
3297
3298 * server.cc (handle_qxfer_siginfo): Update.
3299 (handle_query): Update.
3300 * linux-low.cc (linux_target_ops): Update.
3301 (linux_process_target::supports_qxfer_siginfo): Define.
3302 (linux_xfer_siginfo): Turn into ...
3303 (linux_process_target::qxfer_siginfo): ... this.
3304 * linux-low.h (class linux_process_target): Update.
3305 * lynx-low.cc (lynx_target_ops): Update.
3306 * nto-low.cc (nto_target_ops): Update.
3307 * win32-low.cc (win32_target_ops): Update.
3308
2d0795ee
TBA
33092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3310
3311 Turn process_stratum_target's qxfer_osdata op into a method of
3312 process_target.
3313
3314 * target.h (struct process_stratum_target): Remove the target op.
3315 (class process_target): Add the target op. Also add
3316 'supports_qxfer_osdata'.
3317 * target.cc (process_target::qxfer_osdata): Define.
3318 (process_target::supports_qxfer_osdata): Define.
3319
3320 Update the derived classes and callers below.
3321
3322 * server.cc (handle_qxfer_osdata): Update.
3323 (handle_query): Update.
3324 * linux-low.cc (linux_target_ops): Update.
3325 (linux_process_target::supports_qxfer_osdata): Define.
3326 (linux_qxfer_osdata): Turn into ...
3327 (linux_process_target::qxfer_osdata): ... this.
3328 * linux-low.h (class linux_process_target): Update.
3329 * lynx-low.cc (lynx_target_ops): Update.
3330 * nto-low.cc (nto_target_ops): Update.
3331 * win32-low.cc (win32_target_ops): Update.
3332
ea06bbaa
TBA
33332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3334
3335 Turn process_stratum_target's hostio_last_error op into a
3336 method of process_target.
3337
3338 * target.h (struct process_stratum_target): Remove the target op.
3339 (class process_target): Add the target op.
3340 * target.cc: Add "hostio.h" to includes.
3341 (process_target::hostio_last_error): Define.
3342
3343 Update the derived classes and callers below.
3344
3345 * hostio.cc (hostio_error): Update.
3346 * linux-low.cc: Remove "hostio.h" from includes.
3347 (linux_target_ops): Update.
3348 * lynx-low.cc (lynx_target_ops): Update.
3349 * nto-low.cc (nto_target_ops): Update.
3350 * win32-low.h (class win32_process_target): Update.
3351 * win32-low.cc (win32_target_ops): Update.
3352 (wince_hostio_last_error): Turn into ...
3353 (win32_process_target::hostio_last_error): ... this.
3354
6e3fd7e9
TBA
33552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3356
3357 Turn process_stratum_target's get_tls_address op into a method of
3358 process_target.
3359
3360 * target.h (struct process_stratum_target): Remove the target op.
3361 (class process_target): Add the target op. Also add
3362 'supports_get_tls_address'.
3363 * target.cc (process_target::get_tls_address): Define.
3364 (process_target::supports_get_tls_address): Define.
3365
3366 Update the derived classes and callers below.
3367
3368 * server.cc (handle_query): Update.
3369 * linux-low.cc (linux_target_ops): Update.
3370 (linux_process_target::supports_get_tls_address): Define.
3371 (linux_process_target::get_tls_address): Define.
3372 * linux-low.h (class linux_process_target): Update.
3373 * lynx-low.cc (lynx_target_ops): Update.
3374 * nto-low.cc (nto_target_ops): Update.
3375 * win32-low.cc (win32_target_ops): Update.
3376
5203ae1e
TBA
33772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3378
3379 Turn process_stratum_target's read_offsets op into a method of
3380 process_target.
3381
3382 * target.h (struct process_stratum_target): Remove the target op.
3383 (class process_target): Add the target op. Also add
3384 'supports_read_offsets'.
3385 * target.cc (process_target::read_offsets): Define.
3386 (process_target::supports_read_offsets): Define.
3387
3388 Update the derived classes and callers below.
3389
3390 * server.cc (handle_query): Update.
3391 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3392 (linux_target_ops): Update.
3393 (linux_process_target::supports_read_offsets): Define.
3394 (linux_read_offsets): Turn into ...
3395 (linux_process_target::read_offsets): ... this.
3396 * linux-low.h (class linux_process_target): Update.
3397 * lynx-low.cc (lynx_target_ops): Update.
3398 * nto-low.cc (nto_target_ops): Update.
3399 * win32-low.cc (win32_target_ops): Update.
3400
6eeb5c55
TBA
34012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3402
3403 Turn process_stratum_target's stopped_by_watchpoint and
3404 stopped_data_address ops into methods of process_target.
3405
3406 * target.h (struct process_stratum_target): Remove the target ops.
3407 (class process_target): Add the target ops.
3408 * target.cc (process_target::stopped_by_watchpoint): Define.
3409 (process_target::stopped_data_address): Define.
3410
3411 Update the derived classes and callers below.
3412
3413 * remote-utils.cc (prepare_resume_reply): Update.
3414 * linux-low.cc (linux_target_ops): Update.
3415 (linux_stopped_by_watchpoint): Turn into ...
3416 (linux_process_target::stopped_by_watchpoint): ... this.
3417 (linux_stopped_data_address): Turn into ...
3418 (linux_process_target::stopped_data_address): ... this.
3419 * linux-low.h (class linux_process_target): Update.
3420 * lynx-low.cc (lynx_target_ops): Update.
3421 * nto-low.cc (nto_target_ops): Update.
3422 (nto_stopped_by_watchpoint): Turn into ...
3423 (nto_process_target::stopped_by_watchpoint): ... this.
3424 (nto_stopped_data_address): Turn into ...
3425 (nto_process_target::stopped_data_address): ... this.
3426 * nto-low.h (class nto_process_target): Update.
3427 * win32-low.cc (win32_target_ops): Update.
3428 (win32_stopped_by_watchpoint): Turn into ...
3429 (win32_process_target::stopped_by_watchpoint): ... this.
3430 (win32_stopped_data_address): Turn into ...
3431 (win32_process_target::stopped_data_address): ... this.
3432 * win32-low.h (class win32_process_target): Update.
3433
22aa6223
TBA
34342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3435
3436 Turn process_stratum_target's supports_hardware_single_step op into
3437 a method of process_target.
3438
3439 * target.h (struct process_stratum_target): Remove the target op.
3440 (class process_target): Add the target op.
3441 (target_supports_hardware_single_step): Update the macro.
3442 (target_can_do_hardware_single_step): Remove declaration.
3443 * target.cc (process_target::supports_hardware_single_step): Define.
3444 (target_can_do_hardware_single_step): Remove.
3445
3446 Update the derived classes and callers below.
3447
3448 * linux-low.h (class linux_process_target): Update.
3449 * linux-low.cc (linux_target_ops): Update.
3450 (linux_supports_hardware_single_step): Turn into ...
3451 (linux_process_target::supports_hardware_single_step): ... this.
3452 * lynx-low.h (class lynx_process_target): Update.
3453 * lynx-low.cc (lynx_target_ops): Update.
3454 (lynx_process_target::supports_hardware_single_step): Define.
3455 * nto-low.h (class nto_process_target): Update.
3456 * nto-low.cc (nto_target_ops): Update.
3457 (nto_process_target::supports_hardware_single_step): Define.
3458 * win32-low.h (class win32_process_target): Update.
3459 * win32-low.cc (win32_target_ops): Update.
3460 (win32_process_target::supports_hardware_single_step): Define.
3461
93fe88b2
TBA
34622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3463
3464 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3465 ops into methods of process_target.
3466
3467 * target.h (struct process_stratum_target): Remove the target ops.
3468 (class process_target): Add the target ops.
3469 (target_stopped_by_hw_breakpoint): Update the macro.
3470 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3471 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3472 (process_target::supports_stopped_by_hw_breakpoint): Define.
3473
3474 Update the derived classes and callers below.
3475
3476 * linux-low.cc (linux_target_ops): Update.
3477 (linux_stopped_by_hw_breakpoint): Turn into ...
3478 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3479 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3480 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3481 * linux-low.h (class linux_process_target): Update.
3482 * lynx-low.cc (lynx_target_ops): Update.
3483 * nto-low.cc (nto_target_ops): Update.
3484 * win32-low.cc (win32_target_ops): Update.
3485
84320c4e
TBA
34862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3487
3488 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3489 ops into methods of process_target.
3490
3491 * target.h (struct process_stratum_target): Remove the target ops.
3492 (class process_target): Add the target ops.
3493 (target_stopped_by_sw_breakpoint): Update the macro.
3494 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3495 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3496 (process_target::supports_stopped_by_sw_breakpoint): Define.
3497
3498 Update the derived classes and callers below.
3499
3500 * linux-low.cc (linux_target_ops): Update.
3501 (linux_stopped_by_sw_breakpoint): Turn into ...
3502 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3503 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3504 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3505 * linux-low.h (class linux_process_target): Update.
3506 * lynx-low.cc (lynx_target_ops): Update.
3507 * nto-low.cc (nto_target_ops): Update.
3508 * win32-low.cc (win32_target_ops): Update.
3509
7e0bde70
TBA
35102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3511
3512 Turn process_stratum_target's insert_point and remove_point ops
3513 into methods of process_target.
3514
3515 * target.h (struct process_stratum_target): Remove the target ops.
3516 (class process_target): Add the target ops.
3517 * target.cc (process_target::insert_point): Define.
3518 (process_target::remove_point): Define.
3519
3520 Update the derived classes and callers below.
3521
3522 * mem-break.cc (set_raw_breakpoint_at): Update.
3523 (delete_raw_breakpoint): Update.
3524 (uninsert_raw_breakpoint): Update.
3525 (reinsert_raw_breakpoint): Update.
3526 * linux-low.cc (linux_target_ops): Update.
3527 (linux_insert_point): Turn into ...
3528 (linux_process_target::insert_point): ... this.
3529 (linux_remove_point): Turn into ...
3530 (linux_process_target::remove_point): ... this.
3531 * linux-low.h (class linux_process_target): Update.
3532 * lynx-low.cc (lynx_target_ops): Update.
3533 * nto-low.cc (nto_target_ops): Update.
3534 (nto_insert_point): Turn into ...
3535 (nto_process_target::insert_point): ... this.
3536 (nto_remove_point): Turn into ...
3537 (nto_process_target::remove_point): ... this.
3538 * nto-low.h (class nto_process_target): Update.
3539 * win32-low.cc (win32_target_ops): Update.
3540 (win32_insert_point): Turn into ...
3541 (win32_process_target::insert_point): ... this.
3542 (win32_remove_point): Turn into ...
3543 (win32_process_target::remove_point): ... this.
3544 * win32-low.h (class win32_process_target): Update.
3545
a2b2297a
TBA
35462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3547
3548 Turn process_stratum_target's supports_z_point_type op into a
3549 method of process_target.
3550
3551 * target.h (struct process_stratum_target): Remove the target op.
3552 (class process_target): Add the target op.
3553 * target.cc (process_target::supports_z_point_type): Define.
3554
3555 Update the derived classes and callers below.
3556
3557 * mem-break.cc (z_type_supported): Update.
3558 * linux-low.cc (linux_target_ops): Update.
3559 (linux_supports_z_point_type): Turn into ...
3560 (linux_process_target::supports_z_point_type): ... this.
3561 * linux-low.h (class linux_process_target): Update.
3562 * lynx-low.cc (lynx_target_ops): Update.
3563 * nto-low.cc (nto_target_ops): Update.
3564 (nto_supports_z_point_type): Turn into ...
3565 (nto_process_target::supports_z_point_type): ... this.
3566 * nto-low.h (class nto_process_target): Update.
3567 * win32-low.cc (win32_target_ops): Update.
3568 (win32_supports_z_point_type): Turn into ...
3569 (win32_process_target::supports_z_point_type): ... this.
3570 * win32-low.h (class win32_process_target): Update.
3571
eac215cc
TBA
35722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3573
3574 Turn process_stratum_target's read_auxv op into a method of
3575 process_target.
3576
3577 * target.h (class process_stratum_target): Remove the target op.
3578 (struct process_target): Add the target op. Also add
3579 'supports_read_auxv'.
3580 * target.cc (process_target::read_auxv): Define.
3581 (process_target::supports_read_auxv): Define.
3582
3583 Update the derived classes and callers below.
3584
3585 * server.cc (handle_qxfer_auxv): Update.
3586 (handle_query): Update.
3587 * linux-low.cc (linux_target_ops): Update.
3588 (linux_process_target::supports_read_auxv): Define.
3589 (linux_read_auxv): Turn into ...
3590 (linux_process_target::read_auxv): ... this.
3591 * linux-low.h (class linux_process_target): Update.
3592 * lynx-low.cc (lynx_target_ops): Update.
3593 * nto-low.cc (nto_target_ops): Update.
3594 (nto_process_target::supports_read_auxv): Define.
3595 (nto_read_auxv): Turn into ...
3596 (nto_process_target::read_auxv): ... this.
3597 * nto-low.h (class nto_process_target): Update.
3598 * win32-low.cc (win32_target_ops): Update.
3599
eb497a2a
TBA
36002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3601
3602 Turn process_stratum_target's request_interrupt op into a method of
3603 process_target.
3604
3605 * target.h (struct process_stratum_target): Remove the target op.
3606 (class process_target): Add the target op.
3607
3608 Update the derived classes and callers below.
3609
3610 * remote-utils.cc (putpkt_binary_1): Update.
3611 (input_interrupt): Update.
3612 (getpkt): Update.
3613 * server.cc (handle_v_requests): Update.
3614 * linux-low.cc (linux_target_ops): Update.
3615 (linux_request_interrupt): Turn into ...
3616 (linux_process_target::request_interrupt): ... this.
3617 * linux-low.h (class linux_process_target): Update.
3618 * lynx-low.cc (lynx_target_ops): Update.
3619 (lynx_request_interrupt): Turn into ...
3620 (lynx_process_target::request_interrupt): ... this.
3621 * lynx-low.h (class lynx_process_target): Update.
3622 * nto-low.cc (nto_target_ops): Update.
3623 (nto_request_interrupt): Turn into ...
3624 (nto_process_target::request_interrupt): ... this.
3625 * nto-low.h (class nto_process_target): Update.
3626 * win32-low.cc (win32_target_ops): Update.
3627 (win32_request_interrupt): Turn into ...
3628 (win32_process_target::request_interrupt): ... this.
3629 * win32-low.h (class win32_process_target): Update.
3630
2a31c7aa
TBA
36312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3632
3633 Turn process_stratum_target's look_up_symbols op into a method of
3634 process_target.
3635
3636 * target.h (struct process_stratum_target): Remove the target op.
3637 (class process_target): Add the target op.
3638 * target.cc (process_target::look_up_symbols): Define.
3639
3640 Update the derived classes and callers below.
3641
3642 * server.cc (handle_query): Update.
3643 * linux-low.cc (linux_target_ops): Update.
3644 (linux_look_up_symbols): Turn into ...
3645 (linux_process_target::look_up_symbols): ... this.
3646 * linux-low.h (class linux_process_target): Update.
3647 * lynx-low.cc (lynx_target_ops): Update.
3648 * nto-low.cc (nto_target_ops): Update.
3649 * win32-low.cc (win32_target_ops): Update.
3650
e2558df3
TBA
36512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3652
3653 Turn process_stratum_target's read_memory and write_memory
3654 ops into methods of process_target.
3655
3656 * target.h (struct process_stratum_target): Remove the target ops.
3657 (class process_target): Add the target ops.
3658
3659 Update the derived classes and callers below.
3660
3661 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3662 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3663 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3664 (arm_get_syscall_trapinfo): Update.
3665 * linux-cris-low.cc (cris_breakpoint_at): Update.
3666 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3667 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3668 * linux-mips-low.cc (mips_breakpoint_at): Update.
3669 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3670 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3671 * linux-sh-low.cc (sh_breakpoint_at): Update.
3672 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3673 (sparc_store_gregset_from_stack): Update.
3674 (sparc_breakpoint_at): Update.
3675 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3676 * linux-tile-low.cc (tile_breakpoint_at): Update.
3677 * linux-x86-low.cc (x86_breakpoint_at): Update.
3678 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3679 * mem-brea.cc (insert_memory_breakpoint): Update.
3680 (validate_inserted_breakpoint): Update.
3681 * target.cc (read_inferior_memory): Update.
3682 (target_write_memory): Update.
3683 * linux-low.cc (linux_target_ops): Update.
3684 (linux_read_memory): Make a wrapper around the read_memory target
3685 op call.
3686 (linux_process_target::read_memory): Rename from linux_read_memory.
3687 (linux_write_memory): Turn into ...
3688 (linux_process_target::write_memory): ... this.
3689 * linux-low.h (class linux_process_target): Update.
3690 * lynx-low.cc (lynx_target_ops): Update.
3691 (lynx_read_memory): Turn into ...
3692 (lynx_process_target::read_memory): ... this.
3693 (lynx_write_memory): Turn into ...
3694 (lynx_process_target::write_memory): ... this.
3695 * lynx-low.h (class lynx_process_target): Update.
3696 * nto-low.cc (nto_target_ops): Update.
3697 (nto_read_memory): Turn into ...
3698 (nto_process_target::read_memory): ... this.
3699 (nto_write_memory): Turn into ...
3700 (nto_process_target::write_memory): ... this.
3701 * nto-low.h (class nto_process_target): Update.
3702 * win32-low.cc (win32_target_ops): Update.
3703 (win32_read_inferior_memory): Turn into ...
3704 (win32_process_target::read_memory): ... this.
3705 (win32_write_inferior_memory): Turn into ...
3706 (win32_process_target::write_memory): ... this.
3707 * win32-low.h (class win32_process_target): Update.
3708
79b44087
TBA
37092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3710
3711 Turn process_stratum_target's prepare_to_access_memory and
3712 done_accessing_memory ops into methods of process_target.
3713
3714 * target.h (struct process_stratum_target): Remove the target ops.
3715 (class process_target): Add the target ops.
3716 * target.cc (process_target::prepare_to_access_memory): Define.
3717 (process_target::done_accessing_memory): Define.
3718 (prepare_to_access_memory): Update.
3719 (done_accessing_memory): Update.
3720
3721 Update the derived classes and callers below.
3722
3723 * linux-low.cc (linux_target_ops): Update.
3724 (linux_prepare_to_access_memory): Turn into ...
3725 (linux_process_target::prepare_to_access_memory): ... this.
3726 (linux_done_accessing_memory): Turn into ...
3727 (linux_process_target::done_accessing_memory): ... this.
3728 * linux-low.h (class linux_process_target): Update.
3729 * lynx-low.cc (lynx_target_ops): Update.
3730 * nto-low.cc (nto_target_ops): Update.
3731 * win32-low.cc (win32_target_ops): Update.
3732
a5a4d4cd
TBA
37332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3734
3735 Turn process_stratum_target's fetch_registers and store_registers
3736 ops into methods of process_target.
3737
3738 * target.h (struct process_stratum_target): Remove the target ops.
3739 (class process_target): Add the target ops.
3740 (fetch_inferior_registers): Update the macro.
3741 (store_inferior_registers): Update the macro.
3742
3743 Update the derived classes and callers below.
3744
3745 * linux-low.cc (linux_target_ops): Update.
3746 (linux_fetch_registers): Turn into ...
3747 (linux_process_target::fetch_registers): ... this.
3748 (linux_store_registers): Turn into ...
3749 (linux_process_target::store_registers): ... this.
3750 * linux-low.h (class linux_process_target): Update.
3751 * lynx-low.cc (lynx_target_ops): Update.
3752 (lynx_fetch_registers): Turn into ...
3753 (lynx_process_target::fetch_registers): ... this.
3754 (lynx_store_registers): Turn into ...
3755 (lynx_process_target::store_registers): ... this.
3756 * lynx-low.h (class lynx_process_target): Update.
3757 * nto-low.cc (nto_target_ops): Update.
3758 (nto_fetch_registers): Turn into ...
3759 (nto_process_target::fetch_registers): ... this.
3760 (nto_store_registers): Turn into ...
3761 (nto_process_target::store_registers): ... this.
3762 * nto-low.h (class nto_process_target): Update.
3763 * win32-low.cc (win32_target_ops): Update.
3764 (win32_fetch_inferior_registers): Turn into ...
3765 (win32_process_target::fetch_registers): ... this.
3766 (win32_store_inferior_registers): Turn into ...
3767 (win32_process_target::store_registers): ... this.
3768 * win32-low.h (class win32_process_target): Update.
3769
6532e7e3
TBA
37702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3771
3772 Turn process_stratum_target's wait op into a method of
3773 process_target.
3774
3775 * target.h (struct process_stratum_target): Remove the target op.
3776 (class process_target): Add the target op.
3777
3778 Update the derived classes and callers below.
3779
3780 * target.cc (target_wait): Update.
3781 * linux-low.cc (linux_target_ops): Update.
3782 (linux_wait): Turn into ...
3783 (linux_process_target::wait): ... this.
3784 * linux-low.h (class linux_process_target): Update.
3785 * lynx-low.cc (lynx_target_ops): Update.
3786 (lynx_wait): Turn into ...
3787 (lynx_process_target::wait): ... this.
3788 * lynx-low.h (class lynx_process_target): Update.
3789 * nto-low.cc (nto_target_ops): Update.
3790 (nto_wait): Turn into ...
3791 (nto_process_target::wait): ... this.
3792 * nto-low.h (class nto_process_target): Update.
3793 * win32-low.cc (win32_target_ops): Update.
3794 (win32_wait): Turn into ...
3795 (win32_process_target::wait): ... this.
3796 (do_initial_child_stuff): Update.
3797 * win32-low.h (class win32_process_target): Update.
3798
0e4d7e35
TBA
37992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3800
3801 Turn process_stratum_target's resume op into a method of
3802 process_target.
3803
3804 * target.h (struct process_stratum_target): Remove the target op.
3805 (class process_target): Add the target op.
3806
3807 Update the derived classes and callers below.
3808
3809 * server.cc (resume): Update.
3810 * target.cc (target_stop_and_wait): Update.
3811 (target_continue_no_signal): Update.
3812 (target_continue): Update.
3813 * linux-low.cc (linux_target_ops): Update.
3814 (linux_resume): Turn into ...
3815 (linux_process_target::resume): ... this.
3816 * linux-low.h (class linux_process_target): Update.
3817 * lynx-low.cc (lynx_target_ops): Update.
3818 (lynx_resume): Turn into ...
3819 (lynx_process_target::resume): ... this.
3820 * lynx-low.h (class lynx_process_target): Update.
3821 * nto-low.cc (nto_target_ops): Update.
3822 (nto_resume): Turn into ...
3823 (nto_process_target::resume): ... this.
3824 * nto-low.h (class nto_process_target): Update.
3825 * win32-low.cc (win32_target_ops): Update.
3826 (win32_resume): Turn into ...
3827 (win32_process_target::resume): ... this.
3828 (win32_process_target::detach): Update.
3829 (do_initial_child_stuff): Update.
3830 * win32-low.h (class win32_process_target): Update.
3831
13d3d99b
TBA
38322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3833
3834 Turn process_stratum_target's thread_alive op into a method of
3835 process_target.
3836
3837 * target.h (struct process_stratum_target): Remove the target op.
3838 (class process_target): Add the target op.
3839 (mythread_alive): Update the macro.
3840
3841 Update the derived classes and callers below.
3842
3843 * linux-low.cc (linux_target_ops): Update.
3844 (linux_thread_alive): Turn into ...
3845 (linux_process_target::thread_alive): ... this.
3846 (wait_for_sigstop): Update.
3847 * linux-low.h (class linux_process_target): Update.
3848 * lynx-low.cc (lynx_target_ops): Update.
3849 (lynx_thread_alive): Turn into ...
3850 (lynx_process_target::thread_alive): ... this.
3851 * lynx-low.h (class lynx_process_target): Update.
3852 * nto-low.cc (nto_target_ops): Update.
3853 (nto_thread_alive): Turn into ...
3854 (nto_process_target::thread_alive): ... this.
3855 * nto-low.h (class nto_process_target): Update.
3856 * win32-low.cc (win32_target_ops): Update.
3857 (win32_thread_alive): Turn into ...
3858 (win32_process_target::thread_alive): ... this.
3859 * win32-low.h (class win32_process_target): Update.
3860
95a49a39
TBA
38612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3862
3863 Turn process_stratum_target's join op into a method of
3864 process_target.
3865
3866 * target.h (struct process_stratum_target): Remove the target op.
3867 (class process_target): Add the target op.
3868 (join_inferior): Update the macro.
3869
3870 Update the derived classes and callers below.
3871
3872 * linux-low.cc (linux_target_ops): Update.
3873 (linux_join): Turn into ...
3874 (linux_process_target::join): ... this.
3875 * linux-low.h (class linux_process_target): Update.
3876 * lynx-low.cc (lynx_target_ops): Update.
3877 (lynx_join): Turn into ...
3878 (lynx_process_target::join): ... this.
3879 * lynx-low.h (class lynx_process_target): Update.
3880 * nto-low.cc (nto_target_ops): Update.
3881 (nto_process_target::join): Define.
3882 * nto-low.h (class nto_process_target): Update.
3883 * win32-low.cc (win32_target_ops): Update.
3884 (win32_join): Turn into ...
3885 (win32_process_target::join): ... this.
3886 * win32-low.h (class win32_process_target): Update.
3887
8adb37b9
TBA
38882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3889
3890 Turn process_stratum_target's mourn op into a method of
3891 process_target.
3892
3893 * target.h (struct process_stratum_target): Remove the target op.
3894 (class process_target): Add the target op.
3895
3896 Update the derived classes and callers below.
3897
3898 * target.cc (target_mourn_inferior): Update.
3899 * linux-low.cc (linux_target_ops): Update.
3900 (linux_mourn): Turn into ...
3901 (linux_process_target::mourn): ... this.
3902 (handle_extended_wait): Update.
3903 (linux_process_target::kill): Update.
3904 (linux_process_target::detach): Update.
3905 * linux-low.h (class linux_process_target): Update.
3906 * lynx-low.cc (lynx_target_ops): Update.
3907 (lynx_mourn): Turn into ...
3908 (lynx_process_target::mourn): ... this.
3909 * lynx-low.h (class lynx_process_target): Update.
3910 * nto-low.cc (nto_target_ops): Update.
3911 (nto_mourn): Turn into ...
3912 (nto_process_target::mourn): ... this.
3913 * nto-low.h (class nto_process_target): Update.
3914 * win32-low.cc (win32_target_ops): Update.
3915 (win32_mourn): Turn into ...
3916 (win32_process_target::mourn): ... this.
3917 * win32-low.h (class win32_process_target): Update.
3918
9061c9cf
TBA
39192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3920
3921 Turn process_stratum_target's detach op into a method of
3922 process_target.
3923
3924 * target.h (struct process_stratum_target): Remove the target op.
3925 (class process_target): Add the target op.
3926 (detach_inferior): Update the macro.
3927
3928 Update the derived classes and callers below.
3929
3930 * linux-low.cc (linux_target_ops): Update.
3931 (linux_detach): Turn into ...
3932 (linux_process_target::detach): ... this.
3933 * linux-low.h (class linux_process_target): Update.
3934 * lynx-low.cc (lynx_target_ops): Update.
3935 (lynx_detach): Turn into ...
3936 (lynx_process_target::detach): ... this.
3937 * lynx-low.h (class lynx_process_target): Update.
3938 * nto-low.cc (nto_target_ops): Update.
3939 (nto_detach): Turn into ...
3940 (nto_process_target::detach): ... this.
3941 * nto-low.h (class nto_process_target): Update.
3942 * win32-low.cc (win32_target_ops): Update.
3943 (win32_detach): Turn into ...
3944 (win32_process_target::detach): ... this.
3945 * win32-low.h (class win32_process_target): Update.
3946
c6885a57
TBA
39472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3948
3949 Turn process_stratum_target's kill op into a method of
3950 process_target.
3951
3952 * target.h (struct process_stratum_target): Remove the target op.
3953 (class process_target): Add the target op.
3954
3955 Update the derived classes and callers below.
3956
3957 * target.cc (kill_inferior): Update.
3958 * linux-low.cc (linux_target_ops): Update.
3959 (linux_kill): Turn into ...
3960 (linux_process_target::kill): ... this.
3961 * linux-low.h (class linux_process_target): Update.
3962 * lynx-low.cc (lynx_target_ops): Update.
3963 (lynx_kill): Turn into ...
3964 (lynx_process_target::kill): ... this.
3965 * lynx-low.h (class lynx_process_target): Update.
3966 * nto-low.cc (nto_target_ops): Update.
3967 (nto_kill): Turn into ...
3968 (nto_process_target::kill): ... this.
3969 * nto-low.h (class nto_process_target): Update.
3970 * win32-low.cc (win32_target_ops): Update.
3971 (win32_kill): Turn into ...
3972 (win32_process_target::kill): ... this.
3973 * win32-low.h (class win32_process_target): Update.
3974
ef03dad8
TBA
39752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3976
3977 Turn process_stratum_target's attach op into a method of
3978 process_target.
3979
3980 * target.h (struct process_stratum_target): Remove the target op.
3981 (class process_target): Add the target op.
3982 (myattach): Update the macro.
3983
3984 Update the derived classes and callers below.
3985
3986 * linux-low.cc (linux_target_ops): Update.
3987 (linux_attach): Turn into ...
3988 (linux_process_target::attach): ... this.
3989 * linux-low.h (class linux_process_target): Update.
3990 * lynx-low.cc (lynx_target_ops): Update.
3991 (lynx_attach): Turn into ...
3992 (lynx_process_target::attach): ... this.
3993 * lynx-low.h (class lynx_process_target): Update.
3994 * nto-low.cc (nto_target_ops): Update.
3995 (nto_attach): Turn into ...
3996 (nto_process_target::attach): ... this.
3997 * nto-low.h (class nto_process_target): Update.
3998 * win32-low.cc (win32_target_ops): Update.
3999 (win32_attach): Turn into ...
4000 (win32_process_target::attach): ... this.
4001 * win32-low.h (class win32_process_target): Update.
4002
6dee9afb
TBA
40032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4004
4005 Turn process_stratum_target's post_create_inferior op into a method
4006 of process_target.
4007
4008 * target.h (struct process_stratum_target): Remove the target op.
4009 (class process_target): Add the target op.
4010 (target_post_create_inferior): Update the macro.
4011 * target.cc (process_target::post_create_inferior): Define.
4012
4013 Update the derived classes and callers below.
4014
4015 * linux-low.cc (linux_target_ops): Update.
4016 (linux_post_create_inferior): Turn into ...
4017 (linux_process_target::post_create_inferior): ... this.
4018 * linux-low.h (class linux_process_target): Update.
4019 * lynx-low.cc (lynx_target_ops): Update.
4020 * nto-low.cc (nto_target_ops): Update.
4021 * win32-low.cc (win32_target_ops): Update.
4022
15295543
TBA
40232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4024
4025 Turn process_stratum_target's create_inferior op into a method of
4026 process_target.
4027
4028 * target.h (struct process_stratum_target): Remove the target op.
4029 (class process_target): Add the target op.
4030 (create_inferior): Rename the macro to ...
4031 (target_create_inferior): ... this.
4032
4033 Update the derived classes and callers below.
4034
4035 * server.cc (handle_v_run): Update.
4036 (captured_main): Update.
4037 (process_serial_event): Update.
4038 * linux-low.cc (linux_target_ops): Update.
4039 (linux_create_inferior): Turn into ...
4040 (linux_process_target::create_inferior): ... this.
4041 * linux-low.h (class linux_process_target): Update.
4042 * lynx-low.cc (lynx_target_ops): Update.
4043 (lynx_create_inferior): Turn into ...
4044 (lynx_process_target::create_inferior): ... this.
4045 * lynx-low.h (class lynx_process_target): Update.
4046 * nto-low.cc (nto_target_ops): Update.
4047 (nto_create_inferior): Turn into ...
4048 (nto_process_target::create_inferior): ... this.
4049 * nto-low.h (class nto_process_target): Update.
4050 * win32-low.cc (win32_target_ops): Update.
4051 (win32_create_inferior): Turn into ...
4052 (win32_process_target::create_inferior): ... this.
4053 * win32-low.h (class win32_process_target): Update.
4054
5ef9273d
TBA
40552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4056
4057 * target.h (class process_target): New class definition.
4058 (struct process_stratum_target) <pt>: New field with type
4059 'process_target*'.
4060 * linux-low.h (class linux_process_target): Define as a derived
4061 class of 'process_target'.
4062 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4063 as the 'pt' field.
4064 * lynx-low.h (class lynx_process_target): Define as a derived
4065 class of 'process_target'.
4066 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4067 as the 'pt' field.
4068 * nto-low.h (class nto_process_target): Define as a derived
4069 class of 'process_target'.
4070 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4071 as the 'pt' field.
4072 * win32-low.h (class win32_process_target): Define as a derived
4073 class of 'process_target'.
4074 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4075 as the 'pt' field.
4076
9f1528a1
AB
40772020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4078
4079 * configure: Regenerate.
4080
bf84f706
MR
40812020-02-19 Maciej W. Rozycki <macro@wdc.com>
4082 Andrew Burgess <andrew.burgess@embecosm.com>
4083
4084 * linux-riscv-low.cc: New file.
4085 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4086 and nat/riscv-linux-tdesc.c.
4087 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4088 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4089 Define.
4090
1a627e7e
TT
40912020-02-14 Tom Tromey <tom@tromey.com>
4092
4093 * acinclude.m4: Don't include acx_configure_dir.m4.
4094 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4095 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4096 (all, install-only, uninstall, clean-info, clean)
4097 (maintainer-clean): Don't recurse.
4098 (subdir_do, all-lib): Remove.
4099 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4100 (GNULIB_H): Remove.
4101 (generated_files): Update.
4102 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4103 * configure: Rebuild.
4104 * configure.ac: Don't configure gnulib or libiberty.
4105 (GNULIB): Update.
4106
a9b34532
EZ
41072020-02-14 Eli Zaretskii <eliz@gnu.org>
4108
4109 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4110 preparing the command line for CreateProcess.
4111 (win32_create_inferior): Reflect the program name in debugging
4112 output that shows the process and its command line.
4113
feacfcac
SM
41142020-02-13 Simon Marchi <simon.marchi@efficios.com>
4115
4116 * Makefile.in: Rename source files from .c to .cc.
4117 * %.c: Rename to %.cc.
4118 * configure.ac: Rename server.c to server.cc.
4119 * configure: Re-generate.
4120
06b3c5bd
SM
41212020-02-13 Simon Marchi <simon.marchi@efficios.com>
4122
4123 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4124
052793ad
HD
41252020-02-12 Hannes Domani <ssbssa@yahoo.de>
4126
4127 * win32-low.c (win32_create_inferior): Set signal_pid.
4128
f20e3e82
MR
41292020-02-12 Maciej W. Rozycki <macro@wdc.com>
4130 Pedro Alves <palves@redhat.com>
4131
4132 Skip building gdbserver in a cross-configuration.
4133 * configure.srv: Set $gdbserver_host depending on whether $target
4134 is $host. Use $gdbserver_host instead of $host.
4135
8ddd8e0e
SM
41362020-02-11 Simon Marchi <simon.marchi@efficios.com>
4137
4138 * configure: Re-generate.
4139
898e7f60
SM
41402020-02-11 Simon Marchi <simon.marchi@efficios.com>
4141
4142 * configure: Re-generate.
4143
58df732b
SM
41442020-02-11 Simon Marchi <simon.marchi@efficios.com>
4145
4146 * acinclude.m4: Update warning.m4 path.
4147
7928d571
HD
41482020-02-09 Hannes Domani <ssbssa@yahoo.de>
4149
4150 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4151 (handle_exception): Set siginfo_er.
4152 (win32_xfer_siginfo): New function.
4153
919adfe8
TT
41542020-02-07 Tom Tromey <tom@tromey.com>
4155 Pedro Alves <palves@redhat.com>
4156
4157 * README: Update build documentation.
4158 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4159 host, not target.
4160 * configure.ac: Update paths.
4161 * configure: Rebuild.
4162 * acinclude.m4: Update paths.
4163 * Makefile.in: Update include paths.
4164 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4165 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4166 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4167 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4168 (%-generated.c): Update paths.
4169 * Move entire directory from ../gdb/gdbserver.
4170
287c844a
MR
41712020-01-29 Maciej W. Rozycki <macro@wdc.com>
4172
4173 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4174
548a204f
PFC
41752020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4176
4177 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4178 assignment instead of srv_linux_obj.
4179
a2236a08
HD
41802020-01-28 Hannes Domani <ssbssa@yahoo.de>
4181
4182 * server.c (handle_qxfer_libraries): Write segment-address with
4183 paddress.
4184
bdaed379
HD
41852020-01-24 Hannes Domani <ssbssa@yahoo.de>
4186
4187 * Makefile.in (install-strip): New target.
4188 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4189 * aclocal.m4: Regenerate.
4190 * configure: Regenerate.
4191 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4192
42cd72aa
MR
41932020-01-24 Maciej W. Rozycki <macro@wdc.com>
4194
4195 * Makefile.in (SFILES): Adjust paths to point to real files.
4196 (OBS): Move waitstatus.o to target/waitstatus.o.
4197 (TAGS): Transform paths appropriately.
4198 (%.o): Rename to...
4199 (nat/%.o): ... this pattern rule.
4200 (%.o): Rename to...
4201 (target/%.o): ... this pattern rule.
4202 * configure.srv: Adjust paths throughout to include nat/ prefix
4203 with the revant files.
4204 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4205 * configure: Regenerate.
4206
42ba50ec
MR
42072020-01-24 Maciej W. Rozycki <macro@wdc.com>
4208
4209 * Makefile.in (TAGS): Remove config files from the recipe.
4210
05ea2a05
TT
42112020-01-14 Tom Tromey <tom@tromey.com>
4212
4213 * configure: Rebuild.
4214 * configure.ac: Remove any checks that were added to common.m4.
4215 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4216 lib-link.m4.
4217
01027315
TT
42182020-01-14 Tom Tromey <tom@tromey.com>
4219
4220 * server.h: Include config.h.
4221 * gdbreplay.c: Include config.h.
4222 * configure: Rebuild.
4223 * configure.ac: Don't source common.host.
4224 * acinclude.m4: Update path.
4225 * Makefile.in (INCSUPPORT): New variable.
4226 (INCLUDE_CFLAGS): Add INCSUPPORT.
4227 (SFILES): Update paths.
4228 (version-generated.c): Update path to create-version.sh.
4229 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4230
b2ceabe8
TT
42312020-01-14 Tom Tromey <tom@tromey.com>
4232
4233 * configure.ac (LIBS): Use WIN32APILIBS.
4234 (USE_WIN32API): Don't define.
4235 * configure: Rebuild.
4236
25c51f71
TT
42372020-01-14 Tom Tromey <tom@tromey.com>
4238
4239 * configure: Rebuild.
4240
c0bd321d
SM
42412020-01-13 Simon Marchi <simon.marchi@efficios.com>
4242
4243 * Makefile.in (%-generated.c): Remove rule for files from
4244 regformats/i386.
4245
bb564c58
SM
42462020-01-13 Simon Marchi <simon.marchi@efficios.com>
4247
4248 * configure: Re-generate.
4249
6e37c371
SM
42502020-01-13 Simon Marchi <simon.marchi@efficios.com>
4251
4252 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4253 Define to static.
4254 * tracepoint.c (stop_tracing, flush_trace_buffer,
4255 about_to_request_buffer_space, get_trace_state_variable_value,
4256 set_trace_state_variable_value, gdb_collect): Add declaration.
4257
df4a0200
SM
42582020-01-13 Simon Marchi <simon.marchi@efficios.com>
4259
4260 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4261 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4262 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4263 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4264 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4265 static.
4266
89e94ec9
SM
42672020-01-13 Simon Marchi <simon.marchi@efficios.com>
4268
4269 * inferiors.c: Include gdbsupport/common-inferior.h.
4270
2552728a
SM
42712020-01-13 Simon Marchi <simon.marchi@efficios.com>
4272
4273 * hostio-errno.c: Include hostio.h.
4274
4025fa09
SM
42752020-01-13 Simon Marchi <simon.marchi@efficios.com>
4276
4277 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4278 prerequisite.
4279
c0b0a142
SM
42802020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4281
4282 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4283 * linux-arm-tdesc.h: Include arch/arm.h.
4284
bb1183e2
SM
42852020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4286
4287 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4288
f5df0b5f
SM
42892020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4290
4291 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4292 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4293
5b6d1e4f
PA
42942020-01-10 Pedro Alves <palves@redhat.com>
4295
4296 * fork-child.c (post_fork_inferior): Pass target down to
4297 startup_inferior.
4298 * inferiors.c (switch_to_thread): Add process_stratum_target
4299 parameter.
4300 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4301 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4302 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4303 * remote-utils.c (prepare_resume_reply): Pass the target to
4304 switch_to_thread.
4305 * target.c (the_target): Now a process_stratum_target.
4306 (done_accessing_memory): Pass the target to switch_to_thread.
4307 (set_target_ops): Ajust to use process_stratum_target.
4308 * target.h (struct target_ops): Rename to ...
4309 (struct process_stratum_target): ... this.
4310 (the_target, set_target_ops): Adjust.
4311 (prepare_to_access_memory): Adjust comment.
4312 * win32-low.c (child_xfer_memory): Adjust to use
4313 process_stratum_target.
4314 (win32_target_ops): Now a process_stratum_target.
4315
559e7e50
EZ
43162020-01-06 Eli Zaretskii <eliz@gnu.org>
4317 Pedro Alves <palves@redhat.com>
4318
4319 * win32-low.c (get_child_debug_event): Extract the fatal exception
4320 from the exit status and convert to the equivalent Posix signal
4321 number.
4322 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4323 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4324
48189bec
HD
43252020-01-01 Hannes Domani <ssbssa@yahoo.de>
4326
4327 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4328
5dd8bf88
JB
43292020-01-01 Joel Brobecker <brobecker@adacore.com>
4330
4331 * server.c (gdbserver_version): Change copyright year to 2020.
4332 * gdbreplay.c (gdbreplay_version): Likewise.
4333
0ad6b8ee
CB
43342019-12-19 Christian Biesinger <cbiesinger@google.com>
4335
4336 * configure: Regenerate.
4337 * configure.ac: Quote variable arguments of test.
4338
1ee7b812
BE
43392019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4340
4341 * Makefile.in: Fix build with GNU Make 3.81
4342
d9fa87f4
TT
43432019-12-16 Tom Tromey <tromey@adacore.com>
4344
4345 * server.c (get_exec_file): Constify result.
4346
ab7d13f0
CB
43472019-12-10 Christian Biesinger <cbiesinger@google.com>
4348
4349 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4350 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4351 * config.in: Regenerate.
4352 * configure: Regenerate.
4353 * configure.ac: Don't check for strerror.
4354 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4355 Call safe_strerror instead of strerror.
4356 * server.h (strerror): Remove this now-unnecessary declaration.
4357 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4358 strerror.
4359 (gdb_agent_helper_thread): Likewise.
4360 * utils.c (perror_with_name): Likewise.
4361
4da8c3a8
TT
43622019-11-26 Tom Tromey <tom@tromey.com>
4363
4364 * configure, config.in: Rebuild.
4365
21987b9c
TT
43662019-11-26 Tom Tromey <tom@tromey.com>
4367
4368 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4369 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4370 gdb_sigmask.
4371 * configure, config.in: Rebuild.
4372
5e030278
TT
43732019-11-26 Tom Tromey <tom@tromey.com>
4374
4375 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4376 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4377 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4378 * acinclude.m4: Include ax_pthread.m4.
4379 * config.in, configure: Rebuild.
4380
6d91ce9a
CB
43812019-11-26 Christian Biesinger <cbiesinger@google.com>
4382
4383 * debug.c (debug_set_output): Call safe_strerror instead of
4384 strerror.
4385 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4386 (linux_kill_one_lwp): Likewise.
4387 (linux_detach_one_lwp): Likewise.
4388 (linux_wait_for_event_filtered): Likewise.
4389 (store_register): Likewise.
4390 * lynx-low.c (lynx_attach): Likewise.
4391 * mem-break.c (insert_memory_breakpoint): Likewise.
4392 (remove_memory_breakpoint): Likewise.
4393 (delete_fast_tracepoint_jump): Likewise.
4394 (set_fast_tracepoint_jump): Likewise.
4395 (uninsert_fast_tracepoint_jumps_at): Likewise.
4396 (reinsert_fast_tracepoint_jumps_at): Likewise.
4397 * nto-low.c (nto_xfer_memory): Likewise.
4398 (nto_resume): Likewise.
4399
6cdd651f
LM
44002019-11-20 Luis Machado <luis.machado@linaro.org>
4401
4402 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4403 instead of register count.
4404 * tdesc.c (tdesc_contains_feature): New function.
4405 * tdesc.h (tdesc_contains_feature): New prototype.
4406
cd850b40
CB
44072019-11-15 Christian Biesinger <cbiesinger@google.com>
4408
4409 * Makefile.in: Add safe-strerror.c.
4410 * configure: Regenerate.
4411 * configure.ac: Don't source common.host.
4412
5abebf3c
CB
44132019-11-15 Christian Biesinger <cbiesinger@google.com>
4414
4415 * config.in: Regenerate.
4416 * configure: Regenerate.
4417
e06f3d6e
AB
44182019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4419
4420 * ax.c (ax_printf): Handle size_t_arg.
4421
ca3a04f6
CB
44222019-11-06 Christian Biesinger <cbiesinger@google.com>
4423
4424 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4425 * mi/mi-main.c (output_cores): Likewise.
4426 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4427 (linux_xfer_osdata_modules): Likewise.
4428 * remote.c (register_remote_support_xml): Likewise.
4429 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4430 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4431
e48f6033
CB
44322019-11-01 Christian Biesinger <cbiesinger@google.com>
4433
4434 * configure: Regenerate.
4435 * configure.ac: Remove check for strerror_r.
4436
e7e97a2e
CB
44372019-10-31 Christian Biesinger <cbiesinger@google.com>
4438
4439 * config.in: Regenerate.
4440 * configure: Regenerate.
4441 * configure.ac: Also check for strerror_r.
4442
75cafaa6
CB
44432019-10-31 Christian Biesinger <cbiesinger@google.com>
4444
4445 * ax.h (debug_agent): Remove duplicate declaration.
4446
30baf67b
TV
44472019-10-26 Tom de Vries <tdevries@suse.de>
4448
4449 * linux-aarch64-low.c: Fix typos in comments.
4450 * linux-arm-low.c: Same.
4451 * linux-low.c: Same.
4452 * linux-ppc-low.c: Same.
4453 * proc-service.c: Same.
4454 * regcache.h: Same.
4455 * server.c: Same.
4456 * tracepoint.c: Same.
4457 * win32-low.c: Same.
4458
52c64cf7
TT
44592019-10-25 Tom Tromey <tromey@adacore.com>
4460
4461 * utils.c (xstrdup): Remove.
4462
c12d372d
TT
44632019-10-23 Tom Tromey <tom@tromey.com>
4464
4465 * configure, config.in: Rebuild.
4466
4d0b984b
TT
44672019-10-23 Tom Tromey <tom@tromey.com>
4468
4469 * configure: Rebuild.
4470 * acinclude.m4: Use m4_include, not sinclude.
4471
c5adaa19
TT
44722019-10-17 Tom Tromey <tromey@adacore.com>
4473
4474 * configure: Rebuild.
4475 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4476 in AC_CONFIG_FILES invocation.
4477 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4478 invocation.
4479
fec4e896
CB
44802019-10-16 Christian Biesinger <cbiesinger@google.com>
4481
4482 * server.c: Include xml-builtin.h.
4483 (get_xml_features): Don't declare xml_builtins here.
4484
00975ff6
AB
44852019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4486
4487 * Makefile.in: Remove references to vec-ipa.o.
4488
0dc32745
AB
44892019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4490
4491 * Makefile.in: Remove references to vec.c.
4492
3e6ec53a
CB
44932019-10-02 Christian Biesinger <cbiesinger@google.com>
4494
4495 * server.c (server_waiting): Change to bool.
4496 (extended_protocol): Likewise.
4497 (response_needed): Likewise.
4498 (exit_requested): Likewise.
4499 (run_once): Likewise.
4500 (report_no_resumed): Likewise.
4501 (non_stop): Likewise.
4502 (disable_packet_vCont): Likewise.
4503 (disable_packet_Tthread): Likewise.
4504 (disable_packet_qC): Likewise.
4505 (disable_packet_qfThreadInfo): Likewise.
4506 (handle_general_set): Update.
4507 (handle_detach): Update.
4508 (handle_monitor_command): Update.
4509 (handle_query): Update.
4510 (captured_main): Update.
4511 (process_serial_event): Update.
4512 * server.h (server_waiting): Change to bool.
4513 (disable_packet_vCont): Likewise.
4514 (disable_packet_Tthread): Likewise.
4515 (disable_packet_qC): Likewise.
4516 (disable_packet_qfThreadInfo): Likewise.
4517 (run_once): Likewise.
4518 (non_stop): Likewise.
4519 * target.c (target_stop_and_wait): Update.
4520
80fd2826
TT
45212019-10-02 Tom Tromey <tromey@adacore.com>
4522
4523 * Makefile.in (SFILES): Add common-inferior.c.
4524 (OBS): Add common-inferior.o.
4525 * server.c (startup_with_shell): Don't define.
4526
46f29a9a
AB
45272019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4528
4529 * linux-low.c (linux_low_read_btrace): Update for change to
4530 std::vector.
4531
f9d949fb
CB
45322019-09-20 Christian Biesinger <cbiesinger@google.com>
4533
4534 * debug.c (debug_threads): Remove comment in favor of the header.
4535 * debug.h (using_threads): Add declaration.
4536 (debug_threads): Add comment.
4537 * linux-aarch64-low.c: Include debug.h and remove declaration of
4538 debug_threads.
4539 * nto-low.c: Likewise.
4540 * remote-utils.c: Likewise.
4541 * thread-db.c: Likewise.
4542
abf516c6
UW
45432019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4544
4545 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4546 and powerpc-cell64l-ipa.o.
4547 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4548 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4549 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4550 (spu*-*-*): Remove.
4551
4552 * spu-low.c: Remove file.
4553
4554 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4555 (parse_spufs_run): Remove.
4556 (ppc_get_pc): Remove Cell/B.E. support.
4557 (ppc_set_pc): Likewise.
4558 (ppc_breakpoint_at): Likewise.
4559 (ppc_arch_setup): Likewise.
4560 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4561 tdesc_powerpc_cell32l.
4562 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4563 or init_registers_powerpc_cell32l.
4564 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4565 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4566 or init_registers_powerpc_cell32l.
4567 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4568 (init_registers_powerpc_cell32l): Remove prototype.
4569 (init_registers_powerpc_cell64l): Likewise.
4570
4571 * target.h (struct target_ops): Remove qxfer_spu member.
4572 * server.c (handle_qxfer_spu): Remove.
4573 (qxfer_packets): Remove entry for "spu".
4574 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4575 * linux-low.c (SPUFS_MAGIC): Remove.
4576 (spu_enumerate_spu_ids): Remove.
4577 (linux_qxfer_spu): Remove.
4578 (linux_target_ops): Remove qxfer_spu member.
4579 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4580 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4581 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4582
2d41fa11
SDJ
45832019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4584
4585 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4586 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4587 * config.in: Regenerate.
4588 * configure: Regenerate.
4589
d59b55f0
TT
45902019-08-15 Tom Tromey <tromey@adacore.com>
4591
4592 * target.c (target_write_memory): Use gdb::byte_vector.
4593
4196ab2a
TT
45942019-08-15 Tom Tromey <tromey@adacore.com>
4595
4596 * tracepoint.c (write_inferior_data_pointer)
4597 (write_inferior_integer, write_inferior_int8)
4598 (write_inferior_uinteger, m_tracepoint_action_download)
4599 (r_tracepoint_action_download, x_tracepoint_action_download)
4600 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4601 (download_agent_expr, download_tracepoint_1)
4602 (download_trace_state_variables, upload_fast_traceframes): Update.
4603 * server.c (gdb_write_memory): Update.
4604 * remote-utils.c (relocate_instruction): Update.
4605 * proc-service.c (ps_pdwrite): Update.
4606 * mem-break.c (remove_memory_breakpoint)
4607 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4608 (uninsert_fast_tracepoint_jumps_at)
4609 (reinsert_fast_tracepoint_jumps_at): Update.
4610 * linux-x86-low.c (append_insns)
4611 (i386_install_fast_tracepoint_jump_pad)
4612 (amd64_write_goto_address, i386_write_goto_address): Update.
4613 * linux-s390-low.c (append_insns, s390_write_goto_address):
4614 Update.
4615 * linux-ppc-low.c (ppc_relocate_instruction)
4616 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4617 (ppc_write_goto_address): Update.
4618 * linux-aarch64-low.c (append_insns): Update.
4619 * target.h (struct target_ops): Update.
4620 (write_inferior_memory): Don't declare.
4621 * target.c (target_write_memory): Rename from
4622 write_inferior_memory. Remove old target_write_memory.
4623
c6778d00
TT
46242019-08-15 Tom Tromey <tromey@adacore.com>
4625
4626 * target.c (write_inferior_memory): Use std::vector.
4627
404f2902
FCE
46282019-08-06 Frank Ch. Eigler <fche@redhat.com>
4629
4630 PR build/24886
4631 * configure.ac: Drop enable-libmcheck support.
4632 * configure, config.in: Rebuild.
4633 * acinclude.m4: Don't include it.
4634
4c5aa8e0
AH
46352019-07-19 Alan Hayward <alan.hayward@arm.com>
4636
4637 * configure.srv: Remove Arm xml files.
4638
7cc17433
AH
46392019-07-19 Alan Hayward <alan.hayward@arm.com>
4640
4641 * configure.srv: Add new files. Remove xml generated files.
4642 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4643 registers.
4644 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4645 * linux-aarch32-tdesc.c: New file.
4646 * linux-aarch32-tdesc.h: New file.
4647 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4648 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4649 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4650 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4651 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4652 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4653 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4654 (arm_read_description): Call arm_linux_read_description.
4655 (initialize_low_arch): Don't init registers.
4656 * linux-arm-tdesc.c: New file.
4657 * linux-arm-tdesc.h: New file.
4658
166a82be
AH
46592019-07-10 Alan Hayward <alan.hayward@arm.com>
4660
4661 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4662 Move counter inside for.
4663 (arm_read_description): Check ptrace earlier.
4664 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4665
268a13a5
TT
46662019-07-09 Tom Tromey <tom@tromey.com>
4667
4668 * configure: Rebuild.
4669 * configure.ac: Change common to gdbsupport.
4670 * acinclude.m4: Change common to gdbsupport.
4671 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4672 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4673 common to gdbsupport.
4674 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4675 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4676 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4677 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4678 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4679 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4680 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4681 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4682 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4683 common to gdbsupport.
4684
350fab54
AH
46852019-07-04 Alan Hayward <alan.hayward@arm.com>
4686
4687 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4688 defines.
4689 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4690
2b40fda7
AH
46912019-07-04 Alan Hayward <alan.hayward@arm.com>
4692
4693 * configure.srv: Remove legacy xml.
4694 * linux-aarch64-low.c (initialize_low_arch): Remove
4695 initialize_low_tdesc call.
4696 * linux-aarch64-tdesc-selftest.c: Remove file.
4697 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4698 * linux-x86-low.c (initialize_low_arch): Remove
4699 initialize_low_tdesc call.
4700 * linux-x86-tdesc-selftest.c: Remove file.
4701 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4702
7d10623d
TV
47032019-06-20 Tom de Vries <tdevries@suse.de>
4704
4705 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4706 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4707
8d6a48df
TV
47082019-06-19 Tom de Vries <tdevries@suse.de>
4709
4710 * debug.h (debug_write): Change return type to ssize_t.
4711 * debug.c (debug_write): Same.
4712
73cc7272
TT
47132019-06-14 Tom Tromey <tom@tromey.com>
4714
4715 * configure.ac: Use new path to gnulib.
4716 * configure: Rebuild.
4717 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4718 to gnulib.
4719
08f10e02
TT
47202019-06-11 Tom Tromey <tom@tromey.com>
4721
4722 * Makefile.in (SFILES): Add alloc.c.
4723 (OBS): Add alloc.o.
4724 (IPA_OBJS): Add alloc-ipa.o.
4725 (alloc-ipa.o): New target.
4726 (%.o: ../%.c): New pattern rule.
4727
422186a9
TT
47282019-06-10 Tom Tromey <tromey@adacore.com>
4729
4730 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4731 end warning with a newline.
4732 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4733 newline.
4734 * thread-db.c (attach_thread): Don't end warning with a newline.
4735 (thread_db_notice_clone): Likewise.
4736 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4737 newline.
4738 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4739 end warning with a newline.
4740
b02f78f9
PA
47412019-06-04 Pedro Alves <palves@redhat.com>
4742
4743 * server.c (captured_main): Use make_unique_xstrdup.
4744
88ed7edb
TT
47452019-06-02 Tom Tromey <tom@tromey.com>
4746
4747 * gdbreplay.c (fromhex): Remove.
4748 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4749
33a6bc35
TT
47502019-05-29 Tom Tromey <tromey@adacore.com>
4751
4752 * configure: Rebuild.
4753
e90a813d
KB
47542019-05-06 Kevin Buettner <kevinb@redhat.com>
4755
4756 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4757 sign extension code on 32-bit builds.
4758
353ea2d1
EZ
47592019-05-03 Eli Zaretskii <eliz@gnu.org>
4760
4761 * remote-utils.c:
4762 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4763
b494cdff
TT
47642019-04-19 Tom Tromey <tom@tromey.com>
4765
4766 * server.c (struct vstop_notif): Derive from notif_event.
4767 <base>: Remove.
4768 (queue_stop_reply): Update.
4769 (remove_all_on_match_ptid): Change type. Rewrite.
4770 (discard_queued_stop_replies): Rewrite.
4771 (in_queued_stop_replies_ptid): Change type.
4772 (in_queued_stop_replies): Rewrite.
4773 (notif_stop): Update.
4774 (queue_stop_reply_callback): Update.
4775 (captured_main): Don't call initialize_notif.
4776 (push_stop_notification): Update.
4777 * notif.c (notif_write_event, handle_notif_ack)
4778 (notif_event_enque, notif_push): Update.
4779 (notif_event_xfree, initialize_notif): Remove.
4780 * notif.h (struct notif_event): Include <list>, not
4781 "common/queue.h".
4782 (struct notif_server) <queue>: Now a std::list.
4783 (notif_event_p): Remove typedef.
4784 (initialize_notif): Don't declare.
4785 (struct notif_event): Add virtual destructor.
4786
a7e559cc
AH
47872019-04-17 Alan Hayward <alan.hayward@arm.com>
4788
4789 * ax.c (ax_vdebug): Call debug_printf.
4790 * debug.c (debug_write): New function.
4791 * debug.h (debug_write): New declaration.
4792 * linux-low.c (sigchld_handler): Call debug_write.
4793
aeb2e706
AH
47942019-04-17 Alan Hayward <alan.hayward@arm.com>
4795
4796 * debug.c (debug_set_output): New function.
4797 (debug_vprintf): Send output to debug_file.
4798 (debug_flush): Likewise.
4799 * debug.h (debug_set_output): New declaration.
4800 * server.c (handle_monitor_command): Add debug-file option.
4801 (captured_main): Likewise.
4802
c1bc0935
AH
48032019-04-17 Alan Hayward <alan.hayward@arm.com>
4804
4805 * debug.c (remote_debug): Add definition.
4806 * debug.h (remote_debug): Add declaration.
4807 * hostio.c (remote_debug): Remove declaration.
4808 * remote-utils.c (struct ui_file): Likewise.
4809 (remote_debug): Likewise.
4810 * remote-utils.h (remote_debug): Likewise,
4811 * server.c (remote_debug): Remove definition.
4812
3f52fdbc
KB
48132019-04-10 Kevin Buettner <kevinb@redhat.com>
4814
4815 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4816 when using a 64-bit gdbserver.
4817
b0319eaa
TT
48182019-04-09 Tom Tromey <tromey@adacore.com>
4819
4820 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4821
eedc3f4f
TT
48222019-04-08 Tom Tromey <tom@tromey.com>
4823
4824 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4825 throw.
4826 (linux_resume_one_lwp): Likewise.
4827
230d2906
TT
48282019-04-08 Tom Tromey <tom@tromey.com>
4829
4830 * gdbreplay.c: Update.
4831 * linux-low.c: Update.
4832 * server.c: Update.
4833
a70b8144
TT
48342019-04-08 Tom Tromey <tom@tromey.com>
4835
4836 * server.c: Use C++ exception handling.
4837 * linux-low.c: Use C++ exception handling.
4838 * gdbreplay.c: Use C++ exception handling.
4839
3d6e9d23
TT
48402019-04-08 Tom Tromey <tom@tromey.com>
4841
4842 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4843 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4844 (captured_main, main): Update.
4845 * gdbreplay.c (main): Update.
4846
0570503d
PFC
48472019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4848
4849 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4850 value in argument pointer, return 1 if the entry is found and 0
4851 otherwise. Move comment.
4852 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4853 * linux-low.h (linux_get_auxv): Declare.
4854 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4855
227a9e65
TT
48562019-04-05 Tom Tromey <tromey@adacore.com>
4857
4858 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4859 variables.
4860
69f4c9cc
AH
48612019-03-28 Alan Hayward <alan.hayward@arm.com>
4862
4863 * linux-low.c (AT_HWCAP2): Add define if not already included.
4864
974c89e0
AH
48652019-03-26 Alan Hayward <alan.hayward@arm.com>
4866
4867 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4868 (aarch64_arch_setup): Call linux_get_hwcap.
4869 * linux-arm-low.c (arm_get_hwcap): Remove function.
4870 (arm_read_description): Call linux_get_hwcap.
4871 * linux-low.c (linux_get_auxv): New function.
4872 (linux_get_hwcap): Likewise.
4873 (linux_get_hwcap2): Likewise.
4874 * linux-low.h (linux_get_hwcap): New declaration.
4875 (linux_get_hwcap2): Likewise.
4876 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4877 (ppc_arch_setup): Call linux_get_hwcap.
4878 * linux-s390-low.c (s390_get_hwcap): Remove function.
4879 (s390_arch_setup): Call linux_get_hwcap.
4880
1ef53e6b
AH
48812019-03-22 Alan Hayward <alan.hayward@arm.com>
4882 Jiong Wang <jiong.wang@arm.com>
4883
4884 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4885 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4886 to fail.
4887 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4888
ee4fbcfa
AH
48892019-03-22 Alan Hayward <alan.hayward@arm.com>
4890 Jiong Wang <jiong.wang@arm.com>
4891
4892 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4893 (aarch64_get_hwcap): New function.
4894 (aarch64_arch_setup): Read APIA hwcap.
4895
6dc0ebde
AH
48962019-03-22 Alan Hayward <alan.hayward@arm.com>
4897 Jiong Wang <jiong.wang@arm.com>
4898
4899 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4900 (initialize_low_tracepoint): Likewise.
4901 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4902 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4903 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4904 (aarch64_linux_read_description): Likewise.
4905 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4906
1163a4b7
JB
49072019-03-12 John Baldwin <jhb@FreeBSD.org>
4908
4909 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4910 i386_create_target_description for 'segments' parameter.
4911 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4912 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4913 * win32-i386-low.c (i386_arch_setup): Likewise.
4914
d3a70e03
TT
49152019-03-12 Tom Tromey <tromey@adacore.com>
4916
4917 * linux-low.c (iterate_over_lwps): Update.
4918
37991b4f
TT
49192019-03-06 Tom Tromey <tom@tromey.com>
4920
4921 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4922 (captured_main): Use SCOPE_EXIT.
4923
45950eb6
SDJ
49242019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4925
4926 * configure.srv: Use '$enable_unittest' instead of '$development'
4927 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4928 case.
4929
43ac54fc
TT
49302019-02-27 Tom Tromey <tromey@adacore.com>
4931
4932 * gdbreplay.c (logchar): Handle \r\n.
4933
df0da8a2
AH
49342019-02-07 Alan Hayward <alan.hayward@arm.com>
4935
4936 * linux-low.c (linux_attach): Add process before lwp.
4937 * server.c (attach_inferior): Check if already attached.
4938
1a5c2598
TT
49392019-02-07 Tom Tromey <tom@tromey.com>
4940
4941 * x86-tdesc.h: Rename include guard.
4942 * x86-low.h: Add include guard.
4943 * wincecompat.h: Rename include guard.
4944 * win32-low.h: Add include guard.
4945 * utils.h: Rename include guard.
4946 * tracepoint.h: Rename include guard.
4947 * tdesc.h: Rename include guard.
4948 * target.h: Rename include guard.
4949 * server.h: Rename include guard.
4950 * remote-utils.h: Rename include guard.
4951 * regcache.h: Rename include guard.
4952 * nto-low.h: Rename include guard.
4953 * notif.h: Add include guard.
4954 * mem-break.h: Rename include guard.
4955 * lynx-low.h: Add include guard.
4956 * linux-x86-tdesc.h: Add include guard.
4957 * linux-s390-tdesc.h: Add include guard.
4958 * linux-ppc-tdesc-init.h: Add include guard.
4959 * linux-low.h: Add include guard.
4960 * linux-aarch64-tdesc.h: Add include guard.
4961 * linux-aarch32-low.h: Add include guard.
4962 * inferiors.h: Rename include guard.
4963 * i387-fp.h: Rename include guard.
4964 * hostio.h: Rename include guard.
4965 * gdbthread.h: Rename include guard.
4966 * gdb_proc_service.h: Rename include guard.
4967 * event-loop.h: Rename include guard.
4968 * dll.h: Rename include guard.
4969 * debug.h: Rename include guard.
4970 * ax.h: Rename include guard.
4971
956cc47c
SN
49722018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4973
4974 PR gdb/23985
4975 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4976 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4977
a0707f3c
TT
49782019-01-25 Tom Tromey <tom@tromey.com>
4979
4980 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4981
0747795c
TT
49822019-01-25 Tom Tromey <tom@tromey.com>
4983
4984 * win32-low.c: Fix common/ includes.
4985 * win32-i386-low.c: Fix common/ includes.
4986 * tracepoint.c: Fix common/ includes.
4987 * thread-db.c: Fix common/ includes.
4988 * target.h: Fix common/ includes.
4989 * symbol.c: Fix common/ includes.
4990 * spu-low.c: Fix common/ includes.
4991 * server.h: Fix common/ includes.
4992 * server.c: Fix common/ includes.
4993 * remote-utils.c: Fix common/ includes.
4994 * regcache.h: Fix common/ includes.
4995 * regcache.c: Fix common/ includes.
4996 * nto-x86-low.c: Fix common/ includes.
4997 * notif.h: Fix common/ includes.
4998 * mem-break.h: Fix common/ includes.
4999 * lynx-low.c: Fix common/ includes.
5000 * lynx-i386-low.c: Fix common/ includes.
5001 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5002 * linux-x86-low.c: Fix common/ includes.
5003 * linux-low.c: Fix common/ includes.
5004 * inferiors.h: Fix common/ includes.
5005 * i387-fp.c: Fix common/ includes.
5006 * hostio.c: Fix common/ includes.
5007 * hostio-errno.c: Fix common/ includes.
5008 * gdbthread.h: Fix common/ includes.
5009 * gdbreplay.c: Fix common/ includes.
5010 * fork-child.c: Fix common/ includes.
5011 * event-loop.c: Fix common/ includes.
5012 * ax.c:
5013 (enum gdb_agent_op): Fix common/ includes.
5014
be6d4f74
TT
50152019-01-21 Tom Tromey <tom@tromey.com>
5016
5017 * tracepoint.c: Fix includes.
5018 * remote-utils.c: Fix includes.
5019 * linux-x86-low.c: Fix includes.
5020
66d91b39
JB
50212019-01-01 Joel Brobecker <brobecker@adacore.com>
5022
5023 * gdbreplay.c (gdbreplay_version): Update copyright year in
5024 version message.
5025 * server.c (gdbserver_version): Likewise.
5026
754e3168
AH
50272018-12-05 Alan Hayward <alan.hayward@arm.com>
5028
5029 * linux-low.c (add_lwp): Switch ordering.
5030
d105de22
TT
50312018-11-29 Tom Tromey <tom@tromey.com>
5032
5033 * win32-low.c (win32_join): Take pid, not process.
5034 * target.h (struct target_ops) <join>: Change argument type.
5035 (join_inferior): Change argument name.
5036 * spu-low.c (spu_join): Take pid, not process.
5037 * server.c (handle_detach): Preserve pid before destroying
5038 process.
5039 * lynx-low.c (lynx_join): Take pid, not process.
5040 * linux-low.c (linux_join): Take pid, not process.
5041
50138245
AH
50422018-11-23 Alan Hayward <alan.hayward@arm.com>
5043
5044 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5045 (aarch64_cannot_fetch_register): Likewise.
5046 (struct linux_target_ops): Update references.
5047
64f57f3d
PFC
50482018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5049
5050 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5051
8d619c01
EBM
50522018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5053
5054 * configure.srv (ipa_ppc_linux_regobj): Add
5055 powerpc-isa207-htm-vsx32l-ipa.o and
5056 powerpc-isa207-htm-vsx64l-ipa.o.
5057 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5058 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5059 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5060 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5061 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5062 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5063 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5064 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5065 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5066 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5067 (init_registers_powerpc_isa207_htm_vsx32l)
5068 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5069 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5070 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5071 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5072 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5073 (ppc_store_tm_ctarregset): New functions.
5074 (ppc_regsets): Add entries for HTM regsets.
5075 (ppc_arch_setup): Set htm in features struct when needed. Set
5076 sizes for the HTM regsets.
5077 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5078 (initialize_low_arch): Call
5079 init_registers_powerpc_isa207_htm_vsx32l and
5080 init_registers_powerpc_isa207_htm_vsx64l.
5081 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5082 PPC_TDESC_ISA207_HTM_VSX.
5083 (initialize_low_tracepoint): Call
5084 init_registers_powerpc_isa207_htm_vsx32l and
5085 init_registers_powerpc_isa207_htm_vsx64l.
5086
232bfb86
EBM
50872018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5088
5089 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5090 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5091 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5092 (ppc_store_pmuregset): New functions.
5093 (ppc_regsets): Add entries for ebb and pmu regsets.
5094 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5095 pmu regsets are available. Set sizes for these regsets.
5096
f2cf6173
EBM
50972018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5098
5099 * configure.srv (ipa_ppc_linux_regobj): Add
5100 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5101 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5102 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5103 rs6000/powerpc-isa207-vsx32l.xml, and
5104 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5105 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5106 <PPC_TDESC_ISA207_VSX>: New enum value.
5107 (init_registers_powerpc_isa207_vsx32l): Declare.
5108 (init_registers_powerpc_isa207_vsx64l): Declare.
5109 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5110 (ppc_store_tarregset): New function.
5111 (ppc_regsets): Add entry for the TAR regset.
5112 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5113 size for the TAR regsets.
5114 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5115 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5116 and init_registers_powerpc_isa207_vsx64l.
5117 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5118 (initialize_low_tracepoint): Call
5119 init_registers_powerpc_isa207_vsx32l and
5120 init_registers_powerpc_isa207_vsx64l.
5121
7ca18ed6
EBM
51222018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5123 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5124
5125 * configure.srv (ipa_ppc_linux_regobj): Add
5126 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5127 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5128 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5129 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5130 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5131 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5132 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5133 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5134 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5135 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5136 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5137 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5138 (ppc_hwcap): Add comment.
5139 (ppc_hwcap2): New global.
5140 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5141 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5142 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5143 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5144 when needed. Set sizes for the the DSCR and PPR regsets.
5145 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5146 (initialize_low_arch): Call
5147 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5148 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5149 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5150 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5151 (initialize_low_tracepoint): Call
5152 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5153 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5154
5c849b22
PFC
51552018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5156
5157 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5158
8ecfd7bd
SDJ
51592018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5160 Simon Marchi <simark@simark.ca>
5161
5162 * acinclude.m4: Include "../selftest.m4".
5163 * configure: Regenerate.
5164 * configure.ac: Use "GDB_AC_SELFTEST".
5165 * configure.srv: Use "$enable_unittests" instead of
5166 "$development" when checking whether unit tests have been
5167 enabled.
5168 * server.c (captured_main): Update message informing that
5169 selftests have been disabled.
5170
96643e35
TT
51712018-10-04 Tom Tromey <tom@tromey.com>
5172
5173 * configure: Rebuild.
5174
da4ae14a
TT
51752018-10-04 Tom Tromey <tom@tromey.com>
5176
5177 * server.c (handle_status): Rename inner "thread".
5178 (process_serial_event): Declare "res" in 'm' case.
5179 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5180 (iterate_over_lwps): Rename inner "thread".
5181 (linux_qxfer_libraries_svr4): Rename inner "len".
5182 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5183
7c619dbd
GB
51842018-10-01 Gary Benson <gbenson@redhat.com>
5185
5186 * gdb_proc_service.h: Moved common code to
5187 common/gdb_proc_service.h.
5188
3795e814
GB
51892018-10-01 Gary Benson <gbenson@redhat.com>
5190
5191 * gdb_proc_service.h: Synchronize comments and whitespace with
5192 GDB's version of this file.
5193
49b036f1
TT
51942018-09-25 Tom Tromey <tom@tromey.com>
5195
5196 * configure: Rebuild.
5197 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5198
8ff03f0b
SM
51992018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5200
5201 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5202 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5203 ($(IPA_LIB)): Sort IPA_OBJS.
5204
a1cd91dc
SM
52052018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5206
5207 * Makefile.in: Remove references to $(ADD_DEPS).
5208
752312ba
TT
52092018-09-16 Tom Tromey <tom@tromey.com>
5210
5211 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5212 variables.
5213 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5214 variables.
5215
f1628857
TT
52162018-09-05 Tom Tromey <tom@tromey.com>
5217
5218 * configure: Rebuild.
5219
ad202fcc
SM
52202018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5221
5222 PR build/23399
5223 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5224
d3d8724a
TT
52252018-08-27 Tom Tromey <tom@tromey.com>
5226
5227 PR build/23087:
5228 * configure: Rebuild.
5229
b4f183d2
TT
52302018-08-27 Tom Tromey <tom@tromey.com>
5231
5232 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5233 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5234 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5235 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5236 (s390x_emit_stack_adjust): Add casts to unsigned char.
5237
4e2aa472
SM
52382018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5239
5240 PR gdb/23374
5241 PR gdb/23375
5242 * server.h (struct client_state) <disable_randomization>:
5243 Initialize to 1.
5244
cf4088a9
SM
52452018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5246
5247 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5248 variable.
5249 (mips_supply_ptrace_register): Likewise.
5250
a0de763e
TT
52512018-07-22 Tom Tromey <tom@tromey.com>
5252
5253 * configure: Rebuild.
5254
b0a7723d
TT
52552018-07-22 Tom Tromey <tom@tromey.com>
5256
5257 * win32-low.c (win32_create_inferior): Remove unused variables.
5258 * gdbreplay.c (remote_open): Remove unused variable.
5259 * remote-utils.c (remote_prepare): Remove unused variable.
5260 * x86-tdesc.h (X86_TDESC_H): Define.
5261 (amd64_expedite_regs): Define conditionally.
5262 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5263 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5264 * remote-utils.c (readchar): Remove unused variable.
5265
a780ef4f
PA
52662018-07-13 Pedro Alves <palves@redhat.com>
5267
5268 * linux-low.c (linux_kill): Change parameter to process_info
5269 pointer instead of pid. Adjust.
5270 * lynx-low.c (lynx_kill): Likewise.
5271 * nto-low.c (nto_kill): Likewise.
5272 * spu-low.c (spu_kill): Likewise.
5273 * win32-low.c (win32_kill): Likewise.
5274 * server.c (handle_v_kill, kill_inferior_callback)
5275 (detach_or_kill_for_exit): Adjust.
5276 * target.c (kill_inferior): Change parameter to process_info
5277 pointer instead of pid. Adjust.
5278 * target.h (struct target_ops) <kill>: Change parameter to
5279 process_info pointer instead of pid. Adjust all implementations
5280 and callers.
5281 (kill_inferior): Likewise.
5282
ef2ddb33
PA
52832018-07-13 Pedro Alves <palves@redhat.com>
5284
5285 * linux-low.c (linux_detach, linux_join): Change parameter to
5286 process_info pointer instead of pid. Adjust.
5287 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5288 * nto-low.c (nto_detach): Likewise.
5289 * spu-low.c (spu_detach, spu_join): Likewise.
5290 * win32-low.c (win32_detach, win32_join): Likewise.
5291 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5292 * target.h (struct target_ops) <detach, join>: Change parameter to
5293 process_info pointer instead of pid. Adjust all implementations
5294 and callers.
5295 (detach_inferior, join_inferior): Rename 'pid' parameter to
5296 'proc'.
5297
c7ab0aef
SDJ
52982018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5299 Jan Kratochvil <jan.kratochvil@redhat.com>
5300 Paul Fertser <fercerpav@gmail.com>
5301 Tsutomu Seki <sekiriki@gmail.com>
5302
5303 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5304 (OBS): Add 'common/netstuff.o'.
5305 (GDBREPLAY_OBS): Likewise.
5306 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5307 (remote_open): Implement support for IPv6
5308 connections.
5309 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5310 and 'wspiapi.h'.
5311 (handle_accept_event): Accept connections from IPv6 sources.
5312 (remote_prepare): Handle IPv6-style hostnames; implement
5313 support for IPv6 connections.
5314 (remote_open): Implement support for printing connections from
5315 IPv6 sources.
5316
31445d10
PA
53172018-07-11 Pedro Alves <palves@redhat.com>
5318
5319 PR gdb/23377
5320 * mem-break.c (any_persistent_commands): Add process_info
5321 parameter and use it instead of relying on the current process.
5322 Change return type to bool.
5323 * mem-break.h (any_persistent_commands): Add process_info
5324 parameter and change return type to bool.
5325 * server.c (handle_detach): Remove require_running_or_return call.
5326 Look up the process_info for the process we're about to detach.
5327 If not found, return back error to GDB. Adjust
5328 any_persistent_commands call to pass down a process pointer.
5329
cb197132
PA
53302018-07-11 Pedro Alves <palves@redhat.com>
5331
5332 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5333 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5334 instead of collect_register_by_name.
5335 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5336 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5337
1b919490
VB
53382018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5339 Pedro Alves <palves@redhat.com>
5340
5341 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5342
d7e15655
TT
53432018-07-03 Tom Tromey <tom@tromey.com>
5344
5345 * linux-low.c: Update.
5346 * lynx-low.c: Update.
5347 * mem-break.c: Update.
5348 * nto-low.c: Update.
5349 * remote-utils.c: Update.
5350 * server.c: Update.
5351 * spu-low.c: Update.
5352 * target.c: Update.
5353 * win32-low.c: Update.
5354
26a57c92
TT
53552018-07-03 Tom Tromey <tom@tromey.com>
5356
5357 * server.c: Update.
5358
0e998d96
TT
53592018-07-03 Tom Tromey <tom@tromey.com>
5360
5361 * linux-low.c: Update.
5362
cc6bcb54
TT
53632018-07-03 Tom Tromey <tom@tromey.com>
5364
5365 * target.c: Update.
5366
e38504b3
TT
53672018-07-03 Tom Tromey <tom@tromey.com>
5368
5369 * linux-low.c: Update.
5370 * linux-mips-low.c: Update.
5371 * lynx-low.c: Update.
5372 * nto-low.c: Update.
5373 * remote-utils.c: Update.
5374 * server.c: Update.
5375 * spu-low.c: Update.
5376 * target.c: Update.
5377 * thread-db.c: Update.
5378
e99b03dc
TT
53792018-07-03 Tom Tromey <tom@tromey.com>
5380
5381 * linux-low.c: Update.
5382 * linux-mips-low.c: Update.
5383 * lynx-low.c: Update.
5384 * mem-break.c: Update.
5385 * nto-low.c: Update.
5386 * remote-utils.c: Update.
5387 * server.c: Update.
5388 * spu-low.c: Update.
5389 * target.c: Update.
5390 * tracepoint.c: Update.
5391
f2907e49
TT
53922018-07-03 Tom Tromey <tom@tromey.com>
5393
5394 * linux-low.c: Update.
5395 * linux-ppc-low.c: Update.
5396 * linux-x86-low.c: Update.
5397 * proc-service.c: Update.
5398 * server.c: Update.
5399 * spu-low.c: Update.
5400 * thread-db.c: Update.
5401 * win32-low.c: Update.
5402
fd79271b
TT
54032018-07-03 Tom Tromey <tom@tromey.com>
5404
5405 * linux-low.c: Update.
5406 * lynx-low.c: Update.
5407 * nto-low.c: Update.
5408 * remote-utils.c: Update.
5409 * spu-low.c: Update.
5410 * thread-db.c: Update.
5411 * win32-low.c: Update.
5412
c0867626
SDJ
54132018-06-29 Joel Brobecker <brobecker@adacore.com>
5414
5415 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5416 parameter in call to 'amd64_create_target_description'.
5417
2512d7ef
JK
54182018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5419
5420 * x86-tdesc.h: Remove executable permission flag.
5421
d0ac1c44
SM
54222018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5423
5424 * configure.ac: Remove AC_PREREQ, add missing quoting.
5425 * configure: Re-generate.
5426 * config.in: Re-generate.
5427 * aclocal.m4: Re-generate.
5428
c4eb05ff
SM
54292018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5430
5431 * tracepoint.h (current_traceframe): Remove declaration.
5432
02895270
AH
54332018-06-18 Alan Hayward <alan.hayward@arm.com>
5434
5435 * linux-aarch64-low.c (is_sve_tdesc): New function.
5436 (aarch64_sve_regs_copy_to_regcache): Likewise.
5437 (aarch64_sve_regs_copy_from_regcache): Likewise.
5438 (aarch64_regs_info): Add SVE checks.
5439 (initialize_low_arch): Initialize SVE.
5440
e9902bfc
AH
54412018-06-18 Alan Hayward <alan.hayward@arm.com>
5442
5443 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5444
fefa175e
AH
54452018-06-11 Alan Hayward <alan.hayward@arm.com>
5446
5447 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5448 (initialize_low_tracepoint): Likewise
5449 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5450 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5451 param.
5452 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5453 checks.
5454 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5455
b91ad3ff
AH
54562018-06-11 Alan Hayward <alan.hayward@arm.com>
5457
5458 * server.h (PBUFSIZ): Increase size
5459
f868386e
AH
54602018-06-11 Alan Hayward <alan.hayward@arm.com>
5461
5462 * regcache.c (regcache::raw_compare): New function.
5463 * regcache.h (regcache::raw_compare): New declaration.
5464
9c861883
AH
54652018-06-11 Alan Hayward <alan.hayward@arm.com>
5466
5467 * regcache.c (new_register_cache): Use new.
5468 (free_register_cache): Use delete.
5469 (register_data): Use const.
5470 (supply_register): Move body inside regcache.
5471 (regcache::raw_supply): New override function.
5472 (collect_register): Move body inside regcache.
5473 (regcache::raw_collect): New override function.
5474 (regcache::get_register_status): New override function.
5475 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5476
40591844
TT
54772018-06-09 Tom Tromey <tom@tromey.com>
5478
5479 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5480 declare queue.
5481 (event_queue): Use std::queue.
5482 (gdb_event_xfree): Remove.
5483 (initialize_event_loop, process_event, wait_for_event): Update.
5484
6341380d
SC
54852018-06-08 Stan Cox <scox@redhat.com>
5486
5487 * win32-low.c (win32_create_inferior): last_ptid and last_status
5488 moved to client_state.
5489
03349c93
PA
54902018-06-08 Pedro Alves <palves@redhat.com>
5491
5492 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5493 common/common-exceptions.o, common/common-utils.o,
5494 common/errors.o, common/print-utils.o and utils.o.
5495 * gdbreplay.c: Include "common-defs.h" instead of the two
5496 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5497 string.h or alloca.h.
5498 (perror_with_name): Delete.
5499 (remote_open): Use xstrdup instead of strdup.
5500 (main): Rename to ...
5501 (captured_main): ... this.
5502 (main): New.
5503
8dcc53b3
TT
55042018-06-08 Tom Tromey <tom@tromey.com>
5505
5506 * linux-low.c (linux_low_read_btrace): Update.
5507
c12a5089
SC
55082018-06-04 Stan Cox <scox@redhat.com>
5509
5510 * server.h (struct client_state): New.
5511 * server.c (cont_thread, general_thread, multi_process)
5512 (report_fork_events, report_vfork_events, report_exec_events)
5513 (report_thread_events, swbreak_feature, hwbreak_feature)
5514 (vCont_supported, disable_randomization, pass_signals)
5515 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5516 Moved to client_state.
5517 * remote-utils.c (remote_debug, noack_mode)
5518 (transport_is_reliable): Moved to client_state.
5519 * tracepoint.c (current_traceframe): Moved to client_state.
5520
5521 Update all callers.
5522 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5523 linux-low.c, remote-utils.h, target.c: Use client_state.
5524
122394f1
AH
55252018-05-31 Alan Hayward <alan.hayward@arm.com>
5526
5527 * configure.srv: Add new c/h file.
5528
95228a0d
AH
55292018-05-31 Alan Hayward <alan.hayward@arm.com>
5530
5531 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5532 null VQ.
5533
d8dab6c3
MR
55342018-05-25 Maciej W. Rozycki <macro@mips.com>
5535
5536 * gdb.arch/mips-fpregset-core.exp: New test.
5537 * gdb.arch/mips-fpregset-core.c: New test source.
5538
81e25b7c
EK
55392018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5540
5541 PR server/23198
5542 * hostio.c (require_int): Do not report overflow for integers
5543 between 0xfffffff and 0x7fffffff.
5544
7e947ad3
MR
55452018-05-22 Maciej W. Rozycki <macro@mips.com>
5546
5547 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5548 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5549 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5550 functions.
5551 (the_low_target): Wire them.
5552
1d75a658
PFC
55532018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5554
5555 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5556 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5557 mode. Call collect_register_by_name with vscr using
5558 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5559 (ppc_store_vrregset): Add and set vscr_offset variable as in
5560 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5561 vscr_offset.
5562
d078308a
PFC
55632018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5564
5565 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5566 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5567 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5568
7273b5fc
PFC
55692018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5570
5571 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5572 (ppc_store_vsxregset): Likewise.
5573 (ppc_fill_vrregset): Likewise.
5574 (ppc_store_vrregset): Likewise.
5575 (ppc_fill_evrregset): Likewise.
5576 (ppc_store_evrregset): Likewise.
5577 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5578 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5579 needed.
5580
2e077f5e
PFC
55812018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5582
5583 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5584 wordsize of the inferior. Call ppc_linux_target_wordsize.
5585
bd64614e
PFC
55862018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5587
5588 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5589 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5590 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5591 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5592 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5593 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5594 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5595 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5596 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5597 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5598 (tdesc_powerpc_e500l): Remove.
5599 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5600 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5601 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5602 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5603 linux-ppc-tdesc.h.
5604 (ppc_arch_setup): Remove target description matching code. Fill a
5605 ppc_linux_features struct and call ppc_linux_match_description
5606 with it.
5607
75d74cca
MR
56082018-05-22 Maciej W. Rozycki <macro@mips.com>
5609
5610 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5611 width of the requested register exceeds the width of the
5612 `ptrace' data type.
5613 (mips_cannot_store_register): Likewise.
5614
e4439e43
MR
56152018-05-21 Maciej W. Rozycki <macro@mips.com>
5616
5617 * linux-mips-low.c (mips_fetch_register): New function. Update
5618 preceding comment.
5619 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5620 (the_low_target): Wire `mips_fetch_register'.
5621
55271bf9
JB
56222018-05-10 Joel Brobecker <brobecker@adacore.com>
5623
5624 * lynx-i386-low.c (LYNXOS_178): New macro.
5625 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5626 the layout on LynxOS-178.
5627 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5628 handle floating point registers that are not supported by
5629 LynxOS-178.
5630
1a34f210
TT
56312018-05-10 Tom Tromey <tom@tromey.com>
5632
5633 * configure: Rebuild.
5634
190852c8
JB
56352018-05-10 Joel Brobecker <brobecker@adacore.com>
5636
5637 PR server/23158:
5638 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5639 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5640 Use it to set the expedite_regs field in the given tdesc.
5641 * x86-tdesc.h: New file.
5642 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5643 Adjust following the addition of the new expedite_regs parameter
5644 to init_target_desc.
5645 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5646 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5647 (i386_linux_read_description, amd64_linux_read_description):
5648 Adjust following the addition of the new expedite_regs parameter
5649 to init_target_desc.
5650 * lynx-i386-low.c: #include "x86-tdesc.h".
5651 (lynx_i386_arch_setup): Adjust following the addition of the new
5652 expedite_regs parameter to init_target_desc.
5653 * nto-x86-low.c: #include "x86-tdesc.h".
5654 (nto_x86_arch_setup): Adjust following the addition of the new
5655 expedite_regs parameter to init_target_desc.
5656 * win32-i386-low.c: #include "x86-tdesc.h".
5657 (i386_arch_setup): Adjust following the addition of the new
5658 expedite_regs parameter to init_target_desc.
5659
7dbac825
JB
56602018-05-10 Joel Brobecker <brobecker@adacore.com>
5661
5662 PR server/23158:
5663 * win32-low.c (win32_create_inferior): Add call to my_wait
5664 setting last_status global.
5665
906994d9
JB
56662018-05-10 Joel Brobecker <brobecker@adacore.com>
5667
5668 PR server/23158:
5669 * win32-low.c (create_process): Only call gdb_tilde_expand if
5670 inferior_cwd is not NULL.
5671
8ee22052
AB
56722018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5673
5674 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5675 registers to the cache if their values have changed.
5676 (i387_xsave_to_cache): Provide default values for x87 control
5677 registers when these features are available, but disabled.
5678 * regcache.c (supply_register_by_name_zeroed): New function.
5679 * regcache.h (supply_register_by_name_zeroed): Declare new
5680 function.
5681
aff689d3
TT
56822018-05-07 Tom Tromey <tom@tromey.com>
5683
5684 * configure: Rebuild.
5685
85e26832
TT
56862018-05-04 Tom Tromey <tom@tromey.com>
5687
5688 * configure: Rebuild.
5689
a3b60e45
JK
56902018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5691 Pedro Alves <palves@redhat.com>
5692
5693 * linux-aarch64-low.c (aarch64_stopped_data_address):
5694 Likewise.
5695
632e107b
TT
56962018-04-27 Tom Tromey <tom@tromey.com>
5697
5698 * configure: Rebuild.
5699
458412c3
TT
57002018-04-23 Tom Tromey <tom@tromey.com>
5701
5702 * configure: Rebuild.
5703
f31c089e
SM
57042018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5705
5706 * Makefile.in (depcomp): Add "..".
5707 (all_deps_files): New and use it.
5708
b319b098
AH
57092018-04-18 Alan Hayward <alan.hayward@arm.com>
5710
5711 * configure.srv (aarch64*-*-linux*): Don't include xml.
5712 (i[34567]86-*-cygwin*): Likewise.
5713 (i[34567]86-*-linux*): Likewise.
5714 (i[34567]86-*-lynxos*): Likewise.
5715 (i[34567]86-*-mingw32ce*): Likewise.
5716 (i[34567]86-*-mingw*): Likewise.
5717 (i[34567]86-*-nto*): Likewise.
5718 (tic6x-*-uclinux): Likewise.
5719 (x86_64-*-linux*): Likewise.
5720 (x86_64-*-mingw*): Likewise.
5721 (x86_64-*-cygwin*): Likewise.
5722
3b74854b
AH
57232018-04-18 Alan Hayward <alan.hayward@arm.com>
5724
5725 * tdesc.c: Remove xml parameter.
5726
e98577a9
AH
57272018-04-18 Alan Hayward <alan.hayward@arm.com>
5728
5729 * server.c (get_features_xml): Remove cast.
5730 * tdesc.c (void target_desc::accept): Fill in function.
5731 (tdesc_get_features_xml): Remove old xml creation.
5732 (print_xml_feature::visit_pre): Add xml vistor.
5733 * tdesc.h (struct target_desc): Make xmltarget mutable.
5734 (tdesc_get_features_xml): Remove declaration.
5735
d278f585
AH
57362018-04-18 Alan Hayward <alan.hayward@arm.com>
5737
5738 * tdesc.c (tdesc_architecture_name): Add new function.
5739 (tdesc_osabi_name): Likewise.
5740 (tdesc_get_features_xml): Use new functions.
5741
eee8a18d
AH
57422018-04-18 Alan Hayward <alan.hayward@arm.com>
5743
5744 * tdesc.c (tdesc_create_flags): Remove.
5745 (tdesc_add_flag): Likewise.
5746 (tdesc_named_type): Likewise.
5747 (tdesc_create_union): Likewise.
5748 (tdesc_create_struct): Likewise.
5749 (tdesc_create_vector): Likewise.
5750 (tdesc_add_bitfield): Likewise.
5751 (tdesc_add_field): Likewise.
5752 (tdesc_set_struct_size): Likewise.
5753
82ec9bc7
AH
57542018-04-18 Alan Hayward <alan.hayward@arm.com>
5755
5756 * tdesc.c (~target_desc): Remove implictly deleted items.
5757 (init_target_desc): Iterate all features.
5758 (tdesc_get_features_xml): Use vector.
5759 (tdesc_create_feature): Create feature.
5760 * tdesc.h (tdesc_feature) Remove
5761 (target_desc): Add features.
5762
ea3e7d71
AH
57632018-04-18 Alan Hayward <alan.hayward@arm.com>
5764
5765 * Makefile.in: Add common/tdesc.c
5766 * tdesc.c (init_target_desc): init all reg_defs from register
5767 vector.
5768 (tdesc_create_reg): Create tdesc_reg.
5769 * tdesc.h (tdesc_feature): Add register vector.
5770
17d08cd4
SM
57712018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5772
5773 * tdesc.h (struct target_desc) <features>: Change type to
5774 std::vector<std::string>.
5775 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5776 changes.
5777 (tdesc_get_features_xml): Likewise.
5778 (tdesc_create_feature): Likewise.
5779
5cd3e386
AH
57802018-03-26 Alan Hayward <alan.hayward@arm.com>
5781
5782 * regcache.c (find_register_by_number): Return a ref.
5783 (find_regno): Use references.
5784 (register_size): Likewise.
5785 (register_data): Likewise.
5786 * tdesc.c (target_desc::~target_desc): Remove free calls.
5787 (target_desc::operator==): Use std::vector compare.
5788 (init_target_desc): Use reference.
5789 (tdesc_create_reg): Use reg constructors.
5790 * tdesc.h (struct target_desc): Replace pointer with object.
5791
dff7492c
AH
57922018-03-23 Alan Hayward <alan.hayward@arm.com>
5793
5794 * regcache.c (find_register_by_number): Make static.
5795 (find_regno): Use find_register_by_number
5796 * regcache.h (struct reg): Remove declaration.
5797
d80e5242
AH
57982018-03-23 Alan Hayward <alan.hayward@arm.com>
5799
5800 * tdesc.c (target_desc::~target_desc): Move to here.
5801 (target_desc::operator==): Likewise.
5802 * tdesc.h (target_desc::~target_desc): Move from here.
5803 (target_desc::operator==): Likewise.
5804
f69c5afb
AA
58052018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5806
5807 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5808
ce29f843
AA
58092018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5810
5811 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5812 S390_TDESC_GS.
5813 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5814 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5815 and init_registers_s390_gs_linux64.
5816
c49bd90b
AA
58172018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5818
5819 * linux-s390-low.c (s390_fill_gs): Remove function.
5820 (s390_fill_gsbc): Remove function.
5821 (s390_regsets): Set fill functions for the guarded storage regsets
5822 to NULL.
5823
7edb9bd3
AA
58242018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5825
5826 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5827 the word size. Add comment.
5828 (s390_get_wordsize): New function.
5829 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5830 pswm with it. Instead, use s390_get_wordsize to determine the
5831 word size first and derive the correct tdesc from that directly.
5832
39be3c7e
SM
58332018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5834
5835 * Makefile.in: Include silent-rules.mk.
5836 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5837 (COMPILE): Add ECHO_CXX.
5838 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5839 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5840 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5841 (version-generated.c): Add ECHO_GEN.
5842 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5843 (IPAGENT_COMPILE): Add ECHO_CXX.
5844 (%-generated.c): Add ECHO_REGDAT.
5845
3ae9ce5d
TT
58462018-03-14 Tom Tromey <tom@tromey.com>
5847
5848 PR cli/14977:
5849 * ax.c (ax_printf): Special case for NULL.
5850
e6a58aa8
SM
58512018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5852
5853 * linux-low.c (linux_qxfer_libraries_svr4): Use
5854 xml_escape_text_append.
5855
f6e8a41e
SM
58562018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5857
5858 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5859
b9671caf
SM
58602018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5861
5862 * server.c (handle_general_set): Remove unnecessary xstrdup.
5863
e80aaf61
SM
58642018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5865
5866 * server.c (parse_debug_format_options): Adjust to
5867 delim_string_to_char_ptr_vec changes.
5868 * thread-db.c (thread_db_load_search): Adjust to
5869 dirnames_to_char_ptr_vec changes.
5870
b1223e78
MM
58712018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5872
5873 * target.h (target_enable_btrace, target_disable_btrace)
5874 (target_read_btrace, target_read_btrace_conf): Turn macro into
5875 inline function. Throw error if target method is not defined.
5876 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5877 check for btrace target method. Be prepared to handle exceptions
5878 from btrace target methods.
5879
81561546
SDJ
58802018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5881
5882 * server.c (captured_main): Change order of error message printed
5883 when the current working directory cannot be found.
5884
25e3c82c
SDJ
58852018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5886
5887 * server.c: Include "filenames.h" and "pathstuff.h".
5888 (program_name): Delete variable.
5889 (program_path): New anonymous class.
5890 (get_exec_wrapper): Use "program_path" instead of
5891 "program_name".
5892 (handle_v_run): Likewise.
5893 (captured_main): Likewise.
5894 (process_serial_event): Likewise.
5895
b4987c95
SDJ
58962018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5897
5898 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5899 (OBJS): Add "pathstuff.o".
5900 * server.c (current_directory): New global variable.
5901 (captured_main): Initialize "current_directory".
5902
f46cd62a
AH
59032018-02-26 Alan Hayward <alan.hayward@arm.com>
5904
5905 * tdesc.c: Use common/tdesc.h.
5906 * tdesc.h: Likewise.
5907
a543c5ca
AH
59082018-02-20 Alan Hayward <alan.hayward@arm.com>
5909 Simon Marchi <simon.marchi@ericsson.com>
5910
5911 * Makefile.in: Switch order of make rules.
5912
b5884fa7
AH
59132018-02-19 Alan Hayward <alan.hayward@arm.com>
5914
5915 * Makefile.in: Add common directory in build.
5916 * configure.ac: Add common reference.
5917 * configure: Regenerate.
5918
de6242d3
MM
59192018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5920
5921 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5922 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5923 * spu-low.c (spu_target_ops): Likewise.
5924 * win32-low.c (win32_target_ops): Likewise.
5925 * server.c (supported_btrace_packets): Report packets unconditionally.
5926 * target.h (target_ops) <supports_btrace>: Remove.
5927 (target_supports_btrace): Remove.
5928
9ee23a85
MM
59292018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5930
5931 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5932 (handle_btrace_disable): Change return type to void. Use exceptions
5933 to report errors.
5934 (handle_btrace_general_set): Catch exception and copy message to
5935 return message.
5936
8ce47547
TT
59372018-02-08 Tom Tromey <tom@tromey.com>
5938
5939 * linux-low.c (install_software_single_step_breakpoints): Use
5940 make_scoped_restore.
5941 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5942 (do_restore_current_thread_cleanup): Remove.
5943 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5944 declare.
5945
45dd3607
TT
59462018-02-08 Tom Tromey <tom@tromey.com>
5947
5948 * mem-break.c (set_raw_breakpoint_at): Use
5949 gdb::unique_xmalloc_ptr.
5950
e671cd59
PA
59512018-01-30 Pedro Alves <palves@redhat.com>
5952
5953 PR gdb/13211
5954 * target.c (target_terminal::terminal_state): Rename to ...
5955 (target_terminal::m_terminal_state): ... this.
5956
a0aad537
JC
59572018-01-19 James Clarke <jrtc27@jrtc27.com>
5958
5959 * linux-low.c (handle_extended_wait): Surround call to
5960 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5961
4d9b86e1
SM
59622018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5963
5964 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5965 linux_ptrace_attach_fail_reason_string now returning an
5966 std::string.
5967 (linux_attach): Likewise.
5968 * thread-db.c (attach_thread): Likewise.
5969
f517c180
EA
59702018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5971
5972 PR gdb/21559
5973 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5974 checking for fs_base/gs_base fields in struct user_regs_struct.
5975 * configure: Regenerate.
5976
9a70f35c
YQ
59772018-01-16 Yao Qi <yao.qi@linaro.org>
5978
5979 PR gdb/18749
5980 * linux-low.c (fetch_register): Call supply_register instead of
5981 error.
5982
605fd3c6
YQ
59832018-01-08 Yao Qi <yao.qi@linaro.org>
5984 Simon Marchi <simon.marchi@ericsson.com>
5985
5986 * Makefile.in (OBS): Remove selftest.o.
5987 * configure.ac: Set srv_selftest_objs if $development is true.
5988 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5989 * configure: Re-generated.
5990 * server.c (captured_main): Wrap variable selftest_filter with
5991 GDB_SELF_TEST.
5992
2cc05030
SM
59932018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5994
5995 * server.c (parse_debug_format_options): Return std::string.
5996 (handle_monitor_command, captured_main): Adjust.
5997
e379cee6
PA
59982018-01-05 Pedro Alves <palves@redhat.com>
5999
6000 PR gdb/18653
6001 * server.c (captured_main): Pass quiet=false to
6002 save_original_signals_state.
6003
82e1e79a
JB
60042018-01-01 Joel Brobecker <brobecker@adacore.com>
6005
6006 * gdbreplay.c (gdbreplay_version): Update copyright year in
6007 version message.
6008 * server.c (gdbserver_version): Likewise.
6009
8e481c3b
TT
60102017-12-08 Tom Tromey <tom@tromey.com>
6011
6012 * ax.c (ax_printf): Update.
6013
a8806230
YQ
60142017-12-07 Yao Qi <yao.qi@linaro.org>
6015
6016 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6017 aarch64_linux_read_description.
6018 * linux-amd64-ipa.c (idx2mask): New array.
6019 (get_ipa_tdesc): Move idx2mask out.
6020 (initialize_low_tracepoint): Initialize target descriptions.
6021 * linux-i386-ipa.c (idx2mask): New array.
6022 (get_ipa_tdesc): Move idx2mask out.
6023 (initialize_low_tracepoint): Initialize target descriptions.
6024
d4a0e8b5
SM
60252017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6026
6027 * tdesc.c (struct tdesc_type): Change return type.
6028 (tdesc_add_flag): Change parameter type.
6029 (tdesc_add_bitfield): Likewise.
6030 (tdesc_add_field): Likewise.
6031 (tdesc_set_struct_size): Likewise.
6032
798a7429
SM
60332017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6034
6035 * regcache.c (registers_to_string): Remove unused variable.
6036
c0e15c9b
SM
60372017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6038
6039 * inferiors.c (for_each_inferior_with_data): Remove.
6040 * inferiors.h (for_each_inferior_with_data): Remove.
6041 * server.c (handle_qxfer_threads_worker): Change parameter type.
6042 (handle_qxfer_threads_proper): Use for_each_thread.
6043
f0045347
SM
60442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6045
6046 * inferiors.c (for_each_inferior): Remove.
6047 (clear_inferiors): Use for_each_thread.
6048 * inferiors.h (for_each_inferior): Remove.
6049 * linux-low.c (linux_wait_for_event_filtered): Use
6050 for_each_thread.
6051 (linux_stabilize_threads): Likewise.
6052 * regcache.c (regcache_release): Likewise.
6053 * server.c (gdb_wants_all_threads_stopped): Likewise.
6054 (clear_pending_status_callback): Remove.
6055 (handle_status): Use for_each_thread.
6056 (captured_main): Likewise.
6057 * win32-low.c (child_init_thread_list): Likewise.
6058 (win32_clear_inferiors): Likewise.
6059 (fake_breakpoint_event): Likewise.
6060
9521758b
SM
60612017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6062
6063 * inferiors.h (find_inferior): Remove.
6064 * inferiors.c (find_inferior): Remove.
6065
8f86d7aa
SM
60662017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6067
6068 * linux-low.c (resume_status_pending_p): Update comment.
6069 (need_step_over_p): Update comment.
6070
e2b44075
SM
60712017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6072
6073 * linux-low.c (proceed_one_lwp): Return void, change parameter
6074 type.
6075 (unsuspend_and_proceed_one_lwp): Likewise.
6076 (proceed_all_lwps): Use for_each_thread.
6077 (unstop_all_lwps): Likewise.
6078
c80825ff
SM
60792017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6080
6081 * linux-low.c (linux_resume_one_thread): Return void, take
6082 parameter directly.
6083 (linux_resume): Use for_each_thread.
6084
df3e4dbe
SM
60852017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6086
6087 * linux-low.c (send_sigstop_callback): Return void, change
6088 parameter type. Rename to...
6089 (send_sigstop): ... this.
6090 (suspend_and_send_sigstop_callback): Return void, change parameter
6091 type. Rename to...
6092 (suspend_and_send_sigstop): ... this.
6093 (stop_all_lwps): Use for_each_thread.
6094
5a6b0a41
SM
60952017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6096
6097 * linux-low.c (lwp_running): Return bool, remove unused
6098 argument.
6099 (linux_stabilize_threads): Use find_thread.
6100
39a64da5
SM
61012017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6102
6103 * linux-low.c (select_singlestep_lwp_callback): Remove.
6104 (count_events_callback): Remove.
6105 (select_event_lwp_callback): Remove.
6106 (select_event_lwp): Use find_thread/for_each_thread.
6107
a1385b7b
SM
61082017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6109
6110 * linux-low.c (not_stopped_callback): Return bool, take filter
6111 argument directly.
6112 (linux_wait_for_event_filtered): Use find_thread.
6113 (linux_wait_1): Likewise.
6114
454296a2
SM
61152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6116
6117 * linux-low.c (same_lwp): Remove.
6118 (find_lwp_pid): Use find_thread.
6119
6b2a85da
SM
61202017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6121
6122 * linux-low.c (delete_lwp_callback): Remove.
6123 (linux_mourn): Use for_each_thread.
6124
798a38e8
SM
61252017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6126
6127 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6128 args parameter, don't check for pid.
6129 (linux_detach): Use for_each_thread.
6130
e4eb0dec
SM
61312017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6132
6133 * linux-low.c (struct counter): Remove.
6134 (second_thread_of_pid_p): Remove.
6135 (last_thread_of_process_p): Use find_thread.
6136
83e1b6c1
SM
61372017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6138
6139 * inferiors.c (find_inferior_in_random): Remove.
6140 * inferiors.h (find_inferior_in_random): Remove.
6141 * linux-low.c (status_pending_p_callback): Return bool, accept
6142 parameter ptid directly.
6143 (linux_wait_for_event_filtered): Use find_thread_in_random.
6144 (linux_wait_1): Likewise.
6145
8dc7b443
SM
61462017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6147
6148 * inferiors.c (find_inferior_id): Remove.
6149 (find_thread_ptid): Move implemention from find_inferior_id to
6150 here.
6151 * inferiors.h (find_inferior_id): Remove.
6152 * server.c (handle_status): Use find_thread_ptid.
6153 (process_serial_event): Likewise.
6154 * thread-db.c (find_one_thread): Likewise.
6155 (thread_db_thread_handle): Likewise.
6156 * win32-low.c (thread_rec): Likewise.
6157 (child_delete_thread): Likewise.
6158 (win32_thread_alive): Likewise.
6159 (get_child_debug_event): Likewise.
6160
da25033c
SM
61612017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6162
6163 * linux-mips-low.c (update_watch_registers_callback): Return
6164 void, remove pid_p parameter, don't check for pid.
6165 (mips_insert_point, mips_remove_point): Use for_each_thread.
6166
c91bb56b
SM
61672017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6168
6169 * lynx.low (lynx_delete_thread_callback): Remove.
6170 (lynx_mourn): Use for_each_thread.
6171
634a3254
SM
61722017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6173
6174 * regcache.c (regcache_invalidate_one): Remove.
6175 (regcache_invalidate_pid): use for_each_thread.
6176
41272101
TT
61772017-11-26 Tom Tromey <tom@tromey.com>
6178
6179 * linux-low.c (linux_create_inferior): Update.
6180
f5291a6f
UW
61812017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6182
6183 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6184
6654d750
AH
61852017-11-24 Alan Hayward <alan.hayward@arm.com>
6186
6187 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6188 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6189 * linux-aarch64-tdesc-selftest.c: New file.
6190 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6191
61922017-11-24 Alan Hayward <alan.hayward@arm.com>
6193
6194 * configure.srv: Add new file.
6195 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6196 * linux-aarch64-tdesc-selftest.c: New file.
6197 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6198
49bdb7ee
AH
61992017-11-24 Alan Hayward <alan.hayward@arm.com>
6200
6201 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6202 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6203 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6204
d6d7ce56
AH
62052017-11-24 Alan Hayward <alan.hayward@arm.com>
6206
6207 * configure.srv: Add new files.
6208 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6209 aarch64_linux_read_description.
6210 * linux-aarch64-low.c (aarch64_linux_read_description):
6211 Merge with aarch64_arch_setup.
6212 (aarch64_arch_setup): Call aarch64_linux_read_description.
6213 * linux-aarch64-tdesc.c: New file.
6214 * linux-aarch64-tdesc.h: New file.
6215
506fe5f4
YQ
62162017-11-24 Yao Qi <yao.qi@linaro.org>
6217
6218 * configure.srv: Set $srv_regobj for tic6x-linux.
6219 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6220 (tic6x_read_description): Move some code to tic6x_arch_setup.
6221 (tic6x_tdesc_test): New function.
6222 (initialize_low_arch): Call selftests::register_test.
6223
29f9a567
YQ
62242017-11-22 Yao Qi <yao.qi@linaro.org>
6225
6226 * remote-utils.c (prepare_resume_reply): Use memcpy.
6227
578290ec
SM
62282017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6229
6230 * linux-low.c (kill_one_lwp_callback): Return void, take
6231 argument directly, don't filter on pid.
6232 (linux_kill): Use for_each_thread.
6233
eca55aec
SM
62342017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6235
6236 * linux-low.c (need_step_over_p): Return bool, remove dummy
6237 argument.
6238 (linux_resume, proceed_all_lwps): Use find_thread.
6239
25c28b4d
SM
62402017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6241
6242 * linux-low.c (resume_status_pending_p): Return bool, remove
6243 flag_p argument.
6244 (linux_resume): Use find_thread.
6245
5fdda392
SM
62462017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6247
6248 * linux-low.c (struct thread_resume_array): Remove.
6249 (linux_set_resume_request): Return void, take arguments
6250 directly.
6251 (linux_resume): Use for_each_thread.
6252
fcb056a5
SM
62532017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6254
6255 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6256 return bool, remove data argument.
6257 (linux_stabilize_threads): Use find_thread.
6258
139720c5
SM
62592017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6260
6261 * linux-low.c (unsuspend_one_lwp): Remove.
6262 (unsuspend_all_lwps): Use for_each_thread, inline code from
6263 unsuspend_one_lwp.
6264
6d1e5673
SM
62652017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6266
6267 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6268 * linux-low.c (struct iterate_over_lwps_args): Remove.
6269 (iterate_over_lwps_filter): Remove.
6270 (iterate_over_lwps): Use find_thread.
6271
bbf550d5
SM
62722017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6273
6274 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6275 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6276 code from reset_lwp_ptrace_options_callback.
6277
00192f77
SM
62782017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6279
6280 * linux-arm-low.c (struct update_registers_data): Remove.
6281 (update_registers_callback): Return void, take arguments
6282 directly, don't check thread's pid.
6283 (arm_insert_point, arm_remove_point): Use for_each_thread.
6284
2bee2b6c
SM
62852017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6286
6287 * win32-low.c (continue_one_thread): Return void, take argument
6288 directly.
6289 (child_continue): Use for_each_thread.
6290
0b360f19
SM
62912017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6292
6293 * win32-i386-low.c (update_debug_registers_callback): Rename
6294 to ...
6295 (update_debug_registers): ... this, return void, remove pid_p arg.
6296 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6297
f27866ba
SM
62982017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6299
6300 * inferiors.h (struct process_info): Add constructor, initialize
6301 fields..
6302 <syscalls_to_catch>: Change type to std::vector<int>.
6303 * inferiors.c (add_process): Allocate process_info with new.
6304 (remove_process): Free process_info with delete.
6305 * linux-low.c (handle_extended_wait): Adjust.
6306 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6307 * server.c (handle_general_set): Adjust.
6308
e849ea89
PA
63092017-11-16 Pedro Alves <palves@redhat.com>
6310
6311 * remote-utils.c (remote_close): Block SIGIO signals instead of
6312 uninstalling the SIGIO handler.
6313
1d0aa65c
AH
63142017-11-16 Alan Hayward <alan.hayward@arm.com>
6315
6316 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6317
3491a34c
YQ
63182017-11-16 Yao Qi <yao.qi@linaro.org>
6319
6320 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6321 (tic6x_store_gregset): Likewise.
6322 (tic6x_usrregs_info): Move it up.
6323
a602f924
AH
63242017-11-15 Alan Hayward <alan.hayward@arm.com>
6325
6326 * Makefile.in: Update arch rules.
6327 * configure.srv: Explicitly mark arch/ files.
6328
5616b6c3
AS
63292017-11-13 Andreas Schwab <schwab@suse.de>
6330
6331 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6332 function.
6333 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6334
d1928160
PA
63352017-11-06 Pedro Alves <palves@redhat.com>
6336
6337 * config.in, configure: Regenerate.
6338
bac608e7
SM
63392017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6340
6341 * target.c (struct thread_search): Remove.
6342 (thread_search_callback): Remove.
6343 (prepare_to_access_memory): Use for_each_thread instead of
6344 find_inferior. Inline code from thread_search_callback.
6345
eaddb425
SM
63462017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6347
6348 * server.c (struct visit_actioned_threads_data): Remove.
6349 (visit_actioned_threads): Change prototype to take arguments
6350 directly.
6351 (resume): Use find_thread instead of find_inferior.
6352
99078d34
SM
63532017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6354
6355 * server.c (queue_stop_reply_callback): Change prototype, return
6356 void.
6357 (find_status_pending_thread_callback): Remove.
6358 (handle_status): Replace find_inferior with find_thread and
6359 for_each_thread.
6360
cc628f3d
AH
63612017-10-25 Alan Hayward <alan.hayward@arm.com>
6362
6363 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6364 with REGNO.
6365 (aarch64_store_gregset): Likewise.
6366 (aarch64_fill_fpregset): Likewise.
6367 (aarch64_store_fpregset): Likewise.
6368
4d3bb80e
SM
63692017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6370
6371 * gdbthread.h (find_thread, for_each_thread): New functions.
6372 * inferiors.c (thread_of_pid): Remove.
6373 (find_any_thread_of_pid): Use find_thread.
6374 * linux-low.c (num_lwps): Use for_each_thread.
6375
7a7cdfa0
YQ
63762017-10-17 Yao Qi <yao.qi@linaro.org>
6377
6378 * Makefile.in: Remove one rule.
6379 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6380
e675d170
YQ
63812017-10-17 Yao Qi <yao.qi@linaro.org>
6382
6383 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6384 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6385
7eb4e0f9
YQ
63862017-10-17 Yao Qi <yao.qi@linaro.org>
6387
6388 * configure.srv: Rename arm.o with arch/arm.o.
6389
60d6cfc9
YQ
63902017-10-17 Yao Qi <yao.qi@linaro.org>
6391
6392 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6393 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6394 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6395 (arch-i386.o, arch-amd64.o): Remove rules.
6396 (arch/%.o): New rule.
6397 Update POSTCOMPILE and COMPILE.pre.
6398 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6399 * configure: Re-generated.
6400 * configure.srv: Replace arch-i386.o with arch/i386.o.
6401 Replace arch-amd64.o with arch/amd64.o.
6402
5bfda255
YQ
64032017-10-16 Yao Qi <yao.qi@linaro.org>
6404
6405 * configure: Regenerated.
6406
9c80ecd6
SM
64072017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6408
6409 * inferiors.h: (struct inferior_list): Remove.
6410 (struct inferior_list_entry); Remove.
6411 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6412 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6413 get_first_inferior): Remove.
6414 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6415 find_inferior_id, find_inferior_in_random): Change signature.
6416 * inferiors.c (all_threads): Change type to
6417 std::list<thread_info *>.
6418 (get_thread): Remove macro.
6419 (find_inferior, find_inferior_id): Change signature, implement
6420 using find_thread.
6421 (find_inferior_in_random): Change signature, implement using
6422 find_thread_in_random.
6423 (for_each_inferior, for_each_inferior_with_data): Change
6424 signature, implement using for_each_thread.
6425 (add_inferior_to_list, remove_inferior): Remove.
6426 (add_thread, get_first_thread, thread_of_pid,
6427 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6428 (get_first_inferior, one_inferior_p, clear_inferior_list):
6429 Remove.
6430 (clear_inferiors, get_thread_process): Update.
6431 * gdbthread.h: Include <list>.
6432 (struct thread_info) <entry>: Remove field.
6433 <id>: New field.
6434 (all_threads): Change type to std::list<thread_info *>.
6435 (get_first_inferior): Add doc.
6436 (find_thread, for_each_thread, find_thread_in_random): New
6437 functions.
6438 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6439 * linux-arm-low.c (update_registers_callback): Update.
6440 * linux-low.c (second_thread_of_pid_p): Update.
6441 (kill_one_lwp_callback, linux_detach_lwp_callback,
6442 delete_lwp_callback, status_pending_p_callback, same_lwp,
6443 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6444 iterate_over_lwps, not_stopped_callback,
6445 resume_stopped_resumed_lwps, count_events_callback,
6446 select_singlestep_lwp_callback, select_event_lwp_callback,
6447 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6448 suspend_and_send_sigstop_callback, wait_for_sigstop,
6449 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6450 lwp_running, linux_set_resume_request, resume_status_pending_p,
6451 need_step_over_p, start_step_over, linux_resume_one_thread,
6452 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6453 reset_lwp_ptrace_options_callback): Update.
6454 * linux-mips-low.c (update_watch_registers_callback): Update.
6455 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6456 Update.
6457 (free_register_cache_thread_one): Remove.
6458 (regcache_release): Update.
6459 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6460 handle_qxfer_threads_worker): Update.
6461 (handle_query): Update, use list iterator.
6462 (visit_actioned_threads, handle_pending_status,
6463 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6464 clear_pending_status_callback, set_pending_status_callback,
6465 find_status_pending_thread_callback, handle_status,
6466 process_serial_event): Update.
6467 * target.c (thread_search_callback): Update.
6468 * thread-db.c (thread_db_get_tls_address): Update.
6469 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6470 Update.
6471 * win32-i386-low.c (update_debug_registers_callback): Update.
6472 * win32-low.c (delete_thread_info, child_delete_thread,
6473 continue_one_thread, suspend_one_thread,
6474 get_child_debug_event): Adjust.
6475
9179355e
SM
64762017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6477
6478 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6479 * inferiors.h: Include <list>.
6480 (struct process_info) <entry>: Remove field.
6481 <pid>: New field.
6482 (pid_of): Change macro to function.
6483 (ptid_of, lwpid_of): Remove macro.
6484 (all_processes): Change type to std::list<process_info *>.
6485 (ALL_PROCESSES): Remove macro.
6486 (for_each_process, find_process): New function.
6487 * inferiors.c (all_processes): Change type to
6488 std::list<process_info *>.
6489 (find_thread_process): Adjust.
6490 (add_process): Likewise.
6491 (remove_process): Likewise.
6492 (find_process_pid): Likewise.
6493 (get_first_process): Likewise.
6494 (started_inferior_callback): Remove.
6495 (have_started_inferiors_p): Adjust.
6496 (attached_inferior_callback): Remove.
6497 (have_attached_inferiors_p): Adjust.
6498 * linux-low.c (check_zombie_leaders): Likewise.
6499 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6500 (x86_linux_update_xmltarget): Adjust.
6501 * server.c (handle_query): Likewise.
6502 (gdb_reattached_process): Remove.
6503 (handle_status): Adjust.
6504 (kill_inferior_callback): Likewise.
6505 (detach_or_kill_inferior): Remove.
6506 (print_started_pid): Likewise.
6507 (print_attached_pid): Likewise.
6508 (detach_or_kill_for_exit): Update.
6509 (process_serial_event): Likewise.
6510 * linux-arm-low.c (arm_new_fork): Likewise.
6511
c9cb8905
SM
65122017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6513
6514 * dll.h: Include <list>.
6515 (struct dll_info): Add constructor.
6516 <entry>: Remove field.
6517 (all_dlls): Change type to std::list<dll_info>.
6518 * dll.c: Include <algorithm>.
6519 (get_dll): Remove macro.
6520 (all_dlls): Change type to std::list<dll_info *>.
6521 (free_one_dll): Remove.
6522 (match_dll): Likewise.
6523 (loaded_dll): Adjust.
6524 (unloaded_dll): Adjust to all_dlls type change, use
6525 std::find_if. Inline code from match_dll.
6526 (clear_dlls): Adjust to all_dlls type change.
6527 * server.c (emit_dll_description): Remove.
6528 (handle_qxfer_libraries): Adjust to all_dlls type change,
6529 integrate emit_dll_description's functionality.
6530
04ec7890
SM
65312017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6532
6533 * linux-low.h (struct linux_target_ops) <delete_process>: New
6534 field.
6535 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6536 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6537 (struct linux_target_ops): Add delete_process callback.
6538 * linux-arm-low.c (arm_delete_process): New.
6539 (struct linux_target_ops): Add delete_process callback.
6540 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6541 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6542 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6543 * linux-mips-low.c (mips_linux_delete_process): New.
6544 (struct linux_target_ops): Add delete_process callback.
6545 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6546 * linux-s390-low.c (struct linux_target_ops): Likewise.
6547 * linux-sh-low.c (struct linux_target_ops): Likewise.
6548 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6549 * linux-tile-low.c (struct linux_target_ops): Likewise.
6550 * linux-x86-low.c (x86_linux_delete_process): New.
6551 (struct linux_target_ops): Add delete_process callback.
6552 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6553
466eecee
SM
65542017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6555
6556 * linux-aarch64-low.c (the_low_target): Add thread delete
6557 callback.
6558 * linux-arm-low.c (arm_delete_thread): New function.
6559 (the_low_target): Add thread delete callback.
6560 * linux-bfin-low.c (the_low_target): Likewise.
6561 * linux-crisv32-low.c (the_low_target): Likewise.
6562 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6563 set.
6564 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6565 field.
6566 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6567 * linux-mips-low.c (mips_linux_delete_thread): New function.
6568 (the_low_target): Add thread delete callback.
6569 * linux-ppc-low.c (the_low_target): Likewise.
6570 * linux-s390-low.c (the_low_target): Likewise.
6571 * linux-sh-low.c (the_low_target): Likewise.
6572 * linux-tic6x-low.c (the_low_target): Likewise.
6573 * linux-tile-low.c (the_low_target): Likewise.
6574 * linux-x86-low.c (the_low_target): Likewise.
6575 * linux-xtensa-low.c (the_low_target): Likewise.
6576
b79f7801
YZ
65772017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6578
6579 * win32-low.c: Include "common-inferior.h".
6580
bc3b087d
SDJ
65812017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6582
6583 * inferiors.c (set_inferior_cwd): New function.
6584 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6585 (handle_query): Inform that QSetWorkingDir is supported.
6586 * win32-low.c (create_process): Pass the inferior's cwd to
6587 CreateProcess.
6588
d092c5a2
SDJ
65892017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6590
6591 * inferiors.c (current_inferior_cwd): New global variable.
6592 (get_inferior_cwd): New function.
6593 * inferiors.h (struct process_info) <cwd>: New field.
6594
7da0a886
SDJ
65952017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6596
6597 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6598 (OBS): Add gdb_tilde_expand.o.
6599
289a6840
SM
66002017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6601
6602 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6603 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6604
256642e8
PA
66052017-09-29 Pedro Alves <palves@redhat.com>
6606
6607 * ax.c (gdb_parse_agent_expr): Constify.
6608 * ax.h (gdb_parse_agent_expr): Constify.
6609 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6610 Constify.
6611 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6612 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6613 * remote-utils.h (read_ptid): Constify.
6614 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6615 (process_point_options, process_serial_event): Constify.
6616 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6617 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6618 (cmd_qtbuffer): Constify.
6619
5b9ca4d4
PA
66202017-09-29 Pedro Alves <palves@redhat.com>
6621
6622 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6623 fails.
6624
94c207e0
PA
66252017-09-29 Pedro Alves <palves@redhat.com>
6626
6627 * linux-low.c (handle_extended_wait): Pass parent thread instead
6628 of process to thread_db_notice_clone.
6629 * linux-low.h (thread_db_notice_clone): Replace parent process
6630 parameter with parent thread parameter.
6631 * thread-db.c (find_one_thread): Add comment.
6632 (thread_db_notice_clone): Replace parent process parameter with
6633 parent thread parameter. Temporarily switch to the parent thread.
6634
75352e28
SDJ
66352017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6636
6637 * gdbthread.h: Include "common-gdbthread.h".
6638 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6639 "if" when validating the ptid.
6640 * remote-utils.c: Include "gdbthread.h".
6641 (prepare_resume_reply): Use "switch_to_thread".
6642 * target.c (done_accessing_memory): Likewise.
6643
ad339634
AA
66442017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6645
6646 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6647 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6648 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6649 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6650 s390x-gs-linux64-ipa.o to ipa_obj.
6651 * linux-s390-low.c (HWCAP_S390_GS): New define.
6652 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6653 New functions.
6654 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6655 (s390_arch_setup): Check for guarded-storage support and choose
6656 appropriate tdesc.
6657 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6658 init_registers_s390x_gs_linux64.
6659 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6660 enum value.
6661 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6662 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6663
cc4d742f
SM
66642017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6665
6666 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6667
f6327dcb
KB
66682017-09-21 Kevin Buettner <kevinb@redhat.com>
6669
6670 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6671 (thread_db_thread_handle): Declare.
6672 * linux-low.c (linux_target_ops): Initialize thread_handle.
6673 * server.c (handle_qxfer_threads_worker): Add support for
6674 "handle" attribute.
6675 * target.h (struct target_ops): Add new function pointer,
6676 thread_handle.
6677 (target_thread_handle): Define.
6678 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6679 field in lwp.
6680 (thread_db_thread_handle): New function.
6681
86299109
KB
66822017-09-21 Kevin Buettner <kevinb@redhat.com>
6683
6684 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6685 * linux-low.h (thread_db_notice_clone): Declare.
6686 * thread-db.c (thread_db_notice_clone): New function.
6687
f557a88a
PA
66882017-09-21 Pedro Alves <palves@redhat.com>
6689
6690 * server.c (gdb_read_memory, handle_status, process_serial_event)
6691 (handle_serial_event, handle_target_event): Adjust to
6692 set_desired_thread prototype change.
6693 * target.c (set_desired_thread): Remove 'use_general' parameter
6694 and adjust.
6695 * target.h (set_desired_thread): Remove 'use_general' parameter.
6696
223ffa71
TT
66972017-09-20 Tom Tromey <tom@tromey.com>
6698
6699 * target.c (target_terminal::terminal_state): Define.
6700 (target_terminal::init): Rename from target_terminal_init.
6701 (target_terminal::inferior): Rename from
6702 target_terminal_inferior.
6703 (target_terminal::ours): Rename from target_terminal_ours.
6704 (target_terminal::ours_for_output, target_terminal::info): New.
6705
04fd3ba9
SM
67062017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6707
6708 * server.c (accumulate_file_name_length): Remove.
6709 (emit_dll_description): Adjust to std::string change.
6710 (handle_qxfer_libraries): Use std::string to hold document.
6711
5e187554
SM
67122017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6713
6714 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6715 return type of xml_escape_text.
6716 * server.c (emit_dll_description): Likewise.
6717
1526853e
SM
67182017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6719
6720 * server.c (captured_main): Accept argument for --selftest.
6721 Update run_tests call.
6722 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6723 when registering selftests.
6724
c4dfafab
SDJ
67252017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6726
6727 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6728 instead of "VEC" for "target_desc.reg_defs".
6729 (regcache_cpy): Likewise.
6730 (registers_to_string): Likewise.
6731 (registers_from_string): Likewise.
6732 (find_regno): Likewise.
6733 (supply_regblock): Likewise.
6734 (regcache_raw_read_unsigned): Likewise.
6735 * tdesc.c (init_target_desc): Likewise.
6736 (tdesc_create_reg): Likewise.
6737 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6738 (struct target_desc) <reg_defs>: Convert to "std::vector".
6739 (target_desc): Do not initialize "reg_defs".
6740 (~target_desc): Update code to use "std::vector" instead of "VEC"
6741 for "target_desc.reg_defs".
6742 (operator==): Likewise.
6743
124aceb4
SM
67442017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6745
6746 * inferiors.h (thread_to_gdb_id): Remove.
6747 * inferiors.c (thread_to_gdb_id): Remove.
6748 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6749 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6750 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6751 Likewise.
6752 * nto-low.c (nto_fetch_registers, nto_store_registers,
6753 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6754
96cde54f
SM
67552017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6756
6757 * inferiors.h (gdb_id_to_thread_id): Remove.
6758 * inferiors.c (gdb_id_to_thread_id): Remove.
6759 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6760 removal. Move pid declaration closer to where it's used.
6761
e8ca139e
SM
67622017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6763
6764 * server.c (handle_detach): New function.
6765 (process_serial_event): Move code out, call handle_detach.
6766
f8a4e119
SM
67672017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6768
6769 * server.c (require_running): Rename to ...
6770 (require_running_or_return): ... this ...
6771 (require_running_or_break): ... and this.
6772 (handle_query, process_serial_event): Adjust.
6773
0eb0a407
SM
67742017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6775
6776 * linux-low.c (linux_set_resume_request): Remove unused
6777 variables.
6778
785922a5
SM
67792017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6780
6781 * server.c (first_thread_of): Remove.
6782 (process_serial_event): Replace usage of first_thread_of with
6783 find_any_thread_of_pid.
6784 * tracepoint.c (same_process_p): Remove.
6785 (gdb_agent_about_to_close): Replace usage of same_process_p with
6786 find_any_thread_of_pid.
6787 * linux-x86-low.c (same_process_callback): Remove.
6788 (x86_arch_setup_process_callback): Replace usage of
6789 same_process_callback with find_any_thread_of_pid.
6790 * thread-db.c (any_thread_of): Remove.
6791 (switch_to_process): Replace usage of any_thread_of with
6792 find_any_thread_of_pid.
6793 * inferiors.c (thread_pid_matches_callback): Remove.
6794 (find_thread_process): Adjust to use find_any_thread_of_pid.
6795
a059f00c
SDJ
67962017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6797
6798 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6799 with "!VEC_empty".
a059f00c 6800
cc397f3a
SDJ
68012017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6802
6803 * linux-low.c (handle_extended_wait): Use
6804 "allocate_target_description" instead of "XNEW".
6805 * linux-x86-low.c (initialize_low_arch): Likewise.
6806
22916b07
YQ
68072017-09-05 Yao Qi <yao.qi@linaro.org>
6808
6809 * configure.srv (srv_i386_regobj): Remove.
6810 (srv_amd64_regobj): Remove.
6811 (srv_regobj): Set it to "" for x86 non-linux targets.
6812 * linux-x86-tdesc.c (i386_linux_read_description):
6813 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6814 (init_registers_i386): Remove the declaration.
6815 (tdesc_i386): Remove the declaration.
6816 (lynx_i386_arch_setup): Call i386_create_target_description.
6817 * nto-x86-low.c: Likewise.
6818 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6819 [!__x86_64__]: include arch/i386.h.
6820 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6821
38602d55
YQ
68222017-09-05 Yao Qi <yao.qi@linaro.org>
6823
6824 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6825 i386/amd64-XXX-linux from it.
6826
44b886ff
YQ
68272017-09-05 Yao Qi <yao.qi@linaro.org>
6828
6829 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6830 false.
6831 (ipa_amd64_linux_regobj): Remove.
6832 (ipa_x32_linux_regobj): Remove.
6833
b4570e4b
YQ
68342017-09-05 Yao Qi <yao.qi@linaro.org>
6835
6836 * Makefile.in (arch-amd64.o): New rule.
6837 * configure.srv: Append arch-amd64.o.
6838 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6839 (get_ipa_tdesc): Call amd64_linux_read_description.
6840 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6841 and init_registers_amd64_XXX.
6842 * linux-x86-low.c (x86_linux_read_description): Call
6843 amd64_linux_read_description.
6844 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6845 (initialize_low_arch): Don't call init_registers_x32_XXX and
6846 init_registers_amd64_XXX.
6847 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6848 and tdesc_amd64_XXX.
6849 [__x86_64__] (amd64_tdesc_test): New function.
6850 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6851 and init_registers_amd64_XXX.
6852 * linux-x86-tdesc.c: Include arch/amd64.h.
6853 (xcr0_to_tdesc_idx): New function.
6854 (i386_linux_read_description): New function.
6855 (amd64_get_ipa_tdesc_idx): New function.
6856 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6857 (amd64_get_ipa_tdesc): Declare.
6858
d1f28ea2
YQ
68592017-09-05 Yao Qi <yao.qi@linaro.org>
6860
6861 * configure.srv (srv_i386_linux_xmlfiles): Remove
6862 i386/i386-XXX-linux.xml from it.
6863
25a93583
YQ
68642017-09-05 Yao Qi <yao.qi@linaro.org>
6865
6866 * configure.srv: Set srv_i386_linux_regobj empty if $development
6867 is false.
6868 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6869 initialize_low_tdesc.
6870 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6871 with #if initialize_low_tdesc.
6872 * linux-x86-tdesc-selftest.c: New file.
6873 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6874
5f035c07
YQ
68752017-09-05 Yao Qi <yao.qi@linaro.org>
6876
6877 * Makefile.in (arch-i386.o): New rule.
6878 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6879 (x86_64-*-linux*): Likewise.
6880 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6881 include arch/i386.h.
6882 (i386_linux_read_description): Remove code and call
6883 i386_create_target_description.
6884 * tdesc.c (allocate_target_description): New function.
6885 * tdesc.h (set_tdesc_architecture): Remove declaration.
6886 (set_tdesc_osabi): Likewise.
6887
0abe8a89
YQ
68882017-09-05 Yao Qi <yao.qi@linaro.org>
6889
6890 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6891 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6892 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6893 .xmltarget.
6894 * server.c (get_features_xml): Call tdesc_get_features_xml.
6895 * tdesc.c (set_tdesc_architecture): New function.
6896 (set_tdesc_osabi): New function.
6897 (tdesc_get_features_xml): New function.
6898 (tdesc_create_feature): Add an argument.
6899 * tdesc.h (struct target_desc) <features>: New field.
6900 <arch, osabi>: New field.
6901 (~target_desc): xfree features, arch, and osabi.
6902 (target_desc::oerator==): Don't compare .xmltarget.
6903 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6904 (set_tdesc_osabi): Likewise.
6905 (tdesc_get_features_xml): Likewise.
6906
0a188386
YQ
69072017-09-05 Yao Qi <yao.qi@linaro.org>
6908
6909 * linux-x86-tdesc.c: Include selftest.h.
6910 (i386_tdesc_test): New function.
6911 (initialize_low_tdesc): Call selftests::register_test.
6912 * tdesc.h: Include regdef.h.
6913 (target_desc): Override operator == and !=.
6914
f49ff000
YQ
69152017-09-05 Yao Qi <yao.qi@linaro.org>
6916
6917 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6918 (ipa_obj): Likewise.
6919 * linux-i386-ipa.c: Include common/x86-xstate.h
6920 (get_ipa_tdesc): Call i386_linux_read_description.
6921 (initialize_low_tracepoint): Don't call init_registers_XXX
6922 functions, call initialize_low_tdesc instead.
6923 * linux-x86-low.c (x86_linux_read_description): Call
6924 i386_linux_read_description.
6925 (initialize_low_arch): Don't call init_registers_i386_XXX
6926 functions, call initialize_low_tdesc.
6927 * linux-x86-tdesc.c: New file.
6928 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6929 (i386_get_ipa_tdesc_idx): Declare.
6930 (i386_get_ipa_tdesc): Declare.
6931 (initialize_low_tdesc): Declare.
6932
2b68ef2f
YQ
69332017-09-05 Yao Qi <yao.qi@linaro.org>
6934
6935 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6936 instead of 0.
6937
f7000548
YQ
69382017-09-05 Yao Qi <yao.qi@linaro.org>
6939
6940 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6941 * regcache.c (get_thread_regcache): Use VEC_length.
6942 (init_register_cache): Likewise.
6943 (regcache_cpy): Likewise.
6944 (registers_to_string): Iterate reg_defs via VEC_iterate.
6945 (find_regno): Likewise.
6946 (find_register_by_number): Use VEC_index.
6947 (register_size): Call find_register_by_number.
6948 (register_data): Call find_register_by_number.
6949 (supply_regblock): Use VEC_length.
6950 (regcache_raw_read_unsigned): Likewise.
6951 * tdesc.c (init_target_desc): Iterate reg_defs via
6952 VEC_iterate.
6953 (default_description): Update initializer.
6954 (copy_target_description): Don't update field num_registers.
6955 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6956 <num_registers>: Remove.
6957
50a421ac
SM
69582017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6959
6960 * Makefile.in (.SECONDARY): Define target.
6961
23fdd69e
SM
69622017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6963
6964 * linux-low.c (linux_wait_1): Adjust.
6965 * server.c (queue_stop_reply_callback): Adjust.
6966
0a2dde4a
SDJ
69672017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6968
6969 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6970 QEnvironmentUnset and QEnvironmentReset packets.
6971 (handle_query): Inform remote that QEnvironmentHexEncoded,
6972 QEnvironmentUnset and QEnvironmentReset are supported.
6973
6afd337d
SM
69742017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6975
6976 * inferiors.h (inferior_target_data): Rename to ...
6977 (thread_target_data): ... this.
6978 (inferior_regcache_data): Rename to ...
6979 (thread_regcache_data): ... this.
6980 (set_inferior_regcache_data): Rename to ...
6981 (set_thread_regcache_data): ... this.
6982 * inferiors.c (inferior_target_data): Rename to ...
6983 (thread_target_data): ... this.
6984 (inferior_regcache_data): Rename to ...
6985 (thread_regcache_data): ... this.
6986 (set_inferior_regcache_data): Rename to ...
6987 (set_thread_regcache_data): ... this.
6988 (free_one_thread): Update.
6989 * linux-low.h (get_thread_lwp): Update.
6990 * regcache.c (get_thread_regcache): Update.
6991 (regcache_invalidate_thread): Update.
6992 (free_register_cache_thread): Update.
6993 * win32-i386-low.c (update_debug_registers_callback): Update.
6994 (win32_get_current_dr): Update.
6995 * win32-low.c (thread_rec): Update.
6996 (delete_thread_info): Update.
6997 (continue_one_thread): Update.
6998 (suspend_one_thread): Update.
6999
a160cc46
SM
70002017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7001
7002 * inferiors.c (set_inferior_target_data): Remove.
7003 * inferiors.h (set_inferior_target_data): Remove.
7004
6d580b63
YQ
70052017-08-18 Yao Qi <yao.qi@linaro.org>
7006
7007 * Makefile.in (OBS): Add selftest.o.
7008 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7009 * configure, config.in: Re-generated.
7010 * server.c: Include common/sefltest.h.
7011 (captured_main): Handle option --selftest.
7012
f5a29eb0
YQ
70132017-08-09 Yao Qi <yao.qi@linaro.org>
7014
7015 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7016 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7017 i386-avx-mpx.o and i386-mmx.o.
7018 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7019 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7020 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7021 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7022 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7023 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7024 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7025 i386/amd64-avx-mpx.xml.
7026
57757c2f
YQ
70272017-08-09 Yao Qi <yao.qi@linaro.org>
7028
7029 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7030 and x32-avx-avx512.o.
7031 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7032 i386/x32-avx-avx512.xml.
7033
229d26fc
SM
70342017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7035
7036 * tracepoint.h (enum class fast_tpoint_collect_result): New
7037 enumeration.
7038 (fast_tracepoint_collecting): Change return type to
7039 fast_tpoint_collect_result.
7040 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7041 * linux-low.h: Include tracepoint.h.
7042 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7043 fast_tpoint_collect_result.
7044 * linux-low.c (handle_tracepoints): Adjust.
7045 (linux_fast_tracepoint_collecting): Change return type to
7046 fast_tpoint_collect_result.
7047 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7048 linux_wait_1, stuck_in_jump_pad_callback,
7049 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7050 proceed_one_lwp): Adjust to type change.
7051
2e1e43e1
YQ
70522017-07-10 Yao Qi <yao.qi@linaro.org>
7053
7054 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7055
adc764e7
YQ
70562017-06-29 Yao Qi <yao.qi@linaro.org>
7057
7058 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7059 Remove.
7060 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7061
a206891a
SM
70622017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7063
7064 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7065
9a6c7d9c
SDJ
70662017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7067
7068 * linux-low.c (linux_create_inferior): Adjust code to access the
7069 environment information via 'gdb_environ' class.
7070 * lynx-low.c (lynx_create_inferior): Likewise.
7071 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7072 (get_environ): Return a pointer to 'our_environ'.
7073 (captured_main): Initialize 'our_environ'.
7074 * server.h (get_environ): Adjust prototype.
7075 * spu-low.c (spu_create_inferior): Adjust code to access the
7076 environment information via 'gdb_environ' class.
7077
ae3e2ccf
SM
70782017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7079
7080 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7081 usage of "register" keyword.
7082
3e019bdc
SM
70832017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7084
7085 * configure: Re-generate.
7086
8465943a
SM
70872017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7088
7089 * configure: Re-generate.
7090
cf0dd6f0
SM
70912017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7092
7093 * Makefile.in (COMPILE.pre): Add "-x c++".
7094
9845682b
SDJ
70952017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7096
7097 * fork-child.c: Conditionally include <signal.h>.
7098
aefd8b33
SDJ
70992017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7100
7101 * server.c (handle_general_set): Handle new packet
7102 "QStartupWithShell".
7103 (handle_query): Add "QStartupWithShell" to the list of supported
7104 packets.
7105 (gdbserver_usage): Add help text explaining the
7106 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7107 options.
7108 (captured_main): Recognize and act upon the presence of the new
7109 CLI options.
7110
2090129c
SDJ
71112017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7112 Pedro Alves <palves@redhat.com>
7113
7114 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7115 * configure: Regenerate.
7116 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7117 "fork-inferior.o".
7118 (i[34567]86-*-lynxos*): Likewise.
7119 (spu*-*-*): Likewise.
7120 * fork-child.c: New file.
7121 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7122 and "environ.h".
7123 (linux_ptrace_fun): New function.
7124 (linux_create_inferior): Adjust function prototype to reflect
7125 change on "target.h". Adjust function code to use
7126 "fork_inferior".
7127 (linux_request_interrupt): Delete "signal_pid".
7128 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7129 (lynx_ptrace_fun): New function.
7130 (lynx_create_inferior): Adjust function prototype to reflect
7131 change on "target.h". Adjust function code to use
7132 "fork_inferior".
7133 * nto-low.c (nto_create_inferior): Adjust function prototype and
7134 code to reflect change on "target.h". Update comments.
7135 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7136 "common-terminal.h" and "environ.h".
7137 (terminal_fd): Moved to fork-child.c.
7138 (old_foreground_pgrp): Likewise.
7139 (restore_old_foreground_pgrp): Likewise.
7140 (last_status): Make it global.
7141 (last_ptid): Likewise.
7142 (our_environ): New variable.
7143 (startup_with_shell): Likewise.
7144 (program_name): Likewise.
7145 (program_argv): Rename to...
7146 (program_args): ...this.
7147 (wrapper_argv): New variable.
7148 (start_inferior): Delete function.
7149 (get_exec_wrapper): New function.
7150 (get_exec_file): Likewise.
7151 (get_environ): Likewise.
7152 (prefork_hook): Likewise.
7153 (post_fork_inferior): Likewise.
7154 (postfork_hook): Likewise.
7155 (postfork_child_hook): Likewise.
7156 (handle_v_run): Update code to deal with arguments coming from the
7157 remote host. Update calls from "start_inferior" to
7158 "create_inferior".
7159 (captured_main): Likewise. Initialize environment variable. Call
7160 "have_job_control".
7161 * server.h (post_fork_inferior): New prototype.
7162 (get_environ): Likewise.
7163 (last_status): Declare.
7164 (last_ptid): Likewise.
7165 (signal_pid): Likewise.
7166 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7167 (spu_ptrace_fun): New function.
7168 (spu_create_inferior): Adjust function prototype to reflect change
7169 on "target.h". Adjust function code to use "fork_inferior".
7170 * target.c (target_terminal_init): New function.
7171 (target_terminal_inferior): Likewise.
7172 (target_terminal_ours): Likewise.
7173 * target.h: Include <vector>.
7174 (struct target_ops) <create_inferior>: Update prototype.
7175 (create_inferior): Update macro.
7176 * utils.c (gdb_flush_out_err): New function.
7177 * win32-low.c (win32_create_inferior): Adjust function prototype
7178 and code to reflect change on "target.h".
7179
043a4934
SDJ
71802017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7181
7182 * inferiors.c (switch_to_thread): New function.
7183
15652511
SDJ
71842017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7185
7186 * Makefile.in (SFILE): Add "common/job-control.c".
7187 (OBS): Add "job-control.o".
7188
21ea5acd
SDJ
71892017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7190
7191 * Makefile: Remove "@host_makefile_frag@".
7192
e13cb306
PA
71932017-05-05 Pedro Alves <palves@redhat.com>
7194
7195 * configure: Regenerate.
7196
c94fee56
SDJ
71972017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7198
7199 * configure: Regenerate.
7200
a0ff9e1a
SM
72012017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7202
7203 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7204 software_single_step change of return type to
7205 std::vector<CORE_ADDR>.
7206 * linux-low.c (install_software_single_step_breakpoints):
7207 Likewise.
7208 * linux-low.h (install_software_single_step_breakpoints):
7209 Likewise.
7210
be628ab8
SDJ
72112017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7212
7213 * remote-utils.c: Include "gdb_termios.h" instead of
7214 "terminal.h".
7215 * terminal.h: Delete file.
7216
7c5ded6a
SDJ
72172017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7218
7219 * server.c: Include <vector>.
7220 <program_argv, wrapper_argv>: Convert to std::vector.
7221 (start_inferior): Rewrite function to use C++.
7222 (handle_v_run): Likewise. Update code that calculates the argv
7223 based on the vRun packet; use C++.
7224 (captured_main): Likewise.
7225
436252de
SM
72262017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7227
7228 * server.c (handle_v_cont): Initialize thread_resume::thread
7229 with null_ptid.
7230
9bf2a700
PA
72312017-04-05 Pedro Alves <palves@redhat.com>
7232
7233 * configure: Regenerate.
7234
a121b7c1
PA
72352017-04-05 Pedro Alves <palves@redhat.com>
7236
7237 * gdbreplay.c (sync_error): Constify.
7238 * linux-x86-low.c (push_opcode): Constify.
7239
21c8a587
PA
72402017-04-05 Pedro Alves <palves@redhat.com>
7241
7242 * win32-low.c (get_child_debug_event)
7243 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7244 Report TARGET_WAITKIND_SPURIOUS instead.
7245
fb32b4f7
PA
72462017-04-05 Pedro Alves <palves@redhat.com>
7247
e79be6e5
SM
7248 * remote-utils.c (remote_prepare, remote_open): Constify.
7249 * remote-utils.h (remote_prepare, remote_open): Constify.
7250 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7251
65dd1e59
SM
72522017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7253
7254 * Makefile.in (clean): Clear .deps.
7255
8fa5b777
SM
72562017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7257
7258 * .gitignore: Remove generated files, replace with wildcard.
7259 * (clean): Replace removal of generated files with wildcard.
7260 (version.c): Replace with...
7261 (version-generated.c): ...this.
7262 (xml-builtin.c): Replace with...
7263 (xml-builtin-generated.c): ...this.
7264 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7265 (%.c: *regformats*): Replace with...
7266 (%-generated.c: *regformats*): ...this.
7267
a12e714b
MF
72682017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7269
7270 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7271 (xtensa_fill_gregset): Call collect_register_by_name for
7272 threadptr register.
7273 (xtensa_store_gregset): Call supply_register_by_name for
7274 threadptr register.
7275
1a09b50a
MF
72762017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7277
7278 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7279 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7280 (xtensa_store_gregset): Call supply_register for all registers in
7281 a0_regnum..a0_regnum + C0_NREGS range.
7282
1a01e7c6
SM
72832017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7284
7285 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7286 (ax-ipa.o: ax.c): Remove.
7287 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7288 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7289 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7290 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7291 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7292
36bc18a8
SM
72932017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7294
7295 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7296 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7297 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7298 (errors-ipa.o: ../common/errors.c): Remove.
7299 (format-ipa.o: ../common/format.c): Remove.
7300 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7301
a8ebe3d5
SM
73022017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7303
7304 * Makefile.in (%-ipa.o: %.c): New rule.
7305 (tracepoint-ipa.o: tracepoint.c): Remove.
7306 (utils-ipa.o: utils.c): Remove.
7307 (remote-utils-ipa.o: remote-utils.c): Remove.
7308 (regcache-ipa.o: regcache.c): Remove.
7309 (i386-linux-ipa.o: i386-linux.c): Remove.
7310 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7311 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7312 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7313 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7314 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7315 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7316 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7317 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7318 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7319 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7320 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7321 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7322 (aarch64-ipa.o: aarch64.c): Remove.
7323 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7324 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7325 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7326 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7327 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7328 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7329 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7330 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7331 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7332 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7333 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7334 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7335 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7336 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7337 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7338 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7339 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7340 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7341 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7342 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7343 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7344 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7345 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7346 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7347 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7348 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7349 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7350 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7351 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7352 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7353 (tdesc-ipa.o: tdesc.c): Remove.
7354 (x32-linux-ipa.o: x32-linux.c): Remove.
7355 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7356 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7357
50cfacb7
SM
73582017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7359
7360 * Makefile.in (%.o: ../arch/%.c): New rule.
7361 (arm.o: ../arch/arm.c): Remove.
7362 (arm-linux.o: ../arch/arm-linux.c): Remove.
7363 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7364 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7365
c5a22423
SM
73662017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7367
7368 * Makefile.in (%.o: ../nat/%.c): New rule.
7369 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7370 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7371 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7372 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7373 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7374 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7375 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7376 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7377 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7378 (linux-personality.o: ../nat/linux-personality.c): Remove.
7379 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7380 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7381 (x86-linux.o: ../nat/x86-linux.c): Remove.
7382 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7383 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7384
6bda016b
SM
73852017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7386
7387 * Makefile.in (%.o: ../common/%.c): New rule.
7388 (signals.o: ../common/signals.c): Remove.
7389 (print-utils.o: ../common/print-utils.c): Remove.
7390 (rsp-low.o: ../common/rsp-low.c): Remove.
7391 (common-utils.o: ../common/common-utils.c): Remove.
7392 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7393 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7394 (vec.o: ../common/vec.c): Remove.
7395 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7396 (xml-utils.o: ../common/xml-utils.c): Remove.
7397 (ptid.o: ../common/ptid.c): Remove.
7398 (buffer.o: ../common/buffer.c): Remove.
7399 (format.o: ../common/format.c): Remove.
7400 (filestuff.o: ../common/filestuff.c): Remove.
7401 (agent.o: ../common/agent.c): Remove.
7402 (errors.o: ../common/errors.c): Remove.
7403 (environ.o: ../common/environ.c): Remove.
7404 (common-debug.o: ../common/common-debug.c): Remove.
7405 (cleanups.o: ../common/cleanups.c): Remove.
7406 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7407 (fileio.o: ../common/fileio.c): Remove.
7408 (common-regcache.o: ../common/common-regcache.c): Remove.
7409 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7410 (new-op.o: ../common/new-op.c): Remove.
7411 (btrace-common.o: ../common/btrace-common.c): Remove.
7412
21122961
SM
74132017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7414
7415 * Makefile.in (%.o: ../target/%.c): New rule.
7416 (waitstatus.o: ../target/waitstatus.c): Remove.
7417
c362e621
SM
74182017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7419
7420 * Makefile.in
7421 (%.c: ../regformats/%.dat,
7422 (%.c: ../regformats/arm/%.dat,
7423 (%.c: ../regformats/i386/%.dat,
7424 (%.c: ../regformats/rs6000/%.dat): New rules.
7425 (aarch64.c): Remove.
7426 (reg-arm.c): Remove.
7427 (arm-with-iwmmxt.c): Remove.
7428 (arm-with-vfpv2.c): Remove.
7429 (arm-with-vfpv3.c): Remove.
7430 (arm-with-neon.c): Remove.
7431 (reg-bfin.c): Remove.
7432 (reg-cris.c): Remove.
7433 (reg-crisv32.c): Remove.
7434 (i386.c): Remove.
7435 (i386-linux.c): Remove.
7436 (i386-avx.c): Remove.
7437 (i386-avx-linux.c): Remove.
7438 (i386-avx-avx512.c): Remove.
7439 (i386-avx-avx512-linux.c): Remove.
7440 (i386-mpx.c): Remove.
7441 (i386-mpx-linux.c): Remove.
7442 (i386-avx-mpx-avx512-pku.c): Remove.
7443 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7444 (i386-avx-mpx.c): Remove.
7445 (i386-avx-mpx-linux.c): Remove.
7446 (i386-mmx.c): Remove.
7447 (i386-mmx-linux.c): Remove.
7448 (reg-ia64.c): Remove.
7449 (reg-m32r.c): Remove.
7450 (reg-m68k.c): Remove.
7451 (reg-cf.c): Remove.
7452 (mips-linux.c): Remove.
7453 (mips-dsp-linux.c): Remove.
7454 (mips64-linux.c): Remove.
7455 (mips64-dsp-linux.c): Remove.
7456 (nios2-linux.c): Remove.
7457 (powerpc-32.c): Remove.
7458 (powerpc-32l.c): Remove.
7459 (powerpc-altivec32l.c): Remove.
7460 (powerpc-cell32l.c): Remove.
7461 (powerpc-vsx32l.c): Remove.
7462 (powerpc-isa205-32l.c): Remove.
7463 (powerpc-isa205-altivec32l.c): Remove.
7464 (powerpc-isa205-vsx32l.c): Remove.
7465 (powerpc-e500l.c): Remove.
7466 (powerpc-64l.c): Remove.
7467 (powerpc-altivec64l.c): Remove.
7468 (powerpc-cell64l.c): Remove.
7469 (powerpc-vsx64l.c): Remove.
7470 (powerpc-isa205-64l.c): Remove.
7471 (powerpc-isa205-altivec64l.c): Remove.
7472 (powerpc-isa205-vsx64l.c): Remove.
7473 (s390-linux32.c): Remove.
7474 (s390-linux32v1.c): Remove.
7475 (s390-linux32v2.c): Remove.
7476 (s390-linux64.c): Remove.
7477 (s390-linux64v1.c): Remove.
7478 (s390-linux64v2.c): Remove.
7479 (s390-te-linux64.c): Remove.
7480 (s390-vx-linux64.c): Remove.
7481 (s390-tevx-linux64.c): Remove.
7482 (s390x-linux64.c): Remove.
7483 (s390x-linux64v1.c): Remove.
7484 (s390x-linux64v2.c): Remove.
7485 (s390x-te-linux64.c): Remove.
7486 (s390x-vx-linux64.c): Remove.
7487 (s390x-tevx-linux64.c): Remove.
7488 (tic6x-c64xp-linux.c): Remove.
7489 (tic6x-c64x-linux.c): Remove.
7490 (tic6x-c62x-linux.c): Remove.
7491 (reg-sh.c): Remove.
7492 (reg-sparc64.c): Remove.
7493 (reg-spu.c): Remove.
7494 (amd64.c): Remove.
7495 (amd64-linux.c): Remove.
7496 (amd64-avx.c): Remove.
7497 (amd64-avx-linux.c): Remove.
7498 (amd64-avx-avx512.c): Remove.
7499 (amd64-avx-avx512-linux.c): Remove.
7500 (amd64-mpx.c): Remove.
7501 (amd64-mpx-linux.c): Remove.
7502 (amd64-avx-mpx-avx512-pku.c): Remove.
7503 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7504 (amd64-avx-mpx.c): Remove.
7505 (amd64-avx-mpx-linux.c): Remove.
7506 (x32.c): Remove.
7507 (x32-linux.c): Remove.
7508 (x32-avx.c): Remove.
7509 (x32-avx-linux.c): Remove.
7510 (x32-avx-avx512.c): Remove.
7511 (x32-avx-avx512-linux.c): Remove.
7512 (reg-xtensa.c): Remove.
7513 (reg-tilegx.c): Remove.
7514 (reg-tilegx32.c): Remove.
7515
1672e0d9
SDJ
75162017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7517
7518 * Makefile.in (SFILES): Add "common/environ.c".
7519 (OBJS): Add "common/environ.h".
7520
239b6d10
WT
75212017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7522
7523 * configure.ac: Check if the fs_base and gs_base members of
7524 `struct user_regs_struct' exist.
7525 * config.in: Regenerated.
7526 * configure: Likewise.
7527
694b382c
AT
75282017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7529
7530 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7531 target_read_memory.
7532 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7533 (get_next_pcs_syscall_next_pc): Likewise.
7534
7dc53023
LM
75352016-12-23 Luis Machado <lgustavo@codesourcery.com>
7536
7537 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7538 * nto-x86-low.c: Likewise.
7539
ad02e4fe
SM
75402016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7541
7542 * Makefile.in: Include disable-implicit-rules.mk.
7543
dcb07cfa
PA
75442016-11-23 Pedro Alves <palves@redhat.com>
7545
7546 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7547 (debug_vprintf): Use std::chrono::steady_clock instead of
7548 gettimeofday. Use '.' instead of ':'.
7549 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7550 (get_timestamp): Use std::chrono::steady_clock instead of
7551 gettimeofday.
7552
8629c02c
SM
75532016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7554
7555 * Makefile.in: Fix whitespace formatting.
7556
b593ecca
SM
75572016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7558
7559 * Makefile.in (SFILES, OBS): Flatten list and order
7560 alphabetically.
7561
9986ba08
PA
75622016-11-23 Pedro Alves <palves@redhat.com>
7563
7564 * event-loop.c (handle_file_event): Use warning.
7565 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7566 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7567 Use warning.
7568
4eefa7bc
PA
75692016-11-23 Pedro Alves <palves@redhat.com>
7570
7571 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7572 output.
7573 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7574 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7575 debug_printf and debug_flush for debug output.
7576 * server.c (handle_general_set): Likewise.
7577 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7578 output.
7579
5443506e
SM
75802016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7581
7582 * Makefile.in (.c.o): Replace rule with ...
7583 (%.o: %.c): ... this one.
7584
3b165252
SM
75852016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7586
7587 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7588 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7589 make.
7590 * configure.ac: Remove checks for the make program.
7591 * configure: Re-generate.
7592
0bcda685
PA
75932016-10-28 Pedro Alves <palves@redhat.com>
7594
7595 * Makefile.in (CXX_DIALECT): Get from configure.
7596 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7597 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7598 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7599 * config.in: Regenerate.
7600 * configure: Regenerate.
7601
c3805894
YQ
76022016-10-27 Yao Qi <yao.qi@linaro.org>
7603
7604 * linux-low.c (linux_supports_range_stepping): Return true if
7605 can_software_single_step return true.
7606
89342618
YQ
76072016-10-27 Yao Qi <yao.qi@linaro.org>
7608
7609 * inferiors.c (find_inferior_in_random): New function.
7610 * inferiors.h (find_inferior_in_random): Declare.
7611 * linux-low.c (linux_wait_for_event_filtered): Call
7612 find_inferior_in_random instead of find_inferior.
7613
e3652c84
YQ
76142016-10-27 Yao Qi <yao.qi@linaro.org>
7615
7616 * linux-low.c (linux_wait_1): If single-step breakpoints are
7617 inserted, remove them.
7618
5a04c4cf
PA
76192016-10-26 Pedro Alves <palves@redhat.com>
7620
7621 * linux-low.c (handle_extended_wait): Link parent/child fork
7622 threads.
7623 (linux_wait_1): Unlink them.
7624 (linux_set_resume_request): Ignore resume requests for
7625 already-resumed and unhandled fork child threads.
7626 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7627 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7628 New functions.
7629 (handle_v_requests) <vCont>: Don't call require_running.
7630 * server.h (in_queued_stop_replies): New declaration.
7631
cb93dc7f
YQ
76322016-10-24 Yao Qi <yao.qi@linaro.org>
7633
7634 PR server/20733
7635 * linux-aarch64-low.c (append_insns): Cast the return value to
7636 'uint32_t *'.
7637
a1078bea
YQ
76382016-10-10 Yao Qi <yao.qi@linaro.org>
7639
7640 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7641
1fb77080
SDJ
76422016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7643
7644 * target.c (target_supports_multi_process): New function, moved
7645 from...
7646 * target.h (target_supports_multi_process): ... here. Remove
7647 macro.
7648
39b5a3b9
TT
76492016-10-05 Tom Tromey <tom@tromey.com>
7650
7651 PR remote/20655:
7652 * tracepoint.c (handle_tracepoint_bkpts): Check
7653 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7654
c1d0b70a
YQ
76552016-10-05 Yao Qi <yao.qi@linaro.org>
7656
7657 * configure.srv: Update the path of arm-*.xml files.
7658
0a69eedb
YQ
76592016-10-05 Terry Guo <terry.guo@arm.com>
7660 Yao Qi <yao.qi@linaro.org>
7661
7662 * Makefile.in: Adjust the path of rules.
7663 * configure.srv: Update the path of xml files.
7664 * regformats/arm-with-iwmmxt.dat: Regenerated.
7665 * regformats/arm-with-neon.dat: Likewise.
7666 * regformats/arm-with-vfpv2.dat: Likewise.
7667 * regformats/arm-with-vfpv3.dat Likewise.
7668
17e16485
YQ
76692016-09-30 Yao Qi <yao.qi@linaro.org>
7670
7671 PR gdbserver/20627
7672 * target.c (target_stop_and_wait): Don't call
7673 target_continue_no_signal, use resume_stop instead.
7674
edeeb602
YQ
76752016-09-26 Yao Qi <yao.qi@linaro.org>
7676
7677 * linux-low.c (linux_wait_1): Call debug_exit.
7678
503b1c39
PA
76792016-09-23 Pedro Alves <palves@redhat.com>
7680
7681 * Makefile.in (SFILES): Add common/new-op.c.
7682 (OBS): Add common/new-op.o.
7683 (new-op.o): New rule.
7684
74172ecf
SM
76852016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7686
7687 * .gitinore: Ignore more files.
7688
fc6cda2e
YQ
76892016-09-21 Yao Qi <yao.qi@linaro.org>
7690
7691 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7692 23.
7693
bc1e6c81
SDJ
76942016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7695
7696 * server.c (start_inferior): Call target_mourn_inferior instead of
7697 mourn_inferior; pass ptid_t argument to it.
7698 (resume): Likewise.
7699 (handle_target_event): Likewise.
7700 * target.c (target_mourn_inferior): New function.
7701 * target.h (mourn_inferior): Delete macro.
7702
0e00e962
AA
77032016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7704
7705 * linux-low.c (lwp_is_stepping): New function.
7706
1d8cb77d
CL
77072016-09-06 Carl Love <cel@us.ibm.com>
7708
7709 * server.c (start_inferior): Fixed comment, requested comment change
7710 didn't get updated correctly. Removed reference to ptrace () call as
7711 it is only true on Linux systems.
7712
7313bced
CL
77132016-09-06 Carl Love <cel@us.ibm.com>
7714
7715 * server.c (start_inferior): Do not call
7716 function target_post_create_inferior () if the
7717 inferior process has already exited.
7718
cf6de44d
PA
77192016-09-05 Pedro Alves <palves@redhat.com>
7720
7721 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7722 (COMPILE.pre, CC_LD): Use CXX directly.
7723 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7724 * acinclude.m4: Don't include build-with-cxx.m4.
7725 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7726 * configure: Regenerate.
7727
c1da6748
AT
77282016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7729
7730 PR gdb/19495
7731 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7732 call writing data to own_buf.
7733
f2b9e3df
SDJ
77342016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7735
7736 * target.c (mywait): Call target_wait instead of
7737 the_target->wait.
7738 (target_wait): New function.
7739
049a8570
SDJ
77402016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7741
7742 * server.c (start_inferior): New variable 'ptid'. Replace calls
7743 to the_target->resume by target_continue{,_no_signal}, depending
7744 on the case.
7745 * target.c (target_stop_and_wait): Call target_continue_no_signal
7746 instead of the_target->resume.
7747 (target_continue): New function.
7748
3aa5cfa0
AT
77492016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7750
7751 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7752
754653a7
AZ
77532016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7754
7755 PR server/20491
7756 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7757 ps_prochandle.
7758 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7759 * linux-arm-low.c (ps_get_thread_area): Likewise.
7760 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7761 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7762 * linux-mips-low.c (ps_get_thread_area): Likewise.
7763 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7764 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7765 * linux-x86-low.c (ps_get_thread_area): Likewise.
7766 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7767
ed036b40
PA
77682016-08-19 Pedro Alves <palves@redhat.com>
7769
7770 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7771
c8ef42ee
PA
77722016-08-19 Pedro Alves <palves@redhat.com>
7773
7774 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7775 comment. Use memcpy instead of casting through unsigned long.
7776
9c235a72
PA
77772016-08-19 Pedro Alves <palves@redhat.com>
7778
7779 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7780 allocating around 0x80000000.
7781
201506da
PA
77822016-08-19 Pedro Alves <palves@redhat.com>
7783
7784 PR gdb/20415
7785 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7786 (x32-avx512-linux-ipa.o): New rules.
7787 * configure.ac (x86_64-*-linux*): New x32 check.
7788 * configure.srv (ipa_x32_linux_regobj): New.
7789 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7790 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7791 descriptions.
7792 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7793 descriptions.
7794 * configure: Regenerate.
7795
f348d89a
PA
77962016-08-09 Pedro Alves <palves@redhat.com>
7797
7798 PR gdb/18653
7799 * Makefile.in (OBS): Add signals-state-save-restore.o.
7800 (signals-state-save-restore.o): New rule.
7801 * config.in: Regenerate.
7802 * configure: Regenerate.
7803 * linux-low.c: Include "signals-state-save-restore.h".
7804 (linux_create_inferior): Call
7805 restore_original_signals_state.
7806 * server.c: Include "dispositions-save-restore.h".
7807 (captured_main): Call save_original_signals_state.
7808
1baf5149
PA
78092016-08-05 Pedro Alves <palves@redhat.com>
7810
7811 * configure: Regenerate.
7812
fcd4a73d
YQ
78132016-08-04 Yao Qi <yao.qi@linaro.org>
7814
7815 * linux-low.c (regsets_fetch_inferior_registers): Check
7816 errno is ESRCH or not.
7817
979659d0
YQ
78182016-08-02 Yao Qi <yao.qi@linaro.org>
7819
7820 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7821 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7822 (thread_db_load_search): Update.
7823 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7824 td_ta_set_event and td_ta_event_getmsg.
7825
6598661d
PA
78262016-07-26 Pedro Alves <palves@redhat.com>
7827
7828 PR server/20414
7829 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7830 of unsigned long for 64-bit registers and use uint32_t instead of
7831 unsigned int for 32-bit registers.
7832
9cf12d57
PA
78332016-07-26 Pedro Alves <palves@redhat.com>
7834
7835 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7836 to 'ptrace'.
7837
305450ed
TT
78382016-07-21 Tom Tromey <tom@tromey.com>
7839
7840 * configure: Rebuild.
7841
2583da7c
YQ
78422016-07-21 Yao Qi <yao.qi@linaro.org>
7843
7844 * mem-break.c (find_gdb_breakpoint): Cast bp to
7845 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7846
21536b36
YQ
78472016-07-21 Yao Qi <yao.qi@linaro.org>
7848
7849 * server.c (handle_v_requests): Support s and S actions
7850 if target_supports_software_single_step return true.
7851
8901d193
YQ
78522016-07-21 Yao Qi <yao.qi@linaro.org>
7853
7854 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7855 is resume_step, call maybe_hw_step.
7856 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7857 and unstop them.
7858 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7859 breakpoints or not.
7860 (proceed_one_lwp): If resume request is resume_step, install
7861 reinsert breakpoints and call maybe_hw_step.
7862
0e9a339e
YQ
78632016-07-21 Yao Qi <yao.qi@linaro.org>
7864
7865 * linux-low.c (proceed_one_lwp): Declare.
7866 (linux_resume_one_thread): Remove local variable 'step'.
7867 Lift code enqueue signal. Call proceed_one_lwp instead of
7868 linux_resume_one_lwp.
7869
4281b351
YQ
78702016-07-21 Yao Qi <yao.qi@linaro.org>
7871
7872 * linux-low.c (linux_resume_one_thread): Call
7873 enqueue_pending_signal.
7874
984a2c04
YQ
78752016-07-21 Yao Qi <yao.qi@linaro.org>
7876
7877 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7878 * inferiors.c (do_restore_current_thread_cleanup): New function.
7879 (make_cleanup_restore_current_thread): Likewise.
7880 * linux-low.c (install_software_single_step_breakpoints): Call
7881 make_cleanup_restore_current_thread. Switch current_thread to
7882 thread.
7883
bec903c9
YQ
78842016-07-21 Yao Qi <yao.qi@linaro.org>
7885
7886 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7887 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7888 (clone_one_breakpoint): Likewise.
7889 (delete_reinsert_breakpoints): Change parameter to thread.
7890 Callers updated.
7891 (has_reinsert_breakpoints): Likewise.
7892 (uninsert_reinsert_breakpoints): Likewise.
7893 (reinsert_reinsert_breakpoints): Likewise.
7894 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7895 (delete_reinsert_breakpoints): Likewise.
7896 (reinsert_reinsert_breakpoints): Likewise.
7897 (uninsert_reinsert_breakpoints): Likewise.
7898 (has_reinsert_breakpoints): Likewise.
7899
63c40ec7
YQ
79002016-07-21 Yao Qi <yao.qi@linaro.org>
7901
7902 * inferiors.c (get_thread_process): Make parameter const.
7903 * inferiors.h (get_thread_process): Update declaration.
7904 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7905 Add new parameters child_thread and parent_thread. Callers
7906 updated.
7907 * mem-break.h (clone_all_breakpoints): Update declaration.
7908
9aa76cd0
YQ
79092016-07-21 Yao Qi <yao.qi@linaro.org>
7910
7911 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7912 <command_list, handler>: Remove.
7913 (struct gdb_breakpoint): New.
7914 (struct other_breakpoint): New.
7915 (struct reinsert_breakpoint): New.
7916 (is_gdb_breakpoint): New function.
7917 (any_persistent_commands): Update command_list if
7918 is_gdb_breakpoint returns true.
7919 (set_breakpoint): Create breakpoints according to their types.
7920 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7921 (set_gdb_breakpoint_1): Likewise.
7922 (set_gdb_breakpoint): Likewise.
7923 (clear_breakpoint_conditions): Change parameter type to
7924 'struct gdb_breakpoint *'.
7925 (clear_breakpoint_commands): Likewise.
7926 (clear_breakpoint_conditions_and_commands): Likewise.
7927 (add_condition_to_breakpoint): Likewise.
7928 (add_breakpoint_condition): Likewise.
7929 (add_commands_to_breakpoint): Likewise.
7930 (check_breakpoints): Check other_breakpoint.
7931 (clone_one_breakpoint): Clone breakpopint according to its type.
7932 * mem-break.h (struct gdb_breakpoint): Declare.
7933 (set_gdb_breakpoint): Update declaration.
7934 (clear_breakpoint_conditions_and_commands): Likewise.
7935 (add_breakpoint_condition): Likewise.
7936 (add_breakpoint_commands): Likewise.
7937 * server.c (process_point_options): Change parameter type to
7938 'struct gdb_breakpoint *'.
7939
811f8301
YQ
79402016-07-21 Yao Qi <yao.qi@linaro.org>
7941
7942 * mem-break.c (set_breakpoint_at): Rename it to ...
7943 (set_breakpoint_type_at): ... it.
7944 (set_breakpoint_at): Call set_breakpoint_type_at.
7945 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7946 * mem-break.h (set_breakpoint_at): Update comments.
7947
b1c51e36
CLT
79482016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7949
7950 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7951 to buf parameter.
7952 (nios2_store_gregset): Likewise.
7953
ced2dffb
PA
79542016-07-01 Pedro Alves <palves@redhat.com>
7955 Antoine Tremblay <antoine.tremblay@ericsson.com>
7956
7957 * linux-low.c: Change interface to take the target lwp_info
7958 pointer directly and return void. Handle detaching from a zombie
7959 thread.
7960 (linux_detach_lwp_callback): New function.
7961 (linux_detach): Detach from the leader thread after detaching from
7962 the clone threads.
7963
2ac09a5b
YQ
79642016-06-28 Yao Qi <yao.qi@linaro.org>
7965
7966 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7967 for variable new_offset.
7968 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7969 (aarch64_ftrace_insn_reloc_cb): Likewise.
7970 (aarch64_ftrace_insn_reloc_tb): Likewise.
7971 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7972 PRIx64 instead of PRIx32.
7973
79e7fd4f
YQ
79742016-06-28 Yao Qi <yao.qi@linaro.org>
7975
7976 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7977 (the_low_target): Install arm_get_syscall_trapinfo.
7978
061fc021
YQ
79792016-06-28 Yao Qi <yao.qi@linaro.org>
7980
7981 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7982 function.
7983 (the_low_target): Install aarch64_get_syscall_trapinfo.
7984
4cc32bec
YQ
79852016-06-28 Yao Qi <yao.qi@linaro.org>
7986
7987 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7988 Callers updated.
7989 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7990 Remove parameter sysno.
7991 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7992 sysret.
7993
782c1122
AA
79942016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7995
7996 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7997 (s390_emit_ne_goto): Likewise.
7998 (s390_emit_lt_goto): Likewise.
7999 (s390_emit_le_goto): Likewise.
8000 (s390_emit_gt_goto): Likewise.
8001 (s390_emit_ge_goto): Likewise.
8002 (s390x_emit_eq_goto): Likewise.
8003 (s390x_emit_ne_goto): Likewise.
8004 (s390x_emit_lt_goto): Likewise.
8005 (s390x_emit_le_goto): Likewise.
8006 (s390x_emit_gt_goto): Likewise.
8007 (s390x_emit_ge_goto): Likewise.
8008 (s390_emit_ops_impl): Mark variable static.
8009 (s390x_emit_ops): Likewise.
8010
2e7b624b
YQ
80112016-06-17 Yao Qi <yao.qi@linaro.org>
8012
8013 * linux-low.c (handle_extended_wait): Call
8014 uninsert_reinsert_breakpoints for the parent process. Remove
8015 reinsert breakpoints from the child process. Reinsert them to
8016 the parent process when vfork is done.
8017 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8018 (reinsert_reinsert_breakpoints): New function.
8019 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8020 (reinsert_reinsert_breakpoints): Declare.
8021
8a81c5d7
YQ
80222016-06-17 Yao Qi <yao.qi@linaro.org>
8023
8024 * linux-low.c (handle_extended_wait): If the parent is doing
8025 step-over, remove the reinsert breakpoints from the forked child.
8026
f50bf8e5
YQ
80272016-06-17 Yao Qi <yao.qi@linaro.org>
8028
8029 * linux-low.c (unsuspend_all_lwps): Declare.
8030 (linux_low_filter_event): If thread exited, call finish_step_over.
8031 If step-over is finished, unsuspend other threads.
8032
8376a3cb
YQ
80332016-06-17 Yao Qi <yao.qi@linaro.org>
8034
8035 * linux-low.c (linux_resume_one_lwp_throw): Assert
8036 has_reinsert_breakpoints returns false.
8037 * mem-break.c (delete_disabled_breakpoints): Assert
8038 bp type isn't reinsert_breakpoint.
8039
f79b145d
YQ
80402016-06-17 Yao Qi <yao.qi@linaro.org>
8041
8042 * linux-low.c (maybe_hw_step): New function.
8043 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8044 (finish_step_over): Switch current_thread to lwp temporarily,
8045 and assert has_reinsert_breakpoints returns true.
8046 (proceed_one_lwp): Call maybe_hw_step.
8047 * mem-break.c (has_reinsert_breakpoints): New function.
8048 * mem-break.h (has_reinsert_breakpoints): Declare.
8049
0ae534d2
JT
80502016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8051
8052 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8053
fcdad592
YQ
80542016-05-17 Yao Qi <yao.qi@linaro.org>
8055
8056 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8057 instead of find_inferior.
8058
9e784964
YQ
80592016-05-05 Yao Qi <yao.qi@linaro.org>
8060
8061 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8062 Initialize res to zero.
8063
cf2ebb6e
YQ
80642016-05-05 Yao Qi <yao.qi@linaro.org>
8065
8066 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8067 to uint32_t.
8068
c1aebf87
UW
80692016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8070
8071 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8072 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8073 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8074
35fd2deb 80752016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8076 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8077
8078 * tracepoint.c (write_inferior_int8): New function.
8079 (cmd_qtenable_disable): Write enable flag using
8080 write_inferior_int8.
8081
484b3c32
YQ
80822016-04-25 Yao Qi <yao.qi@linaro.org>
8083
8084 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8085 (need_step_over_p): Return zero if the LWP has pending signals
8086 can be delivered on software single step target.
8087
85ba7d86
YQ
80882016-04-25 Yao Qi <yao.qi@linaro.org>
8089
8090 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8091 return instead of error.
8092
3539aa13
YQ
80932016-04-22 Yao Qi <yao.qi@linaro.org>
8094
8095 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8096 to 23.
8097
5b061e98
YQ
80982016-04-22 Yao Qi <yao.qi@linaro.org>
8099
8100 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8101 signal when stepping over breakpoint with software single
8102 step.
8103
3451269c
PA
81042016-04-21 Pedro Alves <palves@redhat.com>
8105
8106 * linux-s390-low.c (s390_collect_ptrace_register)
8107 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8108 add casts.
8109 (s390_check_regset): Use void * instead of gdb_byte *.
8110
a2358508
PA
81112016-04-20 Pedro Alves <palves@redhat.com>
8112
8113 * configure: Renegerate.
8114
6885166d
YQ
81152016-04-20 Yao Qi <yao.qi@linaro.org>
8116
8117 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8118 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8119 number 16.
8120 (arm_store_gregset): Likewise.
8121
2b863f51
WT
81222016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8123
8124 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8125 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8126 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8127 (amd64-avx-mpx-linux.c): New rules.
8128 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8129 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8130 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8131 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8132 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8133 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8134 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8135 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8136 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8137 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8138 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8139 * linux-x86-low.c (x86_linux_read_description): Add case for
8140 X86_XSTATE_AVX_MPX_MASK.
8141 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8142 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8143 init_registers_i386_avx_mpx_linux.
8144 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8145 (initialize_low_tracepoint): Call
8146 init_registers_i386_avx_mpx_linux.
8147 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8148 (initialize_low_tracepoint): Call
8149 init_registers_amd64_avx_mpx_linux.
8150 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8151 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8152 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8153 declarations.
8154
9b30624b
PA
81552016-04-18 Pedro Alves <palves@redhat.com>
8156
8157 * configure: Regenerate.
8158
45e3745e
AT
81592016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8160
8161 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8162 (aarch64_emit_sub): Likewise.
8163
2afc13ff
PA
81642016-04-12 Pedro Alves <palves@redhat.com>
8165
8166 * utils.c (prepare_to_throw_exception): Delete.
8167
6e774b13
SM
81682016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8169
8170 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8171
4dca19f8
MK
81722016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8173
8174 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8175
d0a9981f
MK
81762016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8177
8178 * linux-aarch64-ipa.c: Add <elf.h> include.
8179 * linux-ppc-ipa.c: Add <elf.h> include.
8180 * linux-s390-ipa.c: Add <elf.h> include.
8181
252db07e
MK
81822016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8183
8184 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8185 (get_raw_reg_ptr): Likewise.
8186 (get_trace_state_variable_value_ptr): Likewise.
8187 (set_trace_state_variable_value_ptr): Likewise.
8188 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8189 char *.
8190
14e2b6d9
MK
81912016-03-31 Wei-cheng Wang <cole945@gmail.com>
8192 Marcin Kościelnicki <koriakin@0x04.net>
8193
8194 PR/17221
8195 * linux-ppc-low.c (emit_insns): New function.
8196 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8197 (ppc_emit_prologue): New function.
8198 (ppc_emit_epilogue): New function.
8199 (ppc_emit_add): New function.
8200 (ppc_emit_sub): New function.
8201 (ppc_emit_mul): New function.
8202 (ppc_emit_lsh): New function.
8203 (ppc_emit_rsh_signed): New function.
8204 (ppc_emit_rsh_unsigned): New function.
8205 (ppc_emit_ext): New function.
8206 (ppc_emit_zero_ext): New function.
8207 (ppc_emit_log_not): New function.
8208 (ppc_emit_bit_and): New function.
8209 (ppc_emit_bit_or): New function.
8210 (ppc_emit_bit_xor): New function.
8211 (ppc_emit_bit_not): New function.
8212 (ppc_emit_equal): New function.
8213 (ppc_emit_less_signed): New function.
8214 (ppc_emit_less_unsigned): New function.
8215 (ppc_emit_ref): New function.
8216 (ppc_emit_const): New function.
8217 (ppc_emit_reg): New function.
8218 (ppc_emit_pop): New function.
8219 (ppc_emit_stack_flush): New function.
8220 (ppc_emit_swap): New function.
8221 (ppc_emit_stack_adjust): New function.
8222 (ppc_emit_call): New function.
8223 (ppc_emit_int_call_1): New function.
8224 (ppc_emit_void_call_2): New function.
8225 (ppc_emit_if_goto): New function.
8226 (ppc_emit_goto): New function.
8227 (ppc_emit_eq_goto): New function.
8228 (ppc_emit_ne_goto): New function.
8229 (ppc_emit_lt_goto): New function.
8230 (ppc_emit_le_goto): New function.
8231 (ppc_emit_gt_goto): New function.
8232 (ppc_emit_ge_goto): New function.
8233 (ppc_write_goto_address): New function.
8234 (ppc_emit_ops_impl): New static variable.
8235 (ppc64v1_emit_prologue): New function.
8236 (ppc64v2_emit_prologue): New function.
8237 (ppc64_emit_epilogue): New function.
8238 (ppc64_emit_add): New function.
8239 (ppc64_emit_sub): New function.
8240 (ppc64_emit_mul): New function.
8241 (ppc64_emit_lsh): New function.
8242 (ppc64_emit_rsh_signed): New function.
8243 (ppc64_emit_rsh_unsigned): New function.
8244 (ppc64_emit_ext): New function.
8245 (ppc64_emit_zero_ext): New function.
8246 (ppc64_emit_log_not): New function.
8247 (ppc64_emit_bit_and): New function.
8248 (ppc64_emit_bit_or): New function.
8249 (ppc64_emit_bit_xor): New function.
8250 (ppc64_emit_bit_not): New function.
8251 (ppc64_emit_equal): New function.
8252 (ppc64_emit_less_signed): New function.
8253 (ppc64_emit_less_unsigned): New function.
8254 (ppc64_emit_ref): New function.
8255 (ppc64_emit_const): New function.
8256 (ppc64v1_emit_reg): New function.
8257 (ppc64v2_emit_reg): New function.
8258 (ppc64_emit_pop): New function.
8259 (ppc64_emit_stack_flush): New function.
8260 (ppc64_emit_swap): New function.
8261 (ppc64v1_emit_call): New function.
8262 (ppc64v2_emit_call): New function.
8263 (ppc64v1_emit_int_call_1): New function.
8264 (ppc64v2_emit_int_call_1): New function.
8265 (ppc64v1_emit_void_call_2): New function.
8266 (ppc64v2_emit_void_call_2): New function.
8267 (ppc64_emit_if_goto): New function.
8268 (ppc64_emit_eq_goto): New function.
8269 (ppc64_emit_ne_goto): New function.
8270 (ppc64_emit_lt_goto): New function.
8271 (ppc64_emit_le_goto): New function.
8272 (ppc64_emit_gt_goto): New function.
8273 (ppc64_emit_ge_goto): New function.
8274 (ppc64v1_emit_ops_impl): New static variable.
8275 (ppc64v2_emit_ops_impl): New static variable.
8276 (ppc_emit_ops): New function.
8277 (linux_low_target): Wire in ppc_emit_ops.
8278
a2174ba4
MK
82792016-03-31 Wei-cheng Wang <cole945@gmail.com>
8280 Marcin Kościelnicki <koriakin@0x04.net>
8281
8282 PR/17221
8283 * Makefile.in: Add powerpc-*-ipa.o
8284 * configure.srv: Add ipa_obj for powerpc*-linux.
8285 * linux-ppc-ipa.c: New file.
8286 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8287 includes.
8288 (PPC_FIELD): New macro.
8289 (PPC_SEXT): New macro.
8290 (PPC_OP6): New macro.
8291 (PPC_BO): New macro.
8292 (PPC_LI): New macro.
8293 (PPC_BD): New macro.
8294 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8295 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8296 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8297 (ppc_get_thread_area): New function.
8298 (is_elfv2_inferior): New function.
8299 (gen_ds_form): New function.
8300 (GEN_STD): New macro.
8301 (GEN_STDU): New macro.
8302 (GEN_LD): New macro.
8303 (GEN_LDU): New macro.
8304 (gen_d_form): New function.
8305 (GEN_ADDI): New macro.
8306 (GEN_ADDIS): New macro.
8307 (GEN_LI): New macro.
8308 (GEN_LIS): New macro.
8309 (GEN_ORI): New macro.
8310 (GEN_ORIS): New macro.
8311 (GEN_LWZ): New macro.
8312 (GEN_STW): New macro.
8313 (GEN_STWU): New macro.
8314 (gen_xfx_form): New function.
8315 (GEN_MFSPR): New macro.
8316 (GEN_MTSPR): New macro.
8317 (GEN_MFCR): New macro.
8318 (GEN_MTCR): New macro.
8319 (GEN_SYNC): New macro.
8320 (GEN_LWSYNC): New macro.
8321 (gen_x_form): New function.
8322 (GEN_OR): New macro.
8323 (GEN_MR): New macro.
8324 (GEN_LWARX): New macro.
8325 (GEN_STWCX): New macro.
8326 (GEN_CMPW): New macro.
8327 (gen_md_form): New function.
8328 (GEN_RLDICL): New macro.
8329 (GEN_RLDICR): New macro.
8330 (gen_i_form): New function.
8331 (GEN_B): New macro.
8332 (GEN_BL): New macro.
8333 (gen_b_form): New function.
8334 (GEN_BNE): New macro.
8335 (GEN_LOAD): New macro.
8336 (GEN_STORE): New macro.
8337 (gen_limm): New function.
8338 (gen_atomic_xchg): New function.
8339 (gen_call): New function.
8340 (ppc_relocate_instruction): New function.
8341 (ppc_install_fast_tracepoint_jump_pad): New function.
8342 (ppc_get_min_fast_tracepoint_insn_len): New function.
8343 (ppc_get_ipa_tdesc_idx): New function.
8344 (the_low_target): Wire in the new functions.
8345 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8346 tdescs.
8347 * linux-ppc-tdesc.h: New file.
8348
a13c4696
MK
83492016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8350
8351 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8352 (alloc_jump_pad_buffer): New function.
8353 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8354 (alloc_jump_pad_buffer): New function.
8355 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8356 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8357 (alloc_jump_pad_buffer): New function.
8358 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8359 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8360 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8361 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8362
1cda1512
MK
83632016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8364
8365 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8366 * linux-amd64-ipa.c: Likewise.
8367 * linux-i386-ipa.c: Likewise.
8368 * linux-s390-ipa.c: Likewise.
8369 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8370 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8371 set_trace_state_variable_value_ptr.
8372 (struct ipa_sym_addresses): Likewise.
8373 (symbol_list): Likewise.
8374 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8375 accessing gdb_collect directly.
8376 (gdb_collect_ptr_type): New typedef.
8377 (get_raw_reg_ptr_type): New typedef.
8378 (get_trace_state_variable_value_ptr_type): New typedef.
8379 (set_trace_state_variable_value_ptr_type): New typedef.
8380 (gdb_collect_ptr): New global.
8381 (get_raw_reg_ptr): New global.
8382 (get_trace_state_variable_value_ptr): New global.
8383 (set_trace_state_variable_value_ptr): New global.
8384 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8385 accessing get_raw_reg directly.
8386 (get_get_tsv_func_addr): Likewise for
8387 get_trace_state_variable_value_ptr.
8388 (get_set_tsv_func_addr): Likewise for
8389 set_trace_state_variable_value_ptr.
8390 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8391
72fb5488
SM
83922016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8393
8394 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8395
28170b88
MK
83962016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8397
8398 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8399 packets.
8400 (relocate_instruction): Remove own_buf.
8401 * server.c (own_buf): Make global.
8402 (handle_v_requests): Make global.
8403 * server.h (own_buf): New declaration.
8404 (handle_v_requests): New prototype.
8405
f39e8743
MK
84062016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8407
8408 PR 18377
8409 * linux-s390-low.c (add_insns): New function.
8410 (s390_emit_prologue): New function.
8411 (s390_emit_epilogue): New function.
8412 (s390_emit_add): New function.
8413 (s390_emit_sub): New function.
8414 (s390_emit_mul): New function.
8415 (s390_emit_lsh): New function.
8416 (s390_emit_rsh_signed): New function.
8417 (s390_emit_rsh_unsigned): New function.
8418 (s390_emit_ext): New function.
8419 (s390_emit_log_not): New function.
8420 (s390_emit_bit_and): New function.
8421 (s390_emit_bit_or): New function.
8422 (s390_emit_bit_xor): New function.
8423 (s390_emit_bit_not): New function.
8424 (s390_emit_equal): New function.
8425 (s390_emit_less_signed): New function.
8426 (s390_emit_less_unsigned): New function.
8427 (s390_emit_ref): New function.
8428 (s390_emit_if_goto): New function.
8429 (s390_emit_goto): New function.
8430 (s390_write_goto_address): New function.
8431 (s390_emit_litpool): New function.
8432 (s390_emit_const): New function.
8433 (s390_emit_call): New function.
8434 (s390_emit_reg): New function.
8435 (s390_emit_pop): New function.
8436 (s390_emit_stack_flush): New function.
8437 (s390_emit_zero_ext): New function.
8438 (s390_emit_swap): New function.
8439 (s390_emit_stack_adjust): New function.
8440 (s390_emit_set_r2): New function.
8441 (s390_emit_int_call_1): New function.
8442 (s390_emit_void_call_2): New function.
8443 (s390_emit_eq_goto): New function.
8444 (s390_emit_ne_goto): New function.
8445 (s390_emit_lt_goto): New function.
8446 (s390_emit_le_goto): New function.
8447 (s390_emit_gt_goto): New function.
8448 (s390_emit_ge_goto): New function.
8449 (s390x_emit_prologue): New function.
8450 (s390x_emit_epilogue): New function.
8451 (s390x_emit_add): New function.
8452 (s390x_emit_sub): New function.
8453 (s390x_emit_mul): New function.
8454 (s390x_emit_lsh): New function.
8455 (s390x_emit_rsh_signed): New function.
8456 (s390x_emit_rsh_unsigned): New function.
8457 (s390x_emit_ext): New function.
8458 (s390x_emit_log_not): New function.
8459 (s390x_emit_bit_and): New function.
8460 (s390x_emit_bit_or): New function.
8461 (s390x_emit_bit_xor): New function.
8462 (s390x_emit_bit_not): New function.
8463 (s390x_emit_equal): New function.
8464 (s390x_emit_less_signed): New function.
8465 (s390x_emit_less_unsigned): New function.
8466 (s390x_emit_ref): New function.
8467 (s390x_emit_if_goto): New function.
8468 (s390x_emit_const): New function.
8469 (s390x_emit_call): New function.
8470 (s390x_emit_reg): New function.
8471 (s390x_emit_pop): New function.
8472 (s390x_emit_stack_flush): New function.
8473 (s390x_emit_zero_ext): New function.
8474 (s390x_emit_swap): New function.
8475 (s390x_emit_stack_adjust): New function.
8476 (s390x_emit_int_call_1): New function.
8477 (s390x_emit_void_call_2): New function.
8478 (s390x_emit_eq_goto): New function.
8479 (s390x_emit_ne_goto): New function.
8480 (s390x_emit_lt_goto): New function.
8481 (s390x_emit_le_goto): New function.
8482 (s390x_emit_gt_goto): New function.
8483 (s390x_emit_ge_goto): New function.
8484 (s390_emit_ops): New function.
8485 (struct linux_target_ops): Fill in emit_ops hook.
8486
abd9baf9
MK
84872016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8488
8489 PR 18377
8490 * Makefile.in: Add s390 IPA files.
8491 * configure.srv: Build IPA for s390.
8492 * linux-s390-ipa.c: New file.
8493 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8494 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8495 (tdesc_s390_linux32): Likewise.
8496 (init_registers_s390_linux32v1): Likewise.
8497 (tdesc_s390_linux32v1): Likewise.
8498 (init_registers_s390_linux32v2): Likewise.
8499 (tdesc_s390_linux32v2): Likewise.
8500 (init_registers_s390_linux64): Likewise.
8501 (tdesc_s390_linux64): Likewise.
8502 (init_registers_s390_linux64v1): Likewise.
8503 (tdesc_s390_linux64v1): Likewise.
8504 (init_registers_s390_linux64v2): Likewise.
8505 (tdesc_s390_linux64v2): Likewise.
8506 (init_registers_s390_te_linux64): Likewise.
8507 (tdesc_s390_te_linux64): Likewise.
8508 (init_registers_s390_vx_linux64): Likewise.
8509 (tdesc_s390_vx_linux64): Likewise.
8510 (init_registers_s390_tevx_linux64): Likewise.
8511 (tdesc_s390_tevx_linux64): Likewise.
8512 (init_registers_s390x_linux64): Likewise.
8513 (tdesc_s390x_linux64): Likewise.
8514 (init_registers_s390x_linux64v1): Likewise.
8515 (tdesc_s390x_linux64v1): Likewise.
8516 (init_registers_s390x_linux64v2): Likewise.
8517 (tdesc_s390x_linux64v2): Likewise.
8518 (init_registers_s390x_te_linux64): Likewise.
8519 (tdesc_s390x_te_linux64): Likewise.
8520 (init_registers_s390x_vx_linux64): Likewise.
8521 (tdesc_s390x_vx_linux64): Likewise.
8522 (init_registers_s390x_tevx_linux64): Likewise.
8523 (tdesc_s390x_tevx_linux64): Likewise.
8524 (have_hwcap_s390_vx): New static variable.
8525 (s390_arch_setup): Fill have_hwcap_s390_vx.
8526 (s390_get_thread_area): New function.
8527 (s390_ft_entry_gpr_esa): New const.
8528 (s390_ft_entry_gpr_zarch): New const.
8529 (s390_ft_entry_misc): New const.
8530 (s390_ft_entry_fr): New const.
8531 (s390_ft_entry_vr): New const.
8532 (s390_ft_main_31): New const.
8533 (s390_ft_main_64): New const.
8534 (s390_ft_exit_fr): New const.
8535 (s390_ft_exit_vr): New const.
8536 (s390_ft_exit_misc): New const.
8537 (s390_ft_exit_gpr_esa): New const.
8538 (s390_ft_exit_gpr_zarch): New const.
8539 (append_insns): New function.
8540 (s390_relocate_instruction): New function.
8541 (s390_install_fast_tracepoint_jump_pad): New function.
8542 (s390_get_min_fast_tracepoint_insn_len): New function.
8543 (s390_get_ipa_tdesc_idx): New function.
8544 (struct linux_target_ops): Wire in the above functions.
8545 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8546 * linux-s390-tdesc.h: New file.
8547
a4105d04
MK
85482016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8549
8550 * linux-s390-low.c (s390_supports_tracepoints): New function.
8551 (struct linux_target_ops): Fill supports_tracepoints hook.
8552
35ac8b3e
YQ
85532016-03-18 Yao Qi <yao.qi@linaro.org>
8554
8555 * linux-low.c (lwp_signal_can_be_delivered): New function.
8556 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8557
94610ec4
YQ
85582016-03-18 Yao Qi <yao.qi@linaro.org>
8559
8560 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8561 0 if signal is enqueued. Remove 'signal' from one debugging
8562 message. Move one debugging message to some lines below.
8563 Remove code setting 'signal' to 0.
8564
80aea927
YQ
85652016-03-18 Yao Qi <yao.qi@linaro.org>
8566
8567 * linux-low.c (linux_low_filter_event): Remove redundant
8568 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8569
b04fd3be
MK
85702016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8571
8572 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8573 (struct linux_target_ops): Wire in the above.
8574
c40c8d4b
YQ
85752016-03-03 Yao Qi <yao.qi@linaro.org>
8576
8577 * linux-low.c: Update comments to start_step_over.
8578
0f8288ae
YQ
85792016-03-03 Yao Qi <yao.qi@linaro.org>
8580
8581 PR server/19736
8582 * linux-low.c (handle_extended_wait): Set child suspended
8583 if event_lwp->bp_reinsert isn't zero.
8584
fdbd04a8
YQ
85852016-03-02 Yao Qi <yao.qi@linaro.org>
8586
8587 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8588 enqueue_pending_signal.
8589
6896a8fa
MK
85902016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8591
8592 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8593 is actually loaded.
8594
ab503087
MK
85952016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8596
8597 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8598 (s390_regmap_3264) [!__s390x__]: New global.
8599 (s390_collect_ptrace_register): Skip map entries containing -1.
8600 (s390_supply_ptrace_register): Ditto.
8601 (s390_fill_gprs_high): New function.
8602 (s390_store_gprs_high): New function.
8603 (s390_regsets): Add NT_S390_HIGH_GPRS.
8604 (s390_get_hwcap): Enable on 31-bit.
8605 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8606 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8607 Detect NT_S390_HIGH_GPRS.
8608 (s390_usrregs_info_3264): Enable on 31-bit.
8609 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8610 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8611
ae91f625
MK
86122016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8613
8614 PR gdb/13808
8615 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8616 * configure.srv: Ditto.
8617 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8618 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8619 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8620 (init_registers_amd64_linux): Remove prototype.
8621 (tdesc_amd64_linux): Remove declaration.
8622 (get_ipa_tdesc): New function.
8623 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8624 initialize remaining tdescs.
8625 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8626 (init_registers_i386_linux): Remove prototype.
8627 (tdesc_i386_linux): Remove declaration.
8628 (get_ipa_tdesc): New function.
8629 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8630 initialize remaining tdescs.
8631 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8632 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8633 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8634 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8635 (x86_get_ipa_tdesc_idx): New function.
8636 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8637 * linux-x86-tdesc.h: New file.
8638 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8639 (target_get_ipa_tdesc_idx): New macro.
8640 * tracepoint.c (ipa_tdesc_idx): New macro.
8641 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8642 (symbol_list): Add ipa_tdesc_idx.
8643 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8644 (ipa_tdesc): Remove.
8645 (ipa_tdesc_idx): New variable.
8646 (get_context_regcache): Use get_ipa_tdesc.
8647 (gdb_collect): Ditto.
8648 (gdb_probe): Ditto.
8649 * tracepoint.h (get_ipa_tdesc): New prototype.
8650 (ipa_tdesc): Remove.
8651
e7ad2f14
PA
86522016-02-24 Pedro Alves <palves@redhat.com>
8653
8654 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8655 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8656 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8657 Factor out common code between the USE_SIGTRAP_SIGINFO and
8658 !USE_SIGTRAP_SIGINFO blocks.
8659 (linux_low_filter_event): Call save_stop_reason instead of
8660 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8661 Update comments.
8662 (linux_wait_1): Update comments.
8663
657f9cde
WW
86642016-02-24 Wei-cheng Wang <cole945@gmail.com>
8665
8666 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8667 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8668 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8669 ppc_insert_point, ppc_remove_point.
8670
b00b61e1
MK
86712016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8672
8673 * linux-s390-low.c (s390_supports_z_point_type): New function.
8674 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8675
553cb527
YQ
86762016-02-16 Yao Qi <yao.qi@linaro.org>
8677
8678 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8679 PC. Get pc from regcache_read_pc.
8680
a5652c21
YQ
86812016-02-12 Yao Qi <yao.qi@linaro.org>
8682
8683 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8684 or linux_get_pc_32bit.
8685 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8686
ed443b61
YQ
86872016-02-12 Yao Qi <yao.qi@linaro.org>
8688
8689 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8690 arm_linux_get_next_pcs_fixup.
8691
020ecd38
MK
86922016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8693
8694 * tracepoint.c (x_tracepoint_action_download): Change
8695 write_inferior_data_ptr to write_inferior_data_pointer.
8696 (cmd_qtstart): Likewise.
8697 (write_inferior_data_ptr): Remove.
8698 (download_agent_expr): Change write_inferior_data_ptr to
8699 write_inferior_data_pointer.
8700 (download_tracepoint_1): Likewise.
8701 (download_tracepoint): Likewise.
8702 (download_trace_state_variables): Likewise.
8703
7cae9051
WW
87042016-02-11 Wei-cheng Wang <cole945@gmail.com>
8705 Marcin Kościelnicki <koriakin@0x04.net>
8706
8707 * tracepoint.c (struct tracepoint_action_ops): Remove.
8708 (struct tracepoint_action): Remove ops.
8709 (m_tracepoint_action_download, r_tracepoint_action_download)
8710 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8711 size and offset accordingly.
8712 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8713 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8714 (tracepoint_action_send, tracepoint_action_download): New functions.
8715 Helpers for trace action handlers.
8716 (add_tracepoint_action): Remove setup actions ops.
8717 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8718
9f6a71b4
YQ
87192016-02-10 Yao Qi <yao.qi@linaro.org>
8720
8721 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8722
1e94266c
SM
87232016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8724
8725 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8726 to AC_OUTPUT.
8727 * configure: Regenerate.
8728
8adce034
SM
87292016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8730
8731 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8732 void * to gdb_byte *.
8733 * linux-low.c (siginfo_fixup): Likewise.
8734 (linux_xfer_siginfo): Likewise.
8735 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8736 Likewise.
8737 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8738
93813b37
WT
87392016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8740
8741 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8742 to srv_tgtobj.
8743 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8744 to srv_tgtobj.
8745 * linux-x86-low.c [__x86_64__]: Include
8746 "nat/amd64-linux-siginfo.h".
8747 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8748 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8749 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8750 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8751 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8752 (cpt_si_fd, si_timerid, si_overrun): Move from
8753 nat/amd64-linux-siginfo.c.
8754 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8755
8424cc97
SM
87562016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8757
8758 * server.c (skip_to_semicolon): Remove.
8759 (process_point_options): Use strchrnul instead of
8760 skip_to_semicolon.
8761
4d18591b
YQ
87622016-01-26 Yao Qi <yao.qi@linaro.org>
8763
8764 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8765 * linux-low.c (install_software_single_step_breakpoints): Don't
8766 call regcache_read_pc.
8767 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8768 argument pc.
8769
d8020970
YQ
87702016-01-26 Yao Qi <yao.qi@linaro.org>
8771
8772 * linux-low.c (install_software_single_step_breakpoints): Call
8773 regcache_read_pc instead of get_pc.
8774
8b207339
YQ
87752016-01-26 Yao Qi <yao.qi@linaro.org>
8776
8777 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8778 (unblock_async_io): Rename to ...
8779 (block_unblock_async_io): ... it. New function.
8780 (enable_async_io): Don't install SIGIO handler. Unblock it
8781 instead.
8782 (disable_async_io): Don't ignore SIGIO. Block it instead.
8783 (initialize_async_io): Install SIGIO handler. Don't call
8784 unblock_async_io.
8785
18879fef
YQ
87862016-01-26 Yao Qi <yao.qi@linaro.org>
8787
8788 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8789 first character is '\003', call *the_target->request_interrupt.
8790
a0f8e08a
YQ
87912016-01-25 Yao Qi <yao.qi@linaro.org>
8792
8793 * remote-utils.c (new_thread_notify): Remove.
8794 (dead_thread_notify): Likewise.
8795 * remote-utils.h (new_thread_notify): Remove declaration.
8796 (dead_thread_notify): Likewise.
8797
cc5fd9ab
MK
87982016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8799
8800 * gdb.trace/pending.exp: Fix expected message on continue.
8801
99e8eb11
MK
88022016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8803
8804 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8805 it works properly on big-endian machines where sizeof (CORE_ADDR)
8806 != sizeof (void *).
8807
a994041d
PA
88082016-01-21 Pedro Alves <palves@redhat.com>
8809
8810 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8811 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8812 * configure: Regenerate.
8813
f7a6a40d
YQ
88142016-01-21 Yao Qi <yao.qi@linaro.org>
8815
8816 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8817 is_thumb and set it according to CPSR saved on the stack.
8818 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8819 arm_sigreturn_next_pc.
8820
6f69e520
YQ
88212016-01-18 Yao Qi <yao.qi@linaro.org>
8822
8823 * linux-low.c (linux_set_pc_64bit): New function.
8824 (linux_get_pc_64bit): New function.
8825 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8826 Declare.
8827 * linux-sparc-low.c (debug_threads): Remove declaration.
8828 (sparc_get_pc): Remove.
8829 (the_low_target): Use linux_get_pc_64bit instead of
8830 sparc_get_pc.
8831 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8832 (the_low_target): Use linux_get_pc_64bit and
8833 linux_set_pc_64bit.
8834
276d4552
YQ
88352016-01-18 Yao Qi <yao.qi@linaro.org>
8836
8837 * linux-arm-low.c (debug_threads): Remove declaration.
8838 (arm_get_pc, arm_set_pc): Remove.
8839 (the_low_target): Use linux_get_pc_32bit and
8840 linux_set_pc_32bit.
8841 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8842 (the_low_target): Use linux_get_pc_32bit and
8843 linux_set_pc_32bit.
8844 * linux-cris-low.c (debug_threads): Remove declaration.
8845 (cris_get_pc, cris_set_pc,): Remove.
8846 (the_low_target): Use linux_get_pc_32bit and
8847 linux_set_pc_32bit.
8848 * linux-crisv32-low.c (debug_threads): Remove declaration.
8849 (cris_get_pc, cris_set_pc): Remove.
8850 (the_low_target): Use linux_get_pc_32bit and
8851 linux_set_pc_32bit.
8852 * linux-low.c: Include inttypes.h.
8853 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8854 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8855 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8856 (the_low_target): Use linux_get_pc_32bit and
8857 linux_set_pc_32bit.
8858 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8859 (the_low_target): Use linux_get_pc_32bit and
8860 linux_set_pc_32bit.
8861 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8862 (the_low_target): Use linux_get_pc_32bit and
8863 linux_set_pc_32bit.
8864 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8865 (the_low_target): Use linux_get_pc_32bit and
8866 linux_set_pc_32bit.
8867 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8868 (the_low_target): Use linux_get_pc_32bit and
8869 linux_set_pc_32bit.
8870
eb0edac8
GB
88712016-01-18 Gary Benson <gbenson@redhat.com>
8872
8873 * configure.ac (AC_FUNC_FORK): New check.
8874 * config.in: Regenerate.
8875 * configure: Likewise.
8876
1b451dda
YQ
88772016-01-14 Yao Qi <yao.qi@linaro.org>
8878
8879 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8880 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8881 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8882 arm_get_next_pcs_ctor.
8883
82075af2
JS
88842016-01-12 Josh Stone <jistone@redhat.com>
8885 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8886
8887 * inferiors.h: Include "gdb_vecs.h".
8888 (struct process_info): Add syscalls_to_catch.
8889 * inferiors.c (remove_process): Free syscalls_to_catch.
8890 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8891 syscall_return stops.
8892 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8893 * server.c (handle_general_set): Handle QCatchSyscalls.
8894 (handle_query): Report support for QCatchSyscalls.
8895 * target.h (struct target_ops): Add supports_catch_syscall.
8896 (target_supports_catch_syscall): New macro.
8897 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8898 (struct lwp_info): Add syscall_state.
8899 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8900 Maintain syscall_state and syscalls_to_catch across exec.
8901 (get_syscall_trapinfo): New function, proxy to the_low_target.
8902 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8903 (linux_low_filter_event): Toggle syscall_state entry/return for
8904 syscall traps, and set it ignored for all others.
8905 (gdb_catching_syscalls_p): New function.
8906 (gdb_catch_this_syscall_p): New function.
8907 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8908 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8909 (linux_supports_catch_syscall): New function.
8910 (linux_target_ops): Install it.
8911 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8912 (the_low_target): Install it.
8913
8f13a3ce
MF
89142016-01-12 Mike Frysinger <vapier@gentoo.org>
8915
8916 * acinclude.m4: Include new ../warning.m4 file.
8917 * configure: Regenerated.
8918 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8919
5b3da067
MF
89202016-01-12 Mike Frysinger <vapier@gentoo.org>
8921
8922 * ax.c (is_goto_target): Mark static.
8923 * linux-low.c (register_addr): Likewise.
8924 (linux_fetch_registers, linux_store_registers): Likewise.
8925 * mem-break.c (any_persistent_commands): Fix old prototype.
8926 (add_commands_to_breakpoint): Mark static.
8927 * regcache.c (find_register_by_name): Delete unused func.
8928 * remote-utils.c (hex_or_minus_one): Mark static.
8929 * server.c (monitor_show_help): Mark static.
8930 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8931 handle_v_requests): Likewise.
8932
bc504a31
PA
89332016-01-12 Pedro Alves <palves@redhat.com>
8934
8935 Remove use of the registered trademark symbol throughout.
8936
5a0dd67a
YQ
89372016-01-08 Yao Qi <yao.qi@linaro.org>
8938
8939 * remote-utils.c (getpkt): If c is '\003', call target hook
8940 request_interrupt.
8941
b2ca446f
YQ
89422016-01-06 Yao Qi <yao.qi@linaro.org>
8943
8944 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8945 linux-aarch32-low.c.
8946 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8947 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8948 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8949 (thumb2_breakpoint): Declare.
8950 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8951 linux-aarch32-low.h.
8952 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8953 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8954 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8955
edd88788
JB
89562016-01-01 Joel Brobecker <brobecker@adacore.com>
8957
8958 * gdbreplay.c (gdbreplay_version): Change copyright year in
8959 version message.
8960 * server.c (gdbserver_version): Likewise.
8961
65da7f14
PP
89622015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8963
8964 * server.c (crc32_table): Delete.
8965 (crc32): Use libiberty's xcrc32 function.
8966
4abd5ed2
JB
89672015-12-22 Joel Brobecker <brobecker@adacore.com>
8968
8969 * lynx-low.c (lynx_delete_thread_callback): New function.
8970 (lynx_mourn): Properly delete our process and all of its
8971 threads. Remove call to clear_inferiors.
8972
0e50fe5c
JB
89732015-12-22 Joel Brobecker <brobecker@adacore.com>
8974
8975 * target.c (thread_search_callback): Add check that
8976 the thread_stopped target callback is not NULL before
8977 calling it.
8978
35adc03f
YQ
89792015-12-21 Yao Qi <yao.qi@linaro.org>
8980
8981 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8982 arm breakpoint.
8983
bd2b2909
AT
89842015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8985
8986 * server.c (handle_query): Call target_supports_software_single_step.
8987
7fe5e27e
AT
89882015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8989
8990 * linux-low.c (single_step): New function.
8991 (linux_resume_one_lwp_throw): Call single_step.
8992 (start_step_over): Likewise.
8993
d9311bfa
AT
89942015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8995
8996 * Makefile.in (SFILES): Append arch/arm-linux.c,
8997 arch/arm-get-next-pcs.c.
8998 (arm-linux.o): New rule.
8999 (arm-get-next-pcs.o): New rule.
9000 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9001 arm-linux.o.
9002 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9003 to linux-aarch32-low.c.
9004 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9005 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9006 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9007 (thumb2_breakpoint_len): Likewise.
9008 (arm_is_thumb_mode): Make non-static.
9009 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9010 from linux-aarch32-low.c.
9011 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9012 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9013 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9014 (thumb2_breakpoint_len): Likewise.
9015 (arm_is_thumb_mode): New declaration.
9016 * linux-arm-low.c: Include arch/arm-linux.h
9017 aarch/arm-get-next-pcs.h, sys/syscall.h.
9018 (get_next_pcs_ops): New struct.
9019 (get_next_pcs_addr_bits_remove): New function.
9020 (get_next_pcs_is_thumb): New function.
9021 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9022 (arm_sigreturn_next_pc): Likewise.
9023 (get_next_pcs_syscall_next_pc): Likewise.
9024 (arm_gdbserver_get_next_pcs): Likewise.
9025 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9026 Initialize.
9027 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9028 * server.h: Include gdb_vecs.h.
9029
68ce2059
AT
90302015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9031
9032 * Makefile.in (SFILES): Append common/common-regcache.c.
9033 (OBS): Append common-regcache.o.
9034 (common-regcache.o): New rule.
9035 * regcache.c (init_register_cache): Initialize cache to
9036 REG_UNAVAILABLE.
9037 (regcache_raw_read_unsigned): New function.
9038 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9039 register_status enum.
9040
fa5308bd
AT
90412015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9042
9043 * linux-aarch64-low.c (the_low_targets): Rename
9044 breakpoint_reinsert_addr to get_next_pcs.
9045 * linux-arm-low.c (the_low_targets): Likewise.
9046 * linux-bfin-low.c (the_low_targets): Likewise.
9047 * linux-cris-low.c (the_low_targets): Likewise.
9048 * linux-crisv32-low.c (the_low_targets): Likewise.
9049 * linux-low.c (can_software_single_step): Likewise.
9050 (install_software_single_step_breakpoints): New function.
9051 (start_step_over): Use install_software_single_step_breakpoints.
9052 * linux-low.h: New CORE_ADDR vector.
9053 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9054 get_next_pcs.
9055 * linux-mips-low.c (the_low_targets): Likewise.
9056 * linux-nios2-low.c (the_low_targets): Likewise.
9057 * linux-sparc-low.c (the_low_targets): Likewise.
9058
4a6ed09b
PA
90592015-12-17 Pedro Alves <palves@redhat.com>
9060
9061 * linux-low.c (linux_kill_one_lwp): Remove references to
9062 LinuxThreads.
9063 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9064 to 'kill'.
9065 (linux_init_signals): Delete.
9066 (initialize_low): Adjust.
9067 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9068
7544db95
PA
90692015-12-16 Pedro Alves <palves@redhat.com>
9070
9071 * configure.ac (compiler warning flags): When testing a
9072 -Wno-foo option, check whether -Wfoo works instead.
9073 * configure: Regenerate.
9074
8020350c
DB
90752015-12-11 Don Breazeal <donb@codesourcery.com>
9076
9077 * server.c (process_serial_event): Don't exit from gdbserver
9078 in remote mode if there are still active inferiors.
9079
db91f502
YQ
90802015-12-11 Yao Qi <yao.qi@linaro.org>
9081
9082 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9083 arm_breakpoint_at if the process is 32-bit.
9084
b37a6290
YQ
90852015-12-11 Yao Qi <yao.qi@linaro.org>
9086
9087 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9088 arm breakpoint.
9089
17b1509a
YQ
90902015-12-07 Yao Qi <yao.qi@linaro.org>
9091
9092 * configure.srv: Append arm.o to srv_tgtobj for
9093 aarch64*-*-linux* target.
9094 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9095 from linux-arm-low.c.
9096 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9097 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9098 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9099 (thumb2_breakpoint_len): Likewise.
9100 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9101 (arm_breakpoint_kinds): Likewise.
9102 (arm_breakpoint_kind_from_pc): Likewise.
9103 (arm_sw_breakpoint_from_kind): Likewise.
9104 (arm_breakpoint_kind_from_current_state): Likewise.
9105 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9106 (arm_sw_breakpoint_from_kind): Declare.
9107 (arm_breakpoint_kind_from_current_state): Declare.
9108 (arm_breakpoint_at): Declare.
9109 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9110 arm_sw_breakpoint_from_kind if process is 32-bit.
9111 (aarch64_breakpoint_kind_from_pc): New function.
9112 (aarch64_breakpoint_kind_from_current_state): New function.
9113 (the_low_target): Initialize fields breakpoint_kind_from_pc
9114 and breakpoint_kind_from_current_state.
9115 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9116 linux-aarch32-low.c.
9117 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9118 (arm_breakpoint, arm_breakpoint_len): Likewise.
9119 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9120 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9121 (arm_is_thumb_mode): Likewise.
9122 (arm_breakpoint_at): Likewise.
9123 (arm_breakpoint_kind_from_pc): Likewise.
9124 (arm_sw_breakpoint_from_kind): Likewise.
9125 (arm_breakpoint_kind_from_current_state): Likewise.
9126
9127 Revert:
9128 2015-08-04 Yao Qi <yao.qi@linaro.org>
9129
9130 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9131 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9132 * server.c (extended_protocol): Remove "static".
9133 * server.h (extended_protocol): Declare it.
9134
ece66d65
JS
91352015-12-04 Josh Stone <jistone@redhat.com>
9136
9137 * target.h (struct target_ops) <arch_setup>: Rename to ...
9138 (struct target_ops) <post_create_inferior>: ... this.
9139 (target_arch_setup): Rename to ...
9140 (target_post_create_inferior): ... this, calling post_create_inferior.
9141 * server.c (start_inferior): Update target_arch_setup calls to
9142 target_post_create_inferior.
9143 * linux-low.c (linux_low_ptrace_options): Forward declare.
9144 (linux_arch_setup): Update its comment for general use.
9145 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9146 (struct linux_target_ops): Use linux_post_create_inferior.
9147 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9148 to post_create_inferior.
9149 * nto-low.c (struct nto_target_ops): Likewise.
9150 * spu-low.c (struct spu_target_ops): Likewise.
9151 * win32-low.c (struct win32_target_ops): Likewise.
9152
e58c48b4
AT
91532015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9154
9155 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9156
fbec8956
AT
91572015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9158
9159 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9160 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9161 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9162 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9163 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9164 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9165 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9166 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9167 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9168 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9169 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9170 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9171
9b4c5f87
AT
91722015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9173
9174 * linux-low.c (linux_look_up_symbols): Don't call
9175 linux_supports_traceclone.
9176 * linux-low.h (thread_db_init): Remove use_events argument.
9177 * thread-db.c (thread_db_use_event): Remove global variable.
9178 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9179 (struct thread_db) <td_create_bp>: Remove field.
9180 (thread_db_create_event): Remove function.
9181 (thread_db_enable_reporting): Likewise.
9182 (find_one_thread): Don't check for thread_db_use_events.
9183 (attach_thread): Likewise.
9184 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9185 (try_thread_db_load_1): Don't check for thread_db_use_events.
9186 (thread_db_init): Remove use_events argument and thread events
9187 handling.
9188 (remove_thread_event_breakpoints): Remove function.
9189 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9190
7d00775e
AT
91912015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9192
9193 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9194 New function.
9195 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9196 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9197 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9198 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9199 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9200 Initialize.
9201 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9202 New function.
9203 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9204 * linux-low.c (can_hardware_single_step): Use
9205 supports_hardware_single_step.
9206 (can_software_single_step): New function.
9207 (start_step_over): Call can_software_single_step.
9208 (linux_supports_hardware_single_step): New function.
9209 (struct target_ops) <supports_software_single_step>: Initialize.
9210 * linux-low.h (struct linux_target_ops)
9211 <supports_hardware_single_step>: Initialize.
9212 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9213 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9214 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9215 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9216 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9217 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9218 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9219 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9220 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9221 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9222 Initialize.
9223 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9224 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9225 Initialize.
9226 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9227 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9228 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9229 New function.
9230 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9231 * target.h (struct target_ops): <supports_software_single_step>:
9232 New field.
9233 (target_supports_software_single_step): New macro.
9234
2d97cd35
AT
92352015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9236
9237 * linux-low.c (linux_wait_1): Fix pc advance condition.
9238 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9239 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9240
769ef81f
AT
92412015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9242
9243 * linux-arm-low.c (arm_is_thumb_mode): New function.
9244 (arm_breakpoint_at): Use arm_is_thumb_mode.
9245 (arm_breakpoint_kind_from_current_state): New function.
9246 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9247 Initialize.
9248 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9249 (linux_breakpoint_kind_from_current_state): New function.
9250 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9251 * linux-low.h (struct linux_target_ops)
9252 <breakpoint_kind_from_current_state>: New field.
9253 * target.h (struct target_ops): Likewise.
9254 (target_breakpoint_kind_from_current_state): New macro.
9255
1bebeeca
PA
92562015-11-30 Pedro Alves <palves@redhat.com>
9257
9258 * linux-low.c (linux_resume): Wake up the event loop before
9259 returning.
9260
a67a9fae
PA
92612015-11-30 Pedro Alves <palves@redhat.com>
9262
9263 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9264 check.
9265 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9266 to -1.
9267 * target.c (struct thread_search): New structure.
9268 (thread_search_callback): New function.
9269 (prev_general_thread): New global.
9270 (prepare_to_access_memory, done_accessing_memory): New functions.
9271 * target.h (prepare_to_access_memory, done_accessing_memory):
9272 Replace macros with function declarations.
9273
f2faf941
PA
92742015-11-30 Pedro Alves <palves@redhat.com>
9275
9276 PR 14618
9277 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9278 report TARGET_WAITKIND_NO_RESUMED.
9279 * remote-utils.c (prepare_resume_reply): Handle
9280 TARGET_WAITKIND_NO_RESUMED.
9281 * server.c (report_no_resumed): New global.
9282 (handle_query) <qSupported>: Handle "no-resumed+". Report
9283 "no-resumed+" support.
9284 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9285 return error if the client doesn't support no-resumed events.
9286 (push_stop_notification): New function.
9287 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9288 events if the client supports them.
9289
a681f9c9
PA
92902015-11-30 Pedro Alves <palves@redhat.com>
9291
9292 * linux-low.c (thread_still_has_status_pending_p): Don't check
9293 vCont;t here.
9294 (lwp_resumed): New function.
9295 (status_pending_p_callback): Return early if the LWP is not
9296 supposed to be resumed.
9297
65706a29
PA
92982015-11-30 Pedro Alves <palves@redhat.com>
9299
9300 * linux-low.c (handle_extended_wait): Assert that the LWP's
9301 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9302 thread create events, leave the new child's status pending.
9303 (linux_low_filter_event): If GDB wants to hear about thread exit
9304 events, leave the LWP marked dead and don't delete it.
9305 (linux_wait_for_event_filtered): Don't check for thread exit.
9306 (filter_exit_event): New function.
9307 (linux_wait_1): Use it, when returning an exit event.
9308 (linux_resume_one_lwp_throw): Assert that the LWP's
9309 waitstatus is TARGET_WAITKIND_IGNORE.
9310 * remote-utils.c (prepare_resume_reply): Handle
9311 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9312 * server.c (report_thread_events): New global.
9313 (handle_general_set): Handle QThreadEvents.
9314 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9315 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9316 TARGET_WAITKIND_THREAD_EXITED.
9317 * server.h (report_thread_events): Declare.
9318
56cf4bed
PA
93192015-11-30 Pedro Alves <palves@redhat.com>
9320
9321 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9322 the thread's last_resume_kind was resume_stop.
9323
500c1d85
PA
93242015-11-30 Pedro Alves <palves@redhat.com>
9325
9326 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9327 before returning.
9328
de979965
PA
93292015-11-30 Pedro Alves <palves@redhat.com>
9330
9331 * server.c (handle_v_requests): Handle vCtrlC.
9332
34c65914
PA
93332015-11-30 Pedro Alves <palves@redhat.com>
9334
9335 * gdbthread.h (find_any_thread_of_pid): Declare.
9336 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9337 functions.
9338 * server.c (handle_query): If current_thread is NULL, look for
9339 another thread of the selected process.
9340
79efa585 93412015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9342 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9343
9344 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9345 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9346 name in reply.
9347 * target.h (struct target_ops) <thread_name>: New field.
9348 (target_thread_name): New macro.
9349
80d82c19
JB
93502015-11-23 Joel Brobecker <brobecker@adacore.com>
9351
9352 * regcache.h (regcache_invalidate_pid): Add declaration.
9353 * regcache.c (regcache_invalidate_pid): New function, extracted
9354 from regcache_invalidate.
9355 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9356 Add trivial documentation comment.
9357 * lynx-low.c: Use regcache_invalidate_pid instead of
9358 regcache_invalidate.
9359
64da5dd5
JB
93602015-11-23 Joel Brobecker <brobecker@adacore.com>
9361
9362 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9363 and Elf64_auxv_t if the target is Android.
9364
37ce4055
DE
93652015-11-22 Doug Evans <xdje42@gmail.com>
9366
9367 * target.h: #include <sys/types.h>.
9368
06e03fff
PA
93692015-11-19 Pedro Alves <palves@redhat.com>
9370
9371 * linux-low.c (linux_process_qsupported): Change prototype.
9372 Adjust.
9373 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9374 Change prototype.
9375 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9376 and adjust to loop over all features.
9377 * server.c (handle_query) <qSupported>: Adjust to call
9378 target_process_qsupported once, passing it a vector of unprocessed
9379 features.
9380 * target.h (struct target_ops) <process_qsupported>: Change
9381 prototype.
9382 (target_process_qsupported): Adjust.
9383
9a084706
PA
93842015-11-19 Pedro Alves <palves@redhat.com>
9385
9386 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9387 mode.
9388 * configure: Regenerate.
9389
dad44a1f
PA
93902015-11-19 Pedro Alves <palves@redhat.com>
9391
9392 * configure: Regenerate.
9393
231c0592
YQ
93942015-11-19 Yao Qi <yao.qi@linaro.org>
9395
9396 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9397 type to uint32_t.
9398
6c1c9a8b
YQ
93992015-11-19 Yao Qi <yao.qi@linaro.org>
9400
9401 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9402 (struct aarch64_operand): Move enum out.
9403
9caa3311
YQ
94042015-11-19 Yao Qi <yao.qi@linaro.org>
9405
9406 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9407 struct user_fpsimd_state *.
9408 (aarch64_store_fpregset): Likewise.
9409
6a69a054
YQ
94102015-11-19 Yao Qi <yao.qi@linaro.org>
9411
9412 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9413 struct user_pt_regs *.
9414 (aarch64_store_gregset): Likewise.
9415
1798301e
PA
94162015-11-18 Pedro Alves <palves@redhat.com>
9417
9418 * Makefile.in (all_object_files): Add $IPA_OBJS.
9419
ce7715e2
PA
94202015-11-17 Pedro Alves <palves@redhat.com>
9421
9422 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9423 GDB_SIGNAL_0 and gdb_signal_to_string.
9424
c0879059
PA
94252015-11-17 Pedro Alves <palves@redhat.com>
9426
9427 * win32-low.c (handle_output_debug_string): Remove parameter.
9428 (win32_kill): Remove our_status local and adjust call to
9429 handle_output_debug_string.
9430 (get_child_debug_event): Adjust call to
9431 handle_output_debug_string.
9432
1996e237
SM
94332015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9434
9435 * linux-mips-low.c (mips_fill_gregset): Add cast.
9436 (mips_store_gregset): Likewise.
9437 (mips_fill_fpregset): Likewise.
9438 (mips_store_fpregset): Likewise.
9439
cbec665b
SM
94402015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9441
9442 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9443 priv.
9444
eb3e3c67
SM
94452015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9446
9447 * linux-mips-low.c (mips_linux_new_thread): Change type of
9448 watch_type to enum target_hw_bp_type.
9449
171de4b8
SM
94502015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9451
9452 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9453 Change return type to arm_hwbp_type.
9454
04248ead
SM
94552015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9456
9457 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9458 (arm_store_gregset): Likewise.
9459 * linux-arm-low.c (arm_get_hwcap): Likewise.
9460 (arm_read_description): Likewise.
9461
04b3479c
SM
94622015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9463
9464 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9465
2bc84e8a
SM
94662015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9467
9468 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9469 (ppc_fill_vsxregset): Likewise.
9470 (ppc_store_vsxregset): Likewise.
9471 (ppc_fill_vrregset): Likewise.
9472 (ppc_store_vrregset): Likewise.
9473 (ppc_fill_evrregset): Likewise.
9474 (ppc_store_evrregset): Likewise.
9475
e6c5bb05
SM
94762015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9477
9478 * linux-ppc-low.c (ppc_usrregs_info): Remove
9479 forward-declaration.
9480 (ppc_arch_setup): Move lower in file.
9481
7ea45d72
SM
94822015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9483
9484 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9485 (ps_pdwrite): Likewise.
9486
69291610
HW
94872015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9488
9489 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9490 to after assert checks.
9491
b42945fd
SM
94922015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9493
9494 * proc-service.c (ps_pdread): Add/adjust casts.
9495 (ps_pdwrite): Add/adjust casts.
9496
d6f85c84
SM
94972015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9498
9499 * server.c (handle_search_memory_1): Cast return value of
9500 memmem.
9501
f98cd059
SM
95022015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9503
9504 * server.c (write_qxfer_response): Change type of data to
9505 gdb_byte *.
9506
d2412fa5
PA
95072015-10-29 Pedro Alves <palves@redhat.com>
9508
9509 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9510
c17414a2
PA
95112015-10-29 Pedro Alves <palves@redhat.com>
9512
9513 * tracepoint.c (clear_installed_tracepoints): Add casts.
9514
e053fbc4
PA
95152015-10-29 Pedro Alves <palves@redhat.com>
9516
9517 * server.c (handle_v_cont, process_serial_event): Add enum
9518 gdb_signal casts to signal parsing code.
9519
add67df8
PA
95202015-10-29 Pedro Alves <palves@redhat.com>
9521
9522 * linux-low.h (NULL_REGSET): Define.
9523 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9524 * linux-arm-low.c (arm_regsets): Likewise.
9525 * linux-crisv32-low.c (cris_regsets): Likewise.
9526 * linux-m68k-low.c (m68k_regsets): Likewise.
9527 * linux-mips-low.c (mips_regsets): Likewise.
9528 * linux-nios2-low.c (nios2_regsets): Likewise.
9529 * linux-ppc-low.c (ppc_regsets): Likewise.
9530 * linux-s390-low.c (s390_regsets): Likewise.
9531 * linux-sh-low.c (sh_regsets): Likewise.
9532 * linux-sparc-low.c (sparc_regsets): Likewise.
9533 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9534 * linux-tile-low.c (tile_regsets): Likewise.
9535 * linux-x86-low.c (x86_regsets): Likewise.
9536 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9537
50bc912a
PA
95382015-10-29 Pedro Alves <palves@redhat.com>
9539
9540 * linux-low.h (NULL_REGSET): Define.
9541 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9542 * linux-arm-low.c (arm_regsets): Likewise.
9543 * linux-crisv32-low.c (cris_regsets): Likewise.
9544 * linux-m68k-low.c (m68k_regsets): Likewise.
9545 * linux-mips-low.c (mips_regsets): Likewise.
9546 * linux-nios2-low.c (nios2_regsets): Likewise.
9547 * linux-ppc-low.c (ppc_regsets): Likewise.
9548 * linux-s390-low.c (s390_regsets): Likewise.
9549 * linux-sh-low.c (sh_regsets): Likewise.
9550 * linux-sparc-low.c (sparc_regsets): Likewise.
9551 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9552 * linux-tile-low.c (tile_regsets): Likewise.
9553 * linux-x86-low.c (x86_regsets): Likewise.
9554 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9555
682b2546
DE
95562015-10-26 Doug Evans <dje@google.com>
9557
9558 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9559
963843d4
DE
95602015-10-26 Doug Evans <dje@google.com>
9561
9562 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9563
d41401ac
DE
95642015-10-26 Doug Evans <dje@google.com>
9565
9566 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9567 for debug_printf.
9568 (attach_thread, find_new_threads_callback): Ditto.
9569
3db28855
AT
95702015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9571
9572 * mem-break.h (set_breakpoint_data): Remove.
9573
fb78e89c
AT
95742015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9575
9576 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9577 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9578 (initialize_low): Remove set_breakpoint_data call.
9579 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9580 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9581 (initialize_low): Remove set_breakpoint_data call.
9582 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9583 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9584 (initialize_low): Remove set_breakpoint_data call.
9585
2e6ee069
AT
95862015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9587
9588 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9589 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9590 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9591 * target.h (target_breakpoint_kind_from_pc): New macro.
9592
1652a986
AT
95932015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9594
9595 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9596 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9597 the default breakpoint kind.
9598
abeead09
AT
95992015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9600
9601 * linux-arm-low.c (arm_supports_z_point_type): Add software
9602 breakpoint support.
9603
b0b4b501
AT
96042015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9605
9606 * linux-arm-low.c: Refactor breakpoint definitions.
9607 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9608 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9609
8689682c
AT
96102015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9611
9612 * Makefile.in: Add arm.c/o.
9613 * configure.srv: Likewise.
9614 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9615 (arm_breakpoint_kind_from_pc): New function.
9616 (arm_sw_breakpoint_from_kind): Return proper kind.
9617 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9618
27165294
AT
96192015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9620
9621 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9622 removal.
9623 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9624 (struct raw_breakpoint) <size>: Remove.
9625 (struct raw_breakpoint) <kind>: Add.
9626 (bp_size): New function.
9627 (bp_opcode): Likewise.
9628 (find_raw_breakpoint_at): Adjust for kind.
9629 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9630 (remove_memory_breakpoint): Adjust for kind call bp_size.
9631 (set_raw_breakpoint_at): Adjust for kind.
9632 (set_breakpoint): Likewise.
9633 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9634 (delete_raw_breakpoint): Adjust for kind.
9635 (delete_breakpoint): Likewise.
9636 (find_gdb_breakpoint): Likewise.
9637 (set_gdb_breakpoint_1): Likewise.
9638 (set_gdb_breakpoint): Likewise.
9639 (delete_gdb_breakpoint_1): Likewise.
9640 (delete_gdb_breakpoint): Likewise.
9641 (uninsert_raw_breakpoint): Likewise.
9642 (reinsert_raw_breakpoint): Likewise.
9643 (set_breakpoint_data): Remove.
9644 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9645 (check_mem_read): Adjust for kind call bp_size.
9646 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9647 (clone_one_breakpoint): Adjust for kind.
9648 * mem-break.h (set_gdb_breakpoint): Likewise.
9649 (delete_gdb_breakpoint): Likewise.
9650 * server.c (process_serial_event): Likewise.
9651
dd373349
AT
96522015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9653
9654 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9655 (struct linux_target_ops) <breakpoint>: Remove.
9656 (struct linux_target_ops) <breakpoint_len>: Remove.
9657 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9658 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9659 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9660 (arm_sw_breakpoint_from_kind): New function.
9661 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9662 (struct linux_target_ops) <breakpoint>: Remove.
9663 (struct linux_target_ops) <breakpoint_len>: Remove.
9664 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9665 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9666 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9667 (struct linux_target_ops) <breakpoint>: Remove.
9668 (struct linux_target_ops) <breakpoint_len>: Remove.
9669 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9670 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9671 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9672 (struct linux_target_ops) <breakpoint>: Remove.
9673 (struct linux_target_ops) <breakpoint_len>: Remove.
9674 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9675 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9676 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9677 and sw_breakpoint_from_kind to increment the pc.
9678 (linux_breakpoint_kind_from_pc): New function.
9679 (linux_sw_breakpoint_from_kind): New function.
9680 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9681 (initialize_low): Call breakpoint_kind_from_pc and
9682 sw_breakpoint_from_kind to replace breakpoint_data/len.
9683 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9684 New field.
9685 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9686 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9687 (struct linux_target_ops) <breakpoint>: Remove.
9688 (struct linux_target_ops) <breakpoint_len>: Remove.
9689 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9690 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9691 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9692 (struct linux_target_ops) <breakpoint>: Remove.
9693 (struct linux_target_ops) <breakpoint_len>: Remove.
9694 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9695 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9696 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9697 (struct linux_target_ops) <breakpoint>: Remove.
9698 (struct linux_target_ops) <breakpoint_len>: Remove.
9699 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9700 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9701 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9702 (struct linux_target_ops) <breakpoint>: Remove.
9703 (struct linux_target_ops) <breakpoint_len>: Remove.
9704 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9705 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9706 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9707 (struct linux_target_ops) <breakpoint>: Remove.
9708 (struct linux_target_ops) <breakpoint_len>: Remove.
9709 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9710 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9711 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9712 (struct linux_target_ops) <breakpoint>: Remove.
9713 (struct linux_target_ops) <breakpoint_len>: Remove.
9714 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9715 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9716 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9717 (struct linux_target_ops) <breakpoint>: Remove.
9718 (struct linux_target_ops) <breakpoint_len>: Remove.
9719 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9720 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9721 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9722 (struct linux_target_ops) <breakpoint>: Remove.
9723 (struct linux_target_ops) <breakpoint_len>: Remove.
9724 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9725 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9726 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9727 (struct linux_target_ops) <breakpoint>: Remove.
9728 (struct linux_target_ops) <breakpoint_len>: Remove.
9729 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9730 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9731 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9732 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9733 (struct linux_target_ops) <breakpoint>: Remove.
9734 (struct linux_target_ops) <breakpoint_len>: Remove.
9735 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9736 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9737 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9738 (struct linux_target_ops) <breakpoint>: Remove.
9739 (struct linux_target_ops) <breakpoint_len>: Remove.
9740 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9741 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9742
4cd98a19
AT
97432015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9744
9745 * linux-cris-low.c (cris_get_pc): Remove void arg.
9746
774ee6d2
AR
97472015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9748
9749 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9750 variable name.
9751
833dcd29
AR
97522015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9753
9754 * inferiors.c (thread_pid_matches_callback): New function.
9755 (find_thread_process): New function.
9756 (remove_thread): Reset current_thread.
9757 (remove_process): Assert threads have been removed first.
9758
8d689ee5
YQ
97592015-10-15 Yao Qi <yao.qi@linaro.org>
9760
9761 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9762 if it is 3.
9763 (aarch64_remove_point): Likewise.
9764 * regcache.c (regcache_register_size): New function.
9765
1c2e1515
YQ
97662015-10-12 Yao Qi <yao.qi@linaro.org>
9767
9768 * linux-aarch64-low.c: Update all callers as emit_load_store
9769 is renamed to aarch64_emit_load_store.
9770
e1c587c3
YQ
97712015-10-12 Yao Qi <yao.qi@linaro.org>
9772
9773 * linux-aarch64-low.c: Update all callers of function renaming
9774 from emit_insn to aarch64_emit_insn.
9775
b6542f81
YQ
97762015-10-12 Yao Qi <yao.qi@linaro.org>
9777
9778 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9779 arch/aarch64-insn.h.
9780 (struct aarch64_memory_operand): Likewise.
9781 (ENCODE): Likewise.
9782 (emit_insn): Move to arch/aarch64-insn.c.
9783 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9784 (emit_load_store): Move to arch/aarch64-insn.c.
9785 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9786 (can_encode_int32): Remove.
9787
246994ce
YQ
97882015-10-12 Yao Qi <yao.qi@linaro.org>
9789
9790 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9791 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9792 (aarch64_relocate_instruction): Likewise.
9793 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9794 (struct aarch64_insn_visitor): Likewise.
9795
0badd99f
YQ
97962015-10-12 Yao Qi <yao.qi@linaro.org>
9797
9798 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9799 (struct aarch64_insn_visitor): New.
9800 (struct aarch64_insn_relocation_data): New.
9801 (aarch64_ftrace_insn_reloc_b): New function.
9802 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9803 (aarch64_ftrace_insn_reloc_cb): Likewise.
9804 (aarch64_ftrace_insn_reloc_tb): Likewise.
9805 (aarch64_ftrace_insn_reloc_adr): Likewise.
9806 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9807 (aarch64_ftrace_insn_reloc_others): Likewise.
9808 (visitor): New.
9809 (aarch64_relocate_instruction): Use visitor.
9810
dfaffe9d
YQ
98112015-10-12 Yao Qi <yao.qi@linaro.org>
9812
9813 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9814 int. Add argument buf.
9815 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9816 aarch64_relocate_instruction.
9817
70b439f0
YQ
98182015-10-12 Yao Qi <yao.qi@linaro.org>
9819
9820 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9821 argument insn. Remove local variable insn. Don't call
9822 target_read_uint32.
9823 (aarch64_install_fast_tracepoint_jump_pad): Call
9824 target_read_uint32.
9825
7781c06f
YQ
98262015-09-30 Yao Qi <yao.qi@linaro.org>
9827
9828 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9829 (emit_load_store_pair): Likewise.
9830
9a3c8263
SM
98312015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9832
9833 * dll.c (match_dll): Add cast(s).
9834 (unloaded_dll): Likewise.
9835 * linux-low.c (second_thread_of_pid_p): Likewise.
9836 (delete_lwp_callback): Likewise.
9837 (count_events_callback): Likewise.
9838 (select_event_lwp_callback): Likewise.
9839 (linux_set_resume_request): Likewise.
9840 * server.c (accumulate_file_name_length): Likewise.
9841 (emit_dll_description): Likewise.
9842 (handle_qxfer_threads_worker): Likewise.
9843 (visit_actioned_threads): Likewise.
9844 * thread-db.c (any_thread_of): Likewise.
9845 * tracepoint.c (same_process_p): Likewise.
9846 (match_blocktype): Likewise.
9847 (build_traceframe_info_xml): Likewise.
9848
224c3ddb
SM
98492015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9850
9851 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9852 assignment.
9853 (gdb_unparse_agent_expr): Likewise.
9854 * hostio.c (require_data): Likewise.
9855 (handle_pread): Likewise.
9856 * linux-low.c (disable_regset): Likewise.
9857 (fetch_register): Likewise.
9858 (store_register): Likewise.
9859 (get_dynamic): Likewise.
9860 (linux_qxfer_libraries_svr4): Likewise.
9861 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9862 (set_fast_tracepoint_jump): Likewise.
9863 (uninsert_fast_tracepoint_jumps_at): Likewise.
9864 (reinsert_fast_tracepoint_jumps_at): Likewise.
9865 (validate_inserted_breakpoint): Likewise.
9866 (clone_agent_expr): Likewise.
9867 * regcache.c (init_register_cache): Likewise.
9868 * remote-utils.c (putpkt_binary_1): Likewise.
9869 (decode_M_packet): Likewise.
9870 (decode_X_packet): Likewise.
9871 (look_up_one_symbol): Likewise.
9872 (relocate_instruction): Likewise.
9873 (monitor_output): Likewise.
9874 * server.c (handle_search_memory): Likewise.
9875 (handle_qxfer_exec_file): Likewise.
9876 (handle_qxfer_libraries): Likewise.
9877 (handle_qxfer): Likewise.
9878 (handle_query): Likewise.
9879 (handle_v_cont): Likewise.
9880 (handle_v_run): Likewise.
9881 (captured_main): Likewise.
9882 * target.c (write_inferior_memory): Likewise.
9883 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9884 * tracepoint.c (init_trace_buffer): Likewise.
9885 (add_tracepoint_action): Likewise.
9886 (add_traceframe): Likewise.
9887 (add_traceframe_block): Likewise.
9888 (cmd_qtdpsrc): Likewise.
9889 (cmd_qtdv): Likewise.
9890 (cmd_qtstatus): Likewise.
9891 (response_source): Likewise.
9892 (response_tsv): Likewise.
9893 (cmd_qtnotes): Likewise.
9894 (gdb_collect): Likewise.
9895 (initialize_tracepoint): Likewise.
9896
afbe19f8
PL
98972015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9898
9899 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9900 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9901 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9902 <NOP>: New.
9903 (enum aarch64_condition_codes): New enum.
9904 (w0): New static global.
9905 (fp): Likewise.
9906 (lr): Likewise.
9907 (struct aarch64_memory_operand) <type>: New
9908 MEMORY_OPERAND_POSTINDEX type.
9909 (postindex_memory_operand): New helper function.
9910 (emit_ret): New function.
9911 (emit_load_store_pair): New function, factored out of emit_stp
9912 with support for MEMORY_OPERAND_POSTINDEX.
9913 (emit_stp): Rewrite using emit_load_store_pair.
9914 (emit_ldp): New function.
9915 (emit_load_store): Likewise.
9916 (emit_ldr): Mention post-index instruction in comment.
9917 (emit_ldrh): New function.
9918 (emit_ldrb): New function.
9919 (emit_ldrsw): Mention post-index instruction in comment.
9920 (emit_str): Likewise.
9921 (emit_subs): New function.
9922 (emit_cmp): Likewise.
9923 (emit_and): Likewise.
9924 (emit_orr): Likewise.
9925 (emit_orn): Likewise.
9926 (emit_eor): Likewise.
9927 (emit_mvn): Likewise.
9928 (emit_lslv): Likewise.
9929 (emit_lsrv): Likewise.
9930 (emit_asrv): Likewise.
9931 (emit_mul): Likewise.
9932 (emit_sbfm): Likewise.
9933 (emit_sbfx): Likewise.
9934 (emit_ubfm): Likewise.
9935 (emit_ubfx): Likewise.
9936 (emit_csinc): Likewise.
9937 (emit_cset): Likewise.
9938 (emit_nop): Likewise.
9939 (emit_ops_insns): New helper function.
9940 (emit_pop): Likewise.
9941 (emit_push): Likewise.
9942 (aarch64_emit_prologue): New function.
9943 (aarch64_emit_epilogue): Likewise.
9944 (aarch64_emit_add): Likewise.
9945 (aarch64_emit_sub): Likewise.
9946 (aarch64_emit_mul): Likewise.
9947 (aarch64_emit_lsh): Likewise.
9948 (aarch64_emit_rsh_signed): Likewise.
9949 (aarch64_emit_rsh_unsigned): Likewise.
9950 (aarch64_emit_ext): Likewise.
9951 (aarch64_emit_log_not): Likewise.
9952 (aarch64_emit_bit_and): Likewise.
9953 (aarch64_emit_bit_or): Likewise.
9954 (aarch64_emit_bit_xor): Likewise.
9955 (aarch64_emit_bit_not): Likewise.
9956 (aarch64_emit_equal): Likewise.
9957 (aarch64_emit_less_signed): Likewise.
9958 (aarch64_emit_less_unsigned): Likewise.
9959 (aarch64_emit_ref): Likewise.
9960 (aarch64_emit_if_goto): Likewise.
9961 (aarch64_emit_goto): Likewise.
9962 (aarch64_write_goto_address): Likewise.
9963 (aarch64_emit_const): Likewise.
9964 (aarch64_emit_call): Likewise.
9965 (aarch64_emit_reg): Likewise.
9966 (aarch64_emit_pop): Likewise.
9967 (aarch64_emit_stack_flush): Likewise.
9968 (aarch64_emit_zero_ext): Likewise.
9969 (aarch64_emit_swap): Likewise.
9970 (aarch64_emit_stack_adjust): Likewise.
9971 (aarch64_emit_int_call_1): Likewise.
9972 (aarch64_emit_void_call_2): Likewise.
9973 (aarch64_emit_eq_goto): Likewise.
9974 (aarch64_emit_ne_goto): Likewise.
9975 (aarch64_emit_lt_goto): Likewise.
9976 (aarch64_emit_le_goto): Likewise.
9977 (aarch64_emit_gt_goto): Likewise.
9978 (aarch64_emit_ge_got): Likewise.
9979 (aarch64_emit_ops_impl): New static global variable.
9980 (aarch64_emit_ops): New target function, return
9981 &aarch64_emit_ops_impl.
9982 (struct linux_target_ops): Install it.
9983
bb903df0
PL
99842015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9985
9986 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9987 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9988 aarch64-ipa.o.
9989 * linux-aarch64-ipa.c: New file.
9990 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9991 and endian.h.
9992 (aarch64_get_thread_area): New target method.
9993 (extract_signed_bitfield): New helper function.
9994 (aarch64_decode_ldr_literal): New function.
9995 (enum aarch64_opcodes): New enum.
9996 (struct aarch64_register): New struct.
9997 (struct aarch64_operand): New struct.
9998 (x0): New static global.
9999 (x1): Likewise.
10000 (x2): Likewise.
10001 (x3): Likewise.
10002 (x4): Likewise.
10003 (w2): Likewise.
10004 (ip0): Likewise.
10005 (sp): Likewise.
10006 (xzr): Likewise.
10007 (aarch64_register): New helper function.
10008 (register_operand): Likewise.
10009 (immediate_operand): Likewise.
10010 (struct aarch64_memory_operand): New struct.
10011 (offset_memory_operand): New helper function.
10012 (preindex_memory_operand): Likewise.
10013 (enum aarch64_system_control_registers): New enum.
10014 (ENCODE): New macro.
10015 (emit_insn): New helper function.
10016 (emit_b): New function.
10017 (emit_bcond): Likewise.
10018 (emit_cb): Likewise.
10019 (emit_tb): Likewise.
10020 (emit_blr): Likewise.
10021 (emit_stp): Likewise.
10022 (emit_ldp_q_offset): Likewise.
10023 (emit_stp_q_offset): Likewise.
10024 (emit_load_store): Likewise.
10025 (emit_ldr): Likewise.
10026 (emit_ldrsw): Likewise.
10027 (emit_str): Likewise.
10028 (emit_ldaxr): Likewise.
10029 (emit_stxr): Likewise.
10030 (emit_stlr): Likewise.
10031 (emit_data_processing_reg): Likewise.
10032 (emit_data_processing): Likewise.
10033 (emit_add): Likewise.
10034 (emit_sub): Likewise.
10035 (emit_mov): Likewise.
10036 (emit_movk): Likewise.
10037 (emit_mov_addr): Likewise.
10038 (emit_mrs): Likewise.
10039 (emit_msr): Likewise.
10040 (emit_sevl): Likewise.
10041 (emit_wfe): Likewise.
10042 (append_insns): Likewise.
10043 (can_encode_int32_in): New helper function.
10044 (aarch64_relocate_instruction): New function.
10045 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10046 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10047 (struct linux_target_ops): Install aarch64_get_thread_area,
10048 aarch64_install_fast_tracepoint_jump_pad and
10049 aarch64_get_min_fast_tracepoint_insn_len.
10050
787749ea
PL
100512015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10052
10053 * Makefile.in (aarch64-insn.o): New rule.
10054 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10055
9812b2e6
YQ
100562015-09-21 Yao Qi <yao.qi@linaro.org>
10057
10058 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10059
18fe412b
YQ
100602015-09-21 Yao Qi <yao.qi@linaro.org>
10061
10062 * tracepoint.c (max_jump_pad_size): Remove.
10063
a0cc84cd
YQ
100642015-09-18 Yao Qi <yao.qi@linaro.org>
10065
10066 * linux-aarch64-low.c: Don't include sys/uio.h.
10067 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10068
d78908cf
WW
100692015-09-16 Wei-cheng Wang <cole945@gmail.com>
10070
10071 * tracepoint.c (eval_result_type): Change prototype.
10072 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10073
d57e0d50
PA
100742015-09-15 Pedro Alves <palves@redhat.com>
10075
10076 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10077 Check whether to report exec events instead of checking whether
10078 multiprocess is enabled.
10079
5a676acc
PA
100802015-09-15 Pedro Alves <palves@redhat.com>
10081
10082 PR remote/18965
10083 * remote-utils.c (prepare_resume_reply): Merge
10084 TARGET_WAITKIND_VFORK_DONE switch case with the
10085 TARGET_WAITKIND_FORKED case.
10086
7c5d0fad
YQ
100872015-09-15 Yao Qi <yao.qi@linaro.org>
10088
10089 * server.c (handle_query): Check string comparison using
10090 "else if" instead of "if".
10091
750ce8d1
YQ
100922015-09-15 Yao Qi <yao.qi@linaro.org>
10093
10094 * server.c (vCont_supported): New global variable.
10095 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10096 matches. Append ";vContSupported+" to own_buf.
10097 (handle_v_requests): Append ";s;S" to own_buf if target supports
10098 hardware single step or vCont_supported is false.
10099 (capture_main): Set vCont_supported to zero.
10100
70b90b91
YQ
101012015-09-15 Yao Qi <yao.qi@linaro.org>
10102
10103 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10104 it to ...
10105 (linux_supports_hardware_single_step): ... New function.
10106 (linux_target_ops): Update.
10107 * lynx-low.c (lynx_target_ops): Set field
10108 supports_hardware_single_step to target_can_do_hardware_single_step.
10109 * nto-low.c (nto_target_ops): Likewise.
10110 * spu-low.c (spu_target_ops): Likewise.
10111 * win32-low.c (win32_target_ops): Likewise.
10112 * target.c (target_can_do_hardware_single_step): New function.
10113 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10114 Remove. <supports_hardware_single_step>: New field.
10115 (target_supports_conditional_breakpoints): Remove.
10116 (target_supports_hardware_single_step): New macro.
10117 (target_can_do_hardware_single_step): Declare.
10118 * server.c (handle_query): Use target_supports_hardware_single_step
10119 instead of target_supports_conditional_breakpoints.
10120
ade90bde
YQ
101212015-09-15 Yao Qi <yao.qi@linaro.org>
10122
10123 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10124 function.
10125 (struct linux_target_ops the_low_target): Install
10126 aarch64_linux_siginfo_fixup.
10127
94585166
DB
101282015-09-11 Don Breazeal <donb@codesourcery.com>
10129 Luis Machado <lgustavo@codesourcery.com>
10130
10131 * linux-low.c (linux_mourn): Static declaration.
10132 (linux_arch_setup): Move in front of
10133 handle_extended_wait.
10134 (linux_arch_setup_thread): New function.
10135 (handle_extended_wait): Handle exec events. Call
10136 linux_arch_setup_thread. Make event_lwp argument a
10137 pointer-to-a-pointer.
10138 (check_zombie_leaders): Do not check stopped threads.
10139 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10140 (linux_low_filter_event): Add lwp and thread for exec'ing
10141 non-leader thread if leader thread has been deleted.
10142 Refactor code into linux_arch_setup_thread and call it.
10143 Pass child lwp pointer by reference to handle_extended_wait.
10144 (linux_wait_for_event_filtered): Update comment.
10145 (linux_wait_1): Prevent clobbering exec event status.
10146 (linux_supports_exec_events): New function.
10147 (linux_target_ops) <supports_exec_events>: Initialize new member.
10148 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10149 new member.
10150 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10151 * server.c (report_exec_events): New global variable.
10152 (handle_query): Handle qSupported query for exec-events feature.
10153 (captured_main): Initialize report_exec_events.
10154 * server.h (report_exec_events): Declare new global variable.
10155 * target.h (struct target_ops) <supports_exec_events>: New
10156 member.
10157 (target_supports_exec_events): New macro.
10158 * win32-low.c (win32_target_ops) <supports_exec_events>:
10159 Initialize new member.
10160
0568462b
MM
101612015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10162
10163 * linux-low.c (linux_low_enable_btrace): Remove.
10164 (linux_target_ops): Replace linux_low_enable_btrace with
10165 linux_enable_btrace.
10166
39edd165
YQ
101672015-09-03 Yao Qi <yao.qi@linaro.org>
10168
10169 * linux-aarch64-low.c (aarch64_insert_point): Call
10170 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10171 returns true.
10172
1db33b5a
UW
101732015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10174
10175 * linux-low.c (check_stopped_by_breakpoint): Use
10176 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10177
ab290430
PA
101782015-08-27 Pedro Alves <palves@redhat.com>
10179
10180 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10181
8d749320
SM
101822015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10183
6711b7f8
SM
10184 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10185 the XNEW-family equivalent.
8d749320
SM
10186 (compile_bytecodes): Likewise.
10187 * dll.c (loaded_dll): Likewise.
10188 * event-loop.c (append_callback_event): Likewise.
10189 (create_file_handler): Likewise.
10190 (create_file_event): Likewise.
10191 * hostio.c (handle_open): Likewise.
10192 * inferiors.c (add_thread): Likewise.
10193 (add_process): Likewise.
10194 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10195 * linux-arm-low.c (arm_new_process): Likewise.
10196 (arm_new_thread): Likewise.
10197 * linux-low.c (add_to_pid_list): Likewise.
10198 (linux_add_process): Likewise.
10199 (handle_extended_wait): Likewise.
10200 (add_lwp): Likewise.
10201 (enqueue_one_deferred_signal): Likewise.
10202 (enqueue_pending_signal): Likewise.
10203 (linux_resume_one_lwp_throw): Likewise.
10204 (linux_resume_one_thread): Likewise.
10205 (linux_read_memory): Likewise.
10206 (linux_write_memory): Likewise.
10207 * linux-mips-low.c (mips_linux_new_process): Likewise.
10208 (mips_linux_new_thread): Likewise.
10209 (mips_add_watchpoint): Likewise.
10210 * linux-x86-low.c (initialize_low_arch): Likewise.
10211 * lynx-low.c (lynx_add_process): Likewise.
10212 * mem-break.c (set_raw_breakpoint_at): Likewise.
10213 (set_breakpoint): Likewise.
10214 (add_condition_to_breakpoint): Likewise.
10215 (add_commands_to_breakpoint): Likewise.
10216 (clone_agent_expr): Likewise.
10217 (clone_one_breakpoint): Likewise.
10218 * regcache.c (new_register_cache): Likewise.
10219 * remote-utils.c (look_up_one_symbol): Likewise.
10220 * server.c (queue_stop_reply): Likewise.
10221 (start_inferior): Likewise.
10222 (queue_stop_reply_callback): Likewise.
10223 (handle_target_event): Likewise.
10224 * spu-low.c (fetch_ppc_memory): Likewise.
10225 (store_ppc_memory): Likewise.
10226 * target.c (set_target_ops): Likewise.
10227 * thread-db.c (thread_db_load_search): Likewise.
10228 (try_thread_db_load_1): Likewise.
10229 * tracepoint.c (add_tracepoint): Likewise.
10230 (add_tracepoint_action): Likewise.
10231 (create_trace_state_variable): Likewise.
10232 (cmd_qtdpsrc): Likewise.
10233 (cmd_qtro): Likewise.
10234 (add_while_stepping_state): Likewise.
10235 * win32-low.c (child_add_thread): Likewise.
10236 (get_image_name): Likewise.
10237
ed8b7b42
YQ
102382015-08-25 Yao Qi <yao.qi@linaro.org>
10239
10240 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10241
db3cb7cb
YQ
102422015-08-25 Yao Qi <yao.qi@linaro.org>
10243
10244 * Makefile.in (aarch64-linux.o): New rule.
10245 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10246 srv_tgtobj.
10247 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10248 (aarch64_init_debug_reg_state): Make it extern.
10249 (aarch64_linux_prepare_to_resume): Remove.
10250
f6011a1c
YQ
102512015-08-25 Yao Qi <yao.qi@linaro.org>
10252
10253 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10254 lwp_arch_private_info and ptid_of_lwp.
10255
88e2cf7e
YQ
102562015-08-25 Yao Qi <yao.qi@linaro.org>
10257
10258 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10259 Find proc_info by find_process_pid. All callers updated.
10260
5e35436e
YQ
102612015-08-25 Yao Qi <yao.qi@linaro.org>
10262
10263 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10264 Remove.
10265 (debug_reg_change_callback): Remove.
10266 (aarch64_notify_debug_reg_change): Remove.
10267
4a8a7965
YQ
102682015-08-25 Yao Qi <yao.qi@linaro.org>
10269
10270 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10271 Call current_lwp_ptid.
10272
32a271ee
YQ
102732015-08-25 Yao Qi <yao.qi@linaro.org>
10274
10275 * linux-aarch64-low.c (debug_reg_change_callback): Use
10276 debug_printf.
10277
0d51c8d7
YQ
102782015-08-25 Yao Qi <yao.qi@linaro.org>
10279
10280 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10281
31a43dd5
YQ
102822015-08-25 Yao Qi <yao.qi@linaro.org>
10283
10284 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10285
8ee52567
YQ
102862015-08-25 Yao Qi <yao.qi@linaro.org>
10287
10288 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10289 the code.
10290
ff3f0f45
YQ
102912015-08-25 Yao Qi <yao.qi@linaro.org>
10292
10293 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10294 Remove.
10295 (debug_reg_change_callback): Remove argument entry and add argument
10296 lwp. Remove local variable thread. Don't print thread id in the
10297 debugging output. Don't check whether pid of thread equals to pid.
10298 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10299 iterate_over_lwps instead find_inferior.
10300
3d40fbb5
PA
103012015-08-24 Pedro Alves <palves@redhat.com>
10302
10303 * inferiors.c (get_first_process): New function.
10304 * inferiors.h (get_first_process): New declaration.
10305 * remote-utils.c (read_ptid): Default to the first process in the
10306 list, instead of to the current thread's process.
10307
438e1e42
PA
103082015-08-24 Pedro Alves <palves@redhat.com>
10309
10310 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10311 * event-loop.c: Likewise.
10312 * remote-utils.c: Likewise.
10313 * tracepoint.c: Likewise.
10314
a8c6d4fc
PA
103152015-08-24 Pedro Alves <palves@redhat.com>
10316
10317 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10318 ptid_get_lwp.
10319
99b0bb12
PA
103202015-08-21 Pedro Alves <palves@redhat.com>
10321
10322 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10323 instead of literal 1.
10324
f8904751
PA
103252015-08-21 Pedro Alves <palves@redhat.com>
10326
10327 * tdesc.c (default_description): Explicitly zero-initialize.
10328
465a859e
PA
103292015-08-21 Pedro Alves <palves@redhat.com>
10330
10331 PR gdb/18749
10332 * inferiors.c (remove_thread): Discard any pending stop reply for
10333 this thread.
10334 * server.c (remove_all_on_match_pid): Rename to ...
10335 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10336 instead of a pid.
10337 (discard_queued_stop_replies): Change parameter to a ptid. Now
10338 extern.
10339 (handle_v_kill, kill_inferior_callback, captured_main)
10340 (process_serial_event): Adjust.
10341 * server.h (discard_queued_stop_replies): Declare.
10342
f0db101d
PA
103432015-08-21 Pedro Alves <palves@redhat.com>
10344
10345 * linux-low.c (wait_for_sigstop): Always switch to no thread
10346 selected if the previously current thread dies.
10347 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10348 process instead of the current thread's.
10349 * remote-utils.c (input_interrupt): Don't check if there's no
10350 current thread.
10351 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10352 current thread to the general thread fails, error out.
10353 (handle_qxfer_auxv, handle_qxfer_libraries)
10354 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10355 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10356 (handle_query): Check if there's a thread selected instead of
10357 checking whether there's any thread in the thread list.
10358 (handle_qxfer_threads, handle_qxfer_btrace)
10359 (handle_qxfer_btrace_conf): Don't error out early if there's no
10360 thread in the thread list.
10361 (handle_v_cont, myresume): Don't set the current thread to the
10362 continue thread.
10363 (process_serial_event) <Hg handling>: Also set thread_id if the
10364 previous general thread is still alive.
10365 (process_serial_event) <g/G handling>: If setting the current
10366 thread to the general thread fails, error out.
10367 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10368 thread's lwp instead of the current thread's.
10369 * target.c (set_desired_thread): If the desired thread was not
10370 found, leave the current thread pointing to NULL. Return an int
10371 (boolean) indicating success.
10372 * target.h (set_desired_thread): Change return type to int.
10373
40045d91
MF
103742015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10375
10376 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10377 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10378 #includes.
10379 (ps_get_thread_area): New function.
10380
45face3b
GB
103812015-08-19 Gary Benson <gbenson@redhat.com>
10382
10383 * hostio.c (handle_pread): Do not attempt to read more data
10384 than hostio_reply_with_data can fit in a packet.
10385
16d5f642
JB
103862015-08-18 Joel Brobecker <brobecker@adacore.com>
10387
10388 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10389
a738da3a
MF
103902015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10391
10392 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10393
33ebda9d
PA
103942015-08-06 Pedro Alves <palves@redhat.com>
10395
10396 * tracepoint.c (expr_eval_result): Now an int.
10397
a44892be
PA
103982015-08-06 Pedro Alves <palves@redhat.com>
10399
10400 * gdbthread.h (struct regcache): Forward declare.
10401 (struct thread_info) <regcache_data>: Now a struct regcache
10402 pointer.
10403 * inferiors.c (inferior_regcache_data)
10404 (set_inferior_regcache_data): Now work with struct regcache
10405 pointers.
10406 * inferiors.h (struct regcache): Forward declare.
10407 (inferior_regcache_data, set_inferior_regcache_data): Now work
10408 with struct regcache pointers.
10409 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10410 (free_register_cache_thread): Remove struct regcache pointer
10411 casts.
10412
608a1e46
PA
104132015-08-06 Pedro Alves <palves@redhat.com>
10414
10415 * server.c (captured_main): On error, print the exception message
10416 to stderr, and if run_once is set, throw a quit.
10417
f0ce0d3a
PA
104182015-08-06 Pedro Alves <palves@redhat.com>
10419
10420 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10421 the current thread.
10422
bf47e248
PA
104232015-08-06 Pedro Alves <palves@redhat.com>
10424
10425 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10426 reading beyond the passed in buffer length.
10427
b6b9ffcc
PL
104282015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10429
10430 * tracepoint.c (symbol_list) <required>: Remove.
10431
863d01bd
PA
104322015-08-06 Pedro Alves <palves@redhat.com>
10433
10434 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10435 count if stopping and suspending threads.
10436 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10437 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10438 (linux_detach): Complete an ongoing step-over.
10439 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10440 throughout.
10441 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10442 (linux_wait_1): If passing a signal to the inferior after
10443 finishing a step-over, unsuspend and re-resume all lwps. If we
10444 see a single-step event but the thread should be continuing, don't
10445 pass the trap to gdb.
10446 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10447 internal_error instead of gdb_assert.
10448 (enqueue_pending_signal): New function.
10449 (check_ptrace_stopped_lwp_gone): Add debug output.
10450 (start_step_over): Use internal_error instead of gdb_assert.
10451 (complete_ongoing_step_over): New function.
10452 (linux_resume_one_thread): Don't resume a suspended thread.
10453 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10454 it stepping.
10455
00db26fa
PA
104562015-08-06 Pedro Alves <palves@redhat.com>
10457
10458 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10459 (linux_thread_alive): Use lwp_is_marked_dead.
10460 (extended_event_reported): Delete.
10461 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10462 instead of extended_event_reported.
10463 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10464 as well.
10465 (lwp_is_marked_dead): New function.
10466 (lwp_running): Use lwp_is_marked_dead.
10467 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10468 comment.
10469
ad071a30
PA
104702015-08-06 Pedro Alves <palves@redhat.com>
10471
10472 * linux-low.c (linux_wait_1): Move fork event output out of the
10473 !report_to_gdb check. Pass event_child->waitstatus to
10474 target_waitstatus_to_string instead of ourstatus.
10475
524b57e6
YQ
104762015-08-04 Yao Qi <yao.qi@linaro.org>
10477
10478 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10479 if current_thread is 32 bit.
10480
6085d6f6
YQ
104812015-08-04 Yao Qi <yao.qi@linaro.org>
10482
10483 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10484 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10485 * server.c (extended_protocol): Remove "static".
10486 * server.h (extended_protocol): Declare it.
10487
8a7e4587
YQ
104882015-08-04 Yao Qi <yao.qi@linaro.org>
10489
10490 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10491 both aarch64 and aarch32.
10492 (aarch64_set_pc): Likewise.
10493
3b53ae99
YQ
104942015-08-04 Yao Qi <yao.qi@linaro.org>
10495
10496 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10497 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10498 arm-with-neon.xml to srv_xmlfiles.
10499 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10500 (is_64bit_tdesc): New function.
10501 (aarch64_linux_read_description): New function.
10502 (aarch64_arch_setup): Call aarch64_linux_read_description.
10503 (regs_info): Rename to regs_info_aarch64.
10504 (aarch64_regs_info): Return right regs_info.
10505 (initialize_low_arch): Call initialize_low_arch_aarch32.
10506
bd9e6534
YQ
105072015-08-04 Yao Qi <yao.qi@linaro.org>
10508
10509 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10510 * linux-aarch32-low.c: New file.
10511 * linux-aarch32-low.h: New file.
10512 * linux-arm-low.c (arm_fill_gregset): Move it to
10513 linux-aarch32-low.c.
10514 (arm_store_gregset): Likewise.
10515 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10516 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10517 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10518 (regs_info): Rename to regs_info_arm.
10519 (arm_regs_info): Return regs_info_aarch32 if
10520 have_ptrace_getregset is 1 and target description is
10521 arm_with_neon or arm_with_vfpv3.
10522 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10523 Call initialize_low_arch_aarch32 instead.
10524
ded48a5e
YQ
105252015-08-04 Yao Qi <yao.qi@linaro.org>
10526
10527 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10528 * linux-low.c: ... here.
10529 * linux-low.h (have_ptrace_getregset): Declare it.
10530
96e9210f
PA
105312015-08-04 Pedro Alves <palves@redhat.com>
10532
10533 * thread-db.c (struct thread_db): Use new typedefs.
10534 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10535 CHK calls.
10536 (disable_thread_event_reporting): Cast result of dlsym to
10537 destination function pointer type.
10538 (thread_db_mourn): Use td_ta_delete_ftype.
10539
af60a1ef
SL
105402015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10541
10542 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10543 arch variant.
10544 (CDX_BREAKPOINT): Define for R2.
10545 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10546 (the_low_target): Add comments.
10547
e8b41681
YQ
105482015-07-30 Yao Qi <yao.qi@linaro.org>
10549
10550 * linux-arm-low.c (arm_hwcap): Remove it.
10551 (arm_read_description): New local variable arm_hwcap. Don't
10552 set arm_hwcap to zero.
10553
89abb039
YQ
105542015-07-30 Yao Qi <yao.qi@linaro.org>
10555
10556 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10557 Use regcache->tdesc instead.
10558 (arm_store_wmmxregset): Likewise.
10559 (arm_fill_vfpregset): Likewise.
10560 (arm_store_vfpregset): Likewise.
10561
deca266c
YQ
105622015-07-30 Yao Qi <yao.qi@linaro.org>
10563
10564 * linux-arm-low.c: Include arch/arm.h.
10565 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10566 (arm_store_gregset): Likewise.
10567
aa58a496
SM
105682015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10569
10570 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10571 ptrace's 4th parameter.
10572
50904b25
YQ
105732015-07-27 Yao Qi <yao.qi@linaro.org>
10574
10575 * configure.srv (case aarch64*-*-linux*): Don't set
10576 srv_linux_usrregs.
10577
5826e159
PA
105782015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10579
10580 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10581 sys/ptrace.h.
10582 * linux-arm-low.c: Likewise.
10583 * linux-cris-low.c: Likewise.
10584 * linux-crisv32-low.c: Likewise.
10585 * linux-low.c: Likewise.
10586 * linux-m68k-low.c: Likewise.
10587 * linux-mips-low.c: Likewise.
10588 * linux-nios2-low.c: Likewise.
10589 * linux-s390-low.c: Likewise.
10590 * linux-sparc-low.c: Likewise.
10591 * linux-tic6x-low.c: Likewise.
10592 * linux-tile-low.c: Likewise.
10593 * linux-x86-low.c: Likewise.
10594
54019719
PA
105952015-07-24 Pedro Alves <palves@redhat.com>
10596
10597 * config.in: Regenerate.
10598 * configure: Regenerate.
10599
eb7aa561
PA
106002015-07-24 Pedro Alves <palves@redhat.com>
10601
10602 * acinclude.m4: Include ../ptrace.m4.
10603 * configure.ac: Call GDB_AC_PTRACE.
10604 * config.in, configure: Regenerate.
10605
55d7b841
YQ
106062015-07-24 Yao Qi <yao.qi@linaro.org>
10607
10608 * linux-low.c (linux_create_inferior): Remove setting to
10609 proc->priv->new_inferior.
10610 (linux_attach): Likewise.
10611 (linux_low_filter_event): Likewise.
10612 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10613
c06cbd92
YQ
106142015-07-24 Yao Qi <yao.qi@linaro.org>
10615
10616 * linux-low.c (linux_arch_setup): New function.
10617 (linux_low_filter_event): If proc->tdesc is NULL and
10618 proc->attached is true, call the_low_target.arch_setup.
10619 Otherwise, keep status pending, and return.
10620 (linux_resume_one_lwp_throw): Don't call get_pc if
10621 thread->while_stepping isn't NULL. Don't call
10622 get_thread_regcache if proc->tdesc is NULL.
10623 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10624 (linux_target_ops): Install arch_setup.
10625 * server.c (start_inferior): Call the_target->arch_setup.
10626 * target.h (struct target_ops) <arch_setup>: New field.
10627 (target_arch_setup): New marco.
10628 * lynx-low.c (lynx_target_ops): Update.
10629 * nto-low.c (nto_target_ops): Update.
10630 * spu-low.c (spu_target_ops): Update.
10631 * win32-low.c (win32_target_ops): Update.
10632
5ae3ebba
YQ
106332015-07-24 Yao Qi <yao.qi@linaro.org>
10634
10635 * linux-low.c (linux_add_process): Don't set
10636 proc->priv->new_inferior.
10637 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10638 (linux_attach): Likewise.
10639
eb97750b
YQ
106402015-07-24 Yao Qi <yao.qi@linaro.org>
10641
10642 * server.c (start_inferior): Code refactor.
10643
51aee833
YQ
106442015-07-24 Yao Qi <yao.qi@linaro.org>
10645
10646 * server.c (process_serial_event): Set general_thread.
10647
af1b22f3
YQ
106482015-07-21 Yao Qi <yao.qi@linaro.org>
10649
10650 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10651 aarch64_linux_get_debug_reg_capacity.
10652
554717a3
YQ
106532015-07-17 Yao Qi <yao.qi@linaro.org>
10654
10655 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10656 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10657 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10658 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10659 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10660 (AARCH64_HWP_ALIGNMENT): Likewise.
10661 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10662 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10663 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10664 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10665 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10666 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10667 (struct aarch64_debug_reg_state): Likewise.
10668 (struct arch_lwp_info): Likewise.
10669 (aarch64_align_watchpoint): Likewise.
10670 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10671 (aarch64_watchpoint_length): Likewise.
10672 (aarch64_point_encode_ctrl_reg): Likewise
10673 (aarch64_point_is_aligned): Likewise.
10674 (aarch64_align_watchpoint): Likewise.
10675 (aarch64_linux_set_debug_regs):
10676 (aarch64_dr_state_insert_one_point): Likewise.
10677 (aarch64_dr_state_remove_one_point): Likewise.
10678 (aarch64_handle_breakpoint): Likewise.
10679 (aarch64_handle_aligned_watchpoint): Likewise.
10680 (aarch64_handle_unaligned_watchpoint): Likewise.
10681 (aarch64_handle_watchpoint): Likewise.
10682
c67ca4de
YQ
106832015-07-17 Yao Qi <yao.qi@linaro.org>
10684
10685 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10686 and don't aarch64_get_debug_reg_state. All callers update.
10687 (aarch64_handle_aligned_watchpoint): Likewise.
10688 (aarch64_handle_unaligned_watchpoint): Likewise.
10689 (aarch64_handle_watchpoint): Likewise.
10690 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10691 (aarch64_remove_point): Likewise.
10692
25abf979
YQ
106932015-07-17 Yao Qi <yao.qi@linaro.org>
10694
10695 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10696 debug_printf.
10697 (aarch64_handle_unaligned_watchpoint): Likewise.
10698
db1ff28b
JK
106992015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10700
10701 Revert the previous 3 commits:
10702 Move gdb_regex* to common/
10703 Move linux_find_memory_regions_full & co.
10704 gdbserver build-id attribute generator
10705
700ca40f
JK
107062015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10707 Jan Kratochvil <jan.kratochvil@redhat.com>
10708
10709 gdbserver build-id attribute generator.
10710 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10711 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10712 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10713 (find_phdr): New.
10714 (get_dynamic): Use find_pdhr to traverse program headers.
10715 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10716 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10717 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10718 (get_hex_build_id): New.
10719 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10720 to reply XML document.
10721
9904185c
JK
107222015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10723 Jan Kratochvil <jan.kratochvil@redhat.com>
10724
10725 * target.c: Include target/target-utils.h and fcntl.h.
10726 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10727 (target_fileio_read_stralloc): New functions.
10728
6e5b4429
JK
107292015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10730
10731 * Makefile.in (OBS): Add gdb_regex.o.
10732 (gdb_regex.o): New.
10733 * config.in: Rebuilt.
10734 * configure: Rebuilt.
10735
ddc98fbf
JK
107362015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10737 Jan Kratochvil <jan.kratochvil@redhat.com>
10738
10739 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10740 * Makefile.in (OBS): Add target-utils.o.
10741 (linux-maps.o, target-utils.o): New.
10742 * configure.srv (srv_linux_obj): Add linux-maps.o.
10743
e57bb7a0
PL
107442015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10745
10746 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10747 function, return 1.
10748 (the_low_target): Install it.
10749
586b02a9
PA
107502015-07-14 Pedro Alves <palves@redhat.com>
10751
10752 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10753 Instead, ignore ECHILD, and throw an error for other errnos.
10754
58c1b36c
PA
107552015-07-10 Pedro Alves <palves@redhat.com>
10756
10757 * event-loop.c (struct callback_event) <data>: Change type to
10758 gdb_client_data instance instead of gdb_client_data pointer.
10759 (append_callback_event): Adjust.
10760
421530db
PL
107612015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10762
10763 * linux-aarch64-low.c: Add comments for each linux_target_ops
10764 method. Remove comments already covered in target_ops and
10765 linux_target_ops definitions.
10766 (the_low_target): Add comments for each unimplemented method.
10767
c2d65f38
YQ
107682015-07-09 Yao Qi <yao.qi@linaro.org>
10769
10770 * linux-aarch64-low.c (aarch64_regmap): Remove.
10771 (aarch64_usrregs_info): Remove.
10772 (regs_info): Set field usrregs to NULL.
10773
b20a6524
MM
107742015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10775
10776 * linux-low.c: Include "rsp-low.h"
10777 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10778 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10779 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10780 (handle_btrace_enable_pt): New.
10781 (handle_btrace_general_set): Support "pt".
10782 (handle_btrace_conf_general_set): Support "pt:size".
10783
96c97461
PL
107842015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10785
10786 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10787 Z_PACKET_SW_BP.
10788
37d66942
PL
107892015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10790
10791 * linux-aarch64-low.c: Remove comment about endianness.
10792 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10793 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10794 memcmp.
10795
dc06243f
GB
107962015-06-24 Gary Benson <gbenson@redhat.com>
10797
10798 * linux-i386-ipa.c (stdint.h): Do not include.
10799 * lynx-i386-low.c (stdint.h): Likewise.
10800 * lynx-ppc-low.c (stdint.h): Likewise.
10801 * mem-break.c (stdint.h): Likewise.
10802 * thread-db.c (stdint.h): Likewise.
10803 * tracepoint.c (stdint.h): Likewise.
10804 * win32-low.c (stdint.h): Likewise.
10805
124e13d9
SM
108062015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10807
10808 * server.c (write_qxfer_response): Update call to
10809 remote_escape_output.
10810
909c2cda
JK
108112015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10812 Jan Kratochvil <jan.kratochvil@redhat.com>
10813
10814 Merge multiple hex conversions.
10815 * gdbreplay.c (tohex): Rename to 'fromhex'.
10816 (logchar): Use fromhex.
10817
24c05f46
JK
108182015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10819
10820 * server.c (handle_qxfer_libraries): Set `version' attribute for
10821 <library-list>.
10822
14d2069a
GB
108232015-06-10 Gary Benson <gbenson@redhat.com>
10824
10825 * target.h (struct target_ops) <multifs_open>: New field.
10826 <multifs_unlink>: Likewise.
10827 <multifs_readlink>: Likewise.
10828 * linux-low.c (nat/linux-namespaces.h): New include.
10829 (linux_target_ops): Initialize the_target->multifs_open,
10830 the_target->multifs_unlink and the_target->multifs_readlink.
10831 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10832 * hostio.c (hostio_fs_pid): New static variable.
10833 (hostio_handle_new_gdb_connection): New function.
10834 (handle_setfs): Likewise.
10835 (handle_open): Use the_target->multifs_open as appropriate.
10836 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10837 (handle_readlink): Use the_target->multifs_readlink as
10838 appropriate.
10839 (handle_vFile): Handle vFile:setfs packets.
10840 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10841 after target_handle_new_gdb_connection.
10842
4b8b5e72
GB
108432015-06-10 Gary Benson <gbenson@redhat.com>
10844
10845 * configure.ac (AC_CHECK_FUNCS): Add setns.
10846 * config.in: Regenerate.
10847 * configure: Likewise.
10848 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10849 (linux-namespaces.o): New rule.
10850 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10851
3ac2e371
GB
108522015-06-09 Gary Benson <gbenson@redhat.com>
10853
10854 * hostio.c (handle_open): Process mode argument with
10855 fileio_to_host_mode.
10856
ca9b78ce
YQ
108572015-06-01 Yao Qi <yao.qi@linaro.org>
10858
10859 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10860 * linux-x86-low.c: Likewise.
10861
bfacd19d
DB
108622015-05-28 Don Breazeal <donb@codesourcery.com>
10863
10864 * linux-low.c (handle_extended_wait): Initialize
10865 thread_info.last_resume_kind for new fork children.
10866
452003ef
PA
108672015-05-15 Pedro Alves <palves@redhat.com>
10868
10869 * target.h (target_handle_new_gdb_connection): Rewrite using if
10870 wrapped in do/while.
10871
1041a03c
JB
108722015-05-14 Joel Brobecker <brobecker@adacore.com>
10873
10874 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10875 * configure, config.in: Regenerate.
10876 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10877 Declare typedef.
10878
c269dbdb
DB
108792015-05-12 Don Breazeal <donb@codesourcery.com>
10880
10881 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10882 PTRACE_EVENT_VFORK_DONE.
10883 (linux_low_ptrace_options, extended_event_reported): Add vfork
10884 events.
10885 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10886 and "vforkdone" for RSP 'T' Stop Reply Packet.
10887 * server.h (report_vfork_events): Declare
10888 global variable.
10889
3a8a0396
DB
108902015-05-12 Don Breazeal <donb@codesourcery.com>
10891
10892 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10893 (the_low_target) <new_fork>: Initialize new member.
10894 * linux-arm-low.c (arm_new_fork): New function.
10895 (the_low_target) <new_fork>: Initialize new member.
10896 * linux-low.c (handle_extended_wait): Call new target function
10897 new_fork.
10898 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10899 * linux-mips-low.c (mips_add_watchpoint): New function
10900 extracted from mips_insert_point.
10901 (the_low_target) <new_fork>: Initialize new member.
10902 (mips_linux_new_fork): New function.
10903 (mips_insert_point): Call mips_add_watchpoint.
10904 * linux-x86-low.c (x86_linux_new_fork): New function.
10905 (the_low_target) <new_fork>: Initialize new member.
10906
de0d863e
DB
109072015-05-12 Don Breazeal <donb@codesourcery.com>
10908
10909 * linux-low.c (handle_extended_wait): Implement return value,
10910 rename argument 'event_child' to 'event_lwp', handle
10911 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10912 (linux_low_ptrace_options): New function.
10913 (linux_low_filter_event): Call linux_low_ptrace_options,
10914 use different argument fo linux_enable_event_reporting,
10915 use return value from handle_extended_wait.
10916 (extended_event_reported): New function.
10917 (linux_wait_1): Call extended_event_reported and set
10918 status to report fork events.
10919 (linux_write_memory): Add pid to debug message.
10920 (reset_lwp_ptrace_options_callback): New function.
10921 (linux_handle_new_gdb_connection): New function.
10922 (linux_target_ops): Initialize new structure member.
10923 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10924 * lynx-low.c: Initialize new structure member.
10925 * remote-utils.c (prepare_resume_reply): Implement stop reason
10926 "fork" for "T" stop message.
10927 * server.c (handle_query): Call handle_new_gdb_connection.
10928 * server.h (report_fork_events): Declare global flag.
10929 * target.h (struct target_ops) <handle_new_gdb_connection>:
10930 New member.
10931 (target_handle_new_gdb_connection): New macro.
10932 * win32-low.c: Initialize new structure member.
10933
ddcbc397
DB
109342015-05-12 Don Breazeal <donb@codesourcery.com>
10935
10936 * mem-break.c (APPEND_TO_LIST): Define macro.
10937 (clone_agent_expr): New function.
10938 (clone_one_breakpoint): New function.
10939 (clone_all_breakpoints): New function.
10940 * mem-break.h: Declare new functions.
10941
89245bc0
DB
109422015-05-12 Don Breazeal <donb@codesourcery.com>
10943
10944 * linux-low.c (linux_supports_fork_events): New function.
10945 (linux_supports_vfork_events): New function.
10946 (linux_target_ops): Initialize new structure members.
10947 (initialize_low): Call linux_check_ptrace_features.
10948 * lynx-low.c (lynx_target_ops): Initialize new structure
10949 members.
10950 * server.c (report_fork_events, report_vfork_events):
10951 New global flags.
10952 (handle_query): Add new features to qSupported packet and
10953 response.
10954 (captured_main): Initialize new global variables.
10955 * target.h (struct target_ops) <supports_fork_events>:
10956 New member.
10957 <supports_vfork_events>: New member.
10958 (target_supports_fork_events): New macro.
10959 (target_supports_vfork_events): New macro.
10960 * win32-low.c (win32_target_ops): Initialize new structure
10961 members.
10962
835205d0
GB
109632015-05-12 Gary Benson <gbenson@redhat.com>
10964
10965 * server.c (handle_qxfer_exec_file): Use current process
10966 if annex is empty.
10967
21e94bd9
SL
109682015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10969
10970 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10971 Remove HAVE_PTRACE_GETREGS conditionals.
10972 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10973 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10974
45614f15
YQ
109752015-05-08 Yao Qi <yao.qi@linaro.org>
10976
10977 * linux-low.c (linux_supports_conditional_breakpoints): New
10978 function.
10979 (linux_target_ops): Install new target method.
10980 * lynx-low.c (lynx_target_ops): Install NULL hook for
10981 supports_conditional_breakpoints.
10982 * nto-low.c (nto_target_ops): Likewise.
10983 * spu-low.c (spu_target_ops): Likewise.
10984 * win32-low.c (win32_target_ops): Likewise.
10985 * server.c (handle_query): Check
10986 target_supports_conditional_breakpoints.
10987 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10988 New field.
10989 (target_supports_conditional_breakpoints): New macro.
10990
80ad801e
PA
109912015-05-06 Pedro Alves <palves@redhat.com>
10992
10993 PR server/18081
10994 * server.c (start_inferior): If the process exits, mourn it.
10995
819843c7
GB
109962015-04-21 Gary Benson <gbenson@redhat.com>
10997
10998 * hostio.c (fileio_open_flags_to_host): Factored out to
10999 fileio_to_host_openflags in common/fileio.c. Single use
11000 updated.
11001
a2d5a9d7
MF
110022015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11003
11004 * linux-xtensa-low.c (xtensa_fill_gregset)
11005 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11006 XCHAL_HAVE_LOOP.
11007
deb44829
MF
110082015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11009
11010 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11011 (regs_info): Replace usrregs pointer with NULL.
11012
e57f1de3
GB
110132015-04-17 Gary Benson <gbenson@redhat.com>
11014
11015 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11016 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11017 * server.c (handle_qxfer_exec_file): New function.
11018 (qxfer_packets): Add exec-file entry.
11019 (handle_query): Report qXfer:exec-file:read as supported packet.
11020
62828379
RN
110212015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11022
11023 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11024
b88bb450
GB
110252015-04-09 Gary Benson <gbenson@redhat.com>
11026
11027 * hostio-errno.c (errno_to_fileio_error): Remove function.
11028 Update caller to use remote_fileio_to_fio_error.
11029
c8f4bfdd
YQ
110302015-04-09 Yao Qi <yao.qi@linaro.org>
11031
11032 * linux-low.c (linux_insert_point): Call
11033 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11034 (linux_remove_point): Call remove_memory_breakpoint if type is
11035 raw_bkpt_type_sw.
11036 * linux-x86-low.c (x86_insert_point): Don't call
11037 insert_memory_breakpoint.
11038 (x86_remove_point): Don't call remove_memory_breakpoint.
11039
41f98f02
PA
110402015-04-01 Pedro Alves <palves@redhat.com>
11041 Cleber Rosa <crosa@redhat.com>
11042
11043 * server.c (gdbserver_usage): Reorganize and extend the usage
11044 message.
11045
2bf6fb9d
PA
110462015-03-24 Pedro Alves <palves@redhat.com>
11047
11048 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11049 output. Also dump TRAP_TRACE.
11050 (linux_low_filter_event): In debug output, distinguish a
11051 resume_stop SIGSTOP from a delayed SIGSTOP.
11052
369f6daa
GB
110532015-03-24 Gary Benson <gbenson@redhat.com>
11054
11055 * linux-x86-low.c (x86_linux_new_thread): Moved to
11056 nat/x86-linux.c.
11057 (x86_linux_prepare_to_resume): Likewise.
11058
8e5d4070
GB
110592015-03-24 Gary Benson <gbenson@redhat.com>
11060
11061 * Makefile.in (x86-linux-dregs.o): New rule.
11062 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11063 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11064 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11065 (x86_linux_dr_get): Likewise.
11066 (x86_linux_dr_set): Likewise.
11067 (update_debug_registers_callback): Likewise.
11068 (x86_linux_dr_set_addr): Likewise.
11069 (x86_linux_dr_get_addr): Likewise.
11070 (x86_linux_dr_set_control): Likewise.
11071 (x86_linux_dr_get_control): Likewise.
11072 (x86_linux_dr_get_status): Likewise.
11073 (x86_linux_update_debug_registers): Likewise.
11074
2b95d440
GB
110752015-03-24 Gary Benson <gbenson@redhat.com>
11076
11077 * linux-x86-low.c (x86_linux_update_debug_registers):
11078 New function, factored out from...
11079 (x86_linux_prepare_to_resume): ...this.
11080
14b0bc68
GB
110812015-03-24 Gary Benson <gbenson@redhat.com>
11082
11083 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11084 (x86_linux_dr_set): Likewise.
11085 (update_debug_registers_callback): Likewise.
11086 (x86_linux_dr_set_addr): Likewise.
11087 (x86_linux_dr_get_addr): Likewise.
11088 (x86_linux_dr_set_control): Likewise.
11089 (x86_linux_dr_get_control): Likewise.
11090 (x86_linux_dr_get_status): Likewise.
11091 (x86_linux_prepare_to_resume): Likewise.
11092
5dfe6ca8
GB
110932015-03-24 Gary Benson <gbenson@redhat.com>
11094
11095 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11096 Use perror_with_name. Pass string through gettext.
11097 (x86_linux_dr_set): Likewise.
11098
d33472ad
GB
110992015-03-24 Gary Benson <gbenson@redhat.com>
11100
11101 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11102 (x86_linux_dr_set_addr): ...this.
11103 (x86_dr_low_get_addr): Rename to...
11104 (x86_linux_dr_get_addr): ...this.
11105 (x86_dr_low_set_control): Rename to...
11106 (x86_linux_dr_set_control): ...this.
11107 (x86_dr_low_get_control): Rename to...
11108 (x86_linux_dr_get_control): ...this.
11109 (x86_dr_low_get_status): Rename to...
11110 (x86_linux_dr_get_status): ...this.
11111 (x86_dr_low): Update with new function names.
11112
4b134ca1
GB
111132015-03-24 Gary Benson <gbenson@redhat.com>
11114
11115 * Makefile.in (x86-linux.o): New rule.
11116 * configure.srv: Add x86-linux.o to relevant targets.
11117 * linux-low.c (lwp_set_arch_private_info): New function.
11118 (lwp_arch_private_info): Likewise.
11119 * linux-x86-low.c: Include nat/x86-linux.h.
11120 (arch_lwp_info): Removed structure.
11121 (update_debug_registers_callback):
11122 Use lwp_set_debug_registers_changed.
11123 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11124 and lwp_set_debug_registers_changed.
11125 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11126
34c703da
GB
111272015-03-24 Gary Benson <gbenson@redhat.com>
11128
11129 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11130 * linux-arm-low.c (arm_new_thread): Likewise.
11131 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11132 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11133 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11134 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11135
cff068da
GB
111362015-03-24 Gary Benson <gbenson@redhat.com>
11137
11138 * linux-low.c (ptid_of_lwp): New function.
11139 (lwp_is_stopped): Likewise.
11140 (lwp_stop_reason): Likewise.
11141 * linux-x86-low.c (update_debug_registers_callback):
11142 Use lwp_is_stopped.
11143 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11144 lwp_stop_reason.
11145
b2f7c7e8
GB
111462015-03-24 Gary Benson <gbenson@redhat.com>
11147
11148 * linux-low.h (linux_stop_lwp): Remove declaration.
11149
6d4ee8c6
GB
111502015-03-24 Gary Benson <gbenson@redhat.com>
11151
11152 * linux-low.h: Include nat/linux-nat.h.
11153 * linux-low.c (iterate_over_lwps_args): New structure.
11154 (iterate_over_lwps_filter): New function.
11155 (iterate_over_lwps): Likewise.
11156 * linux-x86-low.c (update_debug_registers_callback):
11157 Update signature to what iterate_over_lwps expects.
11158 Remove PID check that iterate_over_lwps now performs.
11159 (x86_dr_low_set_addr): Use iterate_over_lwps.
11160 (x86_dr_low_set_control): Likewise.
11161
70a0bb6b
GB
111622015-03-24 Gary Benson <gbenson@redhat.com>
11163
11164 * linux-x86-low.c (x86_debug_reg_state): New function.
11165 (x86_linux_prepare_to_resume): Use the above.
11166
7b669087
GB
111672015-03-24 Gary Benson <gbenson@redhat.com>
11168
11169 * linux-low.c (current_lwp_ptid): New function.
11170 * linux-x86-low.c: Include nat/linux-nat.h.
11171 (x86_dr_low_get_addr): Use current_lwp_ptid.
11172 (x86_dr_low_get_control): Likewise.
11173 (x86_dr_low_get_status): Likewise.
11174
eef49a3d
PA
111752015-03-20 Pedro Alves <palves@redhat.com>
11176
11177 * tracepoint.c (cmd_qtstatus): Make "str" const.
11178
b2333d22
PA
111792015-03-20 Pedro Alves <palves@redhat.com>
11180
11181 * server.c (handle_general_set): Make "req_str" const.
11182
23f238d3
PA
111832015-03-19 Pedro Alves <palves@redhat.com>
11184
11185 * linux-low.c (linux_resume_one_lwp): Rename to ...
11186 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11187 instead call perror_with_name.
11188 (check_ptrace_stopped_lwp_gone): New function.
11189 (linux_resume_one_lwp): Reimplement as wrapper around
11190 linux_resume_one_lwp_throw that swallows errors if the LWP is
11191 gone.
11192
91baf43f
PA
111932015-03-19 Pedro Alves <palves@redhat.com>
11194
11195 * linux-low.c (count_events_callback, select_event_lwp_callback):
11196 No longer check whether the thread has resume_stop as last resume
11197 kind.
11198
8bf3b159
PA
111992015-03-19 Pedro Alves <palves@redhat.com>
11200
11201 * linux-low.c (count_events_callback, select_event_lwp_callback):
11202 Use the lwp's status_pending_p field, not the thread's.
11203
b90fc188
PA
112042015-03-19 Pedro Alves <palves@redhat.com>
11205
11206 * linux-low.c (select_event_lwp_callback): Update comments to
11207 no longer mention SIGTRAP.
11208
464b0089
GB
112092015-03-18 Gary Benson <gbenson@redhat.com>
11210
11211 * server.c (handle_query): Do not report vFile:fstat as supported.
11212
aa9e327f
GB
112132015-03-11 Gary Benson <gbenson@redhat.com>
11214
11215 * hostio.c (sys/types.h): New include.
11216 (sys/stat.h): Likewise.
11217 (common-remote-fileio.h): Likewise.
11218 (handle_fstat): New function.
11219 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11220
791c0056
GB
112212015-03-11 Gary Benson <gbenson@redhat.com>
11222
11223 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11224 struct stat.st_blocks and struct stat.st_blksize.
11225 * configure: Regenerate.
11226 * config.in: Likewise.
11227 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11228 (OBS): Add common-remote-fileio.o.
11229 (common-remote-fileio.o): New rule.
11230
9a9df970
PA
112312015-03-09 Pedro Alves <palves@redhat.com>
11232
11233 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11234 'struct sockaddr' pointer in 'accept' call.
11235
9eb1356e
PA
112362015-03-09 Pedro Alves <palves@redhat.com>
11237
11238 Revert:
11239 2015-03-07 Pedro Alves <palves@redhat.com>
11240 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11241 or <winsock2.h> here. Instead include "gdb_socket.h".
11242 (remote_open): Use union gdb_sockaddr_u.
11243 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11244 or <winsock2.h> here. Instead include "gdb_socket.h".
11245 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11246 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11247 or <sys/un.h>.
11248 (init_named_socket, gdb_agent_helper_thread): Use union
11249 gdb_sockaddr_u.
11250
aac331e4
PA
112512015-03-07 Pedro Alves <palves@redhat.com>
11252
11253 * configure.ac (build_warnings): Move
11254 -Wdeclaration-after-statement to the C-specific set.
11255 * configure: Regenerate.
11256
366c75fc
PA
112572015-03-07 Pedro Alves <palves@redhat.com>
11258
11259 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11260 or <winsock2.h> here. Instead include "gdb_socket.h".
11261 (remote_open): Use union gdb_sockaddr_u.
11262 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11263 or <winsock2.h> here. Instead include "gdb_socket.h".
11264 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11265 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11266 or <sys/un.h>.
11267 (init_named_socket, gdb_agent_helper_thread): Use union
11268 gdb_sockaddr_u.
11269
492d29ea
PA
112702015-03-07 Pedro Alves <palves@redhat.com>
11271
11272 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11273 instead.
11274
60a191ed
YQ
112752015-03-06 Yao Qi <yao.qi@linaro.org>
11276
11277 * linux-aarch64-low.c (aarch64_insert_point): Use
11278 show_debug_regs as a boolean.
11279 (aarch64_remove_point): Likewise.
11280
f5771b1d
PA
112812015-03-05 Pedro Alves <palves@redhat.com>
11282
11283 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11284 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11285 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11286 * nto-low.c (nto_target_ops): Likewise.
11287 * spu-low.c (spu_target_ops): Likewise.
11288 * win32-low.c (win32_target_ops): Likewise.
11289
3e572f71
PA
112902015-03-04 Pedro Alves <palves@redhat.com>
11291
72f4393d 11292 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11293 Decide whether a breakpoint triggered based on the SIGTRAP's
11294 siginfo.si_code.
72f4393d
L
11295 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11296 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11297 (linux_low_filter_event): Check for breakpoints before checking
11298 watchpoints.
11299 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11300 siginfo.si_code.
72f4393d
L
11301 (linux_stopped_by_sw_breakpoint)
11302 (linux_supports_stopped_by_sw_breakpoint)
11303 (linux_stopped_by_hw_breakpoint)
11304 (linux_supports_stopped_by_hw_breakpoint): New functions.
11305 (linux_target_ops): Install new target methods.
3e572f71 11306
1ec68e26
PA
113072015-03-04 Pedro Alves <palves@redhat.com>
11308
11309 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11310 * server.c (swbreak_feature, hwbreak_feature): New globals.
11311 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11312 (captured_main): Clear swbreak_feature and hwbreak_feature.
11313 * server.h (swbreak_feature, hwbreak_feature): Declare.
11314 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11315 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11316 supports_stopped_by_hw_breakpoint>: New fields.
11317 (target_supports_stopped_by_sw_breakpoint)
11318 (target_stopped_by_sw_breakpoint)
11319 (target_supports_stopped_by_hw_breakpoint)
11320 (target_stopped_by_hw_breakpoint): Declare.
11321
15c66dd6
PA
113222015-03-04 Pedro Alves <palves@redhat.com>
11323
11324 enum lwp_stop_reason -> enum target_stop_reason
11325 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11326 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11327 (linux_wait_1, stuck_in_jump_pad_callback)
11328 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11329 (linux_stopped_by_watchpoint):
11330 * linux-low.h (enum lwp_stop_reason): Delete.
11331 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11332 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11333
98fc70d6
YQ
113342015-03-04 Yao Qi <yao.qi@linaro.org>
11335
11336 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11337
dd2ac174
GB
113382015-03-03 Gary Benson <gbenson@redhat.com>
11339
11340 * hostio.c (handle_vFile): Fix prefix lengths.
11341
d68e53f4
MM
113422015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11343
11344 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11345 ptr_bits.
11346
bf2d68ab
AA
113472015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11348
11349 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11350 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11351 (clean): Add "rm -f" for above C files.
11352 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11353 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11354 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11355 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11356 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11357 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11358 (init_registers_s390x_vx_linux64)
11359 (init_registers_s390x_tevx_linux64)
11360 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11361 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11362 declarations.
11363 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11364 (s390_store_vxrs_high): New functions.
11365 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11366 NT_S390_VXRS_HIGH.
11367 (s390_arch_setup): Add logic for selecting one of the new target
11368 descriptions. Activate the new vector regsets if applicable.
11369 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11370 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11371 and init_registers_s390x_tevx_linux64.
11372
c966a859
PA
113732015-03-01 Pedro Alves <palves@redhat.com>
11374
11375 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11376 parameter.
11377
4180215b
PA
113782015-02-27 Pedro Alves <palves@redhat.com>
11379
11380 * linux-x86-low.c (u_debugreg_offset): New function.
11381 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11382
749bab01
PA
113832015-02-27 Pedro Alves <palves@redhat.com>
11384
11385 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11386 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11387 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11388 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11389 (ps_lsetfpregs, ps_getpid)
11390 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11391 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11392 (ps_lsetxregs, ps_plog): Declare.
11393
3c14e5a3
PA
113942015-02-27 Pedro Alves <palves@redhat.com>
11395
11396 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11397 IP_AGENT_EXPORT_FUNC.
11398 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11399 IP_AGENT_EXPORT_FUNC.
11400 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11401 (IP_AGENT_EXPORT): Delete.
11402 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11403 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11404 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11405 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11406 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11407 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11408 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11409 (traceframe_read_count, traceframe_write_count)
11410 (traceframes_created, trace_state_variables, get_raw_reg)
11411 (get_trace_state_variable_value, set_trace_state_variable_value)
11412 (ust_loaded, helper_thread_id, cmd_buf): Use
11413 IPA_SYM_EXPORTED_NAME.
11414 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11415 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11416 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11417 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11418 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11419 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11420 EXTERN_C_PUSH/EXTERN_C_POP.
11421 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11422 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11423 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11424 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11425 (traceframe_write_count, traceframe_read_count)
11426 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11427 (about_to_request_buffer_space, get_trace_state_variable_value)
11428 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11429 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11430 EXTERN_C_PUSH/EXTERN_C_POP.
11431 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11432 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11433 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11434 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11435 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11436 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11437 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11438 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11439 Define.
11440 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11441 (IP_AGENT_EXPORT_VAR_DECL): Define.
11442 (tracing): Declare.
11443 (gdb_agent_get_raw_reg): Declare.
11444
fe978cb0
PA
114452015-02-27 Tom Tromey <tromey@redhat.com>
11446 Pedro Alves <palves@redhat.com>
11447
11448 Rename symbols whose names are reserved C++ keywords throughout.
11449
3bc3d82a
PA
114502015-02-27 Pedro Alves <palves@redhat.com>
11451
11452 * Makefile.in (COMPILER): New, get it from autoconf.
11453 (CXX): Get from autoconf instead.
11454 (COMPILE.pre): Use COMPILER.
11455 (CC-LD): Rename to ...
11456 (CC_LD): ... this. Use COMPILER.
11457 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11458 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11459 * acinclude.m4: Include build-with-cxx.m4.
11460 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11461 Disable -Werror by default if building in C++ mode.
11462 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11463 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11464 the C++ compiler. Save/restore CXXFLAGS too.
11465 * configure: Regenerate.
11466
07697489
PA
114672015-02-27 Pedro Alves <palves@redhat.com>
11468
11469 * acinclude.m4: Include libiberty.m4.
11470 * configure.ac: Call libiberty_INIT.
11471 * config.in, configure: Regenerate.
11472
9beb7c4e
PA
114732015-02-26 Pedro Alves <palves@redhat.com>
11474
11475 * linux-low.c (linux_wait_1): When incrementing the PC past a
11476 program breakpoint always use the_low_target.breakpoint_len as
11477 increment, rather than the maximum between that and
11478 the_low_target.decr_pc_after_break.
11479
8090aef2
PA
114802015-02-23 Pedro Alves <palves@redhat.com>
11481
11482 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11483 thread was doing a step-over; always adjust the PC if
11484 we stepped over a permanent breakpoint.
11485 (linux_wait_1): If we stepped over breakpoint that was on top of a
11486 permanent breakpoint, manually advance the PC past it.
11487
bc9540e8
PA
114882015-02-23 Pedro Alves <palves@redhat.com>
11489
11490 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11491 modes.
11492 (x86_fill_gregset, x86_store_gregset): Use it when handling
11493 $orig_eax.
11494
2db9a427
PA
114952015-02-20 Pedro Alves <palves@redhat.com>
11496
11497 * thread-db.c: Include "nat/linux-procfs.h".
11498 (thread_db_init): Skip listing new threads if the kernel supports
11499 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11500
afa8d396
PA
115012015-02-20 Pedro Alves <palves@redhat.com>
11502
11503 * linux-low.c (status_pending_p_callback): Use ptid_match.
11504
c9587f88
AT
115052015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11506
11507 PR breakpoints/16812
11508 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11509 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11510 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11511
b05ec7a5
AT
115122015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11513
11514 PR breakpoints/15956
11515 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11516
d33501a5
MM
115172015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11518
11519 * linux-low.c (linux_low_btrace_conf): Print size.
11520 * server.c (handle_btrace_conf_general_set): New.
11521 (hanle_general_set): Call handle_btrace_conf_general_set.
11522 (handle_query): Report Qbtrace-conf:bts:size as supported.
11523
f4abbc16
MM
115242015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11525
11526 * linux-low.c (linux_low_enable_btrace): Update parameters.
11527 (linux_low_btrace_conf): New.
11528 (linux_target_ops)<to_btrace_conf>: Initialize.
11529 * server.c (current_btrace_conf): New.
11530 (handle_btrace_enable): Rename to ...
11531 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11532 to target_enable_btrace. Update comment. Update users.
11533 (handle_qxfer_btrace_conf): New.
11534 (qxfer_packets): Add btrace-conf entry.
11535 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11536 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11537 (target_ops)<read_btrace_conf>: New.
11538 (target_enable_btrace): Update parameters.
11539 (target_read_btrace_conf): New.
11540
043c3577
MM
115412015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11542
11543 * server.c (handle_btrace_general_set): Remove call to
11544 target_supports_btrace.
11545 (supported_btrace_packets): New.
11546 (handle_query): Call supported_btrace_packets.
11547 * target.h: include btrace-common.h.
11548 (btrace_target_info): Removed.
11549 (supports_btrace, target_supports_btrace): Update parameters.
11550
734b0e4b
MM
115512015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11552
11553 * Makefile.in (SFILES): Add common/btrace-common.c.
11554 (OBS): Add common/btrace-common.o.
11555 (btrace-common.o): Add build rules.
11556 * linux-low: Include btrace-common.h.
11557 (linux_low_read_btrace): Use struct btrace_data. Call
11558 btrace_data_init and btrace_data_fini.
11559
d6c146e9
PA
115602015-02-06 Pedro Alves <palves@redhat.com>
11561
11562 * thread-db.c (find_new_threads_callback): Add debug output.
11563
20ba1ce6
PA
115642015-02-04 Pedro Alves <palves@redhat.com>
11565
11566 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11567 (resume_stopped_resumed_lwps): New function.
11568 (linux_wait_for_event_filtered): Use it.
11569
8cc73a39
SDJ
115702015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11571
11572 * Makefile.in (SFILES): Add linux-personality.c.
11573 (linux-personality.o): New rule.
11574 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11575 list of objects to be built.
11576 * linux-low.c: Include nat/linux-personality.h.
11577 (linux_create_inferior): Remove code to disable address space
11578 randomization (moved to ../nat/linux-personality.c). Create
11579 cleanup to disable address space randomization.
11580
fb23d554
SDJ
115812015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11582
11583 * Makefile.in (posix-strerror.o): New rule.
11584 (mingw-strerror.o): Likewise.
11585 * configure: Regenerated.
11586 * configure.ac: Source file ../common/common.host. Initialize new
11587 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11588
cdf43629
YQ
115892015-01-14 Yao Qi <yao@codesourcery.com>
11590
11591 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11592 (ppc-linux.o): New rule.
11593 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11594 * configure.ac: AC_CHECK_FUNCS(getauxval).
11595 * config.in: Re-generated.
11596 * configure: Re-generated.
11597 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11598 ppc64_64bit_inferior_p
11599
514c5338
YQ
116002015-01-14 Yao Qi <yao@codesourcery.com>
11601
11602 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11603 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11604 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11605 (PT_ORIG_R3, PT_TRAP): Likewise.
11606 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11607 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11608 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11609
3368c1e5
JB
116102015-01-10 Joel Brobecker <brobecker@adacore.com>
11611
11612 * i387-fp.c (i387_cache_to_xsave): In look over
11613 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11614 zmmh_low_space field by use of zmmh_high_space.
11615
582511be
PA
116162015-01-09 Pedro Alves <palves@redhat.com>
11617
11618 * linux-low.c (step_over_bkpt): Move higher up in the file.
11619 (handle_extended_wait): Don't store the stop_pc here.
11620 (get_stop_pc): Adjust comments and rename to ...
11621 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11622 stopped for a software breakpoint or hardware breakpoint.
11623 (thread_still_has_status_pending_p): New function.
11624 (status_pending_p_callback): Use
11625 thread_still_has_status_pending_p. If the event is no longer
11626 interesting, resume the LWP.
11627 (handle_tracepoints): Add assert.
11628 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11629 (wstatus_maybe_breakpoint): New function.
11630 (cancel_breakpoint): Delete function.
11631 (check_stopped_by_watchpoint): New function, factored out from
11632 linux_low_filter_event.
11633 (lp_status_maybe_breakpoint): Delete function.
11634 (linux_low_filter_event): Remove filter_ptid argument.
11635 Leave thread group exits pending here. Store the LWP's stop PC.
11636 Always leave events pending.
11637 (linux_wait_for_event_filtered): Pull all events out of the
11638 kernel, and leave them all pending.
11639 (count_events_callback, select_event_lwp_callback): Consider all
11640 events.
11641 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11642 (select_event_lwp): Only give preference to the stepping LWP in
11643 all-stop mode. Adjust comments.
11644 (ignore_event): New function.
11645 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11646 references to cancel_breakpoints. Adjust to renames. Also give
11647 equal priority to all LWPs that have had events in non-stop mode.
11648 If reporting a software breakpoint event, unadjust the LWP's PC.
11649 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11650 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11651 Adjust.
11652 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11653 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11654 (linux_stopped_by_watchpoint): Adjust.
11655 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11656 * linux-low.h (enum lwp_stop_reason): New.
11657 (struct lwp_info) <stop_pc>: Adjust comment.
11658 <stopped_by_watchpoint>: Delete field.
11659 <stop_reason>: New field.
11660 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11661 * mem-break.c (software_breakpoint_inserted_here)
11662 (hardware_breakpoint_inserted_here): New function.
11663 * mem-break.h (software_breakpoint_inserted_here)
11664 (hardware_breakpoint_inserted_here): Declare.
11665 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11666 (cancel_breakpoints): Delete.
11667 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11668 (upload_fast_traceframes): Remove references to
11669 cancel_breakpoints.
11670
a33e3959
PA
116712015-01-09 Pedro Alves <palves@redhat.com>
11672
11673 * thread-db.c (find_new_threads_callback): Ignore thread if the
11674 kernel thread ID is -1.
11675
8784d563
PA
116762015-01-09 Pedro Alves <palves@redhat.com>
11677
11678 * linux-low.c (linux_attach_fail_reason_string): Move to
11679 nat/linux-ptrace.c, and rename.
11680 (linux_attach_lwp): Update comment.
11681 (attach_proc_task_lwp_callback): New function.
11682 (linux_attach): Adjust to rename and use
11683 linux_proc_attach_tgid_threads.
11684 (linux_attach_fail_reason_string): Delete declaration.
11685
76f2b779
JB
116862015-01-01 Joel Brobecker <brobecker@adacore.com>
11687
11688 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11689 * server.c (gdbserver_version): Likewise.
11690
fafcc06a
SDJ
116912014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11692
11693 * remote-utils.c: Include ctype.h.
11694 (input_interrupt): Explicitly handle the case when the char
11695 received is the NUL byte. Improve the printing of non-ASCII
11696 characters.
11697
beed38b8
JB
116982014-12-16 Joel Brobecker <brobecker@adacore.com>
11699
11700 * linux-low.c (linux_low_filter_event): Update call to
11701 linux_enable_event_reporting following the addition of
11702 a new parameter to that function.
11703
bf330350
CU
117042014-12-16 Catalin Udma <catalin.udma@freescale.com>
11705
11706 PR server/17457
11707 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11708 (AARCH64_FPCR_REGNO): Likewise.
11709 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11710 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11711 (aarch64_store_fpregset): Likewise.
11712
5227d625
JB
117132014-12-15 Joel Brobecker <brobecker@adacore.com>
11714
11715 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11716 Remove FIXME comment about assumption about N.
11717
f93b65a0
JB
117182014-12-13 Joel Brobecker <brobecker@adacore.com>
11719
11720 * configure.ac: If large-file support is disabled in GDBserver,
11721 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11722 * configure: Regenerate.
11723
e5a9158d
AA
117242014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11725
11726 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11727 warning upon ENODATA from ptrace.
11728 * linux-s390-low.c (s390_store_tdb): New.
11729 (s390_regsets): Add regset for NT_S390_TDB.
11730
feea5f36
AA
117312014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11732
11733 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11734 without a fill_function.
11735 * linux-s390-low.c (s390_fill_last_break): Remove.
11736 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11737 (s390_arch_setup): Use regset's size instead of fill_function for
11738 loop end condition.
11739
098dbe61
AA
117402014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11741
11742 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11743 the regset's store function when ptrace returned an error.
11744 * regcache.c (get_thread_regcache): Invalidate register cache
11745 before fetching inferior's registers.
11746
28eef672
AA
117472014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11748
11749 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11750 while-loop as for-loop.
11751 (regsets_store_inferior_registers): Likewise.
11752
bdca27a2
YQ
117532014-11-28 Yao Qi <yao@codesourcery.com>
11754
11755 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11756 * config.in, configure: Re-generate.
11757 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11758 is defined.
11759
9c232dda
YQ
117602014-11-21 Yao Qi <yao@codesourcery.com>
11761
11762 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11763 (AC_CHECK_HEADERS): Remove malloc.h.
11764 * configure: Re-generated.
11765 * config.in: Re-generated.
11766 * server.h: Don't include alloca.h and malloc.h.
11767 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11768 Don't include malloc.h.
11769
43968415
JB
117702014-11-17 Joel Brobecker <brobecker@adacore.com>
11771
11772 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11773 corresponding ERRNO check in same block.
11774
40e91bc7
PA
117752014-11-12 Pedro Alves <palves@redhat.com>
11776
11777 * server.c (cont_thread): Update comment.
11778 (start_inferior, attach_inferior): No longer clear cont_thread.
11779 (handle_v_cont): No longer set cont_thread.
11780 (captured_main): Clear cont_thread each time a GDB connects.
11781
c2c118cf
PA
117822014-11-12 Pedro Alves <palves@redhat.com>
11783
11784 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11785 thread, and don't resume all threads if the Hc thread has exited.
11786
78708b7c
PA
117872014-11-12 Pedro Alves <palves@redhat.com>
11788
11789 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11790 the process group instead of to a specific LWP.
11791
a2abc7de
PA
117922014-10-15 Pedro Alves <palves@redhat.com>
11793
11794 PR server/17487
11795 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11796 parameter.
11797 (arm_set_thread_context): Delete.
11798 (the_low_target): Adjust.
11799 * win32-i386-low.c (debug_registers_changed)
11800 (debug_registers_used): Delete.
11801 (update_debug_registers_callback): New function.
11802 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11803 needing to update their debug registers.
11804 (win32_get_current_dr): New function.
11805 (x86_dr_low_get_addr, x86_dr_low_get_control)
11806 (x86_dr_low_get_status): Fetch the debug register from the thread
11807 record's context.
11808 (i386_initial_stuff): Adjust.
11809 (i386_get_thread_context): Remove current_event parameter. Don't
11810 clear debug_registers_changed nor copy DR values to
11811 debug_reg_state.
11812 (i386_set_thread_context): Delete.
11813 (i386_prepare_to_resume): New function.
11814 (i386_thread_added): Mark the thread as needing to update irs
11815 debug registers.
11816 (the_low_target): Remove i386_set_thread_context and install
11817 i386_prepare_to_resume.
11818 * win32-low.c (win32_get_thread_context): Adjust.
11819 (win32_set_thread_context): Use SetThreadContext
11820 directly.
11821 (win32_prepare_to_resume): New function.
11822 (win32_require_context): New function, factored out from ...
11823 (thread_rec): ... this.
11824 (continue_one_thread): Call win32_prepare_to_resume on each thread
11825 we're about to continue.
11826 (win32_resume): Call win32_prepare_to_resume on the event thread.
11827 * win32-low.h (struct win32_thread_info)
11828 <debug_registers_changed>: New field.
11829 (struct win32_target_ops): Change prototype of set_thread_context,
11830 delete set_thread_context and add prepare_to_resume.
11831 (win32_require_context): New declaration.
11832
a442d071
GB
118332014-10-08 Gary Benson <gbenson@redhat.com>
11834
11835 * server.h: Do not include common-exceptions.h.
11836
6f1947e8
GB
118372014-10-08 Gary Benson <gbenson@redhat.com>
11838
11839 * server.h: Do not include cleanups.h.
11840
63b434a4
JH
118412014-09-30 James Hogan <james.hogan@imgtec.com>
11842
11843 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11844 mips64-dsp-linux.c.
11845
c4d9ceb6
YQ
118462014-09-23 Yao Qi <yao@codesourcery.com>
11847
11848 * linux-low.c (lp_status_maybe_breakpoint): New function.
11849 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11850 (count_events_callback): Likewise.
11851 (select_event_lwp_callback): Likewise.
11852 (cancel_breakpoints_callback): Likewise.
11853
89a5711c
DB
118542014-09-19 Don Breazeal <donb@codesourcery.com>
11855
11856 * linux-low.c (handle_extended_wait): Call
11857 linux_ptrace_get_extended_event.
11858 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11859 linux_is_extended_waitstatus.
11860
bffc0964
JB
118612014-09-16 Joel Brobecker <brobecker@adacore.com>
11862
11863 * Makefile.in (CPPFLAGS): Define.
11864 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11865 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11866
0bfdf32f
GB
118672014-09-16 Gary Benson <gbenson@redhat.com>
11868
11869 * inferiors.h (current_inferior): Renamed as...
11870 (current_thread): New variable. All uses updated.
11871 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11872 (maybe_move_out_of_jump_pad): Likewise.
11873 (cancel_breakpoint): Likewise.
11874 (linux_low_filter_event): Likewise.
11875 (wait_for_sigstop): Likewise.
11876 (linux_resume_one_lwp): Likewise.
11877 (need_step_over_p): Likewise.
11878 (start_step_over): Likewise.
11879 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11880 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11881 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11882 and save_inferior as saved_thread.
11883 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11884 saved_thread.
11885 (regcache_invalidate_thread): Likewise.
11886 * remote-utils.c (prepare_resume_reply): Likewise.
11887 * thread-db.c (thread_db_get_tls_address): Likewise.
11888 (disable_thread_event_reporting): Likewise.
11889 (remove_thread_event_breakpoints): Likewise.
11890 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11891 as saved_thread.
11892 * target.h (set_desired_inferior): Renamed as...
11893 (set_desired_thread): New declaration. All uses updated.
11894 * server.c (myresume): Updated comment to reference thread instead
11895 of inferior.
11896 (handle_serial_event): Likewise.
11897 (handle_target_event): Likewise.
11898
361c8ade
GB
118992014-09-12 Tom Tromey <tromey@redhat.com>
11900 Gary Benson <gbenson@redhat.com>
11901
11902 * regcache.h: Include common-regcache.h.
11903 (regcache_read_pc): Don't declare.
11904 * regcache.c (get_thread_regcache_for_ptid): New function.
11905
bd9269f7
GB
119062014-09-11 Tom Tromey <tromey@redhat.com>
11907 Gary Benson <gbenson@redhat.com>
11908
11909 * symbol.c: New file.
11910 * Makefile.in (SFILES): Add symbol.c.
11911 (OBS): Add symbol.o.
11912
f8c1d06b
GB
119132014-09-11 Gary Benson <gbenson@redhat.com>
11914
11915 * target.c (target_stop_ptid, target_continue_ptid): New
11916 functions.
11917
721ec300
GB
119182014-09-11 Tom Tromey <tromey@redhat.com>
11919 Gary Benson <gbenson@redhat.com>
11920
11921 * target.h: Include target/target.h.
11922 * target.c (target_read_memory, target_read_uint32)
11923 (target_write_memory): New functions.
11924
c5e92cca
GB
119252014-09-11 Gary Benson <gbenson@redhat.com>
11926
11927 * server.h (debug_hw_points): Don't declare.
11928 * server.c (debug_hw_points): Don't define. Replace all uses
11929 with show_debug_regs.
11930 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11931 all uses with show_debug_regs.
11932
2e4bb98a
EBM
119332014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11934
11935 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11936 endianness into account.
11937 (ppc_supply_ptrace_register): Likewise.
11938
ac740bc7
JH
119392014-09-03 James Hogan <james.hogan@imgtec.com>
11940
11941 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11942 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11943
97ea6506
GB
119442014-09-03 Gary Benson <gbenson@redhat.com>
11945
11946 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11947 ALL_DEBUG_ADDRESS_REGISTERS.
11948
df7e5265
GB
119492014-09-02 Gary Benson <gbenson@redhat.com>
11950
11951 * i386-low.h: Renamed as...
11952 * x86-low.h: New file. All type, function and variable name
11953 prefixes changed from "i386_" to "x86_". All references updated.
11954 * i386-low.c: Renamed as...
11955 * x86-low.c: New file. All type, function and variable name
11956 prefixes changed from "i386_" to "x86_". All references updated.
11957
ed859da7
GB
119582014-09-02 Gary Benson <gbenson@redhat.com>
11959
11960 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11961 (x86_linux_new_thread): Likewise.
11962
860789c7
GB
119632014-08-29 Gary Benson <gbenson@redhat.com>
11964
11965 * server.h (setjmp.h): Do not include.
11966 (toplevel): Do not declare.
11967 (common-exceptions.h): Include.
11968 (cleanups.h): Likewise.
11969 * server.c (toplevel): Do not define.
11970 (exit_code): New static global.
11971 (detach_or_kill_for_exit_cleanup): New function.
11972 (main): New function. Original main renamed to...
11973 (captured_main): New function.
11974 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11975
ff55e1b5
GB
119762014-08-29 Gary Benson <gbenson@redhat.com>
11977
11978 * Makefile.in (SFILES): Add common/common-exceptions.c.
11979 (OBS): Add common-exceptions.o.
11980 (common-exceptions.o): New rule.
11981 * utils.c (prepare_to_throw_exception): New function.
11982
e9bcb658
GB
119832014-08-29 Gary Benson <gbenson@redhat.com>
11984
11985 * config.in: Regenerate.
11986 * configure: Likewise.
11987
e3180625
GB
119882014-08-29 Gary Benson <gbenson@redhat.com>
11989
11990 * Makefile.in (SFILES): Add common/cleanups.c.
11991 (OBS): cleanups.o.
11992 (cleanups.o): New rule.
11993
e3d6ba5d
GB
119942014-08-29 Gary Benson <gbenson@redhat.com>
11995
11996 * utils.c (internal_vwarning): New function.
11997
7096e886
GB
119982014-08-28 Gary Benson <gbenson@redhat.com>
11999
12000 * utils.h (fatal): Remove declaration.
12001 * utils.c (fatal): Remove function.
12002
14ce3192
GB
120032014-08-28 Gary Benson <gbenson@redhat.com>
12004
12005 * tracepoint.c (gdb_agent_init): Replace fatal with
12006 perror_with_name.
12007 (initialize_tracepoint): Likewise.
12008
50278d59
GB
120092014-08-28 Gary Benson <gbenson@redhat.com>
12010
12011 * remote-utils.c (remote_prepare): Replace fatal with error.
12012
aa96c426
GB
120132014-08-28 Gary Benson <gbenson@redhat.com>
12014
12015 * linux-low.c (linux_async): Replace fatal with warning.
12016 Tidy up and return.
12017 (linux_start_non_stop): Return -1 if linux_async failed.
12018
f7160e97
GB
120192014-08-28 Gary Benson <gbenson@redhat.com>
12020
12021 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12022 gdb_assert.
12023 (i386_dr_low_get_addr): Remove vague comment.
12024 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12025 gdb_assert.
12026
38e08fca
GB
120272014-08-28 Gary Benson <gbenson@redhat.com>
12028
12029 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12030 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12031 internal_error.
12032 (linux_resume_one_lwp): Likewise.
12033 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12034 gdb_assert.
12035 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12036 with internal_error.
12037 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12038 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12039 (find_register_by_name): Replace fatal with internal_error.
12040 (find_regno): Likewise.
12041 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12042 * thread-db.c (thread_db_create_event): Likewise.
12043 (thread_db_load_search): Likewise.
12044 (try_thread_db_load_1): Likewise.
12045 * tracepoint.c (get_jump_space_head): Replace fatal with
12046 internal_error.
12047 (claim_trampoline_space): Likewise.
12048 (have_fast_tracepoint_trampoline_buffer): Likewise.
12049 (cmd_qtstart): Likewise.
12050 (stop_tracing): Likewise.
12051 (fast_tracepoint_collecting): Likewise.
12052 (target_malloc): Likewise.
12053 (download_tracepoint): Likewise.
12054 (download_trace_state_variables): Replace check with gdb_assert.
12055 (upload_fast_traceframes): Replace fatal with internal_error.
12056
34abf635
GB
120572014-08-19 Tom Tromey <tromey@redhat.com>
12058 Gary Benson <gbenson@redhat.com>
12059
12060 * Makefile.in (SFILES): Add common/common-debug.c.
12061 (OBS): Add common-debug.o.
12062 (common-debug.o): New rule.
12063 * debug.h (debug_printf): Don't declare.
12064 * debug.c (debug_printf): Renamed and rewritten as...
12065 (debug_vprintf): New function.
12066
f6e94d78
GB
120672014-08-19 Gary Benson <gbenson@redhat.com>
12068
12069 * utils.h: Do not include print-utils.h.
12070
9239eeab
GB
120712014-08-19 Tom Tromey <tromey@redhat.com>
12072 Gary Benson <gbenson@redhat.com>
12073
12074 * server.h: Add static assertion.
12075 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12076
ef87c8bb
GB
120772014-08-19 Tom Tromey <tromey@redhat.com>
12078 Gary Benson <gbenson@redhat.com>
12079
12080 * Makefile.in (SFILES): Add common/errors.c.
12081 (OBS): Add errors.o.
12082 (IPA_OBS): Add errors-ipa.o.
12083 (errors.o): New rule.
12084 (errors-ipa.o): Likewise.
12085 * utils.h (perror_with_name, error, warning): Don't declare.
12086 * utils.c (warning): Renamed and rewritten as...
12087 (vwarning): New function.
12088 (error): Renamed and rewritten as...
12089 (verror): New function.
12090 (internal_error): Renamed and rewritten as...
12091 (internal_verror): New function.
12092
bb974a24
GB
120932014-08-07 Gary Benson <gbenson@redhat.com>
12094
12095 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12096 * configure: Regenerate.
12097 * config.in: Likewise.
12098 * server.h: Do not include errno.h.
12099 * event-loop.c: Likewise.
12100 * hostio-errno.c: Likewise.
12101 * linux-low.c: Likewise.
12102 * remote-utils.c: Likewise.
12103 * spu-low.c: Likewise.
12104 * utils.c: Likewise.
12105 * gdbreplay.c: Unconditionally include errno.h.
12106
6d3d12eb
GB
121072014-08-07 Gary Benson <gbenson@redhat.com>
12108
12109 * server.h: Do not include string.h.
12110 * event-loop.c: Likewise.
12111 * linux-low.c: Likewise.
12112 * regcache.c: Likewise.
12113 * remote-utils.c: Likewise.
12114 * spu-low.c: Likewise.
12115 * utils.c: Likewise.
12116
dccbb609
GB
121172014-08-07 Gary Benson <gbenson@redhat.com>
12118
12119 * server.h: Do not include gdb_assert.h.
12120
e76df0d0
GB
121212014-08-07 Gary Benson <gbenson@redhat.com>
12122
12123 * server.h: Do not include common-utils.h.
12124
4cb9c816
GB
121252014-08-07 Gary Benson <gbenson@redhat.com>
12126
12127 * server.h: Do not include ptid.h.
12128 * notif.h: Likewise.
12129
3995eeee
GB
121302014-08-07 Gary Benson <gbenson@redhat.com>
12131
12132 * server.h: Do not include gdb_locale.h.
12133
cb9f1a9b
GB
121342014-08-07 Gary Benson <gbenson@redhat.com>
12135
12136 * server.h: Do not include gdb/signals.h.
12137 * win32-low.c: Likewise.
12138
a5fceff8
GB
121392014-08-07 Gary Benson <gbenson@redhat.com>
12140
12141 * server.h: Do not include pathmax.h.
12142
b9391142
GB
121432014-08-07 Gary Benson <gbenson@redhat.com>
12144
12145 * server.h: Do not include libiberty.h.
12146 * linux-bfin-low.c: Likewise.
12147
0e443c87
GB
121482014-08-07 Gary Benson <gbenson@redhat.com>
12149
12150 * server.h: Do not include ansidecl.h.
12151
8ebb3f56
GB
121522014-08-07 Gary Benson <gbenson@redhat.com>
12153
12154 * linux-x86-low.c: Do not include stddef.h.
12155 * lynx-ppc-low.c: Likewise.
12156 * tracepoint.c: Likewise.
12157
8980bdf6
GB
121582014-08-07 Gary Benson <gbenson@redhat.com>
12159
12160 * server.h: Do not include stdarg.h.
12161 * nto-low.c: Likewise.
12162
d7096f71
GB
121632014-08-07 Gary Benson <gbenson@redhat.com>
12164
12165 * server.h: Do not include stdlib.h.
12166 * inferiors.c: Likewise.
12167 * linux-low.c: Likewise.
12168 * regcache.c: Likewise.
12169 * spu-low.c: Likewise.
12170 * tracepoint.c: Likewise.
12171 * utils.c: Likewise.
12172
d02f550d
GB
121732014-08-07 Gary Benson <gbenson@redhat.com>
12174
12175 * server.h: Do not include stdio.h.
12176 * linux-low.c: Likewise.
12177 * remote-utils.c: Likewise.
12178 * spu-low.c: Likewise.
12179 * utils.c: Likewise.
12180 * wincecompat.c: Likewise.
12181
87f6c4e3
GB
121822014-08-06 Gary Benson <gbenson@redhat.com>
12183
12184 * regcache.c (init_register_cache): Move conditionals inside if.
12185
7089dca4
GB
121862014-08-06 Gary Benson <gbenson@redhat.com>
12187
12188 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12189
462f517e
GB
121902014-07-31 Gary Benson <gbenson@redhat.com>
12191
12192 * ax.h: Do not include server.h.
12193 * gdbthread.h: Likewise.
12194 * lynx-low.h: Likewise.
12195 * notif.h: Likewise.
12196
976411d6
GB
121972014-07-30 Gary Benson <gbenson@redhat.com>
12198
12199 * server.h: Include common-defs.h.
12200 Do not include config.h or build-gnulib-gdbserver/config.h.
12201
d41f6d8e
GB
122022014-07-30 Gary Benson <gbenson@redhat.com>
12203
12204 * hostio-errno.c: Move server.h to top of includes list.
12205 * inferiors.c: Likewise.
12206 * linux-x86-low.c: Likewise.
12207 * notif.c: Include server.h.
12208
314c6a35
TT
122092014-07-24 Tom Tromey <tromey@redhat.com>
12210 Gary Benson <gbenson@redhat.com>
12211
12212 * server.h (CORE_ADDR): Now unsigned.
12213
69ff6be5
PA
122142014-07-16 Pedro Alves <palves@redhat.com>
12215
12216 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12217
ce9e3fe7
PA
122182014-07-15 Pedro Alves <palves@redhat.com>
12219
12220 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12221 copy.
12222
e76126e8
PA
122232014-07-11 Pedro Alves <palves@redhat.com>
12224
12225 * linux-low.c (kill_wait_lwp): New function, based on
12226 kill_one_lwp_callback, but use my_waitpid directly.
12227 (kill_one_lwp_callback, linux_kill): Use it.
12228
8e9db26e
PA
122292014-06-23 Pedro Alves <palves@redhat.com>
12230
12231 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12232 before setting DR0..DR3.
12233
698b3e08
GB
122342014-06-20 Gary Benson <gbenson@redhat.com>
12235
12236 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12237 * configure: Regenerated.
12238 * config.in: Likewise.
12239
125f8a3d
GB
122402014-06-20 Gary Benson <gbenson@redhat.com>
12241
12242 * Makefile.in (SFILES): Update locations for files moved
12243 from common to nat.
12244 (object file files): Reordered.
12245
42995dbd
GB
122462014-06-20 Gary Benson <gbenson@redhat.com>
12247
12248 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12249 (i386_dr_low_set_addr): Likewise.
12250 (i386_dr_low_get_addr): Likewise.
12251 (i386_dr_low_can_set_control): Likewise.
12252 (i386_dr_low_set_control): Likewise.
12253 (i386_dr_low_get_control): Likewise.
12254 (i386_dr_low_get_status): Likewise.
12255 (i386_get_debug_register_length): Likewise.
12256 * linux-x86-low.c (i386_dr_low_set_addr):
12257 Changed signature. Made static.
12258 (i386_dr_low_get_addr): Likewise.
12259 (i386_dr_low_set_control): Likewise.
12260 (i386_dr_low_get_control): Likewise.
12261 (i386_dr_low_get_status): Likewise.
12262 (i386_dr_low): New global variable.
12263 * win32-i386-low.c (i386_dr_low_set_addr):
12264 Changed signature. Made static.
12265 (i386_dr_low_get_addr): Likewise.
12266 (i386_dr_low_set_control): Likewise.
12267 (i386_dr_low_get_control): Likewise.
12268 (i386_dr_low_get_status): Likewise.
12269 (i386_dr_low): New global variable.
12270
e1d2394b
MS
122712014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12272
12273 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12274 * Makefile.in (AR, AR_FLAGS): Define.
12275 * configure: Regenerate.
12276
3a8ee006
GB
122772014-06-19 Gary Benson <gbenson@redhat.com>
12278
12279 * Makefile.in (i386-dregs.o): New rule.
12280 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12281 * i386-low.c (target.h): Remove include.
12282 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12283 (DR_CONTROL_SHIFT): Likewise.
12284 (DR_CONTROL_SIZE): Likewise.
12285 (DR_RW_EXECUTE): Likewise.
12286 (DR_RW_WRITE): Likewise.
12287 (DR_RW_READ): Likewise.
12288 (DR_RW_IORW): Likewise.
12289 (DR_LEN_1): Likewise.
12290 (DR_LEN_2): Likewise.
12291 (DR_LEN_4): Likewise.
12292 (DR_LEN_8): Likewise.
12293 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12294 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12295 (DR_ENABLE_SIZE): Likewise.
12296 (DR_LOCAL_SLOWDOWN): Likewise.
12297 (DR_GLOBAL_SLOWDOWN): Likewise.
12298 (DR_CONTROL_RESERVED): Likewise.
12299 (I386_DR_CONTROL_MASK): Likewise.
12300 (I386_DR_VACANT): Likewise.
12301 (I386_DR_LOCAL_ENABLE): Likewise.
12302 (I386_DR_GLOBAL_ENABLE): Likewise.
12303 (I386_DR_DISABLE): Likewise.
12304 (I386_DR_SET_RW_LEN): Likewise.
12305 (I386_DR_GET_RW_LEN): Likewise.
12306 (I386_DR_WATCH_HIT): Likewise.
12307 (i386_wp_op_t): Likewise.
12308 (i386_show_dr): Likewise.
12309 (i386_length_and_rw_bits): Likewise.
12310 (i386_insert_aligned_watchpoint): Likewise.
12311 (i386_remove_aligned_watchpoint): Likewise.
12312 (i386_handle_nonaligned_watchpoint): Likewise.
12313 i386_update_inferior_debug_regs(): Likewise.
12314 (i386_dr_insert_watchpoint): Likewise.
12315 (i386_dr_remove_watchpoint): Likewise.
12316 (i386_dr_region_ok_for_watchpoint): Likewise.
12317 (i386_dr_stopped_data_address): Likewise.
12318 (i386_dr_stopped_by_watchpoint): Likewise.
12319
8f26655c
GB
123202014-06-19 Gary Benson <gbenson@redhat.com>
12321
12322 * i386-low.c (i386_dr_show): Renamed to
12323 i386_show_dr and made static. All uses updated.
12324 (i386_dr_length_and_rw_bits): Renamed to
12325 i386_length_and_rw_bits and made static.
12326 All uses updated.
12327 (i386_dr_insert_aligned_watchpoint): Renamed to
12328 i386_insert_aligned_watchpoint and made static.
12329 All uses updated.
12330 (i386_dr_remove_aligned_watchpoint): Renamed to
12331 i386_remove_aligned_watchpoint and made static.
12332 All uses updated.
12333 (i386_dr_update_inferior_debug_regs): Renamed to
12334 i386_update_inferior_debug_regs and made static.
12335 All uses updated.
12336
b9228891
GB
123372014-06-18 Gary Benson <gbenson@redhat.com>
12338
5171def3
GB
12339 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12340 (i386_dr_low_can_set_control): Likewise.
12341 (i386_get_debug_register_length): Likewise.
12342 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12343 (i386_dr_low_can_set_control): Likewise.
12344 (i386_get_debug_register_length): Likewise.
12345
123462014-06-17 Gary Benson <gbenson@redhat.com>
12347
b9228891
GB
12348 * i386-low.h (i386-dregs.h): New include.
12349 (DR_FIRSTADDR): Now in i386-dregs.h.
12350 (DR_LASTADDR): Likewise.
12351 (DR_NADDR): Likewise.
12352 (DR_STATUS): Likewise.
12353 (DR_CONTROL): Likewise.
12354 (i386_debug_reg_state): Likewise.
12355 (i386_dr_insert_watchpoint): Likewise.
12356 (i386_dr_remove_watchpoint): Likewise.
12357 (i386_dr_region_ok_for_watchpoint): Likewise.
12358 (i386_dr_stopped_data_address): Likewise.
12359 (i386_dr_stopped_by_watchpoint): Likewise.
12360 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12361
4be83cc2
GB
123622014-06-18 Gary Benson <gbenson@redhat.com>
12363
12364 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12365 i386_dr_insert_watchpoint.
12366 (i386_low_remove_watchpoint): Renamed to
12367 i386_dr_remove_watchpoint.
12368 (i386_low_region_ok_for_watchpoint): Renamed to
12369 i386_dr_region_ok_for_watchpoint.
12370 (i386_low_stopped_data_address): Renamed to
12371 i386_dr_stopped_data_address.
12372 (i386_low_stopped_by_watchpoint): Renamed to
12373 i386_dr_stopped_by_watchpoint.
12374 * i386-low.c (i386_show_dr): Renamed to
12375 i386_dr_show and made nonstatic. All uses updated.
12376 (i386_length_and_rw_bits): Renamed to
12377 i386_dr_length_and_rw_bits and made nonstatic.
12378 All uses updated.
12379 (i386_insert_aligned_watchpoint): Renamed to
12380 i386_dr_insert_aligned_watchpoint and made nonstatic.
12381 All uses updated.
12382 (i386_remove_aligned_watchpoint): Renamed to
12383 i386_dr_remove_aligned_watchpoint and made nonstatic.
12384 All uses updated.
12385 (i386_update_inferior_debug_regs): Renamed to
12386 i386_dr_update_inferior_debug_regs and made nonstatic.
12387 All uses updated.
12388 (i386_low_insert_watchpoint): Renamed to
12389 i386_dr_insert_watchpoint. All uses updated.
12390 (i386_low_remove_watchpoint): Renamed to
12391 i386_dr_remove_watchpoint. All uses updated.
12392 (i386_low_region_ok_for_watchpoint): Renamed to
12393 i386_dr_region_ok_for_watchpoint. All uses updated.
12394 (i386_low_stopped_data_address): Renamed to
12395 i386_dr_stopped_data_address. All uses updated.
12396 (i386_low_stopped_by_watchpoint): Renamed to
12397 i386_dr_stopped_by_watchpoint. All uses updated.
12398
131aa0d4
GB
123992014-06-18 Gary Benson <gbenson@redhat.com>
12400
12401 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12402 (i386_dr_low_can_set_control): Likewise.
12403 (i386_insert_aligned_watchpoint): New check.
12404
d9305f7f
GB
124052014-06-18 Gary Benson <gbenson@redhat.com>
12406
12407 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12408 Renamed to state.
12409
e927c9fc
GB
124102014-06-18 Gary Benson <gbenson@redhat.com>
12411
12412 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12413 instead of fatal and error.
12414 (i386_handle_nonaligned_watchpoint): Likewise.
12415
1b6d4134
GB
124162014-06-18 Gary Benson <gbenson@redhat.com>
12417
12418 * i386-low.c (i386_get_debug_register_length): New macro.
12419 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12420 (i386_show_dr): Use debug_printf instead of fprintf. Use
12421 phex to format values.
12422
6e62758f
GB
124232014-06-18 Gary Benson <gbenson@redhat.com>
12424
12425 * i386-low.h: Comment changes.
12426 * i386-low.c: Likewise.
12427
fc6e2f03
GB
124282014-06-18 Gary Benson <gbenson@redhat.com>
12429
12430 * i386-low.c: Whitespace changes.
12431
f9d1eeed
TT
124322014-06-12 Tom Tromey <tromey@redhat.com>
12433
12434 * utils.c (freeargv): Remove.
12435
0b04e523
TT
124362014-06-12 Tom Tromey <tromey@redhat.com>
12437
12438 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12439 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12440 (parse_debug_format_options): Likewise.
12441 (gdbserver_usage): Likewise.
12442 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12443 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12444 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12445 against libiberty.
12446 ($(LIBGNU)): Depend on libiberty.
12447 (all-lib): Recurse into all subdirs.
12448 (install-only): Invoke "install" target in subdirs.
12449 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12450 targets.
12451 * configure: Rebuild.
12452 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12453 for vasprintf, vsnprintf, or gettimeofday.
12454 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12455 srv_tgtobj.
12456
270c9937
JB
124572014-06-05 Joel Brobecker <brobecker@adacore.com>
12458
12459 * development.sh: Delete.
12460 * Makefile.in (config.status): Adjust dependency on development.sh.
12461 * configure.ac: Adjust development.sh source call.
12462 * configure: Regenerate.
12463
0a261ed8
PA
124642014-06-02 Pedro Alves <palves@redhat.com>
12465
12466 * ax.c (gdb_free_agent_expr): New function.
12467 * ax.h (gdb_free_agent_expr): New declaration.
12468 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12469 list.
12470 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12471 static.
12472 (clear_breakpoint_conditions_and_commands): New function.
12473 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12474 (clear_breakpoint_conditions_and_commands): New declaration.
12475
e9dae05e
RR
124762014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12477
12478 * linux-aarch64-low.c (asm/ptrace.h): Include.
12479
5876f503
JK
124802014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12481
12482 Fix TLS access for -static -pthread.
12483 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12484 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12485 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12486
802e8e6d
PA
124872014-05-20 Pedro Alves <palves@redhat.com>
12488
12489 * linux-aarch64-low.c (aarch64_insert_point)
12490 (aarch64_remove_point): No longer check whether the type is
12491 supported here. Adjust to new interface.
12492 (the_low_target): Install aarch64_supports_z_point_type as
12493 supports_z_point_type method.
12494 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12495 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12496 instead of a Z packet char. Adjust.
12497 (arm_supports_z_point_type): New function.
12498 (arm_insert_point, arm_remove_point): Adjust to new interface.
12499 (the_low_target): Install arm_supports_z_point_type.
12500 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12501 (cris_insert_point, cris_remove_point): Adjust to new interface.
12502 Don't check whether the type is supported here.
12503 (the_low_target): Install cris_supports_z_point_type.
12504 * linux-low.c (linux_supports_z_point_type): New function.
12505 (linux_insert_point, linux_remove_point): Adjust to new interface.
12506 * linux-low.h (struct linux_target_ops) <insert_point,
12507 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12508 raw_breakpoint pointer parameter.
12509 <supports_z_point_type>: New method.
12510 * linux-mips-low.c (mips_supports_z_point_type): New function.
12511 (mips_insert_point, mips_remove_point): Adjust to new interface.
12512 Use mips_supports_z_point_type.
12513 (the_low_target): Install mips_supports_z_point_type.
12514 * linux-ppc-low.c (the_low_target): Install NULL as
12515 supports_z_point_type method.
12516 * linux-s390-low.c (the_low_target): Install NULL as
12517 supports_z_point_type method.
12518 * linux-sparc-low.c (the_low_target): Install NULL as
12519 supports_z_point_type method.
12520 * linux-x86-low.c (x86_supports_z_point_type): New function.
12521 (x86_insert_point): Adjust to new insert_point interface. Use
12522 insert_memory_breakpoint. Adjust to new
12523 i386_low_insert_watchpoint interface.
12524 (x86_remove_point): Adjust to remove_point interface. Use
12525 remove_memory_breakpoint. Adjust to new
12526 i386_low_remove_watchpoint interface.
12527 (the_low_target): Install x86_supports_z_point_type.
12528 * lynx-low.c (lynx_target_ops): Install NULL as
12529 supports_z_point_type callback.
12530 * nto-low.c (nto_supports_z_point_type): New.
12531 (nto_insert_point, nto_remove_point): Adjust to new interface.
12532 (nto_target_ops): Install nto_supports_z_point_type.
12533 * mem-break.c: Adjust intro comment.
12534 (struct raw_breakpoint) <raw_type, size>: New fields.
12535 <inserted>: Update comment.
12536 <shlib_disabled>: Delete field.
12537 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12538 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12539 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12540 (raw_bkpt_type_to_target_hw_bp_type): New function.
12541 (find_enabled_raw_code_breakpoint_at): New function.
12542 (find_raw_breakpoint_at): New type and size parameters. Use them.
12543 (insert_memory_breakpoint): New function, based off
12544 set_raw_breakpoint_at.
12545 (remove_memory_breakpoint): New function.
12546 (set_raw_breakpoint_at): Reimplement.
12547 (set_breakpoint): New, based on set_breakpoint_at.
12548 (set_breakpoint_at): Reimplement.
12549 (delete_raw_breakpoint): Go through the_target->remove_point
12550 instead of assuming memory breakpoints.
12551 (find_gdb_breakpoint_at): Delete.
12552 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12553 (find_gdb_breakpoint): New function.
12554 (set_gdb_breakpoint_at): Delete.
12555 (z_type_supported): New function.
12556 (set_gdb_breakpoint_1): New function, loosely based off
12557 set_gdb_breakpoint_at.
12558 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12559 (delete_gdb_breakpoint_at): Delete.
12560 (delete_gdb_breakpoint_1): New function, loosely based off
12561 delete_gdb_breakpoint_at.
12562 (delete_gdb_breakpoint): New function.
12563 (clear_gdb_breakpoint_conditions): Rename to ...
12564 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12565 breakpoint.
12566 (add_condition_to_breakpoint): Make static.
12567 (add_breakpoint_condition): Take a struct breakpoint pointer
12568 instead of an address. Adjust.
12569 (gdb_condition_true_at_breakpoint): Rename to ...
12570 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12571 z_type parameter.
12572 (gdb_condition_true_at_breakpoint): Reimplement.
12573 (add_breakpoint_commands): Take a struct breakpoint pointer
12574 instead of an address. Adjust.
12575 (gdb_no_commands_at_breakpoint): Rename to ...
12576 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12577 parameter. Return true if no breakpoint was found. Change debug
12578 output.
12579 (gdb_no_commands_at_breakpoint): Reimplement.
12580 (run_breakpoint_commands): Rename to ...
12581 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12582 and change return type to boolean.
12583 (run_breakpoint_commands): New function.
12584 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12585 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12586 breakpoint. Go through the_target->remove_point instead of
12587 assuming memory breakpoint.
12588 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12589 software and hardware breakpoints.
12590 (reinsert_raw_breakpoint): Go through the_target->insert_point
12591 instead of assuming memory breakpoint.
12592 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12593 software and hardware breakpoints.
12594 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12595 Check both software and hardware breakpoints.
12596 (validate_inserted_breakpoint): Assert the breakpoint is a
12597 software breakpoint. Set the inserted flag to -1 instead of
12598 setting shlib_disabled.
12599 (delete_disabled_breakpoints): Adjust.
12600 (validate_breakpoints): Only validate software breakpoints.
12601 Adjust to inserted flag change.
12602 (check_mem_read, check_mem_write): Skip breakpoint types other
12603 than software breakpoints. Adjust to inserted flag change.
12604 * mem-break.h (enum raw_bkpt_type): New enum.
12605 (raw_breakpoint, struct process_info): Forward declare.
12606 (Z_packet_to_target_hw_bp_type): Delete declaration.
12607 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12608 (set_gdb_breakpoint, delete_gdb_breakpoint)
12609 (clear_breakpoint_conditions): New declarations.
12610 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12611 (breakpoint_inserted_here): Update comment.
12612 (add_breakpoint_condition, add_breakpoint_commands): Replace
12613 address parameter with a breakpoint pointer parameter.
12614 (gdb_breakpoint_here): Update comment.
12615 (delete_gdb_breakpoint_at): Delete.
12616 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12617 * server.c (process_point_options): Take a struct breakpoint
12618 pointer instead of an address. Adjust.
12619 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12620 delete_gdb_breakpoint.
12621 * spu-low.c (spu_target_ops): Install NULL as
12622 supports_z_point_type method.
12623 * target.h: Include mem-break.h.
12624 (struct target_ops) <prepare_to_access_memory>: Update comment.
12625 <supports_z_point_type>: New field.
12626 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12627 instead of a char. Also take a raw breakpoint pointer.
12628 * win32-arm-low.c (the_low_target): Install NULL as
12629 supports_z_point_type.
12630 * win32-i386-low.c (i386_supports_z_point_type): New function.
12631 (i386_insert_point, i386_remove_point): Adjust to new interface.
12632 (the_low_target): Install i386_supports_z_point_type.
12633 * win32-low.c (win32_supports_z_point_type): New function.
12634 (win32_insert_point, win32_remove_point): Adjust to new interface.
12635 (win32_target_ops): Install win32_supports_z_point_type.
12636 * win32-low.h (struct win32_target_ops):
12637 <supports_z_point_type>: New method.
12638 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12639 instead of a char. Also take a raw breakpoint pointer.
12640
932539e3
PA
126412014-05-20 Pedro Alves <palves@redhat.com>
12642
12643 * mem-break.h: Include break-common.h.
12644 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12645 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12646 (Z_packet_to_target_hw_bp_type): New declaration.
12647 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12648 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12649 (Z_PACKET_ACCESS_WP): Delete macros.
12650 (Z_packet_to_hw_type): Delete function.
12651 * i386-low.h: Don't include break-common.h here.
12652 (Z_packet_to_hw_type): Delete declaration.
12653 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12654 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12655 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12656 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12657 * linux-aarch64-low.c: Don't include break-common.h here.
12658 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12659 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12660 (Z_packet_to_target_hw_bp_type): Delete function.
12661 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12662 function.
12663 (mips_insert_point, mips_remove_point): Use
12664 Z_packet_to_target_hw_bp_type.
12665
4ff0d3d8
PA
126662014-05-20 Pedro Alves <palves@redhat.com>
12667
12668 * linux-aarch64-low.c: Include break-common.h.
12669 (enum target_point_type): Delete.
12670 (Z_packet_to_point_type): Rename to ...
12671 (Z_packet_to_target_hw_bp_type): ... this, and return a
12672 target_hw_bp_type instead.
12673 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12674 instead of an enum target_point_type.
12675 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12676 breakpoint type.
12677 (aarch64_dr_state_insert_one_point)
12678 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12679 (aarch64_handle_aligned_watchpoint)
12680 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12681 Take an enum target_hw_bp_type instead of an enum
12682 target_point_type.
12683 (aarch64_supports_z_point_type): New function.
12684 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12685 use Z_packet_to_target_hw_bp_type.
12686
786dc519
JB
126872014-05-20 Joel Brobecker <brobecker@adacore.com>
12688
12689 * configure.ac: Only use -Werror by default when DEVELOPMENT
12690 is true.
12691 * configure: Regenerate.
12692
9e0aa64f
JK
126932014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12694
12695 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12696 * linux-x86-low.c (X86_64_USER_REGS): New.
12697 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12698
2b577b92
YQ
126992014-04-28 Yao Qi <yao@codesourcery.com>
12700
12701 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12702 name.
12703
94611da2
PA
127042014-04-25 Pedro Alves <palves@redhat.com>
12705
12706 PR server/16255
12707 * linux-low.c (linux_attach_fail_reason_string): New function.
12708 (linux_attach_lwp): Delete.
12709 (linux_attach_lwp_1): Rename to ...
12710 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12711 argument. Remove "initial" parameter. Return int instead of
12712 void. Don't error or warn here.
12713 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12714 failure to attach to the tgid. Call warning when failing to
12715 attach to an lwp.
12716 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12717 argument. Remove "initial" parameter. Return int instead of
12718 void. Don't error or warn here.
12719 (linux_attach_fail_reason_string): New declaration.
12720 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12721 interface change. Use linux_attach_fail_reason_string.
12722
01f9f808
MS
127232014-04-24 Michael Sturm <michael.sturm@mintel.com>
12724 Walfred Tedeschi <walfred.tedeschi@intel.com>
12725
12726 * Makefile.in: Added rules to handle new files
12727 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12728 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12729 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12730 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12731 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12732 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12733 x32-avx512-linux.o.
12734 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12735 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12736 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12737 i386/x32-avx512.xml.
12738 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12739 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12740 i386/x32-avx512-linux.xml.
12741 * i387-fp.c (num_avx512_k_registers): New constant for number
12742 of K registers.
12743 (num_avx512_zmmh_low_registers): New constant for number of
12744 lower ZMM registers (0-15).
12745 (num_avx512_zmmh_high_registers): New constant for number of
12746 higher ZMM registers (16-31).
12747 (num_avx512_ymmh_registers): New contant for number of higher
12748 YMM registers (ymm16-31 added by avx521 on x86_64).
12749 (num_avx512_xmm_registers): New constant for number of higher
12750 XMM registers (xmm16-31 added by AVX512 on x86_64).
12751 (struct i387_xsave): Add space for AVX512 registers.
12752 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12753 Add code to handle AVX512 registers.
12754 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12755 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12756 prototypei from generated file.
12757 (tdesc_amd64_avx512_linux): Likewise.
12758 (init_registers_x32_avx512_linux): Likewise.
12759 (tdesc_x32_avx512_linux): Likewise.
12760 (init_registers_i386_avx512_linux): Likewise.
12761 (tdesc_i386_avx512_linux): Likewise.
12762 (x86_64_regmap): Add AVX512 registers.
12763 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12764 mask.
12765 (initialize_low_arch): Add code to initialize AVX512 registers.
12766
51aa91f9
PA
127672014-04-23 Pedro Alves <palves@redhat.com>
12768
12769 * mem-break.c (find_gdb_breakpoint_at): Make static.
12770 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12771
a4165e94
PA
127722014-04-23 Pedro Alves <palves@redhat.com>
12773
12774 * i386-low.c: Don't include break-common.h here.
12775 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12776 prototype to take target_hw_bp_type as argument instead of a Z
12777 packet char.
12778 * i386-low.h: Include break-common.h here.
12779 (Z_packet_to_hw_type): Declare.
12780 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12781 prototypes.
12782 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12783 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12784 (x86_remove_point): Convert the packet number to a
12785 target_hw_bp_type before calling i386_low_remove_watchpoint.
12786 * win32-i386-low.c (i386_insert_point): Convert the packet number
12787 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12788 (i386_remove_point): Convert the packet number to a
12789 target_hw_bp_type before calling i386_low_remove_watchpoint.
12790
b8acf843
PA
127912014-04-23 Pedro Alves <palves@redhat.com>
12792
12793 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12794
d708bcd1
PA
127952014-04-10 Pedro Alves <palves@redhat.com>
12796
12797 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12798 Check if the condition or command is NULL before checking if the
12799 breakpoint is known. On success, return true.
12800 * mem-break.h (add_breakpoint_condition): Document return.
12801 (add_breakpoint_commands): Add describing comment.
12802 * server.c (skip_to_semicolon): New function.
12803 (process_point_options): Use it.
12804
2eec7d5b
PA
128052014-04-09 Pedro Alves <palves@redhat.com>
12806
12807 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12808 to lwpid_of.
12809
fa96cb38
PA
128102014-02-27 Pedro Alves <palves@redhat.com>
12811
12812 PR 12702
12813 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12814 macros.
12815 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12816 output.
12817 (last_thread_of_process_p): Take a PID argument instead of a
12818 thread pointer.
12819 (linux_wait_for_lwp): Delete.
12820 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12821 functions.
12822 (linux_low_filter_event): New function, party factored out from
12823 linux_wait_for_event.
12824 (linux_wait_for_event): Rename to ...
12825 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12826 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12827 sigsuspend. Check for zombie leaders.
12828 (linux_wait_for_event): Reimplement as wrapper around
12829 linux_wait_for_event_filtered.
12830 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12831 a normal or signal exit is seen, it's the whole process exiting.
12832 (wait_for_sigstop): No longer a for_each_inferior callback.
12833 Rewrite on top of linux_wait_for_event_filtered.
12834 (stop_all_lwps): Call wait_for_sigstop directly.
12835 * server.c (resume, handle_target_event): Handle
12836 TARGET_WAITKIND_NO_RESUMED.
12837
d763de10
JB
128382014-02-26 Joel Brobecker <brobecker@adacore.com>
12839
12840 * win32-low.c (psapi_get_dll_name,
12841 * win32_CreateToolhelp32Snapshot): Delete.
12842 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12843 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12844 Delete.
12845 (handle_load_dll): Add function description.
12846 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12847
850a0f76
JB
128482014-02-26 Joel Brobecker <brobecker@adacore.com>
12849
12850 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12851 Add comment.
12852 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12853 base address when calling win32_add_one_solib.
12854 (handle_load_dll): Delete local variable load_addr.
12855 Remove 0x1000 offset applied to DLL base address when calling
12856 win32_add_one_solib.
12857 (handle_unload_dll): Add comment.
12858
f25b3fc3
JB
128592014-02-26 Joel Brobecker <brobecker@adacore.com>
12860
12861 * win32-low.c (win32_add_all_dlls): Renames
12862 win32_ensure_ntdll_loaded. Rewrite function documentation.
12863 Adjust implementation to always load all DLLs.
12864 Add 0x1000 offset to DLL base address when calling
12865 win32_add_one_solib.
12866 (child_initialization_done): New static global.
12867 (do_initial_child_stuff): Set child_initialization_done to
12868 zero during child initialization, and 1 after. Replace call
12869 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12870 Add comment.
12871 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12872 (handle_unload_dll): Add function documentation.
12873 (get_child_debug_event): Ignore load and unload DLL events
12874 during child initialization.
12875
d86d4aaf
DE
128762014-02-20 Doug Evans <dje@google.com>
12877
3bc32da3 12878 Remove global all_lwps.
d86d4aaf
DE
12879 * inferiors.h (ptid_of): Move here from linux-low.h.
12880 (pid_of, lwpid_of): Ditto.
12881 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12882 parameter is a struct thread_info * now.
12883 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12884 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12885 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12886 directly.
12887 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12888 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12889 * linux-arm-low.c (update_registers_callback): Update, "entry"
12890 parameter is a struct thread_info * now.
12891 Fetch lwpid from current_inferior directly.
12892 (arm_insert_point): Pass &all_threads to find_inferior instead of
12893 &all_lwps.
12894 (arm_remove_point): Ditto.
12895 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12896 (arm_prepare_to_resume): Fetch pid from thread.
12897 (arm_read_description): Fetch lwpid from current_inferior directly.
12898 * linux-low.c (all_lwps): Delete.
12899 (delete_lwp): Delete call to remove_inferior.
12900 (handle_extended_wait): Fetch lwpid from thread.
12901 (add_lwp): Don't set lwp->entry.id. Remove call to
12902 add_inferior_to_list.
12903 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12904 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12905 (kill_one_lwp_callback): Ditto.
12906 (linux_kill): Don't dereference NULL pointer.
12907 Fetch ptid,lwpid from thread.
12908 (get_detach_signal): Fetch ptid from thread.
12909 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12910 Simplify call to regcache_invalidate_thread.
12911 (delete_lwp_callback): Update, "entry" parameter is a
12912 struct thread_info * now. Fetch pid from thread.
12913 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12914 (status_pending_p_callback): Update, "entry" parameter is a
12915 struct thread_info * now. Fetch ptid from thread.
12916 (find_lwp_pid): Update, "entry" parameter is a
12917 struct thread_info * now.
12918 (linux_wait_for_lwp): Fetch pid from thread.
12919 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12920 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12921 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12922 (dequeue_one_deferred_signal): Ditto.
12923 (cancel_breakpoint): Fetch ptid from current_inferior.
12924 (linux_wait_for_event): Pass &all_threads to find_inferior,
12925 not &all_lwps. Fetch ptid, lwpid from thread.
12926 (count_events_callback): Update, "entry" parameter is a
12927 struct thread_info * now.
12928 (select_singlestep_lwp_callback): Ditto.
12929 (select_event_lwp_callback): Ditto.
12930 (cancel_breakpoints_callback): Ditto.
12931 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12932 not &all_lwps.
12933 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12934 (unsuspend_one_lwp): Update, "entry" parameter is a
12935 struct thread_info * now.
12936 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12937 not &all_lwps.
12938 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12939 Fetch lwpid from thread, not lwp.
12940 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12941 Pass &all_threads to find_inferior, not &all_lwps.
12942 (send_sigstop): Fetch lwpid from thread, not lwp.
12943 (send_sigstop_callback): Update, "entry" parameter is a
12944 struct thread_info * now.
12945 (suspend_and_send_sigstop_callback): Ditto.
12946 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12947 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12948 struct thread_info * now.
12949 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12950 from thread, lwp.
12951 (lwp_running): Update, "entry" parameter is a
12952 struct thread_info * now.
12953 (stop_all_lwps): Fetch ptid from thread.
12954 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12955 (linux_resume_one_lwp): Fetch lwpid from thread.
12956 (linux_set_resume_request): Update, "entry" parameter is a
12957 struct thread_info * now. Fetch pid, lwpid from thread.
12958 (resume_status_pending_p): Update, "entry" parameter is a
12959 struct thread_info * now.
12960 (need_step_over_p): Ditto. Fetch lwpid from thread.
12961 (start_step_over): Fetch lwpid from thread.
12962 (linux_resume_one_thread): Update, "entry" parameter is a
12963 struct thread_info * now. Fetch lwpid from thread.
12964 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12965 (proceed_one_lwp): Update, "entry" parameter is a
12966 struct thread_info * now. Fetch lwpid from thread.
12967 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12968 struct thread_info * now.
12969 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12970 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12971 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12972 directly.
12973 (regsets_store_inferior_registers): Ditto.
12974 (fetch_register, store_register): Ditto.
12975 (linux_read_memory, linux_write_memory): Ditto.
12976 (linux_request_interrupt): Ditto.
12977 (linux_read_auxv): Ditto.
12978 (linux_xfer_siginfo): Ditto.
12979 (linux_qxfer_spu): Ditto.
12980 (linux_qxfer_libraries_svr4): Ditto.
12981 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12982 moved to inferiors.h.
12983 (get_lwp): Delete.
12984 (get_thread_lwp): Update.
12985 (struct lwp_info): Delete member "entry". Simplify comment for
12986 member "thread".
12987 (all_lwps): Delete.
12988 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12989 current_inferior directly.
12990 (update_watch_registers_callback): Update, "entry" parameter is a
12991 struct thread_info * now. Fetch pid from thread.
12992 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12993 (mips_insert_point): Fetch lwpid from current_inferior.
12994 Pass &all_threads to find_inferior, not &all_lwps.
12995 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12996 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12997 directly.
12998 (mips_stopped_data_address): Ditto.
12999 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13000 directly.
13001 * linux-tile-low.c (tile_arch_setup): Ditto.
13002 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13003 (update_debug_registers_callback): Update, "entry" parameter is a
13004 struct thread_info * now. Fetch pid from thread.
13005 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13006 Pass &all_threads to find_inferior, not &all_lwps.
13007 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13008 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13009 Pass &all_threads to find_inferior, not &all_lwps.
13010 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13011 (i386_dr_low_get_status): Ditto.
13012 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13013 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13014 (x86_linux_read_description): Ditto.
13015 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13016
3b8361aa
DE
130172014-02-20 Doug Evans <dje@google.com>
13018
13019 * inferiors.c (get_first_inferior): Fix buglet.
13020
f7667f0d
DE
130212014-02-19 Doug Evans <dje@google.com>
13022
13023 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13024 * inferiors.c (add_thread): Change result type to struct thread_info *.
13025 All callers updated.
13026 (add_lwp): Call add_thread here instead of in callers.
13027 All callers updated.
13028 * linux-low.h (get_lwp_thread): Rewrite.
13029 (struct lwp_info): New member "thread".
13030
b3312d80
DE
130312014-02-19 Doug Evans <dje@google.com>
13032
13033 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13034 All callers updated.
13035
ecc6f45c
DE
130362014-02-19 Doug Evans <dje@google.com>
13037
13038 * inferiors.c (add_thread): Fix whitespace.
13039
649ebbca
DE
130402014-02-19 Doug Evans <dje@google.com>
13041
13042 * dll.c (clear_dlls): Replace accessing list implemention details
13043 with API function.
13044 * gdbthread.h (get_first_thread): Declare.
13045 * inferiors.c (for_each_inferior_with_data): New function.
13046 (get_first_thread): New function.
13047 (find_thread_ptid): Simplify.
13048 (get_first_inferior): New function.
13049 (clear_list): Delete.
13050 (one_inferior_p): New function.
13051 (clear_inferior_list): New function.
13052 (clear_inferiors): Update.
13053 * inferiors.h (for_each_inferior_with_data): Declare.
13054 (clear_inferior_list): Declare.
13055 (one_inferior_p): Declare.
13056 (get_first_inferior): Declare.
13057 * linux-low.c (linux_wait_for_event): Replace accessing list
13058 implemention details with API function.
13059 * server.c (target_running): Ditto.
13060 (accumulate_file_name_length): New function.
13061 (emit_dll_description): New function.
13062 (handle_qxfer_libraries): Replace accessing list implemention
13063 details with API function.
13064 (handle_qxfer_threads_worker): New function.
13065 (handle_qxfer_threads_proper): Replace accessing list implemention
13066 details with API function.
13067 (handle_query): Ditto.
13068 (visit_actioned_threads_callback_ftype): New typedef.
13069 (visit_actioned_threads_data): New struct.
13070 (visit_actioned_threads): Rewrite to be find_inferior callback.
13071 (resume): Call find_inferior.
13072 (handle_status): Replace accessing list implemention
13073 details with API function.
13074 (process_serial_event): Replace accessing list implemention details
13075 with API function.
13076 * target.c (set_desired_inferior): Replace accessing list implemention
13077 details with API function.
13078 * tracepoint.c (same_process_p): New function.
13079 (gdb_agent_about_to_close): Replace accessing list implemention
13080 details with API function.
13081 * win32-low.c (child_delete_thread): Replace accessing list
13082 implemention details with API function.
13083 (match_dll_by_basename): New function.
13084 (dll_is_loaded_by_basename): New function.
13085 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13086 details call to dll_is_loaded_by_basename.
13087
80894984
DE
130882014-02-19 Doug Evans <dje@google.com>
13089
13090 * dll.h (struct dll_info): Add comment.
13091 * gdbthread.h (struct thread_info): Add comment.
13092 (current_ptid): Simplify.
13093 * inferiors.c (add_process): Update.
13094 (remove_process): Update.
13095 * inferiors.h (struct process_info): Rename member "head" to "entry".
13096 * linux-low.c (delete_lwp): Update.
13097 (add_lwp): Update.
13098 (last_thread_of_process_p): Update.
13099 (kill_one_lwp_callback, linux_kill): Update.
13100 (status_pending_p_callback): Update.
13101 (wait_for_sigstop): Update. Simplify read of ptid.
13102 (start_step_over): Update.
13103 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13104 (get_lwp_thread): Update.
13105 (struct lwp_info): Rename member "head" to "entry".
13106 * regcache.h (inferior_list_entry): Delete.
13107 * server.c (kill_inferior_callback): Update.
13108 (detach_or_kill_inferior_callback): Update.
13109 (print_started_pid): Update.
13110 (print_attached_pid): Update.
13111 (process_serial_event): Simplify read of ptid.
13112 * thread-db.c (thread_db_create_event): Update.
13113 (thread_db_get_tls_address): Update.
13114 * win32-low.c (current_inferior_ptid): Simplify.
13115
46917d26
TT
131162014-02-19 Tom Tromey <tromey@redhat.com>
13117
13118 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13119 argument.
13120 (target_supports_btrace): Update.
13121
0759a81e
YQ
131222014-02-14 Yao Qi <yao@codesourcery.com>
13123
13124 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13125 (rsp-low-ipa.o): New target.
13126
a7191e8b
TT
131272014-02-12 Tom Tromey <tromey@redhat.com>
13128
13129 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13130 convert_ascii_to_int.
13131 * regcache.c (registers_to_string): Likewise.
13132 * remote-utils.c (decode_M_packet): Likewise.
13133 * server.c (process_serial_event): Likewise.
13134
ff0e980e
TT
131352014-02-12 Tom Tromey <tromey@redhat.com>
13136
13137 * server.c (handle_query, handle_v_run): Use hex2bin, not
13138 unhexify.
13139 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13140
e9371aff
TT
131412014-02-12 Tom Tromey <tromey@redhat.com>
13142
13143 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13144 convert_int_to_ascii.
13145 * regcache.c (registers_to_string, collect_register_as_string):
13146 Likewise.
13147 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13148 Likewise.
13149 * server.c (process_serial_event): Likewise.
13150 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13151 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13152
971dc0b8
TT
131532014-02-12 Tom Tromey <tromey@redhat.com>
13154
13155 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13156 bin2hex, not hexify.
13157 * tracepoint.c (cmd_qtstatus): Likewise.
13158
0a822afb
TT
131592014-02-12 Tom Tromey <tromey@redhat.com>
13160
13161 * remote-utils.c (monitor_output): Pass explicit length to
13162 hexify.
13163
9c3d6531
TT
131642014-02-12 Tom Tromey <tromey@redhat.com>
13165
13166 * tracepoint.c: Include rsp-low.h.
13167 * server.c: Include rsp-low.h.
13168 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13169 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13170 declare.
13171 * remote-utils.c: Include rsp-low.h.
13172 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13173 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13174 (convert_int_to_ascii, convert_ascii_to_int): Move to
13175 common/rsp-low.c.
13176 * regcache.c: Include rsp-low.h.
13177 * ax.c: Include rsp-low.h.
13178 * Makefile.in (SFILES): Add common/rsp-low.c.
13179 (OBS): Add rsp-low.o.
13180 (rsp-low.o): New target.
13181
01fd3ea5
TT
131822014-02-12 Tom Tromey <tromey@redhat.com>
13183
13184 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13185 Include print-utils.h.
13186 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13187 (plongest, thirty_two, phex_nz): Remove.
13188 * Makefile.in (SFILES): Add common/print-utils.c.
13189 (OBS): Add print-utils.o.
13190 (print-utils-ipa.o): New target.
13191 (print-utils.o): New target.
13192 (IPA_OBJS): Add print-utils-ipa.o.
13193
e99dc820
TT
131942014-02-06 Tom Tromey <tromey@redhat.com>
13195
13196 * Makefile.in (SFILES): Fix indentation.
13197
ee1e2d4f
DE
131982014-02-05 Doug Evans <dje@google.com>
13199
13200 * linux-low.c (linux_wait_for_event): Improve comment.
13201 (linux_wait_1): Keep current_inferior in sync with event_child.
13202
f5a02773
DE
132032014-01-22 Doug Evans <dje@google.com>
13204
13205 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13206
87ce2a04
DE
132072014-01-22 Doug Evans <dje@google.com>
13208
13209 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13210 * configure: Regenerate.
13211 * config.in: Regenerate.
13212 * Makefile.in (SFILES): Add debug.c.
13213 (OBS): Add debug.o.
13214 * debug.c: New file.
13215 * debug.h: New file.
13216 * linux-aarch64-low.c (*): Update all debugging printfs to use
13217 debug_printf instead of fprintf.
13218 * linux-arm-low.c (*): Ditto.
13219 * linux-cris-low.c (*): Ditto.
13220 * linux-crisv32-low.c (*): Ditto.
13221 * linux-m32r-low.c (*): Ditto.
13222 * linux-sparc-low.c (*): Ditto.
13223 * linux-x86.c (*): Ditto.
13224 * linux-low.c (*): Ditto.
13225 (linux_wait_1): Add calls to debug_enter, debug_exit.
13226 (linux_wait): Remove redundant debugging printf.
13227 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13228 (linux_resume, unstop_all_lwps): Ditto.
13229 * mem-break.c (*): Update all debugging printfs to use
13230 debug_printf instead of fprintf.
13231 * remote-utils.c (*): Ditto.
13232 * thread-db.c (*): Ditto.
13233 * server.c #include <ctype.h>, "gdb_vecs.h".
13234 (debug_threads): Moved to debug.c.
13235 (*): Update all debugging printfs to use debug_printf instead of
13236 fprintf.
13237 (start_inferior): Replace call to fflush with call to debug_flush.
13238 (monitor_show_help): Mention set debug-format.
13239 (parse_debug_format_options): New function.
13240 (handle_monitor_command): Handle "monitor set debug-format".
13241 (gdbserver_usage): Mention --debug-format.
13242 (main): Parse --debug-format.
13243 * server.h (debug_threads): Declaration moved to debug.h.
13244 #include "debug.h".
13245 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13246 trace_debug_1 that uses debug_printf.
13247 (tracepoint_look_up_symbols): Update all debugging printfs to use
13248 debug_printf instead of fprintf.
13249
e671835b
BS
132502014-01-20 Baruch Siach <baruch@tkos.co.il>
13251
13252 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13253 sys/ptrace.h.
13254
b5737fa9
PA
132552014-01-17 Pedro Alves <palves@redhat.com>
13256
ea38d2a9 13257 PR build/16445
c7faa97a
PA
13258 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13259 defined after including gdb_proc_service.h.
b5737fa9 13260
40ed484e
DE
132612014-01-16 Doug Evans <dje@google.com>
13262
13263 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13264 (match_dll): Use it.
13265
969c39fb
MM
132662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13267
13268 * target.h (target_ops) <read_btrace>: Change parameters and
13269 return type to allow error reporting.
13270 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13271 trace reading errors on.
13272 * linux-low.c (linux_low_read_btrace): Pass trace reading
13273 errors on.
13274 (linux_low_disable_btrace): New.
13275
ab7f45ba
DE
132762014-01-15 Doug Evans <dje@google.com>
13277
13278 * inferiors.c (thread_id_to_gdb_id): Delete.
13279 * inferiors.h (thread_id_to_gdb_id): Delete.
13280
66af0f44
EZ
132812014-01-13 Eli Zaretskii <eliz@gnu.org>
13282
13283 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13284 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13285 versions.
13286
9939e131
PA
132872014-01-08 Pedro Alves <palves@redhat.com>
13288
13289 * server.c (handle_status): Don't discard previous queued stop
13290 replies or thread's pending status here.
13291 (main) <disconnection>: Do it here instead.
13292
b7ea362b
PA
132932014-01-08 Pedro Alves <palves@redhat.com>
13294
13295 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13296 * server.c (visit_actioned_threads, handle_pending_status): New
13297 function.
13298 (handle_v_cont): Factor out parts to ...
13299 (resume): ... this new function. If in all-stop, and a thread
13300 being resumed has a pending status, report it without actually
13301 resuming.
13302 (myresume): Adjust to use the new 'resume' function.
13303 (clear_pending_status_callback, set_pending_status_callback)
13304 (find_status_pending_thread_callback): New functions.
13305 (handle_status): Handle the case of multiple threads having
13306 interesting statuses to report. Report threads' real last signal
13307 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13308 with an interesting thread to report the status for, instead of
13309 always reporting the status of the first thread.
13310
28498c42
JB
133112014-01-01 Joel Brobecker <brobecker@adacore.com>
13312
13313 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13314 * gdbreplay.c (gdbreplay_version): Likewise.
13315
f45c82da
YZ
133162013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13317
13318 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13319 iov.iov_len with the real length in use.
13320
379a5e2d
JB
133212013-12-13 Joel Brobecker <brobecker@adacore.com>
13322
13323 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13324 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13325 for all targets that use win32-low.c.
13326 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13327 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13328
4210d83e
PA
133292013-12-13 Pedro Alves <palves@redhat.com>
13330
13331 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13332 if equal to TARGET_WAITKIND_LOADED.
13333 * win32-low.c (cached_status): New static global.
13334 (win32_wait): Add declaration.
13335 (do_initial_child_stuff): Flush all initial pending debug events
13336 up to the initial breakpoint.
13337 (win32_wait): If CACHED_STATUS was set, return that instead
13338 of doing a real wait. Remove the code resuming the execution
13339 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13340 during the initial phase. Also remove the code changing
13341 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13342 TARGET_WAITKIND_STOPPED.
13343
e7f0d979
YQ
133442013-12-11 Yao Qi <yao@codesourcery.com>
13345
13346 * notif.c (handle_notif_ack): Return 0 if no notification
13347 matches.
13348
ebcf782c
DE
133492013-11-20 Doug Evans <dje@google.com>
13350
13351 * linux-low.c (linux_set_resume_request): Fix comment.
13352
20ad9378
DE
133532013-11-20 Doug Evans <dje@google.com>
13354
13355 * linux-low.c (resume_status_pending_p): Tweak comment.
13356
a196ebeb
WT
133572013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13358
13359 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13360 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13361 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13362 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13363 (srv_amd64_regobj): Add amd64-mpx.o.
13364 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13365 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13366 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13367 * i387-fp.c (num_pl_bnd_register) Added constant.
13368 (num_pl_bnd_cfg_registers) Added constant.
13369 (struct i387_xsave) Added reserved area and MPX fields.
13370 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13371 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13372 function.
13373 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13374 (init_registers_amd64_mpx_linux): Declare new function.
13375 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13376 (x86_64_regmap): Add MPX registers.
13377 (x86_linux_read_description): Add MPX case.
13378 (initialize_low_arch): Initialize MPX targets.
13379
0080a2f6
TT
133802013-11-18 Tom Tromey <tromey@redhat.com>
13381
13382 * configure: Rebuild.
13383 * configure.ac: Don't check for stdlib.h.
13384 * gdbreplay.c: Unconditionally include stdlib.h.
13385
2978b111
TT
133862013-11-18 Tom Tromey <tromey@redhat.com>
13387
13388 * config.in: Rebuild.
13389 * configure: Rebuild.
13390 * configure.ac: Don't use AC_HEADER_DIRENT.
13391
a3d08894
TT
133922013-11-18 Tom Tromey <tromey@redhat.com>
13393
13394 * server.h: Don't check HAVE_STRING_H.
13395 * gdbreplay.c: Don't check HAVE_STRING_H.
13396 * configure: Rebuild.
13397
0a5dd17d
TT
133982013-11-18 Tom Tromey <tromey@redhat.com>
13399
13400 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13401 LIBGNU.
13402
1bd2f0ba
TT
134032013-11-08 Tom Tromey <tromey@redhat.com>
13404
13405 * configure, config.in: Rebuild.
13406 * configure.ac: Remove unused configury.
13407
3266f10b
TT
134082013-11-08 Tom Tromey <tromey@redhat.com>
13409
13410 * acinclude.m4: Include common.m4, codeset.m4.
13411 * configure, config.in: Rebuild.
13412 * configure.ac: Use GDB_AC_COMMON.
13413
6682d959
AA
134142013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13415
13416 * linux-s390-low.c (HWCAP_S390_TE): New define.
13417 (s390_arch_setup): Consider the TE field in the HWCAP for
13418 determining 'have_regset_tdb'.
13419
fd0a4d76
SDJ
134202013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13421
13422 PR gdb/16014
13423 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13424 call to sizeof.
13425
1a3d890b
PA
134262013-10-02 Pedro Alves <palves@redhat.com>
13427
13428 * server.c (process_serial_event): Don't output "GDBserver
13429 exiting" if GDB is connected through stdio.
13430 * target.c (mywait): Likewise, be silent if GDB is connected
13431 through stdio.
13432
97ad4581
JB
134332013-10-01 Joel Brobecker <brobecker@adacore.com>
13434
13435 * lynx-low.c (lynx_add_threads_after_attach): New function.
13436 (lynx_attach): Remove call to add_thread. Add call to
13437 lynx_add_threads_after_attach instead.
13438
5b4e221c
MF
134392013-09-28 Mike Frysinger <vapier@gentoo.org>
13440
13441 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13442 * config.in, configure: Regenerated.
13443
ee47b2f8
YQ
134442013-09-18 Yao Qi <yao@codesourcery.com>
13445
13446 PR server/15959
13447 * server.c (start_inferior): Clear 'resume_info'.
13448
d6707650 134492013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13450
d6707650
JW
13451 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13452 for each register.
13453
9243dd0e 134542013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13455
9243dd0e
JW
13456 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13457 linux-tile-low.o to srv_tgtobj.
13458
c623a6ef
WN
134592013-09-16 Will Newton <will.newton@linaro.org>
13460
13461 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13462 out regs.
13463
fb71d39e
PA
134642013-09-06 Pedro Alves <palves@redhat.com>
13465
13466 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13467 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13468 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13469 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13470 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13471 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13472
8e7e9910
PA
134732013-09-06 Pedro Alves <palves@redhat.com>
13474
13475 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13476 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13477
7c3a12ca
PA
134782013-09-06 Pedro Alves <palves@redhat.com>
13479
13480 * linux-amd64-ipa.c: Include tracepoint.h.
13481 * linux-i386-ipa.c: Include tracepoint.h.
13482
8eb3d7b6
RW
134832013-09-06 Ricard Wanderlof <ricardw@axis.com>
13484
13485 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13486 (ps_get_thread_area): New function.
13487
eddddb9d
RW
134882013-09-06 Ricard Wanderlof <ricardw@axis.com>
13489
13490 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13491 (initialize_low_arch): Call init_registers_crisv32 rather than
13492 init_register_crisv32.
13493
533b0600
PA
134942013-09-05 Pedro Alves <palves@redhat.com>
13495
13496 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13497 to ...
13498 * hostio.h: ... this new file.
13499 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13500 win32-low.c: Include hostio.h.
13501
0ce3d3b5
PA
135022013-09-05 Pedro Alves <palves@redhat.com>
13503
13504 * server.h (gdb_client_data, handler_func, callback_handler_func)
13505 (delete_file_handler, add_file_handler, append_callback_event)
13506 (delete_callback_event, start_event_loop, initialize_event_loop):
13507 Move to event-loop.h and include it.
13508 * event-loop.h: New file.
13509
799cdc37
PA
135102013-09-05 Pedro Alves <palves@redhat.com>
13511
13512 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13513 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13514 (loaded_dll, unloaded_dll): Move to ...
13515 * dll.h: ... this new file.
13516 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13517
6a6bbd9d
PA
135182013-09-05 Pedro Alves <palves@redhat.com>
13519
13520 * server.h (current_process, get_thread_process, all_processes)
13521 (add_inferior_to_list, for_each_inferior, current_inferior)
13522 (remove_inferior, add_process, remove_process, find_process_pid)
13523 (have_started_inferiors_p, have_attached_inferiors_p)
13524 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13525 (clear_inferiors, find_inferior, find_inferior_id)
13526 (inferior_target_data, set_inferior_target_data)
13527 (inferior_regcache_data, set_inferior_regcache_data): Move to
13528 inferiors.h, and include it.
13529 * inferiors.h: New file.
13530
f699aaba
PA
135312013-09-05 Pedro Alves <palves@redhat.com>
13532
13533 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13534 Move ...
72f4393d 13535 * ax.h: ... here.
f699aaba 13536
c144c7a0
PA
135372013-09-05 Pedro Alves <palves@redhat.com>
13538
13539 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13540 tracepoint.h.
13541 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13542 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13543 (handle_tracepoint_general_set, handle_tracepoint_query)
13544 (tracepoint_finished_step, tracepoint_was_hit)
13545 (release_while_stepping_state_list, current_traceframe)
13546 (in_readonly_region, traceframe_read_mem)
13547 (fetch_traceframe_registers, traceframe_read_sdata)
13548 (traceframe_read_info, struct fast_tpoint_collect_status)
13549 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13550 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13551 (supply_fast_tracepoint_registers)
13552 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13553 (ipa_tdesc, claim_trampoline_space)
13554 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13555 (agent_mem_read, agent_get_trace_state_variable_value)
13556 (agent_set_trace_state_variable_value, agent_tsv_read)
13557 (agent_mem_read_string, get_raw_reg_func_addr)
13558 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13559 * tracepoint.h: ... this new file.
13560
ff42e6ab
PA
135612013-09-05 Pedro Alves <palves@redhat.com>
13562
13563 * server.h (perror_with_name, error, fatal, warning, paddress)
13564 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13565 include it.
13566 * utils.h: New file.
13567
541af0f4
PA
135682013-09-05 Pedro Alves <palves@redhat.com>
13569
13570 * server.h (remote_debug, noack_mode, transport_is_reliable)
13571 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13572 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13573 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13574 (write_enn, initialize_async_io, enable_async_io)
13575 (disable_async_io, check_remote_input_interrupt_request)
13576 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13577 (dead_thread_notify, prepare_resume_reply)
13578 (decode_address_to_semicolon, decode_address, decode_m_packet)
13579 (decode_M_packet, decode_X_packet, decode_xfer_write)
13580 (decode_search_memory_packet, unhexify, hexify)
13581 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13582 (look_up_one_symbol, relocate_instruction)
13583 (monitor_output): Move to remote-utils.h, and include it.
13584 * remote-utils.h: New file.
13585
eebdf26b
PA
135862013-09-05 Pedro Alves <palves@redhat.com>
13587
13588 * server.h (_): Delete.
13589
3aafd2ff
PA
135902013-09-02 Pedro Alves <palves@redhat.com>
13591
13592 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13593 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13594 allocated.
13595 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13596
cee83bcb
PM
135972013-09-02 Pierre Muller <muller@sourceware.org>
13598
13599 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13600 or WriteProcessMemory complete successfully and handle
13601 ERROR_PARTIAL_COPY error.
13602
9a13b2fa
PA
136032013-09-02 Pedro Alves <palves@redhat.com>
13604
13605 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13606 error instead of EIO.
13607
602e3198
JK
136082013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13609
13610 PR server/15604
13611 * linux-low.c: Include filestuff.h.
13612 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13613 * lynx-low.c: Include filestuff.h.
13614 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13615 * server.c: Include filestuff.h.
13616 (main): Call notice_open_fds.
13617 * spu-low.c: Include filestuff.h.
13618 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13619
96d7229d
LM
136202013-08-22 Luis Machado <lgustavo@codesourcery.com>
13621
13622 * Makefile.in: Explain why ../target and ../nat are not
13623 listed as include file search paths.
13624 (linux-waitpid.o): New object file rule.
13625 * configure.srv (srv_native_linux_obj): New variable.
13626 Replace all occurrences of linux native object files with
13627 $srv_native_linux_obj.
13628 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13629 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13630 (linux_enable_event_reporting): Remove declaration.
13631 (my_waitpid): Moved to common/linux-waitpid.c.
13632 (linux_wait_for_event): Pass ptid when calling
13633 linux_enable_event_reporting.
13634 (linux_supports_tracefork_flag): Remove.
13635 (linux_enable_event_reporting): Likewise.
13636 (linux_tracefork_grandchild): Remove.
13637 (STACK_SIZE): Moved to common/linux-ptrace.c.
13638 (linux_tracefork_child): Remove.
13639 (linux_test_for_tracefork): Remove.
13640 (linux_look_up_symbols): Call linux_supports_traceclone.
13641 (initialize_low): Remove call to linux_test_for_tracefork.
13642 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13643 common/linux-ptrace.h.
13644 (PTRACE_TYPE_ARG4): Likewise.
13645 Include linux-ptrace.h.
13646
32940073
PA
136472013-08-21 Pedro Alves <palves@redhat.com>
13648
13649 * config.in: Renegerate.
13650
33b60d58 136512013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13652
33b60d58
LM
13653 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13654 (SFILES): Remove $(srcdir)/common/target-common.c and
13655 add $(srcdir)/target/waitstatus.c.
13656 (OBS): Remove target-common.o and add waitstatus.o.
13657 (server_h): Remove $(srcdir)/../common/target-common.h and
13658 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13659 and $(srcdir)/../target/waitstatus.h.
13660 (target-common.o): Remove.
13661 (waitstatus.o): New target object file.
13662 * target.h: Do not include target-common.h and
13663 include target/resume.h, target/wait.h and
13664 target/waitstatus.h.
13665
b8e1b30e
LM
136662013-08-13 Luis Machado <lgustavo@codesourcery.com>
13667
13668 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13669 to PTRACE_TYPE_ARG3.
13670 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13671 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13672 PTRACE_TYPE_ARG4.
13673 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13674 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13675
7a60ad40
YQ
136762013-07-27 Jie Zhang <jie@codesourcery.com>
13677 Daniel Jacobowitz <dan@codesourcery.com>
13678 Yao Qi <yao@codesourcery.com>
13679
13680 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13681 (mips-linux-watch.o): New rule.
13682 (mips_linux_watch_h): New variable.
13683 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13684 srv_tgtobj.
13685 * linux-mips-low.c: Include mips-linux-watch.h.
13686 (struct arch_process_info, struct arch_lwp_info): New.
13687 (update_watch_registers_callback): New function.
13688 (mips_linux_new_process, mips_linux_new_thread) New functions.
13689 (mips_linux_prepare_to_resume, mips_insert_point): New
13690 functions.
13691 (mips_remove_point, mips_stopped_by_watchpoint): New
13692 functions.
13693 (rsp_bp_type_to_target_hw_bp_type): New function.
13694 (mips_stopped_data_address): New function.
13695 (the_low_target): Add watchpoint support functions.
13696
de6f69ad
YQ
136972013-07-27 Yao Qi <yao@codesourcery.com>
13698
13699 * i386-low.c: Include break-common.h.
13700 (enum target_hw_bp_type): Remove.
13701
3360c0bf
LM
137022013-07-24 Luis Machado <lgustavo@codesourcery.com>
13703
13704 * Makefile.in (SFILES): /common/target-common.c.
13705 (OBS): Add target-common.o.
13706 (server_h): Add $(srcdir)/../common/target-common.h.
13707 (target-common.o): New target.
13708 * server.c (queue_stop_reply_callback): Free
13709 status string after use.
13710 * target.c (target_waitstatus_to_string): Remove.
13711 * target.h: Include target-common.h.
13712 (resume_kind): Likewise.
13713 (target_waitkind): Likewise.
13714 (target_waitstatus): Likewise.
13715 (TARGET_WNOHANG): Likewise.
13716
bd885420
YQ
137172013-07-04 Yao Qi <yao@codesourcery.com>
13718
13719 * Makefile.in (host_alias): Use @host_noncanonical@.
13720 (target_alias): Use @target_noncanonical@.
13721 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13722 ACX_NONCANONICAL_HOST.
13723 * configure: Regenerated.
13724
13725 Revert:
13726 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13727
13728 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13729 * configure: Rebuild.
13730 * Makefile.in (version_host, version_target): Get from configure.
13731 (version.c): Use $(version_host) and $(version_target).
13732
17ef446e
PA
137332013-07-03 Pedro Alves <palves@redhat.com>
13734
13735 * Makefile.in (config.status): Depend on development.sh.
13736 * acinclude.m4: Include libmcheck.m4.
13737 * configure: Regenerate.
13738
7a9a7487
MG
137392013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13740
13741 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13742 attribute inside the parentheses.
13743 (winapi_DebugSetProcessKillOnExit): Ditto.
13744 (winapi_DebugBreakProcess): Ditto.
13745 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13746
49b64de6
MG
137472013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13748
13749 * notif.h (notif_event): Add a dummy member to avoid compiler
13750 errors.
13751
d5749ee7
PA
137522013-07-01 Pedro Alves <palves@redhat.com>
13753
13754 * hostio.c (HOSTIO_PATH_MAX): Define.
13755 (require_filename, handle_open, handle_unlink, handle_readlink):
13756 Use it.
13757
d8d2a3ee
PA
137582013-07-01 Pedro Alves <palves@redhat.com>
13759
13760 * server.h: Include "pathmax.h".
13761 * linux-low.c: Don't include sys/param.h.
13762 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13763 MAXPATHLEN.
13764 * win32-low.c: Don't include sys/param.h.
13765 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13766
bc7dea8d
PA
137672013-07-01 Pedro Alves <palves@redhat.com>
13768
13769 * event-loop.c: Don't check HAVE_UNISTD_H before including
13770 <unistd.h>.
13771 * gdbreplay.c: Likewise.
13772 * remote-utils.c: Likewise.
13773 * server.c: Likewise.
13774 * configure.ac: Don't check for unistd.h.
13775 * configure: Regenerate.
13776
d6c2da54
TT
137772013-06-28 Tom Tromey <tromey@redhat.com>
13778
13779 * Makefile.in (version.c): Use version.in, not
13780 common/version.in.
13781
257b6bec
MG
137822013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13783
13784 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13785 * configure: Rebuild.
13786 * Makefile.in (version_host, version_target): Get from configure.
13787 (version.c): Use $(version_host) and $(version_target).
13788
86ebe149
DK
137892013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13790
13791 Fix trace-status to output user name without trailing colon.
13792 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13793
f30aa5af
DK
137942013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13795
13796 Fix trace-status to output proper start-time and stop-time.
13797 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13798 output start time and stop time in hex as gdb expects.
13799
28a93511
YQ
138002013-06-26 Pedro Alves <pedro@codesourcery.com>
13801
13802 * tracepoint.c (build_traceframe_info_xml): Output trace state
13803 variables present in the trace buffer.
13804
01208463
TT
138052013-06-24 Tom Tromey <tromey@redhat.com>
13806
13807 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13808 create-version.sh.
13809 (version.o): Remove.
13810 * gdbreplay.c: Include version.h.
13811 (version, host_name): Don't declare.
13812 * server.h: Include version.h.
13813 (version, host_name): Don't declare.
13814
760256f9
PA
138152013-06-12 Pedro Alves <palves@redhat.com>
13816
13817 * linux-x86-low.c (linux_is_elf64): Delete global.
13818 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13819 with local linux_pid_exe_is_elf_64_file use.
13820
030031ee
PA
138212013-06-11 Pedro Alves <palves@redhat.com>
13822
13823 * linux-low.c (regset_disabled, disable_regset): New functions.
13824 (regsets_fetch_inferior_registers)
13825 (regsets_store_inferior_registers): Use them.
13826 (initialize_regsets_info); Don't allocate the disabled_regsets
13827 array here.
13828 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13829 comment.
13830
5da6eb0a
PA
138312013-06-11 Pedro Alves <palves@redhat.com>
13832
13833 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13834 xmalloc.
13835
7e5aaa09
PA
138362013-06-11 Pedro Alves <palves@redhat.com>
13837
13838 * linux-x86-low.c (initialize_low_arch): Call
13839 init_registers_x32_avx_linux.
13840
d878444c
JK
138412013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13842
13843 Fix compatibility with Android Bionic.
13844 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13845 it is not empty.
13846
3aee8918
PA
138472013-06-07 Pedro Alves <palves@redhat.com>
13848
5f2b57b5 13849 PR server/14823
3aee8918
PA
13850 * Makefile.in (OBS): Add tdesc.o.
13851 (IPA_OBJS): Add tdesc-ipa.o.
13852 (tdesc-ipa.o): New rule.
13853 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13854 interface.
13855 * linux-low.c (new_inferior): Delete.
13856 (disabled_regsets, num_regsets): Delete.
13857 (linux_add_process): Adjust to set the new per-process
13858 new_inferior flag.
13859 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13860 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13861 was a stop. When calling arch_setup, switch the current inferior
13862 to the thread that got an event.
13863 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13864 (regsets_fetch_inferior_registers)
13865 (regsets_store_inferior_registers): New regsets_info parameter.
13866 Adjust to use it.
13867 (linux_register_in_regsets): New regs_info parameter. Adjust to
13868 use it.
13869 (register_addr, fetch_register, store_register): New usrregs_info
13870 parameter. Adjust to use it.
13871 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13872 parameter regs_info. Adjust to use it.
13873 (linux_fetch_registers): Get the current inferior's regs_info, and
13874 adjust to use it.
13875 (linux_store_registers): Ditto.
13876 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13877 (initialize_low): Don't initialize the target_regsets here. Call
13878 initialize_low_arch.
13879 * linux-low.h (target_regsets): Delete declaration.
13880 (struct regsets_info): New.
13881 (struct usrregs_info): New.
13882 (struct regs_info): New.
13883 (struct process_info_private) <new_inferior>: New field.
13884 (struct linux_target_ops): Delete the num_regs, regmap, and
13885 regset_bitmap fields. New field regs_info.
13886 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13887 * i387-fp.c (num_xmm_registers): Delete.
13888 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13889 calls to new interface.
13890 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13891 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13892 Infer the number of xmm registers from the regcache's target
13893 description.
13894 * i387-fp.h (num_xmm_registers): Delete.
13895 * inferiors.c (add_thread): Don't install the thread's regcache
13896 here.
13897 * proc-service.c (gregset_info): Fetch the current inferior's
13898 regs_info. Adjust to use it.
13899 * regcache.c: Include tdesc.h.
13900 (register_bytes, reg_defs, num_registers)
13901 (gdbserver_expedite_regs): Delete.
13902 (get_thread_regcache): If the thread doesn't have a regcache yet,
13903 create one, instead of aborting gdbserver.
13904 (regcache_invalidate_one): Rename to ...
13905 (regcache_invalidate_thread): ... this.
13906 (regcache_invalidate_one): New.
13907 (regcache_invalidate): Only invalidate registers of the current
13908 process.
13909 (init_register_cache): Add target_desc parameter, and use it.
13910 (new_register_cache): Ditto. Assert the target description has a
13911 non zero registers_size.
13912 (regcache_cpy): Add assertions. Adjust.
13913 (realloc_register_cache, set_register_cache): Delete.
13914 (registers_to_string, registers_from_string): Adjust.
13915 (find_register_by_name, find_regno, find_register_by_number)
13916 (register_cache_size): Add target_desc parameter, and use it.
13917 (free_register_cache_thread, free_register_cache_thread_one)
13918 (regcache_release, register_cache_size): New.
13919 (register_size): Add target_desc parameter, and use it.
13920 (register_data, supply_register, supply_register_zeroed)
13921 (supply_regblock, supply_register_by_name, collect_register)
13922 (collect_register_as_string, collect_register_by_name): Adjust.
13923 * regcache.h (struct target_desc): Forward declare.
13924 (struct regcache) <tdesc>: New field.
13925 (init_register_cache, new_register_cache): Add target_desc
13926 parameter.
13927 (regcache_invalidate_thread): Declare.
13928 (regcache_invalidate_one): Delete declaration.
13929 (regcache_release): Declare.
13930 (find_register_by_number, register_cache_size, register_size)
13931 (find_regno): Add target_desc parameter.
13932 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13933 declarations.
13934 * remote-utils.c: Include tdesc.h.
13935 (outreg, prepare_resume_reply): Adjust.
13936 * server.c: Include tdesc.h.
13937 (gdbserver_xmltarget): Delete declaration.
13938 (get_features_xml, process_serial_event): Adjust.
13939 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13940 declare.
13941 (struct process_info) <tdesc>: New field.
13942 (ipa_tdesc): Declare.
13943 * tdesc.c: New file.
13944 * tdesc.h: New file.
13945 * tracepoint.c: Include tdesc.h.
13946 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13947 (get_context_regcache): Adjust to pass ipa_tdesc down.
13948 (do_action_at_tracepoint): Adjust to get the register cache size
13949 from the context regcache's description.
13950 (traceframe_walk_blocks): Adjust to get the register cache size
13951 from the current trace frame's description.
13952 (traceframe_get_pc): Adjust to get current trace frame's
13953 description and pass it down.
13954 (gdb_collect): Adjust to get the register cache size from the
13955 IPA's description.
13956 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13957 (gdbserver_xmltarget): Delete.
13958 (initialize_low_tracepoint): Set the ipa's target description.
13959 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13960 (initialize_low_tracepoint): Set the ipa's target description.
13961 * linux-x86-low.c: Include tdesc.h.
13962 [__x86_64__] (is_64bit_tdesc): New.
13963 (ps_get_thread_area, x86_get_thread_area): Use it.
13964 (i386_cannot_store_register): Rename to ...
13965 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13966 (i386_cannot_fetch_register): Rename to ...
13967 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13968 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13969 to new interface.
13970 (target_regsets): Rename to ...
13971 (x86_regsets): ... this.
13972 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13973 interface.
13974 (x86_siginfo_fixup): Use is_64bit_tdesc.
13975 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13976 (tdesc_x32_avx_linux, tdesc_x32_linux)
13977 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13978 Declare.
13979 (x86_linux_update_xmltarget): Delete.
13980 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13981 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13982 (AMD64_LINUX_USER64_CS): New.
13983 (x86_linux_read_description): New, based on
13984 x86_linux_update_xmltarget.
13985 (same_process_callback): New.
13986 (x86_arch_setup_process_callback): New.
13987 (x86_linux_update_xmltarget): New.
13988 (x86_regsets_info): New.
13989 (amd64_linux_regs_info): New.
13990 (i386_linux_usrregs_info): New.
13991 (i386_linux_regs_info): New.
13992 (x86_linux_regs_info): New.
13993 (x86_arch_setup): Reimplement.
13994 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13995 (x86_emit_ops): Ditto.
13996 (the_low_target): Adjust. Install x86_linux_regs_info,
13997 x86_cannot_fetch_register, and x86_cannot_store_register.
13998 (initialize_low_arch): New.
13999 * linux-ia64-low.c (tdesc_ia64): Declare.
14000 (ia64_fetch_register): Adjust.
14001 (ia64_usrregs_info, regs_info): New globals.
14002 (ia64_regs_info): New function.
14003 (the_low_target): Adjust.
14004 (initialize_low_arch): New function.
14005 * linux-sparc-low.c (tdesc_sparc64): Declare.
14006 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14007 Adjust.
14008 (sparc_arch_setup): New function.
14009 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14010 (the_low_target): Adjust.
14011 (initialize_low_arch): New function.
14012 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14013 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14014 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14015 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14016 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14017 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14018 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14019 (tdesc_powerpc_isa205_vsx64l): Declare.
14020 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14021 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14022 (ppc_set_pc, ppc_get_hwcap): Adjust.
14023 (ppc_usrregs_info): Forward declare.
14024 (!__powerpc64__) ppc_regmap_adjusted: New global.
14025 (ppc_arch_setup): Adjust to the current process'es target
14026 description.
14027 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14028 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14029 (ppc_store_evrregset): Adjust.
14030 (target_regsets): Rename to ...
14031 (ppc_regsets): ... this, and make static.
14032 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14033 (ppc_regs_info): New function.
14034 (the_low_target): Adjust.
14035 (initialize_low_arch): New function.
14036 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14037 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14038 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14039 (tdesc_s390x_linux64v2): Declare.
14040 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14041 (s390_fill_gregset, s390_store_last_break): Adjust.
14042 (target_regsets): Rename to ...
14043 (s390_regsets): ... this, and make static.
14044 (s390_get_pc, s390_set_pc): Adjust.
14045 (s390_get_hwcap): New target_desc parameter, and use it.
14046 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14047 (s390_arch_setup): Adjust to set the current process'es target
14048 description. Don't adjust the regmap.
14049 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14050 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14051 (regs_info_3264): New globals.
14052 (s390_regs_info): New function.
14053 (the_low_target): Adjust.
14054 (initialize_low_arch): New function.
14055 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14056 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14057 [__mips64] (init_registers_mips_linux)
14058 (init_registers_mips_dsp_linux): Delete defines.
14059 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14060 (have_dsp): New global.
14061 (mips_read_description): New, based on mips_arch_setup.
14062 (mips_arch_setup): Reimplement.
14063 (get_usrregs_info): New function.
14064 (mips_cannot_fetch_register, mips_cannot_store_register)
14065 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14066 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14067 (target_regsets): Rename to ...
14068 (mips_regsets): ... this, and make static.
14069 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14070 (dsp_regs_info, regs_info): New globals.
14071 (mips_regs_info): New function.
14072 (the_low_target): Adjust.
14073 (initialize_low_arch): New function.
14074 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14075 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14076 Declare.
14077 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14078 (arm_read_description): New, with bits factored from
14079 arm_arch_setup.
14080 (arm_arch_setup): Reimplement.
14081 (target_regsets): Rename to ...
14082 (arm_regsets): ... this, and make static.
14083 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14084 (arm_regs_info): New function.
14085 (the_low_target): Adjust.
14086 (initialize_low_arch): New function.
14087 * linux-m68k-low.c (tdesc_m68k): Declare.
14088 (target_regsets): Rename to ...
14089 (m68k_regsets): ... this, and make static.
14090 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14091 (m68k_regs_info): New function.
14092 (m68k_arch_setup): New function.
14093 (the_low_target): Adjust.
14094 (initialize_low_arch): New function.
14095 * linux-sh-low.c (tdesc_sharch): Declare.
14096 (target_regsets): Rename to ...
14097 (sh_regsets): ... this, and make static.
14098 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14099 (sh_regs_info, sh_arch_setup): New functions.
14100 (the_low_target): Adjust.
14101 (initialize_low_arch): New function.
14102 * linux-bfin-low.c (tdesc_bfin): Declare.
14103 (bfin_arch_setup): New function.
14104 (bfin_usrregs_info, regs_info): New globals.
14105 (bfin_regs_info): New function.
14106 (the_low_target): Adjust.
14107 (initialize_low_arch): New function.
14108 * linux-cris-low.c (tdesc_cris): Declare.
14109 (cris_arch_setup): New function.
14110 (cris_usrregs_info, regs_info): New globals.
14111 (cris_regs_info): New function.
14112 (the_low_target): Adjust.
14113 (initialize_low_arch): New function.
14114 * linux-cris-low.c (tdesc_crisv32): Declare.
14115 (cris_arch_setup): New function.
14116 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14117 (cris_regs_info): New function.
14118 (the_low_target): Adjust.
14119 (initialize_low_arch): New function.
14120 * linux-m32r-low.c (tdesc_m32r): Declare.
14121 (m32r_arch_setup): New function.
14122 (m32r_usrregs_info, regs_info): New globals.
14123 (m32r_regs_info): Adjust.
14124 (initialize_low_arch): New function.
14125 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14126 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14127 (tic6x_usrregs_info): Forward declare.
14128 (tic6x_read_description): New function, based on ...
14129 (tic6x_arch_setup): ... this. Reimplement.
14130 (target_regsets): Rename to ...
14131 (tic6x_regsets): ... this, and make static.
14132 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14133 (tic6x_regs_info): New function.
14134 (the_low_target): Adjust.
14135 (initialize_low_arch): New function.
14136 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14137 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14138 (target_regsets): Rename to ...
14139 (xtensa_regsets): ... this, and make static.
14140 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14141 globals.
14142 (xtensa_arch_setup, xtensa_regs_info): New functions.
14143 (the_low_target): Adjust.
14144 (initialize_low_arch): New function.
14145 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14146 (nios2_arch_setup): Set the current process'es tdesc.
14147 (target_regsets): Rename to ...
14148 (nios2_regsets): ... this.
14149 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14150 (nios2_regs_info): New function.
14151 (the_low_target): Adjust.
14152 (initialize_low_arch): New function.
a261b8f5
PA
14153 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14154 (aarch64_arch_setup): Set the current process'es tdesc.
14155 (target_regsets): Rename to ...
14156 (aarch64_regsets): ... this.
14157 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14158 (aarch64_regs_info): New function.
14159 (the_low_target): Adjust.
14160 (initialize_low_arch): New function.
3aee8918
PA
14161 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14162 globals.
14163 (target_regsets): Rename to ...
14164 (tile_regsets): ... this.
14165 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14166 (tile_regs_info): New function.
14167 (tile_arch_setup): Set the current process'es tdesc.
14168 (the_low_target): Adjust.
14169 (initialize_low_arch): New function.
14170 * spu-low.c (tdesc_spu): Declare.
14171 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14172 * win32-arm-low.c (tdesc_arm): Declare.
14173 (arm_arch_setup): New function.
14174 (the_low_target): Install arm_arch_setup instead of
14175 init_registers_arm.
14176 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14177 (init_windows_x86): Rename to ...
14178 (i386_arch_setup): ... this. Set `win32_tdesc'.
14179 (the_low_target): Adjust.
14180 * win32-low.c (win32_tdesc): New global.
14181 (child_add_thread): Don't create the thread cache here.
14182 (do_initial_child_stuff): Set the new process'es tdesc.
14183 * win32-low.h (struct target_desc): Forward declare.
14184 (win32_tdesc): Declare.
14185 * lynx-i386-low.c (tdesc_i386): Declare global.
14186 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14187 * lynx-low.c (lynx_tdesc): New global.
14188 (lynx_add_process): Set the new process'es tdesc.
14189 * lynx-low.h (struct target_desc): Forward declare.
14190 (lynx_tdesc): Declare global.
14191 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14192 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14193 * nto-low.c (nto_tdesc): New global.
14194 (do_attach): Set the new process'es tdesc.
14195 * nto-low.h (struct target_desc): Forward declare.
14196 (nto_tdesc): Declare.
14197 * nto-x86-low.c (tdesc_i386): Declare.
14198 (nto_x86_arch_setup): Set `nto_tdesc'.
14199
b1fbec62
GB
142002013-06-04 Gary Benson <gbenson@redhat.com>
14201
14202 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14203 to qSupported response when appropriate.
14204 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14205 with nonzero-length annex.
14206 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14207 arguments supplied in annex.
14208
d1ec4ce7
DE
142092013-05-31 Doug Evans <dje@google.com>
14210
ac44adcb 14211 PR server/15594
d1ec4ce7
DE
14212 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14213 64 bits in 64-cross-32 environment.
14214
9b25f2d3
PA
142152013-05-28 Pedro Alves <palves@redhat.com>
14216
14217 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14218 (aarch64-without-fpu.c): Delete rule.
14219 * configure.srv (aarch64*-*-linux*): Remove references to
14220 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14221 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14222 declaration.
14223
6740dc9c
PA
142242013-05-24 Pedro Alves <palves@redhat.com>
14225
14226 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14227 instead of strchr/decode_address. Error if the range isn't split
14228 with a ','. Don't assume there's be a ':' in the action.
14229
c2d6af84
PA
142302013-05-23 Yao Qi <yao@codesourcery.com>
14231 Pedro Alves <palves@redhat.com>
14232
14233 * linux-low.c (lwp_in_step_range): New function.
14234 (linux_wait_1): If the thread was range stepping and stopped
14235 outside the stepping range, report the stop to GDB. Otherwise,
14236 continue stepping. Add range stepping debug output.
14237 (linux_set_resume_request): Copy the step range from the resume
14238 request to the lwp.
14239 (linux_supports_range_stepping): New.
14240 (linux_target_ops) <supports_range_stepping>: Set to
14241 linux_supports_range_stepping.
14242 * linux-low.h (struct linux_target_ops)
14243 <supports_range_stepping>: New field.
14244 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14245 * linux-x86-low.c (x86_supports_range_stepping): New.
14246 (the_low_target) <supports_range_stepping>: Set to
14247 x86_supports_range_stepping.
14248 * server.c (handle_v_cont): Handle 'r' action.
14249 (handle_v_requests): Append ";r" if the target supports range
14250 stepping.
14251 * target.h (struct thread_resume) <step_range_start,
14252 step_range_end>: New fields.
14253 (struct target_ops) <supports_range_stepping>:
14254 New field.
14255 (target_supports_range_stepping): New macro.
14256
58794e1a
JB
142572013-05-17 Joel Brobecker <brobecker@adacore.com>
14258
14259 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14260 confusion in comment.
14261
d631c5a7
JB
142622013-05-17 Joel Brobecker <brobecker@adacore.com>
14263
14264 * lynx-low.c (struct process_info_private): New type.
14265 (lynx_add_process): New function.
14266 (lynx_create_inferior, lynx_attach): Replace calls to
14267 add_process by calls to lynx_add_process.
14268 (lynx_resume): If PTID is null, then try using
14269 current_process()->private->last_wait_event_ptid.
14270 Add comments.
14271 (lynx_clear_inferiors): Delete. The contents of that function
14272 has been inlined in lynx_mourn;
14273 (lynx_wait_1): Save the ptid in the process's private data.
14274 (lynx_mourn): Free the process' private data. Replace call
14275 to lynx_clear_inferiors by call to clear_inferiors.
14276
96f7a20f
YQ
142772013-05-17 Yao Qi <yao@codesourcery.com>
14278
14279 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14280 the right place.
14281
db0dfaa0
LM
142822013-05-16 Luis Machado <lgustavo@codesourcery.com>
14283
14284 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14285 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14286 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14287 PT_TEXT_END_ADDR guards. Update comments.
14288 (linux_target_op) <read_offsets>: Conditionally define to
14289 linux_read_offsets if the target is UCLIBC and if it defines
14290 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14291
68f5f838
SL
142922013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14293 Andrew Jenner <andrew@codesourcery.com>
14294
14295 * Makefile.in (SFILES): Add linux-nios2-low.c.
14296 (clean): Add action to delete nios2-linux.c.
14297 (nios2-linux.c): New rule.
14298 * configure.srv: Add nios2*-*-linux*.
14299 * linux-nios2-low.c: New.
14300
1ebff1fd
HAQ
143012013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14302
14303 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14304
f6150862
HZ
143052013-04-25 Hui Zhu <hui@codesourcery.com>
14306
14307 PR gdb/15186
f6150862
HZ
14308 * ax.c (ax_printf): Add fflush.
14309
614c279d
TT
143102013-04-22 Tom Tromey <tromey@redhat.com>
14311
14312 * Makefile.in (SFILES): Add filestuff.c.
14313 (OBS): Add filestuff.o.
14314 (filestuff.o): New target.
14315 * config.in, configure: Rebuild.
14316 * configure.ac: Check for fdwalk, pipe2.
14317
7d4e5717
PA
143182013-04-17 Pedro Alves <palves@redhat.com>
14319
14320 * configure.ac (USE_THREAD_DB): Delete variable.
14321 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14322 Don't AC_SUBST USE_THREAD_DB.
14323 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14324 * config.in, configure: Regenerate.
14325
d5c93e41
PA
143262013-04-16 Pedro Alves <palves@redhat.com>
14327
14328 * linux-low.h (struct lwp_info) <thread_known>: Move under
14329 the USE_THREAD_DB #ifdef.
14330
04f5fe89
PA
143312013-04-16 Pedro Alves <palves@redhat.com>
14332
14333 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14334 (linux-low.o): Delete rule.
14335 * linux-low.h: Always include "gdb_thread_db.h" instead of
14336 conditionally including thread_db.h.
14337 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14338 HAVE_THREAD_DB_H.
14339
480b27bf
JK
143402013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14341
14342 * Makefile.in (install-only): Fix make install regression.
14343
43662968
JK
143442013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14345
14346 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14347 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14348 installation.
14349 * gdbserver.1: Remove.
14350
3e74e146
PA
143512013-03-22 Pedro Alves <palves@redhat.com>
14352
14353 * linux-low.c (handle_extended_wait): Don't call
14354 linux_enable_event_reporting.
14355
a8347a2a
TT
143562013-03-15 Tony Theodore <tonyt@logyst.com>
14357
14358 PR build/9098:
14359 * Makefile.in (SHELL): Use @SHELL@.
14360
eeb56fa7
SDJ
143612013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14362
14363 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14364 compiler warning.
14365
4fa7e2ff
JB
143662013-03-13 Joel Brobecker <brobecker@adacore.com>
14367
14368 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14369 Remove extraneous NULL element.
14370
8ddb1965
YQ
143712013-03-13 Yao Qi <yao@codesourcery.com>
14372
14373 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14374 'V' block in trace frame.
14375
9accd112
MM
143762013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14377
14378 * target.h (struct target_ops): Add btrace ops.
14379 (target_supports_btrace): New macro.
14380 (target_enable_btrace): New macro.
14381 (target_disable_btrace): New macro.
14382 (target_read_btrace): New macro.
14383 * gdbthread.h (struct thread_info): Add btrace field.
14384 * server.c: Include btrace-common.h.
14385 (handle_btrace_general_set): New function.
14386 (handle_btrace_enable): New function.
14387 (handle_btrace_disable): New function.
14388 (handle_general_set): Call handle_btrace_general_set.
14389 (handle_qxfer_btrace): New function.
14390 (struct qxfer qxfer_packets[]): Add btrace entry.
14391 * inferiors.c (remove_thread): Disable btrace.
14392 * linux-low: Include linux-btrace.h.
14393 (linux_low_enable_btrace): New function.
14394 (linux_low_read_btrace): New function.
14395 (linux_target_ops): Add btrace ops.
14396 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14397 Add srv_linux_btrace=yes.
14398 (x86_64-*-linux*): Add linux-btrace.o.
14399 Add srv_linux_btrace=yes.
14400 * configure.ac: Define HAVE_LINUX_BTRACE.
14401 * config.in: Regenerated.
14402 * configure: Regenerated.
14403
5cc22e4c
MM
144042013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14405
14406 * server.c (handle_qxfer): Preserve error message if -3 is
14407 returned.
14408 (qxfer): Document the -3 return value.
14409
7c97f91e
MM
144102013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14411
14412 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14413 (linux_btrace_h): New variable.
14414 (linux-btrace.o): New rule.
14415
be9a119c 144162013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14417 Hafiz Abid Qadeer <abidh@codesourcery.com>
14418
14419 * tracepoint.c (trace_buffer_size): New global.
14420 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14421 (init_trace_buffer): Change to one-argument function. Allocate
14422 trace buffer memory.
14423 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14424 handle QTBuffer:size packet.
14425 (cmd_bigqtbuffer_size): New function.
14426 (initialize_tracepoint): Call init_trace_buffer with
14427 DEFAULT_TRACE_BUFFER_SIZE.
14428 * server.c (handle_query): Add QTBuffer:size in the
14429 supported packets.
14430
e64f7499
YQ
144312013-03-07 Yao Qi <yao@codesourcery.com>
14432
14433 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14434 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14435 of -1.
14436 (cmd_qtsp): Adjust condition. Do post increment.
14437 Set cur_action and cur_step_action back to 0.
14438
f0ae6fc3
PA
144392013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14440
14441 PR server/15236
14442 * linux-low.c (linux_write_memory): Return early success if LEN is
14443 zero.
14444
b5b0b0af
CV
144452013-03-05 Corinna Vinschen <vinschen@redhat.de>
14446
334ad4a8 14447 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14448
589bc927
TT
144492013-02-28 Tom Tromey <tromey@redhat.com>
14450
14451 * configure.ac: Invoke AC_SYS_LARGEFILE.
14452 * configure, config.in: Rebuild.
14453
dfe07582
CV
144542013-02-28 Corinna Vinschen <vinschen@redhat.com>
14455
14456 * win32-low.c: Throughout, fix format strings and casts of
14457 printf-like functions to avoid type related warnings on all
14458 platforms.
14459 (get_child_debug_event): Print dwDebugEventCode as hex since
14460 that's how it's usually documented.
14461
736cd585
YQ
144622013-02-28 Yao Qi <yao@codesourcery.com>
14463
14464 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14465 pulongest.
14466
e1f58301
JW
144672013-02-27 Jiong Wang <jiwang@tilera.com>
14468
14469 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14470 (reg-tilegx32.c): New rule.
14471 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14472 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14473 different register info initializer according to elf class.
14474 (init_registers_tilgx32): New function. The tilegx32 register info
14475 initializer.
14476 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14477 (tile_store_gregset): Likewise.
14478
d171ca78
YQ
144792013-02-27 Yao Qi <yao@codesourcery.com>
14480
14481 * server.c (process_point_options): Print debug message when
14482 debug_threads is true.
14483
282bbdf3
YQ
144842013-02-26 Yao Qi <yao@codesourcery.com>
14485
14486 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14487
aca22551
PA
144882013-02-19 Pedro Alves <palves@redhat.com>
14489 Kai Tietz <ktietz@redhat.com>
14490
14491 PR gdb/15161
14492
14493 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14494 instead of strtoul to extract address from packet.
14495 (process_serial_event) <'z'>: Likewise.
14496
4f3cee1c
YQ
144972013-02-18 Yao Qi <yao@codesourcery.com>
14498
14499 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14500
8e1d55a3
PA
145012013-02-14 Pedro Alves <palves@redhat.com>
14502
14503 Plug memory leak.
14504
14505 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14506 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14507
458820da
PA
145082013-02-14 Pedro Alves <palves@redhat.com>
14509
14510 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14511
baea0dae
PA
145122013-02-14 Pedro Alves <palves@redhat.com>
14513
14514 * tracepoint.c (save_string): Delete.
14515 (add_tracepoint_action): Use savestring instead of save_string.
14516
0b1afbb3
PA
145172013-02-12 Pedro Alves <palves@redhat.com>
14518
14519 * linux-xtensa-low.c: Ditto.
14520 * xtensa-xtregs.c: Ditto.
14521
8a4ac37e
PA
145222013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14523
14524 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14525 thread_db.
14526
148de6bb
MS
145272013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14528
14529 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14530 aarch64_num_wp_regs and aarch64_num_bp_regs to
14531 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14532
55fac6e0
MS
145332013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14534
14535 * linux-aarch64-low.c (ps_get_thread_area): Replace
14536 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14537
176eb98c
MS
145382013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14539 Marcus Shawcroft <marcus.shawcroft@arm.com>
14540 Nigel Stephens <nigel.stephens@arm.com>
14541 Yufeng Zhang <yufeng.zhang@arm.com>
14542
14543 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14544 (aarch64.c, aarch64-without-fpu.c): New targets.
14545 * configure.srv (aarch64*-*-linux*): New.
14546 * linux-aarch64-low.c: New file.
14547
56f7af9c
MS
145482013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14549
43aaf8b6 14550 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14551 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14552 (dequeue_one_deferred_signal, linux_resume_one_thread)
14553 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14554 (linux_tracefork_grandchild, linux_test_for_tracefork)
14555 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14556 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14557 where the argument is 0.
14558
60f662b0
YQ
145592013-01-25 Yao Qi <yao@codesourcery.com>
14560
14561 * event-loop.c: Include "queue.h".
14562 (gdb_event_p): New typedef.
14563 (struct gdb_event) <next_event>: Remove.
14564 (event_queue): Change to QUEUE(gdb_event_p).
14565 (async_queue_event): Remove.
14566 (gdb_event_xfree): New.
14567 (initialize_event_loop): New.
14568 (process_event): Use API from QUEUE.
14569 (wait_for_event): Likewise.
14570 * server.c (main): Call initialize_event_loop.
14571 * server.h (initialize_event_loop): Declare.
14572
5ae4861a
YQ
145732013-01-18 Yao Qi <yao@codesourcery.com>
14574
14575 * ax.h (struct eval_agent_expr_context): New.
14576 (gdb_eval_agent_expr): Update declaration.
14577 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14578 TFRAME. Add new argument CTX.
14579 * server.h (struct eval_agent_expr_context): Declare.
14580 (agent_mem_read, agent_tsv_read): Update declaration.
14581 (agent_mem_read_string): Likewise.
14582 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14583 (add_traceframe_block): Add new argument TPOINT.
14584 Increase TPOINT->traceframe_usage.
14585 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14586 eval_tracepoint_agent_expr.
14587 (condition_true_at_tracepoint): Likewise.
14588 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14589 (agent_mem_read_string, agent_tsv_read): Likewise.
14590
85e00e85
YQ
145912013-01-16 Yao Qi <yao@codesourcery.com>
14592
14593 * linux-low.c (linux_resume_one_lwp): Don't check
14594 'lwp->bp_reinsert != 0'.
14595
4039cf45
JB
145962013-01-07 Joel Brobecker <brobecker@adacore.com>
14597 Pedro Alves <palves@redhat.com>
14598
14599 * lynx-low.c (ptrace_request_to_str): Define a temporary
14600 macro and use it to simplify this function's implementation.
14601
9044dee2
JB
146022013-01-07 Joel Brobecker <brobecker@adacore.com>
14603
14604 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14605 sets errno.
14606
e6352c8f
JB
146072013-01-07 Joel Brobecker <brobecker@adacore.com>
14608
14609 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14610
50681a27
JB
146112013-01-07 Joel Brobecker <brobecker@adacore.com>
14612
14613 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14614
3f6e77ef
JB
146152013-01-07 Joel Brobecker <brobecker@adacore.com>
14616
14617 * lynx-low.c (lynx_resume): Use the resume_info parameter
14618 to determine the ptid for the lynx_ptrace call, unless
14619 it is equal to minus_one_ptid, in which case we use the
14620 ptid of the current_inferior.
14621 (lynx_wait_1): After having received a thread create/exit
14622 event, resume the inferior's execution using the signaling
14623 thread's ptid, rather than the old ptid.
14624
7fda33ae
JB
146252013-01-07 Joel Brobecker <brobecker@adacore.com>
14626
14627 * lynx-low.c (lynx_resume): Delete variable ret.
14628
b9786c74
JB
146292013-01-01 Joel Brobecker <brobecker@adacore.com>
14630
14631 * gdbreplay.c (gdbreplay_version): Update copyright year.
14632 * server.c (gdbserver_version): Likewise.
14633
8b93d60f
JB
146342012-12-17 Joel Brobecker <brobecker@adacore.com>
14635
14636 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14637 new thread.
14638
037335a7
JB
146392012-12-17 Joel Brobecker <brobecker@adacore.com>
14640
14641 * lynx-low.c (ptrace_request_to_str): Add handling for
14642 PTRACE_GETTRACESIG.
14643
52d4cbd8
JB
146442012-12-17 Joel Brobecker <brobecker@adacore.com>
14645
14646 * lynx-low.c (lynx_attach): Delete variable new_process.
14647
ab8f6ca9
JB
146482012-12-17 Joel Brobecker <brobecker@adacore.com>
14649
14650 * lynx-low.c (lynx_create_inferior): Delete variable
14651 new_process.
14652
78cbc024
JB
146532012-12-17 Joel Brobecker <brobecker@adacore.com>
14654
14655 * lynx-low.c (ptrace_request_to_str): Do not handle
14656 PTRACE_GETTHREADLIST if this macro does not exist.
14657
14a00470
YQ
146582012-12-15 Yao Qi <yao@codesourcery.com>
14659
14660 * Makefile.in (OBS): Add notif.o.
14661 * notif.c, notif.h: New.
14662 * server.c: Include "notif.h".
14663 (struct vstop_notif) <next>: Remove.
14664 <base>: New field.
14665 (queue_stop_reply): Update.
14666 (push_event, send_next_stop_reply): Remove.
14667 (discard_queued_stop_replies): Update.
14668 (notif_stop): New variable.
14669 (handle_v_stopped): Remove.
14670 (handle_v_requests): Don't call handle_v_stopped. Call
14671 handle_ack_notif instead.
14672 (queue_stop_reply_callback): Call notif_event_enque instead
14673 of queue_stop_reply.
14674 (handle_status): Don't call send_next_stop_reply, call
14675 notif_write_event instead.
14676 (kill_inferior_callback): Likewise.
14677 (detach_or_kill_inferior_callback): Likewise.
14678 (main): Call initialize_notif.
14679 (process_serial_event): Call QUEUE_is_empty.
14680 (handle_target_event): Call notif_push instead of push event.
14681 * server.h (push_event): Remove declaration.
14682
61c125b9
TT
146832012-12-10 Tom Tromey <tromey@redhat.com>
14684
14685 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14686 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14687 macros.
14688 (.c.o): Rewrite.
14689 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14690 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14691 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14692 (amd64-linux-ipa.o, ax.o): Rewrite.
14693 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14694 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14695 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14696 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14697 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14698 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14699 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14700 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14701 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14702 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14703 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14704 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14705 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14706 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14707 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14708 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14709 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14710 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14711 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14712 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14713 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14714 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14715 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14716 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14717 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14718 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14719 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14720 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14721 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14722 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14723 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14724 (reg-tilegx.o): Remove.
14725 (all_object_files): New macro.
14726 Include .deps files.
14727 * aclocal.m4, configure: Rebuild.
14728 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14729 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14730 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14731
e90e9ad9
TT
147322012-12-05 Tom Tromey <tromey@redhat.com>
14733
14734 PR gdb/14917:
14735 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14736
02d403bf 147372012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14738
14739 * configure.ac: Check for linux/perf_event.h.
14740 * config.in: Regenerated.
14741 * configure: Regenerated.
14742
0270a750
PA
147432012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14744
14745 * hostio.c (handle_readlink): Decrease buffer size
14746 parameter passed to readlink by one byte.
14747
8c29b58e
YQ
147482012-11-26 Yao Qi <yao@codesourcery.com>
14749
14750 * configure.ac (build_warnings): Append '-Wempty-body'.
14751 * configure: Regenerated.
14752 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14753 body.
14754
8bdce1ff
PM
147552012-11-15 Pierre Muller <muller@sourceware.org>
14756
14757 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14758 * config.in: Regenerate.
14759 * configure: Regenerate.
14760 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14761 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14762 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14763 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14764 header.
14765 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14766 instead of <sys/wait.h> header.
14767 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14768
02d403bf 147692012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14770
14771 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14772 (various make rules): Remove -DGDBSERVER
14773
fbd5db48
YQ
147742012-11-09 Yao Qi <yao@codesourcery.com>
14775
14776 * spu-low.c (current_ptid): Move it to ..
14777 * gdbthread.h: ... here. New.
14778 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14779 * server.c (myresume, process_serial_event): Likewise.
14780 * thread-db.c (thread_db_find_new_threads): Likewise.
14781 * tracepoint.c (run_inferior_command): Likewise.
14782
b3dc46ff
AB
147832012-10-01 Andrew Burgess <aburgess@broadcom.com>
14784
14785 * server.c (handle_search_memory_1): Include access length in
14786 warning message.
14787
07c04788
HPN
147882012-09-05 Michael Brandt <michael.brandt@axis.com>
14789
14790 * linux-crisv32-low.c: Fix compile errors.
14791
918d227b
YQ
147922012-09-04 Yao Qi <yao@codesourcery.com>
14793
14794 * tracepoint.c (cmd_qtsv): Adjust debug message.
14795 Don't check CUR_TPOINT.
14796
18c1b81a
YQ
147972012-08-28 Yao Qi <yao@codesourcery.com>
14798
14799 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14800 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14801 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14802 Remove declarations of xmalloc, xreallloc, xstrdup and
14803 freeargv.
14804 * Makefile.in (libiberty_h): New.
14805 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14806 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14807
dc82f37b
YQ
148082012-08-23 Yao Qi <yao@codesourcery.com>
14809
14810 * server.h: Remove declaration of 'xsnprintf'.
14811
406b1477
KS
148122012-08-22 Keith Seitz <keiths@redhat.com>
14813
14814 * server.h: Include build-gnulib-gbserver/config.h.
14815 * gdbreplay.c: Likewise.
14816
e6712ff1
DE
148172012-08-08 Doug Evans <dje@google.com>
14818
14819 * Makefile.in (SFILES): Add gdb_vecs.c.
14820 (OBS): Add gdb_vecs.o.
14821 (gdb_vecs_h, host_defs_h): New variables.
14822 (thread-db.o): Add $(gdb_vecs_h) dependency.
14823 (gdb_vecs.o): New rule.
14824 * thread-db.c: #include "gdb_vecs.h".
14825 (thread_db_load_search): Use a vector to iterate over path elements.
14826 Handle text appearing after "$pdir".
14827
14828 * configure.ac: Add check for strstr.
14829 * config.in: Regenerate.
14830 * configure: Regenerate.
14831
7c3270ae
UW
148322012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14833
14834 * hostio.c (handle_pread): If pread fails, fall back to attempting
14835 lseek/read.
14836 (handle_pwrite): Likewise for pwrite.
14837
b62e2b27
UW
148382012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14839
14840 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14841 between unsupported TYPE and unimplementable ADDR/LEN combination.
14842 (arm_insert_point): Act on new return value.
14843
78a99e91
PA
148442012-07-31 Pedro Alves <palves@redhat.com>
14845
14846 * server.c (process_point_options): Only skip tokens if we find
14847 one that is unrecognized. Don't treat 'X' specially while
14848 skipping unrecognized tokens.
14849
fcf303ab
UW
148502012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14851
14852 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14853 to 4-byte-align HW breakpoint addresses for Thumb.
14854
7255706c
YQ
148552012-07-27 Yao Qi <yao@codesourcery.com>
14856
14857 PR remote/14161.
14858
14859 * server.h: Declare gdb_agent_about_to_close.
14860 * target.c (kill_inferior): Include "agent.h".
14861 New. Send command 'kill'.
14862 * target.h (kill_inferior): Removed macro.
14863 * tracepoint.c (gdb_agent_about_to_close): New.
14864 (gdb_agent_helper_thread): Handle command 'close'.
14865 Wait endlessly until the inferior stops.
14866 Install gdb_agent_remove_socket to atexit hook.
14867 (agent_socket_name): New static variable.
14868 (gdb_agent_socket_init): Replace local variable 'name' with
14869 'agent_socket_name'.
14870 (gdb_agent_remove_socket): New.
14871
5a3f286f
YQ
148722012-07-27 Yao Qi <yao@codesourcery.com>
14873
14874 * server.c (process_point_options): Stop at 'X' when parsing.
14875
961bd387
ME
148762012-07-19 Michael Eager <eager@eagercon.com>
14877
a261b8f5 14878 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14879 to hw_execute.
14880 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14881 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14882 hardware breakpoint.
14883
aa7c7447
JK
148842012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14885
14886 * gdbserver/linux-low.c (initialize_low): Call
14887 linux_ptrace_init_warnings.
14888
7f216e7c
DE
148892012-07-02 Doug Evans <dje@google.com>
14890
14891 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14892 pointer to int.
14893
d3ce09f5
SS
148942012-07-02 Stan Shebs <stan@codesourcery.com>
14895
14896 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14897 (ax.o): Add it to build rule.
14898 (ax-ipa.o): Ditto.
14899 (OBS): Add format.o.
14900 (IPA_OBS): Add format.o.
14901 * server.c (handle_query): Claim support for breakpoint commands.
14902 (process_point_options): Add command case.
14903 (process_serial_event): Leave running if there are printfs in
14904 effect.
14905 * mem-break.h (any_persistent_commands): Declare.
14906 (add_breakpoint_commands): Declare.
14907 (gdb_no_commands_at_breakpoint): Declare.
14908 (run_breakpoint_commands): Declare.
14909 * mem-break.c (struct point_command_list): New struct.
14910 (struct breakpoint): New field command_list.
14911 (any_persistent_commands): New function.
14912 (add_commands_to_breakpoint): New function.
14913 (add_breakpoint_commands): New function.
14914 (gdb_no_commands_at_breakpoint): New function.
14915 (run_breakpoint_commands): New function.
14916 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14917 locally.
14918 * ax.c: Include format.h.
14919 (ax_printf): New function.
14920 (gdb_eval_agent_expr): Add printf opcode.
14921
2f8f6aed
YQ
149222012-06-13 Yao Qi <yao@codesourcery.com>
14923
14924 * server.c (start_inferior): Remove duplicated writes to fields
14925 'last_resume_kind' and 'last_status' of 'current_inferior'.
14926
0c9070b3
YQ
149272012-06-12 Yao Qi <yao@codesourcery.com>
14928 Pedro Alves <palves@redhat.com>
14929
14930 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14931 comment.
14932 * server.c (handle_v_cont): Extend comment.
14933
c52daf70
YQ
149342012-06-11 Yao Qi <yao@codesourcery.com>
14935
14936 * linux-low.c (linux_attach): Add 'static'.
14937
d38bbb0a
YQ
149382012-06-06 Yao Qi <yao@codesourcery.com>
14939
14940 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14941
89dc0afd
JK
149422012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14943
14944 Fix gcc -flto compilation warning.
14945 * server.c (main): Make variable multi_mode and attach volatile.
14946
75f62ce7
TJB
149472012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14948
14949 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14950 if the platform doesn't know about it.
14951
65f479b6
PA
149522012-05-30 Jeff Kenton <jkenton@tilera.com>
14953
14954 * Makefile.in (SFILES): Add linux-tile-low.c.
14955 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14956 * configure.srv: Handle tilegx-*-linux*.
14957 * linux-tile-low.c: New file.
14958
0c5bf5a9
JK
149592012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14960
14961 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14962
a493e3e2
PA
149632012-05-24 Pedro Alves <palves@redhat.com>
14964
14965 PR gdb/7205
14966
43aaf8b6 14967 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14968
2ea28649
PA
149692012-05-24 Pedro Alves <palves@redhat.com>
14970
14971 PR gdb/7205
14972
14973 Replace target_signal with gdb_signal throughout.
14974
8d409d16
MR
149752012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14976
14977 * linux-low.c (linux_store_registers): Avoid the copying sequence
14978 when no data has been retrieved by ptrace.
14979
23512c01
MGD
149802012-05-22 Will Deacon <will.deacon@arm.com>
14981
14982 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14983 Include asm/ptrace.h.
14984 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14985 already defined.
14986
4934b29e
MR
149872012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14988
14989 * linux-low.c (linux_store_registers): Don't re-retrieve data
14990 with ptrace that has already been obtained from /proc. Always
14991 copy any data retrieved with ptrace to the buffer supplied.
14992
bde24c0a
PA
149932012-05-11 Yao Qi <yao@codesourcery.com>
14994 Pedro Alves <palves@redhat.com>
14995
14996 * linux-low.c (enum stopping_threads_kind): New.
14997 (stopping_threads): Change type to `enum stopping_threads_kind'.
14998 (handle_extended_wait): If stopping and suspending threads, leave
14999 the new_lwp suspended too.
15000 (linux_wait_for_event): Adjust.
15001 (stop_all_lwps): Set `stopping_threads' to
15002 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15003 whether we're suspending threads or just stopping them. Assert no
15004 recursion happens.
15005
623b6bdf
YQ
150062012-04-29 Yao Qi <yao@codesourcery.com>
15007
15008 * server.h: Move some code to ...
15009 * gdbthread.h: ... here. New.
15010 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15011 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15012 (nto-low.o, win32-low.o): Likewise.
15013 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15014 * regcache.c, remote-utils.c, server.c: Likewise.
15015 * target.c, tracepoint.c, win32-low.c: Likewise.
15016
f15f9948
TJB
150172012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15018
15019 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15020 (PTRACE_ARG4_TYPE): Likewise.
15021 (PTRACE_XFER_TYPE): Likewise.
15022 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15023 ptrace to PTRACE_ARG3_TYPE.
15024 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15025 (PTRACE_ARG4_TYPE): Likewise.
15026 (PTRACE_XFER_TYPE): Likewise.
15027 (linux_detach_one_lwp): Cast fourth argument of
15028 ptrace to long then PTRACE_ARG4_TYPE.
15029 (regsets_fetch_inferior_registers): Cast third argument of
15030 ptrace to long then PTRACE_ARG3_TYPE.
15031 (regsets_store_inferior_registers): Likewise.
15032
38ea300a
PA
150332012-04-20 Pedro Alves <palves@redhat.com>
15034
15035 * configure: Regenerate.
15036
c971b7fa
PA
150372012-04-19 Pedro Alves <palves@redhat.com>
15038
43aaf8b6 15039 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15040 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15041 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15042 (all, install-only, uninstall, clean-info, all-lib, clean): No
15043 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15044 (maintainer-clean realclean distclean): Use subdir_do.
15045 (subdir_do): New.
15046 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15047 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15048 * acinclude.m4: Include acx_configure_dir.m4.
15049 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15050 calls. Call AC_PROG_RANLIB. Configure gnulib using
15051 ACX_CONFIGURE_DIR.
15052 (GNULIB): New.
15053 (GNULIB_STDINT_H): Adjust.
15054 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15055 * gdbreplay.c: Include build-gnulib/config.h.
15056 * server.h: Likewise.
15057 * aclocal.m4: Regenerate.
15058 * config.in: Regenerate.
15059 * configure: Regenerate.
c971b7fa 15060
809277f8
PA
150612012-04-19 Pedro Alves <palves@redhat.com>
15062
15063 * Makefile.in (LIBGNU, INCGNU): Adjust.
15064 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15065 (all, install-only, uninstall, clean-info, all-lib, clean)
15066 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15067 * configure.ac: Adjust AC_OUTPUT output.
15068 * aclocal.m4: Regenerate.
15069 * configure: Regenerate.
15070
fd9bb8b8
PA
150712012-04-19 Pedro Alves <palves@redhat.com>
15072
15073 * Makefile.in (generated_files): New.
15074 (server_h): Remove the explicit dependency on config.h, and depend
15075 on $generated_files.
15076
1c298c66
PA
150772012-04-19 Pedro Alves <palves@redhat.com>
15078
15079 * Makefile.in (INCGNU): Add -Ignulib.
15080
57c4b50b
PA
150812012-04-19 Pedro Alves <palves@redhat.com>
15082
15083 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15084 (INCGNU): ... this, and spell out -I here.
15085 (GNULIB_LIB): Rename to ...
15086 (LIBGNU): ... this.
15087 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15088
1030e047
PA
150892012-04-19 Pedro Alves <palves@redhat.com>
15090
15091 * config.in: Regenerate.
15092
447d4319
PA
150932012-04-19 Pedro Alves <palves@redhat.com>
15094
15095 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15096 * server.h (memmem): Remove declaration.
15097 * config.in: Regenerate.
15098 * configure: Regenerate.
15099
aad9eab9
YQ
151002012-04-19 Yao Qi <yao@codesourcery.com>
15101
15102 * Makefile.in (SFILES): Add common/vec.c.
15103 (OBS): Add vec.o.
15104 (vec.o): New rule.
15105
3e10640f
YQ
151062012-04-19 Yao Qi <yao@codesourcery.com>
15107
15108 * remote-utils.c (prepare_resume_reply): Replace with macro
15109 target_core_of_thread.
15110 * server.c (handle_qxfer_threads_proper): Likewise.
15111 * target.h (traget_core_of_thread): New macro.
15112
71622373
PA
151132012-04-18 Pedro Alves <palves@redhat.com>
15114
15115 * aclocal.m4: Regenerate.
15116 * configure: Regenerate.
15117
80d26939
YQ
151182012-04-16 Yao Qi <yao@codesourcery.com>
15119
15120 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15121 duplicated on address.
15122
42476b70
YQ
151232012-04-16 Yao Qi <yao@codesourcery.com>
15124
15125 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15126 (struct tracepoint_action_ops) <send>: New field.
15127 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15128 (agent_expr_send, x_tracepoint_action_send): New.
15129 (l_tracepoint_action_send): New.
15130 (cmd_qtdp): Download and install tracepoint
15131 according to `use_agent'.
15132 (run_inferior_command): Add one more parameter `len'.
15133 Update callers.
15134 (tracepoint_send_agent): New.
15135 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15136
7bc83639
YQ
151372012-04-16 Yao Qi <yao@codesourcery.com>
15138
15139 * tracepoint.c (download_tracepoints): Moved to ...
15140 (cmd_qtstart): ... here.
15141
5f18041e
YQ
151422012-04-14 Yao Qi <yao@codesourcery.com>
15143
15144 * tracepoint.c: Include inttypes.h.
15145 (struct collect_memory_action): Use sized types.
15146 (struct tracepoint): Likewise.
15147 (cmd_qtdp, stop_tracing): Update print specifiers.
15148 (cmd_qtp, response_tracepoint): Likewise.
15149 (collect_data_at_tracepoint): Likewise.
15150 (collect_data_at_step): Likewise.
15151
55a8c076
YQ
151522012-04-14 Yao Qi <yao@codesourcery.com>
15153
15154 Import gnulib module inttypes.
15155 * aclocal.m4, config.in, configure: Regenerated.
15156
dc750257
YQ
151572012-04-14 Yao Qi <yao@codesourcery.com>
15158
15159 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15160 Makefile and config.status at last.
15161
0ab5faf9
YQ
151622012-04-13 Yao Qi <yao@codesourcery.com>
15163
15164 * tracepoint.c: Include stdint.h unconditionally.
15165
18f5fd81
TJB
151662012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15167
15168 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15169 on BFD_HAVE_SYS_PROCFS_TYPE.
15170 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15171 * configure: Regenerate.
15172 * config.in: Likewise.
15173
4d47af5c
L
151742012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15175
15176 * Makefile.in (clean): Also remove x32.c x32-linux.c
15177 x32-avx.c x32-avx-linux.c.
15178 (x32.o): New target.
15179 (x32.c): Likewise.
15180 (x32-linux.o): Likewise.
15181 (x32-linux.c): Likewise.
15182 (x32-avx.o): Likewise.
15183 (x32-avx.c): Likewise.
15184 (x32-avx-linux.o): Likewise.
15185 (x32-avx-linux.c): Likewise.
15186
15187 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15188 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15189 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15190 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15191 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15192 i386/x32-avx-linux.xml.
15193
15194 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15195 (init_registers_x32_avx_linux): Likwise.
15196 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15197 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15198
ecedbe58
PA
151992012-04-13 Pedro Alves <palves@redhat.com>
15200
15201 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15202 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15203 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15204 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15205 the sub-make.
15206
c92b5177
L
152072012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15208
15209 * linux-x86-low.c (compat_x32_clock_t): New.
15210 (compat_x32_siginfo_t): Likewise.
15211 (compat_x32_siginfo_from_siginfo): Likewise.
15212 (siginfo_from_compat_x32_siginfo): Likewise.
15213 (linux_is_elf64): Likewise.
15214 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15215 and siginfo_from_compat_x32_siginfo for x32.
15216 (x86_arch_setup): Set linux_is_elf64.
15217
214d508e
L
152182012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15219
15220 PR gdb/13969
15221 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15222 e_machine field.
15223 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15224 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15225 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15226 compatible with process.
15227
c9a1864a
YQ
152282012-04-12 Yao Qi <yao@codesourcery.com>
15229
15230 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15231 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15232 (install-only, install-info, clean): Handle sub dir gnulib.
15233 (all-lib, am--refresh): New targets.
15234 (memmem.o): Remove target.
15235 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15236 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15237 (AC_REPLACE_FUNCS): Remove memmem.
15238 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15239 (AC_OUTPUT): Generate Makefile in gnulib/.
15240 * aclocal.m4, config.in, configure: Regenerated.
15241
367ba2c2
MR
152422012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15243
15244 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15245
9d236627
PA
152462012-04-05 Pedro Alves <palves@redhat.com>
15247
15248 -Werror=strict-aliasing
15249
15250 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15251 pointer.
15252
111217b3
PA
152532012-04-04 Pedro Alves <palves@redhat.com>
15254
15255 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15256 (sparc_store_gregset_from_stack, sparc_store_gregset)
15257 (sparc_breakpoint_at): Fix formatting.
15258
8365dcf5
TJB
152592012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15260
15261 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15262 are available.
15263 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15264 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15265 * config.in: Regenerate.
15266 * configure: Likewise.
15267
689cc2ae
PA
152682012-03-29 Pedro Alves <palves@redhat.com>
15269
15270 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15271 Correct ptrace arguments.
15272
c14dfd32
PA
152732012-03-28 Pedro Alves <palves@redhat.com>
15274
15275 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15276 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15277 (IA64_FR1_REGNUM): New defines.
15278 (ia64_fetch_register): New.
15279 (the_low_target): Install it.
15280 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15281 field.
15282 * linux-low.c (linux_fetch_registers): Try the
15283 the_low_target.fetch_register hook first.
15284
15285 * linux-arm-low.c (the_low_target): Adjust.
15286 * linux-bfin-low.c (the_low_target): Adjust.
15287 * linux-cris-low.c (the_low_target): Adjust.
15288 * linux-crisv32-low.c (the_low_target): Adjust.
15289 * linux-m32r-low.c (the_low_target): Adjust.
15290 * linux-m68k-low.c (the_low_target): Adjust.
15291 * linux-mips-low.c (the_low_target): Adjust.
15292 * linux-ppc-low.c (the_low_target): Adjust.
15293 * linux-s390-low.c (the_low_target): Adjust.
15294 * linux-sh-low.c (the_low_target): Adjust.
15295 * linux-sparc-low.c (the_low_target): Adjust.
15296 * linux-tic6x-low.c (the_low_target): Adjust.
15297 * linux-x86-low.c (the_low_target): Adjust.
15298 * linux-xtensa-low.c (the_low_target): Adjust.
15299
63c88e13
PA
153002012-03-26 Pedro Alves <palves@redhat.com>
15301
15302 * server.c (handle_qxfer_libraries): Don't bail early if
15303 the_target->qxfer_libraries_svr4 is not NULL.
15304
fb723180
PA
153052012-03-26 Pedro Alves <palves@redhat.com>
15306
15307 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15308
0afae3cf
PA
153092012-03-23 Pedro Alves <palves@redhat.com>
15310
15311 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15312 "library-list-svr4" element's start tag when the the DSO list is
15313 empty.
15314
485f1ee4
PA
153152012-03-23 Pedro Alves <palves@redhat.com>
15316
15317 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15318 a variable whose type size is the same as the inferior's pointer
15319 size.
15320
a5362b9a
TS
153212012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15322
15323 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15324 struct siginfo.
15325 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15326 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15327 * linux-low.h: Include <signal.h>.
15328 (struct siginfo): Remove forward declaration.
15329 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15330 struct siginfo.
15331
d226c142
MF
153322012-03-21 Mike Frysinger <vapier@gentoo.org>
15333
15334 * .gitignore: Ignore more files.
15335
122f36ef
PA
153362012-03-19 Pedro Alves <palves@redhat.com>
15337 Jan Kratochvil <jan.kratochvil@redhat.com>
15338
15339 * server.c (cont_thread, general_thread): Add describing comments.
15340 (start_inferior): Clear `cont_thread'.
15341 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15342 of a process.
15343
fc3e5175
YQ
153442012-03-15 Yao Qi <yao@codesourcery.com>
15345
15346 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15347 handling to ...
15348 (cmd_qtdp): ... here.
15349
8d0d92cd
YQ
153502012-03-15 Yao Qi <yao@codesourcery.com>
15351
15352 * tracepoint.c (struct tracepoint_action_ops): New.
15353 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15354 (m_tracepoint_action_download): New.
15355 (r_tracepoint_action_download): New.
15356 (x_tracepoint_action_download): New.
15357 (l_tracepoint_action_download): New.
15358 (add_tracepoint_action): Install `action->ops' according type.
15359 (download_tracepoint_1): Move code `download' function pointer
15360 of various tracepoint_action_ops.
15361
87b0bb13
JK
153622012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15363
15364 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15365 linux_ptrace_attach_warnings.
15366
5f572dec
JK
153672012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15368
15369 * Makefile.in (linux-ptrace.o): New.
15370 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15371 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15372 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15373 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15374 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15375 of these targets.
15376 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15377
f4647387
YQ
153782012-03-08 Yao Qi <yao@codesourcery.com>
15379 Pedro Alves <palves@redhat.com>
15380
15381 Fix PR server/13392.
15382 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15383 offset of JMP insn.
15384 * tracepoint.c (remove_tracepoint): New.
15385 (cmd_qtdp): Call remove_tracepoint when failed to install.
15386
9b224c5e
PA
153872012-03-07 Pedro Alves <palves@redhat.com>
15388
15389 * linux-low.c (get_detach_signal): New.
15390 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15391 Pass on pending signals to PTRACE_DETACH. Check the result of the
15392 ptrace call.
15393 * server.c (program_signals, program_signals_p): New.
15394 (handle_general_set): Handle QProgramSignals.
15395 * server.h (program_signals, program_signals_p): Declare.
15396
e237a7e2
JK
153972012-03-05 Pedro Alves <palves@redhat.com>
15398 Jan Kratochvil <jan.kratochvil@redhat.com>
15399
15400 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15401 New comment why.
15402
5808517f
YQ
154032012-03-03 Yao Qi <yao@codesourcery.com>
15404
15405 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15406 agent_look_up_symbols.
15407
58b4daa5
YQ
154082012-03-03 Yao Qi <yao@codesourcery.com>
15409
15410 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15411 (linux-x86-low.o): Likewise.
15412 * server.h: Remove in_process_agent_loaded.
15413 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15414 common/agent.c.
15415 Update callers.
15416
8ffcbaaf
YQ
154172012-03-03 Yao Qi <yao@codesourcery.com>
15418
15419 * tracepoint.c (gdb_agent_capability): New global.
15420 (in_process_agent_loaded_ust): Renamed to
15421 `in_process_agent_supports_ust'.
15422 Update callers.
15423 (in_process_agent_supports_ust): Call agent_capability_check.
15424 (clear_installed_tracepoints): Assert that agent supports
15425 agent.
15426
d1feda86
YQ
154272012-03-03 Yao Qi <yao@codesourcery.com>
15428
15429 * linux-low.c (linux_supports_agent): New.
15430 (linux_target_ops): Initialize field `supports_agent' with
15431 linux_supports_agent.
15432 * target.h (struct target_ops) <supports_agent>: New.
15433 (target_supports_agent): New macro.
15434 * server.c (handle_general_set): Handle packet 'QAgent'.
15435 (handle_query): Send `QAgent+'.
15436 * Makefile.in (server.o): Depends on agent.h.
15437
2fa291ac
YQ
154382012-03-03 Yao Qi <yao@codesourcery.com>
15439
15440 * Makefile.in (OBS): Add agent.o.
15441 Add new rule for agent.o.
15442 Track dependence of tracepoint.c on agent.h.
15443 * tracepoint.c (run_inferior_command_1):
15444 (run_inferior_command): Call agent_run_command.
15445 (gdb_ust_connect_sync_socket): Deleted. Move it to
15446 common/agent.c.
15447 (resume_thread, stop_thread): Likewise.
15448 (gdb_ust_socket_init): Renamed to ...
15449 (gdb_agent_socket_init): ... New.
15450 (gdb_ust_thread): Renamed to ...
15451 (gdb_agent_helper_thread): ... New.
15452 (gdb_ust_init): Move some code to ...
15453 (gdb_agent_init): ... here. New.
15454 [HAVE_UST]: Call gdb_ust_init.
15455 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15456 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15457 * config.in, configure: Regenerated.
15458
05044653
PA
154592012-03-02 Pedro Alves <palves@redhat.com>
15460
15461 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15462 * linux-low.c (struct simple_pid_list): New.
15463 (stopped_pids): New a struct simple_pid_list pointer.
15464 (add_to_pid_list, pull_pid_from_list): New.
15465 (handle_extended_wait): Don't assume the first signal new children
15466 report is SIGSTOP. Adjust call to pull_pid_from_list.
15467 (linux_wait_for_lwp): Adjust.
15468
8d00225b
YQ
154692012-03-02 Yao Qi <yao@codesourcery.com>
15470
15471 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15472 debug log.
15473
19560ba5
YQ
154742012-03-02 Yao Qi <yao@codesourcery.com>
15475
15476 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15477 `stop_pc' and `tpoint'. Update caller.
15478
1faeff08
MR
154792012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15480
15481 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15482 * linux-low.c (use_linux_regsets): New macro.
15483 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15484 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15485 (linux_register_in_regsets): New function.
15486 (usr_fetch_inferior_registers): Skip registers covered by
15487 regsets.
15488 (usr_store_inferior_registers): Likewise.
15489 (usr_fetch_inferior_registers): New macro.
15490 (usr_store_inferior_registers): Likewise.
15491 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15492 (linux_store_registers): Likewise.
15493 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15494 prototype.
15495 (init_registers_mips64_dsp_linux): Likewise.
15496 (init_registers_mips_linux): New macro.
15497 (init_registers_mips_dsp_linux): Likewise.
15498 (mips_dsp_num_regs): Likewise.
15499 (DSP_BASE, DSP_CONTROL): New fallback macros.
15500 (mips_base_regs): New macro.
15501 (mips_regmap): Use it. Fix the size.
15502 (mips_dsp_regmap): New variable.
15503 (mips_dsp_regset_bitmap): Likewise.
15504 (mips_arch_setup): New function.
15505 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15506 than mips_regmap.
15507 (mips_cannot_store_register): Likewise.
15508 (the_low_target): Update .arch_setup, .num_regs and .regmap
15509 initializers. Add .regset_bitmap initializer.
15510 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15511 initializer.
15512 * linux-bfin-low.c (the_low_target): Likewise.
15513 * linux-cris-low.c (the_low_target): Likewise.
15514 * linux-crisv32-low.c (the_low_target): Likewise.
15515 * linux-ia64-low.c (the_low_target): Likewise.
15516 * linux-m32r-low.c (the_low_target): Likewise.
15517 * linux-m68k-low.c (the_low_target): Likewise.
15518 * linux-ppc-low.c (the_low_target): Likewise.
15519 * linux-s390-low.c (the_low_target): Likewise.
15520 * linux-sh-low.c (the_low_target): Likewise.
15521 * linux-sparc-low.c (the_low_target): Likewise.
15522 * linux-tic6x-low.c (the_low_target): Likewise.
15523 * linux-x86-low.c (the_low_target): Likewise.
15524 * linux-xtensa-low.c (the_low_target): Likewise.
15525 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15526 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15527 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15528 srv_xmlfiles.
15529 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15530 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15531
c03e6ccc
YQ
155322012-02-29 Yao Qi <yao@codesourcery.com>
15533 Pedro Alves <palves@redhat.com>
15534
15535 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15536 `step_over_finished' is true.
15537
644cebc9
PA
155382012-02-27 Pedro Alves <palves@redhat.com>
15539
15540 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15541 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15542
c14d7ab2
PA
155432012-02-27 Pedro Alves <palves@redhat.com>
15544
15545 PR server/9684
15546 * linux-low.c (pid_is_stopped): New.
15547 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15548
412c89dd
LM
155492012-02-25 Luis Machado <lgustavo@codesourcery.com>
15550
15551 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15552 of conditions.
15553
b745defe
MR
155542012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15555
15556 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15557
9f3a5c85
LM
155582012-02-24 Luis Machado <lgustavo@codesourcery>
15559
15560 * server.c (handle_query): Advertise support for target-side
15561 breakpoint condition evaluation.
15562 (process_point_options): New function.
15563 (process_serial_event): When inserting a breakpoint, check for
15564 a target-side condition that should be evaluated.
15565
15566 * mem-break.c: Include regcache.h and ax.h.
15567 (point_cond_list_t): New data structure.
15568 (breakpoint) <cond_list>: New field.
15569 (find_gdb_breakpoint_at): Make non-static.
15570 (delete_gdb_breakpoint_at): Clear any target-side
15571 conditions.
15572 (clear_gdb_breakpoint_conditions): New function.
15573 (add_condition_to_breakpoint): Likewise.
15574 (add_breakpoint_condition): Likewise.
15575 (gdb_condition_true_at_breakpoint): Likewise.
15576 (gdb_breakpoint_here): Return result directly instead
15577 of going through a local variable.
15578
15579 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15580 (clear_gdb_breakpoint_conditions): Likewise.
15581 (add_breakpoint_condition): Likewise.
15582 (gdb_condition_true_at_breakpoint): Likewise.
15583
15584 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15585 (need_step_over_p): Take target-side breakpoint condition into
15586 consideration.
15587
5e1dc496
LM
155882012-02-24 Luis Machado <lgustavo@codesourcery>
15589
15590 * server.h: Include tracepoint.h.
15591 (agent_mem_read, agent_get_trace_state_variable_value,
15592 agent_set_trace_state_variable_value,
15593 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15594 get_set_tsv_func_addr): New prototypes.
15595
15596 * ax.h: New include file.
15597 * ax.c: New source file.
15598
15599 * tracepoint.c: Include ax.h.
15600 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15601 agent_expr, eval_result_type): Move to ax.h.
15602 (parse_agent_expr): Rename to ...
15603 (gdb_parse_agent_expr): ... this, make it non-static and move
15604 to ax.h.
15605 (unparse_agent_expr) Rename to ...
15606 (gdb_unparse_agent_expr): ... this, make it non-static and move
15607 to ax.h.
15608 (eval_agent_expr): Rename to ...
15609 (eval_tracepoint_agent_expr): ... this.
15610 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15611 forward declarations.
15612 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15613 (agent_get_trace_state_variable_value): New function.
15614 (agent_set_trace_state_variable_value): New function.
15615 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15616 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15617 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15618 (condition_true_at_tracepoint): Likewise.
15619 (parse_agent_expr): Rename to ...
15620 (gdb_parse_agent_expr): ... this and move to ax.c.
15621 (unparse_agent_expr): Rename to ...
15622 (gdb_unparse_agent_expr): ... this and move to ax.c.
15623 (gdb_agent_op_name): Move to ax.c.
15624 (eval_agent_expr): Rename to ...
15625 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15626 and move to ax.c.
15627 (eval_tracepoint_agent_expr): New function.
15628 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15629 non-static.
5e1dc496
LM
15630 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15631 ax.c.
15632 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15633 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15634 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15635 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15636 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15637 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15638 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15639 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15640 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15641 (compile_bytecodes): Remove forward declaration.
15642 (is_goto_target): Move to ax.c.
15643 (compile_bytecodes): Move to ax.c and call
15644 agent_get_trace_state_variable_value (...) and
15645 agent_set_trace_state_variable_value (...).
15646
15647 * Makefile.in: Update ax.c and IPA dependencies.
15648
277e4e52
PA
156492012-02-24 Pedro Alves <palves@redhat.com>
15650
15651 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15652 (cmd_bigqtbuffer_circular): ... this. Only handle
15653 'QTBuffer:circular:'.
15654 (handle_tracepoint_general_set): Adjust.
15655
bf4c19f7
YQ
156562012-02-16 Yao Qi <yao@codesourcery.com>
15657
15658 * inferiors.c: Move code to ...
15659 * dll.c: .... here. New.
15660 * server.h: Declare clear_dlls.
15661 * Makefile.in (SFILES): Add dll.c.
15662 (OBS): Add dll.o
15663 (dll.o): New rule.
15664
d73f2619
YQ
156652012-02-11 Yao Qi <yao@codesourcery.com>
15666
15667 * server.c: (handle_monitor_command): Add a new parameter
15668 `own_buf'.
15669 (handle_query): Update caller.
15670
f8255c2a
JB
156712012-02-09 Joel Brobecker <brobecker@adacore.com>
15672
15673 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15674 * configure, config.in: Regenerate.
15675 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15676 is not defined.
15677
da84f473
PA
156782012-02-02 Pedro Alves <palves@redhat.com>
15679
15680 Try SIGKILL first, then PTRACE_KILL.
15681 * linux-low.c (linux_kill_one_lwp): New.
15682 (linux_kill_one_lwp): Rename to ...
15683 (kill_one_lwp_callback): ... this. Use the new
15684 linux_kill_one_lwp.
15685
e886a173
PA
156862012-02-02 Pedro Alves <palves@redhat.com>
15687
15688 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15689 inferior.
15690
be07f1a2
PA
156912012-01-27 Pedro Alves <palves@redhat.com>
15692
15693 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15694 (elf_64_file_p): Make static.
15695 (linux_pid_exe_is_elf_64_file): New.
15696 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15697 Delete declarations.
15698 (linux_pid_exe_is_elf_64_file): Declare.
15699 * linux-x86-low.c (x86_arch_setup): Use
15700 linux_pid_exe_is_elf_64_file.
15701
d8301ad1
JK
157022012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15703
15704 * linux-low.c (linux_wait_for_event_1): Rename to ...
15705 (linux_wait_for_event): ... here and merge it with former
15706 linux_wait_for_event - new variable wait_ptid, use it.
15707 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15708
01b17894
PA
157092012-01-23 Pedro Alves <palves@redhat.com>
15710
15711 * server.c (main): Avoid yet another case of infinite loop while
15712 detaching/killing after a longjmp.
15713
e825046f
JK
157142012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15715
15716 Code cleanup.
15717 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15718
b9e7b9c3
UW
157192012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15720
15721 * hostio.c (handle_readlink): New function.
15722 (handle_vFile): Call it to handle "vFile:readlink" packets.
15723
901f9912
UW
157242012-01-20 Pedro Alves <palves@redhat.com>
15725 Ulrich Weigand <ulrich.weigand@linaro.org>
15726
15727 * server.c (handle_v_requests): Only support vAttach and vRun to
15728 start multiple processes when in extended protocol mode.
15729
fc1ab1a0
PA
157302012-01-17 Pedro Alves <palves@redhat.com>
15731
15732 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15733 memalign plus mprotect to allocate the scratch buffer.
15734
7d5d4e98
PA
157352012-01-13 Pedro Alves <palves@redhat.com>
15736
15737 * server.c (attach_inferior): Clear `cont_thread'.
15738
f128d5e9
PA
157392012-01-13 Pedro Alves <palves@redhat.com>
15740
15741 * server.c (main): Avoid infinite loop while detaching/killing
15742 after a longjmp.
15743
06db92f0
DE
157442012-01-09 Doug Evans <dje@google.com>
15745
15746 * server.c (start_inferior): Set last_ptid in --wrapper case.
15747
32d92999
YQ
157482012-01-06 Yao Qi <yao@codesourcery.com>
15749
15750 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15751 defined.
15752 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15753
5e0a92a9
YQ
157542012-01-04 Yao Qi <yao@codesourcery.com>
15755
15756 * tracepoint.c (cmd_qtdp): Print debug message
15757 for static tracepoint.
15758
ae639e8c
YQ
157592012-01-04 Yao Qi <yao@codesourcery.com>
15760
15761 * tracepoint.c (trace_vdebug): Differentiate debug message
15762 between gdbserver and IPA.
15763
f72429c5
YQ
157642012-01-03 Yao Qi <yao@codesourcery.com>
15765
15766 * tracepoint.c (tracepoint_was_hit): Don't collect for
15767 static tracepoint.
15768
12c3e59c
JB
157692012-01-02 Joel Brobecker <brobecker@adacore.com>
15770
15771 * terminal.h: Reformat copyright header.
15772
67827812
JB
157732012-01-02 Joel Brobecker <brobecker@adacore.com>
15774
15775 * server.c (gdbserver_version): Update copyright year.
15776 * gdbreplay.c (gdbreplay_version): Likewise.
15777
3e52c33d
JK
157782011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15779
15780 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15781
15782 Revert:
15783 2011-12-18 Hui Zhu <teawater@gmail.com>
15784 * linux-low.c (linux_create_inferior): Save return value to ret.
15785
66f1260e
HZ
157862011-12-18 Hui Zhu <teawater@gmail.com>
15787
15788 * linux-low.c (linux_create_inferior): Save return value to ret.
15789
e77616d7
DE
157902011-12-16 Doug Evans <dje@google.com>
15791
e7b06c57
DE
15792 * linux-low.c (linux_create_inferior): If stdio connection,
15793 redirect stdin from /dev/null, stdout to stderr.
15794 * remote-utils.c (remote_is_stdio): New static global.
15795 (remote_connection_is_stdio): New function.
15796 (remote_prepare): Handle stdio connection.
15797 (remote_open): Ditto.
15798 (remote_close): Don't close stdin for stdio connections.
15799 (read_prim,write_prim): New functions. Replace all calls to
15800 read/write to these.
15801 * server.c (main): Watch for "-" argument. Move call to
15802 remote_prepare before start_inferior.
15803 * server.h (STDIO_CONNECTION_NAME): New macro.
15804 (remote_connection_is_stdio): Declare.
15805
e77616d7
DE
15806 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15807 in debugging output.
15808
82067193
YQ
158092011-12-15 Yao Qi <yao@codesourcery.com>
15810
15811 * tracepoint.c: Include sys/syscall.h.
15812 (gdb_ust_thread): Remove preprocessor conditional.
15813
82bfbe7e
PA
158142011-12-14 Pedro Alves <pedro@codesourcery.com>
15815
15816 * linux-low.c (linux_detach_one_lwp): Call
15817 the_low_target.prepare_to_resume before detaching.
15818
712c6575
YQ
158192011-12-14 Yao Qi <yao@codesourcery.com>
15820
15821 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15822 of write.
15823
d54d1edf
YQ
158242011-12-14 Yao Qi <yao@codesourcery.com>
15825
15826 * i386-low.c (i386_low_stopped_data_address): Initialize local
15827 variable `control'.
15828
6210a125
PA
158292011-12-13 Pedro Alves <pedro@codesourcery.com>
15830
15831 PR remote/13492
15832
15833 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15834 DR_CONTROL unless necessary. Extend comments.
15835 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15836 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15837
2ece8244
YQ
158382011-12-13 Yao Qi <yao@codesourcery.com>
15839
15840 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15841 macros.
15842 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15843
784867a5
JK
158442011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15845
15846 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15847 Print new debug message for such case.
15848
6bf36717
JK
158492011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15850
15851 Fix overlapping memcpy.
15852 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15853 the read_inferior_memory transfer.
15854 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15855 write_inferior_memory transfer.
15856 (set_fast_tracepoint_jump): New variable buf. Use it for the
15857 read_inferior_memory and write_inferior_memory transfers.
15858 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15859 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15860 Use it for the write_inferior_memory transfer.
15861 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15862 buffers.
15863
50275556
MR
158642011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15865
15866 * linux-low.c (fetch_register, store_register): Make code
15867 consistent, fix formatting.
15868
7325beb4
MR
158692011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15870
15871 * linux-low.c (usr_store_inferior_registers): Factor out code
15872 to handle individual registers into...
15873 (store_register): ... this new function.
15874
c642a434
UW
158752011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15876
15877 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15878 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15879 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15880 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15881 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15882 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15883 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15884 (srv_xmlfiles): Add new XML files.
15885
15886 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15887 and <sys/uio.h>.
15888 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15889 (init_registers_s390_linux32v1): Add prototype.
15890 (init_registers_s390_linux32v2): Likewise.
15891 (init_registers_s390_linux64v1): Likewise.
15892 (init_registers_s390_linux64v2): Likewise.
15893 (init_registers_s390x_linux64v1): Likewise.
15894 (init_registers_s390x_linux64v2): Likewise.
15895 (s390_num_regs): Increment to 52.
15896 (s390_regmap): Add orig_r2 register.
15897 (s390_num_regs_3264): Increment to 68.
15898 (s390_regmap_3264): Add orig_r2 register.
15899 (s390_collect_ptrace_register): Handle orig_r2 register.
15900 (s390_supply_ptrace_register): Likewise.
15901 (s390_fill_last_break): New function.
15902 (s390_store_last_break): Likewise.
15903 (s390_fill_system_call): New function.
15904 (s390_store_system_call): Likewise.
15905 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15906 register sets.
15907 (s390_check_regset): New function.
15908 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15909 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15910 Update target_regsets for available register sets.
15911
2268b414
JK
159122011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15913 Jan Kratochvil <jan.kratochvil@redhat.com>
15914
15915 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15916 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15917 New.
15918 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15919 * linux-low.h (struct process_info_private): New member r_debug.
15920 * server.c (handle_qxfer_libraries): Call
15921 the_target->qxfer_libraries_svr4.
15922 (handle_qxfer_libraries_svr4): New function.
15923 (qxfer_packets): New entry "libraries-svr4".
15924 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15925 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15926 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15927 PACKET_qXfer_libraries_svr4.
15928
d6db1fab
UW
159292011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15930
15931 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15932 PSW address/mask between 8-byte and 16-byte formats.
15933 (s390_supply_ptrace_register): Likewise.
15934 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15935 basic addressing mode bit.
15936
242f5f1c
SS
159372011-11-24 Stan Shebs <stan@codesourcery.com>
15938
15939 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15940
f196051f
SS
159412011-11-17 Stan Shebs <stan@codesourcery.com>
15942
15943 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15944 (tracing_start_time): New global.
15945 (tracing_stop_time): New global.
15946 (tracing_user_name): New global.
15947 (tracing_notes): New global.
15948 (tracing_stop_note): New global.
15949 (cmd_qtstart): Set traceframe_usage, start_time.
15950 (stop_tracing): Set stop_time.
15951 (cmd_qtstatus): Report additional status.
15952 (cmd_qtp): New function.
15953 (handle_tracepoint_query): Call it.
15954 (cmd_qtnotes): New function.
15955 (handle_tracepoint_general_set): Call it.
15956 (get_timestamp): Rename from tsv_get_timestamp.
15957
405f8e94
SS
159582011-11-14 Stan Shebs <stan@codesourcery.com>
15959 Kwok Cheung Yeung <kcy@codesourcery.com>
15960
15961 * linux-x86-low.c (small_jump_insn): New.
15962 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15963 trampoline and error message, build a trampoline and issue a small
15964 jump instruction to it.
15965 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15966 trampoline and error message.
15967 (x86_get_min_fast_tracepoint_insn_len): New.
15968 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15969 * linux-low.h (struct linux_target_ops): Add arguments to
15970 install_fast_tracepoint_jump_pad operation, add new operation.
15971 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15972 arguments.
15973 (linux_get_min_fast_tracepoint_insn_len): New function.
15974 (linux_target_op): Add new operation.
15975 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15976 (gdb_trampoline_buffer_end): Ditto.
15977 (gdb_trampoline_buffer_error): Ditto.
15978 (struct ipa_sym_addresses): Add fields for new IPA variables.
15979 (symbol_list): Add entries for new IPA variables.
15980 (struct tracepoint): Add fields to hold the address range of the
15981 trampoline used by the tracepoint.
15982 (trampoline_buffer_head): New static variable.
15983 (trampoline_buffer_tail): Ditto.
15984 (claim_trampoline_space): New function.
15985 (have_fast_tracepoint_trampoline_buffer): New function.
15986 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15987 structure.
15988 (install_fast_tracepoint): Ditto, also add error buffer argument.
15989 (cmd_qtminftpilen): New function.
15990 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15991 (fast_tracepoint_from_trampoline_address): New function.
15992 (fast_tracepoint_collecting): Handle trampoline as part of jump
15993 pad space.
15994 (set_trampoline_buffer_space): New function.
15995 (initialize_tracepoint): Initialize new IPA variables.
15996 * target.h (struct target_ops): Add arguments to
15997 install_fast_tracepoint_jump_pad operation, add new
15998 get_min_fast_tracepoint_insn_len operation.
15999 (target_get_min_fast_tracepoint_insn_len): New.
16000 (install_fast_tracepoint_jump_pad): Add arguments.
16001 * server.h (IPA_BUFSIZ): Define.
16002 * linux-i386-ipa.c: Include extra header files.
16003 (initialize_fast_tracepoint_trampoline_buffer): New function.
16004 (initialize_low_tracepoint): Call it.
16005 * server.h (set_trampoline_buffer_space): Declare.
16006 (claim_trampoline_space): Ditto.
16007 (have_fast_tracepoint_trampoline_buffer): Ditto.
16008
1e4d1764
YQ
160092011-11-14 Yao Qi <yao@codesourcery.com>
16010
16011 * server.c (handle_query): Handle InstallInTrace for qSupported.
16012 * tracepoint.c (add_tracepoint): Sort list.
16013 (install_tracepoint, download_tracepoint): New.
16014 (cmd_qtdp): Call them to install and download tracepoints.
16015 (sort_tracepoints): Removed.
16016 (cmd_qtstart): Update.
16017
5c73ff4e
YQ
160182011-11-14 Yao Qi <yao@codesourcery.com>
16019
16020 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16021 * mem-break.h: Declare.
16022 * tracepoint.c (cmd_qtstart): Move some code to ...
16023 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16024 New.
16025 (download_tracepoints): Move some code to ...
16026 (download_tracepoint_1): ... here. New.
16027
86a30030
YQ
160282011-11-08 Yao Qi <yao@codesourcery.com>
16029
16030 * remote-utils.c (relocate_instruction): A comment fix.
16031
8d26e50c
JB
160322011-11-07 Joel Brobecker <brobecker@adacore.com>
16033
16034 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16035 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16036 dr_status_mirror and dr_control_mirror from debug_reg_state.
16037 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16038 (i386_initial_stuff): Remove use of deleted globals.
16039 (i386_get_thread_context, i386_set_thread_context,
16040 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16041 from debug_reg_state.
16042
a59306a3
YQ
160432011-11-05 Yao Qi <yao@codesourcery.com>
16044
16045 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16046 address as TPOINT's.
16047
3065dfb6
SS
160482011-11-02 Stan Shebs <stan@codesourcery.com>
16049
16050 * tracepoint.c (agent_mem_read_string): New function.
16051 (eval_agent_expr): Call it for tracenz.
16052 * server.c (handle_query): Report support for tracenz.
16053
fd0d8c7c
YQ
160542011-11-02 Yao Qi <yao@codesourcery.com>
16055
16056 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16057
609086b1
YQ
160582011-11-02 Yao Qi <yao@codesourcery.com>
16059
16060 * target.h: Fix a typo in comment.
16061
b9fd1791
PA
160622011-10-31 Pedro Alves <pedro@codesourcery.com>
16063
16064 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16065 clobber the breakpoints' shadows with fast tracepoint jumps.
16066 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16067 * target.c (write_inferior_memory): Also pass MYADDR down to
16068 check_mem_write.
16069
03583c20
UW
160702011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16071
16072 * configure.ac: Check support for personality routine.
16073 * configure: Regenerate.
16074 * config.in: Likewise.
16075 * linux-low.c: Include <sys/personality.h>.
16076 Define ADDR_NO_RANDOMIZE if necessary.
16077 (linux_create_inferior): Disable address space randomization when
16078 forking inferior, if requested.
16079 (linux_supports_disable_randomization): New function.
16080 (linux_target_ops): Install it.
16081 * server.h (disable_randomization): Declare.
16082 * server.c (disable_randomization): New global variable.
16083 (handle_general_set): Handle QDisableRandomization.
16084 (handle_query): Likewise for qSupported.
16085 (main): Support --disable-randomization and --no-disable-randomization
16086 command line arguments.
16087 * target.h (struct target_ops): Add supports_disable_randomization.
16088 (target_supports_disable_randomization): New macro.
16089
723b724b
MF
160902011-09-29 Mike Frysinger <vapier@gentoo.org>
16091
16092 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16093 ifdef check.
16094 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16095 [!PT_GETDSBT] (target_loadmap): New definition.
16096 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16097 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16098 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16099 and PT_GETDSBT to LINUX_LOADMAP.
16100 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16101 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16102
55329a5c 161032011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16104
16105 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16106 (arm_linux_hwbp_cap): New static variable.
16107 (arm_linux_get_hwbp_cap): Replace by ...
16108 (arm_linux_init_hwbp_cap): ... this new function.
16109 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16110 (arm_linux_get_hw_watchpoint_count): Likewise.
16111 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16112 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16113 (arm_prepare_to_resume): Use perror_with_name instead of error.
16114
55329a5c 161152011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16116
16117 * linux-arm-low.c: Include <signal.h>.
16118 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16119 (struct arm_linux_hwbp_cap): New data type.
16120 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16121 (struct arm_linux_hw_breakpoint): New data type.
16122 (MAX_BPTS, MAX_WPTS): Define.
16123 (struct arch_process_info, struct arch_lwp_info): New data types.
16124 (arm_linux_get_hwbp_cap): New function.
16125 (arm_linux_get_hw_breakpoint_count): Likewise.
16126 (arm_linux_get_hw_watchpoint_count): Likewise.
16127 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16128 (arm_hwbp_control_initialize): Likewise.
16129 (arm_hwbp_control_is_enabled): Likewise.
16130 (arm_hwbp_control_is_initialized): Likewise.
16131 (arm_hwbp_control_disable): Likewise.
16132 (arm_linux_hw_breakpoint_equal): Likewise.
16133 (arm_linux_hw_point_initialize): Likewise.
16134 (struct update_registers_data): New data structure.
16135 (update_registers_callback: New function.
16136 (arm_insert_point): Likewise.
16137 (arm_remove_point): Likewise.
16138 (arm_stopped_by_watchpoint): Likewise.
16139 (arm_stopped_data_address): Likewise.
16140 (arm_new_process): Likewise.
16141 (arm_new_thread): Likewise.
16142 (arm_prepare_to_resume): Likewise.
16143 (the_low_target): Register arm_insert_point, arm_remove_point,
16144 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16145 arm_new_thread, and arm_prepare_to_resume.
16146
6b9801d4
SS
161472011-09-15 Stan Shebs <stan@codesourcery.com>
16148
16149 * server.h (struct emit_ops): Add compare-goto fields.
16150 * tracepoint.c (gdb_agent_op_sizes): New table.
16151 (emit_eq_goto): New function.
16152 (emit_ne_goto): New function.
16153 (emit_lt_goto): New function.
16154 (emit_le_goto): New function.
16155 (emit_gt_goto): New function.
16156 (emit_ge_goto): New function.
16157 (is_goto_target): New function.
16158 (compile_bytecodes): Recognize special cases of compare-goto
16159 combinations and call specialized emitters for them.
16160 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16161 (amd64_emit_ne_goto): New function.
16162 (amd64_emit_lt_goto): New function.
16163 (amd64_emit_le_goto): New function.
16164 (amd64_emit_gt_goto): New function.
16165 (amd64_emit_ge_goto): New function.
16166 (amd64_emit_ops): Add the new functions.
16167 (i386_emit_eq_goto): New function.
16168 (i386_emit_ne_goto): New function.
16169 (i386_emit_lt_goto): New function.
16170 (i386_emit_le_goto): New function.
16171 (i386_emit_gt_goto): New function.
16172 (i386_emit_ge_goto): New function.
16173 (i386_emit_ops): Add the new functions.
16174
bf15cbda
SS
161752011-09-08 Stan Shebs <stan@codesourcery.com>
16176
16177 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16178 (i386_emit_epilogue): Restore %ebx.
16179
943ca1dd
JZ
161802011-08-31 Jie Zhang <jzhang918@gmail.com>
16181
16182 * server.c (step_thread): Remove definition.
16183 (process_serial_event): Don't handle Hs.
16184 * server.h (step_thread): Remove declaration.
16185 * target.c (set_desired_inferior): Remove use of step_thread.
16186
e3deef73
LM
161872011-08-24 Luis Machado <lgustavo@codesourcery.com>
16188
16189 * linux-low.c: Include linux-procfs.h.
16190 (linux_attach_lwp_1): Update comments.
16191 (linux_attach): Scan for existing threads when attaching to a
16192 process that is the tgid.
16193 * Makefile.in: Update dependencies.
16194
13da1c97
LM
161952011-08-24 Luis Machado <lgustavo@codesourcery.com>
16196
16197 * configure.srv: Add linux-procfs.o dependencies.
16198
881127c9
YQ
161992011-08-14 Yao Qi <yao@codesourcery.com>
16200
16201 * target.h (struct target_ops): Fix indent.
16202 * win32-low.c (win32_target_ops): Fix comment.
16203
58dbd541
YQ
162042011-08-14 Andrew Jenner <andrew@codesourcery.com>
16205 Yao Qi <yao@codesourcery.com>
16206
16207 * Makefile.in (clean): Remove tic6x-*.c files.
16208 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16209 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16210 (tic6x-c64xp-linux.c): Likewise.
16211 * configure.srv: Add support for tic6x-*-uclinux.
16212 * linux-tic6x-low.c: New.
16213 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16214
78d85199
YQ
162152011-08-14 Andrew Stubbs <ams@codesourcery.com>
16216 Yao Qi <yao@codesourcery.com>
16217
16218 * target.h (struct target_ops): Add read_loadmap.
16219 * linux-low.c (struct target_loadseg): New type.
16220 (struct target_loadmap): New type.
16221 (linux_read_loadmap): New function.
16222 (linux_target_ops): Add linux_read_loadmap.
16223 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16224 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16225 to NULL.
78d85199 16226
a959a88d
EZ
162272011-08-05 Eli Zaretskii <eliz@gnu.org>
16228
16229 * win32-low.c: Include <stdint.h>.
16230
1ced966e
PA
162312011-07-22 Pedro Alves <pedro@codesourcery.com>
16232
16233 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16234 to the inferior here.
16235 (i386_remove_aligned_watchpoint): Ditto.
16236 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16237 fit part of the watchpoint in the debug registers.
16238 (i386_update_inferior_debug_regs): New.
16239 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16240 registers, and only update the inferior on success.
16241 (i386_low_remove_watchpoint): Ditto.
16242
d26e3629
KY
162432011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16244
16245 * linux-low.c (compare_ints, unique, list_threads, show_process,
16246 linux_core_of_thread): Delete.
16247 (linux_target_ops): Change linux_core_of_thread to
16248 linux_common_core_of_thread.
16249 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16250 * utils.c (malloc_failure): Change type of argument.
16251 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16252 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16253 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16254 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16255 (IPA_OBJS): Add common-utils-ipa.o.
16256 (ptid_h, linux_osdata_h): New macros.
16257 (server_h): Add common/common-utils.h, common/xml-utils.h,
16258 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16259 common/ptid.h.
16260 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16261 ptid.o, buffer.o): New rules.
16262 (linux-low.o): Add common/linux-osdata.h as a dependency.
16263 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16264 * configure.ac: Add AC_HEADER_DIRENT check.
16265 * config.in: Regenerate.
16266 * configure: Regenerate.
16267 * remote-utils.c (xml_escape_text): Delete.
16268 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16269 buffer_xml_printf): Move to common/buffer.c.
16270 * server.c (main): Remove call to initialize_inferiors.
16271 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16272 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16273 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16274 internal_error, gdb_assert, gdb_assert_fail): Delete.
16275 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16276 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16277 common/buffer.h.
16278 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16279 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16280 initialize_inferiors): Delete.
16281
2275a1a7
PA
162822011-07-20 Pedro Alves <pedro@codesourcery.com>
16283
16284 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16285 symbol error.
16286
0a5b1e09
PA
162872011-05-31 Pedro Alves <pedro@codesourcery.com>
16288
16289 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16290 assertion.
16291 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16292
6938fd34
YQ
162932011-05-26 Yao Qi <yao@codesourcery.com>
16294
16295 * Makefile.in (thread-db.o): Track dependence to
16296 common/gdb_thread_db.h.
16297 * thread-db.c: include gdb_thread_db.h from right place.
16298
b481f9e0
TT
162992011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16300
16301 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16302 __FILE__ and __LINE__ to internal_error.
16303
98a5dd13
DE
163042011-05-13 Doug Evans <dje@google.com>
16305
16306 * thread-db.c (try_thread_db_load_from_sdir): New function.
16307 (try_thread_db_load_from_dir): New function.
16308 (thread_db_load_search): Handle $sdir, ignore $pdir.
16309 Remove trying of system directories if search of
16310 libthread-db-search-path fails, that is now done via $sdir.
16311
d248b706
KY
163122011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16313
16314 * server.c (handle_query): Add EnableDisableTracepoints to the list
16315 of supported features.
43aaf8b6 16316 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16317 tracepoints.
43aaf8b6
PA
16318 (cmd_qtenable_disable): New.
16319 (cmd_qtstart): Install tracepoints even if disabled.
16320 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16321 receiving a QTEnable or QTDisable packet.
16322 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16323 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16324 tracepoints.
16325 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16326
84e578fb
DE
163272011-05-10 Doug Evans <dje@google.com>
16328
16329 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16330
71f55dd8
DE
163312011-05-04 Doug Evans <dje@google.com>
16332
16333 * linux-low.c (linux_join): Skip process lookup.
16334 * spu-low.c (spu_join): Ditto.
16335 * server.c (join_inferiors_callback): Delete.
16336 (process_serial_event): For 'D' packet (detach) call join_inferior
16337 directly.
16338
4d393d60
JM
163392011-05-04 Joseph Myers <joseph@codesourcery.com>
16340
16341 * README: Don't mention xscale*-*-linux*.
16342 * configure.srv (xscale*-*-linux*): Don't handle target.
16343
b00ad6ff
NF
163442011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16345
16346 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16347 casting pointers.
16348 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16349 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16350 (i386_emit_void_call_2): Likewise.
16351
af96c192
YQ
163522011-04-26 Yao Qi <yao@codesourcery.com>
16353
43aaf8b6
PA
16354 * linux-low.c: Move common macros to linux-ptrace.h.
16355 Include linux-ptrace.h.
af96c192
YQ
16356 * Makefile.in (linux_ptrace_h): New.
16357 (linux-low.o): Depends on linux-ptrace.h.
16358
03f2bd59
JK
163592011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16360
16361 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16362 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16363 (remote_prepare): New function with most of the TCP code from ...
16364 (remote_open): ... here. Detect PORT here unconditionally. Move also
16365 setting transport_is_reliable.
16366 * server.c (run_once): New variable.
16367 (gdbserver_usage): Document it.
16368 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16369 the first run if RUN_ONCE.
16370 * server.h (run_once, remote_prepare): New declarations.
16371
7a9dd1b2
TT
163722011-04-19 Tom Tromey <tromey@redhat.com>
16373
16374 * win32-low.c (handle_load_dll): Remove duplicate "the".
16375
81239425
PM
163762011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16377
16378 Remove support for old Cygwin 1.5 versions.
16379 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16380 function to avoid warning.
16381 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16382 warning.
16383
9e0627f1
PM
163842011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16385
16386 * gdbserver/server.h (Macro _): Define it if not available.
16387
588eebee
MS
163882011-03-14 Michael Snyder <msnyder@vmware.com>
16389
348af9f7 16390 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16391
43f70d4c
JB
163922011-03-10 Joel Brobecker <brobecker@adacore.com>
16393
16394 * Makefile.in (maintainer-clean realclean distclean): Remove
16395 "make ... subdir_do" command.
16396
348af9f7
MS
163972011-03-10 Michael Snyder <msnyder@vmware.com>
16398
16399 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16400
16401 * server.c (handle_v_run): Free alloced buffer on early return.
16402
e637a4f5
YQ
164032011-03-09 Yao Qi <yao@codesourcery.com>
16404
16405 Revert:
16406 2011-03-04 Yao Qi <yao@codesourcery.com>
16407
16408 * Makefile.in: Remove GNU make feature --directory.
16409
16410 2011-03-05 Yao Qi <yao@codesourcery.com>
16411
16412 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16413 (subdir_do): New make target. Copied from gdb/Makefile.
16414 (maintainer-clean, realclean, distclean, clean): Call corresponding
16415 make targets in common/Makefile.
16416
16417 2011-02-11 Yao Qi <yao@codesourcery.com>
16418
16419 * configure.ac: Call AC_PROG_RANLIB.
16420 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16421 * configure: Regenerate.
16422
e6edda56
JK
164232011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16424
16425 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16426
e5141119
JB
164272011-03-06 Yao Qi <yao@codesourcery.com>
16428
16429 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16430
64794aa4
JB
164312011-03-05 Yao Qi <yao@codesourcery.com>
16432
16433 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16434 (subdir_do): New make target. Copied from gdb/Makefile.
16435 (maintainer-clean, realclean, distclean, clean): Call corresponding
16436 make targets in common/Makefile.
16437
7a762829
YQ
164382011-03-04 Yao Qi <yao@codesourcery.com>
16439
16440 * Makefile.in: Remove GNU make feature --directory.
16441
348af9f7
MS
164422011-03-04 Michael Snyder <msnyder@vmware.com>
16443
16444 * server.c (queue_stop_reply): Call xmalloc not malloc.
16445
164462011-03-02 Michael Snyder <msnyder@vmware.com>
16447
16448 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16449
9f72fee2
MS
164502011-02-28 Michael Snyder <msnyder@vmware.com>
16451
588eebee
MS
16452 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16453 (cmd_qtframe): Ditto.
16454 (cmd_qtbuffer): Ditto.
16455 (cmd_bigqtbuffer): Ditto.
16456
9f72fee2
MS
16457 * utils.c (decimal2str): Initialize 'width' to nine, then
16458 don't mess with it.
16459
8040bd49
UW
164602011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16461
16462 * hostio.c (require_data): Free *data, not data.
16463
7e52cbd0
JK
164642011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16465
16466 * hostio.c (require_data): Use free, not xfree.
16467
9130f83e
MS
164682011-02-27 Michael Snyder <msnyder@vmware.com>
16469
4b812f4e
MS
16470 * server.c (handle_query): Discard unused value.
16471
9130f83e
MS
16472 * hostio.c (require_data): Free malloc memory before returning
16473 error.
16474
69d37113
MS
164752011-02-26 Michael Snyder <msnyder@vmware.com>
16476
16477 * linux-low.c (list_threads): Call closedir for dirent.
16478
35f5825a
MS
164792011-02-27 Michael Snyder <msnyder@vmware.com>
16480
2a589cef
MS
16481 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16482 a case statement falls through.
16483
0adea5f7
MS
16484 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16485
35f5825a
MS
16486 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16487 in comparison.
16488
238f1c74
MS
164892011-02-26 Michael Snyder <msnyder@vmware.com>
16490
16491 * utils.c (decimal2str): Eliminate dead code and dead param.
16492 (pulongest): Drop dead param from call to decimal2str.
16493 (plongest): Ditto.
16494
633ff500
JB
164952011-02-24 Joel Brobecker <brobecker@adacore.com>
16496
16497 Revert the following patch (not approved yet):
16498 2011-02-21 Hui Zhu <teawater@gmail.com>
16499 * tracepoint.c (tp_printf): New function.
16500 (eval_agent_expr): Handle gdb_agent_op_printf.
16501
f9c6ff72
HZ
165022011-02-21 Hui Zhu <teawater@gmail.com>
16503
16504 * tracepoint.c (tp_printf): New function.
16505 (eval_agent_expr): Handle gdb_agent_op_printf.
16506
94d5e490
TT
165072011-02-18 Tom Tromey <tromey@redhat.com>
16508
16509 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16510 (tracepoint.o): Likewise.
16511 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16512 (gdb_agent_op_names): Likewise.
16513
c7f96d2b
TT
165142011-02-18 Tom Tromey <tromey@redhat.com>
16515
16516 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16517 gdb_agent_op_rot>: New constants.
16518 (gdb_agent_op_names): Add pick and roll.
16519 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16520 cases.
16521
0feedb2c
JK
165222011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16523
16524 * aclocal.m4: Regenerated with aclocal-1.11.1.
16525
b3b9301e
PA
165262011-02-14 Pedro Alves <pedro@codesourcery.com>
16527
16528 * server.c (handle_qxfer_traceframe_info): New.
16529 (qxfer_packets): Register "traceframe-info".
16530 (handle_query): Report support for qXfer:traceframe-info:read+.
16531 * tracepoint.c (match_blocktype): New.
16532 (traceframe_find_block_type): Rename to ...
16533 (traceframe_walk_blocks): ... this. Add callback filter argument,
16534 and use it.
16535 (traceframe_find_block_type): New, reimplemented on top of
16536 traceframe_walk_blocks.
16537 (build_traceframe_info_xml): New.
16538 (traceframe_read_info): New.
16539 * server.h (traceframe_read_info): Declare.
16540
4f3e6fb7
YQ
165412011-02-11 Yao Qi <yao@codesourcery.com>
16542
16543 * configure.ac: Call AC_PROG_RANLIB.
16544 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16545 * configure: Regenerate.
16546
764880b7
PA
165472011-02-07 Pedro Alves <pedro@codesourcery.com>
16548
16549 * server.c (gdb_read_memory): Change return semantics to allow
16550 partial transfers.
16551 (handle_search_memory_1): Adjust.
16552 (process_serial_event) <'m' packet>: Handle partial transfers.
16553 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16554
1c79eb8a
PA
165552011-01-28 Pedro Alves <pedro@codesourcery.com>
16556
16557 * regcache.c (init_register_cache): Initialize
16558 regcache->register_status.
16559 (free_register_cache): Release regcache->register_status.
16560 (regcache_cpy): Copy register_status.
16561 (registers_to_string): Print 'x's for unavailable registers.
16562 (supply_register): Mark the register's status valid or
16563 unavailable, depending on whether a buffer was passed in or not.
16564 (supply_register_zeroed): New.
16565 (supply_regblock): Mark the registers' status valid or
16566 unavailable, depending on whether a buffer was passed in or not.
16567 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16568 (struct regcache): New `register_status' field.
16569 (supply_register_zeroed): Declare.
16570 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16571 supply_register_zeroed, rather than passing a NULL buffer to
16572 supply_register.
16573 * tracepoint.c (fetch_traceframe_registers): Update comment.
16574
85724a0e
PA
165752011-01-28 Pedro Alves <pedro@codesourcery.com>
16576
16577 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16578 buffer explicit.
16579
d08aafef
PA
165802011-01-25 Pedro Alves <pedro@codesourcery.com>
16581
16582 * server.h (decode_xfer_write): Change prototype.
16583 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16584 and don't extract the annex here.
16585 * server.c (decode_xfer_read): Remove `annex' parameter,
16586 and don't extract the annex here.
16587 (decode_xfer): New.
16588 (struct qxfer): New.
16589 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16590 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16591 (handle_qxfer_statictrace): New functions, abstracted out from
16592 handle_query, and made to use the struct qxfer interface.
16593 (handle_threads_qxfer_proper): Rename to ...
16594 (handle_qxfer_threads_proper): ... this.
16595 (handle_threads_qxfer): Rename to ...
16596 (handle_qxfer_threads): ... this. Adjust.
16597 (qxfer_packets): New array.
16598 (handle_qxfer): New function.
16599 (handle_query): Use handle_qxfer.
16600
493e2a69
MS
166012011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16602
16603 * gdbreplay.c: Shorten lines of >= 80 columns.
16604 * linux-low.c: Ditto.
16605 * linux-ppc-low.c: Ditto.
16606 * linux-s390-low.c: Ditto.
16607 * linux-sparc-low.c: Ditto.
16608 * linux-x86-low.c: Ditto.
16609 * linux-xtensa-low.c: Ditto.
16610 * mem-break.c: Ditto.
16611 * nto-low.c: Ditto.
16612 * regcache.h: Ditto.
16613 * remote-utils.c: Ditto.
16614 * server.c: Ditto.
16615 * server.h: Ditto.
16616 * thread-db.c: Ditto.
16617 * tracepoint.c: Ditto.
16618 * utils.c: Ditto.
16619 * win32-low.h: Ditto.
16620
44944448
JB
166212011-01-05 Joel Brobecker <brobecker@adacore.com>
16622
16623 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16624 update.
16625
71ce852c
JB
166262011-01-01 Joel Brobecker <brobecker@adacore.com>
16627
16628 * server.c (gdbserver_version): Update copyright year in version
16629 output.
16630 * gdbreplay.c (gdbreplay_version): Ditto.
16631
eb826dc6
MF
166322010-12-29 Jie Zhang <jie.zhang@analog.com>
16633
16634 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16635 * linux-bfin-low.c: New file.
16636 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16637 PT_DATA_ADDR for BFIN targets.
16638 * Makefile.in (SFILES): Add linux-bfin-low.c.
16639 (clean): Remove reg-bfin.c.
16640 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16641 * README: Mention supported Blackfin targets.
16642
39ab222a
MF
166432010-12-23 Mike Frysinger <vapier@gentoo.org>
16644
16645 * .gitignore: New file.
16646
a1f2ce7d
MF
166472010-11-16 Mike Frysinger <vapier@gentoo.org>
16648
16649 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16650
f474844c
JZ
166512010-10-22 Jie Zhang <jie@codesourcery.com>
16652
16653 * Makefile.in: Add FLAGS_TO_PASS variable.
16654 (install): Remove dependency of install-only and recursively
16655 invoke make for install-only.
16656
f1048712
DE
166572010-10-04 Doug Evans <dje@google.com>
16658
16659 * Makefile.in (uninstall): Use $(DESTDIR).
16660
b53a1623
PA
166612010-09-24 Pedro Alves <pedro@codesourcery.com>
16662
e6ee044d
PA
16663 PR gdb/11842
16664
b53a1623
PA
16665 * linux-x86-low.c (compat_siginfo_from_siginfo)
16666 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16667 si_code is < 0. Check for si_code == SI_TIMER before checking for
16668 si_code < 0.
16669
fa1bd1e4
JB
166702010-09-13 Joel Brobecker <brobecker@adacore.com>
16671
16672 * lynx-i386-low.c: New file.
16673 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16674
47fac8f8
JB
166752010-09-13 Joel Brobecker <brobecker@adacore.com>
16676
16677 * lynx-low.c (ptrace_request_to_str): Remove handling for
16678 request values that have been removed in LynxOS 5.x.
16679
1adfc54d
JB
166802010-09-13 Joel Brobecker <brobecker@adacore.com>
16681
16682 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16683 <ptrace.h>
16684
c2a66c29
NS
166852010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16686
16687 * configure.ac: Add --enable-inprocess-agent option.
16688 * configure: Rebuilt.
16689
32fcada3
YQ
166902010-09-06 Yao Qi <yao@codesourcery.com>
16691
16692 * linux-low.c (linux_kill): Remove unused variable.
16693 (linux_stabilize_threads): Likewise.
16694 * server.c (start_inferior): Likewise.
16695 (queue_stop_reply_callback): Likewise.
16696 * tracepoint.c (do_action_at_tracepoint): Likewise.
16697
0cccb683
YQ
166982010-09-06 Yao Qi <yao@codesourcery.com>
16699
16700 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16701 on return.
16702
423ec54c
JK
167032010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16704
16705 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16706
12ac6819
PA
167072010-09-06 Pedro Alves <pedro@codesourcery.com>
16708
16709 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16710 "$(IPA_DEPFILES)".
16711
8ed54b31
JB
167122010-09-01 Joel Brobecker <brobecker@adacore.com>
16713
16714 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16715 gdbserver/lynx-ppc-low.c: New files.
16716 * Makefile.in (lynx_low_h): New variable.
16717 (lynx-low.o, lynx-ppc-low.o): New rules.
16718 * configure.ac: On LynxOS, link with -lnetinet.
16719 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16720 * configure: regenerate.
16721
bb0116a4
JB
167222010-09-01 Joel Brobecker <brobecker@adacore.com>
16723
16724 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16725 * configure.ac: Add check for vasprintf and vsnprintf.
16726 * configure, config.in: Regenerate.
16727 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16728
a778ab81 167292010-09-01 Joel Brobecker <brobecker@adacore.com>
16730
16731 * gdbreplay.c: Move include of alloca.h up, next to include of
16732 malloc.h.
16733 * server.h: Add include of malloc.h.
16734 * mem-break.c: Remove include of malloc.h.
16735 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16736
8b034a19 167372010-09-01 Joel Brobecker <brobecker@adacore.com>
16738
16739 * Makefile.in (memmem.o): Build with -Wno-error.
16740
167412010-09-01 Joel Brobecker <brobecker@adacore.com>
16742
16743 * utils.c (xsnprintf): Make non-static.
16744 * server.h: Add xsnprintf declaration.
16745 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16746 replace calls to snprintf by calls to xsnprintf throughout.
16747
167482010-09-01 Joel Brobecker <brobecker@adacore.com>
16749
16750 * configure.ac: Add configure check for alloca.
16751 * configure, config.in: Regenerate.
16752 * server.h: Include alloca.h if it exists.
16753 * gdbreplay.c: Include alloca.h if it exists.
16754
1a981360
PA
167552010-08-28 Pedro Alves <pedro@codesourcery.com>
16756
16757 * linux-low.c (__SIGRTMIN): Define if not already defined.
16758 (linux_create_inferior): Check for __ANDROID__ rather than
16759 __SIGRTMIN.
16760 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16761 are already deferred.
16762 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16763 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16764 stopped and already has a pending signal to report.
16765 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16766 a pending signal to report or is moving out of a jump pad.
16767 (linux_init_signals): Check for __ANDROID__ rather than
16768 __SIGRTMIN.
16769
b4d51a55
PA
167702010-08-28 Pedro Alves <pedro@codesourcery.com>
16771
16772 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16773 debug_threads check. Avoid a linear search when not doing debug
16774 output.
16775
ec48365d
PA
167762010-08-27 Pedro Alves <pedro@codesourcery.com>
16777
16778 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16779 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16780 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16781 (process_event): Change local fd's type to gdb_fildes_t.
16782 (create_file_handler): Adjust prototype.
16783 (delete_file_handler): Adjust prototype.
16784 (handle_file_event): Adjust prototype. Use pfildes.
16785 (create_file_event): Adjsut prototype.
16786 * remote-utils.c (remote_desc, listen_desc): Change type to
16787 gdb_fildes_t.
16788 * server.h: New gdb_fildes_t typedef.
16789 [USE_WIN32API]: Include winsock2.h.
16790 (delete_file_handler, add_file_handler): Adjust prototypes.
16791 (pfildes): Declare.
16792 * utils.c (pfildes): New.
16793
854d88f0
PA
167942010-08-27 Pedro Alves <pedro@codesourcery.com>
16795
16796 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16797 * configure: Regenerate.
16798
0146f85b
PA
167992010-08-27 Pedro Alves <pedro@codesourcery.com>
16800
16801 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16802 (linux_done_accessing_memory): ... this.
16803 (linux_target_ops): Adjust.
16804 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16805 * nto-low.c (nto_target_ops): Adjust comment.
16806 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16807 * spu-low.c (spu_target_ops): Adjust comment.
16808 * target.h (target_ops): Rename unprepare_to_access_memory field
16809 to done_accessing_memory.
16810 (unprepare_to_access_memory): Rename to ...
16811 (done_accessing_memory): ... this.
16812
90d74c30
PA
168132010-08-26 Pedro Alves <pedro@codesourcery.com>
16814
16815 * linux-low.c (linux_prepare_to_access_memory): New.
16816 (linux_unprepare_to_access_memory): New.
16817 (linux_target_ops): Install them.
16818 * server.c (read_memory): Rename to ...
16819 (gdb_read_memory): ... this. Use
16820 prepare_to_access_memory/prepare_to_access_memory.
16821 (write_memory): Rename to ...
16822 (gdb_write_memory): ... this. Use
16823 prepare_to_access_memory/prepare_to_access_memory.
16824 (handle_search_memory_1): Adjust.
16825 (process_serial_event): Adjust.
16826 * target.h (struct target_ops): New fields
16827 prepare_to_access_memory and unprepare_to_access_memory.
16828 (prepare_to_access_memory, unprepare_to_access_memory): New.
16829 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16830 prepare_to_access_memory/prepare_to_access_memory.
16831 * nto-low.c (nto_target_ops): Adjust.
16832 * spu-low.c (spu_target_ops): Adjust.
16833 * win32-low.c (win32_target_ops): Adjust.
16834
fd467969
PA
168352010-08-26 Pedro Alves <pedro@codesourcery.com>
16836
16837 * Makefile.in (WARN_CFLAGS): Get it from configure.
16838 (WERROR_CFLAGS): New.
16839 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16840 * configure.ac: Introduce --enable-werror, which adds -Werror to
16841 the compiler command line. Enabled by default. Disable with
16842 --disable-werror. Add -Wdeclaration-after-statement
16843 Wpointer-arith and -Wformat-nonliteral to warning flags.
16844 * configure: Regenerate.
16845
331e2f5f
PA
168462010-08-26 Pedro Alves <pedro@codesourcery.com>
16847
16848 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16849
e581f2b4
PA
168502010-08-26 Pedro Alves <pedro@codesourcery.com>
16851
16852 * gdbreplay.c (remote_error): New.
16853 (gdbchar): New.
16854 (expect): Use gdbchar. Check for error reading from GDB.
16855 Clarify sync error output.
16856 (play): Check for errors writing to GDB.
16857 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16858 * remote-utils.c (getpkt): Check for errors writing to the remote
16859 descriptor.
16860
3c11dd79
PA
168612010-08-25 Pedro Alves <pedro@codesourcery.com>
16862
16863 * linux-low.c (linux_wait_1): Move non-debugging code out of
16864 `debug_threads' control.
16865
d20a8ad9
PA
168662010-08-25 Pedro Alves <pedro@codesourcery.com>
16867
16868 * linux-low.c (linux_wait_1): Don't set last_status here.
16869 * server.c (push_event, queue_stop_reply_callback): Assert we're
16870 not pushing a TARGET_WAITKIND_IGNORE event.
16871 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16872 (myresume, handle_target_event): Set the thread's last_resume_kind
16873 and last_status from the target returned status.
16874
964e4306
PA
168752010-08-25 Pedro Alves <pedro@codesourcery.com>
16876
16877 PR threads/10729
16878
16879 * linux-x86-low.c (update_debug_registers_callback): New.
16880 (i386_dr_low_set_addr): Use it.
16881 (i386_dr_low_get_addr): New.
16882 (i386_dr_low_set_control): Use update_debug_registers_callback.
16883 (i386_dr_low_get_control): New.
16884 (i386_dr_low_get_status): Adjust.
16885 * linux-low.c (linux_stop_lwp): New.
16886 * linux-low.h (linux_stop_lwp): Declare.
16887
16888 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16889 argument instead of a i386_debug_reg_state.
16890 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16891 a i386_debug_reg_state.
16892 (i386_insert_aligned_watchpoint): Adjust.
16893 (i386_remove_aligned_watchpoint): Adjust.
16894 (i386_low_stopped_data_address): Read the debug registers from the
16895 inferior instead of from the mirrors.
16896 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16897 (i386_dr_low_get_addr): Declare.
16898 (i386_dr_low_get_control): Declare.
16899 (i386_dr_low_get_status): Change prototype.
16900
16901 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16902 (i386_dr_low_get_addr): New.
16903 (i386_dr_low_get_control): New.
16904 (i386_dr_low_get_status): Adjust prototype. Return
16905 dr_status_mirror.
16906 (i386_initial_stuff): Clear dr_status_mirror and
16907 dr_control_mirror.
16908 (i386_get_thread_context): Adjust.
16909 (i386_set_thread_context): Adjust.
16910 (i386_thread_added): Adjust.
16911
5f21a75b
PA
169122010-08-24 Pedro Alves <pedro@codesourcery.com>
16913
16914 * linux-low.h (linux_thread_area): Delete declaration.
16915
3e4c1235
TS
169162010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16917
16918 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16919 after its termination.
16920
1971b033
PA
169212010-08-09 Pedro Alves <pedro@codesourcery.com>
16922
16923 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16924 (gdb_wants_all_stopped): Delete.
16925 (linux_wait_1): Don't call them.
16926 * server.c (handle_v_cont): Tag all threads as want-stopped.
16927 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16928 stopped as "client-wants-stopped".
16929
310444ac
PA
169302010-07-31 Pedro Alves <pedro@codesourcery.com>
16931
16932 * Makefile.in (signals_h): New.
16933 (server_h): Depend on it.
16934 (server.o): Don't depend on $(signals_def).
16935 (signals.o): Depend on $(signals_def).
16936
a19cae16
JK
169372010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16938
16939 * Makefile.in (signals_def): New.
16940 (server_h): Append include/gdb/signals.h and signals_def.
16941 (server.o): Append signals_def.
16942
30d50328
JK
169432010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16944
16945 * server.c (handle_target_event): Use target_signal_to_host for
16946 resume_info.sig initialization.
16947 * target.h (struct thread_resume) <sig>: New comment.
16948
5c3216e2
OS
169492010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16950
c6f46ca0
OS
16951 * server.c (handle_query): strcpy() the returned string from paddress()
16952 instead of sprintf().
5c3216e2
OS
16953 * utils.c (paddress): Return phex_nz().
16954
6bd31874
JB
169552010-07-07 Joel Brobecker <brobecker@adacore.com>
16956
16957 * server.c (handle_v_cont): Call mourn_inferior if process
16958 just exited.
16959 (myresume): Likewise.
16960
0fb4aa4b
PA
169612010-07-01 Pedro Alves <pedro@codesourcery.com>
16962
16963 Static tracepoints, and integration with UST.
16964
16965 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16966 * mem-break.c (uninsert_all_breakpoints)
16967 (reinsert_all_breakpoints): New.
16968 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16969 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16970 (gdb_agent_ust_loaded, helper_thread_id)
16971 (gdb_agent_helper_thread_id): New macros.
16972 (struct ipa_sym_addresses): Add addr_ust_loaded,
16973 addr_helper_thread_id, addr_cmd_buf.
16974 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16975 (in_process_agent_loaded_ust): New.
16976 (write_e_ust_not_loaded): New.
16977 (maybe_write_ipa_ust_not_loaded): New.
16978 (struct collect_static_trace_data_action): New.
16979 (enum tracepoint_type) <static_tracepoint>: New.
16980 (struct tracepoint) <handle>: Mention static tracepoints.
16981 (struct static_tracepoint_ctx): New.
16982 (CMD_BUF_SIZE): New.
16983 (add_tracepoint_action): Handle static tracepoint actions.
16984 (unprobe_marker_at): New.
16985 (clear_installed_tracepoints): Handle static tracepoints.
16986 (cmd_qtdp): Handle static tracepoints.
16987 (probe_marker_at): New.
16988 (cmd_qtstart): Handle static tracepoints.
16989 (response_tracepoint): Handle static tracepoints.
16990 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16991 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16992 (get_context_regcache): Handle static tracepoints.
16993 (do_action_at_tracepoint): Handle static tracepoint actions.
16994 (traceframe_find_block_type): Handle static trace data blocks.
16995 (traceframe_read_sdata): New.
16996 (download_tracepoints): Download static tracepoint actions.
16997 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16998 (GDB_PROBE_NAME): New.
16999 (ust_ops): New.
17000 (GET_UST_SYM): New.
17001 (USTF): New.
17002 (dlsym_ust): New.
17003 (ust_marker_to_static_tracepoint): New.
17004 (gdb_probe): New.
17005 (collect_ust_data_at_tracepoint): New.
17006 (gdb_ust_probe): New.
17007 (UNIX_PATH_MAX, SOCK_DIR): New.
17008 (gdb_ust_connect_sync_socket): New.
17009 (resume_thread, stop_thread): New.
17010 (run_inferior_command): New.
17011 (init_named_socket): New.
17012 (gdb_ust_socket_init): New.
17013 (cstr_to_hexstr): New.
17014 (next_st): New.
17015 (first_marker, next_marker): New.
17016 (response_ust_marker): New.
17017 (cmd_qtfstm, cmd_qtsstm): New.
17018 (unprobe_marker_at, probe_marker_at): New.
17019 (cmd_qtstmat, gdb_ust_thread): New.
17020 (gdb_ust_init): New.
17021 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17022 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17023 (ST_REGENTRY): New.
17024 (x86_64_st_collect_regmap): New.
17025 (X86_64_NUM_ST_COLLECT_GREGS): New.
17026 (AMD64_RIP_REGNUM): New.
17027 (supply_static_tracepoint_registers): New.
17028 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17029 (ST_REGENTRY): New.
17030 (i386_st_collect_regmap): New.
17031 (i386_NUM_ST_COLLECT_GREGS): New.
17032 (supply_static_tracepoint_registers): New.
17033 * server.c (handle_query): Handle qXfer:statictrace:read.
17034 <qSupported>: Report support for StaticTracepoints, and
17035 qXfer:statictrace:read features.
17036 * server.h (traceframe_read_sdata)
17037 (supply_static_tracepoint_registers): Declare.
17038 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17039 (unpack_varlen_hex): Include in IPA build.
17040 * Makefile.in (ustlibs, ustinc): New.
17041 (IPA_OBJS): Add remote-utils-ipa.o.
17042 ($(IPA_LIB)): Link -ldl and -lpthread.
17043 (UST_CFLAGS): New.
17044 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17045 * config.in, configure: Regenerate.
17046
9e4344e5
PA
170472010-06-20 Ian Lance Taylor <iant@google.com>
17048 Pedro Alves <pedro@codesourcery.com>
17049
17050 * linux-x86-low.c (always_true): Delete.
17051 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17052 trying to fool the compiler with always_true.
17053
c6beb2cb
PA
170542010-06-20 Pedro Alves <pedro@codesourcery.com>
17055
17056 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17057 conditions in gdbserver.
17058
d2ed6730
UW
170592010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17060
17061 * spu-low.c (spu_read_memory): Wrap around local store limit.
17062 (spu_write_memory): Likewise.
17063
4e29fb54
PA
170642010-06-15 Pedro Alves <pedro@codesourcery.com>
17065
17066 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17067 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17068 LONGEST uses.
17069 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17070 uses.
17071 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17072 uses with LONGEST uses.
17073
6a271cae
PA
170742010-06-14 Stan Shebs <stan@codesourcery.com>
17075 Pedro Alves <pedro@codesourcery.com>
17076
17077 Bytecode compiler.
17078
17079 * linux-x86-low.c: Include limits.h.
17080 (add_insns): New.
17081 (always_true): New.
17082 (EMIT_ASM): New.
17083 (EMIT_ASM32): New.
17084 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17085 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17086 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17087 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17088 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17089 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17090 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17091 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17092 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17093 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17094 (amd64_emit_void_call_2): New.
17095 (amd64_emit_ops): New.
17096 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17097 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17098 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17099 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17100 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17101 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17102 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17103 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17104 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17105 (i386_emit_stack_adjust, i386_emit_int_call_1)
17106 (i386_emit_void_call_2): New.
17107 (i386_emit_ops): New.
17108 (x86_emit_ops): New.
17109 (the_low_target): Install x86_emit_ops.
17110 * server.h (struct emit_ops): New.
17111 (get_raw_reg_func_addr): Declare.
17112 (current_insn_ptr, emit_error): Declare.
17113 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17114 (set_trace_state_variable_value): New defines.
17115 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17116 addr_get_trace_state_variable_value and
17117 addr_set_trace_state_variable_value.
17118 (symbol_list): New fields for get_raw_reg,
17119 get_trace_state_variable_value and set_trace_state_variable_value.
17120 (condfn): New typedef.
17121 (struct tracepoint): New field `compiled_cond'.
17122 (do_action_at_tracepoint): Clear compiled_cond.
17123 (get_trace_state_variable_value, set_trace_state_variable_value):
17124 Export in the IPA.
17125 (condition_true_at_tracepoint): If there's a compiled condition,
17126 run that.
17127 (current_insn_ptr, emit_error): New globals.
17128 (struct bytecode_address): New.
17129 (get_raw_reg_func_addr): New.
17130 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17131 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17132 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17133 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17134 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17135 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17136 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17137 (compile_tracepoint_condition, compile_bytecodes): New.
17138 * target.h (emit_ops): Forward declare.
17139 (struct target_ops): New field emit_ops.
17140 (target_emit_ops): New.
17141 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17142 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17143 * linux-low.c (linux_emit_ops): New.
17144 (linux_target_ops): Install it.
17145 * linux-low.h (struct linux_target_ops): New field emit_ops.
17146
92b72907
UW
171472010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17148
17149 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17150 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17151
fa593d66
PA
171522010-06-01 Pedro Alves <pedro@codesourcery.com>
17153 Stan Shebs <stan@codesourcery.com>
17154
17155 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17156 (all): Depend on $(extra_libraries).
17157 (install-only): Install the IPA.
17158 (IPA_OBJS, IPA_LIB): New.
17159 (clean): Remove the IPA lib.
17160 (IPAGENT_CFLAGS): New.
17161 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17162 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17163 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17164 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17165 * configure.ac: Check for atomic builtins support in the compiler.
17166 (IPA_DEPFILES, extra_libraries): Define.
17167 * configure.srv (ipa_obj): Add description.
17168 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17169 (i[34567]86-*-linux*): Set ipa_obj.
17170 (x86_64-*-linux*): Set ipa_obj.
17171 * linux-low.c (stabilizing_threads): New.
17172 (supports_fast_tracepoints): New.
17173 (linux_detach): Stabilize threads before detaching.
17174 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17175 the lwp is either not stabilizing, or is moving out of a jump pad.
17176 (linux_fast_tracepoint_collecting): New.
17177 (maybe_move_out_of_jump_pad): New.
17178 (enqueue_one_deferred_signal): New.
17179 (dequeue_one_deferred_signal): New.
17180 (linux_wait_for_event_1): If moving out of a jump pad, defer
17181 pending signals to later.
17182 (linux_stabilize_threads): New.
17183 (linux_wait_1): Check if threads need moving out of jump pads, and
17184 do it if so.
17185 (stuck_in_jump_pad_callback): New.
17186 (move_out_of_jump_pad_callback): New.
17187 (lwp_running): New.
17188 (linux_resume_one_lwp): Handle moving out of jump pads.
17189 (linux_set_resume_request): Dequeue deferred signals.
17190 (need_step_over_p): Also step over fast tracepoint jumps.
17191 (start_step_over): Also uninsert fast tracepoint jumps.
17192 (finish_step_over): Also reinsert fast tracepoint jumps.
17193 (linux_install_fast_tracepoint_jump): New.
17194 (linux_target_ops): Install linux_stabilize_threads and
17195 linux_install_fast_tracepoint_jump_pad.
17196 * linux-low.h (linux_target_ops) <get_thread_area,
17197 install_fast_tracepoint_jump_pad>: New fields.
17198 (struct lwp_info) <collecting_fast_tracepoint,
17199 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17200 (linux_get_thread_area): Declare.
17201 * linux-x86-low.c (jump_insn): New.
17202 (x86_get_thread_area): New.
17203 (append_insns): New.
17204 (push_opcode): New.
17205 (amd64_install_fast_tracepoint_jump_pad): New.
17206 (i386_install_fast_tracepoint_jump_pad): New.
17207 (x86_install_fast_tracepoint_jump_pad): New.
17208 (the_low_target): Install x86_get_thread_area and
17209 x86_install_fast_tracepoint_jump_pad.
17210 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17211 (struct fast_tracepoint_jump): New.
17212 (fast_tracepoint_jump_insn): New.
17213 (fast_tracepoint_jump_shadow): New.
17214 (find_fast_tracepoint_jump_at): New.
17215 (fast_tracepoint_jump_here): New.
17216 (delete_fast_tracepoint_jump): New.
17217 (set_fast_tracepoint_jump): New.
17218 (uninsert_fast_tracepoint_jumps_at): New.
17219 (reinsert_fast_tracepoint_jumps_at): New.
17220 (set_breakpoint_at): Use write_inferior_memory.
17221 (uninsert_raw_breakpoint): Use write_inferior_memory.
17222 (check_mem_read): Mask out fast tracepoint jumps.
17223 (check_mem_write): Mask out fast tracepoint jumps.
17224 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17225 (set_fast_tracepoint_jump): Declare.
17226 (delete_fast_tracepoint_jump)
17227 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17228 (reinsert_fast_tracepoint_jumps_at): Declare.
17229 * regcache.c: Don't compile many functions when building the
17230 in-process agent library.
17231 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17232 the register buffer in the heap.
17233 (free_register_cache): If the register buffer isn't owned by the
17234 regcache, don't free it.
17235 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17236 pre-existing register caches.
17237 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17238 type.
17239 (convert_ascii_to_int): : Constify `from' parameter type.
17240 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17241 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17242 the needed buffer in-place.
17243 (relocate_instruction): New.
17244 * server.c (handle_query) <qSymbols>: If the target supports
17245 tracepoints, give it a chance of looking up symbols. Report
17246 support for fast tracepoints.
17247 (handle_status): Stabilize threads.
17248 (process_serial_event): Adjust.
17249 * server.h (struct fast_tracepoint_jump): Forward declare.
17250 (struct process_info) <fast_tracepoint_jumps>: New field.
17251 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17252 (decode_X_packet, decode_M_packet): Adjust.
17253 (relocate_instruction): Declare.
17254 (in_process_agent_loaded): Declare.
17255 (tracepoint_look_up_symbols): Declare.
17256 (struct fast_tpoint_collect_status): Declare.
17257 (fast_tracepoint_collecting): Declare.
17258 (force_unlock_trace_buffer): Declare.
17259 (handle_tracepoint_bkpts): Declare.
17260 (initialize_low_tracepoint)
17261 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17262 * target.h (struct target_ops) <stabilize_threads,
17263 install_fast_tracepoint_jump_pad>: New fields.
17264 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17265 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17266 [HAVE_STDINT_H]: Include stdint.h.
17267 (trace_debug_1): Rename to ...
17268 (trace_vdebug): ... this.
17269 (trace_debug): Rename to ...
17270 (trace_debug_1): ... this. Add `level' parameter.
17271 (trace_debug): New.
17272 (ATTR_USED, ATTR_NOINLINE): New.
17273 (IP_AGENT_EXPORT): New.
17274 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17275 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17276 (about_to_request_buffer_space, trace_buffer_is_full)
17277 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17278 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17279 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17280 (traceframe_write_count, traceframes_created)
17281 (trace_state_variables)
17282 New renaming defines.
17283 (struct ipa_sym_addresses): New.
17284 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17285 (symbol_list): New.
17286 (ipa_sym_addrs): New.
17287 (all_tracepoint_symbols_looked_up): New.
17288 (in_process_agent_loaded): New.
17289 (write_e_ipa_not_loaded): New.
17290 (maybe_write_ipa_not_loaded): New.
17291 (tracepoint_look_up_symbols): New.
17292 (debug_threads) [IN_PROCESS_AGENT]: New.
17293 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17294 (UNKNOWN_SIDE_EFFECTS): New.
17295 (stop_tracing): New.
17296 (flush_trace_buffer): New.
17297 (stop_tracing_bkpt): New.
17298 (flush_trace_buffer_bkpt): New.
17299 (read_inferior_integer): New.
17300 (read_inferior_uinteger): New.
17301 (read_inferior_data_pointer): New.
17302 (write_inferior_data_pointer): New.
17303 (write_inferior_integer): New.
17304 (write_inferior_uinteger): New.
17305 (struct collect_static_trace_data_action): Delete.
17306 (enum tracepoint_type): New.
17307 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17308 <actions_str, step_actions, step_actions_str>: Only include in
17309 GDBserver.
fa593d66
PA
17310 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17311 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17312 (tracepoints): Use IP_AGENT_EXPORT.
17313 (last_tracepoint): Don't include in the IPA.
17314 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17315 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17316 (alloced_trace_state_variables): New.
17317 (trace_state_variables): Use IP_AGENT_EXPORT.
17318 (traceframe_t): Delete unused variable.
17319 (circular_trace_buffer): Don't include in the IPA.
17320 (trace_buffer_start): Delete.
17321 (struct trace_buffer_control): New.
17322 (trace_buffer_free): Delete.
17323 (struct ipa_trace_buffer_control): New.
17324 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17325 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17326 New.
17327 (trace_buffer_ctrl): New.
17328 (TRACE_BUFFER_CTRL_CURR): New.
17329 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17330 Reimplement as macros.
17331 (trace_buffer_wrap): Delete.
17332 (traceframe_write_count, traceframe_read_count)
17333 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17334 (struct tracepoint_hit_ctx) <type>: New field.
17335 (struct fast_tracepoint_ctx): New.
17336 (memory_barrier): New.
17337 (cmpxchg): New.
17338 (record_tracepoint_error): Update atomically in the IPA.
17339 (clear_inferior_trace_buffer): New.
17340 (about_to_request_buffer_space): New.
17341 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17342 updating the same buffer.
17343 (add_tracepoint): Default the tracepoint's type to trap
17344 tracepoint, and orig_size to -1.
17345 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17346 internal variables.
17347 (create_trace_state_variable): New parameter `gdb'. Handle it.
17348 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17349 (cmd_qtdp): Handle fast tracepoints.
17350 (cmd_qtdv): Adjust.
17351 (max_jump_pad_size): New.
17352 (gdb_jump_pad_head): New.
17353 (get_jump_space_head): New.
17354 (claim_jump_space): New.
17355 (sort_tracepoints): New.
17356 (MAX_JUMP_SIZE): New.
17357 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17358 IPA.
17359 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17360 support. Upload fast traceframes, and delete internal IPA
17361 breakpoints.
17362 (stop_tracing_handler): New.
17363 (flush_trace_buffer_handler): New.
17364 (cmd_qtstop): Upload fast tracepoints.
17365 (response_tracepoint): Handle fast tracepoints.
17366 (tracepoint_finished_step): Upload fast traceframes. Set the
17367 tracepoint hit context's tracepoint type.
17368 (handle_tracepoint_bkpts): New.
17369 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17370 type. Add comment about fast tracepoints.
17371 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17372 non-existing action_str field.
17373 (get_context_regcache): Handle fast tracepoints.
17374 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17375 to the regcache.
17376 (fast_tracepoint_from_jump_pad_address): New.
17377 (fast_tracepoint_from_ipa_tpoint_address): New.
17378 (collecting_t): New.
17379 (force_unlock_trace_buffer): New.
17380 (fast_tracepoint_collecting): New.
17381 (collecting): New.
17382 (gdb_collect): New.
17383 (write_inferior_data_ptr): New.
17384 (target_tp_heap): New.
17385 (target_malloc): New.
17386 (download_agent_expr): New.
17387 (UALIGN): New.
17388 (download_tracepoints): New.
17389 (download_trace_state_variables): New.
17390 (upload_fast_traceframes): New.
17391 (IPA_FIRST_TRACEFRAME): New.
17392 (IPA_NEXT_TRACEFRAME_1): New.
17393 (IPA_NEXT_TRACEFRAME): New.
17394 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17395 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17396 (gdb_jump_pad_buffer_end): New.
17397 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17398 (initialize_tracepoint): Adjust.
17399 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17400 buffer. Initialize the low module.
17401 * utils.c (PREFIX, TOOLNAME): New.
17402 (malloc_failure): Use PREFIX.
17403 (error): In the IPA, an error causes an exit.
17404 (fatal, warning): Use PREFIX.
17405 (internal_error): Use TOOLNAME.
17406 (NUMCELLS): Increase to 10.
17407 * configure, config.in: Regenerate.
17408
d149dd1d
PA
174092010-06-01 Pedro Alves <pedro@codesourcery.com>
17410
17411 * server.c (handle_query) <qSupported>: Do two passes over the
17412 qSupported string to avoid nesting strtok.
17413
f6528abd
JK
174142010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17415
17416 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17417 (CDEPS): New.
17418 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17419 -Wl,--dynamic-list.
17420 * configure: Regenerate.
17421 * proc-service.list: New.
17422
ca2a87a0
JK
174232010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17424
17425 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17426 New comment.
17427
363a6e9f
OS
174282010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17429
17430 * gdbreplay.c (remote_open): Check error return from socket() call by
17431 its equality to -1 not by it being negative.
17432 * remote-utils.c (remote_open): Likewise.
17433
d23b6cb1
PA
174342010-05-23 Pedro Alves <pedro@codesourcery.com>
17435
17436 * config.h: Regenerate.
17437
28d3cf85
MK
174382010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17439
17440 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17441 doesn't provide PTRACE_GET_THREAD_AREA.
17442
fea36a59
MK
174432010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17444
17445 * linux-m68k-low.c: Include <asm/ptrace.h>
17446 (ps_get_thread_area): Implement.
17447
24b066ba
DE
174482010-05-03 Doug Evans <dje@google.com>
17449
17450 * event-loop.c (struct callback_event): New struct.
17451 (callback_list): New global.
17452 (append_callback_event, delete_callback_event): New functions.
17453 (process_callback): New function.
17454 (start_event_loop): Call it.
17455 * remote-utils.c (NOT_SCHEDULED): Define.
17456 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17457 moved out of readchar.
17458 (readchar): Rewrite. Call reschedule before returning.
17459 (reset_readchar): New function.
17460 (remote_close): Call it.
17461 (process_remaining, reschedule): New functions.
17462 * server.h (callback_handler_func): New typedef.
17463 (append_callback_event, delete_callback_event): Declare.
17464
9836d6ea
PA
174652010-05-03 Pedro Alves <pedro@codesourcery.com>
17466
17467 * proc-service.c (ps_pglobal_lookup): Use
17468 thread_db_look_up_one_symbol.
17469 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17470 parameter. Use it instead of all_symbols_looked_up.
17471 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17472 field.
17473 (all_symbols_looked_up): Don't declare.
17474 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17475 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17476 field.
17477 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17478 Set all_symbols_looked_up here.
17479 (thread_db_look_up_one_symbol): New.
17480 (thread_db_get_tls_address): Adjust.
17481 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17482 thread_db object on the heap, and tentatively set it in the
17483 process structure.
17484 (thread_db_init): Don't set all_symbols_looked_up here.
17485 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17486
7984d532
PA
174872010-05-03 Pedro Alves <pedro@codesourcery.com>
17488
17489 * linux-low.c (linux_kill, linux_detach): Adjust.
17490 (status_pending_p_callback): Remove redundant statement. Check
17491 for !TARGET_WAITIKIND_IGNORE, instead of
17492 TARGET_WAITKIND_STOPPED.
17493 (handle_tracepoints): Make sure LWP is locked. Adjust.
17494 (linux_wait_for_event_1): Adjust.
17495 (linux_cancel_breakpoints): New.
17496 (unsuspend_one_lwp): New.
17497 (unsuspend_all_lwps): New.
17498 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17499 (send_sigstop_callback): Change return type to int, add new
17500 `except' parameter and handle it.
17501 (suspend_and_send_sigstop_callback): New.
17502 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17503 pass them down. If SUSPEND, also increment the lwp's suspend
17504 count.
17505 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17506 (need_step_over_p): Don't consider suspended LWPs.
17507 (start_step_over): Adjust.
17508 (proceed_one_lwp): Change return type to int, add new `except'
17509 parameter and handle it.
17510 (unsuspend_and_proceed_one_lwp): New.
17511 (proceed_all_lwps): Use find_inferior instead of
17512 for_each_inferior.
17513 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17514 also decrement the suspend count of LWPs. Pass `except' down,
17515 instead of hacking its suspend count.
17516 (linux_pause_all): Add `freeze' parameter. Adjust.
17517 (linux_unpause_all): New.
17518 (linux_target_ops): Install linux_unpause_all.
17519 * server.c (handle_status): Adjust.
17520 * target.h (struct target_ops): New fields `unpause_all' and
17521 `cancel_breakpoints'. Add new parameter to `pause_all'.
17522 (pause_all): Add new `freeze' parameter.
17523 (unpause_all): New.
17524 (cancel_breakpoints): New.
17525 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17526 cancel breakpoints.
17527 (cmd_qtstart): Pause threads.
17528 (stop_tracing): Pause threads, and cancel breakpoints.
17529 * win32-low.c (win32_target_ops): Adjust.
17530
e471f25b
PA
175312010-05-03 Pedro Alves <pedro@codesourcery.com>
17532
17533 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17534 the inferior right away from here...
17535 (linux_wait_1): ... to here, and adjust to check the thread's
17536 last_resume_kind instead of the lwp's step or stop_expected flags.
17537
1915ef4f
PA
175382010-05-02 Pedro Alves <pedro@codesourcery.com>
17539
17540 * README: Use consistent `GDB' and `GDBserver' spellings.
17541
f9e39928
PA
175422010-05-02 Pedro Alves <pedro@codesourcery.com>
17543
17544 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17545 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17546 (linux_detach_one_lwp): Assume the lwp is stopped.
17547 (any_thread_of): Delete.
17548 (linux_detach): Stop all lwps here. Don't blindly delete all
17549 breakpoints.
17550 (delete_lwp_callback): New.
17551 (linux_mourn): Delete all lwps of the process that is gone.
17552 (linux_wait_1): Don't delete the last lwp of the process here.
17553 * mem-break.h (mark_breakpoints_out): Declare.
17554 * mem-break.c (mark_breakpoints_out): New.
17555 (free_all_breakpoints): Use it.
17556 * server.c (handle_target_event): If the process is gone, mark
17557 breakpoints out.
17558 * thread-db.c (struct thread_db) <create_bp>: New field.
17559 (thread_db_enable_reporting): Fix prototype. Store a thread event
17560 breakpoint reference in the thread_db struct.
17561 (thread_db_load_search): Clear the thread_db object.
17562 (try_thread_db_load_1): Ditto.
17563 (switch_to_process): New.
17564 (disable_thread_event_reporting): Use it.
17565 (remove_thread_event_breakpoints): New.
17566 (thread_db_detach, thread_db_mourn): Use it.
17567
1e7fc18c
PA
175682010-05-01 Pedro Alves <pedro@codesourcery.com>
17569
17570 * linux-low.c (linux_enable_event_reporting): New.
17571 (linux_wait_for_event_1, handle_extended_wait): Use it.
17572
02fc4de7
PA
175732010-04-30 Pedro Alves <pedro@codesourcery.com>
17574
17575 * linux-low.c (linux_kill_one_lwp, linux_kill)
17576 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17577 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17578 SIGSTOP even if the LWP is stopped.
17579 (send_sigstop_callback): New.
17580 (stop_all_lwps): Use send_sigstop_callback instead.
17581 (linux_resume_one_thread): Adjust.
17582 (proceed_one_lwp): Still proceed an LWP that the client has
17583 requested to stop, if we haven't reported it as stopped yet. Make
17584 sure that LWPs the client want stopped, have a pending SIGSTOP.
17585
bc3b5632
DE
175862010-04-26 Doug Evans <dje@google.com>
17587
ae1ada35
DE
17588 * server.c (handle_general_set): Make static.
17589
bc3b5632
DE
17590 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17591 Print received char after testing for error/eof instead of before.
17592 (input_interrupt): Tweak comment.
17593
65730243
DE
175942010-04-23 Doug Evans <dje@google.com>
17595
17596 * server.c (start_inferior): Print inferior argv if --debug.
17597
a8ae7dc0
AR
175982010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17599
17600 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17601 * nto-x86-low.c: Include server.h
17602
1c07cc19
PM
176032010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17604
17605 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17606 be consistent with other sources of this directory.
17607 (init_registers_amd64): Correct name of source file of this function
17608 in the comment.
17609
e0a61e09
PM
176102010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17611
17612 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17613 64-bit executables.
17614
54709339
PM
176152010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17616
17617 * win32-i386-low.c: Add 64-bit support.
17618 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17619 (init_registers_amd64): Declare.
17620 (mappings): Add 64-bit version of array.
17621 (init_windows_x86): New function.
17622 (the_low_target): Change init_arch field to init_windows_x86.
17623
e8f0053d
PM
176242010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17625
17626 * win32-low.c: Adapt to support also 64-bit architecture.
17627 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17628 (get_image_name): Use SIZE_T type for local variable `done'.
17629 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17630 (toolhelp_get_dll_name): Idem.
17631 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17632 Use uintptr_t typecast to avoid warning.
17633 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17634 (handle_exception): Use phex_nz to avoid warning.
17635 (win32_wait): Remove unused local variable `process'.
17636
c481e77e
PM
176372010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17638
17639 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17640 `amd64-avx.o'.
17641
12ea4b69
PM
176422010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17643
17644 * configure.ac: Use `ws2_32' library for srv_mingw.
17645 * configure: Regenerate.
17646 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17647 * remote-utils.c: Likewise.
17648
f6d1620c
L
176492010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17650
17651 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17652 if __x86_64__ is defined.
17653
8e642873
PM
176542010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17655
17656 * configure: Regenerate.
17657
711e434b
PM
176582010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17659
17660 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17661 * target.h (target_ops): New get_tib_address field.
17662 * win32-low.h (win32_thread_info): Add thread_local_base field.
17663 * win32-low.c (child_add_thread): Add tlb argument.
17664 Set thread_local_base field to TLB.
17665 (get_child_debug_event): Adapt to child_add_thread change.
17666 (win32_get_tib_address): New function.
17667 (win32_target_ops): Set get_tib_address field to
17668 win32_get_tib_address.
17669 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17670
505106cd
PA
176712010-04-12 Pedro Alves <pedro@codesourcery.com>
17672
505106cd
PA
17673 * linux-low.c (linux_mourn): Also remove the process.
17674 * server.c (handle_target_event): Don't remove the process here.
17675 * nto-low.c (nto_mourn): New.
17676 (nto_target_ops): Install it.
17677 * spu-low.c (spu_mourn): New.
17678 (spu_target_ops): Install it.
17679 * win32-low.c (win32_mourn): New.
17680 (win32_target_ops): Install it.
17681
e8470a06
PA
176822010-04-12 Pedro Alves <pedro@codesourcery.com>
17683
17684 * server.h (buffer_xml_printf): Remove redundant `;'.
17685
45ba0d02
PA
176862010-04-12 Pedro Alves <pedro@codesourcery.com>
17687
17688 * regcache.c (set_register_cache): Invalidate regcaches before
17689 changing the register cache layout.
17690 (regcache_invalidate_one): Allow a NULL regcache.
17691 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17692 regcaches before changing the register cache layout or the target
17693 regsets.
17694
59e04013
L
176952010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17696
17697 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17698 variable warning on Linux/x86-64.
17699
8336d594
PA
177002010-04-11 Pedro Alves <pedro@codesourcery.com>
17701
17702 GDBserver disconnected tracing support.
17703
17704 * linux-low.c (linux_remove_process): Delete.
17705 (add_lwp): Don't set last_resume_kind here.
17706 (linux_kill): Use `mourn'.
17707 (linux_detach): Use `thread_db_detach', and `mourn'.
17708 (linux_mourn): New.
17709 (linux_attach_lwp_1): Adjust comment.
17710 (linux_attach): last_resume_kind moved the thread_info; adjust.
17711 (status_pending_p_callback): Adjust.
17712 (linux_wait_for_event_1): Adjust.
17713 (count_events_callback, select_singlestep_lwp_callback)
17714 (select_event_lwp_callback, cancel_breakpoints_callback)
17715 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17716 (proceed_one_lwp): Adjust.
17717 (linux_async): Add debug output.
17718 (linux_thread_stopped): New.
17719 (linux_pause_all): New.
17720 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17721 linux_pause_all.
17722 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17723 (thread_db_free): Delete declaration.
17724 (thread_db_detach, thread_db_mourn): Declare.
17725 * thread-db.c (thread_db_init): Use thread_db_mourn.
17726 (thread_db_free): Delete, split in two.
17727 (disable_thread_event_reporting): New.
17728 (thread_db_detach): New.
17729 (thread_db_mourn): New.
17730
17731 * server.h (struct thread_info) <last_resume_kind>: New field.
17732 <attached>: Add comment.
17733 <gdb_detached>: New field.
17734 (handler_func): Change return type to int.
17735 (handle_serial_event, handle_target_event): Ditto.
17736 (gdb_connected): Declare.
17737 (tracing): Delete.
17738 (disconnected_tracing): Declare.
17739 (stop_tracing): Declare.
17740
17741 * server.c (handle_query) <qSupported>: Report support for
17742 disconnected tracing.
17743 (queue_stop_reply_callback): Account for running threads.
17744 (gdb_wants_thread_stopped): New.
17745 (gdb_wants_all_threads_stopped): New.
17746 (gdb_reattached_process): New.
17747 (handle_status): Clear the `gdb_detached' flag of all processes.
17748 In all-stop, stop all threads.
17749 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17750 (process_serial_event): If the remote connection breaks, or if an
17751 exit was forced with "monitor exit", force an event loop exit.
17752 Handle disconnected tracing on detach.
17753 (handle_serial_event): Adjust.
17754 (handle_target_event): If GDB isn't connected, forward events back
17755 to the inferior, unless the last process exited, in which case,
17756 exit gdbserver. Adjust interface.
17757
17758 * remote-utils.c (remote_open): Don't block in accept. Instead
17759 register an event loop source on the listen socket file
17760 descriptor. Refactor bits into ...
17761 (listen_desc): ... this new global.
17762 (gdb_connected): ... this new function.
17763 (enable_async_notification): ... this new function.
17764 (handle_accept_event): ... this new function.
17765 (remote_close): Clear remote_desc.
17766
17767 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17768
17769 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17770 New fields.
17771 (mourn_inferior): Define.
17772 (target_process_qsupported): Avoid the dangling else problem.
17773 (thread_stopped): Define.
17774 (pause_all): Define.
17775 (target_waitstatus_to_string): Declare.
17776 * target.c (target_waitstatus_to_string): New.
17777
17778 * tracepoint.c (tracing): Make extern.
17779 (disconnected_tracing): New.
17780 (stop_tracing): Make extern. Handle tracing stops due to GDB
17781 disconnecting.
17782 (cmd_qtdisconnected): New.
17783 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17784 (handle_tracepoint_general_set): Handle QTDisconnected.
17785
17786 * event-loop.c (event_handler_func): Change return type to int.
17787 (process_event): Bail out if the event handler wants the event
17788 loop to stop.
17789 (handle_file_event): Ditto.
17790 (start_event_loop): Bail out if the event handler wants the event
17791 loop to stop.
17792
17793 * nto-low.c (nto_target_ops): Adjust.
17794 * spu-low.c (spu_wait): Don't remove the process here.
17795 (spu_target_ops): Adjust.
17796 * win32-low.c (win32_wait): Don't remove the process here.
17797 (win32_target_ops): Adjust.
17798
5d267c4c
PA
177992010-04-11 Pedro Alves <pedro@codesourcery.com>
17800
17801 * regcache.c (realloc_register_cache): Invalidate inferior's
17802 regcache before recreating it.
17803
623ccd72
PA
178042010-04-09 Pedro Alves <pedro@codesourcery.com>
17805
17806 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17807
219f2f23
PA
178082010-04-09 Stan Shebs <stan@codesourcery.com>
17809 Pedro Alves <pedro@codesourcery.com>
17810
17811 * server.h (LONGEST): New.
17812 (struct thread_info) <while_stepping>: New field.
17813 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17814 Declare.
17815 (initialize_tracepoint, handle_tracepoint_general_set)
17816 (handle_tracepoint_query, tracepoint_finished_step)
17817 (tracepoint_was_hit, release_while_stepping_state_list):
17818 (current_traceframe): Declare.
17819 * server.c (handle_general_set): Handle tracepoint packets.
17820 (read_memory): New.
17821 (write_memory): New.
17822 (handle_search_memory_1): Use read_memory.
17823 (handle_query): Report support for conditional tracepoints, trace
17824 state variables, and tracepoint sources. Handle tracepoint
17825 queries.
17826 (main): Initialize the tracepoints module.
17827 (process_serial_event): Handle traceframe reads/writes.
17828
17829 * linux-low.c (handle_tracepoints): New.
17830 (linux_wait_1): Call it.
17831 (linux_resume_one_lwp): Handle while-stepping.
17832 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17833 (linux_target_ops): Install them.
17834 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17835 New field.
17836 * linux-x86-low.c (x86_supports_tracepoints): New.
17837 (the_low_target). Install it.
17838
17839 * mem-break.h (delete_breakpoint): Declare.
17840 * mem-break.c (delete_breakpoint): Make external.
17841
17842 * target.h (struct target_ops): Add `supports_tracepoints',
17843 `read_pc', and `write_pc' fields.
17844 (target_supports_tracepoints): Define.
17845 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17846 (phex_nz): New.
17847
17848 * regcache.h (struct regcache) <registers_owned>: New field.
17849 (init_register_cache, regcache_cpy): Declare.
17850 (regcache_read_pc, regcache_write_pc): Declare.
17851 (register_cache_size): Declare.
17852 (supply_regblock): Declare.
17853 * regcache.c (init_register_cache): New.
17854 (new_register_cache): Use it.
17855 (regcache_cpy): New.
17856 (register_cache_size): New.
17857 (supply_regblock): New.
17858 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17859
219f2f23
PA
17860 * tracepoint.c: New.
17861
17862 * Makefile.in (OBS): Add tracepoint.o.
17863 (tracepoint.o): New rule.
17864
3a13a53b
L
178652010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17866
17867 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17868 (i386-mmx.o): New.
17869 (i386-mmx.c): Likewise.
17870 (i386-mmx-linux.o): Likewise.
17871 (i386-mmx-linux.c): Likewise.
17872
17873 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17874 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17875 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17876 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17877
17878 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17879 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17880 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17881
1570b33e
L
178822010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17883
17884 * Makefile.in (clean): Updated.
17885 (i386-avx.o): New.
17886 (i386-avx.c): Likewise.
17887 (i386-avx-linux.o): Likewise.
17888 (i386-avx-linux.c): Likewise.
17889 (amd64-avx.o): Likewise.
17890 (amd64-avx.c): Likewise.
17891 (amd64-avx-linux.o): Likewise.
17892 (amd64-avx-linux.c): Likewise.
17893
17894 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17895 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17896 (srv_amd64_regobj): Add amd64-avx.o.
17897 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17898 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17899 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17900 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17901 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17902 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17903 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17904
17905 * i387-fp.c: Include "i386-xstate.h".
17906 (i387_xsave): New.
17907 (i387_cache_to_xsave): Likewise.
17908 (i387_xsave_to_cache): Likewise.
17909 (x86_xcr0): Likewise.
17910
17911 * i387-fp.h (i387_cache_to_xsave): Likewise.
17912 (i387_xsave_to_cache): Likewise.
17913 (x86_xcr0): Likewise.
17914
17915 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17916 * linux-crisv32-low.c (target_regsets): Likewise.
17917 * linux-m68k-low.c (target_regsets): Likewise.
17918 * linux-mips-low.c (target_regsets): Likewise.
17919 * linux-ppc-low.c (target_regsets): Likewise.
17920 * linux-s390-low.c (target_regsets): Likewise.
17921 * linux-sh-low.c (target_regsets): Likewise.
17922 * linux-sparc-low.c (target_regsets): Likewise.
17923 * linux-xtensa-low.c (target_regsets): Likewise.
17924
17925 * linux-low.c: Include <sys/uio.h>.
17926 (regsets_fetch_inferior_registers): Support nt_type.
17927 (regsets_store_inferior_registers): Likewise.
17928 (linux_process_qsupported): New.
17929 (linux_target_ops): Add linux_process_qsupported.
17930
17931 * linux-low.h (regset_info): Add nt_type.
17932 (linux_target_ops): Add process_qsupported.
17933
17934 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17935 and <sys/uio.h>.
17936 (init_registers_i386_avx_linux): New.
17937 (init_registers_amd64_avx_linux): Likewise.
17938 (xmltarget_i386_linux_no_xml): Likewise.
17939 (xmltarget_amd64_linux_no_xml): Likewise.
17940 (PTRACE_GETREGSET): Likewise.
17941 (PTRACE_SETREGSET): Likewise.
17942 (x86_fill_xstateregset): Likewise.
17943 (x86_store_xstateregset): Likewise.
17944 (use_xml): Likewise.
17945 (x86_linux_update_xmltarget): Likewise.
17946 (x86_linux_process_qsupported): Likewise.
17947 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17948 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17949 init_registers_i386_linux here. Call
17950 x86_linux_update_xmltarget.
17951 (the_low_target): Add x86_linux_process_qsupported.
17952
17953 * server.c (handle_query): Call target_process_qsupported.
17954
17955 * target.h (target_ops): Add process_qsupported.
17956 (target_process_qsupported): New.
17957
fc7238bb
PA
179582010-04-03 Pedro Alves <pedro@codesourcery.com>
17959
17960 * inferiors.c (add_thread): Set last_status kind to
17961 TARGET_WAITKIND_IGNORE.
17962 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17963 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17964 (linux_wait_1): Move `thread' local definition to block that uses
17965 it. Don't NULL initialize `event_child'.
17966 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17967 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17968 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17969
bdabb078
PA
179702010-04-01 Pedro Alves <pedro@codesourcery.com>
17971
17972 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17973 an extended waitstatus, or by a watchpoint.
17974 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17975 thread was stepping or has been stopped by a watchpoint.
17976
d3bbe7a0
PA
179772010-04-01 Pedro Alves <pedro@codesourcery.com>
17978
17979 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17980 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17981 of another, then delete the previous, and validate all
17982 breakpoints.
17983 (validate_inserted_breakpoint): New.
17984 (delete_disabled_breakpoints): New.
17985 (validate_breakpoints): New.
17986 (check_mem_read): Validate breakpoints before trusting their
17987 shadow. Delete disabled breakpoints.
17988 (check_mem_write): Validate breakpoints before trusting they
17989 should be inserted. Delete disabled breakpoints.
17990 * mem-break.h (validate_breakpoints):
17991 * server.c (handle_query): Validate breakpoints when we see a
17992 qSymbol query.
17993
8b07ae33
PA
179942010-04-01 Pedro Alves <pedro@codesourcery.com>
17995
17996 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17997 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17998 if we could tell there's a GDB breakpoint at stop_pc.
17999 (need_step_over_p): Don't do a step over if we find a GDB
18000 breakpoint at the resume PC.
18001
18002 * mem-break.c (struct raw_breakpoint): New.
18003 (enum bkpt_type): New type `gdb_breakpoint'.
18004 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18005 fields. New field `raw'.
18006 (find_raw_breakpoint_at): New.
18007 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18008 breakpoint instead.
18009 (set_breakpoint_at): Adjust.
18010 (delete_raw_breakpoint): New.
18011 (release_breakpoint): New.
18012 (delete_breakpoint): Rename to...
18013 (delete_breakpoint_1): ... this. Add proc parameter. Use
18014 release_breakpoint. Return ENOENT.
18015 (delete_breakpoint): Reimplement.
18016 (find_breakpoint_at): Delete.
18017 (find_gdb_breakpoint_at): New.
18018 (delete_breakpoint_at): Delete.
18019 (set_gdb_breakpoint_at): New.
18020 (delete_gdb_breakpoint_at): New.
18021 (gdb_breakpoint_here): New.
18022 (set_reinsert_breakpoint): Use release_breakpoint.
18023 (uninsert_breakpoint): Rename to ...
18024 (uninsert_raw_breakpoint): ... this.
18025 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18026 (reinsert_raw_breakpoint): Change parameter type to
18027 raw_breakpoint.
18028 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18029 instead.
18030 (check_breakpoints): Adjust. Use release_breakpoint.
18031 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18032 (breakpoint_inserted_here): Ditto.
18033 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18034 Don't trust the breakpoint's shadow if it is not inserted.
18035 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18036 (delete_all_breakpoints): Adjust.
18037 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18038 use delete_breakpoint_1.
18039
18040 * mem-break.h (breakpoints_supported): Delete declaration.
18041 (set_gdb_breakpoint_at): Declare.
18042 (gdb_breakpoint_here): Declare.
18043 (delete_breakpoint_at): Delete.
18044 (delete_gdb_breakpoint_at): Declare.
18045
18046 * server.h (struct raw_breakpoint): Forward declare.
18047 (struct process_info): New field `raw_breakpoints'.
18048
18049 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18050 breakpoints.
18051
6bf5e0ba
PA
180522010-03-24 Pedro Alves <pedro@codesourcery.com>
18053
18054 * linux-low.c (status_pending_p_callback): Fix comment.
18055 (linux_wait_for_event_1): Move most of the internal breakpoint
18056 handling from here...
18057 (linux_wait_1): ... to here.
18058 (count_events_callback): New.
18059 (select_singlestep_lwp_callback): New.
18060 (select_event_lwp_callback): New.
18061 (cancel_breakpoints_callback): New.
18062 (select_event_lwp): New.
18063 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18064 priority to all LWPs that have had events that should be reported
18065 to the client. Cancel breakpoints when about to reporting the
18066 event to the client, not while stopping lwps. No longer cancel
18067 finished single-steps here.
18068 (cancel_finished_single_step): Delete.
18069 (cancel_finished_single_steps): Delete.
18070
414a389f
PA
180712010-03-24 Pedro Alves <pedro@codesourcery.com>
18072
18073 * mem-break.c (enum bkpt_type): New.
18074 (struct breakpoint): New field `type'.
18075 (set_breakpoint_at): Change return type to struct breakpoint
18076 pointer. Set type to `other_breakpoint' by default.
18077 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18078 in the breakpoint list.
18079 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18080 (reinsert_breakpoint): Rename to ...
18081 (reinsert_raw_breakpoint): ... this.
18082 (reinsert_breakpoints_at): Adjust.
18083 * mem-break.h (struct breakpoint): Declare.
18084 (set_breakpoint_at): Change return type to struct breakpoint
18085 pointer.
18086
2280c721
PA
180872010-03-24 Pedro Alves <pedro@codesourcery.com>
18088
18089 * server.c (handle_query): Assign, not compare.
18090
d50171e4
PA
180912010-03-24 Pedro Alves <pedro@codesourcery.com>
18092
18093 Teach linux gdbserver to step-over-breakpoints.
18094
18095 * linux-low.c (can_hardware_single_step): New.
18096 (supports_breakpoints): New.
18097 (handle_extended_wait): If stopping threads, read the stop pc of
18098 the new cloned LWP.
18099 (get_pc): New.
18100 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18101 low target doesn't support retrieving the PC.
18102 (add_lwp): Set last_resume_kind to resume_continue.
18103 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18104 (linux_attach): Don't clear stop_expected. Set the lwp's
18105 last_resume_kind to resume_stop.
18106 (linux_detach_one_lwp): Don't check for removed breakpoints.
18107 (check_removed_breakpoint): Delete.
18108 (status_pending_p): Rename to ...
18109 (status_pending_p_callback): ... this. Don't check for removed
18110 breakpoints. Don't consider threads that are stopped from GDB's
18111 perspective.
18112 (linux_wait_for_lwp): Always read the stop_pc here.
18113 (cancel_breakpoint): New.
18114 (step_over_bkpt): New global.
18115 (linux_wait_for_event_1): Implement stepping over breakpoints.
18116 (gdb_wants_lwp_stopped): New.
18117 (gdb_wants_all_stopped): New.
18118 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18119 single-step traps here. Store the thread's last reported target
18120 wait status.
18121 (send_sigstop): Don't clear stop_expected. Always set it,
18122 instead.
18123 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18124 (cancel_finished_single_step): New.
18125 (cancel_finished_single_steps): New.
18126 (wait_for_sigstop): Don't cancel finished single-step traps here.
18127 (linux_resume_one_lwp): Don't check for removed breakpoints.
18128 Don't set `step' on non-hardware step archs.
18129 (linux_set_resume_request): Ignore resume_stop requests if already
18130 stopping or stopped. Set the lwp's last_resume_kind.
18131 (resume_status_pending_p): Don't check for removed breakpoints.
18132 (need_step_over_p): New.
18133 (start_step_over): New.
18134 (finish_step_over): New.
18135 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18136 requests. Clear the thread's last reported target waitstatus.
18137 Don't use the `suspended' flag. Don't consider pending breakpoints.
18138 (linux_resume): Start a step-over if necessary.
18139 (proceed_one_lwp): New.
18140 (proceed_all_lwps): New.
18141 (unstop_all_lwps): New.
18142 * linux-low.h (struct lwp_info): Rewrite comment for the
18143 `suspended' flag. Add the `stop_pc' field. Delete the
18144 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18145 Add `'last_resume_kind' and `need_step_over' fields.
18146 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18147 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18148 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18149 (set_raw_breakpoint_at): New.
18150 (set_breakpoint_at): Rewrite to use it.
18151 (reinsert_breakpoint_handler): Delete.
18152 (set_reinsert_breakpoint): New.
18153 (reinsert_breakpoint_by_bp): Delete.
18154 (delete_reinsert_breakpoints): New.
18155 (uninsert_breakpoint): Rewrite.
18156 (uninsert_breakpoints_at): New.
18157 (reinsert_breakpoint): Rewrite.
18158 (reinsert_breakpoints_at): New.
18159 (check_breakpoints): Rewrite.
18160 (breakpoint_here): New.
18161 (breakpoint_inserted_here): New.
18162 (check_mem_read): Adjust.
18163 * mem-break.h (breakpoints_supported, breakpoint_here)
18164 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18165 (reinsert_breakpoint_by_bp): Delete declaration.
18166 (delete_reinsert_breakpoints): Declare.
18167 (reinsert_breakpoint): Delete declaration.
18168 (reinsert_breakpoints_at): Declare.
18169 (uninsert_breakpoint): Delete declaration.
18170 (uninsert_breakpoints_at): Declare.
18171 (check_breakpoints): Adjust prototype.
18172 * server.h: Adjust include order.
18173 (struct thread_info): Declare here. Add a `last_status' field.
18174
30ba68cb
MS
181752010-03-23 Michael Snyder <msnyder@vmware.com>
18176
18177 * server.c (crc32): New function.
18178 (handle_query): Add handling for 'qCRC:' request.
18179
b9a881c2
PA
181802010-03-23 Pedro Alves <pedro@codesourcery.com>
18181
18182 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18183 lwp had been stopped by a watchpoint.
18184
e92d13d5
PA
181852010-03-16 Pedro Alves <pedro@codesourcery.com>
18186
18187 * server.h (internal_error): Declare.
18188 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18189 * utils.c (internal_error): New function.
18190
64daa791
AS
181912010-03-15 Andreas Schwab <schwab@redhat.com>
18192
18193 * configure.srv: Fix typo setting srv_regobj.
18194
f52cd8cd
PA
181952010-03-15 Pedro Alves <pedro@codesourcery.com>
18196
18197 * linux-low.c (fetch_register): Avoid passing a non string literal
18198 format to `error'.
18199 (usr_store_inferior_registers): Ditto.
18200
93ae6fdc
PA
182012010-03-14 Pedro Alves <pedro@codesourcery.com>
18202
18203 * linux-low.c (linux_write_memory): Bail out early if peeking
18204 memory failed.
18205
c3adc08c
PA
182062010-03-14 Pedro Alves <pedro@codesourcery.com>
18207
18208 * linux-low.h (struct lwp_info): New fields
18209 `stopped_by_watchpoint' and `stopped_data_address'.
18210 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18211 here, and cache them in the lwp object.
18212 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18213 directly.
18214 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18215 field.
18216 (linux_stopped_by_watchpoint): Rewrite.
18217 (linux_stopped_data_address): Rewrite.
18218
bce522a2
PA
182192010-03-06 Simo Melenius <simo.melenius@iki.fi>
18220
18221 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18222 switching the current inferior, not before.
18223
90884b2b
L
182242010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18225
18226 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18227 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18228 i386-linux.c and amd64-linux.c.
18229 (reg-i386.o): Removed.
18230 (reg-i386.c): Likewise.
18231 (reg-i386-linux.o): Likewise.
18232 (reg-i386-linux.c): Likewise.
18233 (reg-x86-64.o): Likewise.
18234 (reg-x86-64.c): Likewise.
18235 (reg-x86-64-linux.o): Likewise.
18236 (reg-x86-64-linux.c): Likewise.
18237 (i386.o): New.
18238 (i386.c): Likewise.
18239 (i386-linux.o): Likewise.
18240 (i386-linux.c): Likewise.
18241 (amd64.o): Likewise.
18242 (amd64.c): Likewise.
18243 (amd64-linux.o): Likewise.
18244 (amd64-linux.c): Likewise.
18245
18246 * configure.srv (srv_i386_regobj): New.
18247 (srv_i386_linux_regobj): Likewise.
18248 (srv_amd64_regobj): Likewise.
18249 (srv_amd64_linux_regobj): Likewise.
18250 (srv_i386_32bit_xmlfiles): Likewise.
18251 (srv_i386_64bit_xmlfiles): Likewise.
18252 (srv_i386_xmlfiles): Likewise.
18253 (srv_amd64_xmlfiles): Likewise.
18254 (srv_i386_linux_xmlfiles): Likewise.
18255 (srv_amd64_linux_xmlfiles): Likewise.
18256 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18257 srv_xmlfiles to $srv_i386_xmlfiles.
18258 (i[34567]86-*-mingw32ce*): Likewise.
18259 (i[34567]86-*-mingw*): Likewise.
18260 (i[34567]86-*-nto*): Likewise.
18261 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18262 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18263 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18264 (x86_64-*-linux*): Likewise.
18265
18266 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18267 (init_registers_amd64_linux): New.
18268 (x86_arch_setup): Replace init_registers_x86_64_linux with
18269 init_registers_amd64_linux.
18270
193f13e6
MK
182712010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18272
18273 * configure.ac: Check for libdl. If it is not available link against
18274 static libthread_db.
18275 * configure: Regenerate.
18276
85d721b8
PA
182772010-02-22 Pedro Alves <pedro@codesourcery.com>
18278
18279 PR9605
18280
18281 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18282 handing a read watchpoint.
18283 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18284
6076632b
DE
182852010-02-12 Doug Evans <dje@google.com>
18286
18287 * linux-low.c (linux_supports_tracefork_flag): Document.
18288 (linux_look_up_symbols): Add comment.
18289
3327ccf7
L
182902010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18291
18292 * regcache.c (supply_register): Clear regcache if buf is NULL.
18293
0718675c 182942010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18295 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18296
18297 * inferiors.c (find_inferior): Add function documentation.
18298 (unloaded_dll): Handle the case where the unloaded dll has not
18299 been previously registered in the dll list.
18300
177321bd
DJ
183012010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18302
18303 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18304 (thumb2_breakpoint): New.
18305 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18306
2b009048
DJ
183072010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18308
18309 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18310 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18311 breakpoints.
18312
3be029c7
PA
183132010-01-21 Pedro Alves <pedro@codesourcery.com>
18314
18315 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18316
18f5de3b
JK
183172010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18318
18319 * linux-s390-low.c (s390_collect_ptrace_register)
18320 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18321
3743bb4f
DE
183222010-01-21 Doug Evans <dje@google.com>
18323
14ce3065
DE
18324 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18325 (PTRACE_ARG4_TYPE): New macro.
18326 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18327 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18328 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18329 (usr_store_inferior_registers): Ditto.
18330 (linux_read_memory, linux_write_memory): Ditto.
18331 (linux_test_for_tracefork): Ditto.
18332
3743bb4f
DE
18333 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18334 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18335
8b315be5
PA
183362010-01-21 Pedro Alves <pedro@codesourcery.com>
18337
18338 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18339 target.
18340
85492558
PA
183412010-01-21 Pedro Alves <pedro@codesourcery.com>
18342
18343 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18344 prototype to take a regcache. Adjust.
18345
442ea881
PA
183462010-01-20 Pedro Alves <pedro@codesourcery.com>
18347
18348 * regcache.h (struct thread_info): Forward declare.
18349 (struct regcache): New.
18350 (new_register_cache): Adjust prototype.
18351 (get_thread_regcache): Declare.
18352 (free_register_cache): Adjust prototype.
18353 (registers_to_string, registers_from_string): Ditto.
18354 (supply_register, supply_register_by_name, collect_register)
18355 (collect_register_as_string, collect_register_by_name): Ditto.
18356 * regcache.c (struct inferior_regcache_data): Delete.
18357 (get_regcache): Rename to ...
18358 (get_thread_regcache): ... this. Adjust. Switch inferior before
18359 fetching registers.
18360 (regcache_invalidate_one): Adjust.
18361 (regcache_invalidate): Fix prototype.
18362 (new_register_cache): Return the new register cache.
18363 (free_register_cache): Change prototype.
18364 (realloc_register_cache): Adjust.
18365 (registers_to_string): Change prototype to take a regcache. Adjust.
18366 (registers_from_string): Ditto.
18367 (register_data): Ditto.
18368 (supply_register): Ditto.
18369 (supply_register_by_name): Ditto.
18370 (collect_register): Ditto.
18371 (collect_register_as_string): Ditto.
18372 (collect_register_by_name): Ditto.
18373 * server.c (process_serial_event): Adjust.
18374 * linux-low.h (regset_fill_func, regset_store_func): Change
18375 prototype.
18376 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18377 Change prototype.
18378 * linux-low.c (get_stop_pc): Adjust.
18379 (check_removed_breakpoint): Adjust.
18380 (linux_wait_for_event): Adjust.
18381 (linux_resume_one_lwp): Adjust.
18382 (fetch_register): Add regcache parameter. Adjust.
18383 (usr_store_inferior_registers): Ditto.
18384 (regsets_fetch_inferior_registers): Ditto.
18385 (regsets_store_inferior_registers): Ditto.
18386 (linux_fetch_registers, linux_store_registers): Ditto.
18387 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18388 regcache. Adjust.
43aaf8b6
PA
18389 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18390 Ditto.
442ea881
PA
18391 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18392 prototype to take a regcache.
18393 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18394 * remote-utils.c (convert_ascii_to_int, outreg)
18395 (prepare_resume_reply): Change prototype to take a regcache.
18396 Adjust.
18397 * target.h (struct target_ops) <fetch_registers, store_registers>:
18398 Change prototype to take a regcache.
18399 (fetch_inferior_registers, store_inferior_registers): Change
18400 prototype to take a regcache. Adjust.
18401 * proc-service.c (ps_lgetregs): Adjust.
18402 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18403 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18404 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18405 take a regcache. Adjust.
18406 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18407 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18408 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18409 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18410 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18411 (cris_cannot_fetch_register):
18412 (cris_breakpoint_at): Change prototype to take a regcache.
18413 Adjust.
18414 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18415 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18416 to take a regcache. Adjust.
18417 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18418 Adjust.
18419 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18420 take a regcache. Adjust.
18421 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18422 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18423 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18424 * linux-mips-low.c (mips_get_pc):
18425 (mips_set_pc): Change prototype to take a regcache. Adjust.
18426 (mips_reinsert_addr): Adjust.
18427 (mips_collect_register): Change prototype to take a regcache.
18428 Adjust.
18429 (mips_supply_register):
18430 (mips_collect_register_32bit, mips_supply_register_32bit)
18431 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18432 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18433 * linux-ppc-low.c (ppc_supply_ptrace_register)
18434 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18435 (parse_spufs_run): Adjust.
18436 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18437 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18438 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18439 take a regcache. Adjust.
18440 * linux-s390-low.c (s390_collect_ptrace_register)
18441 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18442 (s390_set_pc): Change prototype to take a regcache. Adjust.
18443 (s390_arch_setup): Adjust.
18444 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18445 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18446 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18447 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18448 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18449 regcache. Adjust.
18450 (sparc_breakpoint_at): Adjust.
18451 * linux-xtensa-low.c (xtensa_fill_gregset):
18452 (xtensa_store_gregset):
18453 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18454 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18455 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18456 prototype to take a regcache. Adjust.
18457 * win32-arm-low.c (arm_fetch_inferior_register)
18458 (arm_store_inferior_register): Change prototype to take a
18459 regcache. Adjust.
18460 * win32-i386-low.c (i386_fetch_inferior_register)
18461 (i386_store_inferior_register): Change prototype to take a
18462 regcache. Adjust.
18463 * win32-low.c (child_fetch_inferior_registers)
18464 (child_store_inferior_registers): Change prototype to take a
18465 regcache. Adjust.
18466 (win32_wait): Adjust.
18467 (win32_fetch_inferior_registers): Change prototype to take a
18468 regcache. Adjust.
18469 (win32_store_inferior_registers): Adjust.
18470 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18471 store_inferior_register>: Change prototype to take a regcache.
18472
60c3d7b0
DE
184732010-01-20 Doug Evans <dje@google.com>
18474
18475 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18476 #ifdef.
18477 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18478 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18479
dc146f7c
VP
184802010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18481
18482 * linux-low.c (linux_core_of_thread): New.
18483 (compare_ints, show_process, list_threads): New.
18484 (linux_qxfer_osdata): Report threads and cores.
18485 (linux_target_op): Register linux_core_of_thread.
18486 * remote-utils.c (prepare_resume_reply): Report the core.
18487 (buffer_xml_printf): Support %d specifier.
18488 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18489 New.
18490 (handle_query): Handle qXfer:threads. Announce availability
18491 thereof.
18492 * target.h (struct target_ops): New field core_of_thread.
18493
7803799a
UW
184942010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18495
18496 * Makefile.in (clean): Remove new generated files.
18497 (reg-s390.o, reg-s390.c): Remove rules.
18498 (reg-s390x.o, reg-s390x.c): Likewise.
18499 (s390-linux32.o, s390-linux32.c): Add rules.
18500 (s390-linux64.o, s390-linux64.c): Likewise.
18501 (s390x-linux64.o, s390x-linux64.c): Likewise.
18502 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18503 * linux-s390-low.c: Include <elf.h>.
18504 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18505 (init_registers_s390): Remove prototype.
18506 (init_registers_s390x): Likewise.
18507 (init_registers_s390_linux32): Add prototype.
18508 (init_registers_s390_linux64): Likewise.
18509 (init_registers_s390x_linux64): Likewise.
18510 (s390_num_regs_3264): New define.
18511 (s390_regmap_3264): New global variable.
18512 (s390_cannot_fetch_register): Remove obsolete check.
18513 (s390_cannot_store_register): Likewise.
18514 (s390_collect_ptrace_register): Handle upper/lower register halves.
18515 (s390_supply_ptrace_register): Likewise.
18516 (s390_fill_gregset): Update to register number changes.
18517 (s390_get_hwcap): New routine.
18518 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18519 Install appropriate regmap and register set.
18520
6e7ffa39
JB
185212010-01-01 Joel Brobecker <brobecker@adacore.com>
18522
18523 * server.c (gdbserver_version): Update copyright year to 2010.
18524 * gdbreplay.c (gdbreplay_version): Likewise.
18525
957f3f49
DE
185262009-12-28 Doug Evans <dje@google.com>
18527
18528 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18529 elf/external.h. Include <elf.h> instead but only if necessary.
18530
ca5c370d
PA
185312009-12-28 Pedro Alves <pedro@codesourcery.com>
18532
18533 * linux-low.c (linux_remove_process): Remove `detaching'
18534 parameter. Don't release/detach from thread_db here.
18535 (linux_kill): Release/detach from thread_db here, ...
18536 (linux_detach): ... and here, before actually detaching.
18537 (linux_wait_1): ... and here, when a process exits.
18538 * thread-db.c (any_thread_of): New.
18539 (thread_db_free): Switch the current inferior to a thread of the
18540 passed in process.
18541
4ee62156
DE
185422009-12-21 Doug Evans <dje@google.com>
18543
d90e6a88
DE
18544 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18545
c5f62d5f
DE
18546 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18547 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18548 warning ifndef __NR_tkill. Move setting of errno there too.
18549 Delete unnecessary resetting of errno after syscall.
18550 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18551
10e86dd7
DE
18552 * configure.ac: Check for dladdr.
18553 * config.in: Regenerate.
18554 * configure: Regenerate.
18555 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18556 (try_thread_db_load): Update.
18557
4ee62156
DE
18558 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18559
00f515da
DE
185602009-12-18 Doug Evans <dje@google.com>
18561
e9464885
DE
18562 * event-loop.c: Include unistd.h if it exists.
18563
07d4f67e
DE
18564 * linux-low.c (my_waitpid): Move definition away from being in
18565 between linux_tracefork_child/linux_test_for_tracefork.
18566
00f515da
DE
18567 * gdb_proc_service.h (psaddr_t): Fix type.
18568 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18569 signature to match glibc.
18570
1de1badb
DE
185712009-12-16 Doug Evans <dje@google.com>
18572
18573 * linux-low.c (linux_read_memory): Fix argument to read.
18574
aeeb81d1
PA
185752009-11-26 Pedro Alves <pedro@codesourcery.com>
18576
18577 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18578 events, don't leave current_inferior pointing at null.
18579
10357975
PA
185802009-11-26 Pedro Alves <pedro@codesourcery.com>
18581
18582 * win32-low.c (LOG): Delete.
18583 (OUTMSG): Output to stderr.
18584 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18585 on compile time LOG macro.
18586 (win32_wait): Fix debug output.
18587
cf6e3471
PA
185882009-11-26 Pedro Alves <pedro@codesourcery.com>
18589
18590 * win32-low.c (win32_add_one_solib): If the dll name is
18591 "ntdll.dll", prepend the system directory to the dll path.
18592
0c85e18e
MK
185932009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18594
18595 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18596
9ac544ce 185972009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18598 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18599
18600 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18601 * configure.ac: Check for __mcoldfire__ and set
18602 gdb_cv_m68k_is_coldfire.
18603 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18604 reg-cf.o and reg-m68k.o.
18605 * configure: Regenerated.
18606
fd7dd3e6
PA
186072009-11-16 Pedro Alves <pedro@codesourcery.com>
18608
18609 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18610 Pass it to thread_db_free.
18611 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18612 proper `detaching' argument to linux_remove_process.
18613 * linux-low.h (thread_db_free): Add `detaching' parameter.
18614 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18615 to thread_db_free.
18616 (thread_db_free): Add `detaching' parameter. Only
18617 call td_ta_clear_event if detaching from process.
18618
75aa492e
MK
186192009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18620
18621 * thread-db.c (thread_db_free): Fix typo.
18622
21e1bee4
PP
186232009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18624
18625 PR gdb/10838
18626 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18627
8838b45e
NS
186282009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18629
18630 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18631 with an i686 compiler.
18632 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18633 needed.
18634 * configure: Rebuilt.
18635
8a35fb51
SL
186362009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18637
18638 PR gdb/10783
18639
18640 * server.c (handle_search_memory_1): Correct read_addr initialization
18641 in loop for searching subsequent chunks.
18642
96f15937
PP
186432009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18644
18645 * configure.ac: New --with-libthread-db option.
18646 * thread-db.c: Allow direct dependence on libthread_db.
18647 (thread_db_free): Adjust.
18648 * config.in: Regenerate.
18649 * configure: Likewise.
889bf7c5 18650
5f7d1694
PP
186512009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18652
18653 PR gdb/10757
18654 * thread-db.c (attach_thread): New function.
18655 (maybe_attach_thread): Return success/failure.
18656 (find_new_threads_callback): Adjust.
889bf7c5
PA
18657 (thread_db_find_new_threads): Loop until no new threads.
18658
88e3b899
PA
186592009-10-13 Pedro Alves <pedro@codesourcery.com>
18660
18661 * proc-service.c (ps_lgetregs): Formatting.
18662
cdbfd419
PP
186632009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18664
18665 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18666 * configure.ac: Adjust.
18667 * linux-low.h (struct process_info_private): Move members to struct
18668 thread_db.
18669 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18670 * linux-low.c (linux_remove_process): Adjust.
18671 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18672 * server.c (handle_query): Move code ...
18673 (handle_monitor_command): ... here. New function.
18674 * target.h (struct target_ops): New member.
18675 * thread-db.c (struct thread_db): New.
18676 (libthread_db_search_path): New variable.
18677 (thread_db_create_event, thread_db_enable_reporting)
18678 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18679 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18680 (try_thread_db_load_1, dladdr_to_soname): New functions.
18681 (try_thread_db_load, thread_db_load_search): New functions.
18682 (thread_db_init): Search for libthread_db.
18683 (thread_db_free): New function.
18684 (thread_db_handle_monitor_command): Likewise.
18685 * config.in: Regenerate.
18686 * configure: Regenerate.
889bf7c5 18687
4168d2d6
UW
186882009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18689
18690 * spu-low.c (spu_kill): Wait for inferior to terminate.
18691 Call clear_inferiors.
18692 (spu_detach): Call clear_inferiors.
18693
81ecdfbb
RW
186942009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18695
18696 * aclocal.m4: Regenerate.
18697 * config.in: Likewise.
18698 * configure: Likewise.
18699
0b9ff2c0
UW
187002009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18701
18702 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18703 (parse_spufs_run): New function.
18704 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18705 (ppc_breakpoint_at): Handle SPU breakpoints.
18706
efcbbd14
UW
187072009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18708
18709 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18710 (SPUFS_MAGIC): Define.
18711 (spu_enumerate_spu_ids): New function.
18712 (linux_qxfer_spu): New function.
18713 (linux_target_ops): Install linux_qxfer_spu.
18714
f4d9bade
UW
187152009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18716
18717 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18718 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18719 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18720 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18721 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18722 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18723 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18724 (init_registers_powerpc_cell32l): Add prototype.
18725 (init_registers_powerpc_cell64l): Likewise.
18726 (ppc_arch_setup): Detect Cell/B.E. architecture.
18727
96e946ca
RW
187282009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18729
18730 * Makefile.in (datarootdir): New variable.
18731
58d6951d
DJ
187322009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18733
18734 * linux-low.c (linux_write_memory): Update debugging output.
18735 * Makefile.in (clean): Add new descriptions.
18736 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18737 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18738 * configure.srv: Add new files for arm*-*-linux*.
18739 * linux-arm-low.c: Add new declarations.
18740 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18741 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18742 (HWCAP_VFPv3D16): New.
18743 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18744 instead of __IWMMXT__.
18745 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18746 (arm_arch_setup): New.
18747 (target_regsets): Remove #ifdef. Add VFP regset.
18748 (the_low_target): Use arm_arch_setup.
18749
12b42a12
DJ
187502009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18751
18752 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18753 the main thread again.
18754
ac8c974e
AR
187552009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18756
18757 Adding Neutrino gdbserver.
18758 * configure: Regenerated.
18759 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18760 * configure.srv (i[34567]86-*-nto*): New target.
18761 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18762 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18763 (nto_comctrl) [__QNX__]: New function.
18764 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18765
4424e0c3 187662009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18767
18768 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18769 srv_tgtobj.
18770
912cf4ba
PA
187712009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18772 Pedro Alves <pedro@codesourcery.com>
18773
18774 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18775 don't support CONTEXT_EXTENDED_REGISTERS.
18776 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18777 (the_low_target): Install them.
18778 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18779 failing with ERROR_PIPE_NOT_CONNECTED.
18780
aa5ca48f
DE
187812009-06-30 Doug Evans <dje@google.com>
18782 Pierre Muller <muller@ics.u-strasbg.fr>
18783
18784 Add h/w watchpoint support to x86-linux, win32-i386.
18785 * Makefile.in (SFILES): Add i386-low.c
18786 (i386_low_h): Define.
18787 (i386-low.o): Add dependencies.
18788 (linux-x86-low.o): Add i386-low.h dependency.
18789 (win32-i386-low.o): Ditto.
18790 * i386-low.c: New file.
18791 * i386-low.h: New file.
18792 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18793 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18794 * linux-low.c (linux_add_process): Initialize arch_private.
18795 (linux_remove_process): Free arch_private.
18796 (add_lwp): Initialize arch_private.
18797 (delete_lwp): Free arch_private.
18798 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18799 provided.
18800 * linux-low.h (process_info_private): New member arch_private.
18801 (lwp_info): New member arch_private.
18802 (linux_target_ops): New members new_process, new_thread,
18803 prepare_to_resume.
18804 (ptid_of): New macro.
18805 * linux-x86-low.c: Include stddef.h, i386-low.h.
18806 (arch_process_info): New struct.
18807 (arch_lwp_info): New struct.
18808 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18809 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18810 (i386_dr_low_get_status): New function.
18811 (x86_insert_point, x86_remove_point): New functions.
18812 (x86_stopped_by_watchpoint): New function.
18813 (x86_stopped_data_address): New function.
18814 (x86_linux_new_process, x86_linux_new_thread): New functions.
18815 (x86_linux_prepare_to_resume): New function.
18816 (the_low_target): Add entries for insert_point, remove_point,
18817 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18818 prepare_to_resume.
18819 * server.c (debug_hw_points): New global.
18820 (monitor_show_help): Document set debug-hw-points.
18821 (handle_query): Process "set debug-hw-points".
18822 * server.h (debug_hw_points): Declare.
18823 (paddress): Declare.
18824 * utils.c (NUMCELLS, CELLSIZE): New macros.
18825 (get_sell, xsnprintf, paddress): New functions.
18826 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18827 remove_point, stopped_by_watchpoint, stopped_data_address.
18828 * win32-i386-low.c: Include i386-low.h.
18829 (debug_reg_state): Replaces dr.
18830 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18831 (i386_dr_low_get_status): New function.
18832 (i386_insert_point, i386_remove_point): New functions.
18833 (i386_stopped_by_watchpoint): New function.
18834 (i386_stopped_data_address): New function.
18835 (i386_initial_stuff): Update.
18836 (get_thread_context,set_thread_context,i386_thread_added): Update.
18837 (the_low_target): Add entries for insert_point,
18838 remove_point, stopped_by_watchpoint, stopped_data_address.
18839 * win32-low.c (win32_insert_watchpoint): New function.
18840 (win32_remove_watchpoint): New function.
18841 (win32_stopped_by_watchpoint): New function.
18842 (win32_stopped_data_address): New function.
18843 (win32_target_ops): Add entries for insert_watchpoint,
18844 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18845 * win32-low.h (win32_target_ops): New members insert_point,
18846 remove_point, stopped_by_watchpoint, stopped_data_address.
18847
d993e290
PA
188482009-06-25 Pedro Alves <pedro@codesourcery.com>
18849
18850 * server.c (process_serial_event): Re-return unsupported, not
18851 error, if the type isn't recognized. Re-allow supporting only
18852 insert or remove packets. Also call require_running for
18853 breakpoints. Add missing break statement to default case. Tidy.
18854 * target.h (struct target_ops): Rename insert_watchpoint to
18855 insert_point, and remove_watchpoint to remove_point.
18856
18857 * linux-low.h (struct linux_target_ops): Likewise.
18858 * linux-low.c (linux_insert_watchpoint): Rename to ...
18859 (linux_insert_point): ... this. Adjust.
18860 (linux_remove_watchpoint): Rename to ...
18861 (linux_remove_point): ... this. Adjust.
18862 (linux_target_ops): Adjust.
18863 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18864 (cris_insert_point): ... this.
18865 (cris_remove_watchpoint): Rename to ...
18866 (cris_remove_point): ... this.
18867 (the_low_target): Adjust.
18868
0f54c268
PM
188692009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18870
18871 * server.c (handle_v_kill): Pass signal_pid to
18872 kill_inferior if multi_process is zero.
18873
c6314022
AR
188742009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18875
18876 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18877 * target.h (target_ops): Comment for *_watchpoint to make it clear
18878 the functions can get types '0' and '1'.
18879
4463ce24
AR
188802009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18881
18882 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18883 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18884 * regcache.c (get_regcache): Likewise.
18885 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18886 * win32-low.c (child_fetch_inferior_registers): Remove check for
18887 regno 0.
18888
cf8fd78b
PA
188892009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18890 Pedro Alves <pedro@codesourcery.com>
18891
18892 * target.h (struct target_ops) <supports_multi_process>: New
18893 callback.
18894 (target_supports_multi_process): New.
18895 * server.c (handle_query): Even if GDB reports support, only
18896 enable multi-process if the target also supports it. Report
18897 multi-process support only if the target backend supports it.
18898 * linux-low.c (linux_supports_multi_process): New function.
18899 (linux_target_ops): Install it as target_supports_multi_process
18900 callback.
18901
47c0c975
DE
189022009-05-24 Doug Evans <dje@google.com>
18903
e09875d4
DE
18904 Global renaming of find_thread_pid to find_thread_ptid.
18905 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18906 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18907 All callers updated.
18908
e27d73f6
DE
18909 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18910 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18911 directly.
18912
47c0c975
DE
18913 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18914 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18915 (linux_resume_one_lwp): Ditto.
18916
2acc282a
DE
189172009-05-23 Doug Evans <dje@google.com>
18918
18919 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18920 from struct inferior_list_entry * to struct lwp_info *.
18921 All callers updated.
18922
9f1036c1
DE
189232009-05-13 Doug Evans <dje@google.com>
18924
18925 * linux-x86-low.c: Don't include assert.h.
18926 (x86_siginfo_fixup): Use fatal, not assert.
18927 (x86_arch_setup): Fix comment.
18928
d0722149
DE
189292009-05-12 Doug Evans <dje@google.com>
18930
18931 Biarch support for i386/amd64 gdbserver.
18932 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18933 Add linux-x86-low.c.
18934 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18935 (linux-x86-low.o): Add.
18936 * linux-x86-64-low.c: Delete.
18937 * linux-i386-low.c: Delete.
18938 * linux-x86-low.c: New file.
18939 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18940 linux-x86-low.o.
18941 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18942 linux-x86-low.o.
18943 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18944 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18945 (linux_child_pid_to_exec_file): New function.
18946 (elf_64_header_p, elf_64_file_p): New functions.
18947 (siginfo_fixup): New function.
18948 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18949 give target a chance to convert layout.
18950 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18951 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18952
fdeb2a12
DE
189532009-05-07 Doug Evans <dje@google.com>
18954
18955 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18956 (regsets_store_inferior_registers): Ditto.
18957
a6dbe5df
PA
189582009-05-06 Pedro Alves <pedro@codesourcery.com>
18959
18960 PR server/10048
18961
18962 * linux-low.c (must_set_ptrace_flags): Delete.
18963 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18964 of the global.
18965 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18966 `lwp->must_set_ptrace_flags' instead.
ba42693b 18967 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18968 (linux_wait_1): ... not here.
18969
5091eb23
DE
189702009-04-30 Doug Evans <dje@google.com>
18971
9f767825
DE
18972 * inferiors.c (started_inferior_callback): New function.
18973 (attached_inferior_callback): New function.
18974 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18975 * server.c (print_started_pid, print_attached_pid): New functions.
18976 (detach_or_kill_for_exit): New function.
18977 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18978 * server.h (have_started_inferiors_p): Declare.
18979 (have_attached_inferiors_p): Declare.
18980
5091eb23
DE
18981 * inferiors.c (remove_process): Fix memory leak, free process.
18982 * linux-low.c (linux_remove_process): New function.
18983 (linux_kill): Call it instead of remove_process.
18984 (linux_detach, linux_wait_1): Ditto.
18985
155c8968
PA
189862009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18987
18988 * configure.srv: Add x86 Windows CE target.
18989
7fe519cb
UW
189902009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18991
18992 * inferiors.c (get_thread_process): Make global.
18993 * server.h (get_thread_process): Add prototype.
18994 * thread-db.c (find_one_thread): Use get_thread_process
18995 instead of current_process.
18996 (thread_db_get_tls_address): Do not crash if called when
18997 thread layer is not yet initialized.
18998
5472f405
UW
189992009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19000
19001 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19002 * spu-low.c (current_tid): Rename to ...
19003 (current_ptid): ... this.
19004 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19005 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19006 ptid_get_lwp (current_ptid) instead of current_tid.
19007 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19008 instead of current_tid. Use find_process_pid to verify pid
19009 argument is valid. Pass proper argument to remove_process.
19010 (spu_thread_alive): Compare current_ptid instead of current_tid.
19011 (spu_resume): Likewise.
19012
55ac2b99
PA
190132009-04-02 Pedro Alves <pedro@codesourcery.com>
19014
19015 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19016 variable.
19017
95954743
PA
190182009-04-01 Pedro Alves <pedro@codesourcery.com>
19019
19020 Implement the multiprocess extensions, and add linux multiprocess
19021 support.
19022
19023 * server.h (ULONGEST): Declare.
19024 (struct ptid, ptid_t): New.
19025 (minus_one_ptid, null_ptid): Declare.
19026 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19027 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19028 (struct inferior_list_entry): Change `id' type from unsigned from
19029 to ptid_t.
19030 (struct sym_cache, struct breakpoint, struct
19031 process_info_private): Forward declare.
19032 (struct process_info): Declare.
19033 (current_process): Declare.
19034 (all_processes): Declare.
19035 (initialize_inferiors): Declare.
19036 (add_thread): Adjust to use ptid_t.
19037 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19038 (add_process, remove_process, find_thread_pid): Declare.
19039 (find_inferior_id): Adjust to use ptid_t.
19040 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19041 (multi_process): Declare.
19042 (push_event): Adjust to use ptid_t.
19043 (read_ptid, write_ptid): Declare.
19044 (prepare_resume_reply): Adjust to use ptid_t.
19045 (clear_symbol_cache): Declare.
19046 * inferiors.c (all_processes): New.
19047 (null_ptid, minus_one_ptid): New.
19048 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19049 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19050 (add_thread): Change unsigned long to ptid. Remove gdb_id
19051 parameter. Adjust.
19052 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19053 (gdb_id_to_thread): Rename to ...
19054 (find_thread_pid): ... this. Change unsigned long to ptid.
19055 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19056 (loaded_dll, pull_pid_from_list): Adjust.
19057 (add_process, remove_process, find_process_pid)
19058 (get_thread_process, current_process, initialize_inferiors): New.
19059 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19060 (struct target_waitstatus) <related_pid>: Ditto.
19061 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19062 return type to int.
19063 (struct target_ops) <join>: Add `pid' argument.
19064 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19065 (struct target_ops) <wait>: Add `ptid' field. Change return type
19066 to ptid.
19067 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19068 (mywait): Add `ptid' argument. Change return type to ptid_t.
19069 (target_pid_to_str): Declare.
19070 * target.c (set_desired_inferior): Adjust to use ptids.
19071 (mywait): Add new `ptid' argument. Adjust.
19072 (target_pid_to_str): New.
19073 * mem-break.h (free_all_breakpoints): Declare.
19074 * mem-break.c (breakpoints): Delelete.
19075 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19076 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19077 to use per-process breakpoint list.
19078 (free_all_breakpoints): New.
19079 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19080 (symbol_cache, all_symbols_looked_up): Delete.
19081 (hexchars): New.
19082 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19083 read_ptid): New.
19084 (prepare_resume_reply): Change ptid argument's type from unsigned
19085 long to ptid_t. Adjust. Implement W;process and X;process.
19086 (free_sym_cache, clear_symbol_cache): New.
19087 (look_up_one_symbol): Adjust to per-process symbol cache. *
19088 * server.c (cont_thread, general_thread, step_thread): Change type
19089 to ptid_t.
19090 (attached): Delete.
19091 (multi_process): New.
19092 (last_ptid): Change type to ptid_t.
19093 (struct vstop_notif) <ptid>: Change type to ptid_t.
19094 (queue_stop_reply, push_event): Change `ptid' argument's type to
19095 ptid_t.
19096 (discard_queued_stop_replies): Add `pid' argument.
19097 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19098 changes. Don't reference the `attached' global.
19099 (attach_inferior): Adjust to mywait interface changes.
19100 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19101 features. Handle and report "multiprocess+". Handle
19102 "qAttached:PID".
19103 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19104 changes.
19105 (handle_v_kill): New.
19106 (handle_v_stopped): Adjust to use target_pid_to_str.
19107 (handle_v_requests): Allow multiple attaches and runs when
19108 multiprocess extensions are in effect. Handle "vKill".
19109 (myresume): Adjust to use ptids.
19110 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19111 (handle_status): Adjust to discard_queued_stop_replies interface
19112 change.
19113 (first_thread_of, kill_inferior_callback)
19114 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19115 (main): Call initialize_inferiors. Adjust to use ptids, killing
19116 and detaching from all inferiors. Handle multiprocess packet
19117 variants.
19118 * linux-low.h: Include gdb_proc_service.h.
19119 (struct process_info_private): New.
19120 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19121 <lwpid_of>: Use ptid_get_lwp.
19122 (get_lwp_thread): Adjust.
19123 (struct lwp_info): Add `dead' member.
19124 (find_lwp_pid): Declare.
19125 * linux-low.c (thread_db_active): Delete.
19126 (new_inferior): Adjust comment.
19127 (inferior_pid): Delete.
19128 (linux_add_process): New.
19129 (handle_extended_wait): Adjust.
19130 (add_lwp): Change unsigned long to ptid.
19131 (linux_create_inferior): Add process to processes table. Adjust
19132 to use ptids. Don't set new_inferior here.
19133 (linux_attach_lwp): Rename to ...
19134 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19135 it. Adjust to use ptids.
19136 (linux_attach_lwp): New.
19137 (linux_attach): Add process to processes table. Don't set
19138 new_inferior here.
19139 (struct counter): New.
19140 (second_thread_of_pid_p, last_thread_of_process_p): New.
19141 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19142 multiple processes.
19143 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19144 processes. Remove process from process table.
19145 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19146 to multiple processes.
19147 (any_thread_of): New.
19148 (linux_detach): Add `pid' argument, and handle it. Remove process
19149 from processes table.
19150 (linux_join): Add `pid' argument. Handle it.
19151 (linux_thread_alive): Change unsighed long argument to ptid_t.
19152 Consider dead lwps as not being alive.
19153 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19154 threads we're not interested in.
19155 (same_lwp, find_lwp_pid): New.
19156 (linux_wait_for_lwp): Change `pid' argument's type from int to
19157 ptid_t. Adjust.
19158 (linux_wait_for_event): Rename to ...
19159 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19160 from int to ptid_t. Adjust.
19161 (linux_wait_for_event): New.
19162 (linux_wait_1): Add `ptid' argument. Change return type to
19163 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19164 that exit from the process table.
19165 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19166 Adjust.
19167 (mark_lwp_dead): New.
19168 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19169 stopping all threads, mark its main lwp as dead.
19170 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19171 ptids.
19172 (fetch_register, usr_store_inferior_registers)
19173 (regsets_fetch_inferior_registers)
19174 (regsets_store_inferior_registers, linux_read_memory)
19175 (linux_write_memory): Inline `inferior_pid'.
19176 (linux_look_up_symbols): Adjust to use per-process
19177 `thread_db_active'.
19178 (linux_request_interrupt): Adjust to use ptids.
19179 (linux_read_auxv): Inline `inferior_pid'.
19180 (initialize_low): Don't reference thread_db_active.
19181 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19182 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19183 (ps_getpid): Return the pid of the current inferior.
19184 * thread-db.c (proc_handle, thread_agent): Delete.
19185 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19186 per-process data.
19187 (find_one_thread): Change argument type to ptid_t. Adjust to
19188 per-process data.
19189 (maybe_attach_thread): Adjust to per-process data and ptids.
19190 (thread_db_find_new_threads): Ditto.
19191 (thread_db_init): Ditto.
19192 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19193 processes table. Adjust to use ptids.
19194 (spu_kill, spu_detach): Adjust interface. Remove process from
19195 processes table.
19196 (spu_join, spu_thread_alive): Adjust interface.
19197 (spu_wait): Adjust interface. Remove process from processes
19198 table. Adjust to use ptids.
19199 * win32-low.c (current_inferior_tid): Delete.
19200 (current_inferior_ptid): New.
19201 (debug_event_ptid): New.
19202 (thread_rec): Take a ptid. Adjust.
19203 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19204 (child_delete_thread): Ditto.
19205 (do_initial_child_stuff): Add `attached' argument. Add process to
19206 processes table.
19207 (child_fetch_inferior_registers, child_store_inferior_registers):
19208 Adjust.
19209 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19210 (win32_attach): Pass 1 to do_initial_child_stuff.
19211 (win32_kill): Adjust interface. Remove process from processes
19212 table.
19213 (win32_detach): Ditto.
19214 (win32_join): Adjust interface.
19215 (win32_thread_alive): Take a ptid.
19216 (win32_resume): Adjust to use ptids.
19217 (get_child_debug_event): Ditto.
19218 (win32_wait): Adjust interface. Remove exiting process from
19219 processes table.
19220
bd99dc85
PA
192212009-04-01 Pedro Alves <pedro@codesourcery.com>
19222
19223 Non-stop mode support.
19224
19225 * server.h (non_stop): Declare.
19226 (gdb_client_data, handler_func): Declare.
19227 (delete_file_handler, add_file_handler, start_event_loop):
19228 Declare.
19229 (handle_serial_event, handle_target_event, push_event)
19230 (putpkt_notif): Declare.
19231 * target.h (enum resume_kind): New.
19232 (struct thread_resume): Replace `step' field by `kind' field.
19233 (TARGET_WNOHANG): Define.
19234 (struct target_ops) <wait>: Add `options' argument.
19235 <supports_non_stop, async, start_non_stop>: New fields.
19236 (target_supports_non_stop, target_async): New.
19237 (start_non_stop): Declare.
19238 (mywait): Add `options' argument.
19239 * target.c (mywait): Add `options' argument. Print child exit
19240 notifications here.
19241 (start_non_stop): New.
19242 * server.c (non_stop, own_buf, mem_buf): New globals.
19243 (struct vstop_notif): New.
19244 (notif_queue): New global.
19245 (queue_stop_reply, push_event, discard_queued_stop_replies)
19246 (send_next_stop_reply): New.
19247 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19248 interface changes.
19249 (attach_inferior): In non-stop mode, don't wait for the target
19250 here.
19251 (handle_general_set): Handle QNonStop.
19252 (handle_query): When handling qC, return the current general
19253 thread, instead of the first thread of the list.
19254 (handle_query): If the backend supports non-stop mode, include
19255 QNonStop+ in the qSupported query response.
19256 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19257 and non-stop mode.
19258 (handle_v_attach, handle_v_run): Handle non-stop mode.
19259 (handle_v_stopped): New.
19260 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19261 (myresume): Adjust to use resume_kind. Handle non-stop.
19262 (queue_stop_reply_callback): New.
19263 (handle_status): Handle non-stop mode.
19264 (main): Clear non_stop flag on reconnection. Use the event-loop.
19265 Refactor serial protocol handling from here ...
19266 (process_serial_event): ... to this new function. When GDB
19267 selects any thread, select one here. In non-stop mode, wait until
19268 GDB acks all pending events before exiting.
19269 (handle_serial_event, handle_target_event): New.
19270 * remote-utils.c (remote_open): Install remote_desc in the event
19271 loop.
19272 (remote_close): Remove remote_desc from the event loop.
19273 (putpkt_binary): Rename to...
19274 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19275 (putpkt_binary): New as wrapper around putpkt_binary_1.
19276 (putpkt_notif): New.
19277 (prepare_resume_reply): In non-stop mode, don't change the
19278 general_thread.
19279 * event-loop.c: New.
19280 * Makefile.in (OBJ): Add event-loop.o.
19281 (event-loop.o): New rule.
19282
19283 * linux-low.h (pid_of): Moved here.
19284 (lwpid_of): New.
19285 (get_lwp_thread): Use lwpid_of.
19286 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19287 * linux-low.c (pid_of): Delete.
19288 (inferior_pid): Use lwpid_of.
19289 (linux_event_pipe): New.
19290 (target_is_async_p): New.
19291 (delete_lwp): New.
19292 (handle_extended_wait): Use lwpid_of.
19293 (add_lwp): Don't set lwpid field.
19294 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19295 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19296 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19297 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19298 first. Adjust to linux_wait_for_event interface changes. Use
19299 lwpid_of.
19300 (linux_detach): Don't delete the main lwp here.
19301 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19302 (status_pending_p): Don't consider explicitly suspended lwps.
19303 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19304 pointer. Add OPTIONS argument. Change return type to int. Use
19305 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19306 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19307 pointer. Add status pointer argument. Return a pid instead of a
19308 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19309 changes. In non-stop mode, don't switch to a random thread.
19310 (linux_wait): Rename to...
19311 (linux_wait_1): ... this. Add target_options argument, and handle
19312 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19313 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19314 clean exit and signal exit code. Don't stop all threads in
19315 non-stop mode. In all-stop mode, only stop all threads when
19316 reporting a stop to GDB. Handle explicit thread stop requests.
19317 (async_file_flush, async_file_mark): New.
19318 (linux_wait): New.
19319 (send_sigstop): Use lwpid_of.
19320 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19321 interface changes. In non-stop mode, don't switch to a random
19322 thread.
19323 (linux_resume_one_lwp): Use lwpid_of.
19324 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19325 (linux_resume_one_thread): ... this. Handle resume_stop. In
19326 non-stop mode, don't look for pending flag in all threads.
19327 (resume_status_pending_p): Don't consider explicitly suspended
19328 threads.
19329 (my_waitpid): Reimplement. Emulate __WALL.
19330 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19331 Use lwpid_of.
19332 (sigchld_handler, linux_supports_non_stop, linux_async)
19333 (linux_start_non_stop): New.
19334 (linux_target_ops): Register linux_supports_non_stop, linux_async
19335 and linux_start_non_stop.
19336 (initialize_low): Install SIGCHLD handler.
19337 * thread-db.c (thread_db_create_event, find_one_thread)
19338 (thread_db_get_tls_address): Use lwpid_of.
19339 * win32-low.c (win32_detach): Adjust to use resume_kind.
19340 (win32_wait): Add `options' argument.
19341 * spu-low.c (spu_resume): Adjust to use resume_kind.
19342 (spu_wait): Add `options' argument.
19343
5b1c542e
PA
193442009-04-01 Pedro Alves <pedro@codesourcery.com>
19345
19346 Decouple target code from remote protocol.
19347
19348 * target.h (enum target_waitkind): New.
19349 (struct target_waitstatus): New.
19350 (struct target_ops) <wait>: Return an unsigned long. Take a
19351 target_waitstatus pointer instead of a char pointer.
19352 (mywait): Likewise.
19353 * target.c (mywait): Change prototype to return an unsigned long.
19354 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19355 * server.h (thread_from_wait, old_thread_from_wait): Delete
19356 declarations.
19357 (prepare_resume_reply): Change prototype to take a
19358 target_waitstatus.
19359 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19360 (last_status, last_ptid): New.
19361 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19362 pid instead of a signal.
19363 (attach_inferior): Remove "status" and "signal" parameters.
19364 Adjust.
19365 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19366 not as an address.
19367 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19368 (handle_v_requests, myresume): Remove "status" and "signal"
19369 parameters. Adjust.
19370 (handle_status): New.
19371 (main): Delete local `status'. Adjust.
19372 * remote-utils.c: Include target.h.
19373 (prepare_resume_reply): Change prototype to take a
19374 target_waitstatus. Adjust.
19375
19376 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19377 interface.
19378 * spu-low.c (spu_wait): Adjust.
19379 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19380 Delete.
19381 (win32_wait): Adjust.
19382
2bd7c093
PA
193832009-04-01 Pedro Alves <pedro@codesourcery.com>
19384
19385 * target.h (struct thread_resume): Delete leave_stopped member.
19386 (struct target_ops): Add a `n' argument to the `resume' callback.
19387 * server.c (start_inferior): Adjust.
19388 (handle_v_cont, myresume): Adjust.
19389 * linux-low.c (check_removed_breakpoint): Adjust to resume
19390 interface change, and to removed leave_stopped field.
19391 (resume_ptr): Delete.
19392 (struct thread_resume_array): New.
19393 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19394 resume interface change.
19395 (linux_continue_one_thread, linux_queue_one_thread)
19396 (resume_status_pending_p): Check if the resume field is NULL
19397 instead of checking the leave_stopped member.
19398 (linux_resume): Adjust to the target resume interface change.
19399 * spu-low.c (spu_resume): Adjust to the target resume interface
19400 change.
19401 * win32-low.c (win32_detach, win32_resume): Ditto.
19402
c35fafde
PA
194032009-04-01 Pedro Alves <pedro@codesourcery.com>
19404
19405 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19406 flag.
19407 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19408 pending.
19409 (linux_continue_one_thread): Only preserve the stepping flag if
19410 there's a pending breakpoint.
19411
0a59d50b
PA
194122009-03-31 Pedro Alves <pedro@codesourcery.com>
19413
19414 * server.c (main): After the inferior having exited, call
19415 remote_close before exiting gdbserver.
19416
f04c6d38
TJB
194172009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19418
19419 Fix size of FPSCR in Power 7 processors.
19420 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19421 (PPC_FEATURE_HAS_DFP): New #define.
19422 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19423 size of the FPSCR.
19424
78e5cee6
PA
194252009-03-23 Pedro Alves <pedro@codesourcery.com>
19426
19427 * server.c (handle_query) Whitespace and formatting.
19428
1b3f6016
PA
194292009-03-22 Pedro Alves <pedro@codesourcery.com>
19430
19431 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19432 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19433 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19434 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19435 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19436 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19437 Makefile.in, configure.ac: Fix whitespace throughout.
19438 * configure: Regenerate.
19439
a07b2135
PA
194402009-03-22 Pedro Alves <pedro@codesourcery.com>
19441
19442 * inferiors.c (find_inferior): Make it safe for the callback
19443 function to delete the currently iterated inferior.
19444
67cc2626
PA
194452009-03-22 Pedro Alves <pedro@codesourcery.com>
19446
19447 * Makefile.in (linuw_low_h): Move higher.
19448 (thread-db.o): Depend on $(linux_low_h).
19449
54a0b537
PA
194502009-03-17 Pedro Alves <pedro@codesourcery.com>
19451
19452 Rename "process" to "lwp" throughout.
19453
19454 * linux-low.c (all_processes): Rename to...
19455 (all_lwps): ... this.
19456 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19457 (add_process): Rename to ...
19458 (add_lwp): ... this. Adjust.
19459 (linux_create_inferior): Adjust.
19460 (linux_attach_lwp): Adjust.
19461 (linux_attach): Adjust.
19462 (linux_kill_one_process): Rename to ...
19463 (linux_kill_one_lwp): ... this. Adjust.
19464 (linux_kill): Adjust.
19465 (linux_detach_one_process): Rename to ...
19466 (linux_detach_one_lwp): ... this. Adjust.
19467 (linux_detach): Adjust.
19468 (check_removed_breakpoint): Adjust.
19469 (status_pending_p): Adjust.
19470 (linux_wait_for_process): Rename to ...
19471 (linux_wait_for_lwp): ... this. Adjust.
19472 (linux_wait_for_event): Adjust.
19473 (send_sigstop): Adjust.
19474 (wait_for_sigstop): Adjust.
19475 (stop_all_processes): Rename to ...
19476 (stop_all_lwps): ... this.
19477 (linux_resume_one_process): Rename to ...
19478 (linux_resume_one_lwp): ... this. Adjust.
19479 (linux_set_resume_request, linux_continue_one_thread)
19480 (linux_queue_one_thread, resume_status_pending_p)
19481 (usr_store_inferior_registers, regsets_store_inferior_registers)
19482 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19483 Adjust.
19484 * linux-low.h (get_process): Rename to ...
19485 (get_lwp): ... this. Adjust.
19486 (get_thread_process): Rename to ...
19487 (get_thread_lwp): ... this. Adjust.
19488 (get_process_thread): Rename to ...
19489 (get_lwp_thread): ... this. Adjust.
19490 (struct process_info): Rename to ...
19491 (struct lwp_info): ... this.
19492 (all_processes): Rename to ...
19493 (all_lwps): ... this.
19494 * proc-service.c (ps_lgetregs): Adjust.
19495 * thread-db.c (thread_db_create_event, find_one_thread)
19496 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19497
0b16c5cf
PA
194982009-03-14 Pedro Alves <pedro@codesourcery.com>
19499
19500 * server.c (handle_query): Handle "qAttached".
19501
32de4b9d
NS
195022009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19503
19504 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19505 GPLv3, update license URL.
19506
2aecd87f
DE
195072009-03-01 Doug Evans <dje@google.com>
19508
93efd302 19509 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19510 (server_h): Add gdb_signals.h.
19511 (signals.o): Update.
19512 * server.h (target_signal_from_host,target_signal_to_host_p)
19513 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19514
86b1f9c5
PM
195152009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19516
19517 * remote-utils.c (getpkt): Also generate remote-debug
19518 information if noack_mode is set.
19519
4aa995e1
PA
195202009-02-06 Pedro Alves <pedro@codesourcery.com>
19521
19522 * server.c (handle_query): Report qXfer:siginfo:read and
19523 qXfer:siginfo:write as supported and handle them.
19524 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19525 * linux-low.c (linux_xfer_siginfo): New.
19526 (linux_target_ops): Set it.
19527
62709adf
PA
195282009-01-26 Pedro Alves <pedro@codesourcery.com>
19529
19530 * server.c (gdbserver_usage): Mention --remote-debug.
19531 (main): Accept '--remote-debug' switch.
19532
aef93bd7
DE
195332009-01-18 Doug Evans <dje@google.com>
19534
19535 * regcache.c (new_register_cache): No need to check result of xcalloc.
19536 * server.c (handle_search_memory): Back out calls to xmalloc,
19537 result is checked and error is returned to user upon failure.
19538 (handle_query): Ditto. Add more checks for result of malloc.
19539 (handle_v_cont): Check result of malloc, report error back to
19540 user upon failure.
19541 (handle_v_run): Ditto. Call freeargv.
19542 * server.h (freeargv): Declare.
19543 * utils.c (freeargv): New fn.
19544
54363045
DE
195452009-01-15 Doug Evans <dje@google.com>
19546
f626972c
DE
19547 * gdbreplay.c (perror_with_name): Make arg const char *.
19548 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19549 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19550 * utils.c (perror_with_name): Make arg const char *.
54363045 19551
18aae699
PA
195522009-01-14 Pedro Alves <pedro@codesourcery.com>
19553
19554 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19555 when handling a EXIT_PROCESS_DEBUG_EVENT.
19556
ff703abe
JB
195572009-01-06 Joel Brobecker <brobecker@adacore.com>
19558
19559 * gdbreplay.c (gdbreplay_version): Update copyright year.
19560 * server.c (gdbserver_version): Likewise.
19561
f21cc1a2 195622009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19563
19564 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19565 (handle_extended_wait): Improve comment.
0e21c1ec 19566
bca929d3
DE
195672008-12-13 Doug Evans <dje@google.com>
19568
19569 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19570 * server.h (ATTR_MALLOC): New macro.
19571 (xmalloc,xcalloc,xstrdup): Declare.
19572 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19573 * inferiors.c: Ditto.
19574 * linux-low.c: Ditto.
19575 * mem-break.c: Ditto.
19576 * regcache.c: Ditto.
19577 * remote-utils.c: Ditto.
19578 * server.c: Ditto.
19579 * target.c: Ditto.
19580 * win32-low.c: Ditto.
19581
97438e3f
DE
195822008-12-12 Doug Evans <dje@google.com>
19583
896c7fbb
DE
19584 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19585 in debugging printf.
19586
97438e3f
DE
19587 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19588
e3b886f8
DE
195892008-12-09 Doug Evans <dje@google.com>
19590
19591 * linux-low.h (struct process_info): Delete member tid, unused.
19592 * thread-db.c (find_one_thread): Update.
19593 (maybe_attach_thread): Update.
19594
07e059b5
VP
195952008-12-02 Pedro Alves <pedro@codesourcery.com>
19596
889bf7c5
PA
19597 * target.h (struct target_ops): Add qxfer_osdata member.
19598 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19599 and dirent.h.
19600 (linux_qxfer_osdata): New functions.
19601 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19602 callback.
19603 * server.c (handle_query): Handle "qXfer:osdata:read:".
19604 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19605 (buffer_xml_printf): New functions.
19606 * server.h (struct buffer): New.
19607 (buffer_grow_str, buffer_grow_str0): New macros.
19608 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19609 (buffer_xml_printf): Declare.
07e059b5 19610
4cab47ab
DE
196112008-11-24 Doug Evans <dje@google.com>
19612
19613 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19614
f142445f
DJ
196152008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19616
19617 * server.c (handle_v_run): Always use the supplied argument list.
19618
d0107bb6 196192008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19620
d0107bb6
BW
19621 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19622 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19623
2c4ad781
TJB
196242008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19625
19626 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19627 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19628 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19629 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19630 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19631 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19632 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19633 XML target descriptions.
19634 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19635 when inferior is running on an ISA 2.05 or later processor. Add
19636 special case to return offset for full 64-bit slot of FPSCR when
19637 in 32-bits.
19638
dfb64f85
DJ
196392008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19640
19641 * Makefile.in (SFILES, clean): Added sparc64 files.
19642 (reg-sparc64.o, reg-sparc64.c): New.
19643 * configure.srv (sparc*-*-linux*): New configuration.
19644 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19645 syscall arguments for SPARC.
19646 (regsets_store_inferior_registers): Likewise.
19647 * linux-sparc-low.c: New file.
19648
66b6e1dd
DE
196492008-10-21 Doug Evans <dje@google.com>
19650
19651 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19652 (READLINE_DIR,READLINE_DEP): Delete.
19653 (INTERNAL_CFLAGS): Update.
19654 (LINTFLAGS): Update.
19655
9b710a42
PA
196562008-10-10 Pedro Alves <pedro@codesourcery.com>
19657
19658 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19659 whole argv from the last run, not just argv[0].
19660
5822d809
PA
196612008-09-08 Pedro Alves <pedro@codesourcery.com>
19662
19663 * regcache.c (new_register_cache): Return NULL if the register
19664 cache size isn't known yet.
19665 (free_register_cache): Avoid dereferencing a NULL regcache.
19666
74aac56f
DJ
196672008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19668
19669 * configure.srv: Merge MIPS and MIPS64.
19670
400b20f5
MR
196712008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19672
19673 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19674
677c5bb1
LM
196752008-08-18 Luis Machado <luisgpm@br.ibm.com>
19676
19677 * Makefile.in: Add required vsx dependencies.
19678
19679 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19680 Declare init_registers_powerpc_vsx32l.
19681 Declare init_registers_powerpc_vsx64l.
19682 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19683 (ppc_arch_setup): Check for VSX in hwcap.
19684 (ppc_fill_vsxregset): New function.
19685 (ppc_store_vsxregset): New function.
19686 Add new VSX entry in regset_info target_regsets.
19687
19688 * configure.srv: Add new VSX dependencies.
19689
a6f3e723
SL
196902008-08-12 Pedro Alves <pedro@codesourcery.com>
19691
19692 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19693 (remote_open): Set or clear transport_is_reliable.
19694 (putpkt_binary): Don't expect acks in noack mode.
19695 (getpkt): Don't send ack/nac in noack mode.
19696 * server.c (handle_general_set): Handle QStartNoAckMode.
19697 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19698 qSupported.
19699 (main): Reset noack_mode on every connection.
19700 * server.h (noack_mode): Declare.
19701
a417dc56
RW
197022008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19703
19704 * Makefile.in (GDBREPLAY_OBS): New variable.
19705 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19706
3221518c
UW
197072008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19708 Daniel Jacobowitz <dan@codesourcery.com>
19709
19710 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19711 (usr_store_inferior_registers): Likewise.
19712 (regsets_store_inferior_registers): Likewise.
19713
ec56be1b
PA
197142008-07-31 Rolf Jansen <rj@surtec.com>
19715 Pedro Alves <pedro@codesourcery.com>
19716
19717 * configure.ac: Check for memmem declaration.
19718 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19719 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19720 (disable_packet_qfThreadInfo): Unconditionally compile.
19721 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19722 * configure, config.in: Regenerate.
19723
2fe5e3ff
DE
197242008-07-28 Doug Kwan <dougkwan@google.com>
19725
19726 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19727 (linux_write_memory): Remove declaration of errno.
19728
836acd6d
UW
197292008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19730
19731 * linux-low.c (handle_extended_wait): Do not use "status"
19732 variable uninitialized.
19733
aeba519e
PA
197342008-07-07 Pedro Alves <pedro@codesourcery.com>
19735
19736 * server.c (handle_v_attach): Inhibit reporting dll changes.
19737
db42f210
PA
197382008-06-27 Pedro Alves <pedro@codesourcery.com>
19739
19740 * remote-utils.c (prepare_resume_reply): If requested, don't
19741 output "thread:TID" in the T stop reply.
19742
19743 * server.c (disable_packet_vCont, disable_packet_Tthread)
19744 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19745 (handle_query): If requested, disable support for qC, qfThreadInfo
19746 and qsThreadInfo.
19747 (handle_v_requests): If requested, disable support for vCont.
19748 (gdbserver_show_disableable): New.
19749 (main): Handle --disable-packet and --disable-packet=LIST.
19750
19751 * server.h (disable_packet_vCont, disable_packet_Tthread)
19752 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19753
8e4c5421
CD
197542008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19755
19756 * server.c (gdbserver_usage): Mention --version.
19757
6e23a804
DJ
197582008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19759
19760 * Makefile.in (gdbreplay.o): New rule.
19761
90aa6a40
JM
197622008-06-06 Joseph Myers <joseph@codesourcery.com>
19763
19764 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19765 message, not gdbserver.
19766
c16158bc 197672008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19768 Nathan Sidwell <nathan@codesourcery.com>
19769 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19770
19771 * acinclude.m4: Include ../../config/acx.m4.
19772 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19773 * configure, config.in: Regenerate.
19774 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19775 * server.c (gdbserver_version): Print PKGVERSION.
19776 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19777 (main): Adjust gdbserver_usage calls.
19778 * gdbreplay.c (version, host_name): Add declarations.
19779 (gdbreplay_version, gdbreplay_usage): New.
19780 (main): Accept --version and --help options.
19781
aeb75bf5
DJ
197822008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19783
19784 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19785 (arm_breakpoint_at): Handle Thumb.
19786 (the_low_target): Add comment.
19787
76b233dd
UW
197882008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19789
19790 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19791
08388c79
DE
197922008-05-09 Doug Evans <dje@google.com>
19793
a3c83fae
DE
19794 * server.h (decode_search_memory_packet): Declare.
19795 * remote-utils.c (decode_search_memory_packet): New fn.
19796 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19797 (handle_search_memory): New fn.
19798 (handle_query): Process qSearch:memory packets.
19799
bb9c3d36
UW
198002008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19801
19802 * regcache.c (registers_length): Remove.
19803 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19804 full register packet.
19805 * regcache.h (registers_length): Remove prototype.
19806 * server.h (PBUFSIZ): Define to 16384.
19807
7284e1be
UW
198082008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19809
19810 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19811 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19812 powerpc-64l.o, and powerpc-altivec64l.o.
19813 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19814 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19815 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19816 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19817 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19818 to srv_xmlfiles.
19819
19820 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19821 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19822 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19823 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19824 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19825 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19826 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19827 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19828 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19829 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19830 (clean): Update.
19831
19832 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19833 (init_registers_powerpc_32l): ... this new prototype.
19834 (init_registers_powerpc_32): Remove, replace by ...
19835 (init_registers_powerpc_altivec32l): ... this new prototype.
19836 (init_registers_powerpc_e500): Remove, replace by ...
19837 (init_registers_powerpc_e500l): ... this new prototype.
19838 (init_registers_ppc64): Remove, replace by ...
19839 (init_registers_powerpc_64l): ... this new prototype.
19840 (init_registers_powerpc_64): Remove, replace by ...
19841 (init_registers_powerpc_altivec64l): ... this new prototype.
19842 (ppc_num_regs): Set to 73.
19843 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19844 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19845 (ppc_cannot_store_register): Handle orig_r3 and trap.
19846 (ppc_arch_setup): Update init_registers_... calls.
19847 (ppc_fill_gregset): Handle orig_r3 and trap.
19848
19849 * inferiors.c (clear_inferiors): Reset current_inferior.
19850
fdc59709
PB
198512008-04-23 Paolo Bonzini <bonzini@gnu.org>
19852
889bf7c5
PA
19853 * acinclude.m4: Add override.m4.
19854 * configure: Regenerate.
fdc59709 19855
c9b2f845
UW
198562008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19857
19858 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19859 initial call to init_register_ppc64.
19860
550512b8
UW
198612008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19862
43aaf8b6
PA
19863 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19864 single powerpc*-*-linux* case.
550512b8
UW
19865 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19866
b6430ec3
UW
198672008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19868
19869 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19870 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19871 from reg_xmlfiles.
19872 * linux-ppc-low.c: Include <elf.h>.
19873 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19874 (ppc_hwcap): New global variable.
19875 (ppc_regmap): Remove __SPE__ #ifdef sections.
19876 (ppc_regmap_e500): New global variable.
19877 (ppc_cannot_store_register): Update __SPE__ special case.
19878 (ppc_get_hwcap): New function.
19879 (ppc_arch_setup): Use it to determine whether inferior supports
19880 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19881 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19882 Do not access registers if target does not support AltiVec.
19883 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19884 Do not access registers if target does not support SPE.
19885 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19886
52fa2412
UW
198872008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19888
19889 * linux-low.c (disabled_regsets, num_regsets): New.
19890 (use_regsets_p): Delete.
19891 (linux_wait_for_process): Clear disabled_regsets.
19892 (regsets_fetch_inferior_registers): Check and set it.
19893 (regsets_store_inferior_registers): Likewise.
19894 (linux_fetch_registers, linux_store_registers): Do not use
19895 use_regsets_p.
19896 (initialize_low): Allocate disabled_regsets.
19897
e28b3332
DJ
198982008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19899
19900 * Makefile.in (LIBOBJS): New.
19901 (OBS): Use LIBOBJS.
19902 (memmem.o): New rule.
19903 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19904 * configure: Regenerated.
19905
4536995d
UW
199062008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19907
19908 * server.c (handle_query): Never return "unsupported" for
19909 qXfer:features:read queries.
19910
221c031f
UW
199112008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19912
19913 * server.c (get_features_xml): Fix inverted condition.
19914 (handle_query): Always support qXfer:feature:read.
19915
ccd213ac
DJ
199162008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19917
19918 * server.c (wrapper_argv): New.
19919 (start_inferior): Handle wrapper_argv. If set, expect an extra
19920 trap.
19921 (gdbserver_usage): Document --wrapper.
19922 (main): Parse --wrapper.
19923
6fe305f7
UW
199242008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19925
19926 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19927 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19928 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19929 (ppc_set_pc): Likewise.
19930 (ppc_arch_setup): New function.
19931 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19932 of collect_register.
889bf7c5 19933 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19934
5b0a002e
UW
199352008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19936
19937 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19938 instead of linux-ppc64-low.o.
19939 * linux-ppc64-low.c: Remove file.
19940 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19941 (linux-ppc64-low.o): Remove rule.
19942
19943 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19944 (init_registers_powerpc_64): Likewise.
19945 (ppc_regmap): Conditionally define depending on __powerpc64__.
19946 (ppc_cannot_store_register): Do not special-case "fpscr" when
19947 compiled on __powerpc64__.
19948 (ppc_collect_ptrace_register): New function.
19949 (ppc_supply_ptrace_register): New function.
19950 (ppc_breakpoint): Change type to "unsigned int".
19951 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19952 (the_low_target): Conditionally provide initializers for the
889bf7c5 19953 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19954 collect_ptrace_register and supply_ptrace_register members.
19955
9b4b61c8
UW
199562008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19957
19958 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19959 * server.c (gdbserver_xmltarget): Define.
19960 (get_features_xml): Use it to replace "target.xml" and arch_string.
19961
19962 * configure.srv: Remove srv_xmltarget. Add XML files that were
19963 mentioned there to srv_xmlfiles instead. Remove conditional tests
19964 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19965 srv_xmlfiles and srv_regobj to include all possible choices.
19966 * configure.ac (srv_xmltarget): Remove.
19967 (srv_xmlfiles): Do not add "target.xml".
19968 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19969 checks for supplementary target information.
19970 * configure: Regenerate.
19971 * Makefile.in (XML_TARGET): Remove.
19972 (target.xml): Remove rule.
19973 (clean): Do not clean up target.xml.
19974 (.PRECIOUS): Do not mention target.xml.
19975
19976 * target.h (struct target_ops): Remove arch_string member.
19977 * linux-low.c (linux_arch_string): Remove.
19978 (linux_target_ops): Remove arch_string initializer.
19979 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19980 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19981 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19982 * spu-low.c (spu_arch_string): Remove.
19983 (spu_target_ops): Remove arch_string initializer.
19984 * win32-low.c (win32_arch_string): Remove.
19985 (win32_target_ops): Remove arch_string initializer.
19986 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19987 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19988 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19989
ee1a7ae4
UW
199902008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19991
19992 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19993 by collect_ptrace_register and supply_ptrace_register hooks.
19994 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19995 instead of checking for the_low_target.left_pad_xfer.
19996 (usr_store_inferior_registers): Use collect_ptrace_register callback
19997 instead of checking for the_low_target.left_pad_xfer.
19998
19999 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20000 (s390_supply_ptrace_register): Likewise.
20001 (s390_fill_gregset): Call s390_collect_ptrace_register.
20002 (the_low_target): Update.
20003
20004 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20005 (ppc_supply_ptrace_register): Likewise.
20006 (the_low_target): Update.
20007
20008 * linux-i386-low.c (the_low_target): Update.
20009 * linux-x86-64-low.c (the_low_target): Update.
20010
d61ddec4
UW
200112008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20012
20013 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20014 reg-s390.o and reg-s390x.o.
20015
20016 * linux-low.c (new_inferior): New global variable.
20017 (linux_create_inferior, linux_attach): Set it.
20018 (linux_wait_for_process): Call the_low_target.arch_setup after the
20019 target has stopped for the first time.
20020 (initialize_low): Do not call the_low_target.arch_setup.
20021
20022 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20023 (s390_set_pc): Likewise.
20024 (s390_arch_setup): New function.
20025 (the_low_target): Use s390_arch_setup as arch_setup routine.
20026
20027 * regcache.c (realloc_register_cache): New function.
20028 (set_register_cache): Call it for each existing regcache.
20029
d05b4ac3
UW
200302008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20031
20032 * server.h (init_registers): Remove prototype.
20033
20034 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20035 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20036 instead of init_registers ().
20037 * linux-arm-low.c (init_registers_arm): Add prototype.
20038 (init_registers_arm_with_iwmmxt): Likewise.
20039 (the_low_target): Add initializer for arch_setup field.
20040 * linux-cris-low.c (init_registers_cris): Add prototype.
20041 (the_low_target): Add initializer for arch_setup field.
20042 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20043 (the_low_target): Add initializer for arch_setup field.
20044 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20045 (the_low_target): Add initializer for arch_setup field.
20046 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20047 (the_low_target): Add initializer for arch_setup field.
20048 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20049 (the_low_target): Add initializer for arch_setup field.
20050 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20051 (the_low_target): Add initializer for arch_setup field.
20052 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20053 (init_registers_mips64_linux): Likewise.
20054 (the_low_target): Add initializer for arch_setup field.
20055 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20056 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20057 (the_low_target): Add initializer for arch_setup field.
20058 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20059 (init_registers_powerpc_64): Likewise.
20060 (the_low_target): Add initializer for arch_setup field.
20061 * linux-s390-low.c (init_registers_s390): Add prototype.
20062 (init_registers_s390x): Likewise.
20063 (the_low_target): Add initializer for arch_setup field.
20064 * linux-sh-low.c (init_registers_sh): Add prototype.
20065 (the_low_target): Add initializer for arch_setup field.
20066 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20067 (the_low_target): Add initializer for arch_setup field.
20068 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20069 (the_low_target): Add initializer for arch_setup field.
20070
20071 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20072 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20073 instead of init_registers ().
20074 * win32-arm-low.c (init_registers_arm): Add prototype.
20075 (the_low_target): Add initializer for arch_setup field.
20076 * win32-i386-low.c (init_registers_i386): Add prototype.
20077 (the_low_target): Add initializer for arch_setup field.
20078
20079 * spu-low.c (init_registers_spu): Add prototype.
20080 (initialize_low): Call initialie_registers_spu () instead of
20081 initialize_registers ().
20082
fd96d250
PA
200832008-02-19 Pedro Alves <pedro@codesourcery.com>
20084
20085 * server.c (handle_v_requests): When handling the vRun and vAttach
20086 packets, if already debugging a process, don't kill it. Return an
20087 error instead.
20088
d41b6bb4
DJ
200892008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20090
20091 * server.c (handle_query): Correct length check.
20092
5ac588cf
PA
200932008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20094
20095 * win32-low.c (do_initial_child_stuff): Add process handle
20096 parameter. Set current_process_handle and current_process_id from the
20097 parameters. Clear globals.
20098 (win32_create_inferior): Don't set current_process_handle and
20099 current_process_id here. Instead pass them on the call to
20100 do_initial_child_stuff.
20101 (win32_attach): Likewise.
20102 (win32_clear_inferiors): New.
20103 (win32_kill): Don't close the current process handle or the
20104 current thread handle here. Instead call win32_clear_inferiors.
20105 (win32_detach): Don't open a new handle to the process. Call
20106 win32_clear_inferiors.
20107 (win32_join): Don't rely on current_process_handle; open a new
20108 handle using the process id.
20109 (win32_wait): Call win32_clear_inferiors when the inferior process
20110 has exited.
20111
ecd7ecbc
DJ
201122008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20113
20114 * server.c (monitor_show_help): Add "exit".
20115
1525d545
MG
201162008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20117
ecd7ecbc 20118 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20119 (clean): Add reg-xtensa.c.
20120 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20121 * configure.srv (xtensa*-*-linux*) New target.
20122 * linux-xtensa-low.c: New.
20123 * xtensa-xtregs.c: New.
1525d545 20124
59a016f0
PA
201252008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20126
20127 * hostio.c: Don't include errno.h.
20128 (errno_to_fileio_errno): Move to hostio-errno.
20129 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20130 error number outputting to the target->hostio_last_error callback.
20131 (hostio_packet_error): Use FILEIO_EINVAL directly.
20132 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20133 calls to hostio_error.
20134 * hostio-errno.c: New.
20135 * server.h (hostio_last_error_from_errno): Declare.
20136 * target.h (target_ops): Add hostio_last_error member.
20137 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20138 as hostio_last_error handler.
889bf7c5 20139 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20140 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20141 (wince_hostio_last_error): New functions.
20142 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20143 as hostio_last_error handler.
20144 (win32_target_ops) [!_WIN32_WCE]: Register
20145 hostio_last_error_from_errno as hostio_last_error handler.
20146 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20147 (hostio-errno.o): New rule.
20148 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20149 * configure.srv (srv_hostio_err_objs): New variable. Default to
20150 hostio-errno.o.
20151 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20152 * configure: Regenerate.
20153
2d717e4f
DJ
201542008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20155
20156 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20157 (linux_kill, linux_detach): Clean up the process list.
20158 * remote-utils.c (remote_open): Improve port number parsing.
20159 (putpkt_binary, input_interrupt): Only send interrupts if the target
20160 is running.
20161 * server.c (extended_protocol): Make static.
20162 (attached): Define earlier.
20163 (exit_requested, response_needed, program_argv): New variables.
20164 (target_running): New.
20165 (start_inferior): Clear attached here.
20166 (attach_inferior): Set attached here.
20167 (require_running): Define.
20168 (handle_query): Use require_running and target_running. Implement
20169 "monitor exit".
20170 (handle_v_attach, handle_v_run): New.
20171 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20172 (gdbserver_usage): Update.
20173 (main): Redo argument parsing. Handle --debug and --multi. Handle
20174 --attach along with other options or after the port. Save
20175 program_argv. Support no initial program. Resynchronize
20176 communication with GDB after an error. Handle "monitor exit".
20177 Use require_running and target_running. Always allow the extended
20178 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20179 restart in extended mode.
20180 * README: Refer to the GDB manual. Update --attach usage.
20181
7407e2de
AS
201822007-12-20 Andreas Schwab <schwab@suse.de>
20183
20184 * linux-low.c (STACK_SIZE): Define.
20185 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20186 (linux_test_for_tracefork): Likewise.
20187
b65d95c5
DJ
201882007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20189
20190 * linux-low.c (linux_wait_for_event): Update messages. Do not
20191 reinsert auto-delete breakpoints.
20192 * mem-break.c (struct breakpoint): Change return type of handler to
20193 int.
20194 (set_breakpoint_at): Update handler type.
20195 (reinsert_breakpoint_handler): Return 1 instead of calling
20196 delete_breakpoint.
20197 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20198 setting a new one.
20199 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20200 * mem-break.h (set_breakpoint_at): Update handler type.
20201 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20202 * win32-low.c (auto_delete_breakpoint): New.
20203 (get_child_debug_event): Use it.
20204
4e799345
DJ
202052007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20206
20207 * configure.ac: Check for pread and pwrite.
20208 * hostio.c (handle_pread): Fall back to lseek and read.
20209 (handle_pwrite): Fall back to lseek and write.
20210 * config.in, configure: Regenerated.
20211
27524b67
DJ
202122007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20213
20214 * server.c (myresume): Add own_buf argument.
20215 (main): Update calls.
20216
a20d5e98
DJ
202172007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20218
20219 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20220 * remote-utils.c (remote_open): Do not call disable_async_io.
20221 (block_async_io): Delete.
20222 (unblock_async_io): Make static.
20223 (initialize_async_io): New.
20224 * server.c (handle_v_cont): Handle async I/O here.
20225 (myresume): Likewise. Move other common resume tasks here...
20226 (main): ... from here. Call initialize_async_io. Disable async
20227 I/O before the main loop.
20228 * server.h (initialize_async_io): Declare.
20229 (block_async_io, unblock_async_io): Delete prototypes.
20230 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20231
b79d787e
DJ
202322007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20233
20234 * remote-utils.c (readchar): Allow binary data in received messages.
20235
d97903b2
PA
202362007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20237
20238 * win32-low.c (attaching): New global.
20239 (win32_create_inferior): Clear the `attaching' global.
20240 (win32_attach): Set the `attaching' global.
20241 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20242 attaching. Only set a breakpoint at the entry point if not
20243 attaching.
20244
311de423
PA
202452007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20246
20247 * server.c (main): Don't report dll events on the initial
20248 connection on attaches.
20249
6c2d16d2
PA
202502007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20251
20252 * server.c (main): Relax numerical bases supported for the pid of
20253 the --attach command line argument.
20254
5ca906e6
PA
202552007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20256
20257 * win32-low.c (win32_attach): Call OpenProcess before
20258 DebugActiveProcess, not after. Add last error output to error
20259 call.
20260
9c6c8194
PA
202612007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20262
20263 * win32-low.c (win32_get_thread_context)
20264 (win32_set_thread_context): New functions.
20265 (thread_rec): Use win32_get_thread_context.
20266 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20267 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20268 field.
20269
4d5d1aaa
PA
202702007-12-03 Leo Zayas
20271 Pedro Alves <pedro_alves@portugalmail.pt>
20272
20273 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20274 global variables.
20275 (child_add_thread): Minor cleanup.
20276 (child_continue): Resume artificially suspended threads before
20277 calling ContinueDebugEvent.
20278 (suspend_one_thread): New.
20279 (fake_breakpoint_event): New.
20280 (get_child_debug_event): Change return type to int. Check here if
20281 gdb sent an interrupt request. If a soft interrupt was requested,
20282 fake a breakpoint event. Return 0 if there is no event to handle,
20283 and 1 otherwise.
20284 (win32_wait): Don't check here if gdb sent an interrupt request.
20285 Ensure there is a valid event to handle.
20286 (win32_request_interrupt): Add soft interruption method as last
20287 resort.
20288
c436e841
PA
202892007-12-03 Leo Zayas
20290 Pedro Alves <pedro_alves@portugalmail.pt>
20291
20292 * win32-low.h (win32_thread_info): Add descriptions to the
20293 structure members. Replace `suspend_count' counter by a
20294 `suspended' flag.
20295 * win32-low.c (thread_rec): Update condition of when to get the
20296 context from the inferior. Rely on ContextFlags being set if it
20297 has already been retrieved. Only suspend the inferior thread if
20298 we haven't already. Warn if that fails.
20299 (continue_one_thread): s/suspend_count/suspended/. Only call
20300 ResumeThread once. Warn if that fails.
20301
e7b5fa67
PA
203022007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20303
20304 * win32-low.c (win32_wait): Don't read from the inferior when it
20305 has already exited.
20306
a385171d
PA
203072007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20308
20309 * Makefile.in (win32_low_h): New variable.
20310 (win32-low.o): Add dependency on $(win32_low_h).
20311 (win32-arm-low.o, win32-i386-low.o): New rules.
20312
f80c84b3
DJ
203132007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20314
20315 * hostio.c: Correct copyright year.
20316
a6b151f1
DJ
203172007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20318
20319 * Makefile.in (OBS): Add hostio.o.
20320 (hostio.o): New rule.
20321 * server.h (handle_vFile): Declare.
20322 * hostio.c: New file.
20323 * server.c (handle_v_requests): Take packet_len and new_packet_len
20324 for binary packets. Call handle_vFile.
20325 (main): Update call to handle_v_requests.
20326
f9387fc3
DJ
203272007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20328
20329 * linux-low.c: Include <sched.h>.
20330
51c2684e
DJ
203312007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20332
20333 * linux-low.c (linux_tracefork_grandchild): New.
20334 (linux_tracefork_child): Use clone.
20335 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20336
75f83163
JB
203372007-10-31 Joel Brobecker <brobecker@adacore.com>
20338
20339 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20340
da5898ce
DJ
203412007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20342
20343 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20344
24a09b5f
DJ
203452007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20346
20347 * inferiors.c (change_inferior_id): Delete.
20348 (add_pid_to_list, pull_pid_from_list): New.
20349 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20350 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20351 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20352 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20353 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20354 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20355 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20356 (using_threads): Always set to 1.
20357 (handle_extended_wait): New.
20358 (add_process): Do not set TID.
20359 (linux_create_inferior): Set must_set_ptrace_flags.
20360 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20361 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20362 (linux_thread_alive): Rename TID argument to LWPID.
20363 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20364 (linux_wait_for_event): Do not use TID or check using_threads. Update
20365 call to dead_thread_notify. Call handle_extended_wait.
20366 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20367 (send_sigstop): Delete sigstop_sent.
20368 (wait_for_sigstop): Avoid TID.
20369 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20370 (linux_test_for_tracefork): New.
20371 (linux_lookup_signals): Use thread_db_active and
20372 linux_supports_tracefork_flag.
20373 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20374 * linux-low.h (get_process_thread): Avoid TID.
20375 (struct process_ifo): Move thread_known and tid to the end. Remove
20376 sigstop_sent.
20377 (linux_attach_lwp, thread_db_init): Update prototypes.
20378 * server.h (change_inferior_id): Delete prototype.
20379 (add_pid_to_list, pull_pid_from_list): New prototypes.
20380 * thread-db.c (thread_db_use_events): New.
20381 (find_first_thread): Rename to...
20382 (find_one_thread): ...this. Update callers and messages. Do not
20383 call fatal. Check thread_db_use_events. Do not call
20384 change_inferior_id or new_thread_notify.
20385 (maybe_attach_thread): Update. Do not call new_thread_notify.
20386 (thread_db_init): Set thread_db_use_events. Check use_events.
20387 * utils.c (fatal, warning): Correct message prefix.
20388
30ed0a8f
DJ
203892007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20390
20391 * Makefile.in (clean): Remove new files.
20392 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20393 (powerpc-64.o, powerpc-64.c): New rules.
20394 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20395 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20396 with SPE.
20397 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20398 SPE targets.
20399 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20400 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20401 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20402 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20403 (target_regsets): Add AltiVec and SPE register sets.
20404 * configure.ac: Check for AltiVec and SPE.
20405 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20406 (ppc_fill_vrregset, ppc_store_vrregset): New.
20407 (target_regsets): Add AltiVec register set.
20408 * configure: Regenerated.
20409
fd462a61
DJ
204102007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20411
20412 * linux-low.c (O_LARGEFILE): Define.
20413 (linux_read_memory): Use /proc/PID/mem.
20414 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20415 * configure, config.in: Regenerated.
20416
69f223ed
DJ
204172007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20418
20419 * linux-low.c (linux_wait_for_event): Do not pass signals while
20420 single-stepping.
20421
aec18585
PA
204222007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20423
20424 * win32-low.c (create_process): New.
20425 (win32_create_inferior): Use create_process instead of
20426 CreateProcess. If create_process failed retry appending an ".exe"
20427 suffix. Store the GetLastError result immediatelly after
20428 create_process calls and use it on the call to error.
20429
34d86ddd
PA
204302007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20431
20432 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20433
5a0e3bd0
JB
204342007-08-23 Joel Brobecker <brobecker@adacore.com>
20435
20436 * configure.ac: Switch license to GPLv3.
20437
f88c79e6
MS
204382007-08-01 Michael Snyder <msnyder@access-company.com>
20439
20440 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20441
6b3d9b83
PA
204422007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20443
20444 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20445 typedef.
20446 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20447 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20448 CloseToolhelp32Snapshot.
20449 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20450 CloseToolhelp32Snapshot.
20451
c588c53c
MS
204522007-07-27 Michael Snyder <michael.snyder@access-company.com>
20453
20454 * server.c (main): Check for inferior exit before main loop.
20455
aa0403d9
PA
204562007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20457
20458 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20459 instead of on tmp_desc.
20460
255e7678
DJ
204612007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20462 Daniel Jacobowitz <dan@codesourcery.com>
20463
20464 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20465 (add_thread): Minor cleanups.
20466 (clear_inferiors): Move lower in the file. Clear the DLL
20467 list.
20468 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20469 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20470 (xml_escape_text): New.
20471 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20472 for qSupported.
20473 (handle_v_cont): Report errors.
20474 (gdbserver_version): Update.
20475 (main): Correct size of own_buf. Do not report initial DLL events.
20476 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20477 (unloaded_dll, xml_escape_text): New.
20478 * win32-low.c (enum target_waitkind): Update comments.
20479 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20480 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20481 (win32_EnumProcessModules, win32_GetModuleInformation)
20482 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20483 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20484 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20485 (win32_Module32First, win32_Module32Next, load_toolhelp)
20486 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20487 (get_child_debug_event): Handle DLL events.
20488 (win32_wait): Likewise.
20489
0d37add9
DJ
204902007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20491
20492 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20493 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20494
45e2715e
PA
204952007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20496
20497 * win32-low.c (handle_output_debug_string): Ignore event if not
20498 waiting.
20499
c5674cf1
PA
205002007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20501
20502 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20503
2bbe3cc1
DJ
205042007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20505
20506 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20507
ae13219e
DJ
205082007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20509
20510 * inferiors.c (change_inferior_id): Add comment.
20511 * linux-low.c (check_removed_breakpoint): Add an early
20512 prototype. Improve debug output.
20513 (linux_attach): Doc update.
20514 (linux_detach_one_process, linux_detach): Clean up before releasing
20515 each process.
20516 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20517 * linux-low.h (struct process_info): Doc improvement.
20518 * mem-break.c (delete_all_breakpoints): New.
20519 * mem-break.h (delete_all_breakpoints): New prototype.
20520 * thread-db.c (find_first_thread): New.
20521 (thread_db_create_event): Call it instead of
20522 thread_db_find_new_threads. Clean up unused variables.
20523 (maybe_attach_thread): Remove first thread handling.
20524 (thread_db_find_new_threads): Use find_first_thread.
20525 (thread_db_get_tls_address): Likewise.
20526
4105de34
DJ
205272007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20528
20529 * thread-db.c (thread_db_find_new_threads): Add prototype.
20530 (thread_db_create_event): Check for the main thread before adding
20531 a new thread.
20532 (maybe_attach_thread): Only enable event reporting if TID == 0.
20533 (thread_db_get_tls_address): Check for new threads.
20534
2b876972
DJ
205352007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20536
20537 * linux-low.c (linux_create_inferior): Try execv before execvp.
20538 * spu-low.c (spu_create_inferior): Likewise.
20539
7a245884
DJ
205402007-06-13 Mike Frysinger <vapier@gentoo.org>
20541
20542 * linux-low.c (linux_create_inferior): Change execv to execvp.
20543 * spu-low.c (spu_create_inferior): Likewies.
20544
117ce543
DJ
205452007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20546
20547 * Makefile.in (clean): Clean new files instead of deleted ones.
20548 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20549 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20550 rules.
20551 * configure.srv: Specify XML files and new regformats for MIPS and
20552 MIPS64 GNU/Linux.
20553 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20554 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20555 an entry for the restart register.
20556 (mips_cannot_fetch_register, mips_cannot_store_register)
20557 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20558 register names to match the XML descriptions.
20559 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20560 restart register instead of $0.
20561
0e7f50da
UW
205622007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20563 Markus Deuling <deuling@de.ibm.com>
20564
20565 * remote-utils.c (decode_xfer_write): New function.
20566 * server.h (decode_xfer_write): Add prototype.
20567 * server.c (handle_query): Add PACKET_LEN argument. Support
20568 qXfer:spu:read and qXfer:spu:write packets.
20569 (main): Pass packet_len to handle_query.
20570 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20571 * target.h (target_ops): Add qxfer_spu.
20572
374c1d38
UW
205732007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20574
20575 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20576 accessing non-seekable spufs files.
20577
bb63802a
UW
205782007-05-16 Markus Deuling <deuling@de.ibm.com>
20579
889bf7c5 20580 * server.c (handle_query): Add reply for qC packet.
bb63802a 20581
7390519e
PA
205822007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20583 Leo Zayas <lerele@champenstudios@com>
20584
20585 * server.h (check_remote_input_interrupt_request): New function.
20586 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20587 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20588 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20589 (check_remote_input_interrupt_request): New function.
20590 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20591 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20592 winapi_GenerateConsoleCtrlEvent): New typedefs.
20593 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20594 to 250 ms.
20595 (win32_wait): Check for remote interrupt request
20596 with check_remote_input_interrupt_request.
20597 (win32_request_interrupt): New function.
20598 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20599
34b34921
PA
206002007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20601
20602 * win32-low.c (debug_registers_changed,
20603 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20604 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20605 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20606 (thread_rec): Get context using the low target.
20607 (child_add_thread): Call thread_added on the low target,
20608 which does the same thing.
20609 (regptr): Delete.
20610 (do_initial_child_stuff): Remove debug registers references.
20611 Set context using the low target. Resume threads after
20612 setting the contexts.
20613 (child_continue): Remove dead variable. Remove debug
20614 registers references.
20615 (child_fetch_inferior_registers): Go through the low target.
20616 (do_child_store_inferior_registers): Remove.
20617 (child_store_inferior_registers): Go through the low target.
20618 (win32_resume): Remove debug registers references.
20619 Set context using the low target.
20620 (handle_exception): Change return type to void. Don't record
20621 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20622 first chance exception.
889bf7c5 20623 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20624 goto loop. Always return after waiting for debug event.
20625 (win32_wait): Convert to switch statement. Handle spurious
20626 events.
20627
20628 * win32-i386-low.c (debug_registers_changed,
20629 debug_registers_used): New.
20630 (initial_stuff): Rename to ...
20631 (i386_initial_stuff): ... this. Clear debug registers
20632 state variables.
20633 (store_debug_registers): Delete.
20634 (i386_get_thread_context): New.
20635 (load_debug_registers): Delete.
20636 (i386_set_thread_context): New.
20637 (i386_thread_added): New.
20638 (single_step): Rename to ...
20639 (i386_single_step): ... this.
20640 (do_fetch_inferior_registers): Rename to ...
20641 (i386_fetch_inferior_register): ... this.
20642 (i386_store_inferior_register): New.
20643 (the_low_target): Adapt to new interface.
20644
20645 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20646 (arm_get_thread_context): New.
20647 (arm_set_thread_context): New.
20648 (regptr): New.
20649 (do_fetch_inferior_registers): Rename to ...
20650 (arm_fetch_inferior_register): ... this.
20651 (arm_store_inferior_register): New.
20652 (arm_wince_breakpoint): Reimplement as unsigned long.
20653 (arm_wince_breakpoint_len): Define.
20654 (the_low_target): Adapt to new interface.
20655
20656 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20657 load_debug_registers. Add get_thread_context, set_thread_context,
20658 thread_added and store_inferior_register. Rename
20659 fetch_inferior_registers to fetch_inferior_register.
20660 (regptr): Remove declaration.
20661
dd6953e1
PA
206622007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20663
20664 * linux-low.c (linux_detach): Change return type to int. Return 0.
20665 * spu-low.c (spu_detach): Likewise.
20666
444d6139
PA
206672007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20668
20669 * target.h (target_ops): Change return type of detach to int.
20670 Add join.
20671 (join_inferior): New.
20672 * server.c (main): Don't skip detach support on mingw32.
20673 If the inferior doesn't support detaching return error.
20674 Call join_inferior instead of using waitpid.
20675 * linux-low.c (linux_join): New.
20676 (linux_target_op): Add linux_join.
20677 * spu-low.c (spu_join): New.
20678 (spu_target_ops): Add spu_join.
20679 * win32-low.c (win32_detach): Adapt to new interface.
20680 Reopen current_process_handle before detaching. Issue a child
20681 resume before detaching.
20682 (win32_join): New.
20683 (win32_target_op): Add win32_join.
20684
1d5315fe
PA
206852007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20686
20687 * win32-low.c (win32-attach): Fix return value.
20688 * target.h (target_ops): Describe ATTACH return values.
20689
bf914831
PA
206902007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20691
20692 * win32-low.c (GETPROCADDRESS): Define.
20693 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20694 (winapi_DebugSetProcessKillOnExit): Likewise.
20695 (win32_create_inferior): Force usage of ansi CreateProcessA.
20696 (win32_attach): Use GETPROCADDRESS.
20697 (win32_detach): Likewise.
20698
f72f3e60
PA
206992007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20700
20701 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20702
ed50f18f
PA
207032007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20704
20705 * win32-low.c: Commit leftover changes from 2007-03-29.
20706
0c2ead7e
DJ
207072007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20708
20709 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20710 fields short instead of int. Add explicit padding.
20711 (i387_cache_to_fsave): Remove unnecessary casts.
20712 (i387_fsave_to_cache): Doc fix.
20713 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20714
73725ff3
DJ
207152007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20716
20717 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20718 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20719
d99f33d8
PA
207202007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20721
20722 * configure.srv (arm*-*-mingw32ce*): Move near the other
20723 arm targets.
20724
68070c10
PA
207252007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20726
2482afc6 20727 * configure.ac: Add errno checking.
68070c10
PA
20728 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20729 sys/file.h and malloc.h.
20730 (AC_CHECK_DECLS): Add perror.
20731 (srv_mingwce): Handle.
2482afc6 20732 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20733 win32-i386-low.o to srv_tgtobj.
20734 (i[34567]86-*-mingw*): Likewise.
20735 (arm*-*-mingw32ce*): Add case.
20736 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20737 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20738 [__MINGW32CE__] (strerror): New function.
20739 [__MINGW32CE__] (errno): Define to GetLastError.
20740 [__MINGW32CE__] (COUNTOF): New macro.
20741 (remote_open): Remove extra close call.
20742 * mem-break.c (delete_breakpoint_at): New function.
20743 * mem-break.h (delete_breakpoint_at): Declare.
20744 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20745 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20746 [USE_WIN32API] (read, write): Add char* casts.
20747 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20748 * server.h: Include wincecompat.h on Windows CE.
20749 [HAVE_ERRNO_H]: Check.
20750 (perror): Declare if not declared.
20751 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20752 (perror_with_name): Remove errno declaration.
20753 * wincecompat.h: New.
20754 * wincecompat.c: New.
20755 * win32-low.h: New.
20756 * win32-arm-low.c: New.
20757 * win32-i386-low.c: New.
20758 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20759 (OUTMSG2): Make it safe.
20760 (_T): New macro.
20761 (COUNTOF): New macro.
20762 (NUM_REGS): Get it from the low target.
20763 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20764 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20765 (thread_rec): Let low target handle debug registers.
20766 (child_add_thread): Likewise.
20767 (child_init_thread_list): Likewise.
20768 (continue_one_thread): Likewise.
20769 (regptr): New.
20770 (do_child_fetch_inferior_registers): Move to ...
20771 * win32-i386-low.c: ... here, and rename to ...
20772 (do_fetch_inferior_registers): ... this.
889bf7c5 20773 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20774 Go through the low target.
20775 (do_child_store_inferior_registers): Use regptr.
20776 (strwinerror): New function.
20777 (win32_create_inferior): Handle Windows CE.
20778 Use strwinerror instead of strerror on Windows error
20779 codes. Add program to the error output.
20780 Don't close the main thread handle on Windows CE.
20781 (win32_attach): Use coredll.dll on Windows CE.
20782 (win32_kill): Close current process and current
20783 thread handles.
20784 (win32_detach): Use coredll.dll on Windows CE.
20785 (win32_resume): Let low target handle debug registers, and
20786 step request.
20787 (handle_exception): Add/Remove initial breakpoint. Avoid
20788 non-existant WSTOPSIG on Windows CE.
20789 (win32_read_inferior_memory): Cast to remove warning.
20790 (win32_arch_string): Go through the low target.
20791 (initialize_low): Call set_breakpoint_data with the low
20792 target's breakpoint.
20793 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20794 FOP_REGNUM, mappings): Move to ...
20795 * win32-i386-low.c: ... here.
20796 * win32-low.c (win32_thread_info): Move to ...
20797 * win32-low.h: ... here.
20798 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20799 win32-arm-low.c and wincecompat.c.
20800 (all:): Add $EXEEXT.
20801 (install-only:): Likewise.
20802 (gdbserver:): Likewise.
20803 (gdbreplay:): Likewise.
20804 * config.in: Regenerate.
20805 * configure: Regenerate.
20806
41093d81
PA
208072007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20808
20809 * win32-low.c: Rename typedef thread_info to
20810 win32_thread_info throughout.
20811
544afa54
PA
208122007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20813
20814 * win32-i386-low.c: Rename to ...
20815 * win32-low.c: ... this.
20816 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20817 * Makefile.in: Likewise.
20818
bce7165d
PA
208192007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20820
20821 * remote-utils.c (monitor_output): Constify msg parameter.
20822 * server.h (monitor_output): Likewise.
20823 * win32-i386-low.c (handle_output_debug_string): New.
20824 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20825 handle_output_debug_string.
20826 (get_child_debug_event): Likewise.
20827
506c7aa0
DJ
208282007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20829
20830 * server.c (main): Correct strtoul check.
20831
42c81e2a
DJ
208322007-03-27 Jon Ringle <jon@ringle.org>
20833
20834 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20835
9453113a
DJ
208362007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20837
20838 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20839
64a69107
DJ
208402007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20841
20842 * terminal.h: Check HAVE_SGTTY_H.
20843
208442007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20845
20846 * remote-utils.c (remote_open): Print out the assigned port number.
20847
c74d0ad8
DJ
208482007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20849
20850 * remote-utils.c (monitor_output): New function.
20851 * server.c (debug_threads): Define here.
20852 (monitor_show_help): New function.
20853 (handle_query): Handle qRcmd.
20854 (main): Do not handle 'd' packet.
20855 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20856 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20857 of debug_threads.
20858
de7c3b4a
PA
208592007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20860
20861 * Makefile.in (EXEEXT): New.
20862 (clean): Use $(EXEEXT).
20863
ef57601b
PA
208642007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20865
20866 * target.h (target_ops): Rename send_signal to request_interrupt,
20867 and remove enum target_signal parameter.
20868 * linux-low.c (linux_request_interrupt): Rename from
20869 linux_send_signal, and always send SIGINT.
20870 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20871 and always send SIGINT.
20872 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20873 of send_signal.
20874 (input_interrupt): Likewise.
20875
820f2bda
PA
208762007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20877
20878 * server.c (get_features_xml): Check if target implemented
20879 arch_string.
20880 * win32-i386-low.c (win32_arch_string): New.
20881 (win32_target_ops): Add win32_arch_string as arch_string member.
20882
ab39bf24
UW
208832007-02-22 Markus Deuling <deuling@de.ibm.com>
20884
20885 * spu-low.c (spu_arch_string): New.
20886 (spu_target_ops): Add spu_arch_string.
20887
61ff6e04
DJ
208882007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20889
20890 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20891 * configure.ac: Do not check for terminal.h.
20892 * configure, config.in: Regenerated.
20893
fb1e4ffc
DJ
208942007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20895
20896 * Makefile.in (OBS): Add $(XML_BUILTIN).
20897 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20898 (clean): Update.
20899 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20900 (arm-with-iwmmxt.c): New.
20901 * config.in, configure: Regenerate.
20902 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20903 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20904 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20905 (arm*-*-linux*): Add iWMMXt and regset support.
20906 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20907 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20908 (arm_store_wmmxregset, target_regsets): New.
20909 * server.c (get_features_xml): Take annex argument. Check builtin
20910 XML documents.
20911 (handle_query): Handle multiple annexes.
20912
0f48aa01
DJ
209132007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20914
20915 * remote-utils.c [USE_WIN32API] (read, write): Define.
20916 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20917 write.
20918
23181151
DJ
209192007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20920
20921 * linux-i386-low.c (the_low_target): Set arch_string.
20922 * linux-x86-64-low.c (the_low_target): Likewise.
20923 * linux-low.c (linux_arch_string): New.
20924 (linux_target_ops): Add it.
20925 * linux-low.h (struct linux_target_ops): Add arch_string.
20926 * server.c (write_qxfer_response): Use const void * for DATA.
20927 (get_features_xml): New.
20928 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20929 * target.h (struct target_ops): Add arch_string method.
20930
9d606399
DJ
209312007-01-03 Denis Pilat <denis.pilat@st.com>
20932 Daniel Jacobowitz <dan@codesourcery.com>
20933
20934 * linux-low.c (linux_kill): Handle being called with no threads.
20935 * win32-i386-low.c (win32_kill): Likewise.
20936 (get_child_debug_event): Clear current_process_handle.
20937
209382006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20939 Daniel Jacobowitz <dan@codesourcery.com>
20940
20941 * remote-utils.c (remote_open): Check the type of specified
20942 serial port devices before opening them.
20943 * server.c (main): Kill the inferior if an error occurs during
20944 the first remote_open.
20945
a5e13d24
DJ
209462006-12-05 Markus Deuling <deuling@de.ibm.com>
20947
20948 * README: Update supported targets.
20949
186947f7
DJ
209502006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20951
20952 * Makefile.in (clean): Remove reg-mips64.c.
20953 (reg-mips64.c, reg-mips64.o): New rules.
20954 * configure.srv: Handle mips64. Include regset support for mips.
20955 * linux-mips-low.c (union mips_register): New.
20956 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20957 (mips_breakpoint, mips_breakpoint_at): Use int.
20958 (mips_collect_register, mips_supply_register)
20959 (mips_collect_register_32bit, mips_supply_register_32bit)
20960 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20961 (mips_store_fpregset, target_regsets): New.
20962 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20963
a13e2c95
UW
209642006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20965
20966 * configure.srv: Add target "spu*-*-*".
20967 * Makefile.in (clean): Remove reg-spu.c.
20968 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20969 * spu-low.c: New file.
20970
cb7283db
DJ
209712006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20972
20973 * configure.ac: Correct td_thr_tls_get_addr test.
20974 * configure: Regenerated.
20975
89be2091
DJ
209762006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20977
20978 * linux-low.c (linux_wait_for_event): Reformat. Use the
20979 pass_signals array.
20980 * remote-utils.c (decode_address_to_semicolon): New.
20981 * server.c (pass_signals, handle_general_set): New.
20982 (handle_query): Mention QPassSignals for qSupported.
20983 (main): Call handle_general_set.
20984 * server.h (pass_signals, decode_address_to_semicolon): New.
20985
000ef4f0
DJ
209862006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20987
20988 * server.c (handle_query): Correct error handling for read_auxv.
20989
b7149293
UW
209902005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20991
20992 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20993 and srv_linux_thread_db to yes.
20994 * linux-s390-low.c (s390_fill_gregset): New function.
20995 (target_regsets): Define data structure.
20996
dae5f5cf
DJ
209972006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20998
20999 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21000 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21001 * config.in, configure: Regenerated.
21002 * inferiors.c (gdb_id_to_thread): New function.
21003 (gdb_id_to_thread_id): Use it.
21004 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21005 * linux-low.h (struct process_info): Add th member.
21006 (thread_db_get_tls_address): New prototype.
21007 * remote-utils.c (decode_address): Make non-static.
21008 * server.c (handle_query): Handle qGetTLSAddr.
21009 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21010 * target.h (struct target_ops): Add get_tls_address.
21011 * thread-db.c (maybe_attach_thread): Save the thread handle.
21012 (thread_db_get_tls_address): New.
21013
32ca6d61
DJ
210142006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21015
21016 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21017 (linux_resume_one_process): Take a siginfo_t *. Update all
21018 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21019 (struct pending_signals): Add a siginfo_t.
21020 (linux_wait_for_process): Always set last_status.
21021 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21022 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21023 * linux-low.h (struct process_info): Add last_status.
21024
5ffff7c1
DJ
210252006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21026
21027 * remote-utils.c (try_rle): New function.
21028 (putpkt_binary): Use it.
21029
8695c747
DJ
210302006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21031
21032 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21033 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21034 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21035 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21036 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21037 point registers.
21038
290fadea
RS
210392006-08-08 Richard Sandiford <richard@codesourcery.com>
21040
21041 * server.c (terminal_fd): New variable.
21042 (old_foreground_pgrp): Likewise.
21043 (restore_old_foreground_pgrp): New function.
21044 (start_inferior): Record the terminal file descriptor in terminal_fd
21045 and its original foreground group in old_foreground_pgrp. Register
21046 restore_old_foreground_pgrp with atexit().
21047
9f2e1e63
DJ
210482006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21049
21050 * server.c (handle_query): Correct qPart to qXfer.
21051
b80864fb
DJ
210522006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21053
21054 * configure.ac: Check for more headers which are missing on
21055 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21056 * configure.srv: Add Cygwin and mingw32.
21057 * remote-utils.c: Don't include headers unconditionally which
21058 are missing on mingw32. Include <winsock.h> for mingw32.
21059 (remote_open): Adjust for mingw32 support. Flush
21060 standard error after writing to it.
21061 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21062 (unblock_async_io, enable_async_io, disable_async_io)
21063 (readchar, getpkt): Update for Winsock support.
21064 (prepare_resume_reply): Expect a protocol signal number.
21065 * server.c: Disable <sys/wait.h> on mingw32.
21066 (start_inferior): Adjust for mingw32 support. Flush
21067 standard error after writing to it.
21068 (attach_inferior): Likewise. Use protocol signal
21069 numbers.
21070 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21071 and names.
21072 * win32-i386-low.c: New file.
21073 * Makefile.in (XM_CLIBS): Set.
21074 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21075 (win32-i386-low.o): New dependency rule.
21076 * linux-low.c (linux_wait): Use target signal numbers.
21077 * target.h (struct target_ops): Doc fix.
21078 * server.h (target_signal_to_name): New prototype.
21079 * gdbreplay.c: Don't include headers unconditionally which
21080 are missing on mingw32. Include <winsock.h> for mingw32.
21081 (remote_close, remote_open): Adjust for Winsock support.
21082 * configure, config.in: Regenerated.
21083
0876f84a
DJ
210842006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21085
21086 * server.c (decode_xfer_read, write_qxfer_response): New.
21087 (handle_query): Take a packet length argument. Handle
21088 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21089 the qSupported response.
21090 (main): Update call to handle_query.
21091
01f9e8fa
DJ
210922006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21093
21094 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21095 (putpkt_binary): Renamed from putpkt and adjusted for binary
21096 data.
21097 (putpkt): New wrapper for putpkt_binary.
21098 (readchar): Don't mask off the high bit.
21099 (decode_X_packet): New function.
21100 * server.c (main): Call putpkt_binary if a handler sets the packet
21101 length. Save the length of the incoming packet. Handle 'X'.
21102 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21103
be2a5f71
DJ
211042006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21105
21106 * server.c (handle_query): Handle qSupported.
21107
ea025f5f
DJ
211082006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21109
21110 * remote-utils.c (all_symbols_looked_up): New variable.
21111 (look_up_one_symbol): Check it.
21112 * server.h (look_up_one_symbol): New declaration.
21113 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21114
9308fc88
DJ
211152006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21116
21117 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21118 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21119 (PTRACE_GET_THREAD_AREA): Define.
21120 (ps_get_thread_area): New function.
21121
52fb6437
NS
211222006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21123
21124 * configure.srv (m68k*-*-uclinux*): New target.
21125 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21126 (linux_resume_one_process): Remove extraneous cast.
21127 (linux_read_offsets): New.
21128 (linux_target_op): Add linux_read_offsets on mmuless systems.
21129 * server.c (handle_query): Add qOffsets logic.
21130 * target.h (struct target_ops): Add read_offsets.
21131
21b0f40c
DJ
211322006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21133
21134 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21135 (PTRACE_GET_THREAD_AREA): Define.
21136 (ps_get_thread_area): New function.
21137 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21138 (linux-x86-64-low.o): Update.
21139
0050a760
DJ
211402006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21141
21142 * configure.ac: Remove checks for prfpregset_t.
21143 * gdb_proc_service.h: New file.
21144 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21145 new "gdb_proc_service.h".
21146 * proc-service.c: Likewise.
21147 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21148 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21149 * Makefile.in (gdb_proc_service_h): Updated.
21150 * configure, config.in: Regenerated.
21151
b92a518e
DJ
211522006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21153
21154 * remote-utils.c (prepare_resume_reply): Move declaration
21155 of gdb_id_from_wait to the top of the block.
21156
545587ee
DJ
211572006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21158
21159 * linux-low.c (regsets_store_inferior_registers): Read the regset
21160 from the target before filling it.
21161
9db87ebd
DJ
211622006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21163
21164 * server.c (attach_inferior): Return SIGTRAP for a successful
21165 attach.
21166
dd24457d
DJ
211672006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21168
21169 * Makefile.in (OBS): Add version.o.
21170 (STAGESTUFF): Delete.
21171 (version.o): Add dependencies.
21172 (version.c): Replace rule.
21173 (clean): Remove version.c.
21174 * server.c (gdbserver_version): New.
21175 (gdbserver_usage): Use printf.
21176 (main): Handle --version and --help.
21177 * server.h (version, host_name): Add declarations.
21178
6f0f660e
EZ
211792005-12-23 Eli Zaretskii <eliz@gnu.org>
21180
889bf7c5
PA
21181 * linux-arm-low.c:
21182 * linux-arm-low.c:
21183 * inferiors.c:
21184 * i387-fp.h:
21185 * i387-fp.c:
21186 * gdbreplay.c:
21187 * regcache.c:
21188 * proc-service.c:
21189 * mem-break.h:
21190 * mem-break.c:
21191 * linux-x86-64-low.c:
21192 * linux-sh-low.c:
21193 * linux-s390-low.c:
21194 * linux-ppc64-low.c:
21195 * linux-ppc-low.c:
21196 * linux-mips-low.c:
21197 * linux-m68k-low.c:
21198 * linux-m32r-low.c:
21199 * linux-low.h:
21200 * linux-low.c:
21201 * linux-ia64-low.c:
21202 * linux-i386-low.c:
21203 * linux-crisv32-low.c:
21204 * thread-db.c:
21205 * terminal.h:
21206 * target.h:
21207 * target.c:
21208 * server.h:
21209 * server.c:
21210 * remote-utils.c:
21211 * regcache.h:
21212 * utils.c:
21213 * Makefile.in:
21214 * configure.ac:
6f0f660e
EZ
21215 * gdbserver.1: Add (C) after Copyright. Update the FSF
21216 address.
21217
9d1fb177
DJ
212182005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21219
21220 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21221 (arm_breakpoint_at): Recognize both breakpoints.
21222 (the_low_target): Use the correct breakpoint instruction.
21223
011a70c2
DJ
212242005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21225
21226 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21227 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21228 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21229 (the_low_target): Update.
21230
7fb85e41
AS
212312005-10-25 Andreas Schwab <schwab@suse.de>
21232
21233 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21234
21235 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21236 (ia64_num_regs): Reduce to 462.
21237
3db0444b
DJ
212382005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21239
21240 * acinclude.m4: Correct quoting.
21241 * aclocal.m4: Regenerated.
21242
21243 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21244 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21245 (thread_db_init): Call thread_db_err_str.
21246 * configure.ac: Check for TD_VERSION.
21247 * config.in, configure: Regenerated.
21248
bee0189a
DJ
212492005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21250
21251 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21252
e9d25b98
DJ
212532005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21254
21255 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21256 is not available. Define HAVE_PTRACE_GETREGS if it is.
21257 * config.in, configure: Regenerated.
21258 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21259 * linux-i386-low.c, linux-m68k-low.c: Update to use
21260 HAVE_PTRACE_GETREGS.
21261 * linux-low.c (regsets_fetch_inferior_registers)
21262 (regsets_store_inferior_registers): Only return 0 if we processed
21263 GENERAL_REGS.
21264 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21265 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21266
a06660f7
DJ
212672005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21268
21269 * inferiors.c (struct thread_info): Add gdb_id.
21270 (add_thread): Add gdb_id argument.
21271 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21272 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21273 calls to add_thread.
21274 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21275 * server.c (handle_query): Use thread_to_gdb_id.
21276 (handle_v_cont, main): Use gdb_id_to_thread_id.
21277 * server.h (add_thread): Update prototype.
21278 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21279 prototypes.
21280
5a1f5858
DJ
212812005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21282
21283 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21284 left-padded registers.
21285 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21286 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21287
e122f1f5
SE
212882005-07-01 Steve Ellcey <sje@cup.hp.com>
21289
21290 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21291 * configure: Regenerate.
21292 * config.in: Regenerate.
21293 * server.h (NEED_DECLARATION_STRERROR):
21294 Replace with !HAVE_DECL_STRERROR.
21295
d592fa2f
DJ
212962005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21297
21298 * linux-low.c (linux_wait, linux_send_signal): Don't test
21299 an unsigned long variable for > 0 if it could be MAX_ULONG.
21300 * server.c (myresume): Likewise.
21301 * target.c (set_desired_inferior): Likewise.
21302
ccbd4912
MK
213032005-06-13 Mark Kettenis <kettenis@gnu.org>
21304
21305 * configure.ac: Simplify and improve check for socklen_t.
21306 * configure, config.in: Regenerate.
21307
f450004a
DJ
213082005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21309
21310 * acconfig.h: Remove.
21311 * configure.ac: Add a test for socklen_t. Use three-argument
21312 AC_DEFINE throughout.
21313 * config.in: Regenerated using autoheader 2.59.
21314 * configure: Regenerated.
21315
21316 * gdbreplay.c (socklen_t): Provide a default.
21317 (remote_open): Use socklen_t.
21318 * remote-utils.c (socklen_t): Provide a default.
21319 (remote_open): Use socklen_t.
21320 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21321 unsigned char.
21322
21323 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21324 char for buffers.
21325 * linux-low.c (linux_read_memory, linux_write_memory)
21326 (linux_read_auxv): Likewise.
21327 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21328 (check_mem_write): Likewise.
21329 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21330 Likewise.
21331 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21332 (registers_from_string, register_data): Likewise.
21333 * server.c (handle_query, main): Likewise.
21334 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21335 (decode_M_packet): Likewise.
21336 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21337 * target.h (struct target_ops): Update read_memory, write_memory,
21338 and read_auxv.
21339 (read_inferior_memory, write_inferior_memory): Update.
21340 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21341 to unsigned char *.
21342 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21343 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21344 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21345 linux-s390-low.c, linux-sh-low.c: Update for changes in
21346 read_inferior_memory and the_low_target->breakpoint.
21347
eee84df1
DJ
213482005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21349
21350 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21351 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21352 * configure.srv: Add powerpc64-*-linux*.
21353 * linux-ppc64-low.c: New file.
21354
45b134e5
OF
213552005-05-23 Orjan Friberg <orjanf@axis.com>
21356
21357 * linux-cris-low.c: New file with support for CRIS.
21358 * linux-crisv32-low.c: Ditto for CRISv32.
21359 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21360 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21361 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21362 reg-crisv32.o, and reg-crisv32.c to make rules.
21363 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21364 recognized targets.
21365
48d93c75
UW
213662005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21367
21368 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21369 of sizeof (PTRACE_XFER_TYPE).
21370 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21371
e013ee27
OF
213722005-05-12 Orjan Friberg <orjanf@axis.com>
21373
889bf7c5 21374 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21375 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21376 pointers for hardware watchpoint support.
21377 * linux-low.h (struct linux_target_ops): Ditto.
21378 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21379 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21380 to linux_target_ops.
21381 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21382 reply packet.
21383 * server.c (main): Recognize 'Z' and 'z' packets.
21384
b0ded00b
UW
213852005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21386
21387 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21388 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21389 (the_low_target): Add new members.
21390
8643e2ad
DJ
213912005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21392
21393 * proc-service.c (ps_lgetregs): Search all_processes instead of
21394 all_threads.
21395
fc620387
DJ
213962005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21397
21398 * server.c (start_inferior): Change return type to int.
21399 (attach_inferior): Change sigptr to int *.
21400 (handle_v_cont, handle_v_requests): Change signal to int *.
21401 (main): Change signal to int.
21402
214032005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21404
21405 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21406 * configure.srv: Add m32r*-*-linux*.
21407 * linux-m32r-low.c: New file.
21408
e0e76420
DJ
214092005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21410
21411 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21412
a1928bad
DJ
214132005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21414
21415 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21416 Take unsigned long arguments for PIDs.
21417 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21418 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21419 (wait_for_sigstop, linux_resume_one_process)
21420 (regsets_fetch_inferior_registers, linux_send_signal)
21421 (linux_read_auxv): Likewise. Update the types of variables holding
21422 PIDs. Update format string specifiers.
21423 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21424 * remote-utils.c (prepare_resume_reply): Likewise.
21425 * server.c (cont_thread, general_thread, step_thread)
21426 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21427 unsigned long.
21428 (handle_query): Update format specifiers.
21429 (handle_v_cont, main): Use strtoul for thread IDs.
21430 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21431 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21432 (general_thread, step_thread, thread_from_wait)
21433 (old_thread_from_wait): Update.
21434 * target.h (struct thread_resume): Use unsigned long for THREAD.
21435 (struct target_ops): Use unsigned long for arguments to attach and
21436 thread_alive.
21437
dcdb98d2
DJ
214382005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21439
21440 * acinclude.m4: Include bfd/bfd.m4 directly.
21441 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21442 <agriffis@toolchain.org>.
21443 * aclocal.m4, configure: Regenerated.
21444
bec39cab
AC
214452005-01-07 Andrew Cagney <cagney@gnu.org>
21446
21447 * configure.ac: Rename configure.in, require autoconf 2.59.
21448 * configure: Re-generate.
21449
434c4c77
DJ
214502004-12-08 Daniel Jacobowitz <dan@debian.org>
21451
21452 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21453 LIBS when finished.
21454 * aclocal.m4: Regenerated.
21455 * configure: Regenerated.
21456
db1d3e1b
AS
214572004-11-21 Andreas Schwab <schwab@suse.de>
21458
21459 * linux-m68k-low.c (m68k_num_gregs): Define.
21460 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21461 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21462 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21463 (m68k_breakpoint_at): New. Add to the_low_target.
21464
21465 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21466 srv_linux_thread_db to yes.
21467
43360365
JB
214682004-10-20 Joel Brobecker <brobecker@gnat.com>
21469
21470 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21471 (ARCH_SET_FS): Likewise.
21472 (ARCH_GET_FS): Likewise.
21473 (ARCH_GET_GS): Likewise.
21474
fd500816
DJ
214752004-10-16 Daniel Jacobowitz <dan@debian.org>
21476
21477 * linux-i386-low.c (ps_get_thread_area): New.
21478 * linux-x86-64-low.c (ps_get_thread_area): New.
21479 * linux-low.c: Include <sys/syscall.h>.
21480 (linux_kill_one_process): Don't kill the first thread here.
21481 (linux_kill): Kill the first thread here.
21482 (kill_lwp): New function.
21483 (send_sigstop, linux_send_signal): Use it.
21484 * proc-service.c: Clean up #ifdefs.
21485 (fpregset_info): Delete.
21486 (ps_lgetregs): Update and enable implementation.
21487 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21488 implementations.
21489 * remote-utils.c (struct sym_cache, symbol_cache): New.
21490 (input_interrupt): Print a clearer message.
21491 (async_io_enabled): New variable.
21492 (enable_async_io, disable_async_io): Use it. Update comments.
21493 (look_up_one_symbol): Use the symbol cache.
21494 * thread-db.c (thread_db_look_up_symbols): New function.
21495 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21496
f6de3c42
DJ
214972004-10-16 Daniel Jacobowitz <dan@debian.org>
21498
21499 * configure.in: Test for -rdynamic.
21500 * configure: Regenerated.
21501 * Makefile (INTERNAL_LDFLAGS): New.
21502 (gdbserver, gdbreplay): Use it.
21503
2c0fc042
AC
215042004-09-02 Andrew Cagney <cagney@gnu.org>
21505
21506 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21507
075b3282
DJ
215082004-03-23 Daniel Jacobowitz <drow@mvista.com>
21509
21510 * linux-low.c (linux_wait): Clear all_processes list also.
21511
fa6a77dc
DJ
215122004-03-12 Daniel Jacobowitz <drow@mvista.com>
21513
21514 * linux-low.c: Include <errno.h>. Remove extern declaration of
21515 errno.
21516
6d782a97
DJ
215172004-03-12 Daniel Jacobowitz <drow@mvista.com>
21518
21519 * gdbreplay.c, server.h, utils.c: Update copyright years.
21520
3a7fb99b
DJ
215212004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21522
21523 * server.c (main): Print child status or termination signal from
21524 variable 'signal', not 'sig'.
21525
c3e735a6
DJ
215262004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21527
21528 * linux-low.c (linux_read_memory): Change return type to
21529 int. Check for and return error from ptrace().
21530 * target.c (read_inferior_memory): Change return type to int. Pass
21531 back return status from the_target->read_memory().
21532 * target.h (struct target_ops): Adapt *read_memory() prototype.
21533 Update comment.
21534 (read_inferior_memory): Adapt prototype.
21535 * server.c (main): Return an error packet if
21536 read_inferior_memory() returns an error.
21537
a59d1c82
DJ
215382004-03-04 Daniel Jacobowitz <drow@mvista.com>
21539
21540 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21541 Unify with other clean targets.
21542
dc3f8883
DJ
215432004-02-29 Daniel Jacobowitz <drow@mvista.com>
21544
21545 * server.c (handle_v_cont): Call set_desired_inferior.
21546
89a208da
DJ
215472004-02-29 Daniel Jacobowitz <drow@mvista.com>
21548
21549 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21550
62ea82f5
DJ
215512004-02-29 Daniel Jacobowitz <drow@mvista.com>
21552
21553 * linux-low.c (linux_wait): Unblock async I/O.
21554 (linux_resume): Block and enable async I/O.
21555 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21556 * server.h (block_async_io, unblock_async_io): Add prototypes.
21557
6910d122
DJ
215582004-02-29 Daniel Jacobowitz <drow@mvista.com>
21559
21560 * remote-utils.c (remote_open): Print a status notice after
21561 opening a TCP port.
21562 * server.c (attach_inferior): Print a status notice after
21563 attaching.
21564
215652004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21566
21567 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21568
c89dc5d4
DJ
215692004-02-26 Daniel Jacobowitz <drow@mvista.com>
21570
21571 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21572 error packet.
21573 * server.c, target.h: Update copyright years.
21574
4b8dad4a
RM
215752004-02-25 Roland McGrath <roland@redhat.com>
21576
21577 * target.h (struct target_ops): New member `read_auxv'.
21578 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21579 * linux-low.c (linux_read_auxv): New function.
21580 (linux_target_ops): Initialize `read_auxv' member to that.
21581
d7446758
JB
215822004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21583
21584 Committed by Jim Blandy <jimb@redhat.com>.
21585
21586 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21587 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21588 instead of GPR_SIZE to distiguish s390 and s390x targets.
21589
5544ad89
DJ
215902004-01-31 Daniel Jacobowitz <drow@mvista.com>
21591
21592 * linux-low.c: Update copyright year.
21593 (check_removed_breakpoint): Clear pending_is_breakpoint.
21594 (linux_set_resume_request, linux_queue_one_thread)
21595 (resume_status_pending_p): New functions.
21596 (linux_continue_one_thread): Use process->resume.
21597 (linux_resume): Only resume threads if there are no pending events.
21598 * linux-low.h (struct process_info): Add resume request
21599 pointer.
21600
2a68b70e
DJ
216012004-01-30 Daniel Jacobowitz <drow@mvista.com>
21602
21603 * regcache.c (new_register_cache): Clear the allocated register
21604 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21605
64386c31
DJ
216062003-10-13 Daniel Jacobowitz <drow@mvista.com>
21607
21608 * linux-low.c (linux_resume): Take a struct thread_resume *
21609 argument.
21610 (linux_wait): Update call.
21611 (resume_ptr): New static variable.
21612 (linux_continue_one_thread): Renamed from
21613 linux_continue_one_process. Use resume_ptr.
21614 (linux_resume): Use linux_continue_one_thread.
21615 * server.c (handle_v_cont, handle_v_requests): New functions.
21616 (myresume): New function.
21617 (main): Handle 'v' case.
21618 * target.h (struct thread_resume): New type.
21619 (struct target_ops): Change argument of "resume" to struct
21620 thread_resume *.
21621 (myresume): Delete macro.
21622
c938e9b0
L
216232003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21624
21625 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21626 (uninstall): Support DESTDIR.
21627
7f313d07
BC
21628Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21629
21630 * configure.srv: Add xscale*linux copy of arm*linux entry.
21631
3b2fc2ea
DJ
216322003-07-24 Daniel Jacobowitz <drow@mvista.com>
21633
21634 * linux-arm-low.c (arm_reinsert_addr): New function.
21635 (the_low_target): Add arm_reinsert_addr.
21636
1c0a559e
MK
216372003-07-08 Mark Kettenis <kettenis@gnu.org>
21638
21639 * mem-break.c: Remove whitespace at end of file.
21640
43d5792c
DJ
216412003-06-28 Daniel Jacobowitz <drow@mvista.com>
21642
21643 * configure.in: Check whether we need to prototype strerror.
21644 * server.h: Optionally prototype strerror.
21645 * gdbreplay.c (perror_with_name): Use strerror.
21646 * linux-low.c (linux_attach_lwp): Use strerror.
21647 * utils.c (perror_with_name): Use strerror.
21648 * config.in, configure: Regenerated.
21649
c8a86edf
DJ
216502003-06-28 Daniel Jacobowitz <drow@mvista.com>
21651
21652 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21653 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21654
73d37363
DJ
216552003-06-20 Daniel Jacobowitz <drow@mvista.com>
21656
21657 * Makefile.in (SFILES): Update.
21658 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21659 low-sun3.c: Remove files.
21660
6ad8ae5c
DJ
216612003-06-17 Daniel Jacobowitz <drow@mvista.com>
21662
21663 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21664 (linux_detach_one_process, linux_detach): New functions.
21665 (linux_target_ops): Add linux_detach.
21666 * server.c (main): Handle 'D' packet.
21667 * target.h (struct target_ops): Add "detach" member.
21668 (detach_inferior): Define.
21669
1581182a
MK
216702003-06-13 Mark Kettenis <kettenis@gnu.org>
21671
21672 From Kelley Cook <kelleycook@wideopenwest.com>:
21673 * configure.srv: Accept i[34567]86 variants.
21674
e5379b03
DJ
216752003-06-05 Daniel Jacobowitz <drow@mvista.com>
21676
21677 * linux-low.c (linux_wait_for_event): Correct comment typos.
21678 (linux_resume_one_process): Call check_removed_breakpoint.
21679 (linux_send_signal): New function.
21680 (linux_target_ops): Add linux_send_signal.
21681 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21682 of kill.
21683 * target.h (struct target_ops): Add send_signal.
21684
2ff29de4
JB
216852003-05-29 Jim Blandy <jimb@redhat.com>
21686
21687 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21688 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21689 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21690 away part of the register's value.
21691
254787d4
DJ
216922003-03-26 Daniel Jacobowitz <drow@mvista.com>
21693
21694 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21695 (linux_wait_for_event, linux_init_signals): Likewise.
21696
94e10508
DJ
216972003-03-17 Daniel Jacobowitz <drow@mvista.com>
21698
21699 * configure.in: Check for stdlib.h.
21700 * configure: Regenerated.
21701 * config.in: Regenerated.
21702
4c0711e0
DJ
217032003-01-04 Andreas Schwab <schwab@suse.de>
21704
21705 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21706
ef66e766
AC
217072003-01-02 Andrew Cagney <ac131313@redhat.com>
21708
21709 * Makefile.in: Remove obsolete code.
21710
a1358604
DJ
217112002-11-20 Daniel Jacobowitz <drow@mvista.com>
21712
21713 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21714 defined(PT_FPR0_HI).
21715
23ce3b1c
DJ
217162002-11-17 Stuart Hughes <seh@zee2.com>
21717
21718 * linux-arm-low.c (arm_num_regs): Increase.
21719 (arm_regmap): Include status register.
21720
217212002-11-17 Daniel Jacobowitz <drow@mvista.com>
21722
21723 * linux-low.c (register_addr): Remove incorrect -1 check.
21724
a9fa9f7d
DJ
217252002-08-29 Daniel Jacobowitz <drow@mvista.com>
21726
21727 * linux-low.c (linux_create_inferior): Call setpgid. Return
21728 the new PID.
21729 (unstopped_p, linux_signal_pid): Remove.
21730 (linux_target_ops): Remove linux_signal_pid.
21731 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21732 global instead of target method.
21733 * target.h (struct target_ops): Remove signal_pid. Update comment
21734 for create_inferior.
21735 * server.c (signal_pid): New variable.
21736 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21737 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21738 (attach_inferior): Set signal_pid.
21739
17574093
DJ
217402002-08-23 Daniel Jacobowitz <drow@mvista.com>
21741
21742 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21743
217442002-08-20 Jim Blandy <jimb@redhat.com>
21745
21746 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21747 default for this.
21748
217492002-08-01 Andrew Cagney <cagney@redhat.com>
21750
21751 * Makefile.in: Make chill references obsolete.
21752
217532002-07-24 Kevin Buettner <kevinb@redhat.com>
21754
21755 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21756 * configure: Regenerate.
21757 * config.in: Regenerate.
21758
217592002-07-09 David O'Brien <obrien@FreeBSD.org>
21760
21761 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21762 (perror_with_name, remote_close, remote_open, expect, play): Static.
21763
217642002-07-04 Michal Ludvig <mludvig@suse.cz>
21765
4b8dad4a 21766 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21767 byte offsets instead of an array of indexes.
21768 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21769
217702002-06-13 Daniel Jacobowitz <drow@mvista.com>
21771
21772 * regcache.c: Add comment.
21773
217742002-06-11 Daniel Jacobowitz <drow@mvista.com>
21775
21776 * thread-db.c: New file.
21777 * proc-service.c: New file.
21778 * acinclude.m4: New file.
21779 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21780 proc-service.o, and thread-db.o.
21781 (linux-low.o): Add USE_THREAD_DB.
21782 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21783 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21784 * aclocal.m4: Regenerated.
21785 * config.in: Regenerated.
21786 * configure: Regenerated.
21787 * configure.in: Check for proc_service.h, sys/procfs.h,
21788 thread_db.h, and linux/elf.h headrs.
21789 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21790 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21791 Check for -lthread_db and thread support.
21792 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21793 PowerPC, and SuperH.
21794 * i387-fp.c: Constify arguments.
21795 * i387-fp.h: Likewise.
21796 * inferiors.c: (struct thread_info): Renamed from
21797 `struct inferior_info'. Remove PID member. Use generic inferior
21798 list header. All uses updated.
21799 (inferiors, signal_pid): Removed.
21800 (all_threads): New variable.
21801 (get_thread): Define.
21802 (add_inferior_to_list): New function.
21803 (for_each_inferior): New function.
21804 (change_inferior_id): New function.
21805 (add_inferior): Removed.
21806 (remove_inferior): New function.
21807 (add_thread): New function.
21808 (free_one_thread): New function.
21809 (remove_thread): New function.
21810 (clear_inferiors): Use for_each_inferior and free_one_thread.
21811 (find_inferior): New function.
21812 (find_inferior_id): New function.
21813 (inferior_target_data): Update argument type.
21814 (set_inferior_target_data): Likewise.
21815 (inferior_regcache_data): Likewise.
21816 (set_inferior_regcache_data): Likewise.
21817 * linux-low.c (linux_bp_reinsert): Remove.
21818 (all_processes, stopping_threads, using_thrads)
21819 (struct pending_signals, debug_threads, pid_of): New.
21820 (inferior_pid): Replace with macro.
21821 (struct inferior_linux_data): Remove.
21822 (get_stop_pc, add_process): New functions.
21823 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21824 Use add_process and add_thread.
21825 (linux_attach_lwp): New function, based on old linux_attach. Use
21826 add_process and add_thread. Set stop_expected for new threads.
21827 (linux_attach): New function.
21828 (linux_kill_one_process): New function.
21829 (linux_kill): Kill all LWPs.
21830 (linux_thread_alive): Use find_inferior_id.
21831 (check_removed_breakpoints, status_pending_p): New functions.
21832 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21833 Update. Use WNOHANG. Wait for cloned processes also. Update process
21834 struct for the found process.
21835 (linux_wait_for_event): New function.
21836 (linux_wait): Use it. Support LWPs.
21837 (send_sigstop, wait_for_sigstop, stop_all_processes)
21838 (linux_resume_one_process, linux_continue_one_process): New functions.
21839 (linux_resume): Support LWPs.
21840 (REGISTER_RAW_SIZE): Remove.
21841 (fetch_register): Use register_size instead. Call supply_register.
21842 (usr_store_inferior_registers): Likewise. Call collect_register.
21843 Fix recursive case.
21844 (regsets_fetch_inferior_registers): Improve error message.
21845 (regsets_store_inferior_registers): Add debugging.
21846 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21847 (unstopped_p, linux_signal_pid): New functions.
21848 (linux_target_ops): Add linux_signal_pid.
21849 (linux_init_signals): New function.
21850 (initialize_low): Call it. Initialize using_threads.
21851 * regcache.c (inferior_regcache_data): Add valid
21852 flag.
21853 (get_regcache): Fetch registers lazily. Add fetch argument
21854 and update all callers.
21855 (regcache_invalidate_one, regcache_invalidate): New
21856 functions.
21857 (new_register_cache): Renamed from create_register_cache.
21858 Return the new regcache.
21859 (free_register_cache): Change argument to a void *.
21860 (registers_to_string, registers_from_string): Call get_regcache
21861 with fetch flag set.
21862 (register_data): Make static. Pass fetch flag to get_regcache.
21863 (supply_register): Call get_regcache with fetch flag clear.
21864 (collect_register): Call get_regcache with fetch flag set.
21865 (collect_register_as_string): New function.
21866 * regcache.h: Update.
21867 * remote-utils.c (putpkt): Flush after debug output and use
21868 stderr.
21869 Handle input interrupts while waiting for an ACK.
21870 (input_interrupt): Use signal_pid method.
21871 (getpkt): Flush after debug output and use stderr.
21872 (outreg): Use collect_register_as_string.
21873 (new_thread_notify, dead_thread_notify): New functions.
21874 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21875 and general_thread.
21876 (look_up_one_symbol): Flush after debug output.
21877 * server.c (step_thread, server_waiting): New variables.
21878 (start_inferior): Don't use signal_pid. Update call to mywait.
21879 (attach_inferior): Update call to mywait.
21880 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21881 (main): Don't fetch/store registers explicitly. Use
21882 set_desired_inferior. Support proposed ``Hs'' packet. Update
21883 calls to mywait.
21884 * server.h: Update.
21885 (struct inferior_list, struct_inferior_list_entry): New.
21886 * target.c (set_desired_inferior): New.
21887 (write_inferior_memory): Constify.
21888 (mywait): New function.
21889 * target.h: Update.
21890 (struct target_ops): New signal_pid method.
21891 (mywait): Removed macro, added prototype.
21892
21893 * linux-low.h (regset_func): Removed.
21894 (regset_fill_func, regset_store_func): New.
21895 (enum regset_type): New.
21896 (struct regset_info): Add type field. Use new operation types.
21897 (struct linux_target_ops): stop_pc renamed to get_pc.
21898 Add decr_pc_after_break and breakpoint_at.
21899 (get_process, get_thread_proess, get_process_thread)
21900 (strut process_info, all_processes, linux_attach_lwp)
21901 (thread_db_init): New.
21902
21903 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21904 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21905 (the_low_target): Add new members.
21906 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21907 (i386_store_fpxregset): Constify.
21908 (target_regsets): Add new kind identifier.
21909 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21910 (i386_set_pc): Add debugging.
21911 (i386_breakpoint_at): New function.
21912 (the_low_target): Add new members.
21913 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21914 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21915 (mips_breakpoint_at): New.
21916 (the_low_target): Add new members.
21917 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21918 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21919 (the_low_target): Add new members.
21920 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21921 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21922 (the_low_target): Add new members.
21923 * linux-x86-64-low.c (target_regsets): Add new kind
21924 identifier.
21925
219262002-05-15 Daniel Jacobowitz <drow@mvista.com>
21927
21928 From Martin Pool <mbp@samba.org>:
21929 * server.c (gdbserver_usage): New function.
21930 (main): Call it.
21931
219322002-05-14 Daniel Jacobowitz <drow@mvista.com>
21933
21934 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21935 stop_at -> stop_pc.
21936
219372002-05-04 Andrew Cagney <ac131313@redhat.com>
21938
21939 * Makefile.in: Remove obsolete code.
21940
219412002-04-24 Michal Ludvig <mludvig@suse.cz>
21942
21943 * linux-low.c (regsets_fetch_inferior_registers),
21944 (regsets_store_inferior_registers): Removed cast to int from
21945 ptrace() calls.
21946 * regcache.h: Added declaration of struct inferior_info.
21947
219482002-04-20 Daniel Jacobowitz <drow@mvista.com>
21949
21950 * inferiors.c (struct inferior_info): Add regcache_data.
21951 (add_inferior): Call create_register_cache.
21952 (clear_inferiors): Call free_register_cache.
21953 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21954 * regcache.c (struct inferior_regcache_data): New.
21955 (registers): Remove.
21956 (get_regcache): New function.
21957 (create_register_cache, free_register_cache): New functions.
21958 (set_register_cache): Don't initialize the register cache here.
21959 (registers_to_string, registers_from_string, register_data): Call
21960 get_regcache.
21961 * regcache.h: Add prototypes.
21962 * server.h: Likewise.
21963
219642002-04-20 Daniel Jacobowitz <drow@mvista.com>
21965
21966 * mem-break.c: New file.
21967 * mem-break.h: New file.
21968 * Makefile.in: Add mem-break.o rule; update server.h
21969 dependencies.
21970 * inferiors.c (struct inferior_info): Add target_data
21971 member.
21972 (clear_inferiors): Free target_data member if set.
21973 (inferior_target_data, set_inferior_target_data): New functions.
21974 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21975 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21976 * linux-low.c (linux_bp_reinsert): New variable.
21977 (struct inferior_linux_data): New.
21978 (linux_create_inferior): Use set_inferior_target_data.
21979 (linux_attach): Likewise. Call add_inferior.
21980 (linux_wait_for_one_inferior): New function.
21981 (linux_wait): Call it.
21982 (linux_write_memory): Add const.
21983 (initialize_low): Call set_breakpoint_data.
21984 * linux-low.h (struct linux_target_ops): Add breakpoint
21985 handling members.
21986 * server.c (attach_inferior): Remove extra add_inferior
21987 call.
21988 * server.h: Include mem-break.h. Update inferior.c
21989 prototypes.
21990 * target.c (read_inferior_memory)
21991 (write_inferior_memory): New functions.
21992 * target.h (read_inferior_memory)
21993 (write_inferior_memory): Change macros to prototypes.
21994 (struct target_ops): Update comments. Add const to write_memory
21995 definition.
21996
219972002-04-11 Daniel Jacobowitz <drow@mvista.com>
21998
21999 * linux-low.c (usr_store_inferior_registers): Support
22000 registers which are allowed to fail to store.
22001 * linux-low.h (linux_target_ops): Likewise.
22002 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22003 (ppc_cannot_store_register): FPSCR may not be storable.
22004
220052002-04-09 Daniel Jacobowitz <drow@mvista.com>
22006
22007 * server.h: Include <string.h> if HAVE_STRING_H.
22008 * ChangeLog: Correct paths in last ChangeLog entry.
22009
220102002-04-09 Daniel Jacobowitz <drow@mvista.com>
22011
22012 * linux-low.h: Remove obsolete prototypes.
22013 (struct linux_target_ops): New.
22014 (extern the_low_target): New.
22015 * linux-low.c (num_regs, regmap): Remove declarations.
22016 (register_addr): Use the_low_target explicitly.
22017 (fetch_register): Likewise.
22018 (usr_fetch_inferior_registers): Likewise.
22019 (usr_store_inferior_registers): Likewise.
22020 * linux-arm-low.c (num_regs): Remove.
22021 (arm_num_regs): Define.
22022 (arm_regmap): Renamed from regmap, made static.
22023 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22024 made static.
22025 (arm_cannot_store_register): Renamed from cannot_store_register,
22026 made static.
22027 (the_low_target): New.
22028 * linux-i386-low.c (num_regs): Remove.
22029 (i386_num_regs): Define.
22030 (i386_regmap): Renamed from regmap, made static.
22031 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22032 made static.
22033 (i386_cannot_store_register): Renamed from cannot_store_register,
22034 made static.
22035 (the_low_target): New.
22036 * linux-ia64-low.c (num_regs): Remove.
22037 (ia64_num_regs): Define.
22038 (ia64_regmap): Renamed from regmap, made static.
22039 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22040 made static.
22041 (ia64_cannot_store_register): Renamed from cannot_store_register,
22042 made static.
22043 (the_low_target): New.
22044 * linux-m68k-low.c (num_regs): Remove.
22045 (m68k_num_regs): Define.
22046 (m68k_regmap): Renamed from regmap, made static.
22047 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22048 made static.
22049 (m68k_cannot_store_register): Renamed from cannot_store_register,
22050 made static.
22051 (the_low_target): New.
22052 * linux-mips-low.c (num_regs): Remove.
22053 (mips_num_regs): Define.
22054 (mips_regmap): Renamed from regmap, made static.
22055 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22056 made static.
22057 (mips_cannot_store_register): Renamed from cannot_store_register,
22058 made static.
22059 (the_low_target): New.
22060 * linux-ppc-low.c (num_regs): Remove.
22061 (ppc_num_regs): Define.
22062 (ppc_regmap): Renamed from regmap, made static.
22063 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22064 made static.
22065 (ppc_cannot_store_register): Renamed from cannot_store_register,
22066 made static.
22067 (the_low_target): New.
22068 * linux-s390-low.c (num_regs): Remove.
22069 (s390_num_regs): Define.
22070 (s390_regmap): Renamed from regmap, made static.
22071 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22072 made static.
22073 (s390_cannot_store_register): Renamed from cannot_store_register,
22074 made static.
22075 (the_low_target): New.
22076 * linux-sh-low.c (num_regs): Remove.
22077 (sh_num_regs): Define.
22078 (sh_regmap): Renamed from regmap, made static.
22079 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22080 made static.
22081 (sh_cannot_store_register): Renamed from cannot_store_register,
22082 made static.
22083 (the_low_target): New.
22084 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22085 (the_low_target): New.
22086
220872002-04-09 Daniel Jacobowitz <drow@mvista.com>
22088
22089 * Makefile.in: Add stamp-h target.
22090 * configure.in: Create stamp-h.
22091 * configure: Regenerated.
22092
220932002-04-09 Daniel Jacobowitz <drow@mvista.com>
22094
22095 * inferiors.c: New file.
22096 * target.c: New file.
22097 * target.h: New file.
22098 * Makefile.in: Add target.o and inferiors.o. Update
22099 dependencies.
22100 * linux-low.c (inferior_pid): New static variable,
22101 moved from server.c.
22102 (linux_create_inferior): Renamed from create_inferior.
22103 Call add_inferior. Return 0 on success instead of a PID.
22104 (linux_attach): Renamed from myattach.
22105 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22106 (linux_thread_alive): Renamed from mythread_alive.
22107 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22108 child dies.
22109 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22110 (regsets_store_inferior_registers): Correct error message.
22111 Add missing ``return 0''.
22112 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22113 (linux_store_registers): Renamed from store_inferior_registers.
22114 (linux_read_memory): Renamed from read_inferior_memory.
22115 (linux_write_memory): Renamed from write_inferior_memory.
22116 (linux_target_ops): New structure.
22117 (initialize_low): Call set_target_ops ().
22118 * remote-utils.c (unhexify): New function.
22119 (hexify): New function.
22120 (input_interrupt): Send signals to ``signal_pid''.
22121 * server.c (inferior_pid): Remove.
22122 (start_inferior): Update create_inferior call.
22123 (attach_inferior): Call add_inferior.
22124 (handle_query): New function.
22125 (main): Call handle_query for `q' packets.
22126 * server.h: Include "target.h". Remove obsolete prototypes.
22127 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22128
221292002-04-09 Daniel Jacobowitz <drow@mvista.com>
22130
22131 * Makefile.in: Add WARN_CFLAGS. Update configury
22132 dependencies.
22133 * configure.in: Check for <string.h>
22134 * configure: Regenerate.
22135 * config.in: Regenerate.
22136 * gdbreplay.c: Include needed system headers.
22137 (remote_open): Remove strchr prototype.
22138 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22139 * regcache.c (supply_register): Change buf argument to const void *.
22140 (supply_register_by_name): Likewise.
22141 (collect_register): Change buf argument to void *.
22142 (collect_register_by_name): Likewise.
22143 * regcache.h: Add missing prototypes.
22144 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22145 * server.c (handle_query): New function.
22146 (attached): New static variable, moved out of main.
22147 (main): Quiet longjmp clobber warnings.
22148 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22149 * utils.c (error): Remove NORETURN.
22150 (fatal): Likewise.
This page took 3.465159 seconds and 4 git commands to generate.