gdb, gdbserver: remove configure check for fs_base/gs_base in user_regs_struct
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
1eb39914
SM
12020-04-27 Simon Marchi <simon.marchi@efficios.com>
2
3 * configure.ac: Remove check for fs_base/gs_base in
4 user_regs_struct.
5 * configure: Re-generate.
6 * config.in: Re-generate.
7 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
8 x86_store_gregset): Adjust.
9
51ac8e22
HD
102020-04-22 Hannes Domani <ssbssa@yahoo.de>
11
12 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
13 comparison.
14
a010605f
TT
152020-04-16 Tom Tromey <tromey@adacore.com>
16
17 * win32-low.cc (windows_nat::handle_access_violation): New
18 function.
19
e2275c6e
SM
202020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
21
22 * win32-low.cc (get_child_debug_event): Fix format string warning.
23
73944e9f
TT
242020-04-13 Tom Tromey <tom@tromey.com>
25
26 * server.h (gdb_fildes_t): Remove typedef.
27 * remote-utils.c (remote_desc, list_desc): Now int.
28 (INVALID_DESCRIPTOR): Remove.
29 (gdb_connected, remote_close)
30 (check_remote_input_interrupt_request): Update.
31 * utils.h (pfildes): Don't declare.
32 * utils.c (pfildes): Remove.
33
55d7aec8
TT
342020-04-13 Tom Tromey <tom@tromey.com>
35
36 * server.h (handle_serial_event, handle_target_event): Update.
37 * server.c: Don't call initialize_event_loop.
38 (keep_processing_events): New global.
39 (handle_serial_event): Return void. Set keep_processing_events.
40 (handle_target_event): Return void.
41 (start_event_loop): Move from event-loop.c. Rewrite.
42 * remote-utils.c (handle_accept_event): Return void.
43 (reset_readchar): Use delete_timer.
44 (process_remaining): Return void.
45 (reschedule): Use create_timer.
46 * event-loop.h: Remove.
47 * event-loop.cc: Remove.
48 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
49
e487f994
TT
502020-04-13 Tom Tromey <tom@tromey.com>
51
52 * server.c (invoke_async_signal_handlers)
53 (check_async_event_handlers, flush_streams, gdb_select): New
54 functions.
55
8ae8e197
TT
562020-04-13 Tom Tromey <tom@tromey.com>
57
58 * configure: Rebuild.
59 * config.in: Rebuild.
60
360ad8b3
TT
612020-04-08 Tom Tromey <tromey@adacore.com>
62
63 PR gdb/22992
64 * win32-low.c (child_continue): Call matching_pending_stop.
65 (get_child_debug_event): Call fetch_pending_stop. Push pending
66 stop when needed.
67
523d4f80
TT
682020-04-08 Tom Tromey <tromey@adacore.com>
69
70 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
71 (win32_process_target::supports_stopped_by_sw_breakpoint):
72 Declare.
73 * win32-low.c (win32_supports_z_point_type): Always handle
74 Z_PACKET_SW_BP.
75 (win32_insert_point): Call insert_memory_breakpoint when needed.
76 (win32_remove_point): Call remove_memory_breakpoint when needed.
77 (win32_process_target::stopped_by_sw_breakpoint)
78 (win32_process_target::supports_stopped_by_sw_breakpoint): New
79 methods.
80 (win32_target_ops): Update.
81 (maybe_adjust_pc): New function.
82 (win32_wait): Call maybe_adjust_pc.
83
e54e5929
TT
842020-04-08 Tom Tromey <tromey@adacore.com>
85
86 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
87 field.
88 * win32-i386-low.c (the_low_target): Update.
89 * win32-arm-low.c (the_low_target): Update.
90
d6225aff
TT
912020-04-08 Tom Tromey <tromey@adacore.com>
92
93 * win32-low.h (win32_process_target::read_pc)
94 (win32_process_target::write_pc): Declare.
95 * win32-low.c (win32_process_target::read_pc)
96 (win32_process_target::write_pc): New methods.
97 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
98 functions.
99 (the_low_target): Update.
100 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
101 functions.
102 (the_low_target): Update.
103
2c1d95e8
TT
1042020-04-08 Tom Tromey <tromey@adacore.com>
105
106 * win32-low.c (win32_kill, get_child_debug_event): Use
107 wait_for_debug_event.
108
e758e19c
TT
1092020-04-08 Tom Tromey <tromey@adacore.com>
110
111 * win32-low.c (child_continue): Call continue_last_debug_event.
112
8d30e395
TT
1132020-04-08 Tom Tromey <tromey@adacore.com>
114
115 * win32-low.c (handle_exception): Remove.
116 (windows_nat::handle_ms_vc_exception): New function.
117 (get_child_debug_event): Add "continue_status" parameter.
118 Update.
119 (win32_wait): Update.
120
a816ba18
TT
1212020-04-08 Tom Tromey <tromey@adacore.com>
122
123 * win32-low.c (windows_nat::handle_load_dll): Rename from
124 handle_load_dll. No longer static.
125 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
126 No longer static.
127
d41b524f
TT
1282020-04-08 Tom Tromey <tromey@adacore.com>
129
130 * win32-low.c (handle_output_debug_string): Add parameter. Change
131 return type.
132 (win32_kill, get_child_debug_event): Update.
133
3c76026d
TT
1342020-04-08 Tom Tromey <tromey@adacore.com>
135
136 * win32-low.c (current_process_handle, current_process_id)
137 (main_thread_id, last_sig, current_event, siginfo_er): Move to
138 nat/windows-nat.c.
139
9d8679cc
TT
1402020-04-08 Tom Tromey <tromey@adacore.com>
141
142 * win32-low.c (get_image_name): Remove.
143 (handle_load_dll): Update.
144
28688adf
TT
1452020-04-08 Tom Tromey <tromey@adacore.com>
146
147 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
148 No longer static. Change parameters.
149 (child_add_thread, child_fetch_inferior_registers)
150 (child_store_inferior_registers, win32_resume)
151 (win32_get_tib_address): Update.
152
4834dad0
TT
1532020-04-08 Tom Tromey <tromey@adacore.com>
154
155 * win32-low.h (struct win32_target_ops): Use qualified names where
156 needed.
157 * win32-i386-low.c: Add "using namespace".
158 * win32-low.c: Add "using namespace".
159 * win32-arm-low.c: Add "using namespace".
160
65bafd5b
TT
1612020-04-08 Tom Tromey <tromey@adacore.com>
162
163 * win32-low.c (delete_thread_info): Don't call CloseHandle.
164
98a03287
TT
1652020-04-08 Tom Tromey <tromey@adacore.com>
166
167 * win32-low.c (win32_require_context, suspend_one_thread): Use
168 windows_thread_info::suspend.
169 (continue_one_thread): Use windows_thread_info::resume.
170 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
171
62fe396b
TT
1722020-04-08 Tom Tromey <tromey@adacore.com>
173
174 * win32-i386-low.c (update_debug_registers)
175 (i386_prepare_to_resume, i386_thread_added): Update.
176
e9534bd2
TT
1772020-04-08 Tom Tromey <tromey@adacore.com>
178
179 * win32-low.c (child_add_thread): Use new.
180 (delete_thread_info): Use delete.
181
ae1f8880
TT
1822020-04-08 Tom Tromey <tromey@adacore.com>
183
184 * win32-low.h (struct windows_thread_info): Remove.
185
e56f8ccb
TT
1862020-04-08 Tom Tromey <tromey@adacore.com>
187
188 * win32-low.h (struct windows_thread_info): Rename from
189 win32_thread_info. Remove typedef.
190 (struct win32_target_ops, win32_require_context): Update.
191 * win32-low.c (win32_get_thread_context)
192 (win32_set_thread_context, win32_prepare_to_resume)
193 (win32_require_context, thread_rec, child_add_thread)
194 (delete_thread_info, continue_one_thread)
195 (child_fetch_inferior_registers, child_store_inferior_registers)
196 (win32_resume, suspend_one_thread, win32_get_tib_address):
197 Update.
198 * win32-i386-low.c (update_debug_registers)
199 (win32_get_current_dr, i386_get_thread_context)
200 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
201 (i386_fetch_inferior_register, i386_store_inferior_register):
202 Update.
203 * win32-arm-low.c (arm_get_thread_context)
204 (arm_fetch_inferior_register, arm_store_inferior_register):
205 Update.
206
0dd7b52e
TBA
2072020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
208
209 * linux-low.h (struct linux_target_ops): Remove.
210 (the_low_target): Remove.
211 * linux-x86-low.cc (the_low_target): Remove.
212 * linux-aarch64-low.cc (the_low_target): Ditto.
213 * linux-arm-low.cc (the_low_target): Ditto.
214 * linux-bfin-low.cc (the_low_target): Ditto.
215 * linux-cris-low.cc (the_low_target): Ditto.
216 * linux-crisv32-low.cc (the_low_target): Ditto.
217 * linux-ia64-low.cc (the_low_target): Ditto.
218 * linux-m32r-low.cc (the_low_target): Ditto.
219 * linux-m68k-low.cc (the_low_target): Ditto.
220 * linux-mips-low.cc (the_low_target): Ditto.
221 * linux-nios2-low.cc (the_low_target): Ditto.
222 * linux-ppc-low.cc (the_low_target): Ditto.
223 * linux-riscv-low.cc (the_low_target): Ditto.
224 * linux-s390-low.cc (the_low_target): Ditto.
225 * linux-sh-low.cc (the_low_target): Ditto.
226 * linux-sparc-low.cc (the_low_target): Ditto.
227 * linux-tic6x-low.cc (the_low_target): Ditto.
228 * linux-tile-low.cc (the_low_target): Ditto.
229 * linux-xtensa-low.cc (the_low_target): Ditto.
230
fc5ecdb6
TBA
2312020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
232
233 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
234 linux target define the op by overriding the declaration in
235 process_stratum_target.
236
237 * linux-low.h (struct linux_target_ops): Remove the op.
238 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
239 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
240 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
241 (x86_get_ipa_tdesc_idx): Turn into...
242 (x86_target::get_ipa_tdesc_idx): ...this.
243 (the_low_target): Remove the op field.
244 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
245 (ppc_get_ipa_tdesc_idx): Turn into...
246 (ppc_target::get_ipa_tdesc_idx): ...this.
247 (the_low_target): Remove the op field.
248 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
249 (s390_get_ipa_tdesc_idx): Turn into...
250 (s390_target::get_ipa_tdesc_idx): ...this.
251 (the_low_target): Remove the op field.
252
9eedd27d
TBA
2532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
254
255 Turn the 'get_syscall_trapinfo' linux target op into a method
256 of process_stratum_target.
257
258 * linux-low.h (struct linux_target_ops): Remove the op.
259 (class linux_process_target) <get_syscall_trapinfo>
260 <gdb_catch_this_syscall>
261 <low_supports_catch_syscall>
262 <low_get_syscall_trapinfo>: Declare.
263 * linux-low.cc (get_syscall_trapinfo): Turn into...
264 (linux_process_target::get_syscall_trapinfo): ...this.
265 (linux_process_target::low_get_syscall_trapinfo): Define.
266 (gdb_catch_this_syscall_p): Turn into...
267 (linux_process_target::gdb_catch_this_syscall): ...this.
268 (linux_process_target::low_supports_catch_syscall): Define.
269
270 Update the callers below.
271
272 (linux_process_target::wait_1)
273 (linux_process_target::supports_catch_syscall)
274
275 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
276 <low_get_syscall_trapinfo>: Declare.
277 (x86_target::low_supports_catch_syscall): Define.
278 (x86_get_syscall_trapinfo): Turn into...
279 (x86_target::low_get_syscall_trapinfo): ...this.
280 (the_low_target): Remove the op field.
281 * linux-aarch64-low.cc (class aarch64_target)
282 <low_supports_catch_syscall>
283 <low_get_syscall_trapinfo>: Declare.
284 (aarch64_target::low_supports_catch_syscall): Define.
285 (aarch64_get_syscall_trapinfo): Turn into...
286 (aarch64_target::low_get_syscall_trapinfo): ...this.
287 (the_low_target): Remove the op field.
288 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
289 <low_get_syscall_trapinfo>: Declare.
290 (arm_target::low_supports_catch_syscall): Define.
291 (arm_get_syscall_trapinfo): Turn into...
292 (arm_target::low_get_syscall_trapinfo): ...this.
293 (the_low_target): Remove the op field.
294 * linux-ppc-low.cc (the_low_target): Remove the op field.
295 * linux-s390-low.cc (the_low_target): Remove the op field.
296
b31cdfa6
TBA
2972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
298
299 Remove the 'supports_hardware_single_step' linux target op and
300 override the process_stratum_target's op definition in
301 linux_process_target to return true.
302
303 * linux-low.h (struct linux_target_ops): Remove the op.
304 (class linux_process_target) <finish_step_over>
305 <maybe_hw_step>: Declare.
306 * linux-low.cc (can_hardware_single_step): Remove.
307 (maybe_hw_step): Turn into...
308 (linux_process_target::maybe_hw_step): ...this.
309 (finish_step_over): Turn into...
310 (linux_process_target::finish_step_over): ...this.
311 (linux_process_target::supports_hardware_single_step): Update
312 to return true.
313
314 Update the callers below.
315
316 (linux_process_target::single_step)
317 (linux_process_target::resume_one_lwp_throw)
318
319 * linux-arm-low.cc (class arm_target)
320 <supports_hardware_single_step>: Declare.
321 (arm_supports_hardware_single_step): Turn into...
322 (arm_target::supports_hardware_single_step): ...this.
323 (the_low_target): Remove the op field.
324 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
325 (the_low_target): Remove the op field.
326 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
327 Remove.
328 (the_low_target): Remove the op field.
329 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
330 (the_low_target): Remove the op field.
331 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
332 (the_low_target): Remove the op field.
333 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
334 (the_low_target): Remove the op field.
335 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
336 (the_low_target): Remove the op field.
337 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
338 (the_low_target): Remove the op field.
339 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
340 (the_low_target): Remove the op field.
341 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
342 (the_low_target): Remove the op field.
343 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
344 (the_low_target): Remove the op field.
345 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
346 (the_low_target): Remove the op field.
347 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
348 Remove.
349 (the_low_target): Remove the op field.
350
9cfd8715
TBA
3512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
352
353 Turn the 'supports_range_stepping' linux target op into a method
354 of linux_process_target.
355
356 * linux-low.h (struct linux_target_ops): Remove the op.
357 (class linux_process_target) <low_supports_range_stepping>: Declare.
358 * linux-low.cc (linux_process_target::low_supports_range_stepping):
359 Define.
360 (linux_process_target::supports_range_stepping): Update the call
361 site.
362 * linux-x86-low.cc (class x86_target)
363 <low_supports_range_stepping>: Declare.
364 (x86_supports_range_stepping): Turn into...
365 (x86_target::low_supports_range_stepping): ...this.
366 (the_low_target): Remove the op field.
367 * linux-aarch64-low.cc (class aarch64_target)
368 <low_supports_range_stepping>: Declare.
369 (aarch64_supports_range_stepping): Turn into...
370 (aarch64_target::low_supports_range_stepping): ...this.
371 (the_low_target): Remove the op field.
372 * linux-arm-low.cc (the_low_target): Remove the op field.
373 * linux-bfin-low.cc (the_low_target): Ditto.
374 * linux-crisv32-low.cc (the_low_target): Ditto.
375 * linux-m32r-low.cc (the_low_target): Ditto.
376 * linux-m68k-low.cc (the_low_target): Ditto.
377 * linux-ppc-low.cc (the_low_target): Ditto.
378 * linux-s390-low.cc (the_low_target): Ditto.
379 * linux-sh-low.cc (the_low_target): Ditto.
380 * linux-tic6x-low.cc (the_low_target): Ditto.
381 * linux-tile-low.cc (the_low_target): Ditto.
382 * linux-xtensa-low.cc (the_low_target): Ditto.
383
ab64c999
TBA
3842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
385
386 Remove the 'emit_ops' linux target ops and let the concrete
387 linux target define the op by overriding the declaration of
388 process_stratum_target.
389
390 * linux-low.h (struct linux_target_ops): Remove the op.
391 (class linux_process_target) <emit_ops>: Remove.
392 * linux-low.cc (linux_process_target::emit_ops): Remove.
393 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
394 (x86_emit_ops): Turn into...
395 (x86_target::emit_ops): ...this.
396 (the_low_target): Remove the op field.
397 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
398 (aarch64_emit_ops): Turn into...
399 (aarch64_target::emit_ops): ...this.
400 (the_low_target): Remove the op field.
401 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
402 (ppc_emit_ops): Turn into...
403 (ppc_target::emit_ops): ...this.
404 (the_low_target): Remove the op field.
405 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
406 (s390_emit_ops): Turn into...
407 (s390_target::emit_ops): ...this.
408 (the_low_target): Remove the op field.
409 * linux-arm-low.cc (the_low_target): Remove the op field.
410 * linux-bfin-low.cc (the_low_target): Ditto.
411 * linux-crisv32-low.cc (the_low_target): Ditto.
412 * linux-m32r-low.cc (the_low_target): Ditto.
413 * linux-m68k-low.cc (the_low_target): Ditto.
414 * linux-sh-low.cc (the_low_target): Ditto.
415 * linux-tic6x-low.cc (the_low_target): Ditto.
416 * linux-tile-low.cc (the_low_target): Ditto.
417 * linux-xtensa-low.cc (the_low_target): Ditto.
418
809a0c35
TBA
4192020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
420
421 Remove the 'install_fast_tracepoint_jump_pad' and
422 'get_min_fast_tracepoint_insn_len' linux target ops to let the
423 concrete linux target define the ops by overriding the declarations
424 of process_stratum_target.
425
426 * linux-low.h (struct linux_target_ops): Remove the ops.
427 (class linux_process_target) <supports_fast_tracepoints>
428 <install_fast_tracepoint_jump_pad>
429 <get_min_fast_tracepoint_insn_len>: Remove.
430 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
431 (linux_process_target::install_fast_tracepoint_jump_pad)
432 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
433 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
434 <install_fast_tracepoint_jump_pad>
435 <get_min_fast_tracepoint_insn_len>: Declare.
436 (x86_target::supports_fast_tracepoints): Define.
437 (x86_install_fast_tracepoint_jump_pad): Turn into...
438 (x86_target::install_fast_tracepoint_jump_pad): ...this.
439 (x86_get_min_fast_tracepoint_insn_len): Turn into...
440 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
441 (the_low_target): Remove the op fields.
442 * linux-aarch64-low.cc (class aarch64_target)
443 <supports_fast_tracepoints>
444 <install_fast_tracepoint_jump_pad>
445 <get_min_fast_tracepoint_insn_len>: Declare.
446 (aarch64_target::supports_fast_tracepoints): Define.
447 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
448 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
449 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
450 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
451 (the_low_target): Remove the op fields.
452 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
453 <install_fast_tracepoint_jump_pad>
454 <get_min_fast_tracepoint_insn_len>: Declare.
455 (ppc_target::supports_fast_tracepoints): Define.
456 (ppc_install_fast_tracepoint_jump_pad): Turn into...
457 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
458 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
459 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
460 (the_low_target): Remove the op fields.
461 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
462 <install_fast_tracepoint_jump_pad>
463 <get_min_fast_tracepoint_insn_len>: Declare.
464 (s390_target::supports_fast_tracepoints): Define.
465 (s390_install_fast_tracepoint_jump_pad): Turn into...
466 (s390_target::install_fast_tracepoint_jump_pad): ...this.
467 (s390_get_min_fast_tracepoint_insn_len): Turn into...
468 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
469 (the_low_target): Remove the op fields.
470 * linux-arm-low.cc (the_low_target): Remove the op fields.
471 * linux-bfin-low.cc (the_low_target): Ditto.
472 * linux-crisv32-low.cc (the_low_target): Ditto.
473 * linux-m32r-low.cc (the_low_target): Ditto.
474 * linux-m68k-low.cc (the_low_target): Ditto.
475 * linux-sh-low.cc (the_low_target): Ditto.
476 * linux-tic6x-low.cc (the_low_target): Ditto.
477 * linux-tile-low.cc (the_low_target): Ditto.
478 * linux-xtensa-low.cc (the_low_target): Ditto.
479
13e567af
TBA
4802020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
481
482 Turn the 'get_thread_area' linux target op into a method of
483 process_stratum_target.
484
485 * linux-low.h (struct linux_target_ops): Remove the op.
486 (class linux_process_target) <stuck_in_jump_pad>
487 <linux_fast_tracepoint_collecting>
488 <low_get_thread_area>: Declare.
489 * linux-low.cc (supports_fast_tracepoints): Remove.
490 (linux_fast_tracepoint_collecting): Turn into...
491 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
492 (linux_process_target::low_get_thread_area): Define.
493 (stuck_in_jump_pad_callback): Turn into...
494 (linux_process_target::stuck_in_jump_pad): ...this.
495
496 Update the caller below.
497
498 (linux_process_target::stabilize_threads)
499
500 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
501 Declare.
502 (x86_get_thread_area): Turn into...
503 (x86_target::low_get_thread_area): ...this.
504 (the_low_target): Remove the op field.
505 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
506 Declare.
507 (aarch64_get_thread_area): Turn into...
508 (aarch64_target::low_get_thread_area): ...this.
509 (the_low_target): Remove the op field.
510 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
511 Declare.
512 (ppc_get_thread_area): Turn into...
513 (ppc_target::low_get_thread_area): ...this.
514 (the_low_target): Remove the op field.
515 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
516 Declare.
517 (s390_get_thread_area): Turn into...
518 (s390_target::low_get_thread_area): ...this.
519 (the_low_target): Remove the op field.
520 * linux-arm-low.cc (the_low_target): Remove the op field.
521 * linux-bfin-low.cc (the_low_target): Ditto.
522 * linux-crisv32-low.cc (the_low_target): Ditto.
523 * linux-m32r-low.cc (the_low_target): Ditto.
524 * linux-m68k-low.cc (the_low_target): Ditto.
525 * linux-sh-low.cc (the_low_target): Ditto.
526 * linux-tic6x-low.cc (the_low_target): Ditto.
527 * linux-tile-low.cc (the_low_target): Ditto.
528 * linux-xtensa-low.cc (the_low_target): Ditto.
529
47f70aa7
TBA
5302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
531
532 Remote the 'supports_tracepoints' linux target op and let the
533 concrete linux target define it by overriding the op declared in
534 process_stratum_target.
535
536 * linux-low.h (struct linux_target_ops): Remove the op.
537 (class linux_process_target) <supports_tracepoints>: Remove.
538 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
539 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
540 Declare.
541 (x86_supports_tracepoints): Turn into...
542 (x86_target::supports_tracepoints): ...this.
543 (the_low_target): Remove the op field.
544 * linux-aarch64-low.cc (class aarch64_target)
545 <supports_tracepoints>: Declare.
546 (aarch64_supports_tracepoints): Turn into...
547 (aarch64_target::supports_tracepoints): ...this.
548 (the_low_target): Remove the op field.
549 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
550 Declare.
551 (ppc_supports_tracepoints): Turn into...
552 (ppc_target::supports_tracepoints): ...this.
553 (the_low_target): Remove the op field.
554 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
555 Declare.
556 (s390_supports_tracepoints): Turn into...
557 (s390_target::supports_tracepoints): ...this.
558 (the_low_target): Remove the op field.
559 * linux-arm-low.cc (the_low_target): Remove the op field.
560 * linux-bfin-low.cc (the_low_target): Ditto.
561 * linux-crisv32-low.cc (the_low_target): Ditto.
562 * linux-m32r-low.cc (the_low_target): Ditto.
563 * linux-m68k-low.cc (the_low_target): Ditto.
564 * linux-sh-low.cc (the_low_target): Ditto.
565 * linux-tic6x-low.cc (the_low_target): Ditto.
566 * linux-tile-low.cc (the_low_target): Ditto.
567 * linux-xtensa-low.cc (the_low_target): Ditto.
568
a5b5da92
TBA
5692020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
570
571 Remove the 'process_qsupported' linux target op and let a concrete
572 linux target define the op by overriding the op declaration in
573 process_stratum_target.
574
575 * linux-low.h (struct linux_target_ops): Remove the op.
576 (class linux_process_target) <process_qsupported>: Remove.
577 * linux-low.cc (linux_process_target::process_qsupported): Remove.
578 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
579 (x86_linux_process_qsupported): Turn into...
580 (x86_target::process_qsupported): ...this.
581 (the_low_target): Remove the op field.
582 * linux-aarch64-low.cc (the_low_target): Remove the op
583 field.
584 * linux-arm-low.cc (the_low_target): Ditto.
585 * linux-bfin-low.cc (the_low_target): Ditto.
586 * linux-crisv32-low.cc (the_low_target): Ditto.
587 * linux-m32r-low.cc (the_low_target): Ditto.
588 * linux-m68k-low.cc (the_low_target): Ditto.
589 * linux-ppc-low.cc (the_low_target): Ditto.
590 * linux-s390-low.cc (the_low_target): Ditto.
591 * linux-sh-low.cc (the_low_target): Ditto.
592 * linux-tic6x-low.cc (the_low_target): Ditto.
593 * linux-tile-low.cc (the_low_target): Ditto.
594 * linux-xtensa-low.cc (the_low_target): Ditto.
595
d7599cc0
TBA
5962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
597
598 Turn the 'prepare_to_resume' linux target op into a method of
599 linux_process_target.
600
601 * linux-low.h (struct linux_target_ops): Remove the op.
602 (class linux_process_target) <low_prepare_to_resume>: Declare.
603 * linux-low.cc (linux_process_target::low_prepare_to_resume):
604 Define.
605
606 Update the callers below:
607
608 (linux_process_target::resume_one_lwp_throw)
609 (linux_process_target::low_prepare_to_resume)
610
611 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
612 Declare.
613 (x86_target::low_prepare_to_resume): Define.
614 (the_low_target): Remove the op field.
615 * linux-aarch64-low.cc (class aarch64_target)
616 <low_prepare_to_resume>: Declare.
617 (aarch64_target::low_prepare_to_resume): Define.
618 (the_low_target): Remove the op field.
619 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
620 Declare.
621 (arm_prepare_to_resume): Turn into...
622 (arm_target::low_prepare_to_resume): ...this.
623 (the_low_target): Remove the op field.
624 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
625 Declare.
626 (mips_linux_prepare_to_resume): Turn into...
627 (mips_target::low_prepare_to_resume): ...this.
628 (the_low_target): Remove the op field.
629 * linux-bfin-low.cc (the_low_target): Remove the op field.
630 * linux-crisv32-low.cc (the_low_target): Ditto.
631 * linux-m32r-low.cc (the_low_target): Ditto.
632 * linux-m68k-low.cc (the_low_target): Ditto.
633 * linux-ppc-low.cc (the_low_target): Ditto.
634 * linux-s390-low.cc (the_low_target): Ditto.
635 * linux-sh-low.cc (the_low_target): Ditto.
636 * linux-tic6x-low.cc (the_low_target): Ditto.
637 * linux-tile-low.cc (the_low_target): Ditto.
638 * linux-xtensa-low.cc (the_low_target): Ditto.
639
fd000fb3
TBA
6402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
641
642 Turn the 'new_process', 'delete_process', 'new_thread',
643 'delete_thread', and 'new_fork' linux target ops into methods
644 of linux_process_target.
645
646 * linux-low.h (struct linux_target_ops): Remove the ops.
647 (class linux_process_target) <add_linux_process>
648 <add_lwp>
649 <delete_lwp>
650 <attach_lwp>
651 <detach_one_lwp>
652 <check_zombie_leaders>
653 <filter_exit_event>
654 <low_new_process>
655 <low_delete_process>
656 <low_new_thread>
657 <low_delete_thread>
658 <low_new_fork>: Declare.
659 * linux-low.cc (delete_lwp): Turn into...
660 (linux_process_target::delete_lwp): ...this.
661 (linux_process_target::low_delete_thread): Define.
662 (linux_add_process): Turn into...
663 (linux_process_target::add_linux_process): ...this.
664 (linux_process_target::low_new_process): Define.
665 (linux_process_target::low_delete_process): Define.
666 (linux_process_target::low_new_fork): Define.
667 (add_lwp): Turn into...
668 (linux_process_target::add_lwp): ...this.
669 (linux_process_target::low_new_thread): Define.
670 (linux_attach_lwp): Turn into...
671 (linux_process_target::attach_lwp): ...this.
672 (linux_detach_one_lwp): Turn into...
673 (linux_process_target::detach_one_lwp): ...this.
674 (linux_detach_lwp_callback): Remove and inline...
675 (linux_process_target::detach): ...here.
676 (check_zombie_leaders): Turn into...
677 (linux_process_target::check_zombie_leaders): ...this.
678 (filter_exit_event): Turn into...
679 (linux_process_target::filter_exit_event): ...this.
680
681 Update the callers below.
682
683 (linux_process_target::handle_extended_wait)
684 (linux_process_target::create_inferior)
685 (attach_proc_task_lwp_callback)
686 (linux_process_target::attach)
687 (linux_process_target::detach)
688 (linux_process_target::mourn)
689 * thread-db.cc (attach_thread)
690
691 * linux-x86-low.cc (class x86_target) <low_new_process>
692 <low_delete_process>
693 <low_new_thread>
694 <low_delete_thread>
695 <low_new_fork>: Declare.
696 (x86_linux_new_process): Turn into...
697 (x86_target::low_new_process): ...this.
698 (x86_linux_delete_process): Turn into...
699 (x86_target::low_delete_process): ...this.
700 (x86_target::low_new_thread): Define.
701 (x86_target::low_delete_thread): Define.
702 (x86_linux_new_fork): Turn into...
703 (x86_target::low_new_fork): ...this.
704 (the_low_target): Remove the op fields.
705 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
706 <low_delete_process>
707 <low_new_thread>
708 <low_delete_thread>
709 <low_new_fork>: Declare.
710 (aarch64_linux_new_process): Turn into...
711 (aarch64_target::low_new_process): ...this.
712 (aarch64_linux_delete_process): Turn into...
713 (aarch64_target::low_delete_process): ...this.
714 (aarch64_target::low_new_thread): Define.
715 (aarch64_target::low_delete_thread): Define.
716 (aarch64_linux_new_fork): Turn into...
717 (aarch64_target::low_new_fork): ...this.
718 (the_low_target): Remove the op fields.
719 * linux-arm-low.cc (class arm_target) <low_new_process>
720 <low_delete_process>
721 <low_new_thread>
722 <low_delete_thread>
723 <low_new_fork>: Declare.
724 (arm_new_process): Turn into...
725 (arm_target::low_new_process): ...this.
726 (arm_delete_process): Turn into...
727 (arm_target::low_delete_process): ...this.
728 (arm_new_thread): Turn into...
729 (arm_target::low_new_thread): ...this.
730 (arm_delete_thread): Turn into...
731 (arm_target::low_delete_thread): ...this.
732 (arm_new_fork): Turn into...
733 (arm_target::low_new_fork): ...this.
734 (the_low_target): Remove the op fields.
735 * linux-mips-low.cc (class mips_target) <low_new_process>
736 <low_delete_process>
737 <low_new_thread>
738 <low_delete_thread>
739 <low_new_fork>: Declare.
740 (mips_linux_new_process): Turn into...
741 (mips_target::low_new_process): ...this.
742 (mips_linux_delete_process): Turn into...
743 (mips_target::low_delete_process): ...this.
744 (mips_linux_new_thread): Turn into...
745 (mips_target::low_new_thread): ...this.
746 (mips_linux_delete_thread): Turn into...
747 (mips_target::low_delete_thread): ...this.
748 (mips_linux_new_fork): Turn into...
749 (mips_target::low_new_fork): ...this.
750 (the_low_target): Remove the op fields.
751 * linux-bfin-low.cc (the_low_target): Remove the op fields.
752 * linux-crisv32-low.cc (the_low_target): Ditto.
753 * linux-m32r-low.cc (the_low_target): Ditto.
754 * linux-m68k-low.cc (the_low_target): Ditto.
755 * linux-ppc-low.cc (the_low_target): Ditto.
756 * linux-s390-low.cc (the_low_target): Ditto.
757 * linux-sh-low.cc (the_low_target): Ditto.
758 * linux-tic6x-low.cc (the_low_target): Ditto.
759 * linux-tile-low.cc (the_low_target): Ditto.
760 * linux-xtensa-low.cc (the_low_target): Ditto.
761
cb63de7c
TBA
7622020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
763
764 Turn the 'siginfo_fixup' linux target op into a method of
765 linux_process_target.
766
767 * linux-low.h (struct linux_target_ops): Remove the op.
768 (class linux_process_target) <siginfo_fixup>
769 <low_siginfo_fixup>: Declare.
770 * linux-low.cc (siginfo_fixup): Turn into...
771 (linux_process_target::siginfo_fixup): ...this.
772 (linux_process_target::low_siginfo_fixup): Define.
773 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
774 (x86_siginfo_fixup): Turn into...
775 (x86_target::low_siginfo_fixup): ...this.
776 (the_low_target): Remove the op field.
777 * linux-aarch64-low.cc (class aarch64_target):
778 <low_siginfo_fixup>: Declare.
779 (aarch64_linux_siginfo_fixup): Turn into...
780 (aarch64_target::low_siginfo_fixup): ...this.
781 (the_low_target): Remove the op field.
782 * linux-arm-low.cc (the_low_target): Remove the op field.
783 * linux-bfin-low.cc (the_low_target): Ditto.
784 * linux-crisv32-low.cc (the_low_target): Ditto.
785 * linux-m32r-low.cc (the_low_target): Ditto.
786 * linux-m68k-low.cc (the_low_target): Ditto.
787 * linux-mips-low.cc (the_low_target): Ditto.
788 * linux-ppc-low.cc (the_low_target): Ditto.
789 * linux-s390-low.cc (the_low_target): Ditto.
790 * linux-sh-low.cc (the_low_target): Ditto.
791 * linux-tic6x-low.cc (the_low_target): Ditto.
792 * linux-tile-low.cc (the_low_target): Ditto.
793 * linux-xtensa-low.cc (the_low_target): Ditto.
794
b35db733
TBA
7952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
796
797 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
798 linux target ops into methods of linux_process_target.
799
800 * linux-low.h (struct linux_target_ops): Remove the ops.
801 (class linux_process_target) <low_collect_ptrace_register>
802 <low_store_ptrace_register>: Declare.
803 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
804 (linux_process_target::low_supply_ptrace_register): Define.
805
806 Update the callers below.
807
808 (linux_process_target::fetch_register)
809 (linux_process_target::store_register)
810
811 * linux-x86-low.cc (the_low_target): Remove the op fields.
812 * linux-aarch64-low.cc (the_low_target): Ditto.
813 * linux-arm-low.cc (the_low_target): Ditto.
814 * linux-bfin-low.cc (the_low_target): Ditto.
815 * linux-crisv32-low.cc (the_low_target): Ditto.
816 * linux-m32r-low.cc (the_low_target): Ditto.
817 * linux-m68k-low.cc (the_low_target): Ditto.
818 * linux-sh-low.cc (the_low_target): Ditto.
819 * linux-sparc-low.cc (the_low_target): Ditto.
820 * linux-tic6x-low.cc (the_low_target): Ditto.
821 * linux-tile-low.cc (the_low_target): Ditto.
822 * linux-xtensa-low.cc (the_low_target): Ditto.
823 * linux-mips-low.cc (class mips_target)
824 <low_collect_ptrace_register>
825 <low_supply_ptrace_register>: Declare.
826 (mips_collect_ptrace_register): Turn into ...
827 (mips_target::low_collect_ptrace_register): ...this.
828 (mips_supply_ptrace_register): Turn into...
829 (mips_target::low_supply_ptrace_register): ...this.
830 (the_low_target): Remove the op fields.
831 * linux-ppc-low.cc (class ppc_target)
832 <low_collect_ptrace_register>
833 <low_supply_ptrace_register>: Declare.
834 (ppc_collect_ptrace_register): Turn into ...
835 (ppc_target::low_collect_ptrace_register): ...this.
836 (ppc_supply_ptrace_register): Turn into ...
837 (ppc_target::low_supply_ptrace_register): ...this.
838 (ppc_fill_gregset): Update for the calls to
839 low_collect_ptrace_register.
840 (the_low_target): Remove the op fields.
841 * linux-s390-low.cc (class s390_target)
842 <low_collect_ptrace_register>
843 <low_supply_ptrace_register>: Declare.
844 (s390_collect_ptrace_register): Turn into ...
845 (s390_target::low_collect_ptrace_register): ...this.
846 (s390_supply_ptrace_register): Turn into ...
847 (s390_target::low_supply_ptrace_register): ...this.
848 (s390_fill_gregset): Update for the calls to
849 low_collect_ptrace_register.
850 (the_low_target): Remove the op fields.
851
ac1bbaca
TBA
8522020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
853
854 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
855 target ops into methods of linux_process_target.
856
857 * linux-low.h (struct linux_target_ops): Remove the ops.
858 (class linux_process_target) <check_stopped_by_watchpoint>
859 <low_stopped_by_watchpoint>
860 <low_stopped_data_address>: Declare.
861 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
862 (linux_process_target::check_stopped_by_watchpoint): ...this.
863 (linux_process_target::low_stopped_by_watchpoint): Define.
864 (linux_process_target::low_stopped_data_address): Define.
865 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
866 <low_stopped_data_address>: Declare.
867 (x86_stopped_by_watchpoint): Turn into...
868 (x86_target::low_stopped_by_watchpoint): ...this.
869 (x86_stopped_data_address): Turn into...
870 (x86_target::low_stopped_data_address): ...this.
871 (the_low_target): Remove the op fields.
872 * linux-aarch64-low.cc (class aarch64_target)
873 <low_stopped_by_watchpoint>
874 <low_stopped_data_address>: Declare.
875 (aarch64_stopped_by_watchpoint): Turn into...
876 (aarch64_target::low_stopped_by_watchpoint): ...this.
877 (aarch64_stopped_data_address): Turn into...
878 (aarch64_target::low_stopped_data_address): ...this.
879 (the_low_target): Remove the op fields.
880 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
881 <low_stopped_data_address>: Declare.
882 (arm_stopped_by_watchpoint): Turn into...
883 (arm_target::low_stopped_by_watchpoint): ...this.
884 (arm_stopped_data_address): Turn into...
885 (arm_target::low_stopped_data_address): ...this.
886 (the_low_target): Remove the op fields.
887 * linux-crisv32-low.cc (class crisv32_target)
888 <low_stopped_by_watchpoint>
889 <low_stopped_data_address>: Declare.
890 (cris_stopped_by_watchpoint): Turn into...
891 (crisv32_target::low_stopped_by_watchpoint): ...this.
892 (cris_stopped_data_address): Turn into...
893 (crisv32_target::low_stopped_data_address): ...this.
894 (the_low_target): Remove the op fields.
895 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
896 <low_stopped_data_address>: Declare.
897 (mips_stopped_by_watchpoint): Turn into...
898 (mips_target::low_stopped_by_watchpoint): ...this.
899 (mips_stopped_data_address): Turn into...
900 (mips_target::low_stopped_data_address): ...this.
901 (the_low_target): Remove the op fields.
902 * linux-bfin-low.cc (the_low_target): Remove the op fields.
903 * linux-m32r-low.cc (the_low_target): Ditto.
904 * linux-m68k-low.cc (the_low_target): Ditto.
905 * linux-ppc-low.cc (the_low_target): Ditto.
906 * linux-s390-low.cc (the_low_target): Ditto.
907 * linux-sh-low.cc (the_low_target): Ditto.
908 * linux-sparc-low.cc (the_low_target): Ditto.
909 * linux-tic6x-low.cc (the_low_target): Ditto.
910 * linux-tile-low.cc (the_low_target): Ditto.
911 * linux-xtensa-low.cc (the_low_target): Ditto.
912
9db9aa23
TBA
9132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
914
915 Turn the 'insert_point' and 'remove_point' linux target ops into
916 methods of linux_process_target.
917
918 * linux-low.h (struct linux_target_ops): Remove the ops.
919 (class linux_process_target) <low_insert_point>
920 <low_remove_point>: Declare.
921 * linux-low.cc (linux_process_target::low_insert_point)
922 (linux_process_target::low_remove_point): Define.
923 (linux_process_target::insert_point)
924 (linux_process_target::remove_point): Update for calls to
925 low_insert_point and low_remove_point.
926 * linux-x86-low.cc (class x86_target) <low_insert_point>
927 <low_remove_point>: Declare.
928 (x86_insert_point): Turn into...
929 (x86_target::low_insert_point): ...this.
930 (x86_remove_point): Turn into...
931 (x86_target::low_remove_point): ...this.
932 (the_low_target): Remove the op fields.
933 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
934 <low_remove_point>: Declare.
935 (aarch64_insert_point): Turn into...
936 (aarch64_target::low_insert_point): ...this.
937 (aarch64_remove_point): Turn into...
938 (aarch64_target::low_remove_point): ...this.
939 (the_low_target): Remove the op fields.
940 * linux-arm-low.cc (class arm_target) <low_insert_point>
941 <low_remove_point>: Declare.
942 (arm_insert_point): Turn into...
943 (arm_target::low_insert_point): ...this.
944 (arm_remove_point): Turn into...
945 (arm_target::low_remove_point): ...this.
946 (the_low_target): Remove the op fields.
947 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
948 <low_remove_point>: Declare.
949 (crisv32_insert_point): Turn into...
950 (crisv32_target::low_insert_point): ...this.
951 (crisv32_remove_point): Turn into...
952 (crisv32_target::low_remove_point): ...this.
953 (the_low_target): Remove the op fields.
954 * linux-mips-low.cc (class mips_target) <low_insert_point>
955 <low_remove_point>: Declare.
956 (mips_insert_point): Turn into...
957 (mips_target::low_insert_point): ...this.
958 (mips_remove_point): Turn into...
959 (mips_target::low_remove_point): ...this.
960 (the_low_target): Remove the op fields.
961 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
962 <low_remove_point>: Declare.
963 (ppc_insert_point): Turn into...
964 (ppc_target::low_insert_point): ...this.
965 (ppc_remove_point): Turn into...
966 (ppc_target::low_remove_point): ...this.
967 (the_low_target): Remove the op fields.
968 * linux-bfin-low.cc (the_low_target): Remove the op fields.
969 * linux-m32r-low.cc (the_low_target): Ditto.
970 * linux-m68k-low.cc (the_low_target): Ditto.
971 * linux-s390-low.cc (the_low_target): Ditto.
972 * linux-sh-low.cc (the_low_target): Ditto.
973 * linux-sparc-low.cc (the_low_target): Ditto.
974 * linux-tic6x-low.cc (the_low_target): Ditto.
975 * linux-tile-low.cc (the_low_target): Ditto.
976 * linux-xtensa-low.cc (the_low_target): Ditto.
977
007c9b97
TBA
9782020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
979
980 Remove the 'supports_z_point_type' linux target op and let the
981 concrete linux target define it by overriding the op declared in
982 process_stratum_target.
983
984 * linux-low.cc (linux_process_target::supports_z_point_type):
985 Remove.
986 * linux-low.h (struct linux_target_ops): Remove the op.
987 (class linux_process_target) <supports_z_point_type>: Remove.
988 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
989 Declare.
990 (x86_supports_z_point_type): Turn into...
991 (x86_target::supports_z_point_type): ...this.
992 (the_low_target): Remove the op field.
993 * linux-aarch64-low.cc (class aarch64_target)
994 <supports_z_point_type>: Declare.
995 (aarch64_supports_z_point_type): Turn into...
996 (aarch64_target::supports_z_point_type): ...this.
997 (the_low_target): Remove the op field.
998 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
999 Declare.
1000 (arm_supports_z_point_type): Turn into...
1001 (arm_target::supports_z_point_type): ...this.
1002 (the_low_target): Remove the op field.
1003 * linux-crisv32-low.cc (class crisv32_target)
1004 <supports_z_point_type>: Declare.
1005 (cris_supports_z_point_type): Turn into...
1006 (crisv32_target::supports_z_point_type): ...this.
1007 (the_low_target): Remove the op field.
1008 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1009 Declare.
1010 (mips_supports_z_point_type): Turn into...
1011 (mips_target::supports_z_point_type): ...this.
1012 (the_low_target): Remove the op field.
1013 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1014 Declare.
1015 (ppc_supports_z_point_type): Turn into...
1016 (ppc_target::supports_z_point_type): ...this.
1017 (the_low_target): Remove the op field.
1018 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1019 Declare.
1020 (s390_supports_z_point_type): Turn into...
1021 (s390_target::supports_z_point_type): ...this.
1022 (the_low_target): Remove the op field.
1023 * linux-bfin-low.cc (the_low_target): Remove the op field.
1024 * linux-m32r-low.cc (the_low_target): Ditto.
1025 * linux-m68k-low.cc (the_low_target): Ditto.
1026 * linux-sh-low.cc (the_low_target): Ditto.
1027 * linux-sparc-low.cc (the_low_target): Ditto.
1028 * linux-tic6x-low.cc (the_low_target): Ditto.
1029 * linux-tile-low.cc (the_low_target): Ditto.
1030 * linux-xtensa-low.cc (the_low_target): Ditto.
1031
d7146cda
TBA
10322020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1033
1034 Turn the 'breakpoint_at' linux target op into a method of
1035 linux_process_target.
1036
1037 * linux-low.h (struct linux_target_ops): Remove the op.
1038 (class linux_process_target) <low_breakpoint_at>: Declare.
1039
1040 Update the callers below:
1041
1042 * linux-low.cc (linux_process_target::save_stop_reason)
1043 (linux_process_target::thread_still_has_status_pending)
1044 (linux_process_target::wait_1)
1045
1046 * linux-x86-low.cc (class x86_target)
1047 <low_breakpoint_at>: Declare.
1048 (x86_breakpoint_at): Turn into...
1049 (x86_target::low_breakpoint_at): ...this.
1050 (the_low_target): Remove the op field.
1051 * linux-aarch64-low.cc (class aarch64_target)
1052 <low_breakpoint_at>: Declare.
1053 (aarch64_breakpoint_at): Turn into...
1054 (aarch64_target::low_breakpoint_at): ...this.
1055 (the_low_target): Remove the op field.
1056 * linux-arm-low.cc (class arm_target)
1057 <low_breakpoint_at>: Declare.
1058 (arm_target::low_breakpoint_at): Define.
1059 (the_low_target): Remove the op field.
1060 * linux-bfin-low.cc (class bfin_target)
1061 <low_breakpoint_at>: Declare.
1062 (bfin_breakpoint_at): Turn into...
1063 (bfin_target::low_breakpoint_at): ...this.
1064 (the_low_target): Remove the op field.
1065 * linux-cris-low.cc (class cris_target)
1066 <low_breakpoint_at>: Declare.
1067 (cris_breakpoint_at): Turn into...
1068 (cris_target::low_breakpoint_at): ...this.
1069 (the_low_target): Remove the op field.
1070 * linux-crisv32-low.cc (class crisv32_target)
1071 <low_breakpoint_at>: Declare.
1072 (crisv32_breakpoint_at): Turn into...
1073 (crisv32_target::low_breakpoint_at): ...this.
1074 (the_low_target): Remove the op field.
1075 * linux-ia64-low.cc (class ia64_target)
1076 <low_breakpoint_at>: Declare.
1077 (ia64_target::low_breakpoint_at): Define.
1078 * linux-m32r-low.cc (class m32r_target)
1079 <low_breakpoint_at>: Declare.
1080 (m32r_breakpoint_at): Turn into...
1081 (m32r_target::low_breakpoint_at): ...this.
1082 (the_low_target): Remove the op field.
1083 * linux-m68k-low.cc (class m68k_target)
1084 <low_breakpoint_at>: Declare.
1085 (m68k_breakpoint_at): Turn into...
1086 (m68k_target::low_breakpoint_at): ...this.
1087 (the_low_target): Remove the op field.
1088 * linux-mips-low.cc (class mips_target)
1089 <low_breakpoint_at>: Declare.
1090 (mips_breakpoint_at): Turn into...
1091 (mips_target::low_breakpoint_at): ...this.
1092 (the_low_target): Remove the op field.
1093 * linux-nios2-low.cc (class nios2_target)
1094 <low_breakpoint_at>: Declare.
1095 (nios2_breakpoint_at): Turn into...
1096 (nios2_target::low_breakpoint_at): ...this.
1097 (the_low_target): Remove the op field.
1098 * linux-ppc-low.cc (class ppc_target)
1099 <low_breakpoint_at>: Declare.
1100 (ppc_breakpoint_at): Turn into...
1101 (ppc_target::low_breakpoint_at): ...this.
1102 (the_low_target): Remove the op field.
1103 * linux-riscv-low.cc (class riscv_target)
1104 <low_breakpoint_at>: Declare.
1105 (riscv_breakpoint_at): Turn into...
1106 (riscv_target::low_breakpoint_at): ...this.
1107 (the_low_target): Remove the op field.
1108 * linux-s390-low.cc (class s390_target)
1109 <low_breakpoint_at>: Declare.
1110 (s390_breakpoint_at): Turn into...
1111 (s390_target::low_breakpoint_at): ...this.
1112 (the_low_target): Remove the op field.
1113 * linux-sh-low.cc (class sh_target)
1114 <low_breakpoint_at>: Declare.
1115 (sh_breakpoint_at): Turn into...
1116 (sh_target::low_breakpoint_at): ...this.
1117 (the_low_target): Remove the op field.
1118 * linux-sparc-low.cc (class sparc_target)
1119 <low_breakpoint_at>: Declare.
1120 (sparc_breakpoint_at): Turn into...
1121 (sparc_target::low_breakpoint_at): ...this.
1122 (the_low_target): Remove the op field.
1123 * linux-tic6x-low.cc (class tic6x_target)
1124 <low_breakpoint_at>: Declare.
1125 (tic6x_breakpoint_at): Turn into...
1126 (tic6x_target::low_breakpoint_at): ...this.
1127 (the_low_target): Remove the op field.
1128 * linux-tile-low.cc (class tile_target)
1129 <low_breakpoint_at>: Declare.
1130 (tile_breakpoint_at): Turn into...
1131 (tile_target::low_breakpoint_at): ...this.
1132 (the_low_target): Remove the op field.
1133 * linux-xtensa-low.cc (class xtensa_target)
1134 <low_breakpoint_at>: Declare.
1135 (xtensa_breakpoint_at): Turn into...
1136 (xtensa_target::low_breakpoint_at): ...this.
1137 (the_low_target): Remove the op field.
1138
d4807ea2
TBA
11392020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1140
1141 Turn the 'decr_pc_after_break' linux_target_ops field into
1142 a method of linux_process_target.
1143
1144 * linux-low.h (struct linux_target_ops)
1145 <decr_pc_after_break>: Remove.
1146 (class linux_process_target) <low_decr_pc_after_break>: New method
1147 declaration.
1148 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1149 New method implementation.
1150
1151 Update the users below.
1152
1153 (linux_process_target::save_stop_reason)
1154 (linux_process_target::wait_1)
1155 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1156 New declaration.
1157 (x86_target::low_decr_pc_after_break): New method implementation.
1158 (the_low_target): Remove the field.
1159 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1160 New declaration.
1161 (bfin_target::low_decr_pc_after_break): New method implementation.
1162 (the_low_target): Remove the field.
1163 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1164 New declaration.
1165 (m68k_target::low_decr_pc_after_break): New method implementation.
1166 (the_low_target): Remove the field.
1167 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1168 New declaration.
1169 (s390_target::low_decr_pc_after_break): New method implementation.
1170 (the_low_target): Remove the field.
1171 * linux-aarch64-low.cc (the_low_target): Remove the field.
1172 * linux-arm-low.cc (the_low_target): Remove the field.
1173 * linux-cris-low.cc (the_low_target): Remove the field.
1174 * linux-crisv32-low.cc (the_low_target): Remove the field.
1175 * linux-m32r-low.cc (the_low_target): Remove the field.
1176 * linux-mips-low.cc (the_low_target): Remove the field.
1177 * linux-nios2-low.cc (the_low_target): Remove the field.
1178 * linux-ppc-low.cc (the_low_target): Remove the field.
1179 * linux-riscv-low.cc (the_low_target): Remove the field.
1180 * linux-sh-low.cc (the_low_target): Remove the field.
1181 * linux-sparc-low.cc (the_low_target): Remove the field.
1182 * linux-tic6x-low.cc (the_low_target): Remove the field.
1183 * linux-tile-low.cc (the_low_target): Remove the field.
1184 * linux-xtensa-low.cc (the_low_target): Remove the field.
1185
7582c77c
TBA
11862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1187
1188 Remove the 'supports_software_single_step' linux target op and let
1189 the concrete linux target define it by overriding the op in
1190 process_stratum_target.
1191 Turn the 'get_next_pcs' linux target op into a method of
1192 linux_process_target.
1193
1194 * linux-low.h (struct linux_target_ops): Remove the ops.
1195 (class linux_process_target) <supports_software_single_step>:
1196 Remove.
1197 <low_get_next_pcs>: Declare.
1198 * linux-low.cc (can_software_single_step): Remove.
1199 (linux_process_target::low_get_next_pcs): Define.
1200 (linux_process_target::supports_software_single_step): Remove.
1201
1202 Update the callers below.
1203
1204 (linux_process_target::handle_extended_wait)
1205 (linux_process_target::wait_1)
1206 (linux_process_target::install_software_single_step_breakpoints)
1207 (linux_process_target::single_step)
1208 (linux_process_target::thread_needs_step_over)
1209 (linux_process_target::proceed_one_lwp)
1210 (linux_process_target::supports_range_stepping)
1211
1212 * linux-x86-low.cc (the_low_target): Remove the op field.
1213 * linux-aarch64-low.cc (the_low_target): Ditto.
1214 * linux-bfin-low.cc (the_low_target): Ditto.
1215 * linux-cris-low.cc (the_low_target): Ditto.
1216 * linux-crisv32-low.cc (the_low_target): Ditto.
1217 * linux-m32r-low.cc (the_low_target): Ditto.
1218 * linux-m68k-low.cc (the_low_target): Ditto.
1219 * linux-mips-low.cc (the_low_target): Ditto.
1220 * linux-nios2-low.cc (the_low_target): Ditto.
1221 * linux-ppc-low.cc (the_low_target): Ditto.
1222 * linux-riscv-low.cc (the_low_target): Ditto.
1223 * linux-s390-low.cc (the_low_target): Ditto.
1224 * linux-sh-low.cc (the_low_target): Ditto.
1225 * linux-sparc-low.cc (the_low_target): Ditto.
1226 * linux-tic6x-low.cc (the_low_target): Ditto.
1227 * linux-tile-low.cc (the_low_target): Ditto.
1228 * linux-xtensa-low.cc (the_low_target): Ditto.
1229 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1230 <supports_software_single_step>: Declare.
1231 (arm_target::supports_software_single_step): Define.
1232 (arm_gdbserver_get_next_pcs): Turn into...
1233 (arm_target::low_get_next_pcs): ...this.
1234 (the_low_target): Remove the op field.
1235
3ca4edb6
TBA
12362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1237
1238 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1239 the concrete linux target define it by overriding the op
1240 in process_stratum_target.
1241
1242 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1243 Remove.
1244 * linux-low.h (struct linux_target_ops): Remove the op.
1245 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1246 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1247 Declare.
1248 (x86_sw_breakpoint_from_kind): Turn into...
1249 (x86_target::sw_breakpoint_from_kind): ...this.
1250 (the_low_target): Remove the op field.
1251 * linux-aarch64-low.cc (class aarch64_target)
1252 <sw_breakpoint_from_kind>: Declare.
1253 (aarch64_sw_breakpoint_from_kind): Turn into...
1254 (aarch64_target::sw_breakpoint_from_kind): ...this.
1255 (the_low_target): Remove the op field.
1256 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1257 Declare.
1258 (arm_target::sw_breakpoint_from_kind): Define.
1259 (the_low_target): Remove the op field.
1260 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1261 Declare.
1262 (bfin_sw_breakpoint_from_kind): Turn into...
1263 (bfin_target::sw_breakpoint_from_kind): ...this.
1264 (the_low_target): Remove the op field.
1265 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1266 Declare.
1267 (cris_sw_breakpoint_from_kind): Turn into...
1268 (cris_target::sw_breakpoint_from_kind): ...this.
1269 (the_low_target): Remove the op field.
1270 * linux-crisv32-low.cc (class crisv32_target)
1271 <sw_breakpoint_from_kind>: Declare.
1272 (cris_sw_breakpoint_from_kind): Turn into...
1273 (crisv32_target::sw_breakpoint_from_kind): ...this.
1274 (the_low_target): Remove the op field.
1275 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1276 Declare.
1277 (ia64_target::sw_breakpoint_from_kind): Define.
1278 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1279 Declare.
1280 (m32r_sw_breakpoint_from_kind): Turn into...
1281 (m32r_target::sw_breakpoint_from_kind): ...this.
1282 (the_low_target): Remove the op field.
1283 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1284 Declare.
1285 (m68k_sw_breakpoint_from_kind): Turn into...
1286 (m68k_target::sw_breakpoint_from_kind): ...this.
1287 (the_low_target): Remove the op field.
1288 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1289 Declare.
1290 (mips_sw_breakpoint_from_kind): Turn into...
1291 (mips_target::sw_breakpoint_from_kind): ...this.
1292 (the_low_target): Remove the op field.
1293 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1294 Declare.
1295 (nios2_sw_breakpoint_from_kind): Turn into...
1296 (nios2_target::sw_breakpoint_from_kind): ...this.
1297 (the_low_target): Remove the op field.
1298 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1299 Declare.
1300 (ppc_sw_breakpoint_from_kind): Turn into...
1301 (ppc_target::sw_breakpoint_from_kind): ...this.
1302 (the_low_target): Remove the op field.
1303 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1304 Declare.
1305 (riscv_sw_breakpoint_from_kind): Turn into...
1306 (riscv_target::sw_breakpoint_from_kind): ...this.
1307 (the_low_target): Remove the op field.
1308 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1309 Declare.
1310 (s390_sw_breakpoint_from_kind): Turn into...
1311 (s390_target::sw_breakpoint_from_kind): ...this.
1312 (the_low_target): Remove the op field.
1313 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1314 Declare.
1315 (sh_sw_breakpoint_from_kind): Turn into...
1316 (sh_target::sw_breakpoint_from_kind): ...this.
1317 (the_low_target): Remove the op field.
1318 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1319 Declare.
1320 (sparc_sw_breakpoint_from_kind): Turn into...
1321 (sparc_target::sw_breakpoint_from_kind): ...this.
1322 (the_low_target): Remove the op field.
1323 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1324 Declare.
1325 (tic6x_sw_breakpoint_from_kind): Turn into...
1326 (tic6x_target::sw_breakpoint_from_kind): ...this.
1327 (the_low_target): Remove the op field.
1328 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1329 Declare.
1330 (tile_sw_breakpoint_from_kind): Turn into...
1331 (tile_target::sw_breakpoint_from_kind): ...this.
1332 (the_low_target): Remove the op field.
1333 * linux-xtensa-low.cc (class xtensa_target)
1334 <sw_breakpoint_from_kind>: Declare.
1335 (xtensa_sw_breakpoint_from_kind): Turn into...
1336 (xtensa_target::sw_breakpoint_from_kind): ...this.
1337 (the_low_target): Remove the op field.
1338
06250e4e
TBA
13392020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1340
1341 Remove the 'breakpoint_kind_from_pc' and
1342 'breakpoint_kind_from_current_state' linux target ops, and let the
1343 concrete linux target define them by overriding the ops of
1344 process_stratum_target.
1345
1346 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1347 Remove.
1348 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1349 * linux-low.h (struct linux_target_ops): Remove ops.
1350 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1351 <breakpoint_kind_from_current_state>: Remove.
1352 * linux-x86-low.cc (the_low_target): Remove the op fields.
1353 * linux-bfin-low.cc (the_low_target): Ditto.
1354 * linux-cris-low.cc (the_low_target): Ditto.
1355 * linux-crisv32-low.cc (the_low_target): Ditto.
1356 * linux-m32r-low.cc (the_low_target): Ditto.
1357 * linux-m68k-low.cc (the_low_target): Ditto.
1358 * linux-mips-low.cc (the_low_target): Ditto.
1359 * linux-nios2-low.cc (the_low_target): Ditto.
1360 * linux-ppc-low.cc (the_low_target): Ditto.
1361 * linux-s390-low.cc (the_low_target): Ditto.
1362 * linux-sh-low.cc (the_low_target): Ditto.
1363 * linux-sparc-low.cc (the_low_target): Ditto.
1364 * linux-tic6x-low.cc (the_low_target): Ditto.
1365 * linux-tile-low.cc (the_low_target): Ditto.
1366 * linux-xtensa-low.cc (the_low_target): Ditto.
1367 * linux-aarch64-low.cc (class aarch64_target)
1368 <breakpoint_kind_from_pc>
1369 <breakpoint_kind_from_current_state>: Declare.
1370 (aarch64_breakpoint_kind_from_pc): Turn into...
1371 (aarch64_target::breakpoint_kind_from_pc): ...this.
1372 (aarch64_breakpoint_kind_from_current_state): Turn into...
1373 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1374 (the_low_target): Remove the op fields.
1375 * linux-arm-low.cc (class arm_target):
1376 <breakpoint_kind_from_pc>
1377 <breakpoint_kind_from_current_state>: Declare.
1378 (arm_target::breakpoint_kind_from_pc): Define.
1379 (arm_target::breakpoint_kind_from_current_state): Define.
1380 (the_low_target): Remove the op fields.
1381 * linux-riscv-low.cc (class riscv_target):
1382 <breakpoint_kind_from_pc>: Declare.
1383 (riscv_breakpoint_kind_from_pc): Turn into...
1384 (riscv_target::breakpoint_kind_from_pc): ...this.
1385 (the_low_target): Remove the op fields.
1386
bf9ae9d8
TBA
13872020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1388
1389 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1390 of linux_process_target.
1391
1392 * linux-low.h (struct linux_target_ops): Remove the ops.
1393 (class linux_process_target) <low_supports_breakpoints>
1394 <low_get_pc>
1395 <low_set_pc>: Declare.
1396 * linux-low.cc (supports_breakpoints): Turn into...
1397 (linux_process_target::low_supports_breakpoints): ...this.
1398 (linux_process_target::low_get_pc): Define.
1399 (linux_process_target::low_set_pc): Define.
1400
1401 Update the callers below.
1402
1403 (linux_process_target::get_pc)
1404 (linux_process_target::save_stop_reason)
1405 (linux_process_target::maybe_move_out_of_jump_pad)
1406 (linux_process_target::wait_1)
1407 (linux_process_target::resume_one_lwp_throw)
1408 (linux_process_target::resume)
1409 (linux_process_target::proceed_all_lwps)
1410 (linux_process_target::read_pc)
1411 (linux_process_target::write_pc)
1412
1413 * linux-x86-low.cc (class linux_process_target)
1414 <low_supports_breakpoints>
1415 <low_get_pc>
1416 <low_set_pc>: Declare.
1417 (x86_target::low_supports_breakpoints): Define.
1418 (x86_get_pc): Turn into...
1419 (x86_target::low_get_pc): ...this.
1420 (x86_set_pc): Turn into...
1421 (x86_target::low_set_pc): ...this.
1422 (the_low_target): Remove the op fields.
1423 * linux-arm-low.cc (class arm_target)
1424 <low_supports_breakpoints>
1425 <low_get_pc>
1426 <low_set_pc>: Declare.
1427 (arm_target::low_supports_breakpoints)
1428 (arm_target::low_get_pc)
1429 (arm_target::low_set_pc): Define.
1430 (the_low_target): Remove the op fields.
1431 * linux-bfin-low.cc (class bfin_target)
1432 <low_supports_breakpoints>
1433 <low_get_pc>
1434 <low_set_pc>: Declare.
1435 (bfin_target::low_supports_breakpoints)
1436 (bfin_target::low_get_pc)
1437 (bfin_target::low_set_pc): Define.
1438 (the_low_target): Remove the op fields.
1439 * linux-cris-low.cc (class cris_target)
1440 <low_supports_breakpoints>
1441 <low_get_pc>
1442 <low_set_pc>: Declare.
1443 (cris_target::low_supports_breakpoints)
1444 (cris_target::low_get_pc)
1445 (cris_target::low_set_pc): Define.
1446 (the_low_target): Remove the op fields.
1447 * linux-crisv32-low.cc (class crisv32_target)
1448 <low_supports_breakpoints>
1449 <low_get_pc>
1450 <low_set_pc>: Declare.
1451 (crisv32_target::low_supports_breakpoints)
1452 (crisv32_target::low_get_pc)
1453 (crisv32_target::low_set_pc): Define.
1454 (the_low_target): Remove the op fields.
1455 * linux-m32r-low.cc (class m32r_target)
1456 <low_supports_breakpoints>
1457 <low_get_pc>
1458 <low_set_pc>: Declare.
1459 (m32r_target::low_supports_breakpoints)
1460 (m32r_target::low_get_pc)
1461 (m32r_target::low_set_pc): Define.
1462 (the_low_target): Remove the op fields.
1463 * linux-m68k-low.cc (class m68k_target)
1464 <low_supports_breakpoints>
1465 <low_get_pc>
1466 <low_set_pc>: Declare.
1467 (m68k_target::low_supports_breakpoints)
1468 (m68k_target::low_get_pc)
1469 (m68k_target::low_set_pc): Define.
1470 (the_low_target): Remove the op fields.
1471 * linux-nios2-low.cc (class nios2_target)
1472 <low_supports_breakpoints>
1473 <low_get_pc>
1474 <low_set_pc>: Declare.
1475 (nios2_target::low_supports_breakpoints)
1476 (nios2_target::low_get_pc)
1477 (nios2_target::low_set_pc): Define.
1478 (the_low_target): Remove the op fields.
1479 * linux-sh-low.cc (class sh_target)
1480 <low_supports_breakpoints>
1481 <low_get_pc>
1482 <low_set_pc>: Declare.
1483 (sh_target::low_supports_breakpoints)
1484 (sh_target::low_get_pc)
1485 (sh_target::low_set_pc): Define.
1486 (the_low_target): Remove the op fields.
1487 * linux-xtensa-low.cc (class xtensa_target)
1488 <low_supports_breakpoints>
1489 <low_get_pc>
1490 <low_set_pc>: Declare.
1491 (xtensa_target::low_supports_breakpoints)
1492 (xtensa_target::low_get_pc)
1493 (xtensa_target::low_set_pc): Define.
1494 (the_low_target): Remove the op fields.
1495 * linux-sparc-low.cc (class sparc_target)
1496 <low_supports_breakpoints>
1497 <low_get_pc>: Declare.
1498 (sparc_target::low_supports_breakpoints)
1499 (sparc_target::low_get_pc): Define.
1500 (the_low_target): Remove the op fields.
1501 * linux-tile-low.cc (class tile_target)
1502 <low_supports_breakpoints>
1503 <low_get_pc>
1504 <low_set_pc>: Declare.
1505 (tile_target::low_supports_breakpoints)
1506 (tile_target::low_get_pc)
1507 (tile_target::low_set_pc): Define.
1508 (the_low_target): Remove the op fields.
1509 * linux-aarch64-low.cc (class aarch64_target)
1510 <low_supports_breakpoints>
1511 <low_get_pc>
1512 <low_set_pc>: Declare.
1513 (aarch64_target::low_supports_breakpoints): Define.
1514 (aarch64_get_pc): Turn into...
1515 (aarch64_target::low_get_pc): ...this.
1516 (aarch64_set_pc): Turn into...
1517 (aarch64_target::low_set_pc): ...this.
1518 (the_low_target): Remove the op fields.
1519 * linux-mips-low.cc (class mips_target)
1520 <low_supports_breakpoints>
1521 <low_get_pc>
1522 <low_set_pc>: Declare.
1523 (mips_target::low_supports_breakpoints): Define.
1524 (mips_get_pc): Turn into...
1525 (mips_target::low_get_pc): ...this.
1526 (mips_set_pc): Turn into...
1527 (mips_target::low_set_pc): ...this.
1528 (the_low_target): Remove the op fields.
1529 * linux-ppc-low.cc (class ppc_target)
1530 <low_supports_breakpoints>
1531 <low_get_pc>
1532 <low_set_pc>: Declare.
1533 (ppc_target::low_supports_breakpoints): Define.
1534 (ppc_get_pc): Turn into...
1535 (ppc_target::low_get_pc): ...this.
1536 (ppc_set_pc): Turn into...
1537 (ppc_target::low_set_pc): ...this.
1538 (the_low_target): Remove the op fields.
1539 * linux-riscv-low.cc (class riscv_target)
1540 <low_supports_breakpoints>
1541 <low_get_pc>
1542 <low_set_pc>: Declare.
1543 (riscv_target::low_supports_breakpoints): Define.
1544 (riscv_get_pc): Turn into...
1545 (riscv_target::low_get_pc): ...this.
1546 (riscv_set_pc): Turn into...
1547 (riscv_target::low_set_pc): ...this.
1548 (the_low_target): Remove the op fields.
1549 * linux-s390-low.cc (class s390_target)
1550 <low_supports_breakpoints>
1551 <low_get_pc>
1552 <low_set_pc>: Declare.
1553 (s390_target::low_supports_breakpoints): Define.
1554 (s390_get_pc): Turn into...
1555 (s390_target::low_get_pc): ...this.
1556 (s390_set_pc): Turn into...
1557 (s390_target::low_set_pc): ...this.
1558 (the_low_target): Remove the op fields.
1559 * linux-tic6x-low.cc (class tic6x_target)
1560 <low_supports_breakpoints>
1561 <low_get_pc>
1562 <low_set_pc>: Declare.
1563 (tic6x_target::low_supports_breakpoints): Define.
1564 (tic6x_get_pc): Turn into...
1565 (tic6x_target::low_get_pc): ...this.
1566 (tic6x_set_pc): Turn into...
1567 (tic6x_target::low_set_pc): ...this.
1568 (the_low_target): Remove the op fields.
1569
df95181f
TBA
15702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1571
1572 Turn some more static methods in linux-low into private methods
1573 of linux_process_target.
1574
1575 * linux-low.cc (get_pc): Turn into...
1576 (linux_process_target::get_pc): ...this.
1577 (save_stop_reason): Turn into...
1578 (linux_process_target::save_stop_reason): ...this.
1579 (thread_still_has_status_pending_p): Turn into...
1580 (linux_process_target::thread_still_has_status_pending): ...this.
1581 (status_pending_p_callback): Turn into...
1582 (linux_process_target::status_pending_p_callback): ...this.
1583 (resume_stopped_resumed_lwps): Turn into...
1584 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1585 (install_software_single_step_breakpoints): Turn into...
1586 (linux_process_target::install_software_single_step_breakpoints):
1587 ...this.
1588 (single_step): Turn into...
1589 (linux_process_target::single_step): ...this.
1590 (linux_resume_one_lwp_throw): Turn into...
1591 (linux_process_target::resume_one_lwp_throw): ...this.
1592 (linux_resume_one_lwp): Turn into...
1593 (linux_process_target::resume_one_lwp): ...this.
1594 (resume_status_pending_p): Turn into...
1595 (linux_process_target::resume_status_pending): ...this.
1596 (need_step_over_p): Turn into...
1597 (linux_process_target::thread_needs_step_over): ...this.
1598 (linux_resume_one_thread): Turn into...
1599 (linux_process_target::resume_one_thread): ...this.
1600 (proceed_one_lwp): Turn into...
1601 (linux_process_target::proceed_one_lwp): ...this.
1602 (unsuspend_and_proceed_one_lwp): Turn into...
1603 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1604
1605 Update the calls/references to the above functions below.
1606
1607 (linux_process_target::handle_extended_wait)
1608 (linux_process_target::filter_event)
1609 (linux_process_target::wait_for_event_filtered)
1610 (linux_process_target::wait_1)
1611 (linux_process_target::move_out_of_jump_pad)
1612 (linux_process_target::start_step_over)
1613 (linux_process_target::resume)
1614 (linux_process_target::proceed_all_lwps)
1615 (regsets_store_inferior_registers)
1616 (linux_process_target::store_register)
1617
1618 * linux-low.h (class linux_process_target)
1619 <get_pc>
1620 <save_stop_reason>
1621 <thread_still_has_status_pending>
1622 <status_pending_p_callback>
1623 <resume_stopped_resumed_lwps>
1624 <install_software_single_step_breakpoints>
1625 <single_step>
1626 <resume_one_lwp_throw>
1627 <resume_one_lwp>
1628 <resume_status_pending>
1629 <thread_needs_step_over>
1630 <resume_one_thread>
1631 <proceed_one_lwp>
1632 <unsuspend_and_proceed_one_lwp>: Declare.
1633
bd70b1f2
TBA
16342020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1635
1636 Turn the 'fetch_register' linux target op into a method of
1637 linux_process_target.
1638
1639 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1640 (class linux_process_target) <low_fetch_register>: Declare.
1641 * linux-x86-low.cc (the_low_target)
1642 * linux-aarch64-low.cc (the_low_target)
1643 * linux-arm-low.cc (the_low_target)
1644 * linux-bfin-low.cc (the_low_target)
1645 * linux-cris-low.cc (the_low_target)
1646 * linux-crisv32-low.cc (the_low_target)
1647 * linux-m32r-low.cc (the_low_target)
1648 * linux-m68k-low.cc (the_low_target)
1649 * linux-nios2-low.cc (the_low_target)
1650 * linux-ppc-low.cc (the_low_target)
1651 * linux-s390-low.cc (the_low_target)
1652 * linux-sh-low.cc (the_low_target)
1653 * linux-sparc-low.cc (the_low_target)
1654 * linux-tic6x-low.cc (the_low_target)
1655 * linux-tile-low.cc (the_low_target)
1656 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1657 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1658 Declare.
1659 (ia64_fetch_register): Turn into...
1660 (ia64_target::low_fetch_register): ...this.
1661 (the_low_target): Remove the op field.
1662 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1663 Declare.
1664 (mips_fetch_register): Turn into...
1665 (mips_target::low_fetch_register): ...this.
1666 (the_low_target): Remove the op field.
1667 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1668 Declare.
1669 (riscv_fetch_register): Turn into...
1670 (riscv_target::low_fetch_register): ...this.
1671 (the_low_target): Remove the op field.
1672
1673 Update the callers below.
1674
1675 * linux-low.cc (linux_process_target::fetch_registers)
1676 (linux_process_target::low_fetch_register)
1677
daca57a7
TBA
16782020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1679
1680 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1681 linux target ops into methods of linux_process_target.
1682
1683 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1684 (class linux_process_target) <fetch_register>
1685 <store_register>
1686 <usr_fetch_inferior_registers>
1687 <usr_store_inferior_registers>
1688 <low_cannot_fetch_register>
1689 <low_cannot_fetch_register> Declare.
1690 * linux-low.cc (fetch_register): Turn into...
1691 (linux_process_target::fetch_register): ...this.
1692 (store_register): Turn into ...
1693 (linux_process_target::store_register): ...this.
1694 (usr_fetch_inferior_registers): Turn into...
1695 (linux_process_target::usr_fetch_inferior_registers): ...this.
1696 (usr_store_inferior_registers): Turn into...
1697 (linux_process_target::usr_store_inferior_registers): ...this.
1698 * linux-x86-low.cc (class x86_target)
1699 <low_cannot_fetch_register>
1700 <low_cannot_store_register>: Declare.
1701 (x86_cannot_store_register): Turn into...
1702 (x86_target::low_cannot_store_register): ...this.
1703 (x86_cannot_fetch_register): Turn into...
1704 (x86_target::low_cannot_fetch_register): ...this.
1705 (the_low_target): Remove the target op fields.
1706 * linux-aarch64-low.cc (class aarch64_target)
1707 <low_cannot_fetch_register>
1708 <low_cannot_store_register>: Declare.
1709 (aarch64_target::low_cannot_fetch_register)
1710 (aarch64_target::low_cannot_store_register): Define.
1711 (the_low_target): Remove the op fields.
1712 * linux-arm-low.cc (class arm_target)
1713 <low_cannot_fetch_register>
1714 <low_cannot_store_register>: Declare.
1715 (arm_cannot_fetch_register): Turn into...
1716 (arm_target::low_cannot_fetch_register): ...this.
1717 (arm_cannot_store_register): Turn into...
1718 (arm_target::low_cannot_store_register): ...this.
1719 (the_low_target): Remove the op fields.
1720 * linux-bfin-low.cc (class bfin_target)
1721 <low_cannot_fetch_register>
1722 <low_cannot_store_register>: Declare.
1723 (bfin_cannot_fetch_register): Turn into...
1724 (bfin_target::low_cannot_fetch_register): ...this.
1725 (bfin_cannot_store_register): Turn into...
1726 (bfin_target::low_cannot_store_register): ...this.
1727 (the_low_target): Remove the op fields.
1728 * linux-cris-low.cc (class cris_target)
1729 <low_cannot_fetch_register>
1730 <low_cannot_store_register>: Declare.
1731 (cris_cannot_fetch_register): Turn into...
1732 (cris_target::low_cannot_fetch_register): ...this.
1733 (cris_cannot_store_register): Turn into...
1734 (cris_target::low_cannot_store_register): ...this.
1735 (the_low_target): Remove the op fields.
1736 * linux-crisv32-low.cc (class crisv32_target)
1737 <low_cannot_fetch_register>
1738 <low_cannot_store_register>: Declare.
1739 (crisv32_target::low_cannot_fetch_register)
1740 (crisv32_target::low_cannot_store_register): Define.
1741 (the_low_target): Remove the op fields.
1742 * linux-ia64-low.cc (class ia64_target)
1743 <low_cannot_fetch_register>
1744 <low_cannot_store_register>: Declare.
1745 (ia64_cannot_fetch_register): Turn into...
1746 (ia64_target::low_cannot_fetch_register): ...this.
1747 (ia64_cannot_store_register): Turn into...
1748 (ia64_target::low_cannot_store_register): ...this.
1749 (the_low_target): Remove the op fields.
1750 * linux-m32r-low.cc (class m32r_target)
1751 <low_cannot_fetch_register>
1752 <low_cannot_store_register>: Declare.
1753 (m32r_cannot_fetch_register): Turn into...
1754 (m32r_target::low_cannot_fetch_register): ...this.
1755 (m32r_cannot_store_register): Turn into...
1756 (m32r_target::low_cannot_store_register): ...this.
1757 (the_low_target): Remove the op fields.
1758 * linux-m68k-low.cc (class m68k_target)
1759 <low_cannot_fetch_register>
1760 <low_cannot_store_register>: Declare.
1761 (m68k_cannot_fetch_register): Turn into...
1762 (m68k_target::low_cannot_fetch_register): ...this.
1763 (m68k_cannot_store_register): Turn into...
1764 (m68k_target::low_cannot_store_register): ...this.
1765 (the_low_target): Remove the op fields.
1766 * linux-mips-low.cc (class mips_target)
1767 <low_cannot_fetch_register>
1768 <low_cannot_store_register>: Declare.
1769 (mips_cannot_fetch_register): Turn into...
1770 (mips_target::low_cannot_fetch_register): ...this.
1771 (mips_cannot_store_register): Turn into...
1772 (mips_target::low_cannot_store_register): ...this.
1773 (get_usrregs_info): Inline at the call sites in
1774 low_cannot_fetch_register and low_cannot_store_register,
1775 and remove.
1776 (the_low_target): Remove the op fields.
1777 * linux-nios2-low.cc (class nios2_target)
1778 <low_cannot_fetch_register>
1779 <low_cannot_store_register>: Declare.
1780 (nios2_cannot_fetch_register): Turn into...
1781 (nios2_target::low_cannot_fetch_register): ...this.
1782 (nios2_cannot_store_register): Turn into...
1783 (nios2_target::low_cannot_store_register): ...this.
1784 (the_low_target): Remove the op fields.
1785 * linux-ppc-low.cc (class ppc_target)
1786 <low_cannot_fetch_register>
1787 <low_cannot_store_register>: Declare.
1788 (ppc_cannot_fetch_register): Turn into...
1789 (ppc_target::low_cannot_fetch_register): ...this.
1790 (ppc_cannot_store_register): Turn into...
1791 (ppc_target::low_cannot_store_register): ...this.
1792 (the_low_target): Remove the op fields.
1793 * linux-riscv-low.cc (class riscv_target)
1794 <low_cannot_fetch_register>
1795 <low_cannot_store_register>: Declare.
1796 (riscv_target::low_cannot_fetch_register)
1797 (riscv_target::low_cannot_store_register): Define.
1798 (the_low_target): Remove the op fields.
1799 * linux-s390-low.cc (class s390_target)
1800 <low_cannot_fetch_register>
1801 <low_cannot_store_register>: Declare.
1802 (s390_cannot_fetch_register): Turn into...
1803 (s390_target::low_cannot_fetch_register): ...this.
1804 (s390_cannot_store_register): Turn into...
1805 (s390_target::low_cannot_store_register): ...this.
1806 (the_low_target): Remove the op fields.
1807 * linux-sh-low.cc (class sh_target)
1808 <low_cannot_fetch_register>
1809 <low_cannot_store_register>: Declare.
1810 (sh_cannot_fetch_register): Turn into...
1811 (sh_target::low_cannot_fetch_register): ...this.
1812 (sh_cannot_store_register): Turn into...
1813 (sh_target::low_cannot_store_register): ...this.
1814 (the_low_target): Remove the op fields.
1815 * linux-sparc-low.cc (class sparc_target)
1816 <low_cannot_fetch_register>
1817 <low_cannot_store_register>: Declare.
1818 (sparc_cannot_fetch_register): Turn into...
1819 (sparc_target::low_cannot_fetch_register): ...this.
1820 (sparc_cannot_store_register): Turn into...
1821 (sparc_target::low_cannot_store_register): ...this.
1822 (the_low_target): Remove the op fields.
1823 * linux-tic6x-low.cc (class tic6x_target)
1824 <low_cannot_fetch_register>
1825 <low_cannot_store_register>: Declare.
1826 (tic6x_cannot_fetch_register): Turn into...
1827 (tic6x_target::low_cannot_fetch_register): ...this.
1828 (tic6x_cannot_store_register): Turn into...
1829 (tic6x_target::low_cannot_store_register): ...this.
1830 (the_low_target): Remove the op fields.
1831 * linux-tile-low.cc (class tile_target)
1832 <low_cannot_fetch_register>
1833 <low_cannot_store_register>: Declare.
1834 (tile_cannot_fetch_register): Turn into...
1835 (tile_target::low_cannot_fetch_register): ...this.
1836 (tile_cannot_store_register): Turn into...
1837 (tile_target::low_cannot_store_register): ...this.
1838 (the_low_target): Remove the op fields.
1839 * linux-xtensa-low.cc (class xtensa_target)
1840 <low_cannot_fetch_register>
1841 <low_cannot_store_register>: Declare.
1842 (xtensa_target::low_cannot_fetch_register)
1843 (xtensa_target::low_cannot_store_register): Define.
1844 (the_low_target): Remove the op fields.
1845
aa8d21c9
TBA
18462020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1847
1848 Turn the 'regs_info' linux target op into a method of
1849 linux_process_target.
1850
1851 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1852 (class linux_process_target) <get_regs_info>: Define.
1853
1854 Update the callers below.
1855
1856 * linux-low.cc (linux_process_target::fetch_registers)
1857 (linux_process_target::store_registers)
1858 * proc-service.cc (gregset_info)
1859
1860 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1861 (x86_linux_regs_info): Turn into ...
1862 (x86_target::get_regs_info): ...this.
1863 (the_low_target): Remove the op field.
1864 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1865 Declare.
1866 (aarch64_regs_info): Turn into ...
1867 (aarch64_target::get_regs_info): ...this.
1868 (the_low_target): Remove the op field.
1869 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1870 (arm_regs_info): Turn into ...
1871 (arm_target::get_regs_info): ...this.
1872 (the_low_target): Remove the op field.
1873 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1874 (bfin_regs_info): Turn into ...
1875 (bfin_target::get_regs_info): ...this.
1876 (the_low_target): Remove the op field.
1877 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1878 (cris_regs_info): Turn into ...
1879 (cris_target::get_regs_info): ...this.
1880 (the_low_target): Remove the op field.
1881 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1882 Declare.
1883 (crisv32_regs_info): Turn into ...
1884 (crisv32_target::get_regs_info): ...this.
1885 (the_low_target): Remove the op field.
1886 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1887 (ia64_regs_info): Turn into ...
1888 (ia64_target::get_regs_info): ...this.
1889 (the_low_target): Remove the op field.
1890 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1891 (m32r_regs_info): Turn into ...
1892 (m32r_target::get_regs_info): ...this.
1893 (the_low_target): Remove the op field.
1894 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1895 (m68k_regs_info): Turn into ...
1896 (m68k_target::get_regs_info): ...this.
1897 (the_low_target): Remove the op field.
1898 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1899 (mips_regs_info): Turn into ...
1900 (mips_target::get_regs_info): ...this.
1901 (the_low_target): Remove the op field.
1902 (get_usrregs_info): Update the call to the op.
1903 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1904 (nios2_regs_info): Turn into ...
1905 (nios2_target::get_regs_info): ...this.
1906 (the_low_target): Remove the op field.
1907 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1908 (ppc_regs_info): Turn into ...
1909 (ppc_target::get_regs_info): ...this.
1910 (the_low_target): Remove the op field.
1911 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1912 (riscv_regs_info): Turn into ...
1913 (riscv_target::get_regs_info): ...this.
1914 (the_low_target): Remove the op field.
1915 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1916 (s390_regs_info): Turn into ...
1917 (s390_target::get_regs_info): ...this.
1918 (the_low_target): Remove the op field.
1919 (s390_collect_ptrace_register)
1920 (s390_supply_ptrace_register)
1921 (s390_fill_gregset): Update the call to the op.
1922 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1923 (sh_regs_info): Turn into ...
1924 (sh_target::get_regs_info): ...this.
1925 (the_low_target): Remove the op field.
1926 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1927 (sparc_regs_info): Turn into ...
1928 (sparc_target::get_regs_info): ...this.
1929 (the_low_target): Remove the op field.
1930 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1931 (tic6x_regs_info): Turn into ...
1932 (tic6x_target::get_regs_info): ...this.
1933 (the_low_target): Remove the op field.
1934 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1935 (tile_regs_info): Turn into ...
1936 (tile_target::get_regs_info): ...this.
1937 (the_low_target): Remove the op field.
1938 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1939 Declare.
1940 (xtensa_regs_info): Turn into ...
1941 (xtensa_target::get_regs_info): ...this.
1942 (the_low_target): Remove the op field.
1943
797bcff5
TBA
19442020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1945
1946 Turn the 'arch_setup' linux target op into a method of
1947 linux_process_target.
1948
1949 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1950 (class linux_process_target) <arch_setup_thread>
1951 <low_arch_setup>: New declarations.
1952 * linux-low.cc (linux_arch_setup): Delete.
1953 (linux_arch_setup_thread): Turn into...
1954 (linux_process_target::arch_setup_thread): ... this.
1955
1956 Update the callers below.
1957
1958 (linux_process_target::handle_extended_wait)
1959 (linux_process_target::post_create_inferior)
1960 (linux_process_target::filter_event)
1961
1962 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1963 declaration.
1964 (x86_linux_update_xmltarget): Turn into...
1965 (x86_target::update_xmltarget): ...this.
1966 (x86_linux_process_qsupported): Update the call to
1967 x86_linux_update_xmltarget.
1968 (x86_arch_setup): Turn into ...
1969 (x86_target::low_arch_setup): ...this.
1970 (the_low_target): Remove the op field.
1971 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1972 declaration.
1973 (aarch64_arch_setup): Turn into ...
1974 (aarch64_target::low_arch_setup): ...this.
1975 (the_low_target): Remove the op field.
1976 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1977 declaration.
1978 (arm_arch_setup): Turn into ...
1979 (arm_target::low_arch_setup): ...this.
1980 (the_low_target): Remove the op field.
1981 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1982 declaration.
1983 (bfin_arch_setup): Turn into ...
1984 (bfin_target::low_arch_setup): ...this.
1985 (the_low_target): Remove the op field.
1986 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1987 declaration.
1988 (cris_arch_setup): Turn into ...
1989 (cris_target::low_arch_setup): ...this.
1990 (the_low_target): Remove the op field.
1991 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1992 declaration.
1993 (crisv32_arch_setup): Turn into ...
1994 (crisv32_target::low_arch_setup): ...this.
1995 (the_low_target): Remove the op field.
1996 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1997 declaration.
1998 (ia64_arch_setup): Turn into ...
1999 (ia64_target::low_arch_setup): ...this.
2000 (the_low_target): Remove the op field.
2001 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2002 declaration.
2003 (m32r_arch_setup): Turn into ...
2004 (m32r_target::low_arch_setup): ...this.
2005 (the_low_target): Remove the op field.
2006 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2007 declaration.
2008 (m68k_arch_setup): Turn into ...
2009 (m68k_target::low_arch_setup): ...this.
2010 (the_low_target): Remove the op field.
2011 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2012 declaration.
2013 (mips_arch_setup): Turn into ...
2014 (mips_target::low_arch_setup): ...this.
2015 (the_low_target): Remove the op field.
2016 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2017 declaration.
2018 (nios2_arch_setup): Turn into ...
2019 (nios2_target::low_arch_setup): ...this.
2020 (the_low_target): Remove the op field.
2021 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2022 declaration.
2023 (ppc_arch_setup): Turn into ...
2024 (ppc_target::low_arch_setup): ...this.
2025 (the_low_target): Remove the op field.
2026 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2027 declaration.
2028 (riscv_arch_setup): Turn into ...
2029 (riscv_target::low_arch_setup): ...this.
2030 (the_low_target): Remove the op field.
2031 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2032 declaration.
2033 (s390_arch_setup): Turn into ...
2034 (s390_target::low_arch_setup): ...this.
2035 (the_low_target): Remove the op field.
2036 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2037 declaration.
2038 (sh_arch_setup): Turn into ...
2039 (sh_target::low_arch_setup): ...this.
2040 (the_low_target): Remove the op field.
2041 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2042 declaration.
2043 (sparc_arch_setup): Turn into ...
2044 (sparc_target::low_arch_setup): ...this.
2045 (the_low_target): Remove the op field.
2046 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2047 declaration.
2048 (tic6x_arch_setup): Turn into ...
2049 (tic6x_target::low_arch_setup): ...this.
2050 (the_low_target): Remove the op field.
2051 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2052 declaration.
2053 (tile_arch_setup): Turn into ...
2054 (tile_target::low_arch_setup): ...this.
2055 (the_low_target): Remove the op field.
2056 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2057 declaration.
2058 (xtensa_arch_setup): Turn into ...
2059 (xtensa_target::low_arch_setup): ...this.
2060 (the_low_target): Remove the op field.
2061
ef0478f6
TBA
20622020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2063
2064 * linux-low.h (the_linux_target): New extern declaration.
2065 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2066 'the_target'.
2067 (the_linux_target): Remove.
2068 * linux-x86-low.cc (class x86_target): New class.
2069 (the_x86_target): New static object.
2070 (the_linux_target): Define as pointer to the_x86_target.
2071 * linux-aarch64-low.cc (class aarch64_target): New class.
2072 (the_aarch64_target): New static object.
2073 (the_linux_target): Define as pointer to the_aarch64_target.
2074 * linux-arm-low.cc (class arm_target): New class.
2075 (the_arm_target): New static object.
2076 (the_linux_target): Define as pointer to the_arm_target.
2077 * linux-bfin-low.cc (class bfin_target): New class.
2078 (the_bfin_target): New static object.
2079 (the_linux_target): Define as pointer to the_bfin_target.
2080 * linux-cris-low.cc (class cris_target): New class.
2081 (the_cris_target): New static object.
2082 (the_linux_target): Define as pointer to the_cris_target.
2083 * linux-crisv32-low.cc (class crisv32_target): New class.
2084 (the_crisv32_target): New static object.
2085 (the_linux_target): Define as pointer to the_crisv32_target.
2086 * linux-ia64-low.cc (class ia64_target): New class.
2087 (the_ia64_target): New static object.
2088 (the_linux_target): Define as pointer to the_ia64_target.
2089 * linux-m32r-low.cc (class m32r_target): New class.
2090 (the_m32r_target): New static object.
2091 (the_linux_target): Define as pointer to the_m32r_target.
2092 * linux-m68k-low.cc (class m68k_target): New class.
2093 (the_m68k_target): New static object.
2094 (the_linux_target): Define as pointer to the_m68k_target.
2095 * linux-mips-low.cc (class mips_target): New class.
2096 (the_mips_target): New static object.
2097 (the_linux_target): Define as pointer to the_mips_target.
2098 * linux-nios2-low.cc (class nios2_target): New class.
2099 (the_nios2_target): New static object.
2100 (the_linux_target): Define as pointer to the_nios2_target.
2101 * linux-ppc-low.cc (class ppc_target): New class.
2102 (the_ppc_target): New static object.
2103 (the_linux_target): Define as pointer to the_ppc_target.
2104 * linux-riscv-low.cc (class riscv_target): New class.
2105 (the_riscv_target): New static object.
2106 (the_linux_target): Define as pointer to the_riscv_target.
2107 * linux-s390-low.cc (class s390_target): New class.
2108 (the_s390_target): New static object.
2109 (the_linux_target): Define as pointer to the_s390_target.
2110 * linux-sh-low.cc (class sh_target): New class.
2111 (the_sh_target): New static object.
2112 (the_linux_target): Define as pointer to the_sh_target.
2113 * linux-sparc-low.cc (class sparc_target): New class.
2114 (the_sparc_target): New static object.
2115 (the_linux_target): Define as pointer to the_sparc_target.
2116 * linux-tic6x-low.cc (class tic6x_target): New class.
2117 (the_tic6x_target): New static object.
2118 (the_linux_target): Define as pointer to the_tic6x_target.
2119 * linux-tile-low.cc (class tile_target): New class.
2120 (the_tile_target): New static object.
2121 (the_linux_target): Define as pointer to the_tile_target.
2122 * linux-xtensa-low.cc (class xtensa_target): New class.
2123 (the_xtensa_target): New static object.
2124 (the_linux_target): Define as pointer to the_xtensa_target.
2125
d16f3f6c
TBA
21262020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2127
2128 Turn some static functions in linux-low.cc into private methods of
2129 linux_process_target.
2130
2131 * linux-low.cc (handle_extended_wait): Turn into ...
2132 (linux_process_target::handle_extended_wait): ...this. Call
2133 'mourn' on 'this' object instead of 'the_target'.
2134 (maybe_move_out_of_jump_pad): Turn into...
2135 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2136 (linux_low_filter_event): Turn into...
2137 (linux_process_target::filter_event): ...this.
2138 (linux_wait_for_event_filtered): Turn into...
2139 (linux_process_target::wait_for_event_filtered): ...this.
2140 (linux_wait_for_event): Turn into...
2141 (linux_process_target::wait_for_event): ...this.
2142 (linux_wait_1): Turn into...
2143 (linux_process_target::wait_1): ...this.
2144 (wait_for_sigstop): Turn into...
2145 (linux_process_target::wait_for_sigstop): ...this.
2146 (move_out_of_jump_pad_callback): Turn into...
2147 (linux_process_target::move_out_of_jump_pad): ...this.
2148 (stop_all_lwps): Turn into...
2149 (linux_process_target::stop_all_lwps): ...this.
2150 (start_step_over): Turn into...
2151 (linux_process_target::start_step_over): ...this.
2152 (complete_ongoing_step_over): Turn into...
2153 (linux_process_target::complete_ongoing_step_over): ...this.
2154 (proceed_all_lwps): Turn into...
2155 (linux_process_target::proceed_all_lwps): ...this.
2156 (unstop_all_lwps): Turn into...
2157 (linux_process_target::unstop_all_lwps): ...this.
2158
2159 * linux-low.h (class linux_process_target)
2160 <handle_extended_wait>
2161 <maybe_move_out_of_jump_pad>
2162 filter_event>
2163 <wait_for_event_filtered>
2164 <wait_for_event>
2165 <wait_1>
2166 <wait_for_sigstop>
2167 <move_out_of_jump_pad>
2168 <stop_all_lwps>
2169 <start_step_over>
2170 <complete_ongoing_step_over>
2171 <proceed_all_lwps>
2172 <unstop_all_lwps>: Declare.
2173
2174 Update the callers below.
2175
2176 * linux-low.cc (linux_process_target::attach): Update.
2177 (linux_process_target::stabilize_threads): Ditto.
2178 (linux_process_target::wait): Ditto.
2179
a5863204
TBA
21802020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2181
2182 * linux-low.h (struct linux_target_ops): Update the comment for
2183 'cannot_store_register' to return 0 or 1.
2184 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2185 of 2.
2186
c884cc46
SM
21872020-03-20 Simon Marchi <simon.marchi@efficios.com>
2188
2189 * config.in: Re-generate.
2190 * configure: Re-generate.
2191
5a82b8a1
KR
21922020-03-17 Kamil Rytarowski <n54@gmx.com>
2193
2194 * regcache.cc (find_register_by_number): Update.
2195 * tdesc.cc (init_target_desc): Likewise.
2196 * tdesc.h (target_desc::reg_defs): Likewise.
2197
4635ff97
TT
21982020-03-12 Tom Tromey <tom@tromey.com>
2199
2200 * configure: Rebuild.
2201 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2202 (WIN32APILIBS): New subst.
2203 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2204 gdbsupport files.
2205 (gdbsupport/%.o): Remove target.
2206 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2207 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2208 (WIN32APILIBS): New variable.
2209 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2210 (gdbreplay$(EXEEXT)): Likewise.
2211
9a665d62
TT
22122020-03-12 Tom Tromey <tom@tromey.com>
2213
2214 * config.in, configure: Rebuild.
2215 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2216 * acinclude.m4: Include gettext-sister.m4.
2217 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2218 variables.
2219 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2220 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2221
272cd5a3
SM
22222020-03-12 Simon Marchi <simon.marchi@efficios.com>
2223
2224 * acinclude.m4: Update path to selftest.m4.
2225
db6878ac
SM
22262020-03-12 Simon Marchi <simon.marchi@efficios.com>
2227
2228 * configure.ac: Don't source bfd/development.sh, move
2229 GDB_AC_COMMON higher.
2230 * configure: Re-generate.
2231
4d696a5c
SM
22322020-03-12 Simon Marchi <simon.marchi@efficios.com>
2233
2234 * configure: Re-generate.
2235
a0761e34
SM
22362020-03-11 Simon Marchi <simon.marchi@efficios.com>
2237
2238 * configure: Re-generate.
2239
20ea4a60
AB
22402020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2241
2242 * .dir-locals.el: New file.
2243
842806cb
TBA
22442020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2245
2246 * .gitattributes: New file.
2247
442131c1
AB
22482020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2249
2250 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2251 reply into an S reply.
2252 * server.cc (disable_packet_T): New global.
2253 (captured_main): Set new global when appropriate.
2254 * server.h (disable_packet_T): Declare.
2255
dda42c0b
TT
22562020-02-21 Tom Tromey <tom@tromey.com>
2257
2258 * Makefile.in (mostlyclean): New target.
2259
52405d85
TBA
22602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2261
2262 * target.h (struct process_stratum_target): Remove.
2263 (class process_target): Rename to ...
2264 (class process_stratum_target): ... this.
2265 * linux-low.h (class linux_process_target): Derive from
2266 'process_stratum_target'.
2267 * linux-low.cc (linux_target_ops): Remove.
2268 (initialize_low): Set the_target to the singleton instance of
2269 linux_process_target.
2270 * lynx-low.h (class lynx_process_target): Derive from
2271 'process_stratum_target'.
2272 * lynx-low.cc (lynx_target_ops): Remove.
2273 (initialize_low): Set the_target to the singleton instance of
2274 lynx_process_target.
2275 * nto-low.h (class nto_process_target): Derive from
2276 'process_stratum_target'.
2277 * nto-low.cc (nto_target_ops): Remove.
2278 (initialize_low): Set the_target to the singleton instance of
2279 nto_process_target.
2280 * win32-low.h (class win32_process_target): Derive from
2281 'process_stratum_target'.
2282 * win32-low.cc (win32_target_ops): Remove.
2283 (initialize_low): Set the_target to the singleton instance of
2284 win32_process_target.
2285
2286 Replace 'the_target->pt' with 'the_target' in the uses below.
2287
2288 * hostio.cc (hostio_error)
2289 (handle_setfs)
2290 (handle_open)
2291 (handle_unlink)
2292 (handle_readlink)
2293 * linux-aarch32-low.cc (arm_breakpoint_at)
2294 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2295 * linux-arm-low.cc (arm_sigreturn_next_pc)
2296 (arm_get_hwcap)
2297 (arm_get_syscall_trapinfo)
2298 * linux-cris-low.cc (cris_breakpoint_at)
2299 * linux-crisv32-low.cc (cris_breakpoint_at)
2300 * linux-low.cc (handle_extended_wait)
2301 (linux_wait_1)
2302 (linux_read_memory)
2303 (linux_process_target::breakpoint_kind_from_pc)
2304 (linux_get_auxv)
2305 * linux-m32r-low.cc (m32r_breakpoint_at)
2306 * linux-mips-low.cc (mips_breakpoint_at)
2307 * linux-nios2-low.cc (nios2_breakpoint_at)
2308 * linux-ppc-low.cc (ppc_breakpoint_at)
2309 * linux-s390-low.cc (s390_get_hwcap)
2310 * linux-sh-low.cc (sh_breakpoint_at)
2311 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2312 (sparc_store_gregset_from_stack)
2313 (sparc_breakpoint_at)
2314 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2315 * linux-tile-low.cc (tile_breakpoint_at)
2316 * linux-x86-low.cc (x86_breakpoint_at)
2317 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2318 * mem-break.cc (bp_size)
2319 (bp_opcode)
2320 (insert_memory_breakpoint)
2321 (set_raw_breakpoint_at)
2322 (delete_raw_breakpoint)
2323 (z_type_supported)
2324 (uninsert_raw_breakpoint)
2325 (reinsert_raw_breakpoint)
2326 (validate_inserted_breakpoint)
2327 * regcache.cc (regcache_read_pc)
2328 (regcache_write_pc)
2329 * remote-utils.cc (putpkt_binary_1)
2330 (input_interrupt)
2331 (getpkt)
2332 (prepare_resume_reply)
2333 * server.cc (handle_general_set)
2334 (handle_detach)
2335 (handle_qxfer_auxv)
2336 (handle_qxfer_exec_file)
2337 (handle_qxfer_libraries_svr4)
2338 (handle_qxfer_osdata)
2339 (handle_qxfer_siginfo)
2340 (handle_qxfer_fdpic)
2341 (handle_query)
2342 (resume)
2343 (handle_v_requests)
2344 (queue_stop_reply_callback)
2345 (captured_main)
2346 * target.cc (prepare_to_access_memory)
2347 (done_accessing_memory)
2348 (read_inferior_memory)
2349 (target_write_memory)
2350 (target_stop_and_wait)
2351 (target_wait)
2352 (target_mourn_inferior)
2353 (target_continue_no_signal)
2354 (target_continue)
2355 (target_supports_multi_process)
2356 (kill_inferior)
2357 * target.h
2358 (target_create_inferior)
2359 (target_post_create_inferior)
2360 (myattach)
2361 (target_supports_fork_events)
2362 (target_supports_vfork_events)
2363 (target_supports_exec_events)
2364 (target_handle_new_gdb_connection)
2365 (detach_inferior)
2366 (mythread_alive)
2367 (fetch_inferior_registers)
2368 (store_inferior_registers)
2369 (join_inferior)
2370 (target_supports_non_stop)
2371 (target_async)
2372 (target_process_qsupported)
2373 (target_supports_catch_syscall)
2374 (target_get_ipa_tdesc_idx)
2375 (target_supports_tracepoints)
2376 (target_supports_fast_tracepoints)
2377 (target_get_min_fast_tracepoint_insn_len)
2378 (target_thread_stopped)
2379 (target_pause_all)
2380 (target_unpause_all)
2381 (target_stabilize_threads)
2382 (target_install_fast_tracepoint_jump_pad)
2383 (target_emit_ops)
2384 (target_supports_disable_randomization)
2385 (target_supports_agent)
2386 (target_enable_btrace)
2387 (target_disable_btrace)
2388 (target_read_btrace)
2389 (target_read_btrace_conf)
2390 (target_supports_range_stepping)
2391 (target_supports_stopped_by_sw_breakpoint)
2392 (target_stopped_by_sw_breakpoint)
2393 (target_supports_stopped_by_hw_breakpoint)
2394 (target_supports_hardware_single_step)
2395 (target_stopped_by_hw_breakpoint)
2396 (target_breakpoint_kind_from_pc)
2397 (target_breakpoint_kind_from_current_state)
2398 (target_supports_software_single_step)
2399 (target_core_of_thread)
2400 (target_thread_name)
2401 (target_thread_handle)
2402 * win32-low.cc (do_initial_child_stuff)
2403
2404 Rename target op default definitions listed below.
2405
2406 * target.cc (process_target::post_create_inferior): Rename as ...
2407 (process_stratum_target::post_create_inferior): ... this.
2408 (process_target::prepare_to_access_memory): Rename as ...
2409 (process_stratum_target::prepare_to_access_memory): ... this.
2410 (process_target::done_accessing_memory): Rename as ...
2411 (process_stratum_target::done_accessing_memory): ... this.
2412 (process_target::look_up_symbols): Rename as ...
2413 (process_stratum_target::look_up_symbols): ... this.
2414 (process_target::supports_read_auxv): Rename as ...
2415 (process_stratum_target::supports_read_auxv): ... this.
2416 (process_target::read_auxv): Rename as ...
2417 (process_stratum_target::read_auxv): ... this.
2418 (process_target::supports_z_point_type): Rename as ...
2419 (process_stratum_target::supports_z_point_type): ... this.
2420 (process_target::insert_point): Rename as ...
2421 (process_stratum_target::insert_point): ... this.
2422 (process_target::remove_point): Rename as ...
2423 (process_stratum_target::remove_point): ... this.
2424 (process_target::stopped_by_sw_breakpoint): Rename as ...
2425 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2426 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2427 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2428 (process_target::stopped_by_hw_breakpoint): Rename as ...
2429 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2430 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2431 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2432 (process_target::supports_hardware_single_step): Rename as ...
2433 (process_stratum_target::supports_hardware_single_step): ... this.
2434 (process_target::stopped_by_watchpoint): Rename as ...
2435 (process_stratum_target::stopped_by_watchpoint): ... this.
2436 (process_target::stopped_data_address): Rename as ...
2437 (process_stratum_target::stopped_data_address): ... this.
2438 (process_target::supports_read_offsets): Rename as ...
2439 (process_stratum_target::supports_read_offsets): ... this.
2440 (process_target::read_offsets): Rename as ...
2441 (process_stratum_target::read_offsets): ... this.
2442 (process_target::supports_get_tls_address): Rename as ...
2443 (process_stratum_target::supports_get_tls_address): ... this.
2444 (process_target::get_tls_address): Rename as ...
2445 (process_stratum_target::get_tls_address): ... this.
2446 (process_target::hostio_last_error): Rename as ...
2447 (process_stratum_target::hostio_last_error): ... this.
2448 (process_target::supports_qxfer_osdata): Rename as ...
2449 (process_stratum_target::supports_qxfer_osdata): ... this.
2450 (process_target::qxfer_osdata): Rename as ...
2451 (process_stratum_target::qxfer_osdata): ... this.
2452 (process_target::supports_qxfer_siginfo): Rename as ...
2453 (process_stratum_target::supports_qxfer_siginfo): ... this.
2454 (process_target::qxfer_siginfo): Rename as ...
2455 (process_stratum_target::qxfer_siginfo): ... this.
2456 (process_target::supports_non_stop): Rename as ...
2457 (process_stratum_target::supports_non_stop): ... this.
2458 (process_target::async): Rename as ...
2459 (process_stratum_target::async): ... this.
2460 (process_target::start_non_stop): Rename as ...
2461 (process_stratum_target::start_non_stop): ... this.
2462 (process_target::supports_multi_process): Rename as ...
2463 (process_stratum_target::supports_multi_process): ... this.
2464 (process_target::supports_fork_events): Rename as ...
2465 (process_stratum_target::supports_fork_events): ... this.
2466 (process_target::supports_vfork_events): Rename as ...
2467 (process_stratum_target::supports_vfork_events): ... this.
2468 (process_target::supports_exec_events): Rename as ...
2469 (process_stratum_target::supports_exec_events): ... this.
2470 (process_target::handle_new_gdb_connection): Rename as ...
2471 (process_stratum_target::handle_new_gdb_connection): ... this.
2472 (process_target::handle_monitor_command): Rename as ...
2473 (process_stratum_target::handle_monitor_command): ... this.
2474 (process_target::core_of_thread): Rename as ...
2475 (process_stratum_target::core_of_thread): ... this.
2476 (process_target::supports_read_loadmap): Rename as ...
2477 (process_stratum_target::supports_read_loadmap): ... this.
2478 (process_target::read_loadmap): Rename as ...
2479 (process_stratum_target::read_loadmap): ... this.
2480 (process_target::process_qsupported): Rename as ...
2481 (process_stratum_target::process_qsupported): ... this.
2482 (process_target::supports_tracepoints): Rename as ...
2483 (process_stratum_target::supports_tracepoints): ... this.
2484 (process_target::read_pc): Rename as ...
2485 (process_stratum_target::read_pc): ... this.
2486 (process_target::write_pc): Rename as ...
2487 (process_stratum_target::write_pc): ... this.
2488 (process_target::supports_thread_stopped): Rename as ...
2489 (process_stratum_target::supports_thread_stopped): ... this.
2490 (process_target::thread_stopped): Rename as ...
2491 (process_stratum_target::thread_stopped): ... this.
2492 (process_target::supports_get_tib_address): Rename as ...
2493 (process_stratum_target::supports_get_tib_address): ... this.
2494 (process_target::get_tib_address): Rename as ...
2495 (process_stratum_target::get_tib_address): ... this.
2496 (process_target::pause_all): Rename as ...
2497 (process_stratum_target::pause_all): ... this.
2498 (process_target::unpause_all): Rename as ...
2499 (process_stratum_target::unpause_all): ... this.
2500 (process_target::stabilize_threads): Rename as ...
2501 (process_stratum_target::stabilize_threads): ... this.
2502 (process_target::supports_fast_tracepoints): Rename as ...
2503 (process_stratum_target::supports_fast_tracepoints): ... this.
2504 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2505 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2506 (process_target::emit_ops): Rename as ...
2507 (process_stratum_target::emit_ops): ... this.
2508 (process_target::supports_disable_randomization): Rename as ...
2509 (process_stratum_target::supports_disable_randomization): ... this.
2510 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2511 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2512 (process_target::qxfer_libraries_svr4): Rename as ...
2513 (process_stratum_target::qxfer_libraries_svr4): ... this.
2514 (process_target::supports_agent): Rename as ...
2515 (process_stratum_target::supports_agent): ... this.
2516 (process_target::enable_btrace): Rename as ...
2517 (process_stratum_target::enable_btrace): ... this.
2518 (process_target::disable_btrace): Rename as ...
2519 (process_stratum_target::disable_btrace): ... this.
2520 (process_target::read_btrace): Rename as ...
2521 (process_stratum_target::read_btrace): ... this.
2522 (process_target::read_btrace_conf): Rename as ...
2523 (process_stratum_target::read_btrace_conf): ... this.
2524 (process_target::supports_range_stepping): Rename as ...
2525 (process_stratum_target::supports_range_stepping): ... this.
2526 (process_target::supports_pid_to_exec_file): Rename as ...
2527 (process_stratum_target::supports_pid_to_exec_file): ... this.
2528 (process_target::pid_to_exec_file): Rename as ...
2529 (process_stratum_target::pid_to_exec_file): ... this.
2530 (process_target::supports_multifs): Rename as ...
2531 (process_stratum_target::supports_multifs): ... this.
2532 (process_target::multifs_open): Rename as ...
2533 (process_stratum_target::multifs_open): ... this.
2534 (process_target::multifs_unlink): Rename as ...
2535 (process_stratum_target::multifs_unlink): ... this.
2536 (process_target::multifs_readlink): Rename as ...
2537 (process_stratum_target::multifs_readlink): ... this.
2538 (process_target::breakpoint_kind_from_pc): Rename as ...
2539 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2540 (process_target::breakpoint_kind_from_current_state): Rename as ...
2541 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2542 (process_target::thread_name): Rename as ...
2543 (process_stratum_target::thread_name): ... this.
2544 (process_target::thread_handle): Rename as ...
2545 (process_stratum_target::thread_handle): ... this.
2546 (process_target::supports_software_single_step): Rename as ...
2547 (process_stratum_target::supports_software_single_step): ... this.
2548 (process_target::supports_catch_syscall): Rename as ...
2549 (process_stratum_target::supports_catch_syscall): ... this.
2550 (process_target::get_ipa_tdesc_idx): Rename as ...
2551 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2552
478f9adf
PA
25532020-02-20 Pedro Alves <palves@redhat.com>
2554
2555 * target.cc (set_target_ops): Simply copy the given target pointer
2556 instead of creating a copy of the pointed object.
2557
d633e831
TBA
25582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2559
2560 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2561 of process_target.
2562
2563 * target.h (struct process_stratum_target): Remove the target op.
2564 (class process_target): Add the target op.
2565 (target_get_ipa_tdesc_idx): Update the macro.
2566 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2567
2568 Update the derived classes and callers below.
2569
2570 * linux-low.cc (linux_target_ops): Update.
2571 (linux_get_ipa_tdesc_idx): Turn into ...
2572 (linux_process_target::get_ipa_tdesc_idx): ... this.
2573 * linux-low.h (class linux_process_target): Update.
2574 * lynx-low.cc (lynx_target_ops): Update.
2575 * nto-low.cc (nto_target_ops): Update.
2576 * win32-low.cc (win32_target_ops): Update.
2577
bc8d3ae4
TBA
25782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2579
2580 Turn process_stratum_target's supports_catch_syscall op into a
2581 method of process_target.
2582
2583 * target.h (struct process_stratum_target): Remove the target op.
2584 (class process_target): Add the target op.
2585 (target_supports_catch_syscall): Update the macro.
2586 * target.cc (process_target::supports_catch_syscall): Define.
2587
2588 Update the derived classes and callers below.
2589
2590 * linux-low.cc (linux_target_ops): Update.
2591 (linux_supports_catch_syscall): Turn into ...
2592 (linux_process_target::supports_catch_syscall): ... this.
2593 * linux-low.h (class linux_process_target): Update.
2594 * lynx-low.cc (lynx_target_ops): Update.
2595 * nto-low.cc (nto_target_ops): Update.
2596 * win32-low.cc (win32_target_ops): Update.
2597
5303a34f
TBA
25982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2599
2600 Turn process_stratum_target's supports_software_single_step op
2601 into a method of process_target.
2602
2603 * target.h (struct process_stratum_target): Remove the target op.
2604 (class process_target): Add the target op.
2605 (target_supports_software_single_step): Update the macro.
2606 * target.cc (process_target::supports_software_single_step): Define.
2607
2608 Update the derived classes and callers below.
2609
2610 * linux-low.cc (linux_target_ops): Update.
2611 (linux_supports_software_single_step): Turn into ...
2612 (linux_process_target::supports_software_single_step): ... this.
2613 * linux-low.h (class linux_process_target): Update.
2614 * lynx-low.cc (lynx_target_ops): Update.
2615 * nto-low.cc (nto_target_ops): Update.
2616 * win32-low.cc (win32_target_ops): Update.
2617
7f63b89b
TBA
26182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2619
2620 Turn process_stratum_target's thread_name and thread_handle ops
2621 into methods of process_target.
2622
2623 * target.h (struct process_stratum_target): Remove the target ops.
2624 (class process_target): Add the target ops.
2625 (target_thread_name): Update the macro.
2626 (target_thread_handle): Update the macro.
2627 * target.cc (process_target::thread_name): Define.
2628 (process_target::thread_handle): Define.
2629
2630 Update the derived classes and callers below.
2631
2632 * linux-low.cc (linux_target_ops): Update.
2633 (linux_process_target::thread_name): Define.
2634 (linux_process_target::thread_handle): Define.
2635 * linux-low.h (class linux_process_target): Update.
2636 * lynx-low.cc (lynx_target_ops): Update.
2637 * nto-low.cc (nto_target_ops): Update.
2638 * win32-low.cc (win32_target_ops): Update.
2639
d367006f
TBA
26402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2641
2642 Turn process_stratum_target's breakpoint_kind_from_pc,
2643 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2644 ops into methods of process_target.
2645
2646 * target.h (struct process_stratum_target): Remove the target op.
2647 (class process_target): Add the target op.
2648 (target_breakpoint_kind_from_pc): Update the macro.
2649 (target_breakpoint_kind_from_current_state): Update the macro.
2650 (default_breakpoint_kind_from_pc): Remove declaration.
2651 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2652 (process_target::breakpoint_kind_from_pc): ... this.
2653 (process_target::breakpoint_kind_from_current_state): Define.
2654
2655 Update the derived classes and callers below.
2656
2657 * mem-break.cc (bp_size): Update.
2658 (bp_opcode): Update.
2659 * linux-low.cc (linux_target_ops): Update.
2660 (linux_wait_1): Update.
2661 (linux_breakpoint_kind_from_pc): Turn into ...
2662 (linux_process_target::breakpoint_kind_from_pc): ... this.
2663 (linux_sw_breakpoint_from_kind): Turn into ...
2664 (linux_process_target::sw_breakpoint_from_kind): ... this.
2665 (linux_breakpoint_kind_from_current_state): Turn into ...
2666 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2667 * linux-low.h (class linux_process_target): Update.
2668 * lynx-low.cc (lynx_target_ops): Update.
2669 (lynx_process_target::sw_breakpoint_from_kind): Define.
2670 * lynx-low.h (class lynx_process_target): Update.
2671 * nto-low.cc (nto_target_ops): Update.
2672 (nto_sw_breakpoint_from_kind): Turn into ...
2673 (nto_process_target::sw_breakpoint_from_kind): ... this.
2674 * nto-low.h (class nto_process_target): Update.
2675 * win32-low.cc (win32_target_ops): Update.
2676 (win32_sw_breakpoint_from_kind): Turn into ...
2677 (win32_process_target::sw_breakpoint_from_kind): ... this.
2678 * win32-low.h (class win32_process_target): Update.
2679
c9b7b804
TBA
26802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2681
2682 Turn process_stratum_target's multifs_open, multifs_readlink,
2683 multifs_unlink ops into methods of process_target.
2684
2685 * target.h (struct process_stratum_target): Remove the target ops.
2686 (class process_target): Add the target ops. Also add
2687 'supports_multifs'.
2688 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2689 "sys/stat.h".
2690 (process_target::supports_multifs): Define.
2691 (process_target::multifs_open): Define.
2692 (process_target::multifs_readlink): Define.
2693 (process_target::multifs_unlink): Define.
2694
2695 Update the derived classes and callers below.
2696
2697 * hostio.cc (handle_setfs): Update.
2698 (handle_open): Update.
2699 (handle_unlink): Update.
2700 (handle_readlink): Update.
2701 * linux-low.cc (linux_target_ops): Update.
2702 (linux_process_target::supports_multifs): Define.
2703 (linux_process_target::multifs_open): Define.
2704 (linux_process_target::multifs_readlink): Define.
2705 (linux_process_target::multifs_unlink): Define.
2706 * linux-low.h (class linux_process_target): Update.
2707 * lynx-low.cc (lynx_target_ops): Update.
2708 * nto-low.cc (nto_target_ops): Update.
2709 * win32-low.cc (win32_target_ops): Update.
2710
8247b823
TBA
27112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2712
2713 Turn process_stratum_target's pid_to_exec_file op into a method
2714 of process_target.
2715
2716 * target.h (struct process_stratum_target): Remove the target op.
2717 (class process_target): Add the target op. Also add
2718 'supports_pid_to_exec_file'.
2719 * target.cc (process_target::pid_to_exec_file): Define.
2720 (process_target::supports_pid_to_exec_file): Define.
2721
2722 Update the derived classes and callers below.
2723
2724 * server.cc (handle_qxfer_exec_file): Update.
2725 (handle_query): Update.
2726 * linux-low.cc (linux_target_ops): Update.
2727 (linux_process_target::supports_pid_to_exec_file): Define.
2728 (linux_process_target::pid_to_exec_file): Define.
2729 * linux-low.h (class linux_process_target): Update.
2730 * lynx-low.cc (lynx_target_ops): Update.
2731 * nto-low.cc (nto_target_ops): Update.
2732 * win32-low.cc (win32_target_ops): Update.
2733
2526e0cd
TBA
27342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2735
2736 Turn process_stratum_target's supports_range_stepping op into a
2737 method of process_target.
2738
2739 * target.h (struct process_stratum_target): Remove the target op.
2740 (class process_target): Add the target op.
2741 (target_supports_range_stepping): Update the macro.
2742 * target.cc (process_target::supports_range_stepping): Define.
2743
2744 Update the derived classes and callers below.
2745
2746 * linux-low.cc (linux_target_ops): Update.
2747 (linux_supports_range_stepping): Turn into ...
2748 (linux_process_target::supports_range_stepping): ... this.
2749 * linux-low.h (class linux_process_target): Update.
2750 * lynx-low.cc (lynx_target_ops): Update.
2751 * nto-low.cc (nto_target_ops): Update.
2752 * win32-low.cc (win32_target_ops): Update.
2753
79597bdd
TBA
27542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2755
2756 Turn process_stratum_target's btrace-related ops (enable_btrace,
2757 disable_btrace, read_btrace, read_btrace_conf) into methods of
2758 process_target.
2759
2760 * target.h (struct process_stratum_target): Remove the target ops.
2761 (class process_target): Add the target ops.
2762 (target_enable_btrace): Update.
2763 (target_disable_btrace): Update.
2764 (target_read_btrace): Update.
2765 (target_read_btrace_conf): Update.
2766 * target.cc (process_target::enable_btrace): Define.
2767 (process_target::disable_btrace): Define.
2768 (process_target::read_btrace): Define.
2769 (process_target::read_btrace_conf): Define.
2770
2771 Update the derived classes and callers below.
2772
2773 * linux-low.cc (linux_target_ops): Update.
2774 (linux_process_target:enable_btrace): Define as a wrapper around
2775 linux_enable_btrace.
2776 (linux_low_disable_btrace): Turn into ...
2777 (linux_process_target::disable_btrace): ... this.
2778 (linux_low_read_btrace): Turn into ...
2779 (linux_process_target::read_btrace): ... this.
2780 (linux_low_btrace_conf): Turn into ...
2781 (linux_process_target::read_btrace_conf): ... this.
2782 * linux-low.h (class linux_process_target): Update.
2783 * lynx-low.cc (lynx_target_ops): Update.
2784 * nto-low.cc (nto_target_ops): Update.
2785 * win32-low.cc (win32_target_ops): Update.
2786
c0245cb9
TBA
27872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2788
2789 Turn process_stratum_target's supports_agent op into a method of
2790 process_target.
2791
2792 * target.h (struct process_stratum_target): Remove the target op.
2793 (class process_target): Add the target op.
2794 (target_supports_agent): Update the macro.
2795 * target.cc (process_target::supports_agent): Define.
2796
2797 Update the derived classes and callers below.
2798
2799 * linux-low.cc (linux_target_ops): Update.
2800 (linux_supports_agent): Turn into ...
2801 (linux_process_target::supports_agent): ... this.
2802 * linux-low.h (class linux_process_target): Update.
2803 * lynx-low.cc (lynx_target_ops): Update.
2804 * nto-low.cc (nto_target_ops): Update.
2805 * win32-low.cc (win32_target_ops): Update.
2806
974387bb
TBA
28072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2808
2809 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2810 method of process_target.
2811
2812 * target.h (struct process_stratum_target): Remove the target op.
2813 (class process_target): Add the target op. Also add
2814 'supports_qxfer_libraries_svr4'.
2815 * target.cc (process_target::qxfer_libraries_svr4): Define.
2816 (process_target::supports_qxfer_libraries_svr4): Define.
2817
2818 Update the derived classes and callers below.
2819
2820 * server.cc (handle_qxfer_libraries_svr4): Update.
2821 (handle_query): Update.
2822 * linux-low.cc (linux_target_ops): Update.
2823 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2824 (linux_qxfer_libraries_svr4): Turn into ...
2825 (linux_process_target::qxfer_libraries_svr4): ... this.
2826 * linux-low.h (class linux_process_target): Update.
2827 * lynx-low.cc (lynx_target_ops): Update.
2828 * nto-low.cc (nto_target_ops): Update.
2829 * win32-low.cc (win32_target_ops): Update.
2830
c756403b
TBA
28312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2832
2833 Turn process_stratum_target's supports_disable_randomization op
2834 into a method of process_target.
2835
2836 * target.h (struct process_stratum_target): Remove the target op.
2837 (class process_target): Add the target op.
2838 (target_supports_disable_randomization): Update the macro.
2839 * target.cc (process_target::supports_disable_randomization): Define.
2840
2841 Update the derived classes and callers below.
2842
2843 * linux-low.cc (linux_target_ops): Update.
2844 (linux_supports_disable_randomization): Turn into ...
2845 (linux_process_target::supports_disable_randomization): ... this.
2846 * linux-low.h (class linux_process_target): Update.
2847 * lynx-low.cc (lynx_target_ops): Update.
2848 * nto-low.cc (nto_target_ops): Update.
2849 * win32-low.cc (win32_target_ops): Update.
2850
345dafad
TBA
28512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2852
2853 Turn process_stratum_target's emit_ops op into a method of
2854 process_target.
2855
2856 * target.h (struct process_stratum_target): Remove the target op.
2857 (class process_target): Add the target op.
2858 (target_emit_ops): Update the macro.
2859 * target.cc (process_target::emit_ops): Define.
2860
2861 Update the derived classes and callers below.
2862
2863 * linux-low.cc (linux_target_ops): Update.
2864 (linux_emit_ops): Turn into ...
2865 (linux_process_target::emit_ops): ... this.
2866 * linux-low.h (class linux_process_target): Update.
2867 * lynx-low.cc (lynx_target_ops): Update.
2868 * nto-low.cc (nto_target_ops): Update.
2869 * win32-low.cc (win32_target_ops): Update.
2870
c23c9391
TBA
28712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2872
2873 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2874 and get_min_fast_tracepoint_insn_len ops into methods of
2875 process_target.
2876
2877 * target.h (struct process_stratum_target): Remove the target ops.
2878 (class process_target): Add the target ops. Also add
2879 'supports_fast_tracepoints'.
2880 (target_supports_fast_tracepoints): Update the macro.
2881 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2882 (install_fast_tracepoint_jump_pad): Update and rename the macro
2883 to ...
2884 (target_install_fast_tracepoint_jump_pad): ... this.
2885 * target.cc (process_target::supports_fast_tracepoints): Define.
2886 (process_target::install_fast_tracepoint_jump_pad): Define.
2887 (process_target::get_min_fast_tracepoint_insn_len): Define.
2888
2889 Update the derived classes and callers below.
2890
2891 * tracepoint.cc (install_fast_tracepoint): Update.
2892 * linux-low.cc (linux_target_ops): Update.
2893 (linux_process_target::supports_fast_tracepoints): Define.
2894 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2895 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2896 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2897 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2898 * linux-low.h (class linux_process_target): Update.
2899 * lynx-low.cc (lynx_target_ops): Update.
2900 * nto-low.cc (nto_target_ops): Update.
2901 * win32-low.cc (win32_target_ops): Update.
2902
5c9eb2f2
TBA
29032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2904
2905 Turn process_stratum_target's stabilize_threads op into a
2906 method of process_target.
2907
2908 * target.h (struct process_stratum_target): Remove the target op.
2909 (class process_target): Add the target op.
2910 (target_stabilize_threads): Update the macro.
2911 * target.cc (process_target::stabilize_threads): Define.
2912
2913 Update the derived classes and callers below.
2914
2915 * server.cc (handle_status): Update.
2916 * tracepoint.cc (cmd_qtdp): Update.
2917 (cmd_qtstart): Update.
2918 * linux-low.cc (linux_target_ops): Update.
2919 (linux_stabilize_threads): Turn into ...
2920 (linux_process_target::stabilize_threads): ... this.
2921 (linux_wait_1): Update.
2922 * linux-low.h (class linux_process_target): Update.
2923 * lynx-low.cc (lynx_target_ops): Update.
2924 * nto-low.cc (nto_target_ops): Update.
2925 * win32-low.cc (win32_target_ops): Update.
2926
29e8dc09
TBA
29272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2928
2929 Turn process_stratum_target's pause_all and unpause_all ops
2930 into methods of process_target.
2931
2932 * target.h (struct process_stratum_target): Remove the target ops.
2933 (class process_target): Add the target ops.
2934 (pause_all): Update the macro and rename to...
2935 (target_pause_all): ... this.
2936 (unpause_all): Update the macro and rename to...
2937 (target_unpause_all): ... this.
2938 * target.cc (process_target::pause_all): Define.
2939 (process_target::unpause_all): Define.
2940
2941 Update the derived classes and callers below.
2942
2943 * server.cc (handle_status): Update.
2944 * tracepoint.cc (clear_installed_tracepoints): Update.
2945 (cmd_qtdp): Update.
2946 (cmd_qtstart): Update.
2947 (stop_tracing): Update.
2948 (cmd_qtstatus): Update.
2949 (upload_fast_traceframes): Update.
2950 (run_inferior_command): Update.
2951 * linux-low.cc (linux_target_ops): Update.
2952 (linux_pause_all): Turn into ...
2953 (linux_process_target::pause_all): ... this.
2954 (linux_unpause_all): Turn into ...
2955 (linux_process_target::unpause_all): ... this.
2956 (linux_process_target::prepare_to_access_memory): Update.
2957 (linux_process_target::done_accessing_memory): Update.
2958 * linux-low.h (class linux_process_target): Update.
2959 * lynx-low.cc (lynx_target_ops): Update.
2960 * nto-low.cc (nto_target_ops): Update.
2961 * win32-low.cc (win32_target_ops): Update.
2962
4e2e869c
TBA
29632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2964
2965 Turn process_stratum_target's get_tib_address op into a method of
2966 process_target.
2967
2968 * target.h (struct process_stratum_target): Remove the target op.
2969 (class process_target): Add the target op. Also add
2970 'supports_get_tib_address'.
2971 * target.cc (process_target::get_tib_address): Define.
2972 (process_target::supports_get_tib_address): Define.
2973
2974 Update the derived classes and callers below.
2975
2976 * server.cc (handle_query): Update.
2977 * linux-low.cc (win32_target_ops): Update.
2978 * lynx-low.cc (lynx_target_ops): Update.
2979 * nto-low.cc (nto_target_ops): Update.
2980 * win32-low.cc (win32_target_ops): Update.
2981 (win32_process_target::supports_get_tib_address): Define.
2982 (win32_get_tib_address): Turn into ...
2983 (win32_process_target::get_tib_address): ... this.
2984 * win32-low.h (class win32_process_target): Update.
2985
68119632
TBA
29862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2987
2988 Turn process_stratum_target's thread_stopped op into a method of
2989 process_target.
2990
2991 * target.h (struct process_stratum_target): Remove the target op.
2992 (class process_target): Add the target op. Also add
2993 'supports_thread_stopped'.
2994 (target_thread_stopped): Update the macro.
2995 * target.cc (process_target::thread_stopped): Define.
2996 (process_target::supports_thread_stopped): Define.
2997 (prepare_to_access_memory): Update.
2998
2999 Update the derived classes and callers below.
3000
3001 * server.cc (queue_stop_reply_callback): Update.
3002 * linux-low.cc (linux_target_ops): Update.
3003 (linux_process_target::supports_thread_stopped): Define.
3004 (linux_thread_stopped): Turn into ...
3005 (linux_process_target::thread_stopped): ... this.
3006 * linux-low.h (class linux_process_target): Update.
3007 * lynx-low.cc (lynx_target_ops): Update.
3008 * nto-low.cc (nto_target_ops): Update.
3009 * win32-low.cc (win32_target_ops): Update.
3010
770d8f6a
TBA
30112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3012
3013 Turn process_stratum_target's read_pc and write_pc ops into
3014 methods of process_target.
3015
3016 * target.h (struct process_stratum_target): Remove the target ops.
3017 (class process_target): Add the target ops.
3018 * target.cc (process_target::read_pc): Define.
3019 (process_target::write_pc): Define.
3020
3021 Update the derived classes and callers below.
3022
3023 * regcache.cc (regcache_read_pc): Update.
3024 (regcache_write_pc): Update.
3025 * linux-low.cc (linux_target_ops): Update.
3026 (linux_read_pc): Turn into ...
3027 (linux_process_target::read_pc): ... this.
3028 (linux_write_pc): Turn into ...
3029 (linux_process_target::write_pc): ... this.
3030 * linux-low.h (class linux_process_target): Update.
3031 * lynx-low.cc (lynx_target_ops): Update.
3032 * nto-low.cc (nto_target_ops): Update.
3033 * win32-low.cc (win32_target_ops): Update.
3034
290732bf
TBA
30352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3036
3037 Turn process_stratum_target's supports_tracepoints op into a
3038 method of process_target.
3039
3040 * target.h (struct process_stratum_target): Remove the target op.
3041 (class process_target): Add the target op.
3042 (target_supports_tracepoints): Update the macro.
3043 * target.cc (process_target::supports_tracepoints): Define.
3044
3045 Update the derived classes and callers below.
3046
3047 * linux-low.cc (linux_target_ops): Update.
3048 (linux_supports_tracepoints): Turn into ...
3049 (linux_process_target::supports_tracepoints): ... this.
3050 * linux-low.h (class linux_process_target): Update.
3051 * lynx-low.cc (lynx_target_ops): Update.
3052 * nto-low.cc (nto_target_ops): Update.
3053 * win32-low.cc (win32_target_ops): Update.
3054
0df28b1b
TBA
30552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3056
3057 Turn process_stratum_target's process_qsupported op into a method
3058 of process_target.
3059
3060 * target.h (struct process_stratum_target): Remove the target op.
3061 (class process_target): Add the target op.
3062 (target_process_qsupported): Update the macro.
3063 * target.cc (process_target::process_qsupported): Define.
3064
3065 Update the derived classes and callers below.
3066
3067 * linux-low.cc (linux_target_ops): Update.
3068 (linux_process_qsupported): Turn into ...
3069 (linux_process_target::process_qsupported): ... this.
3070 * linux-low.h (class linux_process_target): Update.
3071 * lynx-low.cc (lynx_target_ops): Update.
3072 * nto-low.cc (nto_target_ops): Update.
3073 * win32-low.cc (win32_target_ops): Update.
3074
9da41fda
TBA
30752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3076
3077 Turn process_stratum_target's read_loadmap op into a method of
3078 process_target.
3079
3080 * target.h (struct process_stratum_target): Remove the target op.
3081 (class process_target): Add the target op. Also add
3082 'supports_read_loadmap'.
3083 * target.cc (process_target::read_loadmap): Define.
3084 (process_target::supports_read_loadmap): Define.
3085
3086 Update the derived classes and callers below.
3087
3088 * server.cc (handle_qxfer_fdpic): Update.
3089 (handle_query): Update.
3090 * linux-low.cc (linux_target_ops): Update.
3091 (linux_process_target::supports_read_loadmap): Define.
3092 (linux_read_loadmap): Turn into ...
3093 (linux_process_target::read_loadmap): ... this.
3094 * linux-low.h (class linux_process_target): Update.
3095 * lynx-low.cc (lynx_target_ops): Update.
3096 * nto-low.cc (nto_target_ops): Update.
3097 * win32-low.cc (win32_target_ops): Update.
3098
95a45fc1
TBA
30992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3100
3101 Turn process_stratum_target's core_of_thread op into a method of
3102 process_target.
3103
3104 * target.h (struct process_stratum_target): Remove the target op.
3105 (class process_target): Add the target op.
3106 (target_core_of_thread): Update the macro.
3107 * target.cc (process_target::core_of_thread): Define.
3108
3109 Update the derived classes and callers below.
3110
3111 * linux-low.cc (linux_target_ops): Update.
3112 (linux_process_target::core_of_thread): Define.
3113 * linux-low.h (class linux_process_target): Update.
3114 * lynx-low.cc (lynx_target_ops): Update.
3115 * nto-low.cc (nto_target_ops): Update.
3116 * win32-low.cc (win32_target_ops): Update.
3117
55cf3021
TBA
31182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3119
3120 Turn process_stratum_target's handle_monitor_command op into a
3121 method of process_target.
3122
3123 * target.h (struct process_stratum_target): Remove the target op.
3124 (class process_target): Add the target op.
3125 (target_handle_monitor_command): Update the macro.
3126 * target.cc (process_target::handle_monitor_command): Define.
3127
3128 Update the derived classes and callers below.
3129
3130 * server.cc (handle_query): Update.
3131 * linux-low.cc (linux_target_ops): Update.
3132 (linux_process_target::handle_monitor_command): Define.
3133 * linux-low.h (class linux_process_target): Update.
3134 * lynx-low.cc (lynx_target_ops): Update.
3135 * nto-low.cc (nto_target_ops): Update.
3136 * win32-low.cc (win32_target_ops): Update.
3137
fb00dfce
TBA
31382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3139
3140 Turn process_stratum_target's handle_new_gdb_connection op into a
3141 method of process_target.
3142
3143 * target.h (struct process_stratum_target): Remove the target op.
3144 (class process_target): Add the target op.
3145 (target_handle_new_gdb_connection): Update the macro.
3146 * target.cc (process_target::handle_new_gdb_connection): Define.
3147
3148 Update the derived classes and callers below.
3149
3150 * linux-low.cc (linux_target_ops): Update.
3151 (linux_handle_new_gdb_connection): Turn into ...
3152 (linux_process_target::handle_new_gdb_connection): ... this.
3153 * linux-low.h (class linux_process_target): Update.
3154 * lynx-low.cc (lynx_target_ops): Update.
3155 * nto-low.cc (nto_target_ops): Update.
3156 * win32-low.cc (win32_target_ops): Update.
3157
9690a72a
TBA
31582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3159
3160 Turn process_stratum_target's supports_fork_events,
3161 supports_vfork_events, and supports_exec_events ops into methods
3162 of process_target.
3163
3164 * target.h (struct process_stratum_target): Remove the target ops.
3165 (class process_target): Add the target ops.
3166 (target_supports_fork_events): Update the macro.
3167 (target_supports_vfork_events): Update the macro.
3168 (target_supports_exec_events): Update the macro.
3169 * target.cc (process_target::supports_fork_events): Define.
3170 (process_target::supports_vfork_events): Define.
3171 (process_target::supports_exec_events): Define.
3172
3173 Update the derived classes and callers below.
3174
3175 * linux-low.cc (linux_target_ops): Update.
3176 (linux_supports_fork_events): Turn into ...
3177 (linux_process_target::supports_fork_events): ... this.
3178 (linux_supports_vfork_events): Turn into ...
3179 (linux_process_target::supports_vfork_events): ... this.
3180 (linux_supports_exec_events): Turn into ...
3181 (linux_process_target::supports_exec_events): ... this.
3182 * linux-low.h (class linux_process_target): Update.
3183 * lynx-low.cc (lynx_target_ops): Update.
3184 * nto-low.cc (nto_target_ops): Update.
3185 * win32-low.cc (win32_target_ops): Update.
3186
652aef77
TBA
31872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3188
3189 Turn process_stratum_target's supports_multi_process op into a
3190 method of process_target.
3191
3192 * target.h (struct process_stratum_target): Remove the target op.
3193 (class process_target): Add the target op.
3194 * target.cc (process_target::supports_multi_process): Define.
3195 (target_supports_multi_process): Update.
3196
3197 Update the derived classes and callers below.
3198
3199 * linux-low.cc (linux_target_ops): Update.
3200 (linux_supports_multi_process): Turn into ...
3201 (linux_process_target::supports_multi_process): ... this.
3202 * linux-low.h (class linux_process_target): Update.
3203 * lynx-low.cc (lynx_target_ops): Update.
3204 * nto-low.cc (nto_target_ops): Update.
3205 * win32-low.cc (win32_target_ops): Update.
3206
0dc587d4
TBA
32072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3208
3209 Turn process_stratum_target's supports_non_stop, async, and
3210 start_non_stop ops into methods of process_target.
3211
3212 * target.h (struct process_stratum_target): Remove the target ops.
3213 (class process_target): Add the target ops.
3214 (target_supports_non_stop): Update the macro.
3215 (target_async): Update the macro.
3216 (start_non_stop): Remove declaration.
3217 * target.cc (process_target::supports_non_stop): Define.
3218 (process_target::async): Define.
3219 (process_target::start_non_stop): Define.
3220 (start_non_stop): Remove.
3221
3222 Update the derived classes and callers below.
3223
3224 * server.cc (handle_qxfer_siginfo): Update.
3225 (handle_query): Update.
3226 * linux-low.cc (linux_target_ops): Update.
3227 (linux_supports_non_stop): Turn into ...
3228 (linux_process_target::supports_non_stop): ... this.
3229 (linux_async): Turn into ...
3230 (linux_process_target::async): ... this.
3231 (linux_start_non_stop): Turn into ...
3232 (linux_process_target::start_non_stop): ... this.
3233 * linux-low.h (class linux_process_target): Update.
3234 * lynx-low.cc (lynx_target_ops): Update.
3235 * nto-low.cc (nto_target_ops): Update.
3236 (nto_supports_non_stop): Remove; rely on the default behavior
3237 instead.
3238 * win32-low.cc (win32_target_ops): Update.
3239
d7abedf7
TBA
32402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3241
3242 Turn process_stratum_target's qxfer_siginfo op into a method of
3243 process_target.
3244
3245 * target.h (struct process_stratum_target): Remove the target op.
3246 (class process_target): Add the target op. Also add
3247 'supports_qxfer_siginfo'.
3248 * target.cc (process_target::qxfer_siginfo): Define.
3249 (process_target::supports_qxfer_siginfo): Define.
3250
3251 Update the derived classes and callers below.
3252
3253 * server.cc (handle_qxfer_siginfo): Update.
3254 (handle_query): Update.
3255 * linux-low.cc (linux_target_ops): Update.
3256 (linux_process_target::supports_qxfer_siginfo): Define.
3257 (linux_xfer_siginfo): Turn into ...
3258 (linux_process_target::qxfer_siginfo): ... this.
3259 * linux-low.h (class linux_process_target): Update.
3260 * lynx-low.cc (lynx_target_ops): Update.
3261 * nto-low.cc (nto_target_ops): Update.
3262 * win32-low.cc (win32_target_ops): Update.
3263
2d0795ee
TBA
32642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3265
3266 Turn process_stratum_target's qxfer_osdata op into a method of
3267 process_target.
3268
3269 * target.h (struct process_stratum_target): Remove the target op.
3270 (class process_target): Add the target op. Also add
3271 'supports_qxfer_osdata'.
3272 * target.cc (process_target::qxfer_osdata): Define.
3273 (process_target::supports_qxfer_osdata): Define.
3274
3275 Update the derived classes and callers below.
3276
3277 * server.cc (handle_qxfer_osdata): Update.
3278 (handle_query): Update.
3279 * linux-low.cc (linux_target_ops): Update.
3280 (linux_process_target::supports_qxfer_osdata): Define.
3281 (linux_qxfer_osdata): Turn into ...
3282 (linux_process_target::qxfer_osdata): ... this.
3283 * linux-low.h (class linux_process_target): Update.
3284 * lynx-low.cc (lynx_target_ops): Update.
3285 * nto-low.cc (nto_target_ops): Update.
3286 * win32-low.cc (win32_target_ops): Update.
3287
ea06bbaa
TBA
32882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3289
3290 Turn process_stratum_target's hostio_last_error op into a
3291 method of process_target.
3292
3293 * target.h (struct process_stratum_target): Remove the target op.
3294 (class process_target): Add the target op.
3295 * target.cc: Add "hostio.h" to includes.
3296 (process_target::hostio_last_error): Define.
3297
3298 Update the derived classes and callers below.
3299
3300 * hostio.cc (hostio_error): Update.
3301 * linux-low.cc: Remove "hostio.h" from includes.
3302 (linux_target_ops): Update.
3303 * lynx-low.cc (lynx_target_ops): Update.
3304 * nto-low.cc (nto_target_ops): Update.
3305 * win32-low.h (class win32_process_target): Update.
3306 * win32-low.cc (win32_target_ops): Update.
3307 (wince_hostio_last_error): Turn into ...
3308 (win32_process_target::hostio_last_error): ... this.
3309
6e3fd7e9
TBA
33102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3311
3312 Turn process_stratum_target's get_tls_address op into a method of
3313 process_target.
3314
3315 * target.h (struct process_stratum_target): Remove the target op.
3316 (class process_target): Add the target op. Also add
3317 'supports_get_tls_address'.
3318 * target.cc (process_target::get_tls_address): Define.
3319 (process_target::supports_get_tls_address): Define.
3320
3321 Update the derived classes and callers below.
3322
3323 * server.cc (handle_query): Update.
3324 * linux-low.cc (linux_target_ops): Update.
3325 (linux_process_target::supports_get_tls_address): Define.
3326 (linux_process_target::get_tls_address): Define.
3327 * linux-low.h (class linux_process_target): Update.
3328 * lynx-low.cc (lynx_target_ops): Update.
3329 * nto-low.cc (nto_target_ops): Update.
3330 * win32-low.cc (win32_target_ops): Update.
3331
5203ae1e
TBA
33322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3333
3334 Turn process_stratum_target's read_offsets op into a method of
3335 process_target.
3336
3337 * target.h (struct process_stratum_target): Remove the target op.
3338 (class process_target): Add the target op. Also add
3339 'supports_read_offsets'.
3340 * target.cc (process_target::read_offsets): Define.
3341 (process_target::supports_read_offsets): Define.
3342
3343 Update the derived classes and callers below.
3344
3345 * server.cc (handle_query): Update.
3346 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3347 (linux_target_ops): Update.
3348 (linux_process_target::supports_read_offsets): Define.
3349 (linux_read_offsets): Turn into ...
3350 (linux_process_target::read_offsets): ... this.
3351 * linux-low.h (class linux_process_target): Update.
3352 * lynx-low.cc (lynx_target_ops): Update.
3353 * nto-low.cc (nto_target_ops): Update.
3354 * win32-low.cc (win32_target_ops): Update.
3355
6eeb5c55
TBA
33562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3357
3358 Turn process_stratum_target's stopped_by_watchpoint and
3359 stopped_data_address ops into methods of process_target.
3360
3361 * target.h (struct process_stratum_target): Remove the target ops.
3362 (class process_target): Add the target ops.
3363 * target.cc (process_target::stopped_by_watchpoint): Define.
3364 (process_target::stopped_data_address): Define.
3365
3366 Update the derived classes and callers below.
3367
3368 * remote-utils.cc (prepare_resume_reply): Update.
3369 * linux-low.cc (linux_target_ops): Update.
3370 (linux_stopped_by_watchpoint): Turn into ...
3371 (linux_process_target::stopped_by_watchpoint): ... this.
3372 (linux_stopped_data_address): Turn into ...
3373 (linux_process_target::stopped_data_address): ... this.
3374 * linux-low.h (class linux_process_target): Update.
3375 * lynx-low.cc (lynx_target_ops): Update.
3376 * nto-low.cc (nto_target_ops): Update.
3377 (nto_stopped_by_watchpoint): Turn into ...
3378 (nto_process_target::stopped_by_watchpoint): ... this.
3379 (nto_stopped_data_address): Turn into ...
3380 (nto_process_target::stopped_data_address): ... this.
3381 * nto-low.h (class nto_process_target): Update.
3382 * win32-low.cc (win32_target_ops): Update.
3383 (win32_stopped_by_watchpoint): Turn into ...
3384 (win32_process_target::stopped_by_watchpoint): ... this.
3385 (win32_stopped_data_address): Turn into ...
3386 (win32_process_target::stopped_data_address): ... this.
3387 * win32-low.h (class win32_process_target): Update.
3388
22aa6223
TBA
33892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3390
3391 Turn process_stratum_target's supports_hardware_single_step op into
3392 a method of process_target.
3393
3394 * target.h (struct process_stratum_target): Remove the target op.
3395 (class process_target): Add the target op.
3396 (target_supports_hardware_single_step): Update the macro.
3397 (target_can_do_hardware_single_step): Remove declaration.
3398 * target.cc (process_target::supports_hardware_single_step): Define.
3399 (target_can_do_hardware_single_step): Remove.
3400
3401 Update the derived classes and callers below.
3402
3403 * linux-low.h (class linux_process_target): Update.
3404 * linux-low.cc (linux_target_ops): Update.
3405 (linux_supports_hardware_single_step): Turn into ...
3406 (linux_process_target::supports_hardware_single_step): ... this.
3407 * lynx-low.h (class lynx_process_target): Update.
3408 * lynx-low.cc (lynx_target_ops): Update.
3409 (lynx_process_target::supports_hardware_single_step): Define.
3410 * nto-low.h (class nto_process_target): Update.
3411 * nto-low.cc (nto_target_ops): Update.
3412 (nto_process_target::supports_hardware_single_step): Define.
3413 * win32-low.h (class win32_process_target): Update.
3414 * win32-low.cc (win32_target_ops): Update.
3415 (win32_process_target::supports_hardware_single_step): Define.
3416
93fe88b2
TBA
34172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3418
3419 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3420 ops into methods of process_target.
3421
3422 * target.h (struct process_stratum_target): Remove the target ops.
3423 (class process_target): Add the target ops.
3424 (target_stopped_by_hw_breakpoint): Update the macro.
3425 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3426 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3427 (process_target::supports_stopped_by_hw_breakpoint): Define.
3428
3429 Update the derived classes and callers below.
3430
3431 * linux-low.cc (linux_target_ops): Update.
3432 (linux_stopped_by_hw_breakpoint): Turn into ...
3433 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3434 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3435 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3436 * linux-low.h (class linux_process_target): Update.
3437 * lynx-low.cc (lynx_target_ops): Update.
3438 * nto-low.cc (nto_target_ops): Update.
3439 * win32-low.cc (win32_target_ops): Update.
3440
84320c4e
TBA
34412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3442
3443 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3444 ops into methods of process_target.
3445
3446 * target.h (struct process_stratum_target): Remove the target ops.
3447 (class process_target): Add the target ops.
3448 (target_stopped_by_sw_breakpoint): Update the macro.
3449 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3450 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3451 (process_target::supports_stopped_by_sw_breakpoint): Define.
3452
3453 Update the derived classes and callers below.
3454
3455 * linux-low.cc (linux_target_ops): Update.
3456 (linux_stopped_by_sw_breakpoint): Turn into ...
3457 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3458 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3459 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3460 * linux-low.h (class linux_process_target): Update.
3461 * lynx-low.cc (lynx_target_ops): Update.
3462 * nto-low.cc (nto_target_ops): Update.
3463 * win32-low.cc (win32_target_ops): Update.
3464
7e0bde70
TBA
34652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3466
3467 Turn process_stratum_target's insert_point and remove_point ops
3468 into methods of process_target.
3469
3470 * target.h (struct process_stratum_target): Remove the target ops.
3471 (class process_target): Add the target ops.
3472 * target.cc (process_target::insert_point): Define.
3473 (process_target::remove_point): Define.
3474
3475 Update the derived classes and callers below.
3476
3477 * mem-break.cc (set_raw_breakpoint_at): Update.
3478 (delete_raw_breakpoint): Update.
3479 (uninsert_raw_breakpoint): Update.
3480 (reinsert_raw_breakpoint): Update.
3481 * linux-low.cc (linux_target_ops): Update.
3482 (linux_insert_point): Turn into ...
3483 (linux_process_target::insert_point): ... this.
3484 (linux_remove_point): Turn into ...
3485 (linux_process_target::remove_point): ... this.
3486 * linux-low.h (class linux_process_target): Update.
3487 * lynx-low.cc (lynx_target_ops): Update.
3488 * nto-low.cc (nto_target_ops): Update.
3489 (nto_insert_point): Turn into ...
3490 (nto_process_target::insert_point): ... this.
3491 (nto_remove_point): Turn into ...
3492 (nto_process_target::remove_point): ... this.
3493 * nto-low.h (class nto_process_target): Update.
3494 * win32-low.cc (win32_target_ops): Update.
3495 (win32_insert_point): Turn into ...
3496 (win32_process_target::insert_point): ... this.
3497 (win32_remove_point): Turn into ...
3498 (win32_process_target::remove_point): ... this.
3499 * win32-low.h (class win32_process_target): Update.
3500
a2b2297a
TBA
35012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3502
3503 Turn process_stratum_target's supports_z_point_type op into a
3504 method of process_target.
3505
3506 * target.h (struct process_stratum_target): Remove the target op.
3507 (class process_target): Add the target op.
3508 * target.cc (process_target::supports_z_point_type): Define.
3509
3510 Update the derived classes and callers below.
3511
3512 * mem-break.cc (z_type_supported): Update.
3513 * linux-low.cc (linux_target_ops): Update.
3514 (linux_supports_z_point_type): Turn into ...
3515 (linux_process_target::supports_z_point_type): ... this.
3516 * linux-low.h (class linux_process_target): Update.
3517 * lynx-low.cc (lynx_target_ops): Update.
3518 * nto-low.cc (nto_target_ops): Update.
3519 (nto_supports_z_point_type): Turn into ...
3520 (nto_process_target::supports_z_point_type): ... this.
3521 * nto-low.h (class nto_process_target): Update.
3522 * win32-low.cc (win32_target_ops): Update.
3523 (win32_supports_z_point_type): Turn into ...
3524 (win32_process_target::supports_z_point_type): ... this.
3525 * win32-low.h (class win32_process_target): Update.
3526
eac215cc
TBA
35272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3528
3529 Turn process_stratum_target's read_auxv op into a method of
3530 process_target.
3531
3532 * target.h (class process_stratum_target): Remove the target op.
3533 (struct process_target): Add the target op. Also add
3534 'supports_read_auxv'.
3535 * target.cc (process_target::read_auxv): Define.
3536 (process_target::supports_read_auxv): Define.
3537
3538 Update the derived classes and callers below.
3539
3540 * server.cc (handle_qxfer_auxv): Update.
3541 (handle_query): Update.
3542 * linux-low.cc (linux_target_ops): Update.
3543 (linux_process_target::supports_read_auxv): Define.
3544 (linux_read_auxv): Turn into ...
3545 (linux_process_target::read_auxv): ... this.
3546 * linux-low.h (class linux_process_target): Update.
3547 * lynx-low.cc (lynx_target_ops): Update.
3548 * nto-low.cc (nto_target_ops): Update.
3549 (nto_process_target::supports_read_auxv): Define.
3550 (nto_read_auxv): Turn into ...
3551 (nto_process_target::read_auxv): ... this.
3552 * nto-low.h (class nto_process_target): Update.
3553 * win32-low.cc (win32_target_ops): Update.
3554
eb497a2a
TBA
35552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3556
3557 Turn process_stratum_target's request_interrupt op into a method of
3558 process_target.
3559
3560 * target.h (struct process_stratum_target): Remove the target op.
3561 (class process_target): Add the target op.
3562
3563 Update the derived classes and callers below.
3564
3565 * remote-utils.cc (putpkt_binary_1): Update.
3566 (input_interrupt): Update.
3567 (getpkt): Update.
3568 * server.cc (handle_v_requests): Update.
3569 * linux-low.cc (linux_target_ops): Update.
3570 (linux_request_interrupt): Turn into ...
3571 (linux_process_target::request_interrupt): ... this.
3572 * linux-low.h (class linux_process_target): Update.
3573 * lynx-low.cc (lynx_target_ops): Update.
3574 (lynx_request_interrupt): Turn into ...
3575 (lynx_process_target::request_interrupt): ... this.
3576 * lynx-low.h (class lynx_process_target): Update.
3577 * nto-low.cc (nto_target_ops): Update.
3578 (nto_request_interrupt): Turn into ...
3579 (nto_process_target::request_interrupt): ... this.
3580 * nto-low.h (class nto_process_target): Update.
3581 * win32-low.cc (win32_target_ops): Update.
3582 (win32_request_interrupt): Turn into ...
3583 (win32_process_target::request_interrupt): ... this.
3584 * win32-low.h (class win32_process_target): Update.
3585
2a31c7aa
TBA
35862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3587
3588 Turn process_stratum_target's look_up_symbols op into a method of
3589 process_target.
3590
3591 * target.h (struct process_stratum_target): Remove the target op.
3592 (class process_target): Add the target op.
3593 * target.cc (process_target::look_up_symbols): Define.
3594
3595 Update the derived classes and callers below.
3596
3597 * server.cc (handle_query): Update.
3598 * linux-low.cc (linux_target_ops): Update.
3599 (linux_look_up_symbols): Turn into ...
3600 (linux_process_target::look_up_symbols): ... this.
3601 * linux-low.h (class linux_process_target): Update.
3602 * lynx-low.cc (lynx_target_ops): Update.
3603 * nto-low.cc (nto_target_ops): Update.
3604 * win32-low.cc (win32_target_ops): Update.
3605
e2558df3
TBA
36062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3607
3608 Turn process_stratum_target's read_memory and write_memory
3609 ops into methods of process_target.
3610
3611 * target.h (struct process_stratum_target): Remove the target ops.
3612 (class process_target): Add the target ops.
3613
3614 Update the derived classes and callers below.
3615
3616 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3617 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3618 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3619 (arm_get_syscall_trapinfo): Update.
3620 * linux-cris-low.cc (cris_breakpoint_at): Update.
3621 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3622 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3623 * linux-mips-low.cc (mips_breakpoint_at): Update.
3624 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3625 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3626 * linux-sh-low.cc (sh_breakpoint_at): Update.
3627 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3628 (sparc_store_gregset_from_stack): Update.
3629 (sparc_breakpoint_at): Update.
3630 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3631 * linux-tile-low.cc (tile_breakpoint_at): Update.
3632 * linux-x86-low.cc (x86_breakpoint_at): Update.
3633 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3634 * mem-brea.cc (insert_memory_breakpoint): Update.
3635 (validate_inserted_breakpoint): Update.
3636 * target.cc (read_inferior_memory): Update.
3637 (target_write_memory): Update.
3638 * linux-low.cc (linux_target_ops): Update.
3639 (linux_read_memory): Make a wrapper around the read_memory target
3640 op call.
3641 (linux_process_target::read_memory): Rename from linux_read_memory.
3642 (linux_write_memory): Turn into ...
3643 (linux_process_target::write_memory): ... this.
3644 * linux-low.h (class linux_process_target): Update.
3645 * lynx-low.cc (lynx_target_ops): Update.
3646 (lynx_read_memory): Turn into ...
3647 (lynx_process_target::read_memory): ... this.
3648 (lynx_write_memory): Turn into ...
3649 (lynx_process_target::write_memory): ... this.
3650 * lynx-low.h (class lynx_process_target): Update.
3651 * nto-low.cc (nto_target_ops): Update.
3652 (nto_read_memory): Turn into ...
3653 (nto_process_target::read_memory): ... this.
3654 (nto_write_memory): Turn into ...
3655 (nto_process_target::write_memory): ... this.
3656 * nto-low.h (class nto_process_target): Update.
3657 * win32-low.cc (win32_target_ops): Update.
3658 (win32_read_inferior_memory): Turn into ...
3659 (win32_process_target::read_memory): ... this.
3660 (win32_write_inferior_memory): Turn into ...
3661 (win32_process_target::write_memory): ... this.
3662 * win32-low.h (class win32_process_target): Update.
3663
79b44087
TBA
36642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3665
3666 Turn process_stratum_target's prepare_to_access_memory and
3667 done_accessing_memory ops into methods of process_target.
3668
3669 * target.h (struct process_stratum_target): Remove the target ops.
3670 (class process_target): Add the target ops.
3671 * target.cc (process_target::prepare_to_access_memory): Define.
3672 (process_target::done_accessing_memory): Define.
3673 (prepare_to_access_memory): Update.
3674 (done_accessing_memory): Update.
3675
3676 Update the derived classes and callers below.
3677
3678 * linux-low.cc (linux_target_ops): Update.
3679 (linux_prepare_to_access_memory): Turn into ...
3680 (linux_process_target::prepare_to_access_memory): ... this.
3681 (linux_done_accessing_memory): Turn into ...
3682 (linux_process_target::done_accessing_memory): ... this.
3683 * linux-low.h (class linux_process_target): Update.
3684 * lynx-low.cc (lynx_target_ops): Update.
3685 * nto-low.cc (nto_target_ops): Update.
3686 * win32-low.cc (win32_target_ops): Update.
3687
a5a4d4cd
TBA
36882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3689
3690 Turn process_stratum_target's fetch_registers and store_registers
3691 ops into methods of process_target.
3692
3693 * target.h (struct process_stratum_target): Remove the target ops.
3694 (class process_target): Add the target ops.
3695 (fetch_inferior_registers): Update the macro.
3696 (store_inferior_registers): Update the macro.
3697
3698 Update the derived classes and callers below.
3699
3700 * linux-low.cc (linux_target_ops): Update.
3701 (linux_fetch_registers): Turn into ...
3702 (linux_process_target::fetch_registers): ... this.
3703 (linux_store_registers): Turn into ...
3704 (linux_process_target::store_registers): ... this.
3705 * linux-low.h (class linux_process_target): Update.
3706 * lynx-low.cc (lynx_target_ops): Update.
3707 (lynx_fetch_registers): Turn into ...
3708 (lynx_process_target::fetch_registers): ... this.
3709 (lynx_store_registers): Turn into ...
3710 (lynx_process_target::store_registers): ... this.
3711 * lynx-low.h (class lynx_process_target): Update.
3712 * nto-low.cc (nto_target_ops): Update.
3713 (nto_fetch_registers): Turn into ...
3714 (nto_process_target::fetch_registers): ... this.
3715 (nto_store_registers): Turn into ...
3716 (nto_process_target::store_registers): ... this.
3717 * nto-low.h (class nto_process_target): Update.
3718 * win32-low.cc (win32_target_ops): Update.
3719 (win32_fetch_inferior_registers): Turn into ...
3720 (win32_process_target::fetch_registers): ... this.
3721 (win32_store_inferior_registers): Turn into ...
3722 (win32_process_target::store_registers): ... this.
3723 * win32-low.h (class win32_process_target): Update.
3724
6532e7e3
TBA
37252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3726
3727 Turn process_stratum_target's wait op into a method of
3728 process_target.
3729
3730 * target.h (struct process_stratum_target): Remove the target op.
3731 (class process_target): Add the target op.
3732
3733 Update the derived classes and callers below.
3734
3735 * target.cc (target_wait): Update.
3736 * linux-low.cc (linux_target_ops): Update.
3737 (linux_wait): Turn into ...
3738 (linux_process_target::wait): ... this.
3739 * linux-low.h (class linux_process_target): Update.
3740 * lynx-low.cc (lynx_target_ops): Update.
3741 (lynx_wait): Turn into ...
3742 (lynx_process_target::wait): ... this.
3743 * lynx-low.h (class lynx_process_target): Update.
3744 * nto-low.cc (nto_target_ops): Update.
3745 (nto_wait): Turn into ...
3746 (nto_process_target::wait): ... this.
3747 * nto-low.h (class nto_process_target): Update.
3748 * win32-low.cc (win32_target_ops): Update.
3749 (win32_wait): Turn into ...
3750 (win32_process_target::wait): ... this.
3751 (do_initial_child_stuff): Update.
3752 * win32-low.h (class win32_process_target): Update.
3753
0e4d7e35
TBA
37542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3755
3756 Turn process_stratum_target's resume op into a method of
3757 process_target.
3758
3759 * target.h (struct process_stratum_target): Remove the target op.
3760 (class process_target): Add the target op.
3761
3762 Update the derived classes and callers below.
3763
3764 * server.cc (resume): Update.
3765 * target.cc (target_stop_and_wait): Update.
3766 (target_continue_no_signal): Update.
3767 (target_continue): Update.
3768 * linux-low.cc (linux_target_ops): Update.
3769 (linux_resume): Turn into ...
3770 (linux_process_target::resume): ... this.
3771 * linux-low.h (class linux_process_target): Update.
3772 * lynx-low.cc (lynx_target_ops): Update.
3773 (lynx_resume): Turn into ...
3774 (lynx_process_target::resume): ... this.
3775 * lynx-low.h (class lynx_process_target): Update.
3776 * nto-low.cc (nto_target_ops): Update.
3777 (nto_resume): Turn into ...
3778 (nto_process_target::resume): ... this.
3779 * nto-low.h (class nto_process_target): Update.
3780 * win32-low.cc (win32_target_ops): Update.
3781 (win32_resume): Turn into ...
3782 (win32_process_target::resume): ... this.
3783 (win32_process_target::detach): Update.
3784 (do_initial_child_stuff): Update.
3785 * win32-low.h (class win32_process_target): Update.
3786
13d3d99b
TBA
37872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3788
3789 Turn process_stratum_target's thread_alive op into a method of
3790 process_target.
3791
3792 * target.h (struct process_stratum_target): Remove the target op.
3793 (class process_target): Add the target op.
3794 (mythread_alive): Update the macro.
3795
3796 Update the derived classes and callers below.
3797
3798 * linux-low.cc (linux_target_ops): Update.
3799 (linux_thread_alive): Turn into ...
3800 (linux_process_target::thread_alive): ... this.
3801 (wait_for_sigstop): Update.
3802 * linux-low.h (class linux_process_target): Update.
3803 * lynx-low.cc (lynx_target_ops): Update.
3804 (lynx_thread_alive): Turn into ...
3805 (lynx_process_target::thread_alive): ... this.
3806 * lynx-low.h (class lynx_process_target): Update.
3807 * nto-low.cc (nto_target_ops): Update.
3808 (nto_thread_alive): Turn into ...
3809 (nto_process_target::thread_alive): ... this.
3810 * nto-low.h (class nto_process_target): Update.
3811 * win32-low.cc (win32_target_ops): Update.
3812 (win32_thread_alive): Turn into ...
3813 (win32_process_target::thread_alive): ... this.
3814 * win32-low.h (class win32_process_target): Update.
3815
95a49a39
TBA
38162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3817
3818 Turn process_stratum_target's join op into a method of
3819 process_target.
3820
3821 * target.h (struct process_stratum_target): Remove the target op.
3822 (class process_target): Add the target op.
3823 (join_inferior): Update the macro.
3824
3825 Update the derived classes and callers below.
3826
3827 * linux-low.cc (linux_target_ops): Update.
3828 (linux_join): Turn into ...
3829 (linux_process_target::join): ... this.
3830 * linux-low.h (class linux_process_target): Update.
3831 * lynx-low.cc (lynx_target_ops): Update.
3832 (lynx_join): Turn into ...
3833 (lynx_process_target::join): ... this.
3834 * lynx-low.h (class lynx_process_target): Update.
3835 * nto-low.cc (nto_target_ops): Update.
3836 (nto_process_target::join): Define.
3837 * nto-low.h (class nto_process_target): Update.
3838 * win32-low.cc (win32_target_ops): Update.
3839 (win32_join): Turn into ...
3840 (win32_process_target::join): ... this.
3841 * win32-low.h (class win32_process_target): Update.
3842
8adb37b9
TBA
38432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3844
3845 Turn process_stratum_target's mourn op into a method of
3846 process_target.
3847
3848 * target.h (struct process_stratum_target): Remove the target op.
3849 (class process_target): Add the target op.
3850
3851 Update the derived classes and callers below.
3852
3853 * target.cc (target_mourn_inferior): Update.
3854 * linux-low.cc (linux_target_ops): Update.
3855 (linux_mourn): Turn into ...
3856 (linux_process_target::mourn): ... this.
3857 (handle_extended_wait): Update.
3858 (linux_process_target::kill): Update.
3859 (linux_process_target::detach): Update.
3860 * linux-low.h (class linux_process_target): Update.
3861 * lynx-low.cc (lynx_target_ops): Update.
3862 (lynx_mourn): Turn into ...
3863 (lynx_process_target::mourn): ... this.
3864 * lynx-low.h (class lynx_process_target): Update.
3865 * nto-low.cc (nto_target_ops): Update.
3866 (nto_mourn): Turn into ...
3867 (nto_process_target::mourn): ... this.
3868 * nto-low.h (class nto_process_target): Update.
3869 * win32-low.cc (win32_target_ops): Update.
3870 (win32_mourn): Turn into ...
3871 (win32_process_target::mourn): ... this.
3872 * win32-low.h (class win32_process_target): Update.
3873
9061c9cf
TBA
38742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3875
3876 Turn process_stratum_target's detach op into a method of
3877 process_target.
3878
3879 * target.h (struct process_stratum_target): Remove the target op.
3880 (class process_target): Add the target op.
3881 (detach_inferior): Update the macro.
3882
3883 Update the derived classes and callers below.
3884
3885 * linux-low.cc (linux_target_ops): Update.
3886 (linux_detach): Turn into ...
3887 (linux_process_target::detach): ... this.
3888 * linux-low.h (class linux_process_target): Update.
3889 * lynx-low.cc (lynx_target_ops): Update.
3890 (lynx_detach): Turn into ...
3891 (lynx_process_target::detach): ... this.
3892 * lynx-low.h (class lynx_process_target): Update.
3893 * nto-low.cc (nto_target_ops): Update.
3894 (nto_detach): Turn into ...
3895 (nto_process_target::detach): ... this.
3896 * nto-low.h (class nto_process_target): Update.
3897 * win32-low.cc (win32_target_ops): Update.
3898 (win32_detach): Turn into ...
3899 (win32_process_target::detach): ... this.
3900 * win32-low.h (class win32_process_target): Update.
3901
c6885a57
TBA
39022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3903
3904 Turn process_stratum_target's kill op into a method of
3905 process_target.
3906
3907 * target.h (struct process_stratum_target): Remove the target op.
3908 (class process_target): Add the target op.
3909
3910 Update the derived classes and callers below.
3911
3912 * target.cc (kill_inferior): Update.
3913 * linux-low.cc (linux_target_ops): Update.
3914 (linux_kill): Turn into ...
3915 (linux_process_target::kill): ... this.
3916 * linux-low.h (class linux_process_target): Update.
3917 * lynx-low.cc (lynx_target_ops): Update.
3918 (lynx_kill): Turn into ...
3919 (lynx_process_target::kill): ... this.
3920 * lynx-low.h (class lynx_process_target): Update.
3921 * nto-low.cc (nto_target_ops): Update.
3922 (nto_kill): Turn into ...
3923 (nto_process_target::kill): ... this.
3924 * nto-low.h (class nto_process_target): Update.
3925 * win32-low.cc (win32_target_ops): Update.
3926 (win32_kill): Turn into ...
3927 (win32_process_target::kill): ... this.
3928 * win32-low.h (class win32_process_target): Update.
3929
ef03dad8
TBA
39302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3931
3932 Turn process_stratum_target's attach op into a method of
3933 process_target.
3934
3935 * target.h (struct process_stratum_target): Remove the target op.
3936 (class process_target): Add the target op.
3937 (myattach): Update the macro.
3938
3939 Update the derived classes and callers below.
3940
3941 * linux-low.cc (linux_target_ops): Update.
3942 (linux_attach): Turn into ...
3943 (linux_process_target::attach): ... this.
3944 * linux-low.h (class linux_process_target): Update.
3945 * lynx-low.cc (lynx_target_ops): Update.
3946 (lynx_attach): Turn into ...
3947 (lynx_process_target::attach): ... this.
3948 * lynx-low.h (class lynx_process_target): Update.
3949 * nto-low.cc (nto_target_ops): Update.
3950 (nto_attach): Turn into ...
3951 (nto_process_target::attach): ... this.
3952 * nto-low.h (class nto_process_target): Update.
3953 * win32-low.cc (win32_target_ops): Update.
3954 (win32_attach): Turn into ...
3955 (win32_process_target::attach): ... this.
3956 * win32-low.h (class win32_process_target): Update.
3957
6dee9afb
TBA
39582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3959
3960 Turn process_stratum_target's post_create_inferior op into a method
3961 of process_target.
3962
3963 * target.h (struct process_stratum_target): Remove the target op.
3964 (class process_target): Add the target op.
3965 (target_post_create_inferior): Update the macro.
3966 * target.cc (process_target::post_create_inferior): Define.
3967
3968 Update the derived classes and callers below.
3969
3970 * linux-low.cc (linux_target_ops): Update.
3971 (linux_post_create_inferior): Turn into ...
3972 (linux_process_target::post_create_inferior): ... this.
3973 * linux-low.h (class linux_process_target): Update.
3974 * lynx-low.cc (lynx_target_ops): Update.
3975 * nto-low.cc (nto_target_ops): Update.
3976 * win32-low.cc (win32_target_ops): Update.
3977
15295543
TBA
39782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3979
3980 Turn process_stratum_target's create_inferior op into a method of
3981 process_target.
3982
3983 * target.h (struct process_stratum_target): Remove the target op.
3984 (class process_target): Add the target op.
3985 (create_inferior): Rename the macro to ...
3986 (target_create_inferior): ... this.
3987
3988 Update the derived classes and callers below.
3989
3990 * server.cc (handle_v_run): Update.
3991 (captured_main): Update.
3992 (process_serial_event): Update.
3993 * linux-low.cc (linux_target_ops): Update.
3994 (linux_create_inferior): Turn into ...
3995 (linux_process_target::create_inferior): ... this.
3996 * linux-low.h (class linux_process_target): Update.
3997 * lynx-low.cc (lynx_target_ops): Update.
3998 (lynx_create_inferior): Turn into ...
3999 (lynx_process_target::create_inferior): ... this.
4000 * lynx-low.h (class lynx_process_target): Update.
4001 * nto-low.cc (nto_target_ops): Update.
4002 (nto_create_inferior): Turn into ...
4003 (nto_process_target::create_inferior): ... this.
4004 * nto-low.h (class nto_process_target): Update.
4005 * win32-low.cc (win32_target_ops): Update.
4006 (win32_create_inferior): Turn into ...
4007 (win32_process_target::create_inferior): ... this.
4008 * win32-low.h (class win32_process_target): Update.
4009
5ef9273d
TBA
40102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4011
4012 * target.h (class process_target): New class definition.
4013 (struct process_stratum_target) <pt>: New field with type
4014 'process_target*'.
4015 * linux-low.h (class linux_process_target): Define as a derived
4016 class of 'process_target'.
4017 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4018 as the 'pt' field.
4019 * lynx-low.h (class lynx_process_target): Define as a derived
4020 class of 'process_target'.
4021 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4022 as the 'pt' field.
4023 * nto-low.h (class nto_process_target): Define as a derived
4024 class of 'process_target'.
4025 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4026 as the 'pt' field.
4027 * win32-low.h (class win32_process_target): Define as a derived
4028 class of 'process_target'.
4029 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4030 as the 'pt' field.
4031
9f1528a1
AB
40322020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4033
4034 * configure: Regenerate.
4035
bf84f706
MR
40362020-02-19 Maciej W. Rozycki <macro@wdc.com>
4037 Andrew Burgess <andrew.burgess@embecosm.com>
4038
4039 * linux-riscv-low.cc: New file.
4040 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4041 and nat/riscv-linux-tdesc.c.
4042 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4043 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4044 Define.
4045
1a627e7e
TT
40462020-02-14 Tom Tromey <tom@tromey.com>
4047
4048 * acinclude.m4: Don't include acx_configure_dir.m4.
4049 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4050 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4051 (all, install-only, uninstall, clean-info, clean)
4052 (maintainer-clean): Don't recurse.
4053 (subdir_do, all-lib): Remove.
4054 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4055 (GNULIB_H): Remove.
4056 (generated_files): Update.
4057 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4058 * configure: Rebuild.
4059 * configure.ac: Don't configure gnulib or libiberty.
4060 (GNULIB): Update.
4061
a9b34532
EZ
40622020-02-14 Eli Zaretskii <eliz@gnu.org>
4063
4064 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4065 preparing the command line for CreateProcess.
4066 (win32_create_inferior): Reflect the program name in debugging
4067 output that shows the process and its command line.
4068
feacfcac
SM
40692020-02-13 Simon Marchi <simon.marchi@efficios.com>
4070
4071 * Makefile.in: Rename source files from .c to .cc.
4072 * %.c: Rename to %.cc.
4073 * configure.ac: Rename server.c to server.cc.
4074 * configure: Re-generate.
4075
06b3c5bd
SM
40762020-02-13 Simon Marchi <simon.marchi@efficios.com>
4077
4078 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4079
052793ad
HD
40802020-02-12 Hannes Domani <ssbssa@yahoo.de>
4081
4082 * win32-low.c (win32_create_inferior): Set signal_pid.
4083
f20e3e82
MR
40842020-02-12 Maciej W. Rozycki <macro@wdc.com>
4085 Pedro Alves <palves@redhat.com>
4086
4087 Skip building gdbserver in a cross-configuration.
4088 * configure.srv: Set $gdbserver_host depending on whether $target
4089 is $host. Use $gdbserver_host instead of $host.
4090
8ddd8e0e
SM
40912020-02-11 Simon Marchi <simon.marchi@efficios.com>
4092
4093 * configure: Re-generate.
4094
898e7f60
SM
40952020-02-11 Simon Marchi <simon.marchi@efficios.com>
4096
4097 * configure: Re-generate.
4098
58df732b
SM
40992020-02-11 Simon Marchi <simon.marchi@efficios.com>
4100
4101 * acinclude.m4: Update warning.m4 path.
4102
7928d571
HD
41032020-02-09 Hannes Domani <ssbssa@yahoo.de>
4104
4105 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4106 (handle_exception): Set siginfo_er.
4107 (win32_xfer_siginfo): New function.
4108
919adfe8
TT
41092020-02-07 Tom Tromey <tom@tromey.com>
4110 Pedro Alves <palves@redhat.com>
4111
4112 * README: Update build documentation.
4113 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4114 host, not target.
4115 * configure.ac: Update paths.
4116 * configure: Rebuild.
4117 * acinclude.m4: Update paths.
4118 * Makefile.in: Update include paths.
4119 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4120 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4121 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4122 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4123 (%-generated.c): Update paths.
4124 * Move entire directory from ../gdb/gdbserver.
4125
287c844a
MR
41262020-01-29 Maciej W. Rozycki <macro@wdc.com>
4127
4128 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4129
548a204f
PFC
41302020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4131
4132 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4133 assignment instead of srv_linux_obj.
4134
a2236a08
HD
41352020-01-28 Hannes Domani <ssbssa@yahoo.de>
4136
4137 * server.c (handle_qxfer_libraries): Write segment-address with
4138 paddress.
4139
bdaed379
HD
41402020-01-24 Hannes Domani <ssbssa@yahoo.de>
4141
4142 * Makefile.in (install-strip): New target.
4143 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4144 * aclocal.m4: Regenerate.
4145 * configure: Regenerate.
4146 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4147
42cd72aa
MR
41482020-01-24 Maciej W. Rozycki <macro@wdc.com>
4149
4150 * Makefile.in (SFILES): Adjust paths to point to real files.
4151 (OBS): Move waitstatus.o to target/waitstatus.o.
4152 (TAGS): Transform paths appropriately.
4153 (%.o): Rename to...
4154 (nat/%.o): ... this pattern rule.
4155 (%.o): Rename to...
4156 (target/%.o): ... this pattern rule.
4157 * configure.srv: Adjust paths throughout to include nat/ prefix
4158 with the revant files.
4159 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4160 * configure: Regenerate.
4161
42ba50ec
MR
41622020-01-24 Maciej W. Rozycki <macro@wdc.com>
4163
4164 * Makefile.in (TAGS): Remove config files from the recipe.
4165
05ea2a05
TT
41662020-01-14 Tom Tromey <tom@tromey.com>
4167
4168 * configure: Rebuild.
4169 * configure.ac: Remove any checks that were added to common.m4.
4170 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4171 lib-link.m4.
4172
01027315
TT
41732020-01-14 Tom Tromey <tom@tromey.com>
4174
4175 * server.h: Include config.h.
4176 * gdbreplay.c: Include config.h.
4177 * configure: Rebuild.
4178 * configure.ac: Don't source common.host.
4179 * acinclude.m4: Update path.
4180 * Makefile.in (INCSUPPORT): New variable.
4181 (INCLUDE_CFLAGS): Add INCSUPPORT.
4182 (SFILES): Update paths.
4183 (version-generated.c): Update path to create-version.sh.
4184 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4185
b2ceabe8
TT
41862020-01-14 Tom Tromey <tom@tromey.com>
4187
4188 * configure.ac (LIBS): Use WIN32APILIBS.
4189 (USE_WIN32API): Don't define.
4190 * configure: Rebuild.
4191
25c51f71
TT
41922020-01-14 Tom Tromey <tom@tromey.com>
4193
4194 * configure: Rebuild.
4195
c0bd321d
SM
41962020-01-13 Simon Marchi <simon.marchi@efficios.com>
4197
4198 * Makefile.in (%-generated.c): Remove rule for files from
4199 regformats/i386.
4200
bb564c58
SM
42012020-01-13 Simon Marchi <simon.marchi@efficios.com>
4202
4203 * configure: Re-generate.
4204
6e37c371
SM
42052020-01-13 Simon Marchi <simon.marchi@efficios.com>
4206
4207 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4208 Define to static.
4209 * tracepoint.c (stop_tracing, flush_trace_buffer,
4210 about_to_request_buffer_space, get_trace_state_variable_value,
4211 set_trace_state_variable_value, gdb_collect): Add declaration.
4212
df4a0200
SM
42132020-01-13 Simon Marchi <simon.marchi@efficios.com>
4214
4215 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4216 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4217 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4218 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4219 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4220 static.
4221
89e94ec9
SM
42222020-01-13 Simon Marchi <simon.marchi@efficios.com>
4223
4224 * inferiors.c: Include gdbsupport/common-inferior.h.
4225
2552728a
SM
42262020-01-13 Simon Marchi <simon.marchi@efficios.com>
4227
4228 * hostio-errno.c: Include hostio.h.
4229
4025fa09
SM
42302020-01-13 Simon Marchi <simon.marchi@efficios.com>
4231
4232 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4233 prerequisite.
4234
c0b0a142
SM
42352020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4236
4237 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4238 * linux-arm-tdesc.h: Include arch/arm.h.
4239
bb1183e2
SM
42402020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4241
4242 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4243
f5df0b5f
SM
42442020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4245
4246 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4247 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4248
5b6d1e4f
PA
42492020-01-10 Pedro Alves <palves@redhat.com>
4250
4251 * fork-child.c (post_fork_inferior): Pass target down to
4252 startup_inferior.
4253 * inferiors.c (switch_to_thread): Add process_stratum_target
4254 parameter.
4255 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4256 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4257 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4258 * remote-utils.c (prepare_resume_reply): Pass the target to
4259 switch_to_thread.
4260 * target.c (the_target): Now a process_stratum_target.
4261 (done_accessing_memory): Pass the target to switch_to_thread.
4262 (set_target_ops): Ajust to use process_stratum_target.
4263 * target.h (struct target_ops): Rename to ...
4264 (struct process_stratum_target): ... this.
4265 (the_target, set_target_ops): Adjust.
4266 (prepare_to_access_memory): Adjust comment.
4267 * win32-low.c (child_xfer_memory): Adjust to use
4268 process_stratum_target.
4269 (win32_target_ops): Now a process_stratum_target.
4270
559e7e50
EZ
42712020-01-06 Eli Zaretskii <eliz@gnu.org>
4272 Pedro Alves <palves@redhat.com>
4273
4274 * win32-low.c (get_child_debug_event): Extract the fatal exception
4275 from the exit status and convert to the equivalent Posix signal
4276 number.
4277 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4278 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4279
48189bec
HD
42802020-01-01 Hannes Domani <ssbssa@yahoo.de>
4281
4282 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4283
5dd8bf88
JB
42842020-01-01 Joel Brobecker <brobecker@adacore.com>
4285
4286 * server.c (gdbserver_version): Change copyright year to 2020.
4287 * gdbreplay.c (gdbreplay_version): Likewise.
4288
0ad6b8ee
CB
42892019-12-19 Christian Biesinger <cbiesinger@google.com>
4290
4291 * configure: Regenerate.
4292 * configure.ac: Quote variable arguments of test.
4293
1ee7b812
BE
42942019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4295
4296 * Makefile.in: Fix build with GNU Make 3.81
4297
d9fa87f4
TT
42982019-12-16 Tom Tromey <tromey@adacore.com>
4299
4300 * server.c (get_exec_file): Constify result.
4301
ab7d13f0
CB
43022019-12-10 Christian Biesinger <cbiesinger@google.com>
4303
4304 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4305 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4306 * config.in: Regenerate.
4307 * configure: Regenerate.
4308 * configure.ac: Don't check for strerror.
4309 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4310 Call safe_strerror instead of strerror.
4311 * server.h (strerror): Remove this now-unnecessary declaration.
4312 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4313 strerror.
4314 (gdb_agent_helper_thread): Likewise.
4315 * utils.c (perror_with_name): Likewise.
4316
4da8c3a8
TT
43172019-11-26 Tom Tromey <tom@tromey.com>
4318
4319 * configure, config.in: Rebuild.
4320
21987b9c
TT
43212019-11-26 Tom Tromey <tom@tromey.com>
4322
4323 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4324 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4325 gdb_sigmask.
4326 * configure, config.in: Rebuild.
4327
5e030278
TT
43282019-11-26 Tom Tromey <tom@tromey.com>
4329
4330 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4331 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4332 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4333 * acinclude.m4: Include ax_pthread.m4.
4334 * config.in, configure: Rebuild.
4335
6d91ce9a
CB
43362019-11-26 Christian Biesinger <cbiesinger@google.com>
4337
4338 * debug.c (debug_set_output): Call safe_strerror instead of
4339 strerror.
4340 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4341 (linux_kill_one_lwp): Likewise.
4342 (linux_detach_one_lwp): Likewise.
4343 (linux_wait_for_event_filtered): Likewise.
4344 (store_register): Likewise.
4345 * lynx-low.c (lynx_attach): Likewise.
4346 * mem-break.c (insert_memory_breakpoint): Likewise.
4347 (remove_memory_breakpoint): Likewise.
4348 (delete_fast_tracepoint_jump): Likewise.
4349 (set_fast_tracepoint_jump): Likewise.
4350 (uninsert_fast_tracepoint_jumps_at): Likewise.
4351 (reinsert_fast_tracepoint_jumps_at): Likewise.
4352 * nto-low.c (nto_xfer_memory): Likewise.
4353 (nto_resume): Likewise.
4354
6cdd651f
LM
43552019-11-20 Luis Machado <luis.machado@linaro.org>
4356
4357 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4358 instead of register count.
4359 * tdesc.c (tdesc_contains_feature): New function.
4360 * tdesc.h (tdesc_contains_feature): New prototype.
4361
cd850b40
CB
43622019-11-15 Christian Biesinger <cbiesinger@google.com>
4363
4364 * Makefile.in: Add safe-strerror.c.
4365 * configure: Regenerate.
4366 * configure.ac: Don't source common.host.
4367
5abebf3c
CB
43682019-11-15 Christian Biesinger <cbiesinger@google.com>
4369
4370 * config.in: Regenerate.
4371 * configure: Regenerate.
4372
e06f3d6e
AB
43732019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4374
4375 * ax.c (ax_printf): Handle size_t_arg.
4376
ca3a04f6
CB
43772019-11-06 Christian Biesinger <cbiesinger@google.com>
4378
4379 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4380 * mi/mi-main.c (output_cores): Likewise.
4381 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4382 (linux_xfer_osdata_modules): Likewise.
4383 * remote.c (register_remote_support_xml): Likewise.
4384 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4385 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4386
e48f6033
CB
43872019-11-01 Christian Biesinger <cbiesinger@google.com>
4388
4389 * configure: Regenerate.
4390 * configure.ac: Remove check for strerror_r.
4391
e7e97a2e
CB
43922019-10-31 Christian Biesinger <cbiesinger@google.com>
4393
4394 * config.in: Regenerate.
4395 * configure: Regenerate.
4396 * configure.ac: Also check for strerror_r.
4397
75cafaa6
CB
43982019-10-31 Christian Biesinger <cbiesinger@google.com>
4399
4400 * ax.h (debug_agent): Remove duplicate declaration.
4401
30baf67b
TV
44022019-10-26 Tom de Vries <tdevries@suse.de>
4403
4404 * linux-aarch64-low.c: Fix typos in comments.
4405 * linux-arm-low.c: Same.
4406 * linux-low.c: Same.
4407 * linux-ppc-low.c: Same.
4408 * proc-service.c: Same.
4409 * regcache.h: Same.
4410 * server.c: Same.
4411 * tracepoint.c: Same.
4412 * win32-low.c: Same.
4413
52c64cf7
TT
44142019-10-25 Tom Tromey <tromey@adacore.com>
4415
4416 * utils.c (xstrdup): Remove.
4417
c12d372d
TT
44182019-10-23 Tom Tromey <tom@tromey.com>
4419
4420 * configure, config.in: Rebuild.
4421
4d0b984b
TT
44222019-10-23 Tom Tromey <tom@tromey.com>
4423
4424 * configure: Rebuild.
4425 * acinclude.m4: Use m4_include, not sinclude.
4426
c5adaa19
TT
44272019-10-17 Tom Tromey <tromey@adacore.com>
4428
4429 * configure: Rebuild.
4430 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4431 in AC_CONFIG_FILES invocation.
4432 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4433 invocation.
4434
fec4e896
CB
44352019-10-16 Christian Biesinger <cbiesinger@google.com>
4436
4437 * server.c: Include xml-builtin.h.
4438 (get_xml_features): Don't declare xml_builtins here.
4439
00975ff6
AB
44402019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4441
4442 * Makefile.in: Remove references to vec-ipa.o.
4443
0dc32745
AB
44442019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4445
4446 * Makefile.in: Remove references to vec.c.
4447
3e6ec53a
CB
44482019-10-02 Christian Biesinger <cbiesinger@google.com>
4449
4450 * server.c (server_waiting): Change to bool.
4451 (extended_protocol): Likewise.
4452 (response_needed): Likewise.
4453 (exit_requested): Likewise.
4454 (run_once): Likewise.
4455 (report_no_resumed): Likewise.
4456 (non_stop): Likewise.
4457 (disable_packet_vCont): Likewise.
4458 (disable_packet_Tthread): Likewise.
4459 (disable_packet_qC): Likewise.
4460 (disable_packet_qfThreadInfo): Likewise.
4461 (handle_general_set): Update.
4462 (handle_detach): Update.
4463 (handle_monitor_command): Update.
4464 (handle_query): Update.
4465 (captured_main): Update.
4466 (process_serial_event): Update.
4467 * server.h (server_waiting): Change to bool.
4468 (disable_packet_vCont): Likewise.
4469 (disable_packet_Tthread): Likewise.
4470 (disable_packet_qC): Likewise.
4471 (disable_packet_qfThreadInfo): Likewise.
4472 (run_once): Likewise.
4473 (non_stop): Likewise.
4474 * target.c (target_stop_and_wait): Update.
4475
80fd2826
TT
44762019-10-02 Tom Tromey <tromey@adacore.com>
4477
4478 * Makefile.in (SFILES): Add common-inferior.c.
4479 (OBS): Add common-inferior.o.
4480 * server.c (startup_with_shell): Don't define.
4481
46f29a9a
AB
44822019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4483
4484 * linux-low.c (linux_low_read_btrace): Update for change to
4485 std::vector.
4486
f9d949fb
CB
44872019-09-20 Christian Biesinger <cbiesinger@google.com>
4488
4489 * debug.c (debug_threads): Remove comment in favor of the header.
4490 * debug.h (using_threads): Add declaration.
4491 (debug_threads): Add comment.
4492 * linux-aarch64-low.c: Include debug.h and remove declaration of
4493 debug_threads.
4494 * nto-low.c: Likewise.
4495 * remote-utils.c: Likewise.
4496 * thread-db.c: Likewise.
4497
abf516c6
UW
44982019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4499
4500 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4501 and powerpc-cell64l-ipa.o.
4502 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4503 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4504 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4505 (spu*-*-*): Remove.
4506
4507 * spu-low.c: Remove file.
4508
4509 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4510 (parse_spufs_run): Remove.
4511 (ppc_get_pc): Remove Cell/B.E. support.
4512 (ppc_set_pc): Likewise.
4513 (ppc_breakpoint_at): Likewise.
4514 (ppc_arch_setup): Likewise.
4515 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4516 tdesc_powerpc_cell32l.
4517 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4518 or init_registers_powerpc_cell32l.
4519 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4520 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4521 or init_registers_powerpc_cell32l.
4522 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4523 (init_registers_powerpc_cell32l): Remove prototype.
4524 (init_registers_powerpc_cell64l): Likewise.
4525
4526 * target.h (struct target_ops): Remove qxfer_spu member.
4527 * server.c (handle_qxfer_spu): Remove.
4528 (qxfer_packets): Remove entry for "spu".
4529 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4530 * linux-low.c (SPUFS_MAGIC): Remove.
4531 (spu_enumerate_spu_ids): Remove.
4532 (linux_qxfer_spu): Remove.
4533 (linux_target_ops): Remove qxfer_spu member.
4534 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4535 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4536 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4537
2d41fa11
SDJ
45382019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4539
4540 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4541 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4542 * config.in: Regenerate.
4543 * configure: Regenerate.
4544
d59b55f0
TT
45452019-08-15 Tom Tromey <tromey@adacore.com>
4546
4547 * target.c (target_write_memory): Use gdb::byte_vector.
4548
4196ab2a
TT
45492019-08-15 Tom Tromey <tromey@adacore.com>
4550
4551 * tracepoint.c (write_inferior_data_pointer)
4552 (write_inferior_integer, write_inferior_int8)
4553 (write_inferior_uinteger, m_tracepoint_action_download)
4554 (r_tracepoint_action_download, x_tracepoint_action_download)
4555 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4556 (download_agent_expr, download_tracepoint_1)
4557 (download_trace_state_variables, upload_fast_traceframes): Update.
4558 * server.c (gdb_write_memory): Update.
4559 * remote-utils.c (relocate_instruction): Update.
4560 * proc-service.c (ps_pdwrite): Update.
4561 * mem-break.c (remove_memory_breakpoint)
4562 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4563 (uninsert_fast_tracepoint_jumps_at)
4564 (reinsert_fast_tracepoint_jumps_at): Update.
4565 * linux-x86-low.c (append_insns)
4566 (i386_install_fast_tracepoint_jump_pad)
4567 (amd64_write_goto_address, i386_write_goto_address): Update.
4568 * linux-s390-low.c (append_insns, s390_write_goto_address):
4569 Update.
4570 * linux-ppc-low.c (ppc_relocate_instruction)
4571 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4572 (ppc_write_goto_address): Update.
4573 * linux-aarch64-low.c (append_insns): Update.
4574 * target.h (struct target_ops): Update.
4575 (write_inferior_memory): Don't declare.
4576 * target.c (target_write_memory): Rename from
4577 write_inferior_memory. Remove old target_write_memory.
4578
c6778d00
TT
45792019-08-15 Tom Tromey <tromey@adacore.com>
4580
4581 * target.c (write_inferior_memory): Use std::vector.
4582
404f2902
FCE
45832019-08-06 Frank Ch. Eigler <fche@redhat.com>
4584
4585 PR build/24886
4586 * configure.ac: Drop enable-libmcheck support.
4587 * configure, config.in: Rebuild.
4588 * acinclude.m4: Don't include it.
4589
4c5aa8e0
AH
45902019-07-19 Alan Hayward <alan.hayward@arm.com>
4591
4592 * configure.srv: Remove Arm xml files.
4593
7cc17433
AH
45942019-07-19 Alan Hayward <alan.hayward@arm.com>
4595
4596 * configure.srv: Add new files. Remove xml generated files.
4597 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4598 registers.
4599 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4600 * linux-aarch32-tdesc.c: New file.
4601 * linux-aarch32-tdesc.h: New file.
4602 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4603 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4604 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4605 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4606 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4607 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4608 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4609 (arm_read_description): Call arm_linux_read_description.
4610 (initialize_low_arch): Don't init registers.
4611 * linux-arm-tdesc.c: New file.
4612 * linux-arm-tdesc.h: New file.
4613
166a82be
AH
46142019-07-10 Alan Hayward <alan.hayward@arm.com>
4615
4616 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4617 Move counter inside for.
4618 (arm_read_description): Check ptrace earlier.
4619 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4620
268a13a5
TT
46212019-07-09 Tom Tromey <tom@tromey.com>
4622
4623 * configure: Rebuild.
4624 * configure.ac: Change common to gdbsupport.
4625 * acinclude.m4: Change common to gdbsupport.
4626 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4627 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4628 common to gdbsupport.
4629 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4630 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4631 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4632 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4633 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4634 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4635 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4636 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4637 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4638 common to gdbsupport.
4639
350fab54
AH
46402019-07-04 Alan Hayward <alan.hayward@arm.com>
4641
4642 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4643 defines.
4644 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4645
2b40fda7
AH
46462019-07-04 Alan Hayward <alan.hayward@arm.com>
4647
4648 * configure.srv: Remove legacy xml.
4649 * linux-aarch64-low.c (initialize_low_arch): Remove
4650 initialize_low_tdesc call.
4651 * linux-aarch64-tdesc-selftest.c: Remove file.
4652 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4653 * linux-x86-low.c (initialize_low_arch): Remove
4654 initialize_low_tdesc call.
4655 * linux-x86-tdesc-selftest.c: Remove file.
4656 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4657
7d10623d
TV
46582019-06-20 Tom de Vries <tdevries@suse.de>
4659
4660 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4661 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4662
8d6a48df
TV
46632019-06-19 Tom de Vries <tdevries@suse.de>
4664
4665 * debug.h (debug_write): Change return type to ssize_t.
4666 * debug.c (debug_write): Same.
4667
73cc7272
TT
46682019-06-14 Tom Tromey <tom@tromey.com>
4669
4670 * configure.ac: Use new path to gnulib.
4671 * configure: Rebuild.
4672 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4673 to gnulib.
4674
08f10e02
TT
46752019-06-11 Tom Tromey <tom@tromey.com>
4676
4677 * Makefile.in (SFILES): Add alloc.c.
4678 (OBS): Add alloc.o.
4679 (IPA_OBJS): Add alloc-ipa.o.
4680 (alloc-ipa.o): New target.
4681 (%.o: ../%.c): New pattern rule.
4682
422186a9
TT
46832019-06-10 Tom Tromey <tromey@adacore.com>
4684
4685 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4686 end warning with a newline.
4687 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4688 newline.
4689 * thread-db.c (attach_thread): Don't end warning with a newline.
4690 (thread_db_notice_clone): Likewise.
4691 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4692 newline.
4693 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4694 end warning with a newline.
4695
b02f78f9
PA
46962019-06-04 Pedro Alves <palves@redhat.com>
4697
4698 * server.c (captured_main): Use make_unique_xstrdup.
4699
88ed7edb
TT
47002019-06-02 Tom Tromey <tom@tromey.com>
4701
4702 * gdbreplay.c (fromhex): Remove.
4703 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4704
33a6bc35
TT
47052019-05-29 Tom Tromey <tromey@adacore.com>
4706
4707 * configure: Rebuild.
4708
e90a813d
KB
47092019-05-06 Kevin Buettner <kevinb@redhat.com>
4710
4711 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4712 sign extension code on 32-bit builds.
4713
353ea2d1
EZ
47142019-05-03 Eli Zaretskii <eliz@gnu.org>
4715
4716 * remote-utils.c:
4717 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4718
b494cdff
TT
47192019-04-19 Tom Tromey <tom@tromey.com>
4720
4721 * server.c (struct vstop_notif): Derive from notif_event.
4722 <base>: Remove.
4723 (queue_stop_reply): Update.
4724 (remove_all_on_match_ptid): Change type. Rewrite.
4725 (discard_queued_stop_replies): Rewrite.
4726 (in_queued_stop_replies_ptid): Change type.
4727 (in_queued_stop_replies): Rewrite.
4728 (notif_stop): Update.
4729 (queue_stop_reply_callback): Update.
4730 (captured_main): Don't call initialize_notif.
4731 (push_stop_notification): Update.
4732 * notif.c (notif_write_event, handle_notif_ack)
4733 (notif_event_enque, notif_push): Update.
4734 (notif_event_xfree, initialize_notif): Remove.
4735 * notif.h (struct notif_event): Include <list>, not
4736 "common/queue.h".
4737 (struct notif_server) <queue>: Now a std::list.
4738 (notif_event_p): Remove typedef.
4739 (initialize_notif): Don't declare.
4740 (struct notif_event): Add virtual destructor.
4741
a7e559cc
AH
47422019-04-17 Alan Hayward <alan.hayward@arm.com>
4743
4744 * ax.c (ax_vdebug): Call debug_printf.
4745 * debug.c (debug_write): New function.
4746 * debug.h (debug_write): New declaration.
4747 * linux-low.c (sigchld_handler): Call debug_write.
4748
aeb2e706
AH
47492019-04-17 Alan Hayward <alan.hayward@arm.com>
4750
4751 * debug.c (debug_set_output): New function.
4752 (debug_vprintf): Send output to debug_file.
4753 (debug_flush): Likewise.
4754 * debug.h (debug_set_output): New declaration.
4755 * server.c (handle_monitor_command): Add debug-file option.
4756 (captured_main): Likewise.
4757
c1bc0935
AH
47582019-04-17 Alan Hayward <alan.hayward@arm.com>
4759
4760 * debug.c (remote_debug): Add definition.
4761 * debug.h (remote_debug): Add declaration.
4762 * hostio.c (remote_debug): Remove declaration.
4763 * remote-utils.c (struct ui_file): Likewise.
4764 (remote_debug): Likewise.
4765 * remote-utils.h (remote_debug): Likewise,
4766 * server.c (remote_debug): Remove definition.
4767
3f52fdbc
KB
47682019-04-10 Kevin Buettner <kevinb@redhat.com>
4769
4770 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4771 when using a 64-bit gdbserver.
4772
b0319eaa
TT
47732019-04-09 Tom Tromey <tromey@adacore.com>
4774
4775 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4776
eedc3f4f
TT
47772019-04-08 Tom Tromey <tom@tromey.com>
4778
4779 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4780 throw.
4781 (linux_resume_one_lwp): Likewise.
4782
230d2906
TT
47832019-04-08 Tom Tromey <tom@tromey.com>
4784
4785 * gdbreplay.c: Update.
4786 * linux-low.c: Update.
4787 * server.c: Update.
4788
a70b8144
TT
47892019-04-08 Tom Tromey <tom@tromey.com>
4790
4791 * server.c: Use C++ exception handling.
4792 * linux-low.c: Use C++ exception handling.
4793 * gdbreplay.c: Use C++ exception handling.
4794
3d6e9d23
TT
47952019-04-08 Tom Tromey <tom@tromey.com>
4796
4797 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4798 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4799 (captured_main, main): Update.
4800 * gdbreplay.c (main): Update.
4801
0570503d
PFC
48022019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4803
4804 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4805 value in argument pointer, return 1 if the entry is found and 0
4806 otherwise. Move comment.
4807 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4808 * linux-low.h (linux_get_auxv): Declare.
4809 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4810
227a9e65
TT
48112019-04-05 Tom Tromey <tromey@adacore.com>
4812
4813 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4814 variables.
4815
69f4c9cc
AH
48162019-03-28 Alan Hayward <alan.hayward@arm.com>
4817
4818 * linux-low.c (AT_HWCAP2): Add define if not already included.
4819
974c89e0
AH
48202019-03-26 Alan Hayward <alan.hayward@arm.com>
4821
4822 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4823 (aarch64_arch_setup): Call linux_get_hwcap.
4824 * linux-arm-low.c (arm_get_hwcap): Remove function.
4825 (arm_read_description): Call linux_get_hwcap.
4826 * linux-low.c (linux_get_auxv): New function.
4827 (linux_get_hwcap): Likewise.
4828 (linux_get_hwcap2): Likewise.
4829 * linux-low.h (linux_get_hwcap): New declaration.
4830 (linux_get_hwcap2): Likewise.
4831 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4832 (ppc_arch_setup): Call linux_get_hwcap.
4833 * linux-s390-low.c (s390_get_hwcap): Remove function.
4834 (s390_arch_setup): Call linux_get_hwcap.
4835
1ef53e6b
AH
48362019-03-22 Alan Hayward <alan.hayward@arm.com>
4837 Jiong Wang <jiong.wang@arm.com>
4838
4839 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4840 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4841 to fail.
4842 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4843
ee4fbcfa
AH
48442019-03-22 Alan Hayward <alan.hayward@arm.com>
4845 Jiong Wang <jiong.wang@arm.com>
4846
4847 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4848 (aarch64_get_hwcap): New function.
4849 (aarch64_arch_setup): Read APIA hwcap.
4850
6dc0ebde
AH
48512019-03-22 Alan Hayward <alan.hayward@arm.com>
4852 Jiong Wang <jiong.wang@arm.com>
4853
4854 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4855 (initialize_low_tracepoint): Likewise.
4856 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4857 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4858 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4859 (aarch64_linux_read_description): Likewise.
4860 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4861
1163a4b7
JB
48622019-03-12 John Baldwin <jhb@FreeBSD.org>
4863
4864 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4865 i386_create_target_description for 'segments' parameter.
4866 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4867 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4868 * win32-i386-low.c (i386_arch_setup): Likewise.
4869
d3a70e03
TT
48702019-03-12 Tom Tromey <tromey@adacore.com>
4871
4872 * linux-low.c (iterate_over_lwps): Update.
4873
37991b4f
TT
48742019-03-06 Tom Tromey <tom@tromey.com>
4875
4876 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4877 (captured_main): Use SCOPE_EXIT.
4878
45950eb6
SDJ
48792019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4880
4881 * configure.srv: Use '$enable_unittest' instead of '$development'
4882 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4883 case.
4884
43ac54fc
TT
48852019-02-27 Tom Tromey <tromey@adacore.com>
4886
4887 * gdbreplay.c (logchar): Handle \r\n.
4888
df0da8a2
AH
48892019-02-07 Alan Hayward <alan.hayward@arm.com>
4890
4891 * linux-low.c (linux_attach): Add process before lwp.
4892 * server.c (attach_inferior): Check if already attached.
4893
1a5c2598
TT
48942019-02-07 Tom Tromey <tom@tromey.com>
4895
4896 * x86-tdesc.h: Rename include guard.
4897 * x86-low.h: Add include guard.
4898 * wincecompat.h: Rename include guard.
4899 * win32-low.h: Add include guard.
4900 * utils.h: Rename include guard.
4901 * tracepoint.h: Rename include guard.
4902 * tdesc.h: Rename include guard.
4903 * target.h: Rename include guard.
4904 * server.h: Rename include guard.
4905 * remote-utils.h: Rename include guard.
4906 * regcache.h: Rename include guard.
4907 * nto-low.h: Rename include guard.
4908 * notif.h: Add include guard.
4909 * mem-break.h: Rename include guard.
4910 * lynx-low.h: Add include guard.
4911 * linux-x86-tdesc.h: Add include guard.
4912 * linux-s390-tdesc.h: Add include guard.
4913 * linux-ppc-tdesc-init.h: Add include guard.
4914 * linux-low.h: Add include guard.
4915 * linux-aarch64-tdesc.h: Add include guard.
4916 * linux-aarch32-low.h: Add include guard.
4917 * inferiors.h: Rename include guard.
4918 * i387-fp.h: Rename include guard.
4919 * hostio.h: Rename include guard.
4920 * gdbthread.h: Rename include guard.
4921 * gdb_proc_service.h: Rename include guard.
4922 * event-loop.h: Rename include guard.
4923 * dll.h: Rename include guard.
4924 * debug.h: Rename include guard.
4925 * ax.h: Rename include guard.
4926
956cc47c
SN
49272018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4928
4929 PR gdb/23985
4930 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4931 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4932
a0707f3c
TT
49332019-01-25 Tom Tromey <tom@tromey.com>
4934
4935 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4936
0747795c
TT
49372019-01-25 Tom Tromey <tom@tromey.com>
4938
4939 * win32-low.c: Fix common/ includes.
4940 * win32-i386-low.c: Fix common/ includes.
4941 * tracepoint.c: Fix common/ includes.
4942 * thread-db.c: Fix common/ includes.
4943 * target.h: Fix common/ includes.
4944 * symbol.c: Fix common/ includes.
4945 * spu-low.c: Fix common/ includes.
4946 * server.h: Fix common/ includes.
4947 * server.c: Fix common/ includes.
4948 * remote-utils.c: Fix common/ includes.
4949 * regcache.h: Fix common/ includes.
4950 * regcache.c: Fix common/ includes.
4951 * nto-x86-low.c: Fix common/ includes.
4952 * notif.h: Fix common/ includes.
4953 * mem-break.h: Fix common/ includes.
4954 * lynx-low.c: Fix common/ includes.
4955 * lynx-i386-low.c: Fix common/ includes.
4956 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4957 * linux-x86-low.c: Fix common/ includes.
4958 * linux-low.c: Fix common/ includes.
4959 * inferiors.h: Fix common/ includes.
4960 * i387-fp.c: Fix common/ includes.
4961 * hostio.c: Fix common/ includes.
4962 * hostio-errno.c: Fix common/ includes.
4963 * gdbthread.h: Fix common/ includes.
4964 * gdbreplay.c: Fix common/ includes.
4965 * fork-child.c: Fix common/ includes.
4966 * event-loop.c: Fix common/ includes.
4967 * ax.c:
4968 (enum gdb_agent_op): Fix common/ includes.
4969
be6d4f74
TT
49702019-01-21 Tom Tromey <tom@tromey.com>
4971
4972 * tracepoint.c: Fix includes.
4973 * remote-utils.c: Fix includes.
4974 * linux-x86-low.c: Fix includes.
4975
66d91b39
JB
49762019-01-01 Joel Brobecker <brobecker@adacore.com>
4977
4978 * gdbreplay.c (gdbreplay_version): Update copyright year in
4979 version message.
4980 * server.c (gdbserver_version): Likewise.
4981
754e3168
AH
49822018-12-05 Alan Hayward <alan.hayward@arm.com>
4983
4984 * linux-low.c (add_lwp): Switch ordering.
4985
d105de22
TT
49862018-11-29 Tom Tromey <tom@tromey.com>
4987
4988 * win32-low.c (win32_join): Take pid, not process.
4989 * target.h (struct target_ops) <join>: Change argument type.
4990 (join_inferior): Change argument name.
4991 * spu-low.c (spu_join): Take pid, not process.
4992 * server.c (handle_detach): Preserve pid before destroying
4993 process.
4994 * lynx-low.c (lynx_join): Take pid, not process.
4995 * linux-low.c (linux_join): Take pid, not process.
4996
50138245
AH
49972018-11-23 Alan Hayward <alan.hayward@arm.com>
4998
4999 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5000 (aarch64_cannot_fetch_register): Likewise.
5001 (struct linux_target_ops): Update references.
5002
64f57f3d
PFC
50032018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5004
5005 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5006
8d619c01
EBM
50072018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5008
5009 * configure.srv (ipa_ppc_linux_regobj): Add
5010 powerpc-isa207-htm-vsx32l-ipa.o and
5011 powerpc-isa207-htm-vsx64l-ipa.o.
5012 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5013 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5014 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5015 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5016 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5017 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5018 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5019 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5020 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5021 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5022 (init_registers_powerpc_isa207_htm_vsx32l)
5023 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5024 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5025 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5026 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5027 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5028 (ppc_store_tm_ctarregset): New functions.
5029 (ppc_regsets): Add entries for HTM regsets.
5030 (ppc_arch_setup): Set htm in features struct when needed. Set
5031 sizes for the HTM regsets.
5032 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5033 (initialize_low_arch): Call
5034 init_registers_powerpc_isa207_htm_vsx32l and
5035 init_registers_powerpc_isa207_htm_vsx64l.
5036 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5037 PPC_TDESC_ISA207_HTM_VSX.
5038 (initialize_low_tracepoint): Call
5039 init_registers_powerpc_isa207_htm_vsx32l and
5040 init_registers_powerpc_isa207_htm_vsx64l.
5041
232bfb86
EBM
50422018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5043
5044 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5045 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5046 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5047 (ppc_store_pmuregset): New functions.
5048 (ppc_regsets): Add entries for ebb and pmu regsets.
5049 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5050 pmu regsets are available. Set sizes for these regsets.
5051
f2cf6173
EBM
50522018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5053
5054 * configure.srv (ipa_ppc_linux_regobj): Add
5055 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5056 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5057 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5058 rs6000/powerpc-isa207-vsx32l.xml, and
5059 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5060 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5061 <PPC_TDESC_ISA207_VSX>: New enum value.
5062 (init_registers_powerpc_isa207_vsx32l): Declare.
5063 (init_registers_powerpc_isa207_vsx64l): Declare.
5064 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5065 (ppc_store_tarregset): New function.
5066 (ppc_regsets): Add entry for the TAR regset.
5067 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5068 size for the TAR regsets.
5069 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5070 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5071 and init_registers_powerpc_isa207_vsx64l.
5072 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5073 (initialize_low_tracepoint): Call
5074 init_registers_powerpc_isa207_vsx32l and
5075 init_registers_powerpc_isa207_vsx64l.
5076
7ca18ed6
EBM
50772018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5078 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5079
5080 * configure.srv (ipa_ppc_linux_regobj): Add
5081 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5082 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5083 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5084 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5085 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5086 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5087 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5088 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5089 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5090 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5091 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5092 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5093 (ppc_hwcap): Add comment.
5094 (ppc_hwcap2): New global.
5095 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5096 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5097 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5098 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5099 when needed. Set sizes for the the DSCR and PPR regsets.
5100 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5101 (initialize_low_arch): Call
5102 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5103 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5104 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5105 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5106 (initialize_low_tracepoint): Call
5107 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5108 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5109
5c849b22
PFC
51102018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5111
5112 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5113
8ecfd7bd
SDJ
51142018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5115 Simon Marchi <simark@simark.ca>
5116
5117 * acinclude.m4: Include "../selftest.m4".
5118 * configure: Regenerate.
5119 * configure.ac: Use "GDB_AC_SELFTEST".
5120 * configure.srv: Use "$enable_unittests" instead of
5121 "$development" when checking whether unit tests have been
5122 enabled.
5123 * server.c (captured_main): Update message informing that
5124 selftests have been disabled.
5125
96643e35
TT
51262018-10-04 Tom Tromey <tom@tromey.com>
5127
5128 * configure: Rebuild.
5129
da4ae14a
TT
51302018-10-04 Tom Tromey <tom@tromey.com>
5131
5132 * server.c (handle_status): Rename inner "thread".
5133 (process_serial_event): Declare "res" in 'm' case.
5134 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5135 (iterate_over_lwps): Rename inner "thread".
5136 (linux_qxfer_libraries_svr4): Rename inner "len".
5137 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5138
7c619dbd
GB
51392018-10-01 Gary Benson <gbenson@redhat.com>
5140
5141 * gdb_proc_service.h: Moved common code to
5142 common/gdb_proc_service.h.
5143
3795e814
GB
51442018-10-01 Gary Benson <gbenson@redhat.com>
5145
5146 * gdb_proc_service.h: Synchronize comments and whitespace with
5147 GDB's version of this file.
5148
49b036f1
TT
51492018-09-25 Tom Tromey <tom@tromey.com>
5150
5151 * configure: Rebuild.
5152 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5153
8ff03f0b
SM
51542018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5155
5156 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5157 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5158 ($(IPA_LIB)): Sort IPA_OBJS.
5159
a1cd91dc
SM
51602018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5161
5162 * Makefile.in: Remove references to $(ADD_DEPS).
5163
752312ba
TT
51642018-09-16 Tom Tromey <tom@tromey.com>
5165
5166 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5167 variables.
5168 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5169 variables.
5170
f1628857
TT
51712018-09-05 Tom Tromey <tom@tromey.com>
5172
5173 * configure: Rebuild.
5174
ad202fcc
SM
51752018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5176
5177 PR build/23399
5178 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5179
d3d8724a
TT
51802018-08-27 Tom Tromey <tom@tromey.com>
5181
5182 PR build/23087:
5183 * configure: Rebuild.
5184
b4f183d2
TT
51852018-08-27 Tom Tromey <tom@tromey.com>
5186
5187 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5188 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5189 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5190 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5191 (s390x_emit_stack_adjust): Add casts to unsigned char.
5192
4e2aa472
SM
51932018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5194
5195 PR gdb/23374
5196 PR gdb/23375
5197 * server.h (struct client_state) <disable_randomization>:
5198 Initialize to 1.
5199
cf4088a9
SM
52002018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5201
5202 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5203 variable.
5204 (mips_supply_ptrace_register): Likewise.
5205
a0de763e
TT
52062018-07-22 Tom Tromey <tom@tromey.com>
5207
5208 * configure: Rebuild.
5209
b0a7723d
TT
52102018-07-22 Tom Tromey <tom@tromey.com>
5211
5212 * win32-low.c (win32_create_inferior): Remove unused variables.
5213 * gdbreplay.c (remote_open): Remove unused variable.
5214 * remote-utils.c (remote_prepare): Remove unused variable.
5215 * x86-tdesc.h (X86_TDESC_H): Define.
5216 (amd64_expedite_regs): Define conditionally.
5217 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5218 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5219 * remote-utils.c (readchar): Remove unused variable.
5220
a780ef4f
PA
52212018-07-13 Pedro Alves <palves@redhat.com>
5222
5223 * linux-low.c (linux_kill): Change parameter to process_info
5224 pointer instead of pid. Adjust.
5225 * lynx-low.c (lynx_kill): Likewise.
5226 * nto-low.c (nto_kill): Likewise.
5227 * spu-low.c (spu_kill): Likewise.
5228 * win32-low.c (win32_kill): Likewise.
5229 * server.c (handle_v_kill, kill_inferior_callback)
5230 (detach_or_kill_for_exit): Adjust.
5231 * target.c (kill_inferior): Change parameter to process_info
5232 pointer instead of pid. Adjust.
5233 * target.h (struct target_ops) <kill>: Change parameter to
5234 process_info pointer instead of pid. Adjust all implementations
5235 and callers.
5236 (kill_inferior): Likewise.
5237
ef2ddb33
PA
52382018-07-13 Pedro Alves <palves@redhat.com>
5239
5240 * linux-low.c (linux_detach, linux_join): Change parameter to
5241 process_info pointer instead of pid. Adjust.
5242 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5243 * nto-low.c (nto_detach): Likewise.
5244 * spu-low.c (spu_detach, spu_join): Likewise.
5245 * win32-low.c (win32_detach, win32_join): Likewise.
5246 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5247 * target.h (struct target_ops) <detach, join>: Change parameter to
5248 process_info pointer instead of pid. Adjust all implementations
5249 and callers.
5250 (detach_inferior, join_inferior): Rename 'pid' parameter to
5251 'proc'.
5252
c7ab0aef
SDJ
52532018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5254 Jan Kratochvil <jan.kratochvil@redhat.com>
5255 Paul Fertser <fercerpav@gmail.com>
5256 Tsutomu Seki <sekiriki@gmail.com>
5257
5258 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5259 (OBS): Add 'common/netstuff.o'.
5260 (GDBREPLAY_OBS): Likewise.
5261 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5262 (remote_open): Implement support for IPv6
5263 connections.
5264 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5265 and 'wspiapi.h'.
5266 (handle_accept_event): Accept connections from IPv6 sources.
5267 (remote_prepare): Handle IPv6-style hostnames; implement
5268 support for IPv6 connections.
5269 (remote_open): Implement support for printing connections from
5270 IPv6 sources.
5271
31445d10
PA
52722018-07-11 Pedro Alves <palves@redhat.com>
5273
5274 PR gdb/23377
5275 * mem-break.c (any_persistent_commands): Add process_info
5276 parameter and use it instead of relying on the current process.
5277 Change return type to bool.
5278 * mem-break.h (any_persistent_commands): Add process_info
5279 parameter and change return type to bool.
5280 * server.c (handle_detach): Remove require_running_or_return call.
5281 Look up the process_info for the process we're about to detach.
5282 If not found, return back error to GDB. Adjust
5283 any_persistent_commands call to pass down a process pointer.
5284
cb197132
PA
52852018-07-11 Pedro Alves <palves@redhat.com>
5286
5287 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5288 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5289 instead of collect_register_by_name.
5290 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5291 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5292
1b919490
VB
52932018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5294 Pedro Alves <palves@redhat.com>
5295
5296 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5297
d7e15655
TT
52982018-07-03 Tom Tromey <tom@tromey.com>
5299
5300 * linux-low.c: Update.
5301 * lynx-low.c: Update.
5302 * mem-break.c: Update.
5303 * nto-low.c: Update.
5304 * remote-utils.c: Update.
5305 * server.c: Update.
5306 * spu-low.c: Update.
5307 * target.c: Update.
5308 * win32-low.c: Update.
5309
26a57c92
TT
53102018-07-03 Tom Tromey <tom@tromey.com>
5311
5312 * server.c: Update.
5313
0e998d96
TT
53142018-07-03 Tom Tromey <tom@tromey.com>
5315
5316 * linux-low.c: Update.
5317
cc6bcb54
TT
53182018-07-03 Tom Tromey <tom@tromey.com>
5319
5320 * target.c: Update.
5321
e38504b3
TT
53222018-07-03 Tom Tromey <tom@tromey.com>
5323
5324 * linux-low.c: Update.
5325 * linux-mips-low.c: Update.
5326 * lynx-low.c: Update.
5327 * nto-low.c: Update.
5328 * remote-utils.c: Update.
5329 * server.c: Update.
5330 * spu-low.c: Update.
5331 * target.c: Update.
5332 * thread-db.c: Update.
5333
e99b03dc
TT
53342018-07-03 Tom Tromey <tom@tromey.com>
5335
5336 * linux-low.c: Update.
5337 * linux-mips-low.c: Update.
5338 * lynx-low.c: Update.
5339 * mem-break.c: Update.
5340 * nto-low.c: Update.
5341 * remote-utils.c: Update.
5342 * server.c: Update.
5343 * spu-low.c: Update.
5344 * target.c: Update.
5345 * tracepoint.c: Update.
5346
f2907e49
TT
53472018-07-03 Tom Tromey <tom@tromey.com>
5348
5349 * linux-low.c: Update.
5350 * linux-ppc-low.c: Update.
5351 * linux-x86-low.c: Update.
5352 * proc-service.c: Update.
5353 * server.c: Update.
5354 * spu-low.c: Update.
5355 * thread-db.c: Update.
5356 * win32-low.c: Update.
5357
fd79271b
TT
53582018-07-03 Tom Tromey <tom@tromey.com>
5359
5360 * linux-low.c: Update.
5361 * lynx-low.c: Update.
5362 * nto-low.c: Update.
5363 * remote-utils.c: Update.
5364 * spu-low.c: Update.
5365 * thread-db.c: Update.
5366 * win32-low.c: Update.
5367
c0867626
SDJ
53682018-06-29 Joel Brobecker <brobecker@adacore.com>
5369
5370 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5371 parameter in call to 'amd64_create_target_description'.
5372
2512d7ef
JK
53732018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5374
5375 * x86-tdesc.h: Remove executable permission flag.
5376
d0ac1c44
SM
53772018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5378
5379 * configure.ac: Remove AC_PREREQ, add missing quoting.
5380 * configure: Re-generate.
5381 * config.in: Re-generate.
5382 * aclocal.m4: Re-generate.
5383
c4eb05ff
SM
53842018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5385
5386 * tracepoint.h (current_traceframe): Remove declaration.
5387
02895270
AH
53882018-06-18 Alan Hayward <alan.hayward@arm.com>
5389
5390 * linux-aarch64-low.c (is_sve_tdesc): New function.
5391 (aarch64_sve_regs_copy_to_regcache): Likewise.
5392 (aarch64_sve_regs_copy_from_regcache): Likewise.
5393 (aarch64_regs_info): Add SVE checks.
5394 (initialize_low_arch): Initialize SVE.
5395
e9902bfc
AH
53962018-06-18 Alan Hayward <alan.hayward@arm.com>
5397
5398 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5399
fefa175e
AH
54002018-06-11 Alan Hayward <alan.hayward@arm.com>
5401
5402 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5403 (initialize_low_tracepoint): Likewise
5404 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5405 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5406 param.
5407 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5408 checks.
5409 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5410
b91ad3ff
AH
54112018-06-11 Alan Hayward <alan.hayward@arm.com>
5412
5413 * server.h (PBUFSIZ): Increase size
5414
f868386e
AH
54152018-06-11 Alan Hayward <alan.hayward@arm.com>
5416
5417 * regcache.c (regcache::raw_compare): New function.
5418 * regcache.h (regcache::raw_compare): New declaration.
5419
9c861883
AH
54202018-06-11 Alan Hayward <alan.hayward@arm.com>
5421
5422 * regcache.c (new_register_cache): Use new.
5423 (free_register_cache): Use delete.
5424 (register_data): Use const.
5425 (supply_register): Move body inside regcache.
5426 (regcache::raw_supply): New override function.
5427 (collect_register): Move body inside regcache.
5428 (regcache::raw_collect): New override function.
5429 (regcache::get_register_status): New override function.
5430 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5431
40591844
TT
54322018-06-09 Tom Tromey <tom@tromey.com>
5433
5434 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5435 declare queue.
5436 (event_queue): Use std::queue.
5437 (gdb_event_xfree): Remove.
5438 (initialize_event_loop, process_event, wait_for_event): Update.
5439
6341380d
SC
54402018-06-08 Stan Cox <scox@redhat.com>
5441
5442 * win32-low.c (win32_create_inferior): last_ptid and last_status
5443 moved to client_state.
5444
03349c93
PA
54452018-06-08 Pedro Alves <palves@redhat.com>
5446
5447 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5448 common/common-exceptions.o, common/common-utils.o,
5449 common/errors.o, common/print-utils.o and utils.o.
5450 * gdbreplay.c: Include "common-defs.h" instead of the two
5451 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5452 string.h or alloca.h.
5453 (perror_with_name): Delete.
5454 (remote_open): Use xstrdup instead of strdup.
5455 (main): Rename to ...
5456 (captured_main): ... this.
5457 (main): New.
5458
8dcc53b3
TT
54592018-06-08 Tom Tromey <tom@tromey.com>
5460
5461 * linux-low.c (linux_low_read_btrace): Update.
5462
c12a5089
SC
54632018-06-04 Stan Cox <scox@redhat.com>
5464
5465 * server.h (struct client_state): New.
5466 * server.c (cont_thread, general_thread, multi_process)
5467 (report_fork_events, report_vfork_events, report_exec_events)
5468 (report_thread_events, swbreak_feature, hwbreak_feature)
5469 (vCont_supported, disable_randomization, pass_signals)
5470 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5471 Moved to client_state.
5472 * remote-utils.c (remote_debug, noack_mode)
5473 (transport_is_reliable): Moved to client_state.
5474 * tracepoint.c (current_traceframe): Moved to client_state.
5475
5476 Update all callers.
5477 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5478 linux-low.c, remote-utils.h, target.c: Use client_state.
5479
122394f1
AH
54802018-05-31 Alan Hayward <alan.hayward@arm.com>
5481
5482 * configure.srv: Add new c/h file.
5483
95228a0d
AH
54842018-05-31 Alan Hayward <alan.hayward@arm.com>
5485
5486 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5487 null VQ.
5488
d8dab6c3
MR
54892018-05-25 Maciej W. Rozycki <macro@mips.com>
5490
5491 * gdb.arch/mips-fpregset-core.exp: New test.
5492 * gdb.arch/mips-fpregset-core.c: New test source.
5493
81e25b7c
EK
54942018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5495
5496 PR server/23198
5497 * hostio.c (require_int): Do not report overflow for integers
5498 between 0xfffffff and 0x7fffffff.
5499
7e947ad3
MR
55002018-05-22 Maciej W. Rozycki <macro@mips.com>
5501
5502 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5503 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5504 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5505 functions.
5506 (the_low_target): Wire them.
5507
1d75a658
PFC
55082018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5509
5510 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5511 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5512 mode. Call collect_register_by_name with vscr using
5513 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5514 (ppc_store_vrregset): Add and set vscr_offset variable as in
5515 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5516 vscr_offset.
5517
d078308a
PFC
55182018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5519
5520 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5521 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5522 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5523
7273b5fc
PFC
55242018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5525
5526 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5527 (ppc_store_vsxregset): Likewise.
5528 (ppc_fill_vrregset): Likewise.
5529 (ppc_store_vrregset): Likewise.
5530 (ppc_fill_evrregset): Likewise.
5531 (ppc_store_evrregset): Likewise.
5532 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5533 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5534 needed.
5535
2e077f5e
PFC
55362018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5537
5538 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5539 wordsize of the inferior. Call ppc_linux_target_wordsize.
5540
bd64614e
PFC
55412018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5542
5543 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5544 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5545 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5546 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5547 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5548 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5549 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5550 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5551 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5552 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5553 (tdesc_powerpc_e500l): Remove.
5554 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5555 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5556 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5557 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5558 linux-ppc-tdesc.h.
5559 (ppc_arch_setup): Remove target description matching code. Fill a
5560 ppc_linux_features struct and call ppc_linux_match_description
5561 with it.
5562
75d74cca
MR
55632018-05-22 Maciej W. Rozycki <macro@mips.com>
5564
5565 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5566 width of the requested register exceeds the width of the
5567 `ptrace' data type.
5568 (mips_cannot_store_register): Likewise.
5569
e4439e43
MR
55702018-05-21 Maciej W. Rozycki <macro@mips.com>
5571
5572 * linux-mips-low.c (mips_fetch_register): New function. Update
5573 preceding comment.
5574 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5575 (the_low_target): Wire `mips_fetch_register'.
5576
55271bf9
JB
55772018-05-10 Joel Brobecker <brobecker@adacore.com>
5578
5579 * lynx-i386-low.c (LYNXOS_178): New macro.
5580 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5581 the layout on LynxOS-178.
5582 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5583 handle floating point registers that are not supported by
5584 LynxOS-178.
5585
1a34f210
TT
55862018-05-10 Tom Tromey <tom@tromey.com>
5587
5588 * configure: Rebuild.
5589
190852c8
JB
55902018-05-10 Joel Brobecker <brobecker@adacore.com>
5591
5592 PR server/23158:
5593 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5594 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5595 Use it to set the expedite_regs field in the given tdesc.
5596 * x86-tdesc.h: New file.
5597 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5598 Adjust following the addition of the new expedite_regs parameter
5599 to init_target_desc.
5600 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5601 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5602 (i386_linux_read_description, amd64_linux_read_description):
5603 Adjust following the addition of the new expedite_regs parameter
5604 to init_target_desc.
5605 * lynx-i386-low.c: #include "x86-tdesc.h".
5606 (lynx_i386_arch_setup): Adjust following the addition of the new
5607 expedite_regs parameter to init_target_desc.
5608 * nto-x86-low.c: #include "x86-tdesc.h".
5609 (nto_x86_arch_setup): Adjust following the addition of the new
5610 expedite_regs parameter to init_target_desc.
5611 * win32-i386-low.c: #include "x86-tdesc.h".
5612 (i386_arch_setup): Adjust following the addition of the new
5613 expedite_regs parameter to init_target_desc.
5614
7dbac825
JB
56152018-05-10 Joel Brobecker <brobecker@adacore.com>
5616
5617 PR server/23158:
5618 * win32-low.c (win32_create_inferior): Add call to my_wait
5619 setting last_status global.
5620
906994d9
JB
56212018-05-10 Joel Brobecker <brobecker@adacore.com>
5622
5623 PR server/23158:
5624 * win32-low.c (create_process): Only call gdb_tilde_expand if
5625 inferior_cwd is not NULL.
5626
8ee22052
AB
56272018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5628
5629 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5630 registers to the cache if their values have changed.
5631 (i387_xsave_to_cache): Provide default values for x87 control
5632 registers when these features are available, but disabled.
5633 * regcache.c (supply_register_by_name_zeroed): New function.
5634 * regcache.h (supply_register_by_name_zeroed): Declare new
5635 function.
5636
aff689d3
TT
56372018-05-07 Tom Tromey <tom@tromey.com>
5638
5639 * configure: Rebuild.
5640
85e26832
TT
56412018-05-04 Tom Tromey <tom@tromey.com>
5642
5643 * configure: Rebuild.
5644
a3b60e45
JK
56452018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5646 Pedro Alves <palves@redhat.com>
5647
5648 * linux-aarch64-low.c (aarch64_stopped_data_address):
5649 Likewise.
5650
632e107b
TT
56512018-04-27 Tom Tromey <tom@tromey.com>
5652
5653 * configure: Rebuild.
5654
458412c3
TT
56552018-04-23 Tom Tromey <tom@tromey.com>
5656
5657 * configure: Rebuild.
5658
f31c089e
SM
56592018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5660
5661 * Makefile.in (depcomp): Add "..".
5662 (all_deps_files): New and use it.
5663
b319b098
AH
56642018-04-18 Alan Hayward <alan.hayward@arm.com>
5665
5666 * configure.srv (aarch64*-*-linux*): Don't include xml.
5667 (i[34567]86-*-cygwin*): Likewise.
5668 (i[34567]86-*-linux*): Likewise.
5669 (i[34567]86-*-lynxos*): Likewise.
5670 (i[34567]86-*-mingw32ce*): Likewise.
5671 (i[34567]86-*-mingw*): Likewise.
5672 (i[34567]86-*-nto*): Likewise.
5673 (tic6x-*-uclinux): Likewise.
5674 (x86_64-*-linux*): Likewise.
5675 (x86_64-*-mingw*): Likewise.
5676 (x86_64-*-cygwin*): Likewise.
5677
3b74854b
AH
56782018-04-18 Alan Hayward <alan.hayward@arm.com>
5679
5680 * tdesc.c: Remove xml parameter.
5681
e98577a9
AH
56822018-04-18 Alan Hayward <alan.hayward@arm.com>
5683
5684 * server.c (get_features_xml): Remove cast.
5685 * tdesc.c (void target_desc::accept): Fill in function.
5686 (tdesc_get_features_xml): Remove old xml creation.
5687 (print_xml_feature::visit_pre): Add xml vistor.
5688 * tdesc.h (struct target_desc): Make xmltarget mutable.
5689 (tdesc_get_features_xml): Remove declaration.
5690
d278f585
AH
56912018-04-18 Alan Hayward <alan.hayward@arm.com>
5692
5693 * tdesc.c (tdesc_architecture_name): Add new function.
5694 (tdesc_osabi_name): Likewise.
5695 (tdesc_get_features_xml): Use new functions.
5696
eee8a18d
AH
56972018-04-18 Alan Hayward <alan.hayward@arm.com>
5698
5699 * tdesc.c (tdesc_create_flags): Remove.
5700 (tdesc_add_flag): Likewise.
5701 (tdesc_named_type): Likewise.
5702 (tdesc_create_union): Likewise.
5703 (tdesc_create_struct): Likewise.
5704 (tdesc_create_vector): Likewise.
5705 (tdesc_add_bitfield): Likewise.
5706 (tdesc_add_field): Likewise.
5707 (tdesc_set_struct_size): Likewise.
5708
82ec9bc7
AH
57092018-04-18 Alan Hayward <alan.hayward@arm.com>
5710
5711 * tdesc.c (~target_desc): Remove implictly deleted items.
5712 (init_target_desc): Iterate all features.
5713 (tdesc_get_features_xml): Use vector.
5714 (tdesc_create_feature): Create feature.
5715 * tdesc.h (tdesc_feature) Remove
5716 (target_desc): Add features.
5717
ea3e7d71
AH
57182018-04-18 Alan Hayward <alan.hayward@arm.com>
5719
5720 * Makefile.in: Add common/tdesc.c
5721 * tdesc.c (init_target_desc): init all reg_defs from register
5722 vector.
5723 (tdesc_create_reg): Create tdesc_reg.
5724 * tdesc.h (tdesc_feature): Add register vector.
5725
17d08cd4
SM
57262018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5727
5728 * tdesc.h (struct target_desc) <features>: Change type to
5729 std::vector<std::string>.
5730 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5731 changes.
5732 (tdesc_get_features_xml): Likewise.
5733 (tdesc_create_feature): Likewise.
5734
5cd3e386
AH
57352018-03-26 Alan Hayward <alan.hayward@arm.com>
5736
5737 * regcache.c (find_register_by_number): Return a ref.
5738 (find_regno): Use references.
5739 (register_size): Likewise.
5740 (register_data): Likewise.
5741 * tdesc.c (target_desc::~target_desc): Remove free calls.
5742 (target_desc::operator==): Use std::vector compare.
5743 (init_target_desc): Use reference.
5744 (tdesc_create_reg): Use reg constructors.
5745 * tdesc.h (struct target_desc): Replace pointer with object.
5746
dff7492c
AH
57472018-03-23 Alan Hayward <alan.hayward@arm.com>
5748
5749 * regcache.c (find_register_by_number): Make static.
5750 (find_regno): Use find_register_by_number
5751 * regcache.h (struct reg): Remove declaration.
5752
d80e5242
AH
57532018-03-23 Alan Hayward <alan.hayward@arm.com>
5754
5755 * tdesc.c (target_desc::~target_desc): Move to here.
5756 (target_desc::operator==): Likewise.
5757 * tdesc.h (target_desc::~target_desc): Move from here.
5758 (target_desc::operator==): Likewise.
5759
f69c5afb
AA
57602018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5761
5762 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5763
ce29f843
AA
57642018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5765
5766 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5767 S390_TDESC_GS.
5768 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5769 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5770 and init_registers_s390_gs_linux64.
5771
c49bd90b
AA
57722018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5773
5774 * linux-s390-low.c (s390_fill_gs): Remove function.
5775 (s390_fill_gsbc): Remove function.
5776 (s390_regsets): Set fill functions for the guarded storage regsets
5777 to NULL.
5778
7edb9bd3
AA
57792018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5780
5781 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5782 the word size. Add comment.
5783 (s390_get_wordsize): New function.
5784 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5785 pswm with it. Instead, use s390_get_wordsize to determine the
5786 word size first and derive the correct tdesc from that directly.
5787
39be3c7e
SM
57882018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5789
5790 * Makefile.in: Include silent-rules.mk.
5791 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5792 (COMPILE): Add ECHO_CXX.
5793 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5794 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5795 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5796 (version-generated.c): Add ECHO_GEN.
5797 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5798 (IPAGENT_COMPILE): Add ECHO_CXX.
5799 (%-generated.c): Add ECHO_REGDAT.
5800
3ae9ce5d
TT
58012018-03-14 Tom Tromey <tom@tromey.com>
5802
5803 PR cli/14977:
5804 * ax.c (ax_printf): Special case for NULL.
5805
e6a58aa8
SM
58062018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5807
5808 * linux-low.c (linux_qxfer_libraries_svr4): Use
5809 xml_escape_text_append.
5810
f6e8a41e
SM
58112018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5812
5813 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5814
b9671caf
SM
58152018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5816
5817 * server.c (handle_general_set): Remove unnecessary xstrdup.
5818
e80aaf61
SM
58192018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5820
5821 * server.c (parse_debug_format_options): Adjust to
5822 delim_string_to_char_ptr_vec changes.
5823 * thread-db.c (thread_db_load_search): Adjust to
5824 dirnames_to_char_ptr_vec changes.
5825
b1223e78
MM
58262018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5827
5828 * target.h (target_enable_btrace, target_disable_btrace)
5829 (target_read_btrace, target_read_btrace_conf): Turn macro into
5830 inline function. Throw error if target method is not defined.
5831 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5832 check for btrace target method. Be prepared to handle exceptions
5833 from btrace target methods.
5834
81561546
SDJ
58352018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5836
5837 * server.c (captured_main): Change order of error message printed
5838 when the current working directory cannot be found.
5839
25e3c82c
SDJ
58402018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5841
5842 * server.c: Include "filenames.h" and "pathstuff.h".
5843 (program_name): Delete variable.
5844 (program_path): New anonymous class.
5845 (get_exec_wrapper): Use "program_path" instead of
5846 "program_name".
5847 (handle_v_run): Likewise.
5848 (captured_main): Likewise.
5849 (process_serial_event): Likewise.
5850
b4987c95
SDJ
58512018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5852
5853 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5854 (OBJS): Add "pathstuff.o".
5855 * server.c (current_directory): New global variable.
5856 (captured_main): Initialize "current_directory".
5857
f46cd62a
AH
58582018-02-26 Alan Hayward <alan.hayward@arm.com>
5859
5860 * tdesc.c: Use common/tdesc.h.
5861 * tdesc.h: Likewise.
5862
a543c5ca
AH
58632018-02-20 Alan Hayward <alan.hayward@arm.com>
5864 Simon Marchi <simon.marchi@ericsson.com>
5865
5866 * Makefile.in: Switch order of make rules.
5867
b5884fa7
AH
58682018-02-19 Alan Hayward <alan.hayward@arm.com>
5869
5870 * Makefile.in: Add common directory in build.
5871 * configure.ac: Add common reference.
5872 * configure: Regenerate.
5873
de6242d3
MM
58742018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5875
5876 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5877 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5878 * spu-low.c (spu_target_ops): Likewise.
5879 * win32-low.c (win32_target_ops): Likewise.
5880 * server.c (supported_btrace_packets): Report packets unconditionally.
5881 * target.h (target_ops) <supports_btrace>: Remove.
5882 (target_supports_btrace): Remove.
5883
9ee23a85
MM
58842018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5885
5886 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5887 (handle_btrace_disable): Change return type to void. Use exceptions
5888 to report errors.
5889 (handle_btrace_general_set): Catch exception and copy message to
5890 return message.
5891
8ce47547
TT
58922018-02-08 Tom Tromey <tom@tromey.com>
5893
5894 * linux-low.c (install_software_single_step_breakpoints): Use
5895 make_scoped_restore.
5896 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5897 (do_restore_current_thread_cleanup): Remove.
5898 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5899 declare.
5900
45dd3607
TT
59012018-02-08 Tom Tromey <tom@tromey.com>
5902
5903 * mem-break.c (set_raw_breakpoint_at): Use
5904 gdb::unique_xmalloc_ptr.
5905
e671cd59
PA
59062018-01-30 Pedro Alves <palves@redhat.com>
5907
5908 PR gdb/13211
5909 * target.c (target_terminal::terminal_state): Rename to ...
5910 (target_terminal::m_terminal_state): ... this.
5911
a0aad537
JC
59122018-01-19 James Clarke <jrtc27@jrtc27.com>
5913
5914 * linux-low.c (handle_extended_wait): Surround call to
5915 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5916
4d9b86e1
SM
59172018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5918
5919 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5920 linux_ptrace_attach_fail_reason_string now returning an
5921 std::string.
5922 (linux_attach): Likewise.
5923 * thread-db.c (attach_thread): Likewise.
5924
f517c180
EA
59252018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5926
5927 PR gdb/21559
5928 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5929 checking for fs_base/gs_base fields in struct user_regs_struct.
5930 * configure: Regenerate.
5931
9a70f35c
YQ
59322018-01-16 Yao Qi <yao.qi@linaro.org>
5933
5934 PR gdb/18749
5935 * linux-low.c (fetch_register): Call supply_register instead of
5936 error.
5937
605fd3c6
YQ
59382018-01-08 Yao Qi <yao.qi@linaro.org>
5939 Simon Marchi <simon.marchi@ericsson.com>
5940
5941 * Makefile.in (OBS): Remove selftest.o.
5942 * configure.ac: Set srv_selftest_objs if $development is true.
5943 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5944 * configure: Re-generated.
5945 * server.c (captured_main): Wrap variable selftest_filter with
5946 GDB_SELF_TEST.
5947
2cc05030
SM
59482018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5949
5950 * server.c (parse_debug_format_options): Return std::string.
5951 (handle_monitor_command, captured_main): Adjust.
5952
e379cee6
PA
59532018-01-05 Pedro Alves <palves@redhat.com>
5954
5955 PR gdb/18653
5956 * server.c (captured_main): Pass quiet=false to
5957 save_original_signals_state.
5958
82e1e79a
JB
59592018-01-01 Joel Brobecker <brobecker@adacore.com>
5960
5961 * gdbreplay.c (gdbreplay_version): Update copyright year in
5962 version message.
5963 * server.c (gdbserver_version): Likewise.
5964
8e481c3b
TT
59652017-12-08 Tom Tromey <tom@tromey.com>
5966
5967 * ax.c (ax_printf): Update.
5968
a8806230
YQ
59692017-12-07 Yao Qi <yao.qi@linaro.org>
5970
5971 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5972 aarch64_linux_read_description.
5973 * linux-amd64-ipa.c (idx2mask): New array.
5974 (get_ipa_tdesc): Move idx2mask out.
5975 (initialize_low_tracepoint): Initialize target descriptions.
5976 * linux-i386-ipa.c (idx2mask): New array.
5977 (get_ipa_tdesc): Move idx2mask out.
5978 (initialize_low_tracepoint): Initialize target descriptions.
5979
d4a0e8b5
SM
59802017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5981
5982 * tdesc.c (struct tdesc_type): Change return type.
5983 (tdesc_add_flag): Change parameter type.
5984 (tdesc_add_bitfield): Likewise.
5985 (tdesc_add_field): Likewise.
5986 (tdesc_set_struct_size): Likewise.
5987
798a7429
SM
59882017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5989
5990 * regcache.c (registers_to_string): Remove unused variable.
5991
c0e15c9b
SM
59922017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5993
5994 * inferiors.c (for_each_inferior_with_data): Remove.
5995 * inferiors.h (for_each_inferior_with_data): Remove.
5996 * server.c (handle_qxfer_threads_worker): Change parameter type.
5997 (handle_qxfer_threads_proper): Use for_each_thread.
5998
f0045347
SM
59992017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6000
6001 * inferiors.c (for_each_inferior): Remove.
6002 (clear_inferiors): Use for_each_thread.
6003 * inferiors.h (for_each_inferior): Remove.
6004 * linux-low.c (linux_wait_for_event_filtered): Use
6005 for_each_thread.
6006 (linux_stabilize_threads): Likewise.
6007 * regcache.c (regcache_release): Likewise.
6008 * server.c (gdb_wants_all_threads_stopped): Likewise.
6009 (clear_pending_status_callback): Remove.
6010 (handle_status): Use for_each_thread.
6011 (captured_main): Likewise.
6012 * win32-low.c (child_init_thread_list): Likewise.
6013 (win32_clear_inferiors): Likewise.
6014 (fake_breakpoint_event): Likewise.
6015
9521758b
SM
60162017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6017
6018 * inferiors.h (find_inferior): Remove.
6019 * inferiors.c (find_inferior): Remove.
6020
8f86d7aa
SM
60212017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6022
6023 * linux-low.c (resume_status_pending_p): Update comment.
6024 (need_step_over_p): Update comment.
6025
e2b44075
SM
60262017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6027
6028 * linux-low.c (proceed_one_lwp): Return void, change parameter
6029 type.
6030 (unsuspend_and_proceed_one_lwp): Likewise.
6031 (proceed_all_lwps): Use for_each_thread.
6032 (unstop_all_lwps): Likewise.
6033
c80825ff
SM
60342017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6035
6036 * linux-low.c (linux_resume_one_thread): Return void, take
6037 parameter directly.
6038 (linux_resume): Use for_each_thread.
6039
df3e4dbe
SM
60402017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6041
6042 * linux-low.c (send_sigstop_callback): Return void, change
6043 parameter type. Rename to...
6044 (send_sigstop): ... this.
6045 (suspend_and_send_sigstop_callback): Return void, change parameter
6046 type. Rename to...
6047 (suspend_and_send_sigstop): ... this.
6048 (stop_all_lwps): Use for_each_thread.
6049
5a6b0a41
SM
60502017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6051
6052 * linux-low.c (lwp_running): Return bool, remove unused
6053 argument.
6054 (linux_stabilize_threads): Use find_thread.
6055
39a64da5
SM
60562017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6057
6058 * linux-low.c (select_singlestep_lwp_callback): Remove.
6059 (count_events_callback): Remove.
6060 (select_event_lwp_callback): Remove.
6061 (select_event_lwp): Use find_thread/for_each_thread.
6062
a1385b7b
SM
60632017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6064
6065 * linux-low.c (not_stopped_callback): Return bool, take filter
6066 argument directly.
6067 (linux_wait_for_event_filtered): Use find_thread.
6068 (linux_wait_1): Likewise.
6069
454296a2
SM
60702017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6071
6072 * linux-low.c (same_lwp): Remove.
6073 (find_lwp_pid): Use find_thread.
6074
6b2a85da
SM
60752017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6076
6077 * linux-low.c (delete_lwp_callback): Remove.
6078 (linux_mourn): Use for_each_thread.
6079
798a38e8
SM
60802017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6081
6082 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6083 args parameter, don't check for pid.
6084 (linux_detach): Use for_each_thread.
6085
e4eb0dec
SM
60862017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6087
6088 * linux-low.c (struct counter): Remove.
6089 (second_thread_of_pid_p): Remove.
6090 (last_thread_of_process_p): Use find_thread.
6091
83e1b6c1
SM
60922017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6093
6094 * inferiors.c (find_inferior_in_random): Remove.
6095 * inferiors.h (find_inferior_in_random): Remove.
6096 * linux-low.c (status_pending_p_callback): Return bool, accept
6097 parameter ptid directly.
6098 (linux_wait_for_event_filtered): Use find_thread_in_random.
6099 (linux_wait_1): Likewise.
6100
8dc7b443
SM
61012017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6102
6103 * inferiors.c (find_inferior_id): Remove.
6104 (find_thread_ptid): Move implemention from find_inferior_id to
6105 here.
6106 * inferiors.h (find_inferior_id): Remove.
6107 * server.c (handle_status): Use find_thread_ptid.
6108 (process_serial_event): Likewise.
6109 * thread-db.c (find_one_thread): Likewise.
6110 (thread_db_thread_handle): Likewise.
6111 * win32-low.c (thread_rec): Likewise.
6112 (child_delete_thread): Likewise.
6113 (win32_thread_alive): Likewise.
6114 (get_child_debug_event): Likewise.
6115
da25033c
SM
61162017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6117
6118 * linux-mips-low.c (update_watch_registers_callback): Return
6119 void, remove pid_p parameter, don't check for pid.
6120 (mips_insert_point, mips_remove_point): Use for_each_thread.
6121
c91bb56b
SM
61222017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6123
6124 * lynx.low (lynx_delete_thread_callback): Remove.
6125 (lynx_mourn): Use for_each_thread.
6126
634a3254
SM
61272017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6128
6129 * regcache.c (regcache_invalidate_one): Remove.
6130 (regcache_invalidate_pid): use for_each_thread.
6131
41272101
TT
61322017-11-26 Tom Tromey <tom@tromey.com>
6133
6134 * linux-low.c (linux_create_inferior): Update.
6135
f5291a6f
UW
61362017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6137
6138 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6139
6654d750
AH
61402017-11-24 Alan Hayward <alan.hayward@arm.com>
6141
6142 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6143 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6144 * linux-aarch64-tdesc-selftest.c: New file.
6145 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6146
61472017-11-24 Alan Hayward <alan.hayward@arm.com>
6148
6149 * configure.srv: Add new file.
6150 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6151 * linux-aarch64-tdesc-selftest.c: New file.
6152 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6153
49bdb7ee
AH
61542017-11-24 Alan Hayward <alan.hayward@arm.com>
6155
6156 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6157 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6158 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6159
d6d7ce56
AH
61602017-11-24 Alan Hayward <alan.hayward@arm.com>
6161
6162 * configure.srv: Add new files.
6163 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6164 aarch64_linux_read_description.
6165 * linux-aarch64-low.c (aarch64_linux_read_description):
6166 Merge with aarch64_arch_setup.
6167 (aarch64_arch_setup): Call aarch64_linux_read_description.
6168 * linux-aarch64-tdesc.c: New file.
6169 * linux-aarch64-tdesc.h: New file.
6170
506fe5f4
YQ
61712017-11-24 Yao Qi <yao.qi@linaro.org>
6172
6173 * configure.srv: Set $srv_regobj for tic6x-linux.
6174 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6175 (tic6x_read_description): Move some code to tic6x_arch_setup.
6176 (tic6x_tdesc_test): New function.
6177 (initialize_low_arch): Call selftests::register_test.
6178
29f9a567
YQ
61792017-11-22 Yao Qi <yao.qi@linaro.org>
6180
6181 * remote-utils.c (prepare_resume_reply): Use memcpy.
6182
578290ec
SM
61832017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6184
6185 * linux-low.c (kill_one_lwp_callback): Return void, take
6186 argument directly, don't filter on pid.
6187 (linux_kill): Use for_each_thread.
6188
eca55aec
SM
61892017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6190
6191 * linux-low.c (need_step_over_p): Return bool, remove dummy
6192 argument.
6193 (linux_resume, proceed_all_lwps): Use find_thread.
6194
25c28b4d
SM
61952017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6196
6197 * linux-low.c (resume_status_pending_p): Return bool, remove
6198 flag_p argument.
6199 (linux_resume): Use find_thread.
6200
5fdda392
SM
62012017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6202
6203 * linux-low.c (struct thread_resume_array): Remove.
6204 (linux_set_resume_request): Return void, take arguments
6205 directly.
6206 (linux_resume): Use for_each_thread.
6207
fcb056a5
SM
62082017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6209
6210 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6211 return bool, remove data argument.
6212 (linux_stabilize_threads): Use find_thread.
6213
139720c5
SM
62142017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6215
6216 * linux-low.c (unsuspend_one_lwp): Remove.
6217 (unsuspend_all_lwps): Use for_each_thread, inline code from
6218 unsuspend_one_lwp.
6219
6d1e5673
SM
62202017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6221
6222 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6223 * linux-low.c (struct iterate_over_lwps_args): Remove.
6224 (iterate_over_lwps_filter): Remove.
6225 (iterate_over_lwps): Use find_thread.
6226
bbf550d5
SM
62272017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6228
6229 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6230 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6231 code from reset_lwp_ptrace_options_callback.
6232
00192f77
SM
62332017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6234
6235 * linux-arm-low.c (struct update_registers_data): Remove.
6236 (update_registers_callback): Return void, take arguments
6237 directly, don't check thread's pid.
6238 (arm_insert_point, arm_remove_point): Use for_each_thread.
6239
2bee2b6c
SM
62402017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6241
6242 * win32-low.c (continue_one_thread): Return void, take argument
6243 directly.
6244 (child_continue): Use for_each_thread.
6245
0b360f19
SM
62462017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6247
6248 * win32-i386-low.c (update_debug_registers_callback): Rename
6249 to ...
6250 (update_debug_registers): ... this, return void, remove pid_p arg.
6251 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6252
f27866ba
SM
62532017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6254
6255 * inferiors.h (struct process_info): Add constructor, initialize
6256 fields..
6257 <syscalls_to_catch>: Change type to std::vector<int>.
6258 * inferiors.c (add_process): Allocate process_info with new.
6259 (remove_process): Free process_info with delete.
6260 * linux-low.c (handle_extended_wait): Adjust.
6261 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6262 * server.c (handle_general_set): Adjust.
6263
e849ea89
PA
62642017-11-16 Pedro Alves <palves@redhat.com>
6265
6266 * remote-utils.c (remote_close): Block SIGIO signals instead of
6267 uninstalling the SIGIO handler.
6268
1d0aa65c
AH
62692017-11-16 Alan Hayward <alan.hayward@arm.com>
6270
6271 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6272
3491a34c
YQ
62732017-11-16 Yao Qi <yao.qi@linaro.org>
6274
6275 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6276 (tic6x_store_gregset): Likewise.
6277 (tic6x_usrregs_info): Move it up.
6278
a602f924
AH
62792017-11-15 Alan Hayward <alan.hayward@arm.com>
6280
6281 * Makefile.in: Update arch rules.
6282 * configure.srv: Explicitly mark arch/ files.
6283
5616b6c3
AS
62842017-11-13 Andreas Schwab <schwab@suse.de>
6285
6286 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6287 function.
6288 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6289
d1928160
PA
62902017-11-06 Pedro Alves <palves@redhat.com>
6291
6292 * config.in, configure: Regenerate.
6293
bac608e7
SM
62942017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6295
6296 * target.c (struct thread_search): Remove.
6297 (thread_search_callback): Remove.
6298 (prepare_to_access_memory): Use for_each_thread instead of
6299 find_inferior. Inline code from thread_search_callback.
6300
eaddb425
SM
63012017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6302
6303 * server.c (struct visit_actioned_threads_data): Remove.
6304 (visit_actioned_threads): Change prototype to take arguments
6305 directly.
6306 (resume): Use find_thread instead of find_inferior.
6307
99078d34
SM
63082017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6309
6310 * server.c (queue_stop_reply_callback): Change prototype, return
6311 void.
6312 (find_status_pending_thread_callback): Remove.
6313 (handle_status): Replace find_inferior with find_thread and
6314 for_each_thread.
6315
cc628f3d
AH
63162017-10-25 Alan Hayward <alan.hayward@arm.com>
6317
6318 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6319 with REGNO.
6320 (aarch64_store_gregset): Likewise.
6321 (aarch64_fill_fpregset): Likewise.
6322 (aarch64_store_fpregset): Likewise.
6323
4d3bb80e
SM
63242017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6325
6326 * gdbthread.h (find_thread, for_each_thread): New functions.
6327 * inferiors.c (thread_of_pid): Remove.
6328 (find_any_thread_of_pid): Use find_thread.
6329 * linux-low.c (num_lwps): Use for_each_thread.
6330
7a7cdfa0
YQ
63312017-10-17 Yao Qi <yao.qi@linaro.org>
6332
6333 * Makefile.in: Remove one rule.
6334 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6335
e675d170
YQ
63362017-10-17 Yao Qi <yao.qi@linaro.org>
6337
6338 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6339 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6340
7eb4e0f9
YQ
63412017-10-17 Yao Qi <yao.qi@linaro.org>
6342
6343 * configure.srv: Rename arm.o with arch/arm.o.
6344
60d6cfc9
YQ
63452017-10-17 Yao Qi <yao.qi@linaro.org>
6346
6347 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6348 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6349 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6350 (arch-i386.o, arch-amd64.o): Remove rules.
6351 (arch/%.o): New rule.
6352 Update POSTCOMPILE and COMPILE.pre.
6353 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6354 * configure: Re-generated.
6355 * configure.srv: Replace arch-i386.o with arch/i386.o.
6356 Replace arch-amd64.o with arch/amd64.o.
6357
5bfda255
YQ
63582017-10-16 Yao Qi <yao.qi@linaro.org>
6359
6360 * configure: Regenerated.
6361
9c80ecd6
SM
63622017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6363
6364 * inferiors.h: (struct inferior_list): Remove.
6365 (struct inferior_list_entry); Remove.
6366 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6367 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6368 get_first_inferior): Remove.
6369 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6370 find_inferior_id, find_inferior_in_random): Change signature.
6371 * inferiors.c (all_threads): Change type to
6372 std::list<thread_info *>.
6373 (get_thread): Remove macro.
6374 (find_inferior, find_inferior_id): Change signature, implement
6375 using find_thread.
6376 (find_inferior_in_random): Change signature, implement using
6377 find_thread_in_random.
6378 (for_each_inferior, for_each_inferior_with_data): Change
6379 signature, implement using for_each_thread.
6380 (add_inferior_to_list, remove_inferior): Remove.
6381 (add_thread, get_first_thread, thread_of_pid,
6382 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6383 (get_first_inferior, one_inferior_p, clear_inferior_list):
6384 Remove.
6385 (clear_inferiors, get_thread_process): Update.
6386 * gdbthread.h: Include <list>.
6387 (struct thread_info) <entry>: Remove field.
6388 <id>: New field.
6389 (all_threads): Change type to std::list<thread_info *>.
6390 (get_first_inferior): Add doc.
6391 (find_thread, for_each_thread, find_thread_in_random): New
6392 functions.
6393 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6394 * linux-arm-low.c (update_registers_callback): Update.
6395 * linux-low.c (second_thread_of_pid_p): Update.
6396 (kill_one_lwp_callback, linux_detach_lwp_callback,
6397 delete_lwp_callback, status_pending_p_callback, same_lwp,
6398 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6399 iterate_over_lwps, not_stopped_callback,
6400 resume_stopped_resumed_lwps, count_events_callback,
6401 select_singlestep_lwp_callback, select_event_lwp_callback,
6402 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6403 suspend_and_send_sigstop_callback, wait_for_sigstop,
6404 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6405 lwp_running, linux_set_resume_request, resume_status_pending_p,
6406 need_step_over_p, start_step_over, linux_resume_one_thread,
6407 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6408 reset_lwp_ptrace_options_callback): Update.
6409 * linux-mips-low.c (update_watch_registers_callback): Update.
6410 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6411 Update.
6412 (free_register_cache_thread_one): Remove.
6413 (regcache_release): Update.
6414 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6415 handle_qxfer_threads_worker): Update.
6416 (handle_query): Update, use list iterator.
6417 (visit_actioned_threads, handle_pending_status,
6418 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6419 clear_pending_status_callback, set_pending_status_callback,
6420 find_status_pending_thread_callback, handle_status,
6421 process_serial_event): Update.
6422 * target.c (thread_search_callback): Update.
6423 * thread-db.c (thread_db_get_tls_address): Update.
6424 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6425 Update.
6426 * win32-i386-low.c (update_debug_registers_callback): Update.
6427 * win32-low.c (delete_thread_info, child_delete_thread,
6428 continue_one_thread, suspend_one_thread,
6429 get_child_debug_event): Adjust.
6430
9179355e
SM
64312017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6432
6433 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6434 * inferiors.h: Include <list>.
6435 (struct process_info) <entry>: Remove field.
6436 <pid>: New field.
6437 (pid_of): Change macro to function.
6438 (ptid_of, lwpid_of): Remove macro.
6439 (all_processes): Change type to std::list<process_info *>.
6440 (ALL_PROCESSES): Remove macro.
6441 (for_each_process, find_process): New function.
6442 * inferiors.c (all_processes): Change type to
6443 std::list<process_info *>.
6444 (find_thread_process): Adjust.
6445 (add_process): Likewise.
6446 (remove_process): Likewise.
6447 (find_process_pid): Likewise.
6448 (get_first_process): Likewise.
6449 (started_inferior_callback): Remove.
6450 (have_started_inferiors_p): Adjust.
6451 (attached_inferior_callback): Remove.
6452 (have_attached_inferiors_p): Adjust.
6453 * linux-low.c (check_zombie_leaders): Likewise.
6454 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6455 (x86_linux_update_xmltarget): Adjust.
6456 * server.c (handle_query): Likewise.
6457 (gdb_reattached_process): Remove.
6458 (handle_status): Adjust.
6459 (kill_inferior_callback): Likewise.
6460 (detach_or_kill_inferior): Remove.
6461 (print_started_pid): Likewise.
6462 (print_attached_pid): Likewise.
6463 (detach_or_kill_for_exit): Update.
6464 (process_serial_event): Likewise.
6465 * linux-arm-low.c (arm_new_fork): Likewise.
6466
c9cb8905
SM
64672017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6468
6469 * dll.h: Include <list>.
6470 (struct dll_info): Add constructor.
6471 <entry>: Remove field.
6472 (all_dlls): Change type to std::list<dll_info>.
6473 * dll.c: Include <algorithm>.
6474 (get_dll): Remove macro.
6475 (all_dlls): Change type to std::list<dll_info *>.
6476 (free_one_dll): Remove.
6477 (match_dll): Likewise.
6478 (loaded_dll): Adjust.
6479 (unloaded_dll): Adjust to all_dlls type change, use
6480 std::find_if. Inline code from match_dll.
6481 (clear_dlls): Adjust to all_dlls type change.
6482 * server.c (emit_dll_description): Remove.
6483 (handle_qxfer_libraries): Adjust to all_dlls type change,
6484 integrate emit_dll_description's functionality.
6485
04ec7890
SM
64862017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6487
6488 * linux-low.h (struct linux_target_ops) <delete_process>: New
6489 field.
6490 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6491 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6492 (struct linux_target_ops): Add delete_process callback.
6493 * linux-arm-low.c (arm_delete_process): New.
6494 (struct linux_target_ops): Add delete_process callback.
6495 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6496 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6497 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6498 * linux-mips-low.c (mips_linux_delete_process): New.
6499 (struct linux_target_ops): Add delete_process callback.
6500 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6501 * linux-s390-low.c (struct linux_target_ops): Likewise.
6502 * linux-sh-low.c (struct linux_target_ops): Likewise.
6503 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6504 * linux-tile-low.c (struct linux_target_ops): Likewise.
6505 * linux-x86-low.c (x86_linux_delete_process): New.
6506 (struct linux_target_ops): Add delete_process callback.
6507 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6508
466eecee
SM
65092017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6510
6511 * linux-aarch64-low.c (the_low_target): Add thread delete
6512 callback.
6513 * linux-arm-low.c (arm_delete_thread): New function.
6514 (the_low_target): Add thread delete callback.
6515 * linux-bfin-low.c (the_low_target): Likewise.
6516 * linux-crisv32-low.c (the_low_target): Likewise.
6517 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6518 set.
6519 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6520 field.
6521 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6522 * linux-mips-low.c (mips_linux_delete_thread): New function.
6523 (the_low_target): Add thread delete callback.
6524 * linux-ppc-low.c (the_low_target): Likewise.
6525 * linux-s390-low.c (the_low_target): Likewise.
6526 * linux-sh-low.c (the_low_target): Likewise.
6527 * linux-tic6x-low.c (the_low_target): Likewise.
6528 * linux-tile-low.c (the_low_target): Likewise.
6529 * linux-x86-low.c (the_low_target): Likewise.
6530 * linux-xtensa-low.c (the_low_target): Likewise.
6531
b79f7801
YZ
65322017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6533
6534 * win32-low.c: Include "common-inferior.h".
6535
bc3b087d
SDJ
65362017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6537
6538 * inferiors.c (set_inferior_cwd): New function.
6539 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6540 (handle_query): Inform that QSetWorkingDir is supported.
6541 * win32-low.c (create_process): Pass the inferior's cwd to
6542 CreateProcess.
6543
d092c5a2
SDJ
65442017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6545
6546 * inferiors.c (current_inferior_cwd): New global variable.
6547 (get_inferior_cwd): New function.
6548 * inferiors.h (struct process_info) <cwd>: New field.
6549
7da0a886
SDJ
65502017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6551
6552 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6553 (OBS): Add gdb_tilde_expand.o.
6554
289a6840
SM
65552017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6556
6557 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6558 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6559
256642e8
PA
65602017-09-29 Pedro Alves <palves@redhat.com>
6561
6562 * ax.c (gdb_parse_agent_expr): Constify.
6563 * ax.h (gdb_parse_agent_expr): Constify.
6564 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6565 Constify.
6566 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6567 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6568 * remote-utils.h (read_ptid): Constify.
6569 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6570 (process_point_options, process_serial_event): Constify.
6571 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6572 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6573 (cmd_qtbuffer): Constify.
6574
5b9ca4d4
PA
65752017-09-29 Pedro Alves <palves@redhat.com>
6576
6577 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6578 fails.
6579
94c207e0
PA
65802017-09-29 Pedro Alves <palves@redhat.com>
6581
6582 * linux-low.c (handle_extended_wait): Pass parent thread instead
6583 of process to thread_db_notice_clone.
6584 * linux-low.h (thread_db_notice_clone): Replace parent process
6585 parameter with parent thread parameter.
6586 * thread-db.c (find_one_thread): Add comment.
6587 (thread_db_notice_clone): Replace parent process parameter with
6588 parent thread parameter. Temporarily switch to the parent thread.
6589
75352e28
SDJ
65902017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6591
6592 * gdbthread.h: Include "common-gdbthread.h".
6593 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6594 "if" when validating the ptid.
6595 * remote-utils.c: Include "gdbthread.h".
6596 (prepare_resume_reply): Use "switch_to_thread".
6597 * target.c (done_accessing_memory): Likewise.
6598
ad339634
AA
65992017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6600
6601 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6602 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6603 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6604 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6605 s390x-gs-linux64-ipa.o to ipa_obj.
6606 * linux-s390-low.c (HWCAP_S390_GS): New define.
6607 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6608 New functions.
6609 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6610 (s390_arch_setup): Check for guarded-storage support and choose
6611 appropriate tdesc.
6612 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6613 init_registers_s390x_gs_linux64.
6614 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6615 enum value.
6616 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6617 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6618
cc4d742f
SM
66192017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6620
6621 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6622
f6327dcb
KB
66232017-09-21 Kevin Buettner <kevinb@redhat.com>
6624
6625 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6626 (thread_db_thread_handle): Declare.
6627 * linux-low.c (linux_target_ops): Initialize thread_handle.
6628 * server.c (handle_qxfer_threads_worker): Add support for
6629 "handle" attribute.
6630 * target.h (struct target_ops): Add new function pointer,
6631 thread_handle.
6632 (target_thread_handle): Define.
6633 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6634 field in lwp.
6635 (thread_db_thread_handle): New function.
6636
86299109
KB
66372017-09-21 Kevin Buettner <kevinb@redhat.com>
6638
6639 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6640 * linux-low.h (thread_db_notice_clone): Declare.
6641 * thread-db.c (thread_db_notice_clone): New function.
6642
f557a88a
PA
66432017-09-21 Pedro Alves <palves@redhat.com>
6644
6645 * server.c (gdb_read_memory, handle_status, process_serial_event)
6646 (handle_serial_event, handle_target_event): Adjust to
6647 set_desired_thread prototype change.
6648 * target.c (set_desired_thread): Remove 'use_general' parameter
6649 and adjust.
6650 * target.h (set_desired_thread): Remove 'use_general' parameter.
6651
223ffa71
TT
66522017-09-20 Tom Tromey <tom@tromey.com>
6653
6654 * target.c (target_terminal::terminal_state): Define.
6655 (target_terminal::init): Rename from target_terminal_init.
6656 (target_terminal::inferior): Rename from
6657 target_terminal_inferior.
6658 (target_terminal::ours): Rename from target_terminal_ours.
6659 (target_terminal::ours_for_output, target_terminal::info): New.
6660
04fd3ba9
SM
66612017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6662
6663 * server.c (accumulate_file_name_length): Remove.
6664 (emit_dll_description): Adjust to std::string change.
6665 (handle_qxfer_libraries): Use std::string to hold document.
6666
5e187554
SM
66672017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6668
6669 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6670 return type of xml_escape_text.
6671 * server.c (emit_dll_description): Likewise.
6672
1526853e
SM
66732017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6674
6675 * server.c (captured_main): Accept argument for --selftest.
6676 Update run_tests call.
6677 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6678 when registering selftests.
6679
c4dfafab
SDJ
66802017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6681
6682 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6683 instead of "VEC" for "target_desc.reg_defs".
6684 (regcache_cpy): Likewise.
6685 (registers_to_string): Likewise.
6686 (registers_from_string): Likewise.
6687 (find_regno): Likewise.
6688 (supply_regblock): Likewise.
6689 (regcache_raw_read_unsigned): Likewise.
6690 * tdesc.c (init_target_desc): Likewise.
6691 (tdesc_create_reg): Likewise.
6692 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6693 (struct target_desc) <reg_defs>: Convert to "std::vector".
6694 (target_desc): Do not initialize "reg_defs".
6695 (~target_desc): Update code to use "std::vector" instead of "VEC"
6696 for "target_desc.reg_defs".
6697 (operator==): Likewise.
6698
124aceb4
SM
66992017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6700
6701 * inferiors.h (thread_to_gdb_id): Remove.
6702 * inferiors.c (thread_to_gdb_id): Remove.
6703 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6704 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6705 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6706 Likewise.
6707 * nto-low.c (nto_fetch_registers, nto_store_registers,
6708 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6709
96cde54f
SM
67102017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6711
6712 * inferiors.h (gdb_id_to_thread_id): Remove.
6713 * inferiors.c (gdb_id_to_thread_id): Remove.
6714 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6715 removal. Move pid declaration closer to where it's used.
6716
e8ca139e
SM
67172017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6718
6719 * server.c (handle_detach): New function.
6720 (process_serial_event): Move code out, call handle_detach.
6721
f8a4e119
SM
67222017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6723
6724 * server.c (require_running): Rename to ...
6725 (require_running_or_return): ... this ...
6726 (require_running_or_break): ... and this.
6727 (handle_query, process_serial_event): Adjust.
6728
0eb0a407
SM
67292017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6730
6731 * linux-low.c (linux_set_resume_request): Remove unused
6732 variables.
6733
785922a5
SM
67342017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6735
6736 * server.c (first_thread_of): Remove.
6737 (process_serial_event): Replace usage of first_thread_of with
6738 find_any_thread_of_pid.
6739 * tracepoint.c (same_process_p): Remove.
6740 (gdb_agent_about_to_close): Replace usage of same_process_p with
6741 find_any_thread_of_pid.
6742 * linux-x86-low.c (same_process_callback): Remove.
6743 (x86_arch_setup_process_callback): Replace usage of
6744 same_process_callback with find_any_thread_of_pid.
6745 * thread-db.c (any_thread_of): Remove.
6746 (switch_to_process): Replace usage of any_thread_of with
6747 find_any_thread_of_pid.
6748 * inferiors.c (thread_pid_matches_callback): Remove.
6749 (find_thread_process): Adjust to use find_any_thread_of_pid.
6750
a059f00c
SDJ
67512017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6752
6753 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6754 with "!VEC_empty".
a059f00c 6755
cc397f3a
SDJ
67562017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6757
6758 * linux-low.c (handle_extended_wait): Use
6759 "allocate_target_description" instead of "XNEW".
6760 * linux-x86-low.c (initialize_low_arch): Likewise.
6761
22916b07
YQ
67622017-09-05 Yao Qi <yao.qi@linaro.org>
6763
6764 * configure.srv (srv_i386_regobj): Remove.
6765 (srv_amd64_regobj): Remove.
6766 (srv_regobj): Set it to "" for x86 non-linux targets.
6767 * linux-x86-tdesc.c (i386_linux_read_description):
6768 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6769 (init_registers_i386): Remove the declaration.
6770 (tdesc_i386): Remove the declaration.
6771 (lynx_i386_arch_setup): Call i386_create_target_description.
6772 * nto-x86-low.c: Likewise.
6773 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6774 [!__x86_64__]: include arch/i386.h.
6775 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6776
38602d55
YQ
67772017-09-05 Yao Qi <yao.qi@linaro.org>
6778
6779 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6780 i386/amd64-XXX-linux from it.
6781
44b886ff
YQ
67822017-09-05 Yao Qi <yao.qi@linaro.org>
6783
6784 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6785 false.
6786 (ipa_amd64_linux_regobj): Remove.
6787 (ipa_x32_linux_regobj): Remove.
6788
b4570e4b
YQ
67892017-09-05 Yao Qi <yao.qi@linaro.org>
6790
6791 * Makefile.in (arch-amd64.o): New rule.
6792 * configure.srv: Append arch-amd64.o.
6793 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6794 (get_ipa_tdesc): Call amd64_linux_read_description.
6795 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6796 and init_registers_amd64_XXX.
6797 * linux-x86-low.c (x86_linux_read_description): Call
6798 amd64_linux_read_description.
6799 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6800 (initialize_low_arch): Don't call init_registers_x32_XXX and
6801 init_registers_amd64_XXX.
6802 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6803 and tdesc_amd64_XXX.
6804 [__x86_64__] (amd64_tdesc_test): New function.
6805 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6806 and init_registers_amd64_XXX.
6807 * linux-x86-tdesc.c: Include arch/amd64.h.
6808 (xcr0_to_tdesc_idx): New function.
6809 (i386_linux_read_description): New function.
6810 (amd64_get_ipa_tdesc_idx): New function.
6811 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6812 (amd64_get_ipa_tdesc): Declare.
6813
d1f28ea2
YQ
68142017-09-05 Yao Qi <yao.qi@linaro.org>
6815
6816 * configure.srv (srv_i386_linux_xmlfiles): Remove
6817 i386/i386-XXX-linux.xml from it.
6818
25a93583
YQ
68192017-09-05 Yao Qi <yao.qi@linaro.org>
6820
6821 * configure.srv: Set srv_i386_linux_regobj empty if $development
6822 is false.
6823 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6824 initialize_low_tdesc.
6825 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6826 with #if initialize_low_tdesc.
6827 * linux-x86-tdesc-selftest.c: New file.
6828 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6829
5f035c07
YQ
68302017-09-05 Yao Qi <yao.qi@linaro.org>
6831
6832 * Makefile.in (arch-i386.o): New rule.
6833 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6834 (x86_64-*-linux*): Likewise.
6835 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6836 include arch/i386.h.
6837 (i386_linux_read_description): Remove code and call
6838 i386_create_target_description.
6839 * tdesc.c (allocate_target_description): New function.
6840 * tdesc.h (set_tdesc_architecture): Remove declaration.
6841 (set_tdesc_osabi): Likewise.
6842
0abe8a89
YQ
68432017-09-05 Yao Qi <yao.qi@linaro.org>
6844
6845 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6846 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6847 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6848 .xmltarget.
6849 * server.c (get_features_xml): Call tdesc_get_features_xml.
6850 * tdesc.c (set_tdesc_architecture): New function.
6851 (set_tdesc_osabi): New function.
6852 (tdesc_get_features_xml): New function.
6853 (tdesc_create_feature): Add an argument.
6854 * tdesc.h (struct target_desc) <features>: New field.
6855 <arch, osabi>: New field.
6856 (~target_desc): xfree features, arch, and osabi.
6857 (target_desc::oerator==): Don't compare .xmltarget.
6858 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6859 (set_tdesc_osabi): Likewise.
6860 (tdesc_get_features_xml): Likewise.
6861
0a188386
YQ
68622017-09-05 Yao Qi <yao.qi@linaro.org>
6863
6864 * linux-x86-tdesc.c: Include selftest.h.
6865 (i386_tdesc_test): New function.
6866 (initialize_low_tdesc): Call selftests::register_test.
6867 * tdesc.h: Include regdef.h.
6868 (target_desc): Override operator == and !=.
6869
f49ff000
YQ
68702017-09-05 Yao Qi <yao.qi@linaro.org>
6871
6872 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6873 (ipa_obj): Likewise.
6874 * linux-i386-ipa.c: Include common/x86-xstate.h
6875 (get_ipa_tdesc): Call i386_linux_read_description.
6876 (initialize_low_tracepoint): Don't call init_registers_XXX
6877 functions, call initialize_low_tdesc instead.
6878 * linux-x86-low.c (x86_linux_read_description): Call
6879 i386_linux_read_description.
6880 (initialize_low_arch): Don't call init_registers_i386_XXX
6881 functions, call initialize_low_tdesc.
6882 * linux-x86-tdesc.c: New file.
6883 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6884 (i386_get_ipa_tdesc_idx): Declare.
6885 (i386_get_ipa_tdesc): Declare.
6886 (initialize_low_tdesc): Declare.
6887
2b68ef2f
YQ
68882017-09-05 Yao Qi <yao.qi@linaro.org>
6889
6890 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6891 instead of 0.
6892
f7000548
YQ
68932017-09-05 Yao Qi <yao.qi@linaro.org>
6894
6895 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6896 * regcache.c (get_thread_regcache): Use VEC_length.
6897 (init_register_cache): Likewise.
6898 (regcache_cpy): Likewise.
6899 (registers_to_string): Iterate reg_defs via VEC_iterate.
6900 (find_regno): Likewise.
6901 (find_register_by_number): Use VEC_index.
6902 (register_size): Call find_register_by_number.
6903 (register_data): Call find_register_by_number.
6904 (supply_regblock): Use VEC_length.
6905 (regcache_raw_read_unsigned): Likewise.
6906 * tdesc.c (init_target_desc): Iterate reg_defs via
6907 VEC_iterate.
6908 (default_description): Update initializer.
6909 (copy_target_description): Don't update field num_registers.
6910 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6911 <num_registers>: Remove.
6912
50a421ac
SM
69132017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6914
6915 * Makefile.in (.SECONDARY): Define target.
6916
23fdd69e
SM
69172017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6918
6919 * linux-low.c (linux_wait_1): Adjust.
6920 * server.c (queue_stop_reply_callback): Adjust.
6921
0a2dde4a
SDJ
69222017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6923
6924 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6925 QEnvironmentUnset and QEnvironmentReset packets.
6926 (handle_query): Inform remote that QEnvironmentHexEncoded,
6927 QEnvironmentUnset and QEnvironmentReset are supported.
6928
6afd337d
SM
69292017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6930
6931 * inferiors.h (inferior_target_data): Rename to ...
6932 (thread_target_data): ... this.
6933 (inferior_regcache_data): Rename to ...
6934 (thread_regcache_data): ... this.
6935 (set_inferior_regcache_data): Rename to ...
6936 (set_thread_regcache_data): ... this.
6937 * inferiors.c (inferior_target_data): Rename to ...
6938 (thread_target_data): ... this.
6939 (inferior_regcache_data): Rename to ...
6940 (thread_regcache_data): ... this.
6941 (set_inferior_regcache_data): Rename to ...
6942 (set_thread_regcache_data): ... this.
6943 (free_one_thread): Update.
6944 * linux-low.h (get_thread_lwp): Update.
6945 * regcache.c (get_thread_regcache): Update.
6946 (regcache_invalidate_thread): Update.
6947 (free_register_cache_thread): Update.
6948 * win32-i386-low.c (update_debug_registers_callback): Update.
6949 (win32_get_current_dr): Update.
6950 * win32-low.c (thread_rec): Update.
6951 (delete_thread_info): Update.
6952 (continue_one_thread): Update.
6953 (suspend_one_thread): Update.
6954
a160cc46
SM
69552017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6956
6957 * inferiors.c (set_inferior_target_data): Remove.
6958 * inferiors.h (set_inferior_target_data): Remove.
6959
6d580b63
YQ
69602017-08-18 Yao Qi <yao.qi@linaro.org>
6961
6962 * Makefile.in (OBS): Add selftest.o.
6963 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6964 * configure, config.in: Re-generated.
6965 * server.c: Include common/sefltest.h.
6966 (captured_main): Handle option --selftest.
6967
f5a29eb0
YQ
69682017-08-09 Yao Qi <yao.qi@linaro.org>
6969
6970 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6971 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6972 i386-avx-mpx.o and i386-mmx.o.
6973 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6974 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6975 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6976 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6977 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6978 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6979 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6980 i386/amd64-avx-mpx.xml.
6981
57757c2f
YQ
69822017-08-09 Yao Qi <yao.qi@linaro.org>
6983
6984 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6985 and x32-avx-avx512.o.
6986 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6987 i386/x32-avx-avx512.xml.
6988
229d26fc
SM
69892017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6990
6991 * tracepoint.h (enum class fast_tpoint_collect_result): New
6992 enumeration.
6993 (fast_tracepoint_collecting): Change return type to
6994 fast_tpoint_collect_result.
6995 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6996 * linux-low.h: Include tracepoint.h.
6997 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6998 fast_tpoint_collect_result.
6999 * linux-low.c (handle_tracepoints): Adjust.
7000 (linux_fast_tracepoint_collecting): Change return type to
7001 fast_tpoint_collect_result.
7002 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7003 linux_wait_1, stuck_in_jump_pad_callback,
7004 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7005 proceed_one_lwp): Adjust to type change.
7006
2e1e43e1
YQ
70072017-07-10 Yao Qi <yao.qi@linaro.org>
7008
7009 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7010
adc764e7
YQ
70112017-06-29 Yao Qi <yao.qi@linaro.org>
7012
7013 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7014 Remove.
7015 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7016
a206891a
SM
70172017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7018
7019 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7020
9a6c7d9c
SDJ
70212017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7022
7023 * linux-low.c (linux_create_inferior): Adjust code to access the
7024 environment information via 'gdb_environ' class.
7025 * lynx-low.c (lynx_create_inferior): Likewise.
7026 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7027 (get_environ): Return a pointer to 'our_environ'.
7028 (captured_main): Initialize 'our_environ'.
7029 * server.h (get_environ): Adjust prototype.
7030 * spu-low.c (spu_create_inferior): Adjust code to access the
7031 environment information via 'gdb_environ' class.
7032
ae3e2ccf
SM
70332017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7034
7035 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7036 usage of "register" keyword.
7037
3e019bdc
SM
70382017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7039
7040 * configure: Re-generate.
7041
8465943a
SM
70422017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7043
7044 * configure: Re-generate.
7045
cf0dd6f0
SM
70462017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7047
7048 * Makefile.in (COMPILE.pre): Add "-x c++".
7049
9845682b
SDJ
70502017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7051
7052 * fork-child.c: Conditionally include <signal.h>.
7053
aefd8b33
SDJ
70542017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7055
7056 * server.c (handle_general_set): Handle new packet
7057 "QStartupWithShell".
7058 (handle_query): Add "QStartupWithShell" to the list of supported
7059 packets.
7060 (gdbserver_usage): Add help text explaining the
7061 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7062 options.
7063 (captured_main): Recognize and act upon the presence of the new
7064 CLI options.
7065
2090129c
SDJ
70662017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7067 Pedro Alves <palves@redhat.com>
7068
7069 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7070 * configure: Regenerate.
7071 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7072 "fork-inferior.o".
7073 (i[34567]86-*-lynxos*): Likewise.
7074 (spu*-*-*): Likewise.
7075 * fork-child.c: New file.
7076 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7077 and "environ.h".
7078 (linux_ptrace_fun): New function.
7079 (linux_create_inferior): Adjust function prototype to reflect
7080 change on "target.h". Adjust function code to use
7081 "fork_inferior".
7082 (linux_request_interrupt): Delete "signal_pid".
7083 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7084 (lynx_ptrace_fun): New function.
7085 (lynx_create_inferior): Adjust function prototype to reflect
7086 change on "target.h". Adjust function code to use
7087 "fork_inferior".
7088 * nto-low.c (nto_create_inferior): Adjust function prototype and
7089 code to reflect change on "target.h". Update comments.
7090 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7091 "common-terminal.h" and "environ.h".
7092 (terminal_fd): Moved to fork-child.c.
7093 (old_foreground_pgrp): Likewise.
7094 (restore_old_foreground_pgrp): Likewise.
7095 (last_status): Make it global.
7096 (last_ptid): Likewise.
7097 (our_environ): New variable.
7098 (startup_with_shell): Likewise.
7099 (program_name): Likewise.
7100 (program_argv): Rename to...
7101 (program_args): ...this.
7102 (wrapper_argv): New variable.
7103 (start_inferior): Delete function.
7104 (get_exec_wrapper): New function.
7105 (get_exec_file): Likewise.
7106 (get_environ): Likewise.
7107 (prefork_hook): Likewise.
7108 (post_fork_inferior): Likewise.
7109 (postfork_hook): Likewise.
7110 (postfork_child_hook): Likewise.
7111 (handle_v_run): Update code to deal with arguments coming from the
7112 remote host. Update calls from "start_inferior" to
7113 "create_inferior".
7114 (captured_main): Likewise. Initialize environment variable. Call
7115 "have_job_control".
7116 * server.h (post_fork_inferior): New prototype.
7117 (get_environ): Likewise.
7118 (last_status): Declare.
7119 (last_ptid): Likewise.
7120 (signal_pid): Likewise.
7121 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7122 (spu_ptrace_fun): New function.
7123 (spu_create_inferior): Adjust function prototype to reflect change
7124 on "target.h". Adjust function code to use "fork_inferior".
7125 * target.c (target_terminal_init): New function.
7126 (target_terminal_inferior): Likewise.
7127 (target_terminal_ours): Likewise.
7128 * target.h: Include <vector>.
7129 (struct target_ops) <create_inferior>: Update prototype.
7130 (create_inferior): Update macro.
7131 * utils.c (gdb_flush_out_err): New function.
7132 * win32-low.c (win32_create_inferior): Adjust function prototype
7133 and code to reflect change on "target.h".
7134
043a4934
SDJ
71352017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7136
7137 * inferiors.c (switch_to_thread): New function.
7138
15652511
SDJ
71392017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7140
7141 * Makefile.in (SFILE): Add "common/job-control.c".
7142 (OBS): Add "job-control.o".
7143
21ea5acd
SDJ
71442017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7145
7146 * Makefile: Remove "@host_makefile_frag@".
7147
e13cb306
PA
71482017-05-05 Pedro Alves <palves@redhat.com>
7149
7150 * configure: Regenerate.
7151
c94fee56
SDJ
71522017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7153
7154 * configure: Regenerate.
7155
a0ff9e1a
SM
71562017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7157
7158 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7159 software_single_step change of return type to
7160 std::vector<CORE_ADDR>.
7161 * linux-low.c (install_software_single_step_breakpoints):
7162 Likewise.
7163 * linux-low.h (install_software_single_step_breakpoints):
7164 Likewise.
7165
be628ab8
SDJ
71662017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7167
7168 * remote-utils.c: Include "gdb_termios.h" instead of
7169 "terminal.h".
7170 * terminal.h: Delete file.
7171
7c5ded6a
SDJ
71722017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7173
7174 * server.c: Include <vector>.
7175 <program_argv, wrapper_argv>: Convert to std::vector.
7176 (start_inferior): Rewrite function to use C++.
7177 (handle_v_run): Likewise. Update code that calculates the argv
7178 based on the vRun packet; use C++.
7179 (captured_main): Likewise.
7180
436252de
SM
71812017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7182
7183 * server.c (handle_v_cont): Initialize thread_resume::thread
7184 with null_ptid.
7185
9bf2a700
PA
71862017-04-05 Pedro Alves <palves@redhat.com>
7187
7188 * configure: Regenerate.
7189
a121b7c1
PA
71902017-04-05 Pedro Alves <palves@redhat.com>
7191
7192 * gdbreplay.c (sync_error): Constify.
7193 * linux-x86-low.c (push_opcode): Constify.
7194
21c8a587
PA
71952017-04-05 Pedro Alves <palves@redhat.com>
7196
7197 * win32-low.c (get_child_debug_event)
7198 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7199 Report TARGET_WAITKIND_SPURIOUS instead.
7200
fb32b4f7
PA
72012017-04-05 Pedro Alves <palves@redhat.com>
7202
e79be6e5
SM
7203 * remote-utils.c (remote_prepare, remote_open): Constify.
7204 * remote-utils.h (remote_prepare, remote_open): Constify.
7205 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7206
65dd1e59
SM
72072017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7208
7209 * Makefile.in (clean): Clear .deps.
7210
8fa5b777
SM
72112017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7212
7213 * .gitignore: Remove generated files, replace with wildcard.
7214 * (clean): Replace removal of generated files with wildcard.
7215 (version.c): Replace with...
7216 (version-generated.c): ...this.
7217 (xml-builtin.c): Replace with...
7218 (xml-builtin-generated.c): ...this.
7219 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7220 (%.c: *regformats*): Replace with...
7221 (%-generated.c: *regformats*): ...this.
7222
a12e714b
MF
72232017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7224
7225 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7226 (xtensa_fill_gregset): Call collect_register_by_name for
7227 threadptr register.
7228 (xtensa_store_gregset): Call supply_register_by_name for
7229 threadptr register.
7230
1a09b50a
MF
72312017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7232
7233 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7234 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7235 (xtensa_store_gregset): Call supply_register for all registers in
7236 a0_regnum..a0_regnum + C0_NREGS range.
7237
1a01e7c6
SM
72382017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7239
7240 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7241 (ax-ipa.o: ax.c): Remove.
7242 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7243 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7244 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7245 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7246 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7247
36bc18a8
SM
72482017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7249
7250 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7251 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7252 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7253 (errors-ipa.o: ../common/errors.c): Remove.
7254 (format-ipa.o: ../common/format.c): Remove.
7255 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7256
a8ebe3d5
SM
72572017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7258
7259 * Makefile.in (%-ipa.o: %.c): New rule.
7260 (tracepoint-ipa.o: tracepoint.c): Remove.
7261 (utils-ipa.o: utils.c): Remove.
7262 (remote-utils-ipa.o: remote-utils.c): Remove.
7263 (regcache-ipa.o: regcache.c): Remove.
7264 (i386-linux-ipa.o: i386-linux.c): Remove.
7265 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7266 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7267 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7268 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7269 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7270 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7271 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7272 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7273 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7274 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7275 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7276 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7277 (aarch64-ipa.o: aarch64.c): Remove.
7278 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7279 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7280 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7281 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7282 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7283 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7284 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7285 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7286 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7287 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7288 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7289 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7290 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7291 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7292 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7293 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7294 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7295 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7296 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7297 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7298 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7299 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7300 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7301 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7302 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7303 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7304 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7305 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7306 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7307 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7308 (tdesc-ipa.o: tdesc.c): Remove.
7309 (x32-linux-ipa.o: x32-linux.c): Remove.
7310 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7311 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7312
50cfacb7
SM
73132017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7314
7315 * Makefile.in (%.o: ../arch/%.c): New rule.
7316 (arm.o: ../arch/arm.c): Remove.
7317 (arm-linux.o: ../arch/arm-linux.c): Remove.
7318 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7319 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7320
c5a22423
SM
73212017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7322
7323 * Makefile.in (%.o: ../nat/%.c): New rule.
7324 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7325 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7326 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7327 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7328 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7329 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7330 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7331 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7332 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7333 (linux-personality.o: ../nat/linux-personality.c): Remove.
7334 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7335 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7336 (x86-linux.o: ../nat/x86-linux.c): Remove.
7337 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7338 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7339
6bda016b
SM
73402017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7341
7342 * Makefile.in (%.o: ../common/%.c): New rule.
7343 (signals.o: ../common/signals.c): Remove.
7344 (print-utils.o: ../common/print-utils.c): Remove.
7345 (rsp-low.o: ../common/rsp-low.c): Remove.
7346 (common-utils.o: ../common/common-utils.c): Remove.
7347 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7348 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7349 (vec.o: ../common/vec.c): Remove.
7350 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7351 (xml-utils.o: ../common/xml-utils.c): Remove.
7352 (ptid.o: ../common/ptid.c): Remove.
7353 (buffer.o: ../common/buffer.c): Remove.
7354 (format.o: ../common/format.c): Remove.
7355 (filestuff.o: ../common/filestuff.c): Remove.
7356 (agent.o: ../common/agent.c): Remove.
7357 (errors.o: ../common/errors.c): Remove.
7358 (environ.o: ../common/environ.c): Remove.
7359 (common-debug.o: ../common/common-debug.c): Remove.
7360 (cleanups.o: ../common/cleanups.c): Remove.
7361 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7362 (fileio.o: ../common/fileio.c): Remove.
7363 (common-regcache.o: ../common/common-regcache.c): Remove.
7364 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7365 (new-op.o: ../common/new-op.c): Remove.
7366 (btrace-common.o: ../common/btrace-common.c): Remove.
7367
21122961
SM
73682017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7369
7370 * Makefile.in (%.o: ../target/%.c): New rule.
7371 (waitstatus.o: ../target/waitstatus.c): Remove.
7372
c362e621
SM
73732017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7374
7375 * Makefile.in
7376 (%.c: ../regformats/%.dat,
7377 (%.c: ../regformats/arm/%.dat,
7378 (%.c: ../regformats/i386/%.dat,
7379 (%.c: ../regformats/rs6000/%.dat): New rules.
7380 (aarch64.c): Remove.
7381 (reg-arm.c): Remove.
7382 (arm-with-iwmmxt.c): Remove.
7383 (arm-with-vfpv2.c): Remove.
7384 (arm-with-vfpv3.c): Remove.
7385 (arm-with-neon.c): Remove.
7386 (reg-bfin.c): Remove.
7387 (reg-cris.c): Remove.
7388 (reg-crisv32.c): Remove.
7389 (i386.c): Remove.
7390 (i386-linux.c): Remove.
7391 (i386-avx.c): Remove.
7392 (i386-avx-linux.c): Remove.
7393 (i386-avx-avx512.c): Remove.
7394 (i386-avx-avx512-linux.c): Remove.
7395 (i386-mpx.c): Remove.
7396 (i386-mpx-linux.c): Remove.
7397 (i386-avx-mpx-avx512-pku.c): Remove.
7398 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7399 (i386-avx-mpx.c): Remove.
7400 (i386-avx-mpx-linux.c): Remove.
7401 (i386-mmx.c): Remove.
7402 (i386-mmx-linux.c): Remove.
7403 (reg-ia64.c): Remove.
7404 (reg-m32r.c): Remove.
7405 (reg-m68k.c): Remove.
7406 (reg-cf.c): Remove.
7407 (mips-linux.c): Remove.
7408 (mips-dsp-linux.c): Remove.
7409 (mips64-linux.c): Remove.
7410 (mips64-dsp-linux.c): Remove.
7411 (nios2-linux.c): Remove.
7412 (powerpc-32.c): Remove.
7413 (powerpc-32l.c): Remove.
7414 (powerpc-altivec32l.c): Remove.
7415 (powerpc-cell32l.c): Remove.
7416 (powerpc-vsx32l.c): Remove.
7417 (powerpc-isa205-32l.c): Remove.
7418 (powerpc-isa205-altivec32l.c): Remove.
7419 (powerpc-isa205-vsx32l.c): Remove.
7420 (powerpc-e500l.c): Remove.
7421 (powerpc-64l.c): Remove.
7422 (powerpc-altivec64l.c): Remove.
7423 (powerpc-cell64l.c): Remove.
7424 (powerpc-vsx64l.c): Remove.
7425 (powerpc-isa205-64l.c): Remove.
7426 (powerpc-isa205-altivec64l.c): Remove.
7427 (powerpc-isa205-vsx64l.c): Remove.
7428 (s390-linux32.c): Remove.
7429 (s390-linux32v1.c): Remove.
7430 (s390-linux32v2.c): Remove.
7431 (s390-linux64.c): Remove.
7432 (s390-linux64v1.c): Remove.
7433 (s390-linux64v2.c): Remove.
7434 (s390-te-linux64.c): Remove.
7435 (s390-vx-linux64.c): Remove.
7436 (s390-tevx-linux64.c): Remove.
7437 (s390x-linux64.c): Remove.
7438 (s390x-linux64v1.c): Remove.
7439 (s390x-linux64v2.c): Remove.
7440 (s390x-te-linux64.c): Remove.
7441 (s390x-vx-linux64.c): Remove.
7442 (s390x-tevx-linux64.c): Remove.
7443 (tic6x-c64xp-linux.c): Remove.
7444 (tic6x-c64x-linux.c): Remove.
7445 (tic6x-c62x-linux.c): Remove.
7446 (reg-sh.c): Remove.
7447 (reg-sparc64.c): Remove.
7448 (reg-spu.c): Remove.
7449 (amd64.c): Remove.
7450 (amd64-linux.c): Remove.
7451 (amd64-avx.c): Remove.
7452 (amd64-avx-linux.c): Remove.
7453 (amd64-avx-avx512.c): Remove.
7454 (amd64-avx-avx512-linux.c): Remove.
7455 (amd64-mpx.c): Remove.
7456 (amd64-mpx-linux.c): Remove.
7457 (amd64-avx-mpx-avx512-pku.c): Remove.
7458 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7459 (amd64-avx-mpx.c): Remove.
7460 (amd64-avx-mpx-linux.c): Remove.
7461 (x32.c): Remove.
7462 (x32-linux.c): Remove.
7463 (x32-avx.c): Remove.
7464 (x32-avx-linux.c): Remove.
7465 (x32-avx-avx512.c): Remove.
7466 (x32-avx-avx512-linux.c): Remove.
7467 (reg-xtensa.c): Remove.
7468 (reg-tilegx.c): Remove.
7469 (reg-tilegx32.c): Remove.
7470
1672e0d9
SDJ
74712017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7472
7473 * Makefile.in (SFILES): Add "common/environ.c".
7474 (OBJS): Add "common/environ.h".
7475
239b6d10
WT
74762017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7477
7478 * configure.ac: Check if the fs_base and gs_base members of
7479 `struct user_regs_struct' exist.
7480 * config.in: Regenerated.
7481 * configure: Likewise.
7482
694b382c
AT
74832017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7484
7485 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7486 target_read_memory.
7487 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7488 (get_next_pcs_syscall_next_pc): Likewise.
7489
7dc53023
LM
74902016-12-23 Luis Machado <lgustavo@codesourcery.com>
7491
7492 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7493 * nto-x86-low.c: Likewise.
7494
ad02e4fe
SM
74952016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7496
7497 * Makefile.in: Include disable-implicit-rules.mk.
7498
dcb07cfa
PA
74992016-11-23 Pedro Alves <palves@redhat.com>
7500
7501 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7502 (debug_vprintf): Use std::chrono::steady_clock instead of
7503 gettimeofday. Use '.' instead of ':'.
7504 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7505 (get_timestamp): Use std::chrono::steady_clock instead of
7506 gettimeofday.
7507
8629c02c
SM
75082016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7509
7510 * Makefile.in: Fix whitespace formatting.
7511
b593ecca
SM
75122016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7513
7514 * Makefile.in (SFILES, OBS): Flatten list and order
7515 alphabetically.
7516
9986ba08
PA
75172016-11-23 Pedro Alves <palves@redhat.com>
7518
7519 * event-loop.c (handle_file_event): Use warning.
7520 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7521 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7522 Use warning.
7523
4eefa7bc
PA
75242016-11-23 Pedro Alves <palves@redhat.com>
7525
7526 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7527 output.
7528 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7529 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7530 debug_printf and debug_flush for debug output.
7531 * server.c (handle_general_set): Likewise.
7532 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7533 output.
7534
5443506e
SM
75352016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7536
7537 * Makefile.in (.c.o): Replace rule with ...
7538 (%.o: %.c): ... this one.
7539
3b165252
SM
75402016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7541
7542 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7543 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7544 make.
7545 * configure.ac: Remove checks for the make program.
7546 * configure: Re-generate.
7547
0bcda685
PA
75482016-10-28 Pedro Alves <palves@redhat.com>
7549
7550 * Makefile.in (CXX_DIALECT): Get from configure.
7551 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7552 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7553 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7554 * config.in: Regenerate.
7555 * configure: Regenerate.
7556
c3805894
YQ
75572016-10-27 Yao Qi <yao.qi@linaro.org>
7558
7559 * linux-low.c (linux_supports_range_stepping): Return true if
7560 can_software_single_step return true.
7561
89342618
YQ
75622016-10-27 Yao Qi <yao.qi@linaro.org>
7563
7564 * inferiors.c (find_inferior_in_random): New function.
7565 * inferiors.h (find_inferior_in_random): Declare.
7566 * linux-low.c (linux_wait_for_event_filtered): Call
7567 find_inferior_in_random instead of find_inferior.
7568
e3652c84
YQ
75692016-10-27 Yao Qi <yao.qi@linaro.org>
7570
7571 * linux-low.c (linux_wait_1): If single-step breakpoints are
7572 inserted, remove them.
7573
5a04c4cf
PA
75742016-10-26 Pedro Alves <palves@redhat.com>
7575
7576 * linux-low.c (handle_extended_wait): Link parent/child fork
7577 threads.
7578 (linux_wait_1): Unlink them.
7579 (linux_set_resume_request): Ignore resume requests for
7580 already-resumed and unhandled fork child threads.
7581 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7582 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7583 New functions.
7584 (handle_v_requests) <vCont>: Don't call require_running.
7585 * server.h (in_queued_stop_replies): New declaration.
7586
cb93dc7f
YQ
75872016-10-24 Yao Qi <yao.qi@linaro.org>
7588
7589 PR server/20733
7590 * linux-aarch64-low.c (append_insns): Cast the return value to
7591 'uint32_t *'.
7592
a1078bea
YQ
75932016-10-10 Yao Qi <yao.qi@linaro.org>
7594
7595 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7596
1fb77080
SDJ
75972016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7598
7599 * target.c (target_supports_multi_process): New function, moved
7600 from...
7601 * target.h (target_supports_multi_process): ... here. Remove
7602 macro.
7603
39b5a3b9
TT
76042016-10-05 Tom Tromey <tom@tromey.com>
7605
7606 PR remote/20655:
7607 * tracepoint.c (handle_tracepoint_bkpts): Check
7608 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7609
c1d0b70a
YQ
76102016-10-05 Yao Qi <yao.qi@linaro.org>
7611
7612 * configure.srv: Update the path of arm-*.xml files.
7613
0a69eedb
YQ
76142016-10-05 Terry Guo <terry.guo@arm.com>
7615 Yao Qi <yao.qi@linaro.org>
7616
7617 * Makefile.in: Adjust the path of rules.
7618 * configure.srv: Update the path of xml files.
7619 * regformats/arm-with-iwmmxt.dat: Regenerated.
7620 * regformats/arm-with-neon.dat: Likewise.
7621 * regformats/arm-with-vfpv2.dat: Likewise.
7622 * regformats/arm-with-vfpv3.dat Likewise.
7623
17e16485
YQ
76242016-09-30 Yao Qi <yao.qi@linaro.org>
7625
7626 PR gdbserver/20627
7627 * target.c (target_stop_and_wait): Don't call
7628 target_continue_no_signal, use resume_stop instead.
7629
edeeb602
YQ
76302016-09-26 Yao Qi <yao.qi@linaro.org>
7631
7632 * linux-low.c (linux_wait_1): Call debug_exit.
7633
503b1c39
PA
76342016-09-23 Pedro Alves <palves@redhat.com>
7635
7636 * Makefile.in (SFILES): Add common/new-op.c.
7637 (OBS): Add common/new-op.o.
7638 (new-op.o): New rule.
7639
74172ecf
SM
76402016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7641
7642 * .gitinore: Ignore more files.
7643
fc6cda2e
YQ
76442016-09-21 Yao Qi <yao.qi@linaro.org>
7645
7646 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7647 23.
7648
bc1e6c81
SDJ
76492016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7650
7651 * server.c (start_inferior): Call target_mourn_inferior instead of
7652 mourn_inferior; pass ptid_t argument to it.
7653 (resume): Likewise.
7654 (handle_target_event): Likewise.
7655 * target.c (target_mourn_inferior): New function.
7656 * target.h (mourn_inferior): Delete macro.
7657
0e00e962
AA
76582016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7659
7660 * linux-low.c (lwp_is_stepping): New function.
7661
1d8cb77d
CL
76622016-09-06 Carl Love <cel@us.ibm.com>
7663
7664 * server.c (start_inferior): Fixed comment, requested comment change
7665 didn't get updated correctly. Removed reference to ptrace () call as
7666 it is only true on Linux systems.
7667
7313bced
CL
76682016-09-06 Carl Love <cel@us.ibm.com>
7669
7670 * server.c (start_inferior): Do not call
7671 function target_post_create_inferior () if the
7672 inferior process has already exited.
7673
cf6de44d
PA
76742016-09-05 Pedro Alves <palves@redhat.com>
7675
7676 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7677 (COMPILE.pre, CC_LD): Use CXX directly.
7678 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7679 * acinclude.m4: Don't include build-with-cxx.m4.
7680 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7681 * configure: Regenerate.
7682
c1da6748
AT
76832016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7684
7685 PR gdb/19495
7686 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7687 call writing data to own_buf.
7688
f2b9e3df
SDJ
76892016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7690
7691 * target.c (mywait): Call target_wait instead of
7692 the_target->wait.
7693 (target_wait): New function.
7694
049a8570
SDJ
76952016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7696
7697 * server.c (start_inferior): New variable 'ptid'. Replace calls
7698 to the_target->resume by target_continue{,_no_signal}, depending
7699 on the case.
7700 * target.c (target_stop_and_wait): Call target_continue_no_signal
7701 instead of the_target->resume.
7702 (target_continue): New function.
7703
3aa5cfa0
AT
77042016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7705
7706 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7707
754653a7
AZ
77082016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7709
7710 PR server/20491
7711 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7712 ps_prochandle.
7713 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7714 * linux-arm-low.c (ps_get_thread_area): Likewise.
7715 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7716 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7717 * linux-mips-low.c (ps_get_thread_area): Likewise.
7718 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7719 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7720 * linux-x86-low.c (ps_get_thread_area): Likewise.
7721 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7722
ed036b40
PA
77232016-08-19 Pedro Alves <palves@redhat.com>
7724
7725 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7726
c8ef42ee
PA
77272016-08-19 Pedro Alves <palves@redhat.com>
7728
7729 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7730 comment. Use memcpy instead of casting through unsigned long.
7731
9c235a72
PA
77322016-08-19 Pedro Alves <palves@redhat.com>
7733
7734 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7735 allocating around 0x80000000.
7736
201506da
PA
77372016-08-19 Pedro Alves <palves@redhat.com>
7738
7739 PR gdb/20415
7740 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7741 (x32-avx512-linux-ipa.o): New rules.
7742 * configure.ac (x86_64-*-linux*): New x32 check.
7743 * configure.srv (ipa_x32_linux_regobj): New.
7744 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7745 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7746 descriptions.
7747 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7748 descriptions.
7749 * configure: Regenerate.
7750
f348d89a
PA
77512016-08-09 Pedro Alves <palves@redhat.com>
7752
7753 PR gdb/18653
7754 * Makefile.in (OBS): Add signals-state-save-restore.o.
7755 (signals-state-save-restore.o): New rule.
7756 * config.in: Regenerate.
7757 * configure: Regenerate.
7758 * linux-low.c: Include "signals-state-save-restore.h".
7759 (linux_create_inferior): Call
7760 restore_original_signals_state.
7761 * server.c: Include "dispositions-save-restore.h".
7762 (captured_main): Call save_original_signals_state.
7763
1baf5149
PA
77642016-08-05 Pedro Alves <palves@redhat.com>
7765
7766 * configure: Regenerate.
7767
fcd4a73d
YQ
77682016-08-04 Yao Qi <yao.qi@linaro.org>
7769
7770 * linux-low.c (regsets_fetch_inferior_registers): Check
7771 errno is ESRCH or not.
7772
979659d0
YQ
77732016-08-02 Yao Qi <yao.qi@linaro.org>
7774
7775 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7776 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7777 (thread_db_load_search): Update.
7778 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7779 td_ta_set_event and td_ta_event_getmsg.
7780
6598661d
PA
77812016-07-26 Pedro Alves <palves@redhat.com>
7782
7783 PR server/20414
7784 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7785 of unsigned long for 64-bit registers and use uint32_t instead of
7786 unsigned int for 32-bit registers.
7787
9cf12d57
PA
77882016-07-26 Pedro Alves <palves@redhat.com>
7789
7790 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7791 to 'ptrace'.
7792
305450ed
TT
77932016-07-21 Tom Tromey <tom@tromey.com>
7794
7795 * configure: Rebuild.
7796
2583da7c
YQ
77972016-07-21 Yao Qi <yao.qi@linaro.org>
7798
7799 * mem-break.c (find_gdb_breakpoint): Cast bp to
7800 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7801
21536b36
YQ
78022016-07-21 Yao Qi <yao.qi@linaro.org>
7803
7804 * server.c (handle_v_requests): Support s and S actions
7805 if target_supports_software_single_step return true.
7806
8901d193
YQ
78072016-07-21 Yao Qi <yao.qi@linaro.org>
7808
7809 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7810 is resume_step, call maybe_hw_step.
7811 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7812 and unstop them.
7813 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7814 breakpoints or not.
7815 (proceed_one_lwp): If resume request is resume_step, install
7816 reinsert breakpoints and call maybe_hw_step.
7817
0e9a339e
YQ
78182016-07-21 Yao Qi <yao.qi@linaro.org>
7819
7820 * linux-low.c (proceed_one_lwp): Declare.
7821 (linux_resume_one_thread): Remove local variable 'step'.
7822 Lift code enqueue signal. Call proceed_one_lwp instead of
7823 linux_resume_one_lwp.
7824
4281b351
YQ
78252016-07-21 Yao Qi <yao.qi@linaro.org>
7826
7827 * linux-low.c (linux_resume_one_thread): Call
7828 enqueue_pending_signal.
7829
984a2c04
YQ
78302016-07-21 Yao Qi <yao.qi@linaro.org>
7831
7832 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7833 * inferiors.c (do_restore_current_thread_cleanup): New function.
7834 (make_cleanup_restore_current_thread): Likewise.
7835 * linux-low.c (install_software_single_step_breakpoints): Call
7836 make_cleanup_restore_current_thread. Switch current_thread to
7837 thread.
7838
bec903c9
YQ
78392016-07-21 Yao Qi <yao.qi@linaro.org>
7840
7841 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7842 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7843 (clone_one_breakpoint): Likewise.
7844 (delete_reinsert_breakpoints): Change parameter to thread.
7845 Callers updated.
7846 (has_reinsert_breakpoints): Likewise.
7847 (uninsert_reinsert_breakpoints): Likewise.
7848 (reinsert_reinsert_breakpoints): Likewise.
7849 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7850 (delete_reinsert_breakpoints): Likewise.
7851 (reinsert_reinsert_breakpoints): Likewise.
7852 (uninsert_reinsert_breakpoints): Likewise.
7853 (has_reinsert_breakpoints): Likewise.
7854
63c40ec7
YQ
78552016-07-21 Yao Qi <yao.qi@linaro.org>
7856
7857 * inferiors.c (get_thread_process): Make parameter const.
7858 * inferiors.h (get_thread_process): Update declaration.
7859 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7860 Add new parameters child_thread and parent_thread. Callers
7861 updated.
7862 * mem-break.h (clone_all_breakpoints): Update declaration.
7863
9aa76cd0
YQ
78642016-07-21 Yao Qi <yao.qi@linaro.org>
7865
7866 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7867 <command_list, handler>: Remove.
7868 (struct gdb_breakpoint): New.
7869 (struct other_breakpoint): New.
7870 (struct reinsert_breakpoint): New.
7871 (is_gdb_breakpoint): New function.
7872 (any_persistent_commands): Update command_list if
7873 is_gdb_breakpoint returns true.
7874 (set_breakpoint): Create breakpoints according to their types.
7875 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7876 (set_gdb_breakpoint_1): Likewise.
7877 (set_gdb_breakpoint): Likewise.
7878 (clear_breakpoint_conditions): Change parameter type to
7879 'struct gdb_breakpoint *'.
7880 (clear_breakpoint_commands): Likewise.
7881 (clear_breakpoint_conditions_and_commands): Likewise.
7882 (add_condition_to_breakpoint): Likewise.
7883 (add_breakpoint_condition): Likewise.
7884 (add_commands_to_breakpoint): Likewise.
7885 (check_breakpoints): Check other_breakpoint.
7886 (clone_one_breakpoint): Clone breakpopint according to its type.
7887 * mem-break.h (struct gdb_breakpoint): Declare.
7888 (set_gdb_breakpoint): Update declaration.
7889 (clear_breakpoint_conditions_and_commands): Likewise.
7890 (add_breakpoint_condition): Likewise.
7891 (add_breakpoint_commands): Likewise.
7892 * server.c (process_point_options): Change parameter type to
7893 'struct gdb_breakpoint *'.
7894
811f8301
YQ
78952016-07-21 Yao Qi <yao.qi@linaro.org>
7896
7897 * mem-break.c (set_breakpoint_at): Rename it to ...
7898 (set_breakpoint_type_at): ... it.
7899 (set_breakpoint_at): Call set_breakpoint_type_at.
7900 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7901 * mem-break.h (set_breakpoint_at): Update comments.
7902
b1c51e36
CLT
79032016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7904
7905 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7906 to buf parameter.
7907 (nios2_store_gregset): Likewise.
7908
ced2dffb
PA
79092016-07-01 Pedro Alves <palves@redhat.com>
7910 Antoine Tremblay <antoine.tremblay@ericsson.com>
7911
7912 * linux-low.c: Change interface to take the target lwp_info
7913 pointer directly and return void. Handle detaching from a zombie
7914 thread.
7915 (linux_detach_lwp_callback): New function.
7916 (linux_detach): Detach from the leader thread after detaching from
7917 the clone threads.
7918
2ac09a5b
YQ
79192016-06-28 Yao Qi <yao.qi@linaro.org>
7920
7921 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7922 for variable new_offset.
7923 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7924 (aarch64_ftrace_insn_reloc_cb): Likewise.
7925 (aarch64_ftrace_insn_reloc_tb): Likewise.
7926 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7927 PRIx64 instead of PRIx32.
7928
79e7fd4f
YQ
79292016-06-28 Yao Qi <yao.qi@linaro.org>
7930
7931 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7932 (the_low_target): Install arm_get_syscall_trapinfo.
7933
061fc021
YQ
79342016-06-28 Yao Qi <yao.qi@linaro.org>
7935
7936 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7937 function.
7938 (the_low_target): Install aarch64_get_syscall_trapinfo.
7939
4cc32bec
YQ
79402016-06-28 Yao Qi <yao.qi@linaro.org>
7941
7942 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7943 Callers updated.
7944 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7945 Remove parameter sysno.
7946 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7947 sysret.
7948
782c1122
AA
79492016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7950
7951 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7952 (s390_emit_ne_goto): Likewise.
7953 (s390_emit_lt_goto): Likewise.
7954 (s390_emit_le_goto): Likewise.
7955 (s390_emit_gt_goto): Likewise.
7956 (s390_emit_ge_goto): Likewise.
7957 (s390x_emit_eq_goto): Likewise.
7958 (s390x_emit_ne_goto): Likewise.
7959 (s390x_emit_lt_goto): Likewise.
7960 (s390x_emit_le_goto): Likewise.
7961 (s390x_emit_gt_goto): Likewise.
7962 (s390x_emit_ge_goto): Likewise.
7963 (s390_emit_ops_impl): Mark variable static.
7964 (s390x_emit_ops): Likewise.
7965
2e7b624b
YQ
79662016-06-17 Yao Qi <yao.qi@linaro.org>
7967
7968 * linux-low.c (handle_extended_wait): Call
7969 uninsert_reinsert_breakpoints for the parent process. Remove
7970 reinsert breakpoints from the child process. Reinsert them to
7971 the parent process when vfork is done.
7972 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7973 (reinsert_reinsert_breakpoints): New function.
7974 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7975 (reinsert_reinsert_breakpoints): Declare.
7976
8a81c5d7
YQ
79772016-06-17 Yao Qi <yao.qi@linaro.org>
7978
7979 * linux-low.c (handle_extended_wait): If the parent is doing
7980 step-over, remove the reinsert breakpoints from the forked child.
7981
f50bf8e5
YQ
79822016-06-17 Yao Qi <yao.qi@linaro.org>
7983
7984 * linux-low.c (unsuspend_all_lwps): Declare.
7985 (linux_low_filter_event): If thread exited, call finish_step_over.
7986 If step-over is finished, unsuspend other threads.
7987
8376a3cb
YQ
79882016-06-17 Yao Qi <yao.qi@linaro.org>
7989
7990 * linux-low.c (linux_resume_one_lwp_throw): Assert
7991 has_reinsert_breakpoints returns false.
7992 * mem-break.c (delete_disabled_breakpoints): Assert
7993 bp type isn't reinsert_breakpoint.
7994
f79b145d
YQ
79952016-06-17 Yao Qi <yao.qi@linaro.org>
7996
7997 * linux-low.c (maybe_hw_step): New function.
7998 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7999 (finish_step_over): Switch current_thread to lwp temporarily,
8000 and assert has_reinsert_breakpoints returns true.
8001 (proceed_one_lwp): Call maybe_hw_step.
8002 * mem-break.c (has_reinsert_breakpoints): New function.
8003 * mem-break.h (has_reinsert_breakpoints): Declare.
8004
0ae534d2
JT
80052016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8006
8007 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8008
fcdad592
YQ
80092016-05-17 Yao Qi <yao.qi@linaro.org>
8010
8011 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8012 instead of find_inferior.
8013
9e784964
YQ
80142016-05-05 Yao Qi <yao.qi@linaro.org>
8015
8016 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8017 Initialize res to zero.
8018
cf2ebb6e
YQ
80192016-05-05 Yao Qi <yao.qi@linaro.org>
8020
8021 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8022 to uint32_t.
8023
c1aebf87
UW
80242016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8025
8026 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8027 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8028 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8029
35fd2deb 80302016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8031 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8032
8033 * tracepoint.c (write_inferior_int8): New function.
8034 (cmd_qtenable_disable): Write enable flag using
8035 write_inferior_int8.
8036
484b3c32
YQ
80372016-04-25 Yao Qi <yao.qi@linaro.org>
8038
8039 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8040 (need_step_over_p): Return zero if the LWP has pending signals
8041 can be delivered on software single step target.
8042
85ba7d86
YQ
80432016-04-25 Yao Qi <yao.qi@linaro.org>
8044
8045 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8046 return instead of error.
8047
3539aa13
YQ
80482016-04-22 Yao Qi <yao.qi@linaro.org>
8049
8050 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8051 to 23.
8052
5b061e98
YQ
80532016-04-22 Yao Qi <yao.qi@linaro.org>
8054
8055 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8056 signal when stepping over breakpoint with software single
8057 step.
8058
3451269c
PA
80592016-04-21 Pedro Alves <palves@redhat.com>
8060
8061 * linux-s390-low.c (s390_collect_ptrace_register)
8062 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8063 add casts.
8064 (s390_check_regset): Use void * instead of gdb_byte *.
8065
a2358508
PA
80662016-04-20 Pedro Alves <palves@redhat.com>
8067
8068 * configure: Renegerate.
8069
6885166d
YQ
80702016-04-20 Yao Qi <yao.qi@linaro.org>
8071
8072 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8073 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8074 number 16.
8075 (arm_store_gregset): Likewise.
8076
2b863f51
WT
80772016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8078
8079 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8080 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8081 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8082 (amd64-avx-mpx-linux.c): New rules.
8083 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8084 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8085 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8086 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8087 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8088 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8089 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8090 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8091 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8092 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8093 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8094 * linux-x86-low.c (x86_linux_read_description): Add case for
8095 X86_XSTATE_AVX_MPX_MASK.
8096 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8097 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8098 init_registers_i386_avx_mpx_linux.
8099 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8100 (initialize_low_tracepoint): Call
8101 init_registers_i386_avx_mpx_linux.
8102 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8103 (initialize_low_tracepoint): Call
8104 init_registers_amd64_avx_mpx_linux.
8105 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8106 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8107 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8108 declarations.
8109
9b30624b
PA
81102016-04-18 Pedro Alves <palves@redhat.com>
8111
8112 * configure: Regenerate.
8113
45e3745e
AT
81142016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8115
8116 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8117 (aarch64_emit_sub): Likewise.
8118
2afc13ff
PA
81192016-04-12 Pedro Alves <palves@redhat.com>
8120
8121 * utils.c (prepare_to_throw_exception): Delete.
8122
6e774b13
SM
81232016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8124
8125 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8126
4dca19f8
MK
81272016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8128
8129 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8130
d0a9981f
MK
81312016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8132
8133 * linux-aarch64-ipa.c: Add <elf.h> include.
8134 * linux-ppc-ipa.c: Add <elf.h> include.
8135 * linux-s390-ipa.c: Add <elf.h> include.
8136
252db07e
MK
81372016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8138
8139 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8140 (get_raw_reg_ptr): Likewise.
8141 (get_trace_state_variable_value_ptr): Likewise.
8142 (set_trace_state_variable_value_ptr): Likewise.
8143 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8144 char *.
8145
14e2b6d9
MK
81462016-03-31 Wei-cheng Wang <cole945@gmail.com>
8147 Marcin Kościelnicki <koriakin@0x04.net>
8148
8149 PR/17221
8150 * linux-ppc-low.c (emit_insns): New function.
8151 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8152 (ppc_emit_prologue): New function.
8153 (ppc_emit_epilogue): New function.
8154 (ppc_emit_add): New function.
8155 (ppc_emit_sub): New function.
8156 (ppc_emit_mul): New function.
8157 (ppc_emit_lsh): New function.
8158 (ppc_emit_rsh_signed): New function.
8159 (ppc_emit_rsh_unsigned): New function.
8160 (ppc_emit_ext): New function.
8161 (ppc_emit_zero_ext): New function.
8162 (ppc_emit_log_not): New function.
8163 (ppc_emit_bit_and): New function.
8164 (ppc_emit_bit_or): New function.
8165 (ppc_emit_bit_xor): New function.
8166 (ppc_emit_bit_not): New function.
8167 (ppc_emit_equal): New function.
8168 (ppc_emit_less_signed): New function.
8169 (ppc_emit_less_unsigned): New function.
8170 (ppc_emit_ref): New function.
8171 (ppc_emit_const): New function.
8172 (ppc_emit_reg): New function.
8173 (ppc_emit_pop): New function.
8174 (ppc_emit_stack_flush): New function.
8175 (ppc_emit_swap): New function.
8176 (ppc_emit_stack_adjust): New function.
8177 (ppc_emit_call): New function.
8178 (ppc_emit_int_call_1): New function.
8179 (ppc_emit_void_call_2): New function.
8180 (ppc_emit_if_goto): New function.
8181 (ppc_emit_goto): New function.
8182 (ppc_emit_eq_goto): New function.
8183 (ppc_emit_ne_goto): New function.
8184 (ppc_emit_lt_goto): New function.
8185 (ppc_emit_le_goto): New function.
8186 (ppc_emit_gt_goto): New function.
8187 (ppc_emit_ge_goto): New function.
8188 (ppc_write_goto_address): New function.
8189 (ppc_emit_ops_impl): New static variable.
8190 (ppc64v1_emit_prologue): New function.
8191 (ppc64v2_emit_prologue): New function.
8192 (ppc64_emit_epilogue): New function.
8193 (ppc64_emit_add): New function.
8194 (ppc64_emit_sub): New function.
8195 (ppc64_emit_mul): New function.
8196 (ppc64_emit_lsh): New function.
8197 (ppc64_emit_rsh_signed): New function.
8198 (ppc64_emit_rsh_unsigned): New function.
8199 (ppc64_emit_ext): New function.
8200 (ppc64_emit_zero_ext): New function.
8201 (ppc64_emit_log_not): New function.
8202 (ppc64_emit_bit_and): New function.
8203 (ppc64_emit_bit_or): New function.
8204 (ppc64_emit_bit_xor): New function.
8205 (ppc64_emit_bit_not): New function.
8206 (ppc64_emit_equal): New function.
8207 (ppc64_emit_less_signed): New function.
8208 (ppc64_emit_less_unsigned): New function.
8209 (ppc64_emit_ref): New function.
8210 (ppc64_emit_const): New function.
8211 (ppc64v1_emit_reg): New function.
8212 (ppc64v2_emit_reg): New function.
8213 (ppc64_emit_pop): New function.
8214 (ppc64_emit_stack_flush): New function.
8215 (ppc64_emit_swap): New function.
8216 (ppc64v1_emit_call): New function.
8217 (ppc64v2_emit_call): New function.
8218 (ppc64v1_emit_int_call_1): New function.
8219 (ppc64v2_emit_int_call_1): New function.
8220 (ppc64v1_emit_void_call_2): New function.
8221 (ppc64v2_emit_void_call_2): New function.
8222 (ppc64_emit_if_goto): New function.
8223 (ppc64_emit_eq_goto): New function.
8224 (ppc64_emit_ne_goto): New function.
8225 (ppc64_emit_lt_goto): New function.
8226 (ppc64_emit_le_goto): New function.
8227 (ppc64_emit_gt_goto): New function.
8228 (ppc64_emit_ge_goto): New function.
8229 (ppc64v1_emit_ops_impl): New static variable.
8230 (ppc64v2_emit_ops_impl): New static variable.
8231 (ppc_emit_ops): New function.
8232 (linux_low_target): Wire in ppc_emit_ops.
8233
a2174ba4
MK
82342016-03-31 Wei-cheng Wang <cole945@gmail.com>
8235 Marcin Kościelnicki <koriakin@0x04.net>
8236
8237 PR/17221
8238 * Makefile.in: Add powerpc-*-ipa.o
8239 * configure.srv: Add ipa_obj for powerpc*-linux.
8240 * linux-ppc-ipa.c: New file.
8241 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8242 includes.
8243 (PPC_FIELD): New macro.
8244 (PPC_SEXT): New macro.
8245 (PPC_OP6): New macro.
8246 (PPC_BO): New macro.
8247 (PPC_LI): New macro.
8248 (PPC_BD): New macro.
8249 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8250 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8251 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8252 (ppc_get_thread_area): New function.
8253 (is_elfv2_inferior): New function.
8254 (gen_ds_form): New function.
8255 (GEN_STD): New macro.
8256 (GEN_STDU): New macro.
8257 (GEN_LD): New macro.
8258 (GEN_LDU): New macro.
8259 (gen_d_form): New function.
8260 (GEN_ADDI): New macro.
8261 (GEN_ADDIS): New macro.
8262 (GEN_LI): New macro.
8263 (GEN_LIS): New macro.
8264 (GEN_ORI): New macro.
8265 (GEN_ORIS): New macro.
8266 (GEN_LWZ): New macro.
8267 (GEN_STW): New macro.
8268 (GEN_STWU): New macro.
8269 (gen_xfx_form): New function.
8270 (GEN_MFSPR): New macro.
8271 (GEN_MTSPR): New macro.
8272 (GEN_MFCR): New macro.
8273 (GEN_MTCR): New macro.
8274 (GEN_SYNC): New macro.
8275 (GEN_LWSYNC): New macro.
8276 (gen_x_form): New function.
8277 (GEN_OR): New macro.
8278 (GEN_MR): New macro.
8279 (GEN_LWARX): New macro.
8280 (GEN_STWCX): New macro.
8281 (GEN_CMPW): New macro.
8282 (gen_md_form): New function.
8283 (GEN_RLDICL): New macro.
8284 (GEN_RLDICR): New macro.
8285 (gen_i_form): New function.
8286 (GEN_B): New macro.
8287 (GEN_BL): New macro.
8288 (gen_b_form): New function.
8289 (GEN_BNE): New macro.
8290 (GEN_LOAD): New macro.
8291 (GEN_STORE): New macro.
8292 (gen_limm): New function.
8293 (gen_atomic_xchg): New function.
8294 (gen_call): New function.
8295 (ppc_relocate_instruction): New function.
8296 (ppc_install_fast_tracepoint_jump_pad): New function.
8297 (ppc_get_min_fast_tracepoint_insn_len): New function.
8298 (ppc_get_ipa_tdesc_idx): New function.
8299 (the_low_target): Wire in the new functions.
8300 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8301 tdescs.
8302 * linux-ppc-tdesc.h: New file.
8303
a13c4696
MK
83042016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8305
8306 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8307 (alloc_jump_pad_buffer): New function.
8308 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8309 (alloc_jump_pad_buffer): New function.
8310 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8311 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8312 (alloc_jump_pad_buffer): New function.
8313 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8314 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8315 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8316 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8317
1cda1512
MK
83182016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8319
8320 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8321 * linux-amd64-ipa.c: Likewise.
8322 * linux-i386-ipa.c: Likewise.
8323 * linux-s390-ipa.c: Likewise.
8324 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8325 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8326 set_trace_state_variable_value_ptr.
8327 (struct ipa_sym_addresses): Likewise.
8328 (symbol_list): Likewise.
8329 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8330 accessing gdb_collect directly.
8331 (gdb_collect_ptr_type): New typedef.
8332 (get_raw_reg_ptr_type): New typedef.
8333 (get_trace_state_variable_value_ptr_type): New typedef.
8334 (set_trace_state_variable_value_ptr_type): New typedef.
8335 (gdb_collect_ptr): New global.
8336 (get_raw_reg_ptr): New global.
8337 (get_trace_state_variable_value_ptr): New global.
8338 (set_trace_state_variable_value_ptr): New global.
8339 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8340 accessing get_raw_reg directly.
8341 (get_get_tsv_func_addr): Likewise for
8342 get_trace_state_variable_value_ptr.
8343 (get_set_tsv_func_addr): Likewise for
8344 set_trace_state_variable_value_ptr.
8345 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8346
72fb5488
SM
83472016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8348
8349 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8350
28170b88
MK
83512016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8352
8353 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8354 packets.
8355 (relocate_instruction): Remove own_buf.
8356 * server.c (own_buf): Make global.
8357 (handle_v_requests): Make global.
8358 * server.h (own_buf): New declaration.
8359 (handle_v_requests): New prototype.
8360
f39e8743
MK
83612016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8362
8363 PR 18377
8364 * linux-s390-low.c (add_insns): New function.
8365 (s390_emit_prologue): New function.
8366 (s390_emit_epilogue): New function.
8367 (s390_emit_add): New function.
8368 (s390_emit_sub): New function.
8369 (s390_emit_mul): New function.
8370 (s390_emit_lsh): New function.
8371 (s390_emit_rsh_signed): New function.
8372 (s390_emit_rsh_unsigned): New function.
8373 (s390_emit_ext): New function.
8374 (s390_emit_log_not): New function.
8375 (s390_emit_bit_and): New function.
8376 (s390_emit_bit_or): New function.
8377 (s390_emit_bit_xor): New function.
8378 (s390_emit_bit_not): New function.
8379 (s390_emit_equal): New function.
8380 (s390_emit_less_signed): New function.
8381 (s390_emit_less_unsigned): New function.
8382 (s390_emit_ref): New function.
8383 (s390_emit_if_goto): New function.
8384 (s390_emit_goto): New function.
8385 (s390_write_goto_address): New function.
8386 (s390_emit_litpool): New function.
8387 (s390_emit_const): New function.
8388 (s390_emit_call): New function.
8389 (s390_emit_reg): New function.
8390 (s390_emit_pop): New function.
8391 (s390_emit_stack_flush): New function.
8392 (s390_emit_zero_ext): New function.
8393 (s390_emit_swap): New function.
8394 (s390_emit_stack_adjust): New function.
8395 (s390_emit_set_r2): New function.
8396 (s390_emit_int_call_1): New function.
8397 (s390_emit_void_call_2): New function.
8398 (s390_emit_eq_goto): New function.
8399 (s390_emit_ne_goto): New function.
8400 (s390_emit_lt_goto): New function.
8401 (s390_emit_le_goto): New function.
8402 (s390_emit_gt_goto): New function.
8403 (s390_emit_ge_goto): New function.
8404 (s390x_emit_prologue): New function.
8405 (s390x_emit_epilogue): New function.
8406 (s390x_emit_add): New function.
8407 (s390x_emit_sub): New function.
8408 (s390x_emit_mul): New function.
8409 (s390x_emit_lsh): New function.
8410 (s390x_emit_rsh_signed): New function.
8411 (s390x_emit_rsh_unsigned): New function.
8412 (s390x_emit_ext): New function.
8413 (s390x_emit_log_not): New function.
8414 (s390x_emit_bit_and): New function.
8415 (s390x_emit_bit_or): New function.
8416 (s390x_emit_bit_xor): New function.
8417 (s390x_emit_bit_not): New function.
8418 (s390x_emit_equal): New function.
8419 (s390x_emit_less_signed): New function.
8420 (s390x_emit_less_unsigned): New function.
8421 (s390x_emit_ref): New function.
8422 (s390x_emit_if_goto): New function.
8423 (s390x_emit_const): New function.
8424 (s390x_emit_call): New function.
8425 (s390x_emit_reg): New function.
8426 (s390x_emit_pop): New function.
8427 (s390x_emit_stack_flush): New function.
8428 (s390x_emit_zero_ext): New function.
8429 (s390x_emit_swap): New function.
8430 (s390x_emit_stack_adjust): New function.
8431 (s390x_emit_int_call_1): New function.
8432 (s390x_emit_void_call_2): New function.
8433 (s390x_emit_eq_goto): New function.
8434 (s390x_emit_ne_goto): New function.
8435 (s390x_emit_lt_goto): New function.
8436 (s390x_emit_le_goto): New function.
8437 (s390x_emit_gt_goto): New function.
8438 (s390x_emit_ge_goto): New function.
8439 (s390_emit_ops): New function.
8440 (struct linux_target_ops): Fill in emit_ops hook.
8441
abd9baf9
MK
84422016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8443
8444 PR 18377
8445 * Makefile.in: Add s390 IPA files.
8446 * configure.srv: Build IPA for s390.
8447 * linux-s390-ipa.c: New file.
8448 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8449 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8450 (tdesc_s390_linux32): Likewise.
8451 (init_registers_s390_linux32v1): Likewise.
8452 (tdesc_s390_linux32v1): Likewise.
8453 (init_registers_s390_linux32v2): Likewise.
8454 (tdesc_s390_linux32v2): Likewise.
8455 (init_registers_s390_linux64): Likewise.
8456 (tdesc_s390_linux64): Likewise.
8457 (init_registers_s390_linux64v1): Likewise.
8458 (tdesc_s390_linux64v1): Likewise.
8459 (init_registers_s390_linux64v2): Likewise.
8460 (tdesc_s390_linux64v2): Likewise.
8461 (init_registers_s390_te_linux64): Likewise.
8462 (tdesc_s390_te_linux64): Likewise.
8463 (init_registers_s390_vx_linux64): Likewise.
8464 (tdesc_s390_vx_linux64): Likewise.
8465 (init_registers_s390_tevx_linux64): Likewise.
8466 (tdesc_s390_tevx_linux64): Likewise.
8467 (init_registers_s390x_linux64): Likewise.
8468 (tdesc_s390x_linux64): Likewise.
8469 (init_registers_s390x_linux64v1): Likewise.
8470 (tdesc_s390x_linux64v1): Likewise.
8471 (init_registers_s390x_linux64v2): Likewise.
8472 (tdesc_s390x_linux64v2): Likewise.
8473 (init_registers_s390x_te_linux64): Likewise.
8474 (tdesc_s390x_te_linux64): Likewise.
8475 (init_registers_s390x_vx_linux64): Likewise.
8476 (tdesc_s390x_vx_linux64): Likewise.
8477 (init_registers_s390x_tevx_linux64): Likewise.
8478 (tdesc_s390x_tevx_linux64): Likewise.
8479 (have_hwcap_s390_vx): New static variable.
8480 (s390_arch_setup): Fill have_hwcap_s390_vx.
8481 (s390_get_thread_area): New function.
8482 (s390_ft_entry_gpr_esa): New const.
8483 (s390_ft_entry_gpr_zarch): New const.
8484 (s390_ft_entry_misc): New const.
8485 (s390_ft_entry_fr): New const.
8486 (s390_ft_entry_vr): New const.
8487 (s390_ft_main_31): New const.
8488 (s390_ft_main_64): New const.
8489 (s390_ft_exit_fr): New const.
8490 (s390_ft_exit_vr): New const.
8491 (s390_ft_exit_misc): New const.
8492 (s390_ft_exit_gpr_esa): New const.
8493 (s390_ft_exit_gpr_zarch): New const.
8494 (append_insns): New function.
8495 (s390_relocate_instruction): New function.
8496 (s390_install_fast_tracepoint_jump_pad): New function.
8497 (s390_get_min_fast_tracepoint_insn_len): New function.
8498 (s390_get_ipa_tdesc_idx): New function.
8499 (struct linux_target_ops): Wire in the above functions.
8500 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8501 * linux-s390-tdesc.h: New file.
8502
a4105d04
MK
85032016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8504
8505 * linux-s390-low.c (s390_supports_tracepoints): New function.
8506 (struct linux_target_ops): Fill supports_tracepoints hook.
8507
35ac8b3e
YQ
85082016-03-18 Yao Qi <yao.qi@linaro.org>
8509
8510 * linux-low.c (lwp_signal_can_be_delivered): New function.
8511 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8512
94610ec4
YQ
85132016-03-18 Yao Qi <yao.qi@linaro.org>
8514
8515 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8516 0 if signal is enqueued. Remove 'signal' from one debugging
8517 message. Move one debugging message to some lines below.
8518 Remove code setting 'signal' to 0.
8519
80aea927
YQ
85202016-03-18 Yao Qi <yao.qi@linaro.org>
8521
8522 * linux-low.c (linux_low_filter_event): Remove redundant
8523 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8524
b04fd3be
MK
85252016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8526
8527 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8528 (struct linux_target_ops): Wire in the above.
8529
c40c8d4b
YQ
85302016-03-03 Yao Qi <yao.qi@linaro.org>
8531
8532 * linux-low.c: Update comments to start_step_over.
8533
0f8288ae
YQ
85342016-03-03 Yao Qi <yao.qi@linaro.org>
8535
8536 PR server/19736
8537 * linux-low.c (handle_extended_wait): Set child suspended
8538 if event_lwp->bp_reinsert isn't zero.
8539
fdbd04a8
YQ
85402016-03-02 Yao Qi <yao.qi@linaro.org>
8541
8542 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8543 enqueue_pending_signal.
8544
6896a8fa
MK
85452016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8546
8547 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8548 is actually loaded.
8549
ab503087
MK
85502016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8551
8552 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8553 (s390_regmap_3264) [!__s390x__]: New global.
8554 (s390_collect_ptrace_register): Skip map entries containing -1.
8555 (s390_supply_ptrace_register): Ditto.
8556 (s390_fill_gprs_high): New function.
8557 (s390_store_gprs_high): New function.
8558 (s390_regsets): Add NT_S390_HIGH_GPRS.
8559 (s390_get_hwcap): Enable on 31-bit.
8560 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8561 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8562 Detect NT_S390_HIGH_GPRS.
8563 (s390_usrregs_info_3264): Enable on 31-bit.
8564 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8565 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8566
ae91f625
MK
85672016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8568
8569 PR gdb/13808
8570 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8571 * configure.srv: Ditto.
8572 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8573 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8574 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8575 (init_registers_amd64_linux): Remove prototype.
8576 (tdesc_amd64_linux): Remove declaration.
8577 (get_ipa_tdesc): New function.
8578 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8579 initialize remaining tdescs.
8580 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8581 (init_registers_i386_linux): Remove prototype.
8582 (tdesc_i386_linux): Remove declaration.
8583 (get_ipa_tdesc): New function.
8584 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8585 initialize remaining tdescs.
8586 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8587 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8588 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8589 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8590 (x86_get_ipa_tdesc_idx): New function.
8591 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8592 * linux-x86-tdesc.h: New file.
8593 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8594 (target_get_ipa_tdesc_idx): New macro.
8595 * tracepoint.c (ipa_tdesc_idx): New macro.
8596 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8597 (symbol_list): Add ipa_tdesc_idx.
8598 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8599 (ipa_tdesc): Remove.
8600 (ipa_tdesc_idx): New variable.
8601 (get_context_regcache): Use get_ipa_tdesc.
8602 (gdb_collect): Ditto.
8603 (gdb_probe): Ditto.
8604 * tracepoint.h (get_ipa_tdesc): New prototype.
8605 (ipa_tdesc): Remove.
8606
e7ad2f14
PA
86072016-02-24 Pedro Alves <palves@redhat.com>
8608
8609 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8610 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8611 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8612 Factor out common code between the USE_SIGTRAP_SIGINFO and
8613 !USE_SIGTRAP_SIGINFO blocks.
8614 (linux_low_filter_event): Call save_stop_reason instead of
8615 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8616 Update comments.
8617 (linux_wait_1): Update comments.
8618
657f9cde
WW
86192016-02-24 Wei-cheng Wang <cole945@gmail.com>
8620
8621 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8622 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8623 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8624 ppc_insert_point, ppc_remove_point.
8625
b00b61e1
MK
86262016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8627
8628 * linux-s390-low.c (s390_supports_z_point_type): New function.
8629 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8630
553cb527
YQ
86312016-02-16 Yao Qi <yao.qi@linaro.org>
8632
8633 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8634 PC. Get pc from regcache_read_pc.
8635
a5652c21
YQ
86362016-02-12 Yao Qi <yao.qi@linaro.org>
8637
8638 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8639 or linux_get_pc_32bit.
8640 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8641
ed443b61
YQ
86422016-02-12 Yao Qi <yao.qi@linaro.org>
8643
8644 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8645 arm_linux_get_next_pcs_fixup.
8646
020ecd38
MK
86472016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8648
8649 * tracepoint.c (x_tracepoint_action_download): Change
8650 write_inferior_data_ptr to write_inferior_data_pointer.
8651 (cmd_qtstart): Likewise.
8652 (write_inferior_data_ptr): Remove.
8653 (download_agent_expr): Change write_inferior_data_ptr to
8654 write_inferior_data_pointer.
8655 (download_tracepoint_1): Likewise.
8656 (download_tracepoint): Likewise.
8657 (download_trace_state_variables): Likewise.
8658
7cae9051
WW
86592016-02-11 Wei-cheng Wang <cole945@gmail.com>
8660 Marcin Kościelnicki <koriakin@0x04.net>
8661
8662 * tracepoint.c (struct tracepoint_action_ops): Remove.
8663 (struct tracepoint_action): Remove ops.
8664 (m_tracepoint_action_download, r_tracepoint_action_download)
8665 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8666 size and offset accordingly.
8667 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8668 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8669 (tracepoint_action_send, tracepoint_action_download): New functions.
8670 Helpers for trace action handlers.
8671 (add_tracepoint_action): Remove setup actions ops.
8672 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8673
9f6a71b4
YQ
86742016-02-10 Yao Qi <yao.qi@linaro.org>
8675
8676 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8677
1e94266c
SM
86782016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8679
8680 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8681 to AC_OUTPUT.
8682 * configure: Regenerate.
8683
8adce034
SM
86842016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8685
8686 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8687 void * to gdb_byte *.
8688 * linux-low.c (siginfo_fixup): Likewise.
8689 (linux_xfer_siginfo): Likewise.
8690 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8691 Likewise.
8692 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8693
93813b37
WT
86942016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8695
8696 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8697 to srv_tgtobj.
8698 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8699 to srv_tgtobj.
8700 * linux-x86-low.c [__x86_64__]: Include
8701 "nat/amd64-linux-siginfo.h".
8702 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8703 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8704 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8705 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8706 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8707 (cpt_si_fd, si_timerid, si_overrun): Move from
8708 nat/amd64-linux-siginfo.c.
8709 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8710
8424cc97
SM
87112016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8712
8713 * server.c (skip_to_semicolon): Remove.
8714 (process_point_options): Use strchrnul instead of
8715 skip_to_semicolon.
8716
4d18591b
YQ
87172016-01-26 Yao Qi <yao.qi@linaro.org>
8718
8719 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8720 * linux-low.c (install_software_single_step_breakpoints): Don't
8721 call regcache_read_pc.
8722 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8723 argument pc.
8724
d8020970
YQ
87252016-01-26 Yao Qi <yao.qi@linaro.org>
8726
8727 * linux-low.c (install_software_single_step_breakpoints): Call
8728 regcache_read_pc instead of get_pc.
8729
8b207339
YQ
87302016-01-26 Yao Qi <yao.qi@linaro.org>
8731
8732 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8733 (unblock_async_io): Rename to ...
8734 (block_unblock_async_io): ... it. New function.
8735 (enable_async_io): Don't install SIGIO handler. Unblock it
8736 instead.
8737 (disable_async_io): Don't ignore SIGIO. Block it instead.
8738 (initialize_async_io): Install SIGIO handler. Don't call
8739 unblock_async_io.
8740
18879fef
YQ
87412016-01-26 Yao Qi <yao.qi@linaro.org>
8742
8743 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8744 first character is '\003', call *the_target->request_interrupt.
8745
a0f8e08a
YQ
87462016-01-25 Yao Qi <yao.qi@linaro.org>
8747
8748 * remote-utils.c (new_thread_notify): Remove.
8749 (dead_thread_notify): Likewise.
8750 * remote-utils.h (new_thread_notify): Remove declaration.
8751 (dead_thread_notify): Likewise.
8752
cc5fd9ab
MK
87532016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8754
8755 * gdb.trace/pending.exp: Fix expected message on continue.
8756
99e8eb11
MK
87572016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8758
8759 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8760 it works properly on big-endian machines where sizeof (CORE_ADDR)
8761 != sizeof (void *).
8762
a994041d
PA
87632016-01-21 Pedro Alves <palves@redhat.com>
8764
8765 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8766 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8767 * configure: Regenerate.
8768
f7a6a40d
YQ
87692016-01-21 Yao Qi <yao.qi@linaro.org>
8770
8771 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8772 is_thumb and set it according to CPSR saved on the stack.
8773 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8774 arm_sigreturn_next_pc.
8775
6f69e520
YQ
87762016-01-18 Yao Qi <yao.qi@linaro.org>
8777
8778 * linux-low.c (linux_set_pc_64bit): New function.
8779 (linux_get_pc_64bit): New function.
8780 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8781 Declare.
8782 * linux-sparc-low.c (debug_threads): Remove declaration.
8783 (sparc_get_pc): Remove.
8784 (the_low_target): Use linux_get_pc_64bit instead of
8785 sparc_get_pc.
8786 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8787 (the_low_target): Use linux_get_pc_64bit and
8788 linux_set_pc_64bit.
8789
276d4552
YQ
87902016-01-18 Yao Qi <yao.qi@linaro.org>
8791
8792 * linux-arm-low.c (debug_threads): Remove declaration.
8793 (arm_get_pc, arm_set_pc): Remove.
8794 (the_low_target): Use linux_get_pc_32bit and
8795 linux_set_pc_32bit.
8796 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8797 (the_low_target): Use linux_get_pc_32bit and
8798 linux_set_pc_32bit.
8799 * linux-cris-low.c (debug_threads): Remove declaration.
8800 (cris_get_pc, cris_set_pc,): Remove.
8801 (the_low_target): Use linux_get_pc_32bit and
8802 linux_set_pc_32bit.
8803 * linux-crisv32-low.c (debug_threads): Remove declaration.
8804 (cris_get_pc, cris_set_pc): Remove.
8805 (the_low_target): Use linux_get_pc_32bit and
8806 linux_set_pc_32bit.
8807 * linux-low.c: Include inttypes.h.
8808 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8809 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8810 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8811 (the_low_target): Use linux_get_pc_32bit and
8812 linux_set_pc_32bit.
8813 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8814 (the_low_target): Use linux_get_pc_32bit and
8815 linux_set_pc_32bit.
8816 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8817 (the_low_target): Use linux_get_pc_32bit and
8818 linux_set_pc_32bit.
8819 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8820 (the_low_target): Use linux_get_pc_32bit and
8821 linux_set_pc_32bit.
8822 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8823 (the_low_target): Use linux_get_pc_32bit and
8824 linux_set_pc_32bit.
8825
eb0edac8
GB
88262016-01-18 Gary Benson <gbenson@redhat.com>
8827
8828 * configure.ac (AC_FUNC_FORK): New check.
8829 * config.in: Regenerate.
8830 * configure: Likewise.
8831
1b451dda
YQ
88322016-01-14 Yao Qi <yao.qi@linaro.org>
8833
8834 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8835 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8836 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8837 arm_get_next_pcs_ctor.
8838
82075af2
JS
88392016-01-12 Josh Stone <jistone@redhat.com>
8840 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8841
8842 * inferiors.h: Include "gdb_vecs.h".
8843 (struct process_info): Add syscalls_to_catch.
8844 * inferiors.c (remove_process): Free syscalls_to_catch.
8845 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8846 syscall_return stops.
8847 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8848 * server.c (handle_general_set): Handle QCatchSyscalls.
8849 (handle_query): Report support for QCatchSyscalls.
8850 * target.h (struct target_ops): Add supports_catch_syscall.
8851 (target_supports_catch_syscall): New macro.
8852 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8853 (struct lwp_info): Add syscall_state.
8854 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8855 Maintain syscall_state and syscalls_to_catch across exec.
8856 (get_syscall_trapinfo): New function, proxy to the_low_target.
8857 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8858 (linux_low_filter_event): Toggle syscall_state entry/return for
8859 syscall traps, and set it ignored for all others.
8860 (gdb_catching_syscalls_p): New function.
8861 (gdb_catch_this_syscall_p): New function.
8862 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8863 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8864 (linux_supports_catch_syscall): New function.
8865 (linux_target_ops): Install it.
8866 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8867 (the_low_target): Install it.
8868
8f13a3ce
MF
88692016-01-12 Mike Frysinger <vapier@gentoo.org>
8870
8871 * acinclude.m4: Include new ../warning.m4 file.
8872 * configure: Regenerated.
8873 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8874
5b3da067
MF
88752016-01-12 Mike Frysinger <vapier@gentoo.org>
8876
8877 * ax.c (is_goto_target): Mark static.
8878 * linux-low.c (register_addr): Likewise.
8879 (linux_fetch_registers, linux_store_registers): Likewise.
8880 * mem-break.c (any_persistent_commands): Fix old prototype.
8881 (add_commands_to_breakpoint): Mark static.
8882 * regcache.c (find_register_by_name): Delete unused func.
8883 * remote-utils.c (hex_or_minus_one): Mark static.
8884 * server.c (monitor_show_help): Mark static.
8885 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8886 handle_v_requests): Likewise.
8887
bc504a31
PA
88882016-01-12 Pedro Alves <palves@redhat.com>
8889
8890 Remove use of the registered trademark symbol throughout.
8891
5a0dd67a
YQ
88922016-01-08 Yao Qi <yao.qi@linaro.org>
8893
8894 * remote-utils.c (getpkt): If c is '\003', call target hook
8895 request_interrupt.
8896
b2ca446f
YQ
88972016-01-06 Yao Qi <yao.qi@linaro.org>
8898
8899 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8900 linux-aarch32-low.c.
8901 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8902 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8903 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8904 (thumb2_breakpoint): Declare.
8905 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8906 linux-aarch32-low.h.
8907 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8908 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8909 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8910
edd88788
JB
89112016-01-01 Joel Brobecker <brobecker@adacore.com>
8912
8913 * gdbreplay.c (gdbreplay_version): Change copyright year in
8914 version message.
8915 * server.c (gdbserver_version): Likewise.
8916
65da7f14
PP
89172015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8918
8919 * server.c (crc32_table): Delete.
8920 (crc32): Use libiberty's xcrc32 function.
8921
4abd5ed2
JB
89222015-12-22 Joel Brobecker <brobecker@adacore.com>
8923
8924 * lynx-low.c (lynx_delete_thread_callback): New function.
8925 (lynx_mourn): Properly delete our process and all of its
8926 threads. Remove call to clear_inferiors.
8927
0e50fe5c
JB
89282015-12-22 Joel Brobecker <brobecker@adacore.com>
8929
8930 * target.c (thread_search_callback): Add check that
8931 the thread_stopped target callback is not NULL before
8932 calling it.
8933
35adc03f
YQ
89342015-12-21 Yao Qi <yao.qi@linaro.org>
8935
8936 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8937 arm breakpoint.
8938
bd2b2909
AT
89392015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8940
8941 * server.c (handle_query): Call target_supports_software_single_step.
8942
7fe5e27e
AT
89432015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8944
8945 * linux-low.c (single_step): New function.
8946 (linux_resume_one_lwp_throw): Call single_step.
8947 (start_step_over): Likewise.
8948
d9311bfa
AT
89492015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8950
8951 * Makefile.in (SFILES): Append arch/arm-linux.c,
8952 arch/arm-get-next-pcs.c.
8953 (arm-linux.o): New rule.
8954 (arm-get-next-pcs.o): New rule.
8955 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8956 arm-linux.o.
8957 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8958 to linux-aarch32-low.c.
8959 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8960 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8961 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8962 (thumb2_breakpoint_len): Likewise.
8963 (arm_is_thumb_mode): Make non-static.
8964 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8965 from linux-aarch32-low.c.
8966 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8967 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8968 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8969 (thumb2_breakpoint_len): Likewise.
8970 (arm_is_thumb_mode): New declaration.
8971 * linux-arm-low.c: Include arch/arm-linux.h
8972 aarch/arm-get-next-pcs.h, sys/syscall.h.
8973 (get_next_pcs_ops): New struct.
8974 (get_next_pcs_addr_bits_remove): New function.
8975 (get_next_pcs_is_thumb): New function.
8976 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8977 (arm_sigreturn_next_pc): Likewise.
8978 (get_next_pcs_syscall_next_pc): Likewise.
8979 (arm_gdbserver_get_next_pcs): Likewise.
8980 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8981 Initialize.
8982 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8983 * server.h: Include gdb_vecs.h.
8984
68ce2059
AT
89852015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8986
8987 * Makefile.in (SFILES): Append common/common-regcache.c.
8988 (OBS): Append common-regcache.o.
8989 (common-regcache.o): New rule.
8990 * regcache.c (init_register_cache): Initialize cache to
8991 REG_UNAVAILABLE.
8992 (regcache_raw_read_unsigned): New function.
8993 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8994 register_status enum.
8995
fa5308bd
AT
89962015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8997
8998 * linux-aarch64-low.c (the_low_targets): Rename
8999 breakpoint_reinsert_addr to get_next_pcs.
9000 * linux-arm-low.c (the_low_targets): Likewise.
9001 * linux-bfin-low.c (the_low_targets): Likewise.
9002 * linux-cris-low.c (the_low_targets): Likewise.
9003 * linux-crisv32-low.c (the_low_targets): Likewise.
9004 * linux-low.c (can_software_single_step): Likewise.
9005 (install_software_single_step_breakpoints): New function.
9006 (start_step_over): Use install_software_single_step_breakpoints.
9007 * linux-low.h: New CORE_ADDR vector.
9008 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9009 get_next_pcs.
9010 * linux-mips-low.c (the_low_targets): Likewise.
9011 * linux-nios2-low.c (the_low_targets): Likewise.
9012 * linux-sparc-low.c (the_low_targets): Likewise.
9013
4a6ed09b
PA
90142015-12-17 Pedro Alves <palves@redhat.com>
9015
9016 * linux-low.c (linux_kill_one_lwp): Remove references to
9017 LinuxThreads.
9018 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9019 to 'kill'.
9020 (linux_init_signals): Delete.
9021 (initialize_low): Adjust.
9022 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9023
7544db95
PA
90242015-12-16 Pedro Alves <palves@redhat.com>
9025
9026 * configure.ac (compiler warning flags): When testing a
9027 -Wno-foo option, check whether -Wfoo works instead.
9028 * configure: Regenerate.
9029
8020350c
DB
90302015-12-11 Don Breazeal <donb@codesourcery.com>
9031
9032 * server.c (process_serial_event): Don't exit from gdbserver
9033 in remote mode if there are still active inferiors.
9034
db91f502
YQ
90352015-12-11 Yao Qi <yao.qi@linaro.org>
9036
9037 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9038 arm_breakpoint_at if the process is 32-bit.
9039
b37a6290
YQ
90402015-12-11 Yao Qi <yao.qi@linaro.org>
9041
9042 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9043 arm breakpoint.
9044
17b1509a
YQ
90452015-12-07 Yao Qi <yao.qi@linaro.org>
9046
9047 * configure.srv: Append arm.o to srv_tgtobj for
9048 aarch64*-*-linux* target.
9049 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9050 from linux-arm-low.c.
9051 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9052 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9053 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9054 (thumb2_breakpoint_len): Likewise.
9055 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9056 (arm_breakpoint_kinds): Likewise.
9057 (arm_breakpoint_kind_from_pc): Likewise.
9058 (arm_sw_breakpoint_from_kind): Likewise.
9059 (arm_breakpoint_kind_from_current_state): Likewise.
9060 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9061 (arm_sw_breakpoint_from_kind): Declare.
9062 (arm_breakpoint_kind_from_current_state): Declare.
9063 (arm_breakpoint_at): Declare.
9064 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9065 arm_sw_breakpoint_from_kind if process is 32-bit.
9066 (aarch64_breakpoint_kind_from_pc): New function.
9067 (aarch64_breakpoint_kind_from_current_state): New function.
9068 (the_low_target): Initialize fields breakpoint_kind_from_pc
9069 and breakpoint_kind_from_current_state.
9070 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9071 linux-aarch32-low.c.
9072 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9073 (arm_breakpoint, arm_breakpoint_len): Likewise.
9074 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9075 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9076 (arm_is_thumb_mode): Likewise.
9077 (arm_breakpoint_at): Likewise.
9078 (arm_breakpoint_kind_from_pc): Likewise.
9079 (arm_sw_breakpoint_from_kind): Likewise.
9080 (arm_breakpoint_kind_from_current_state): Likewise.
9081
9082 Revert:
9083 2015-08-04 Yao Qi <yao.qi@linaro.org>
9084
9085 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9086 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9087 * server.c (extended_protocol): Remove "static".
9088 * server.h (extended_protocol): Declare it.
9089
ece66d65
JS
90902015-12-04 Josh Stone <jistone@redhat.com>
9091
9092 * target.h (struct target_ops) <arch_setup>: Rename to ...
9093 (struct target_ops) <post_create_inferior>: ... this.
9094 (target_arch_setup): Rename to ...
9095 (target_post_create_inferior): ... this, calling post_create_inferior.
9096 * server.c (start_inferior): Update target_arch_setup calls to
9097 target_post_create_inferior.
9098 * linux-low.c (linux_low_ptrace_options): Forward declare.
9099 (linux_arch_setup): Update its comment for general use.
9100 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9101 (struct linux_target_ops): Use linux_post_create_inferior.
9102 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9103 to post_create_inferior.
9104 * nto-low.c (struct nto_target_ops): Likewise.
9105 * spu-low.c (struct spu_target_ops): Likewise.
9106 * win32-low.c (struct win32_target_ops): Likewise.
9107
e58c48b4
AT
91082015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9109
9110 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9111
fbec8956
AT
91122015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9113
9114 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9115 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9116 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9117 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9118 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9119 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9120 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9121 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9122 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9123 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9124 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9125 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9126
9b4c5f87
AT
91272015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9128
9129 * linux-low.c (linux_look_up_symbols): Don't call
9130 linux_supports_traceclone.
9131 * linux-low.h (thread_db_init): Remove use_events argument.
9132 * thread-db.c (thread_db_use_event): Remove global variable.
9133 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9134 (struct thread_db) <td_create_bp>: Remove field.
9135 (thread_db_create_event): Remove function.
9136 (thread_db_enable_reporting): Likewise.
9137 (find_one_thread): Don't check for thread_db_use_events.
9138 (attach_thread): Likewise.
9139 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9140 (try_thread_db_load_1): Don't check for thread_db_use_events.
9141 (thread_db_init): Remove use_events argument and thread events
9142 handling.
9143 (remove_thread_event_breakpoints): Remove function.
9144 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9145
7d00775e
AT
91462015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9147
9148 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9149 New function.
9150 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9151 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9152 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9153 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9154 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9155 Initialize.
9156 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9157 New function.
9158 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9159 * linux-low.c (can_hardware_single_step): Use
9160 supports_hardware_single_step.
9161 (can_software_single_step): New function.
9162 (start_step_over): Call can_software_single_step.
9163 (linux_supports_hardware_single_step): New function.
9164 (struct target_ops) <supports_software_single_step>: Initialize.
9165 * linux-low.h (struct linux_target_ops)
9166 <supports_hardware_single_step>: Initialize.
9167 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9168 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9169 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9170 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9171 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9172 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9173 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9174 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9175 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9176 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9177 Initialize.
9178 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9179 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9180 Initialize.
9181 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9182 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9183 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9184 New function.
9185 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9186 * target.h (struct target_ops): <supports_software_single_step>:
9187 New field.
9188 (target_supports_software_single_step): New macro.
9189
2d97cd35
AT
91902015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9191
9192 * linux-low.c (linux_wait_1): Fix pc advance condition.
9193 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9194 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9195
769ef81f
AT
91962015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9197
9198 * linux-arm-low.c (arm_is_thumb_mode): New function.
9199 (arm_breakpoint_at): Use arm_is_thumb_mode.
9200 (arm_breakpoint_kind_from_current_state): New function.
9201 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9202 Initialize.
9203 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9204 (linux_breakpoint_kind_from_current_state): New function.
9205 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9206 * linux-low.h (struct linux_target_ops)
9207 <breakpoint_kind_from_current_state>: New field.
9208 * target.h (struct target_ops): Likewise.
9209 (target_breakpoint_kind_from_current_state): New macro.
9210
1bebeeca
PA
92112015-11-30 Pedro Alves <palves@redhat.com>
9212
9213 * linux-low.c (linux_resume): Wake up the event loop before
9214 returning.
9215
a67a9fae
PA
92162015-11-30 Pedro Alves <palves@redhat.com>
9217
9218 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9219 check.
9220 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9221 to -1.
9222 * target.c (struct thread_search): New structure.
9223 (thread_search_callback): New function.
9224 (prev_general_thread): New global.
9225 (prepare_to_access_memory, done_accessing_memory): New functions.
9226 * target.h (prepare_to_access_memory, done_accessing_memory):
9227 Replace macros with function declarations.
9228
f2faf941
PA
92292015-11-30 Pedro Alves <palves@redhat.com>
9230
9231 PR 14618
9232 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9233 report TARGET_WAITKIND_NO_RESUMED.
9234 * remote-utils.c (prepare_resume_reply): Handle
9235 TARGET_WAITKIND_NO_RESUMED.
9236 * server.c (report_no_resumed): New global.
9237 (handle_query) <qSupported>: Handle "no-resumed+". Report
9238 "no-resumed+" support.
9239 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9240 return error if the client doesn't support no-resumed events.
9241 (push_stop_notification): New function.
9242 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9243 events if the client supports them.
9244
a681f9c9
PA
92452015-11-30 Pedro Alves <palves@redhat.com>
9246
9247 * linux-low.c (thread_still_has_status_pending_p): Don't check
9248 vCont;t here.
9249 (lwp_resumed): New function.
9250 (status_pending_p_callback): Return early if the LWP is not
9251 supposed to be resumed.
9252
65706a29
PA
92532015-11-30 Pedro Alves <palves@redhat.com>
9254
9255 * linux-low.c (handle_extended_wait): Assert that the LWP's
9256 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9257 thread create events, leave the new child's status pending.
9258 (linux_low_filter_event): If GDB wants to hear about thread exit
9259 events, leave the LWP marked dead and don't delete it.
9260 (linux_wait_for_event_filtered): Don't check for thread exit.
9261 (filter_exit_event): New function.
9262 (linux_wait_1): Use it, when returning an exit event.
9263 (linux_resume_one_lwp_throw): Assert that the LWP's
9264 waitstatus is TARGET_WAITKIND_IGNORE.
9265 * remote-utils.c (prepare_resume_reply): Handle
9266 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9267 * server.c (report_thread_events): New global.
9268 (handle_general_set): Handle QThreadEvents.
9269 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9270 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9271 TARGET_WAITKIND_THREAD_EXITED.
9272 * server.h (report_thread_events): Declare.
9273
56cf4bed
PA
92742015-11-30 Pedro Alves <palves@redhat.com>
9275
9276 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9277 the thread's last_resume_kind was resume_stop.
9278
500c1d85
PA
92792015-11-30 Pedro Alves <palves@redhat.com>
9280
9281 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9282 before returning.
9283
de979965
PA
92842015-11-30 Pedro Alves <palves@redhat.com>
9285
9286 * server.c (handle_v_requests): Handle vCtrlC.
9287
34c65914
PA
92882015-11-30 Pedro Alves <palves@redhat.com>
9289
9290 * gdbthread.h (find_any_thread_of_pid): Declare.
9291 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9292 functions.
9293 * server.c (handle_query): If current_thread is NULL, look for
9294 another thread of the selected process.
9295
79efa585 92962015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9297 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9298
9299 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9300 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9301 name in reply.
9302 * target.h (struct target_ops) <thread_name>: New field.
9303 (target_thread_name): New macro.
9304
80d82c19
JB
93052015-11-23 Joel Brobecker <brobecker@adacore.com>
9306
9307 * regcache.h (regcache_invalidate_pid): Add declaration.
9308 * regcache.c (regcache_invalidate_pid): New function, extracted
9309 from regcache_invalidate.
9310 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9311 Add trivial documentation comment.
9312 * lynx-low.c: Use regcache_invalidate_pid instead of
9313 regcache_invalidate.
9314
64da5dd5
JB
93152015-11-23 Joel Brobecker <brobecker@adacore.com>
9316
9317 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9318 and Elf64_auxv_t if the target is Android.
9319
37ce4055
DE
93202015-11-22 Doug Evans <xdje42@gmail.com>
9321
9322 * target.h: #include <sys/types.h>.
9323
06e03fff
PA
93242015-11-19 Pedro Alves <palves@redhat.com>
9325
9326 * linux-low.c (linux_process_qsupported): Change prototype.
9327 Adjust.
9328 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9329 Change prototype.
9330 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9331 and adjust to loop over all features.
9332 * server.c (handle_query) <qSupported>: Adjust to call
9333 target_process_qsupported once, passing it a vector of unprocessed
9334 features.
9335 * target.h (struct target_ops) <process_qsupported>: Change
9336 prototype.
9337 (target_process_qsupported): Adjust.
9338
9a084706
PA
93392015-11-19 Pedro Alves <palves@redhat.com>
9340
9341 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9342 mode.
9343 * configure: Regenerate.
9344
dad44a1f
PA
93452015-11-19 Pedro Alves <palves@redhat.com>
9346
9347 * configure: Regenerate.
9348
231c0592
YQ
93492015-11-19 Yao Qi <yao.qi@linaro.org>
9350
9351 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9352 type to uint32_t.
9353
6c1c9a8b
YQ
93542015-11-19 Yao Qi <yao.qi@linaro.org>
9355
9356 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9357 (struct aarch64_operand): Move enum out.
9358
9caa3311
YQ
93592015-11-19 Yao Qi <yao.qi@linaro.org>
9360
9361 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9362 struct user_fpsimd_state *.
9363 (aarch64_store_fpregset): Likewise.
9364
6a69a054
YQ
93652015-11-19 Yao Qi <yao.qi@linaro.org>
9366
9367 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9368 struct user_pt_regs *.
9369 (aarch64_store_gregset): Likewise.
9370
1798301e
PA
93712015-11-18 Pedro Alves <palves@redhat.com>
9372
9373 * Makefile.in (all_object_files): Add $IPA_OBJS.
9374
ce7715e2
PA
93752015-11-17 Pedro Alves <palves@redhat.com>
9376
9377 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9378 GDB_SIGNAL_0 and gdb_signal_to_string.
9379
c0879059
PA
93802015-11-17 Pedro Alves <palves@redhat.com>
9381
9382 * win32-low.c (handle_output_debug_string): Remove parameter.
9383 (win32_kill): Remove our_status local and adjust call to
9384 handle_output_debug_string.
9385 (get_child_debug_event): Adjust call to
9386 handle_output_debug_string.
9387
1996e237
SM
93882015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9389
9390 * linux-mips-low.c (mips_fill_gregset): Add cast.
9391 (mips_store_gregset): Likewise.
9392 (mips_fill_fpregset): Likewise.
9393 (mips_store_fpregset): Likewise.
9394
cbec665b
SM
93952015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9396
9397 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9398 priv.
9399
eb3e3c67
SM
94002015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9401
9402 * linux-mips-low.c (mips_linux_new_thread): Change type of
9403 watch_type to enum target_hw_bp_type.
9404
171de4b8
SM
94052015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9406
9407 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9408 Change return type to arm_hwbp_type.
9409
04248ead
SM
94102015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9411
9412 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9413 (arm_store_gregset): Likewise.
9414 * linux-arm-low.c (arm_get_hwcap): Likewise.
9415 (arm_read_description): Likewise.
9416
04b3479c
SM
94172015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9418
9419 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9420
2bc84e8a
SM
94212015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9422
9423 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9424 (ppc_fill_vsxregset): Likewise.
9425 (ppc_store_vsxregset): Likewise.
9426 (ppc_fill_vrregset): Likewise.
9427 (ppc_store_vrregset): Likewise.
9428 (ppc_fill_evrregset): Likewise.
9429 (ppc_store_evrregset): Likewise.
9430
e6c5bb05
SM
94312015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9432
9433 * linux-ppc-low.c (ppc_usrregs_info): Remove
9434 forward-declaration.
9435 (ppc_arch_setup): Move lower in file.
9436
7ea45d72
SM
94372015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9438
9439 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9440 (ps_pdwrite): Likewise.
9441
69291610
HW
94422015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9443
9444 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9445 to after assert checks.
9446
b42945fd
SM
94472015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9448
9449 * proc-service.c (ps_pdread): Add/adjust casts.
9450 (ps_pdwrite): Add/adjust casts.
9451
d6f85c84
SM
94522015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9453
9454 * server.c (handle_search_memory_1): Cast return value of
9455 memmem.
9456
f98cd059
SM
94572015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9458
9459 * server.c (write_qxfer_response): Change type of data to
9460 gdb_byte *.
9461
d2412fa5
PA
94622015-10-29 Pedro Alves <palves@redhat.com>
9463
9464 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9465
c17414a2
PA
94662015-10-29 Pedro Alves <palves@redhat.com>
9467
9468 * tracepoint.c (clear_installed_tracepoints): Add casts.
9469
e053fbc4
PA
94702015-10-29 Pedro Alves <palves@redhat.com>
9471
9472 * server.c (handle_v_cont, process_serial_event): Add enum
9473 gdb_signal casts to signal parsing code.
9474
add67df8
PA
94752015-10-29 Pedro Alves <palves@redhat.com>
9476
9477 * linux-low.h (NULL_REGSET): Define.
9478 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9479 * linux-arm-low.c (arm_regsets): Likewise.
9480 * linux-crisv32-low.c (cris_regsets): Likewise.
9481 * linux-m68k-low.c (m68k_regsets): Likewise.
9482 * linux-mips-low.c (mips_regsets): Likewise.
9483 * linux-nios2-low.c (nios2_regsets): Likewise.
9484 * linux-ppc-low.c (ppc_regsets): Likewise.
9485 * linux-s390-low.c (s390_regsets): Likewise.
9486 * linux-sh-low.c (sh_regsets): Likewise.
9487 * linux-sparc-low.c (sparc_regsets): Likewise.
9488 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9489 * linux-tile-low.c (tile_regsets): Likewise.
9490 * linux-x86-low.c (x86_regsets): Likewise.
9491 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9492
50bc912a
PA
94932015-10-29 Pedro Alves <palves@redhat.com>
9494
9495 * linux-low.h (NULL_REGSET): Define.
9496 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9497 * linux-arm-low.c (arm_regsets): Likewise.
9498 * linux-crisv32-low.c (cris_regsets): Likewise.
9499 * linux-m68k-low.c (m68k_regsets): Likewise.
9500 * linux-mips-low.c (mips_regsets): Likewise.
9501 * linux-nios2-low.c (nios2_regsets): Likewise.
9502 * linux-ppc-low.c (ppc_regsets): Likewise.
9503 * linux-s390-low.c (s390_regsets): Likewise.
9504 * linux-sh-low.c (sh_regsets): Likewise.
9505 * linux-sparc-low.c (sparc_regsets): Likewise.
9506 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9507 * linux-tile-low.c (tile_regsets): Likewise.
9508 * linux-x86-low.c (x86_regsets): Likewise.
9509 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9510
682b2546
DE
95112015-10-26 Doug Evans <dje@google.com>
9512
9513 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9514
963843d4
DE
95152015-10-26 Doug Evans <dje@google.com>
9516
9517 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9518
d41401ac
DE
95192015-10-26 Doug Evans <dje@google.com>
9520
9521 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9522 for debug_printf.
9523 (attach_thread, find_new_threads_callback): Ditto.
9524
3db28855
AT
95252015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9526
9527 * mem-break.h (set_breakpoint_data): Remove.
9528
fb78e89c
AT
95292015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9530
9531 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9532 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9533 (initialize_low): Remove set_breakpoint_data call.
9534 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9535 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9536 (initialize_low): Remove set_breakpoint_data call.
9537 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9538 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9539 (initialize_low): Remove set_breakpoint_data call.
9540
2e6ee069
AT
95412015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9542
9543 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9544 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9545 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9546 * target.h (target_breakpoint_kind_from_pc): New macro.
9547
1652a986
AT
95482015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9549
9550 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9551 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9552 the default breakpoint kind.
9553
abeead09
AT
95542015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9555
9556 * linux-arm-low.c (arm_supports_z_point_type): Add software
9557 breakpoint support.
9558
b0b4b501
AT
95592015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9560
9561 * linux-arm-low.c: Refactor breakpoint definitions.
9562 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9563 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9564
8689682c
AT
95652015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9566
9567 * Makefile.in: Add arm.c/o.
9568 * configure.srv: Likewise.
9569 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9570 (arm_breakpoint_kind_from_pc): New function.
9571 (arm_sw_breakpoint_from_kind): Return proper kind.
9572 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9573
27165294
AT
95742015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9575
9576 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9577 removal.
9578 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9579 (struct raw_breakpoint) <size>: Remove.
9580 (struct raw_breakpoint) <kind>: Add.
9581 (bp_size): New function.
9582 (bp_opcode): Likewise.
9583 (find_raw_breakpoint_at): Adjust for kind.
9584 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9585 (remove_memory_breakpoint): Adjust for kind call bp_size.
9586 (set_raw_breakpoint_at): Adjust for kind.
9587 (set_breakpoint): Likewise.
9588 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9589 (delete_raw_breakpoint): Adjust for kind.
9590 (delete_breakpoint): Likewise.
9591 (find_gdb_breakpoint): Likewise.
9592 (set_gdb_breakpoint_1): Likewise.
9593 (set_gdb_breakpoint): Likewise.
9594 (delete_gdb_breakpoint_1): Likewise.
9595 (delete_gdb_breakpoint): Likewise.
9596 (uninsert_raw_breakpoint): Likewise.
9597 (reinsert_raw_breakpoint): Likewise.
9598 (set_breakpoint_data): Remove.
9599 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9600 (check_mem_read): Adjust for kind call bp_size.
9601 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9602 (clone_one_breakpoint): Adjust for kind.
9603 * mem-break.h (set_gdb_breakpoint): Likewise.
9604 (delete_gdb_breakpoint): Likewise.
9605 * server.c (process_serial_event): Likewise.
9606
dd373349
AT
96072015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9608
9609 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9610 (struct linux_target_ops) <breakpoint>: Remove.
9611 (struct linux_target_ops) <breakpoint_len>: Remove.
9612 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9613 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9614 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9615 (arm_sw_breakpoint_from_kind): New function.
9616 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9617 (struct linux_target_ops) <breakpoint>: Remove.
9618 (struct linux_target_ops) <breakpoint_len>: Remove.
9619 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9620 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9621 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9622 (struct linux_target_ops) <breakpoint>: Remove.
9623 (struct linux_target_ops) <breakpoint_len>: Remove.
9624 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9625 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9626 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9627 (struct linux_target_ops) <breakpoint>: Remove.
9628 (struct linux_target_ops) <breakpoint_len>: Remove.
9629 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9630 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9631 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9632 and sw_breakpoint_from_kind to increment the pc.
9633 (linux_breakpoint_kind_from_pc): New function.
9634 (linux_sw_breakpoint_from_kind): New function.
9635 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9636 (initialize_low): Call breakpoint_kind_from_pc and
9637 sw_breakpoint_from_kind to replace breakpoint_data/len.
9638 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9639 New field.
9640 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9641 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9642 (struct linux_target_ops) <breakpoint>: Remove.
9643 (struct linux_target_ops) <breakpoint_len>: Remove.
9644 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9645 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9646 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9647 (struct linux_target_ops) <breakpoint>: Remove.
9648 (struct linux_target_ops) <breakpoint_len>: Remove.
9649 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9650 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9651 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9652 (struct linux_target_ops) <breakpoint>: Remove.
9653 (struct linux_target_ops) <breakpoint_len>: Remove.
9654 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9655 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9656 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9657 (struct linux_target_ops) <breakpoint>: Remove.
9658 (struct linux_target_ops) <breakpoint_len>: Remove.
9659 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9660 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9661 * linux-ppc-low.c (ppc_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-s390-low.c (s390_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-sh-low.c (sh_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-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9677 (struct linux_target_ops) <breakpoint>: Remove.
9678 (struct linux_target_ops) <breakpoint_len>: Remove.
9679 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9680 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9681 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9682 (struct linux_target_ops) <breakpoint>: Remove.
9683 (struct linux_target_ops) <breakpoint_len>: Remove.
9684 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9685 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9686 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9687 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9688 (struct linux_target_ops) <breakpoint>: Remove.
9689 (struct linux_target_ops) <breakpoint_len>: Remove.
9690 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9691 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9692 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9693 (struct linux_target_ops) <breakpoint>: Remove.
9694 (struct linux_target_ops) <breakpoint_len>: Remove.
9695 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9696 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9697
4cd98a19
AT
96982015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9699
9700 * linux-cris-low.c (cris_get_pc): Remove void arg.
9701
774ee6d2
AR
97022015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9703
9704 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9705 variable name.
9706
833dcd29
AR
97072015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9708
9709 * inferiors.c (thread_pid_matches_callback): New function.
9710 (find_thread_process): New function.
9711 (remove_thread): Reset current_thread.
9712 (remove_process): Assert threads have been removed first.
9713
8d689ee5
YQ
97142015-10-15 Yao Qi <yao.qi@linaro.org>
9715
9716 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9717 if it is 3.
9718 (aarch64_remove_point): Likewise.
9719 * regcache.c (regcache_register_size): New function.
9720
1c2e1515
YQ
97212015-10-12 Yao Qi <yao.qi@linaro.org>
9722
9723 * linux-aarch64-low.c: Update all callers as emit_load_store
9724 is renamed to aarch64_emit_load_store.
9725
e1c587c3
YQ
97262015-10-12 Yao Qi <yao.qi@linaro.org>
9727
9728 * linux-aarch64-low.c: Update all callers of function renaming
9729 from emit_insn to aarch64_emit_insn.
9730
b6542f81
YQ
97312015-10-12 Yao Qi <yao.qi@linaro.org>
9732
9733 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9734 arch/aarch64-insn.h.
9735 (struct aarch64_memory_operand): Likewise.
9736 (ENCODE): Likewise.
9737 (emit_insn): Move to arch/aarch64-insn.c.
9738 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9739 (emit_load_store): Move to arch/aarch64-insn.c.
9740 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9741 (can_encode_int32): Remove.
9742
246994ce
YQ
97432015-10-12 Yao Qi <yao.qi@linaro.org>
9744
9745 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9746 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9747 (aarch64_relocate_instruction): Likewise.
9748 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9749 (struct aarch64_insn_visitor): Likewise.
9750
0badd99f
YQ
97512015-10-12 Yao Qi <yao.qi@linaro.org>
9752
9753 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9754 (struct aarch64_insn_visitor): New.
9755 (struct aarch64_insn_relocation_data): New.
9756 (aarch64_ftrace_insn_reloc_b): New function.
9757 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9758 (aarch64_ftrace_insn_reloc_cb): Likewise.
9759 (aarch64_ftrace_insn_reloc_tb): Likewise.
9760 (aarch64_ftrace_insn_reloc_adr): Likewise.
9761 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9762 (aarch64_ftrace_insn_reloc_others): Likewise.
9763 (visitor): New.
9764 (aarch64_relocate_instruction): Use visitor.
9765
dfaffe9d
YQ
97662015-10-12 Yao Qi <yao.qi@linaro.org>
9767
9768 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9769 int. Add argument buf.
9770 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9771 aarch64_relocate_instruction.
9772
70b439f0
YQ
97732015-10-12 Yao Qi <yao.qi@linaro.org>
9774
9775 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9776 argument insn. Remove local variable insn. Don't call
9777 target_read_uint32.
9778 (aarch64_install_fast_tracepoint_jump_pad): Call
9779 target_read_uint32.
9780
7781c06f
YQ
97812015-09-30 Yao Qi <yao.qi@linaro.org>
9782
9783 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9784 (emit_load_store_pair): Likewise.
9785
9a3c8263
SM
97862015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9787
9788 * dll.c (match_dll): Add cast(s).
9789 (unloaded_dll): Likewise.
9790 * linux-low.c (second_thread_of_pid_p): Likewise.
9791 (delete_lwp_callback): Likewise.
9792 (count_events_callback): Likewise.
9793 (select_event_lwp_callback): Likewise.
9794 (linux_set_resume_request): Likewise.
9795 * server.c (accumulate_file_name_length): Likewise.
9796 (emit_dll_description): Likewise.
9797 (handle_qxfer_threads_worker): Likewise.
9798 (visit_actioned_threads): Likewise.
9799 * thread-db.c (any_thread_of): Likewise.
9800 * tracepoint.c (same_process_p): Likewise.
9801 (match_blocktype): Likewise.
9802 (build_traceframe_info_xml): Likewise.
9803
224c3ddb
SM
98042015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9805
9806 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9807 assignment.
9808 (gdb_unparse_agent_expr): Likewise.
9809 * hostio.c (require_data): Likewise.
9810 (handle_pread): Likewise.
9811 * linux-low.c (disable_regset): Likewise.
9812 (fetch_register): Likewise.
9813 (store_register): Likewise.
9814 (get_dynamic): Likewise.
9815 (linux_qxfer_libraries_svr4): Likewise.
9816 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9817 (set_fast_tracepoint_jump): Likewise.
9818 (uninsert_fast_tracepoint_jumps_at): Likewise.
9819 (reinsert_fast_tracepoint_jumps_at): Likewise.
9820 (validate_inserted_breakpoint): Likewise.
9821 (clone_agent_expr): Likewise.
9822 * regcache.c (init_register_cache): Likewise.
9823 * remote-utils.c (putpkt_binary_1): Likewise.
9824 (decode_M_packet): Likewise.
9825 (decode_X_packet): Likewise.
9826 (look_up_one_symbol): Likewise.
9827 (relocate_instruction): Likewise.
9828 (monitor_output): Likewise.
9829 * server.c (handle_search_memory): Likewise.
9830 (handle_qxfer_exec_file): Likewise.
9831 (handle_qxfer_libraries): Likewise.
9832 (handle_qxfer): Likewise.
9833 (handle_query): Likewise.
9834 (handle_v_cont): Likewise.
9835 (handle_v_run): Likewise.
9836 (captured_main): Likewise.
9837 * target.c (write_inferior_memory): Likewise.
9838 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9839 * tracepoint.c (init_trace_buffer): Likewise.
9840 (add_tracepoint_action): Likewise.
9841 (add_traceframe): Likewise.
9842 (add_traceframe_block): Likewise.
9843 (cmd_qtdpsrc): Likewise.
9844 (cmd_qtdv): Likewise.
9845 (cmd_qtstatus): Likewise.
9846 (response_source): Likewise.
9847 (response_tsv): Likewise.
9848 (cmd_qtnotes): Likewise.
9849 (gdb_collect): Likewise.
9850 (initialize_tracepoint): Likewise.
9851
afbe19f8
PL
98522015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9853
9854 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9855 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9856 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9857 <NOP>: New.
9858 (enum aarch64_condition_codes): New enum.
9859 (w0): New static global.
9860 (fp): Likewise.
9861 (lr): Likewise.
9862 (struct aarch64_memory_operand) <type>: New
9863 MEMORY_OPERAND_POSTINDEX type.
9864 (postindex_memory_operand): New helper function.
9865 (emit_ret): New function.
9866 (emit_load_store_pair): New function, factored out of emit_stp
9867 with support for MEMORY_OPERAND_POSTINDEX.
9868 (emit_stp): Rewrite using emit_load_store_pair.
9869 (emit_ldp): New function.
9870 (emit_load_store): Likewise.
9871 (emit_ldr): Mention post-index instruction in comment.
9872 (emit_ldrh): New function.
9873 (emit_ldrb): New function.
9874 (emit_ldrsw): Mention post-index instruction in comment.
9875 (emit_str): Likewise.
9876 (emit_subs): New function.
9877 (emit_cmp): Likewise.
9878 (emit_and): Likewise.
9879 (emit_orr): Likewise.
9880 (emit_orn): Likewise.
9881 (emit_eor): Likewise.
9882 (emit_mvn): Likewise.
9883 (emit_lslv): Likewise.
9884 (emit_lsrv): Likewise.
9885 (emit_asrv): Likewise.
9886 (emit_mul): Likewise.
9887 (emit_sbfm): Likewise.
9888 (emit_sbfx): Likewise.
9889 (emit_ubfm): Likewise.
9890 (emit_ubfx): Likewise.
9891 (emit_csinc): Likewise.
9892 (emit_cset): Likewise.
9893 (emit_nop): Likewise.
9894 (emit_ops_insns): New helper function.
9895 (emit_pop): Likewise.
9896 (emit_push): Likewise.
9897 (aarch64_emit_prologue): New function.
9898 (aarch64_emit_epilogue): Likewise.
9899 (aarch64_emit_add): Likewise.
9900 (aarch64_emit_sub): Likewise.
9901 (aarch64_emit_mul): Likewise.
9902 (aarch64_emit_lsh): Likewise.
9903 (aarch64_emit_rsh_signed): Likewise.
9904 (aarch64_emit_rsh_unsigned): Likewise.
9905 (aarch64_emit_ext): Likewise.
9906 (aarch64_emit_log_not): Likewise.
9907 (aarch64_emit_bit_and): Likewise.
9908 (aarch64_emit_bit_or): Likewise.
9909 (aarch64_emit_bit_xor): Likewise.
9910 (aarch64_emit_bit_not): Likewise.
9911 (aarch64_emit_equal): Likewise.
9912 (aarch64_emit_less_signed): Likewise.
9913 (aarch64_emit_less_unsigned): Likewise.
9914 (aarch64_emit_ref): Likewise.
9915 (aarch64_emit_if_goto): Likewise.
9916 (aarch64_emit_goto): Likewise.
9917 (aarch64_write_goto_address): Likewise.
9918 (aarch64_emit_const): Likewise.
9919 (aarch64_emit_call): Likewise.
9920 (aarch64_emit_reg): Likewise.
9921 (aarch64_emit_pop): Likewise.
9922 (aarch64_emit_stack_flush): Likewise.
9923 (aarch64_emit_zero_ext): Likewise.
9924 (aarch64_emit_swap): Likewise.
9925 (aarch64_emit_stack_adjust): Likewise.
9926 (aarch64_emit_int_call_1): Likewise.
9927 (aarch64_emit_void_call_2): Likewise.
9928 (aarch64_emit_eq_goto): Likewise.
9929 (aarch64_emit_ne_goto): Likewise.
9930 (aarch64_emit_lt_goto): Likewise.
9931 (aarch64_emit_le_goto): Likewise.
9932 (aarch64_emit_gt_goto): Likewise.
9933 (aarch64_emit_ge_got): Likewise.
9934 (aarch64_emit_ops_impl): New static global variable.
9935 (aarch64_emit_ops): New target function, return
9936 &aarch64_emit_ops_impl.
9937 (struct linux_target_ops): Install it.
9938
bb903df0
PL
99392015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9940
9941 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9942 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9943 aarch64-ipa.o.
9944 * linux-aarch64-ipa.c: New file.
9945 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9946 and endian.h.
9947 (aarch64_get_thread_area): New target method.
9948 (extract_signed_bitfield): New helper function.
9949 (aarch64_decode_ldr_literal): New function.
9950 (enum aarch64_opcodes): New enum.
9951 (struct aarch64_register): New struct.
9952 (struct aarch64_operand): New struct.
9953 (x0): New static global.
9954 (x1): Likewise.
9955 (x2): Likewise.
9956 (x3): Likewise.
9957 (x4): Likewise.
9958 (w2): Likewise.
9959 (ip0): Likewise.
9960 (sp): Likewise.
9961 (xzr): Likewise.
9962 (aarch64_register): New helper function.
9963 (register_operand): Likewise.
9964 (immediate_operand): Likewise.
9965 (struct aarch64_memory_operand): New struct.
9966 (offset_memory_operand): New helper function.
9967 (preindex_memory_operand): Likewise.
9968 (enum aarch64_system_control_registers): New enum.
9969 (ENCODE): New macro.
9970 (emit_insn): New helper function.
9971 (emit_b): New function.
9972 (emit_bcond): Likewise.
9973 (emit_cb): Likewise.
9974 (emit_tb): Likewise.
9975 (emit_blr): Likewise.
9976 (emit_stp): Likewise.
9977 (emit_ldp_q_offset): Likewise.
9978 (emit_stp_q_offset): Likewise.
9979 (emit_load_store): Likewise.
9980 (emit_ldr): Likewise.
9981 (emit_ldrsw): Likewise.
9982 (emit_str): Likewise.
9983 (emit_ldaxr): Likewise.
9984 (emit_stxr): Likewise.
9985 (emit_stlr): Likewise.
9986 (emit_data_processing_reg): Likewise.
9987 (emit_data_processing): Likewise.
9988 (emit_add): Likewise.
9989 (emit_sub): Likewise.
9990 (emit_mov): Likewise.
9991 (emit_movk): Likewise.
9992 (emit_mov_addr): Likewise.
9993 (emit_mrs): Likewise.
9994 (emit_msr): Likewise.
9995 (emit_sevl): Likewise.
9996 (emit_wfe): Likewise.
9997 (append_insns): Likewise.
9998 (can_encode_int32_in): New helper function.
9999 (aarch64_relocate_instruction): New function.
10000 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10001 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10002 (struct linux_target_ops): Install aarch64_get_thread_area,
10003 aarch64_install_fast_tracepoint_jump_pad and
10004 aarch64_get_min_fast_tracepoint_insn_len.
10005
787749ea
PL
100062015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10007
10008 * Makefile.in (aarch64-insn.o): New rule.
10009 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10010
9812b2e6
YQ
100112015-09-21 Yao Qi <yao.qi@linaro.org>
10012
10013 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10014
18fe412b
YQ
100152015-09-21 Yao Qi <yao.qi@linaro.org>
10016
10017 * tracepoint.c (max_jump_pad_size): Remove.
10018
a0cc84cd
YQ
100192015-09-18 Yao Qi <yao.qi@linaro.org>
10020
10021 * linux-aarch64-low.c: Don't include sys/uio.h.
10022 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10023
d78908cf
WW
100242015-09-16 Wei-cheng Wang <cole945@gmail.com>
10025
10026 * tracepoint.c (eval_result_type): Change prototype.
10027 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10028
d57e0d50
PA
100292015-09-15 Pedro Alves <palves@redhat.com>
10030
10031 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10032 Check whether to report exec events instead of checking whether
10033 multiprocess is enabled.
10034
5a676acc
PA
100352015-09-15 Pedro Alves <palves@redhat.com>
10036
10037 PR remote/18965
10038 * remote-utils.c (prepare_resume_reply): Merge
10039 TARGET_WAITKIND_VFORK_DONE switch case with the
10040 TARGET_WAITKIND_FORKED case.
10041
7c5d0fad
YQ
100422015-09-15 Yao Qi <yao.qi@linaro.org>
10043
10044 * server.c (handle_query): Check string comparison using
10045 "else if" instead of "if".
10046
750ce8d1
YQ
100472015-09-15 Yao Qi <yao.qi@linaro.org>
10048
10049 * server.c (vCont_supported): New global variable.
10050 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10051 matches. Append ";vContSupported+" to own_buf.
10052 (handle_v_requests): Append ";s;S" to own_buf if target supports
10053 hardware single step or vCont_supported is false.
10054 (capture_main): Set vCont_supported to zero.
10055
70b90b91
YQ
100562015-09-15 Yao Qi <yao.qi@linaro.org>
10057
10058 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10059 it to ...
10060 (linux_supports_hardware_single_step): ... New function.
10061 (linux_target_ops): Update.
10062 * lynx-low.c (lynx_target_ops): Set field
10063 supports_hardware_single_step to target_can_do_hardware_single_step.
10064 * nto-low.c (nto_target_ops): Likewise.
10065 * spu-low.c (spu_target_ops): Likewise.
10066 * win32-low.c (win32_target_ops): Likewise.
10067 * target.c (target_can_do_hardware_single_step): New function.
10068 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10069 Remove. <supports_hardware_single_step>: New field.
10070 (target_supports_conditional_breakpoints): Remove.
10071 (target_supports_hardware_single_step): New macro.
10072 (target_can_do_hardware_single_step): Declare.
10073 * server.c (handle_query): Use target_supports_hardware_single_step
10074 instead of target_supports_conditional_breakpoints.
10075
ade90bde
YQ
100762015-09-15 Yao Qi <yao.qi@linaro.org>
10077
10078 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10079 function.
10080 (struct linux_target_ops the_low_target): Install
10081 aarch64_linux_siginfo_fixup.
10082
94585166
DB
100832015-09-11 Don Breazeal <donb@codesourcery.com>
10084 Luis Machado <lgustavo@codesourcery.com>
10085
10086 * linux-low.c (linux_mourn): Static declaration.
10087 (linux_arch_setup): Move in front of
10088 handle_extended_wait.
10089 (linux_arch_setup_thread): New function.
10090 (handle_extended_wait): Handle exec events. Call
10091 linux_arch_setup_thread. Make event_lwp argument a
10092 pointer-to-a-pointer.
10093 (check_zombie_leaders): Do not check stopped threads.
10094 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10095 (linux_low_filter_event): Add lwp and thread for exec'ing
10096 non-leader thread if leader thread has been deleted.
10097 Refactor code into linux_arch_setup_thread and call it.
10098 Pass child lwp pointer by reference to handle_extended_wait.
10099 (linux_wait_for_event_filtered): Update comment.
10100 (linux_wait_1): Prevent clobbering exec event status.
10101 (linux_supports_exec_events): New function.
10102 (linux_target_ops) <supports_exec_events>: Initialize new member.
10103 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10104 new member.
10105 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10106 * server.c (report_exec_events): New global variable.
10107 (handle_query): Handle qSupported query for exec-events feature.
10108 (captured_main): Initialize report_exec_events.
10109 * server.h (report_exec_events): Declare new global variable.
10110 * target.h (struct target_ops) <supports_exec_events>: New
10111 member.
10112 (target_supports_exec_events): New macro.
10113 * win32-low.c (win32_target_ops) <supports_exec_events>:
10114 Initialize new member.
10115
0568462b
MM
101162015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10117
10118 * linux-low.c (linux_low_enable_btrace): Remove.
10119 (linux_target_ops): Replace linux_low_enable_btrace with
10120 linux_enable_btrace.
10121
39edd165
YQ
101222015-09-03 Yao Qi <yao.qi@linaro.org>
10123
10124 * linux-aarch64-low.c (aarch64_insert_point): Call
10125 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10126 returns true.
10127
1db33b5a
UW
101282015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10129
10130 * linux-low.c (check_stopped_by_breakpoint): Use
10131 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10132
ab290430
PA
101332015-08-27 Pedro Alves <palves@redhat.com>
10134
10135 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10136
8d749320
SM
101372015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10138
6711b7f8
SM
10139 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10140 the XNEW-family equivalent.
8d749320
SM
10141 (compile_bytecodes): Likewise.
10142 * dll.c (loaded_dll): Likewise.
10143 * event-loop.c (append_callback_event): Likewise.
10144 (create_file_handler): Likewise.
10145 (create_file_event): Likewise.
10146 * hostio.c (handle_open): Likewise.
10147 * inferiors.c (add_thread): Likewise.
10148 (add_process): Likewise.
10149 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10150 * linux-arm-low.c (arm_new_process): Likewise.
10151 (arm_new_thread): Likewise.
10152 * linux-low.c (add_to_pid_list): Likewise.
10153 (linux_add_process): Likewise.
10154 (handle_extended_wait): Likewise.
10155 (add_lwp): Likewise.
10156 (enqueue_one_deferred_signal): Likewise.
10157 (enqueue_pending_signal): Likewise.
10158 (linux_resume_one_lwp_throw): Likewise.
10159 (linux_resume_one_thread): Likewise.
10160 (linux_read_memory): Likewise.
10161 (linux_write_memory): Likewise.
10162 * linux-mips-low.c (mips_linux_new_process): Likewise.
10163 (mips_linux_new_thread): Likewise.
10164 (mips_add_watchpoint): Likewise.
10165 * linux-x86-low.c (initialize_low_arch): Likewise.
10166 * lynx-low.c (lynx_add_process): Likewise.
10167 * mem-break.c (set_raw_breakpoint_at): Likewise.
10168 (set_breakpoint): Likewise.
10169 (add_condition_to_breakpoint): Likewise.
10170 (add_commands_to_breakpoint): Likewise.
10171 (clone_agent_expr): Likewise.
10172 (clone_one_breakpoint): Likewise.
10173 * regcache.c (new_register_cache): Likewise.
10174 * remote-utils.c (look_up_one_symbol): Likewise.
10175 * server.c (queue_stop_reply): Likewise.
10176 (start_inferior): Likewise.
10177 (queue_stop_reply_callback): Likewise.
10178 (handle_target_event): Likewise.
10179 * spu-low.c (fetch_ppc_memory): Likewise.
10180 (store_ppc_memory): Likewise.
10181 * target.c (set_target_ops): Likewise.
10182 * thread-db.c (thread_db_load_search): Likewise.
10183 (try_thread_db_load_1): Likewise.
10184 * tracepoint.c (add_tracepoint): Likewise.
10185 (add_tracepoint_action): Likewise.
10186 (create_trace_state_variable): Likewise.
10187 (cmd_qtdpsrc): Likewise.
10188 (cmd_qtro): Likewise.
10189 (add_while_stepping_state): Likewise.
10190 * win32-low.c (child_add_thread): Likewise.
10191 (get_image_name): Likewise.
10192
ed8b7b42
YQ
101932015-08-25 Yao Qi <yao.qi@linaro.org>
10194
10195 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10196
db3cb7cb
YQ
101972015-08-25 Yao Qi <yao.qi@linaro.org>
10198
10199 * Makefile.in (aarch64-linux.o): New rule.
10200 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10201 srv_tgtobj.
10202 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10203 (aarch64_init_debug_reg_state): Make it extern.
10204 (aarch64_linux_prepare_to_resume): Remove.
10205
f6011a1c
YQ
102062015-08-25 Yao Qi <yao.qi@linaro.org>
10207
10208 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10209 lwp_arch_private_info and ptid_of_lwp.
10210
88e2cf7e
YQ
102112015-08-25 Yao Qi <yao.qi@linaro.org>
10212
10213 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10214 Find proc_info by find_process_pid. All callers updated.
10215
5e35436e
YQ
102162015-08-25 Yao Qi <yao.qi@linaro.org>
10217
10218 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10219 Remove.
10220 (debug_reg_change_callback): Remove.
10221 (aarch64_notify_debug_reg_change): Remove.
10222
4a8a7965
YQ
102232015-08-25 Yao Qi <yao.qi@linaro.org>
10224
10225 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10226 Call current_lwp_ptid.
10227
32a271ee
YQ
102282015-08-25 Yao Qi <yao.qi@linaro.org>
10229
10230 * linux-aarch64-low.c (debug_reg_change_callback): Use
10231 debug_printf.
10232
0d51c8d7
YQ
102332015-08-25 Yao Qi <yao.qi@linaro.org>
10234
10235 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10236
31a43dd5
YQ
102372015-08-25 Yao Qi <yao.qi@linaro.org>
10238
10239 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10240
8ee52567
YQ
102412015-08-25 Yao Qi <yao.qi@linaro.org>
10242
10243 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10244 the code.
10245
ff3f0f45
YQ
102462015-08-25 Yao Qi <yao.qi@linaro.org>
10247
10248 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10249 Remove.
10250 (debug_reg_change_callback): Remove argument entry and add argument
10251 lwp. Remove local variable thread. Don't print thread id in the
10252 debugging output. Don't check whether pid of thread equals to pid.
10253 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10254 iterate_over_lwps instead find_inferior.
10255
3d40fbb5
PA
102562015-08-24 Pedro Alves <palves@redhat.com>
10257
10258 * inferiors.c (get_first_process): New function.
10259 * inferiors.h (get_first_process): New declaration.
10260 * remote-utils.c (read_ptid): Default to the first process in the
10261 list, instead of to the current thread's process.
10262
438e1e42
PA
102632015-08-24 Pedro Alves <palves@redhat.com>
10264
10265 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10266 * event-loop.c: Likewise.
10267 * remote-utils.c: Likewise.
10268 * tracepoint.c: Likewise.
10269
a8c6d4fc
PA
102702015-08-24 Pedro Alves <palves@redhat.com>
10271
10272 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10273 ptid_get_lwp.
10274
99b0bb12
PA
102752015-08-21 Pedro Alves <palves@redhat.com>
10276
10277 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10278 instead of literal 1.
10279
f8904751
PA
102802015-08-21 Pedro Alves <palves@redhat.com>
10281
10282 * tdesc.c (default_description): Explicitly zero-initialize.
10283
465a859e
PA
102842015-08-21 Pedro Alves <palves@redhat.com>
10285
10286 PR gdb/18749
10287 * inferiors.c (remove_thread): Discard any pending stop reply for
10288 this thread.
10289 * server.c (remove_all_on_match_pid): Rename to ...
10290 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10291 instead of a pid.
10292 (discard_queued_stop_replies): Change parameter to a ptid. Now
10293 extern.
10294 (handle_v_kill, kill_inferior_callback, captured_main)
10295 (process_serial_event): Adjust.
10296 * server.h (discard_queued_stop_replies): Declare.
10297
f0db101d
PA
102982015-08-21 Pedro Alves <palves@redhat.com>
10299
10300 * linux-low.c (wait_for_sigstop): Always switch to no thread
10301 selected if the previously current thread dies.
10302 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10303 process instead of the current thread's.
10304 * remote-utils.c (input_interrupt): Don't check if there's no
10305 current thread.
10306 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10307 current thread to the general thread fails, error out.
10308 (handle_qxfer_auxv, handle_qxfer_libraries)
10309 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10310 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10311 (handle_query): Check if there's a thread selected instead of
10312 checking whether there's any thread in the thread list.
10313 (handle_qxfer_threads, handle_qxfer_btrace)
10314 (handle_qxfer_btrace_conf): Don't error out early if there's no
10315 thread in the thread list.
10316 (handle_v_cont, myresume): Don't set the current thread to the
10317 continue thread.
10318 (process_serial_event) <Hg handling>: Also set thread_id if the
10319 previous general thread is still alive.
10320 (process_serial_event) <g/G handling>: If setting the current
10321 thread to the general thread fails, error out.
10322 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10323 thread's lwp instead of the current thread's.
10324 * target.c (set_desired_thread): If the desired thread was not
10325 found, leave the current thread pointing to NULL. Return an int
10326 (boolean) indicating success.
10327 * target.h (set_desired_thread): Change return type to int.
10328
40045d91
MF
103292015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10330
10331 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10332 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10333 #includes.
10334 (ps_get_thread_area): New function.
10335
45face3b
GB
103362015-08-19 Gary Benson <gbenson@redhat.com>
10337
10338 * hostio.c (handle_pread): Do not attempt to read more data
10339 than hostio_reply_with_data can fit in a packet.
10340
16d5f642
JB
103412015-08-18 Joel Brobecker <brobecker@adacore.com>
10342
10343 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10344
a738da3a
MF
103452015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10346
10347 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10348
33ebda9d
PA
103492015-08-06 Pedro Alves <palves@redhat.com>
10350
10351 * tracepoint.c (expr_eval_result): Now an int.
10352
a44892be
PA
103532015-08-06 Pedro Alves <palves@redhat.com>
10354
10355 * gdbthread.h (struct regcache): Forward declare.
10356 (struct thread_info) <regcache_data>: Now a struct regcache
10357 pointer.
10358 * inferiors.c (inferior_regcache_data)
10359 (set_inferior_regcache_data): Now work with struct regcache
10360 pointers.
10361 * inferiors.h (struct regcache): Forward declare.
10362 (inferior_regcache_data, set_inferior_regcache_data): Now work
10363 with struct regcache pointers.
10364 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10365 (free_register_cache_thread): Remove struct regcache pointer
10366 casts.
10367
608a1e46
PA
103682015-08-06 Pedro Alves <palves@redhat.com>
10369
10370 * server.c (captured_main): On error, print the exception message
10371 to stderr, and if run_once is set, throw a quit.
10372
f0ce0d3a
PA
103732015-08-06 Pedro Alves <palves@redhat.com>
10374
10375 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10376 the current thread.
10377
bf47e248
PA
103782015-08-06 Pedro Alves <palves@redhat.com>
10379
10380 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10381 reading beyond the passed in buffer length.
10382
b6b9ffcc
PL
103832015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10384
10385 * tracepoint.c (symbol_list) <required>: Remove.
10386
863d01bd
PA
103872015-08-06 Pedro Alves <palves@redhat.com>
10388
10389 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10390 count if stopping and suspending threads.
10391 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10392 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10393 (linux_detach): Complete an ongoing step-over.
10394 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10395 throughout.
10396 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10397 (linux_wait_1): If passing a signal to the inferior after
10398 finishing a step-over, unsuspend and re-resume all lwps. If we
10399 see a single-step event but the thread should be continuing, don't
10400 pass the trap to gdb.
10401 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10402 internal_error instead of gdb_assert.
10403 (enqueue_pending_signal): New function.
10404 (check_ptrace_stopped_lwp_gone): Add debug output.
10405 (start_step_over): Use internal_error instead of gdb_assert.
10406 (complete_ongoing_step_over): New function.
10407 (linux_resume_one_thread): Don't resume a suspended thread.
10408 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10409 it stepping.
10410
00db26fa
PA
104112015-08-06 Pedro Alves <palves@redhat.com>
10412
10413 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10414 (linux_thread_alive): Use lwp_is_marked_dead.
10415 (extended_event_reported): Delete.
10416 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10417 instead of extended_event_reported.
10418 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10419 as well.
10420 (lwp_is_marked_dead): New function.
10421 (lwp_running): Use lwp_is_marked_dead.
10422 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10423 comment.
10424
ad071a30
PA
104252015-08-06 Pedro Alves <palves@redhat.com>
10426
10427 * linux-low.c (linux_wait_1): Move fork event output out of the
10428 !report_to_gdb check. Pass event_child->waitstatus to
10429 target_waitstatus_to_string instead of ourstatus.
10430
524b57e6
YQ
104312015-08-04 Yao Qi <yao.qi@linaro.org>
10432
10433 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10434 if current_thread is 32 bit.
10435
6085d6f6
YQ
104362015-08-04 Yao Qi <yao.qi@linaro.org>
10437
10438 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10439 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10440 * server.c (extended_protocol): Remove "static".
10441 * server.h (extended_protocol): Declare it.
10442
8a7e4587
YQ
104432015-08-04 Yao Qi <yao.qi@linaro.org>
10444
10445 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10446 both aarch64 and aarch32.
10447 (aarch64_set_pc): Likewise.
10448
3b53ae99
YQ
104492015-08-04 Yao Qi <yao.qi@linaro.org>
10450
10451 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10452 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10453 arm-with-neon.xml to srv_xmlfiles.
10454 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10455 (is_64bit_tdesc): New function.
10456 (aarch64_linux_read_description): New function.
10457 (aarch64_arch_setup): Call aarch64_linux_read_description.
10458 (regs_info): Rename to regs_info_aarch64.
10459 (aarch64_regs_info): Return right regs_info.
10460 (initialize_low_arch): Call initialize_low_arch_aarch32.
10461
bd9e6534
YQ
104622015-08-04 Yao Qi <yao.qi@linaro.org>
10463
10464 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10465 * linux-aarch32-low.c: New file.
10466 * linux-aarch32-low.h: New file.
10467 * linux-arm-low.c (arm_fill_gregset): Move it to
10468 linux-aarch32-low.c.
10469 (arm_store_gregset): Likewise.
10470 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10471 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10472 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10473 (regs_info): Rename to regs_info_arm.
10474 (arm_regs_info): Return regs_info_aarch32 if
10475 have_ptrace_getregset is 1 and target description is
10476 arm_with_neon or arm_with_vfpv3.
10477 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10478 Call initialize_low_arch_aarch32 instead.
10479
ded48a5e
YQ
104802015-08-04 Yao Qi <yao.qi@linaro.org>
10481
10482 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10483 * linux-low.c: ... here.
10484 * linux-low.h (have_ptrace_getregset): Declare it.
10485
96e9210f
PA
104862015-08-04 Pedro Alves <palves@redhat.com>
10487
10488 * thread-db.c (struct thread_db): Use new typedefs.
10489 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10490 CHK calls.
10491 (disable_thread_event_reporting): Cast result of dlsym to
10492 destination function pointer type.
10493 (thread_db_mourn): Use td_ta_delete_ftype.
10494
af60a1ef
SL
104952015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10496
10497 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10498 arch variant.
10499 (CDX_BREAKPOINT): Define for R2.
10500 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10501 (the_low_target): Add comments.
10502
e8b41681
YQ
105032015-07-30 Yao Qi <yao.qi@linaro.org>
10504
10505 * linux-arm-low.c (arm_hwcap): Remove it.
10506 (arm_read_description): New local variable arm_hwcap. Don't
10507 set arm_hwcap to zero.
10508
89abb039
YQ
105092015-07-30 Yao Qi <yao.qi@linaro.org>
10510
10511 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10512 Use regcache->tdesc instead.
10513 (arm_store_wmmxregset): Likewise.
10514 (arm_fill_vfpregset): Likewise.
10515 (arm_store_vfpregset): Likewise.
10516
deca266c
YQ
105172015-07-30 Yao Qi <yao.qi@linaro.org>
10518
10519 * linux-arm-low.c: Include arch/arm.h.
10520 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10521 (arm_store_gregset): Likewise.
10522
aa58a496
SM
105232015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10524
10525 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10526 ptrace's 4th parameter.
10527
50904b25
YQ
105282015-07-27 Yao Qi <yao.qi@linaro.org>
10529
10530 * configure.srv (case aarch64*-*-linux*): Don't set
10531 srv_linux_usrregs.
10532
5826e159
PA
105332015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10534
10535 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10536 sys/ptrace.h.
10537 * linux-arm-low.c: Likewise.
10538 * linux-cris-low.c: Likewise.
10539 * linux-crisv32-low.c: Likewise.
10540 * linux-low.c: Likewise.
10541 * linux-m68k-low.c: Likewise.
10542 * linux-mips-low.c: Likewise.
10543 * linux-nios2-low.c: Likewise.
10544 * linux-s390-low.c: Likewise.
10545 * linux-sparc-low.c: Likewise.
10546 * linux-tic6x-low.c: Likewise.
10547 * linux-tile-low.c: Likewise.
10548 * linux-x86-low.c: Likewise.
10549
54019719
PA
105502015-07-24 Pedro Alves <palves@redhat.com>
10551
10552 * config.in: Regenerate.
10553 * configure: Regenerate.
10554
eb7aa561
PA
105552015-07-24 Pedro Alves <palves@redhat.com>
10556
10557 * acinclude.m4: Include ../ptrace.m4.
10558 * configure.ac: Call GDB_AC_PTRACE.
10559 * config.in, configure: Regenerate.
10560
55d7b841
YQ
105612015-07-24 Yao Qi <yao.qi@linaro.org>
10562
10563 * linux-low.c (linux_create_inferior): Remove setting to
10564 proc->priv->new_inferior.
10565 (linux_attach): Likewise.
10566 (linux_low_filter_event): Likewise.
10567 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10568
c06cbd92
YQ
105692015-07-24 Yao Qi <yao.qi@linaro.org>
10570
10571 * linux-low.c (linux_arch_setup): New function.
10572 (linux_low_filter_event): If proc->tdesc is NULL and
10573 proc->attached is true, call the_low_target.arch_setup.
10574 Otherwise, keep status pending, and return.
10575 (linux_resume_one_lwp_throw): Don't call get_pc if
10576 thread->while_stepping isn't NULL. Don't call
10577 get_thread_regcache if proc->tdesc is NULL.
10578 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10579 (linux_target_ops): Install arch_setup.
10580 * server.c (start_inferior): Call the_target->arch_setup.
10581 * target.h (struct target_ops) <arch_setup>: New field.
10582 (target_arch_setup): New marco.
10583 * lynx-low.c (lynx_target_ops): Update.
10584 * nto-low.c (nto_target_ops): Update.
10585 * spu-low.c (spu_target_ops): Update.
10586 * win32-low.c (win32_target_ops): Update.
10587
5ae3ebba
YQ
105882015-07-24 Yao Qi <yao.qi@linaro.org>
10589
10590 * linux-low.c (linux_add_process): Don't set
10591 proc->priv->new_inferior.
10592 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10593 (linux_attach): Likewise.
10594
eb97750b
YQ
105952015-07-24 Yao Qi <yao.qi@linaro.org>
10596
10597 * server.c (start_inferior): Code refactor.
10598
51aee833
YQ
105992015-07-24 Yao Qi <yao.qi@linaro.org>
10600
10601 * server.c (process_serial_event): Set general_thread.
10602
af1b22f3
YQ
106032015-07-21 Yao Qi <yao.qi@linaro.org>
10604
10605 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10606 aarch64_linux_get_debug_reg_capacity.
10607
554717a3
YQ
106082015-07-17 Yao Qi <yao.qi@linaro.org>
10609
10610 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10611 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10612 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10613 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10614 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10615 (AARCH64_HWP_ALIGNMENT): Likewise.
10616 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10617 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10618 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10619 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10620 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10621 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10622 (struct aarch64_debug_reg_state): Likewise.
10623 (struct arch_lwp_info): Likewise.
10624 (aarch64_align_watchpoint): Likewise.
10625 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10626 (aarch64_watchpoint_length): Likewise.
10627 (aarch64_point_encode_ctrl_reg): Likewise
10628 (aarch64_point_is_aligned): Likewise.
10629 (aarch64_align_watchpoint): Likewise.
10630 (aarch64_linux_set_debug_regs):
10631 (aarch64_dr_state_insert_one_point): Likewise.
10632 (aarch64_dr_state_remove_one_point): Likewise.
10633 (aarch64_handle_breakpoint): Likewise.
10634 (aarch64_handle_aligned_watchpoint): Likewise.
10635 (aarch64_handle_unaligned_watchpoint): Likewise.
10636 (aarch64_handle_watchpoint): Likewise.
10637
c67ca4de
YQ
106382015-07-17 Yao Qi <yao.qi@linaro.org>
10639
10640 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10641 and don't aarch64_get_debug_reg_state. All callers update.
10642 (aarch64_handle_aligned_watchpoint): Likewise.
10643 (aarch64_handle_unaligned_watchpoint): Likewise.
10644 (aarch64_handle_watchpoint): Likewise.
10645 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10646 (aarch64_remove_point): Likewise.
10647
25abf979
YQ
106482015-07-17 Yao Qi <yao.qi@linaro.org>
10649
10650 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10651 debug_printf.
10652 (aarch64_handle_unaligned_watchpoint): Likewise.
10653
db1ff28b
JK
106542015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10655
10656 Revert the previous 3 commits:
10657 Move gdb_regex* to common/
10658 Move linux_find_memory_regions_full & co.
10659 gdbserver build-id attribute generator
10660
700ca40f
JK
106612015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10662 Jan Kratochvil <jan.kratochvil@redhat.com>
10663
10664 gdbserver build-id attribute generator.
10665 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10666 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10667 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10668 (find_phdr): New.
10669 (get_dynamic): Use find_pdhr to traverse program headers.
10670 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10671 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10672 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10673 (get_hex_build_id): New.
10674 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10675 to reply XML document.
10676
9904185c
JK
106772015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10678 Jan Kratochvil <jan.kratochvil@redhat.com>
10679
10680 * target.c: Include target/target-utils.h and fcntl.h.
10681 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10682 (target_fileio_read_stralloc): New functions.
10683
6e5b4429
JK
106842015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10685
10686 * Makefile.in (OBS): Add gdb_regex.o.
10687 (gdb_regex.o): New.
10688 * config.in: Rebuilt.
10689 * configure: Rebuilt.
10690
ddc98fbf
JK
106912015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10692 Jan Kratochvil <jan.kratochvil@redhat.com>
10693
10694 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10695 * Makefile.in (OBS): Add target-utils.o.
10696 (linux-maps.o, target-utils.o): New.
10697 * configure.srv (srv_linux_obj): Add linux-maps.o.
10698
e57bb7a0
PL
106992015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10700
10701 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10702 function, return 1.
10703 (the_low_target): Install it.
10704
586b02a9
PA
107052015-07-14 Pedro Alves <palves@redhat.com>
10706
10707 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10708 Instead, ignore ECHILD, and throw an error for other errnos.
10709
58c1b36c
PA
107102015-07-10 Pedro Alves <palves@redhat.com>
10711
10712 * event-loop.c (struct callback_event) <data>: Change type to
10713 gdb_client_data instance instead of gdb_client_data pointer.
10714 (append_callback_event): Adjust.
10715
421530db
PL
107162015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10717
10718 * linux-aarch64-low.c: Add comments for each linux_target_ops
10719 method. Remove comments already covered in target_ops and
10720 linux_target_ops definitions.
10721 (the_low_target): Add comments for each unimplemented method.
10722
c2d65f38
YQ
107232015-07-09 Yao Qi <yao.qi@linaro.org>
10724
10725 * linux-aarch64-low.c (aarch64_regmap): Remove.
10726 (aarch64_usrregs_info): Remove.
10727 (regs_info): Set field usrregs to NULL.
10728
b20a6524
MM
107292015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10730
10731 * linux-low.c: Include "rsp-low.h"
10732 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10733 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10734 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10735 (handle_btrace_enable_pt): New.
10736 (handle_btrace_general_set): Support "pt".
10737 (handle_btrace_conf_general_set): Support "pt:size".
10738
96c97461
PL
107392015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10740
10741 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10742 Z_PACKET_SW_BP.
10743
37d66942
PL
107442015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10745
10746 * linux-aarch64-low.c: Remove comment about endianness.
10747 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10748 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10749 memcmp.
10750
dc06243f
GB
107512015-06-24 Gary Benson <gbenson@redhat.com>
10752
10753 * linux-i386-ipa.c (stdint.h): Do not include.
10754 * lynx-i386-low.c (stdint.h): Likewise.
10755 * lynx-ppc-low.c (stdint.h): Likewise.
10756 * mem-break.c (stdint.h): Likewise.
10757 * thread-db.c (stdint.h): Likewise.
10758 * tracepoint.c (stdint.h): Likewise.
10759 * win32-low.c (stdint.h): Likewise.
10760
124e13d9
SM
107612015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10762
10763 * server.c (write_qxfer_response): Update call to
10764 remote_escape_output.
10765
909c2cda
JK
107662015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10767 Jan Kratochvil <jan.kratochvil@redhat.com>
10768
10769 Merge multiple hex conversions.
10770 * gdbreplay.c (tohex): Rename to 'fromhex'.
10771 (logchar): Use fromhex.
10772
24c05f46
JK
107732015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10774
10775 * server.c (handle_qxfer_libraries): Set `version' attribute for
10776 <library-list>.
10777
14d2069a
GB
107782015-06-10 Gary Benson <gbenson@redhat.com>
10779
10780 * target.h (struct target_ops) <multifs_open>: New field.
10781 <multifs_unlink>: Likewise.
10782 <multifs_readlink>: Likewise.
10783 * linux-low.c (nat/linux-namespaces.h): New include.
10784 (linux_target_ops): Initialize the_target->multifs_open,
10785 the_target->multifs_unlink and the_target->multifs_readlink.
10786 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10787 * hostio.c (hostio_fs_pid): New static variable.
10788 (hostio_handle_new_gdb_connection): New function.
10789 (handle_setfs): Likewise.
10790 (handle_open): Use the_target->multifs_open as appropriate.
10791 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10792 (handle_readlink): Use the_target->multifs_readlink as
10793 appropriate.
10794 (handle_vFile): Handle vFile:setfs packets.
10795 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10796 after target_handle_new_gdb_connection.
10797
4b8b5e72
GB
107982015-06-10 Gary Benson <gbenson@redhat.com>
10799
10800 * configure.ac (AC_CHECK_FUNCS): Add setns.
10801 * config.in: Regenerate.
10802 * configure: Likewise.
10803 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10804 (linux-namespaces.o): New rule.
10805 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10806
3ac2e371
GB
108072015-06-09 Gary Benson <gbenson@redhat.com>
10808
10809 * hostio.c (handle_open): Process mode argument with
10810 fileio_to_host_mode.
10811
ca9b78ce
YQ
108122015-06-01 Yao Qi <yao.qi@linaro.org>
10813
10814 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10815 * linux-x86-low.c: Likewise.
10816
bfacd19d
DB
108172015-05-28 Don Breazeal <donb@codesourcery.com>
10818
10819 * linux-low.c (handle_extended_wait): Initialize
10820 thread_info.last_resume_kind for new fork children.
10821
452003ef
PA
108222015-05-15 Pedro Alves <palves@redhat.com>
10823
10824 * target.h (target_handle_new_gdb_connection): Rewrite using if
10825 wrapped in do/while.
10826
1041a03c
JB
108272015-05-14 Joel Brobecker <brobecker@adacore.com>
10828
10829 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10830 * configure, config.in: Regenerate.
10831 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10832 Declare typedef.
10833
c269dbdb
DB
108342015-05-12 Don Breazeal <donb@codesourcery.com>
10835
10836 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10837 PTRACE_EVENT_VFORK_DONE.
10838 (linux_low_ptrace_options, extended_event_reported): Add vfork
10839 events.
10840 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10841 and "vforkdone" for RSP 'T' Stop Reply Packet.
10842 * server.h (report_vfork_events): Declare
10843 global variable.
10844
3a8a0396
DB
108452015-05-12 Don Breazeal <donb@codesourcery.com>
10846
10847 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10848 (the_low_target) <new_fork>: Initialize new member.
10849 * linux-arm-low.c (arm_new_fork): New function.
10850 (the_low_target) <new_fork>: Initialize new member.
10851 * linux-low.c (handle_extended_wait): Call new target function
10852 new_fork.
10853 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10854 * linux-mips-low.c (mips_add_watchpoint): New function
10855 extracted from mips_insert_point.
10856 (the_low_target) <new_fork>: Initialize new member.
10857 (mips_linux_new_fork): New function.
10858 (mips_insert_point): Call mips_add_watchpoint.
10859 * linux-x86-low.c (x86_linux_new_fork): New function.
10860 (the_low_target) <new_fork>: Initialize new member.
10861
de0d863e
DB
108622015-05-12 Don Breazeal <donb@codesourcery.com>
10863
10864 * linux-low.c (handle_extended_wait): Implement return value,
10865 rename argument 'event_child' to 'event_lwp', handle
10866 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10867 (linux_low_ptrace_options): New function.
10868 (linux_low_filter_event): Call linux_low_ptrace_options,
10869 use different argument fo linux_enable_event_reporting,
10870 use return value from handle_extended_wait.
10871 (extended_event_reported): New function.
10872 (linux_wait_1): Call extended_event_reported and set
10873 status to report fork events.
10874 (linux_write_memory): Add pid to debug message.
10875 (reset_lwp_ptrace_options_callback): New function.
10876 (linux_handle_new_gdb_connection): New function.
10877 (linux_target_ops): Initialize new structure member.
10878 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10879 * lynx-low.c: Initialize new structure member.
10880 * remote-utils.c (prepare_resume_reply): Implement stop reason
10881 "fork" for "T" stop message.
10882 * server.c (handle_query): Call handle_new_gdb_connection.
10883 * server.h (report_fork_events): Declare global flag.
10884 * target.h (struct target_ops) <handle_new_gdb_connection>:
10885 New member.
10886 (target_handle_new_gdb_connection): New macro.
10887 * win32-low.c: Initialize new structure member.
10888
ddcbc397
DB
108892015-05-12 Don Breazeal <donb@codesourcery.com>
10890
10891 * mem-break.c (APPEND_TO_LIST): Define macro.
10892 (clone_agent_expr): New function.
10893 (clone_one_breakpoint): New function.
10894 (clone_all_breakpoints): New function.
10895 * mem-break.h: Declare new functions.
10896
89245bc0
DB
108972015-05-12 Don Breazeal <donb@codesourcery.com>
10898
10899 * linux-low.c (linux_supports_fork_events): New function.
10900 (linux_supports_vfork_events): New function.
10901 (linux_target_ops): Initialize new structure members.
10902 (initialize_low): Call linux_check_ptrace_features.
10903 * lynx-low.c (lynx_target_ops): Initialize new structure
10904 members.
10905 * server.c (report_fork_events, report_vfork_events):
10906 New global flags.
10907 (handle_query): Add new features to qSupported packet and
10908 response.
10909 (captured_main): Initialize new global variables.
10910 * target.h (struct target_ops) <supports_fork_events>:
10911 New member.
10912 <supports_vfork_events>: New member.
10913 (target_supports_fork_events): New macro.
10914 (target_supports_vfork_events): New macro.
10915 * win32-low.c (win32_target_ops): Initialize new structure
10916 members.
10917
835205d0
GB
109182015-05-12 Gary Benson <gbenson@redhat.com>
10919
10920 * server.c (handle_qxfer_exec_file): Use current process
10921 if annex is empty.
10922
21e94bd9
SL
109232015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10924
10925 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10926 Remove HAVE_PTRACE_GETREGS conditionals.
10927 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10928 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10929
45614f15
YQ
109302015-05-08 Yao Qi <yao.qi@linaro.org>
10931
10932 * linux-low.c (linux_supports_conditional_breakpoints): New
10933 function.
10934 (linux_target_ops): Install new target method.
10935 * lynx-low.c (lynx_target_ops): Install NULL hook for
10936 supports_conditional_breakpoints.
10937 * nto-low.c (nto_target_ops): Likewise.
10938 * spu-low.c (spu_target_ops): Likewise.
10939 * win32-low.c (win32_target_ops): Likewise.
10940 * server.c (handle_query): Check
10941 target_supports_conditional_breakpoints.
10942 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10943 New field.
10944 (target_supports_conditional_breakpoints): New macro.
10945
80ad801e
PA
109462015-05-06 Pedro Alves <palves@redhat.com>
10947
10948 PR server/18081
10949 * server.c (start_inferior): If the process exits, mourn it.
10950
819843c7
GB
109512015-04-21 Gary Benson <gbenson@redhat.com>
10952
10953 * hostio.c (fileio_open_flags_to_host): Factored out to
10954 fileio_to_host_openflags in common/fileio.c. Single use
10955 updated.
10956
a2d5a9d7
MF
109572015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10958
10959 * linux-xtensa-low.c (xtensa_fill_gregset)
10960 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10961 XCHAL_HAVE_LOOP.
10962
deb44829
MF
109632015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10964
10965 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10966 (regs_info): Replace usrregs pointer with NULL.
10967
e57f1de3
GB
109682015-04-17 Gary Benson <gbenson@redhat.com>
10969
10970 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10971 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10972 * server.c (handle_qxfer_exec_file): New function.
10973 (qxfer_packets): Add exec-file entry.
10974 (handle_query): Report qXfer:exec-file:read as supported packet.
10975
62828379
RN
109762015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10977
10978 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10979
b88bb450
GB
109802015-04-09 Gary Benson <gbenson@redhat.com>
10981
10982 * hostio-errno.c (errno_to_fileio_error): Remove function.
10983 Update caller to use remote_fileio_to_fio_error.
10984
c8f4bfdd
YQ
109852015-04-09 Yao Qi <yao.qi@linaro.org>
10986
10987 * linux-low.c (linux_insert_point): Call
10988 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10989 (linux_remove_point): Call remove_memory_breakpoint if type is
10990 raw_bkpt_type_sw.
10991 * linux-x86-low.c (x86_insert_point): Don't call
10992 insert_memory_breakpoint.
10993 (x86_remove_point): Don't call remove_memory_breakpoint.
10994
41f98f02
PA
109952015-04-01 Pedro Alves <palves@redhat.com>
10996 Cleber Rosa <crosa@redhat.com>
10997
10998 * server.c (gdbserver_usage): Reorganize and extend the usage
10999 message.
11000
2bf6fb9d
PA
110012015-03-24 Pedro Alves <palves@redhat.com>
11002
11003 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11004 output. Also dump TRAP_TRACE.
11005 (linux_low_filter_event): In debug output, distinguish a
11006 resume_stop SIGSTOP from a delayed SIGSTOP.
11007
369f6daa
GB
110082015-03-24 Gary Benson <gbenson@redhat.com>
11009
11010 * linux-x86-low.c (x86_linux_new_thread): Moved to
11011 nat/x86-linux.c.
11012 (x86_linux_prepare_to_resume): Likewise.
11013
8e5d4070
GB
110142015-03-24 Gary Benson <gbenson@redhat.com>
11015
11016 * Makefile.in (x86-linux-dregs.o): New rule.
11017 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11018 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11019 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11020 (x86_linux_dr_get): Likewise.
11021 (x86_linux_dr_set): Likewise.
11022 (update_debug_registers_callback): Likewise.
11023 (x86_linux_dr_set_addr): Likewise.
11024 (x86_linux_dr_get_addr): Likewise.
11025 (x86_linux_dr_set_control): Likewise.
11026 (x86_linux_dr_get_control): Likewise.
11027 (x86_linux_dr_get_status): Likewise.
11028 (x86_linux_update_debug_registers): Likewise.
11029
2b95d440
GB
110302015-03-24 Gary Benson <gbenson@redhat.com>
11031
11032 * linux-x86-low.c (x86_linux_update_debug_registers):
11033 New function, factored out from...
11034 (x86_linux_prepare_to_resume): ...this.
11035
14b0bc68
GB
110362015-03-24 Gary Benson <gbenson@redhat.com>
11037
11038 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11039 (x86_linux_dr_set): Likewise.
11040 (update_debug_registers_callback): Likewise.
11041 (x86_linux_dr_set_addr): Likewise.
11042 (x86_linux_dr_get_addr): Likewise.
11043 (x86_linux_dr_set_control): Likewise.
11044 (x86_linux_dr_get_control): Likewise.
11045 (x86_linux_dr_get_status): Likewise.
11046 (x86_linux_prepare_to_resume): Likewise.
11047
5dfe6ca8
GB
110482015-03-24 Gary Benson <gbenson@redhat.com>
11049
11050 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11051 Use perror_with_name. Pass string through gettext.
11052 (x86_linux_dr_set): Likewise.
11053
d33472ad
GB
110542015-03-24 Gary Benson <gbenson@redhat.com>
11055
11056 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11057 (x86_linux_dr_set_addr): ...this.
11058 (x86_dr_low_get_addr): Rename to...
11059 (x86_linux_dr_get_addr): ...this.
11060 (x86_dr_low_set_control): Rename to...
11061 (x86_linux_dr_set_control): ...this.
11062 (x86_dr_low_get_control): Rename to...
11063 (x86_linux_dr_get_control): ...this.
11064 (x86_dr_low_get_status): Rename to...
11065 (x86_linux_dr_get_status): ...this.
11066 (x86_dr_low): Update with new function names.
11067
4b134ca1
GB
110682015-03-24 Gary Benson <gbenson@redhat.com>
11069
11070 * Makefile.in (x86-linux.o): New rule.
11071 * configure.srv: Add x86-linux.o to relevant targets.
11072 * linux-low.c (lwp_set_arch_private_info): New function.
11073 (lwp_arch_private_info): Likewise.
11074 * linux-x86-low.c: Include nat/x86-linux.h.
11075 (arch_lwp_info): Removed structure.
11076 (update_debug_registers_callback):
11077 Use lwp_set_debug_registers_changed.
11078 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11079 and lwp_set_debug_registers_changed.
11080 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11081
34c703da
GB
110822015-03-24 Gary Benson <gbenson@redhat.com>
11083
11084 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11085 * linux-arm-low.c (arm_new_thread): Likewise.
11086 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11087 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11088 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11089 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11090
cff068da
GB
110912015-03-24 Gary Benson <gbenson@redhat.com>
11092
11093 * linux-low.c (ptid_of_lwp): New function.
11094 (lwp_is_stopped): Likewise.
11095 (lwp_stop_reason): Likewise.
11096 * linux-x86-low.c (update_debug_registers_callback):
11097 Use lwp_is_stopped.
11098 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11099 lwp_stop_reason.
11100
b2f7c7e8
GB
111012015-03-24 Gary Benson <gbenson@redhat.com>
11102
11103 * linux-low.h (linux_stop_lwp): Remove declaration.
11104
6d4ee8c6
GB
111052015-03-24 Gary Benson <gbenson@redhat.com>
11106
11107 * linux-low.h: Include nat/linux-nat.h.
11108 * linux-low.c (iterate_over_lwps_args): New structure.
11109 (iterate_over_lwps_filter): New function.
11110 (iterate_over_lwps): Likewise.
11111 * linux-x86-low.c (update_debug_registers_callback):
11112 Update signature to what iterate_over_lwps expects.
11113 Remove PID check that iterate_over_lwps now performs.
11114 (x86_dr_low_set_addr): Use iterate_over_lwps.
11115 (x86_dr_low_set_control): Likewise.
11116
70a0bb6b
GB
111172015-03-24 Gary Benson <gbenson@redhat.com>
11118
11119 * linux-x86-low.c (x86_debug_reg_state): New function.
11120 (x86_linux_prepare_to_resume): Use the above.
11121
7b669087
GB
111222015-03-24 Gary Benson <gbenson@redhat.com>
11123
11124 * linux-low.c (current_lwp_ptid): New function.
11125 * linux-x86-low.c: Include nat/linux-nat.h.
11126 (x86_dr_low_get_addr): Use current_lwp_ptid.
11127 (x86_dr_low_get_control): Likewise.
11128 (x86_dr_low_get_status): Likewise.
11129
eef49a3d
PA
111302015-03-20 Pedro Alves <palves@redhat.com>
11131
11132 * tracepoint.c (cmd_qtstatus): Make "str" const.
11133
b2333d22
PA
111342015-03-20 Pedro Alves <palves@redhat.com>
11135
11136 * server.c (handle_general_set): Make "req_str" const.
11137
23f238d3
PA
111382015-03-19 Pedro Alves <palves@redhat.com>
11139
11140 * linux-low.c (linux_resume_one_lwp): Rename to ...
11141 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11142 instead call perror_with_name.
11143 (check_ptrace_stopped_lwp_gone): New function.
11144 (linux_resume_one_lwp): Reimplement as wrapper around
11145 linux_resume_one_lwp_throw that swallows errors if the LWP is
11146 gone.
11147
91baf43f
PA
111482015-03-19 Pedro Alves <palves@redhat.com>
11149
11150 * linux-low.c (count_events_callback, select_event_lwp_callback):
11151 No longer check whether the thread has resume_stop as last resume
11152 kind.
11153
8bf3b159
PA
111542015-03-19 Pedro Alves <palves@redhat.com>
11155
11156 * linux-low.c (count_events_callback, select_event_lwp_callback):
11157 Use the lwp's status_pending_p field, not the thread's.
11158
b90fc188
PA
111592015-03-19 Pedro Alves <palves@redhat.com>
11160
11161 * linux-low.c (select_event_lwp_callback): Update comments to
11162 no longer mention SIGTRAP.
11163
464b0089
GB
111642015-03-18 Gary Benson <gbenson@redhat.com>
11165
11166 * server.c (handle_query): Do not report vFile:fstat as supported.
11167
aa9e327f
GB
111682015-03-11 Gary Benson <gbenson@redhat.com>
11169
11170 * hostio.c (sys/types.h): New include.
11171 (sys/stat.h): Likewise.
11172 (common-remote-fileio.h): Likewise.
11173 (handle_fstat): New function.
11174 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11175
791c0056
GB
111762015-03-11 Gary Benson <gbenson@redhat.com>
11177
11178 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11179 struct stat.st_blocks and struct stat.st_blksize.
11180 * configure: Regenerate.
11181 * config.in: Likewise.
11182 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11183 (OBS): Add common-remote-fileio.o.
11184 (common-remote-fileio.o): New rule.
11185
9a9df970
PA
111862015-03-09 Pedro Alves <palves@redhat.com>
11187
11188 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11189 'struct sockaddr' pointer in 'accept' call.
11190
9eb1356e
PA
111912015-03-09 Pedro Alves <palves@redhat.com>
11192
11193 Revert:
11194 2015-03-07 Pedro Alves <palves@redhat.com>
11195 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11196 or <winsock2.h> here. Instead include "gdb_socket.h".
11197 (remote_open): Use union gdb_sockaddr_u.
11198 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11199 or <winsock2.h> here. Instead include "gdb_socket.h".
11200 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11201 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11202 or <sys/un.h>.
11203 (init_named_socket, gdb_agent_helper_thread): Use union
11204 gdb_sockaddr_u.
11205
aac331e4
PA
112062015-03-07 Pedro Alves <palves@redhat.com>
11207
11208 * configure.ac (build_warnings): Move
11209 -Wdeclaration-after-statement to the C-specific set.
11210 * configure: Regenerate.
11211
366c75fc
PA
112122015-03-07 Pedro Alves <palves@redhat.com>
11213
11214 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11215 or <winsock2.h> here. Instead include "gdb_socket.h".
11216 (remote_open): Use union gdb_sockaddr_u.
11217 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11218 or <winsock2.h> here. Instead include "gdb_socket.h".
11219 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11220 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11221 or <sys/un.h>.
11222 (init_named_socket, gdb_agent_helper_thread): Use union
11223 gdb_sockaddr_u.
11224
492d29ea
PA
112252015-03-07 Pedro Alves <palves@redhat.com>
11226
11227 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11228 instead.
11229
60a191ed
YQ
112302015-03-06 Yao Qi <yao.qi@linaro.org>
11231
11232 * linux-aarch64-low.c (aarch64_insert_point): Use
11233 show_debug_regs as a boolean.
11234 (aarch64_remove_point): Likewise.
11235
f5771b1d
PA
112362015-03-05 Pedro Alves <palves@redhat.com>
11237
11238 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11239 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11240 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11241 * nto-low.c (nto_target_ops): Likewise.
11242 * spu-low.c (spu_target_ops): Likewise.
11243 * win32-low.c (win32_target_ops): Likewise.
11244
3e572f71
PA
112452015-03-04 Pedro Alves <palves@redhat.com>
11246
72f4393d 11247 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11248 Decide whether a breakpoint triggered based on the SIGTRAP's
11249 siginfo.si_code.
72f4393d
L
11250 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11251 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11252 (linux_low_filter_event): Check for breakpoints before checking
11253 watchpoints.
11254 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11255 siginfo.si_code.
72f4393d
L
11256 (linux_stopped_by_sw_breakpoint)
11257 (linux_supports_stopped_by_sw_breakpoint)
11258 (linux_stopped_by_hw_breakpoint)
11259 (linux_supports_stopped_by_hw_breakpoint): New functions.
11260 (linux_target_ops): Install new target methods.
3e572f71 11261
1ec68e26
PA
112622015-03-04 Pedro Alves <palves@redhat.com>
11263
11264 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11265 * server.c (swbreak_feature, hwbreak_feature): New globals.
11266 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11267 (captured_main): Clear swbreak_feature and hwbreak_feature.
11268 * server.h (swbreak_feature, hwbreak_feature): Declare.
11269 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11270 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11271 supports_stopped_by_hw_breakpoint>: New fields.
11272 (target_supports_stopped_by_sw_breakpoint)
11273 (target_stopped_by_sw_breakpoint)
11274 (target_supports_stopped_by_hw_breakpoint)
11275 (target_stopped_by_hw_breakpoint): Declare.
11276
15c66dd6
PA
112772015-03-04 Pedro Alves <palves@redhat.com>
11278
11279 enum lwp_stop_reason -> enum target_stop_reason
11280 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11281 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11282 (linux_wait_1, stuck_in_jump_pad_callback)
11283 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11284 (linux_stopped_by_watchpoint):
11285 * linux-low.h (enum lwp_stop_reason): Delete.
11286 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11287 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11288
98fc70d6
YQ
112892015-03-04 Yao Qi <yao.qi@linaro.org>
11290
11291 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11292
dd2ac174
GB
112932015-03-03 Gary Benson <gbenson@redhat.com>
11294
11295 * hostio.c (handle_vFile): Fix prefix lengths.
11296
d68e53f4
MM
112972015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11298
11299 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11300 ptr_bits.
11301
bf2d68ab
AA
113022015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11303
11304 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11305 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11306 (clean): Add "rm -f" for above C files.
11307 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11308 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11309 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11310 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11311 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11312 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11313 (init_registers_s390x_vx_linux64)
11314 (init_registers_s390x_tevx_linux64)
11315 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11316 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11317 declarations.
11318 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11319 (s390_store_vxrs_high): New functions.
11320 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11321 NT_S390_VXRS_HIGH.
11322 (s390_arch_setup): Add logic for selecting one of the new target
11323 descriptions. Activate the new vector regsets if applicable.
11324 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11325 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11326 and init_registers_s390x_tevx_linux64.
11327
c966a859
PA
113282015-03-01 Pedro Alves <palves@redhat.com>
11329
11330 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11331 parameter.
11332
4180215b
PA
113332015-02-27 Pedro Alves <palves@redhat.com>
11334
11335 * linux-x86-low.c (u_debugreg_offset): New function.
11336 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11337
749bab01
PA
113382015-02-27 Pedro Alves <palves@redhat.com>
11339
11340 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11341 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11342 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11343 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11344 (ps_lsetfpregs, ps_getpid)
11345 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11346 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11347 (ps_lsetxregs, ps_plog): Declare.
11348
3c14e5a3
PA
113492015-02-27 Pedro Alves <palves@redhat.com>
11350
11351 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11352 IP_AGENT_EXPORT_FUNC.
11353 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11354 IP_AGENT_EXPORT_FUNC.
11355 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11356 (IP_AGENT_EXPORT): Delete.
11357 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11358 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11359 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11360 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11361 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11362 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11363 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11364 (traceframe_read_count, traceframe_write_count)
11365 (traceframes_created, trace_state_variables, get_raw_reg)
11366 (get_trace_state_variable_value, set_trace_state_variable_value)
11367 (ust_loaded, helper_thread_id, cmd_buf): Use
11368 IPA_SYM_EXPORTED_NAME.
11369 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11370 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11371 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11372 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11373 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11374 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11375 EXTERN_C_PUSH/EXTERN_C_POP.
11376 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11377 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11378 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11379 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11380 (traceframe_write_count, traceframe_read_count)
11381 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11382 (about_to_request_buffer_space, get_trace_state_variable_value)
11383 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11384 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11385 EXTERN_C_PUSH/EXTERN_C_POP.
11386 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11387 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11388 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11389 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11390 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11391 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11392 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11393 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11394 Define.
11395 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11396 (IP_AGENT_EXPORT_VAR_DECL): Define.
11397 (tracing): Declare.
11398 (gdb_agent_get_raw_reg): Declare.
11399
fe978cb0
PA
114002015-02-27 Tom Tromey <tromey@redhat.com>
11401 Pedro Alves <palves@redhat.com>
11402
11403 Rename symbols whose names are reserved C++ keywords throughout.
11404
3bc3d82a
PA
114052015-02-27 Pedro Alves <palves@redhat.com>
11406
11407 * Makefile.in (COMPILER): New, get it from autoconf.
11408 (CXX): Get from autoconf instead.
11409 (COMPILE.pre): Use COMPILER.
11410 (CC-LD): Rename to ...
11411 (CC_LD): ... this. Use COMPILER.
11412 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11413 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11414 * acinclude.m4: Include build-with-cxx.m4.
11415 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11416 Disable -Werror by default if building in C++ mode.
11417 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11418 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11419 the C++ compiler. Save/restore CXXFLAGS too.
11420 * configure: Regenerate.
11421
07697489
PA
114222015-02-27 Pedro Alves <palves@redhat.com>
11423
11424 * acinclude.m4: Include libiberty.m4.
11425 * configure.ac: Call libiberty_INIT.
11426 * config.in, configure: Regenerate.
11427
9beb7c4e
PA
114282015-02-26 Pedro Alves <palves@redhat.com>
11429
11430 * linux-low.c (linux_wait_1): When incrementing the PC past a
11431 program breakpoint always use the_low_target.breakpoint_len as
11432 increment, rather than the maximum between that and
11433 the_low_target.decr_pc_after_break.
11434
8090aef2
PA
114352015-02-23 Pedro Alves <palves@redhat.com>
11436
11437 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11438 thread was doing a step-over; always adjust the PC if
11439 we stepped over a permanent breakpoint.
11440 (linux_wait_1): If we stepped over breakpoint that was on top of a
11441 permanent breakpoint, manually advance the PC past it.
11442
bc9540e8
PA
114432015-02-23 Pedro Alves <palves@redhat.com>
11444
11445 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11446 modes.
11447 (x86_fill_gregset, x86_store_gregset): Use it when handling
11448 $orig_eax.
11449
2db9a427
PA
114502015-02-20 Pedro Alves <palves@redhat.com>
11451
11452 * thread-db.c: Include "nat/linux-procfs.h".
11453 (thread_db_init): Skip listing new threads if the kernel supports
11454 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11455
afa8d396
PA
114562015-02-20 Pedro Alves <palves@redhat.com>
11457
11458 * linux-low.c (status_pending_p_callback): Use ptid_match.
11459
c9587f88
AT
114602015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11461
11462 PR breakpoints/16812
11463 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11464 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11465 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11466
b05ec7a5
AT
114672015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11468
11469 PR breakpoints/15956
11470 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11471
d33501a5
MM
114722015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11473
11474 * linux-low.c (linux_low_btrace_conf): Print size.
11475 * server.c (handle_btrace_conf_general_set): New.
11476 (hanle_general_set): Call handle_btrace_conf_general_set.
11477 (handle_query): Report Qbtrace-conf:bts:size as supported.
11478
f4abbc16
MM
114792015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11480
11481 * linux-low.c (linux_low_enable_btrace): Update parameters.
11482 (linux_low_btrace_conf): New.
11483 (linux_target_ops)<to_btrace_conf>: Initialize.
11484 * server.c (current_btrace_conf): New.
11485 (handle_btrace_enable): Rename to ...
11486 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11487 to target_enable_btrace. Update comment. Update users.
11488 (handle_qxfer_btrace_conf): New.
11489 (qxfer_packets): Add btrace-conf entry.
11490 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11491 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11492 (target_ops)<read_btrace_conf>: New.
11493 (target_enable_btrace): Update parameters.
11494 (target_read_btrace_conf): New.
11495
043c3577
MM
114962015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11497
11498 * server.c (handle_btrace_general_set): Remove call to
11499 target_supports_btrace.
11500 (supported_btrace_packets): New.
11501 (handle_query): Call supported_btrace_packets.
11502 * target.h: include btrace-common.h.
11503 (btrace_target_info): Removed.
11504 (supports_btrace, target_supports_btrace): Update parameters.
11505
734b0e4b
MM
115062015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11507
11508 * Makefile.in (SFILES): Add common/btrace-common.c.
11509 (OBS): Add common/btrace-common.o.
11510 (btrace-common.o): Add build rules.
11511 * linux-low: Include btrace-common.h.
11512 (linux_low_read_btrace): Use struct btrace_data. Call
11513 btrace_data_init and btrace_data_fini.
11514
d6c146e9
PA
115152015-02-06 Pedro Alves <palves@redhat.com>
11516
11517 * thread-db.c (find_new_threads_callback): Add debug output.
11518
20ba1ce6
PA
115192015-02-04 Pedro Alves <palves@redhat.com>
11520
11521 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11522 (resume_stopped_resumed_lwps): New function.
11523 (linux_wait_for_event_filtered): Use it.
11524
8cc73a39
SDJ
115252015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11526
11527 * Makefile.in (SFILES): Add linux-personality.c.
11528 (linux-personality.o): New rule.
11529 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11530 list of objects to be built.
11531 * linux-low.c: Include nat/linux-personality.h.
11532 (linux_create_inferior): Remove code to disable address space
11533 randomization (moved to ../nat/linux-personality.c). Create
11534 cleanup to disable address space randomization.
11535
fb23d554
SDJ
115362015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11537
11538 * Makefile.in (posix-strerror.o): New rule.
11539 (mingw-strerror.o): Likewise.
11540 * configure: Regenerated.
11541 * configure.ac: Source file ../common/common.host. Initialize new
11542 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11543
cdf43629
YQ
115442015-01-14 Yao Qi <yao@codesourcery.com>
11545
11546 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11547 (ppc-linux.o): New rule.
11548 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11549 * configure.ac: AC_CHECK_FUNCS(getauxval).
11550 * config.in: Re-generated.
11551 * configure: Re-generated.
11552 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11553 ppc64_64bit_inferior_p
11554
514c5338
YQ
115552015-01-14 Yao Qi <yao@codesourcery.com>
11556
11557 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11558 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11559 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11560 (PT_ORIG_R3, PT_TRAP): Likewise.
11561 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11562 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11563 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11564
3368c1e5
JB
115652015-01-10 Joel Brobecker <brobecker@adacore.com>
11566
11567 * i387-fp.c (i387_cache_to_xsave): In look over
11568 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11569 zmmh_low_space field by use of zmmh_high_space.
11570
582511be
PA
115712015-01-09 Pedro Alves <palves@redhat.com>
11572
11573 * linux-low.c (step_over_bkpt): Move higher up in the file.
11574 (handle_extended_wait): Don't store the stop_pc here.
11575 (get_stop_pc): Adjust comments and rename to ...
11576 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11577 stopped for a software breakpoint or hardware breakpoint.
11578 (thread_still_has_status_pending_p): New function.
11579 (status_pending_p_callback): Use
11580 thread_still_has_status_pending_p. If the event is no longer
11581 interesting, resume the LWP.
11582 (handle_tracepoints): Add assert.
11583 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11584 (wstatus_maybe_breakpoint): New function.
11585 (cancel_breakpoint): Delete function.
11586 (check_stopped_by_watchpoint): New function, factored out from
11587 linux_low_filter_event.
11588 (lp_status_maybe_breakpoint): Delete function.
11589 (linux_low_filter_event): Remove filter_ptid argument.
11590 Leave thread group exits pending here. Store the LWP's stop PC.
11591 Always leave events pending.
11592 (linux_wait_for_event_filtered): Pull all events out of the
11593 kernel, and leave them all pending.
11594 (count_events_callback, select_event_lwp_callback): Consider all
11595 events.
11596 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11597 (select_event_lwp): Only give preference to the stepping LWP in
11598 all-stop mode. Adjust comments.
11599 (ignore_event): New function.
11600 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11601 references to cancel_breakpoints. Adjust to renames. Also give
11602 equal priority to all LWPs that have had events in non-stop mode.
11603 If reporting a software breakpoint event, unadjust the LWP's PC.
11604 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11605 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11606 Adjust.
11607 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11608 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11609 (linux_stopped_by_watchpoint): Adjust.
11610 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11611 * linux-low.h (enum lwp_stop_reason): New.
11612 (struct lwp_info) <stop_pc>: Adjust comment.
11613 <stopped_by_watchpoint>: Delete field.
11614 <stop_reason>: New field.
11615 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11616 * mem-break.c (software_breakpoint_inserted_here)
11617 (hardware_breakpoint_inserted_here): New function.
11618 * mem-break.h (software_breakpoint_inserted_here)
11619 (hardware_breakpoint_inserted_here): Declare.
11620 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11621 (cancel_breakpoints): Delete.
11622 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11623 (upload_fast_traceframes): Remove references to
11624 cancel_breakpoints.
11625
a33e3959
PA
116262015-01-09 Pedro Alves <palves@redhat.com>
11627
11628 * thread-db.c (find_new_threads_callback): Ignore thread if the
11629 kernel thread ID is -1.
11630
8784d563
PA
116312015-01-09 Pedro Alves <palves@redhat.com>
11632
11633 * linux-low.c (linux_attach_fail_reason_string): Move to
11634 nat/linux-ptrace.c, and rename.
11635 (linux_attach_lwp): Update comment.
11636 (attach_proc_task_lwp_callback): New function.
11637 (linux_attach): Adjust to rename and use
11638 linux_proc_attach_tgid_threads.
11639 (linux_attach_fail_reason_string): Delete declaration.
11640
76f2b779
JB
116412015-01-01 Joel Brobecker <brobecker@adacore.com>
11642
11643 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11644 * server.c (gdbserver_version): Likewise.
11645
fafcc06a
SDJ
116462014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11647
11648 * remote-utils.c: Include ctype.h.
11649 (input_interrupt): Explicitly handle the case when the char
11650 received is the NUL byte. Improve the printing of non-ASCII
11651 characters.
11652
beed38b8
JB
116532014-12-16 Joel Brobecker <brobecker@adacore.com>
11654
11655 * linux-low.c (linux_low_filter_event): Update call to
11656 linux_enable_event_reporting following the addition of
11657 a new parameter to that function.
11658
bf330350
CU
116592014-12-16 Catalin Udma <catalin.udma@freescale.com>
11660
11661 PR server/17457
11662 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11663 (AARCH64_FPCR_REGNO): Likewise.
11664 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11665 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11666 (aarch64_store_fpregset): Likewise.
11667
5227d625
JB
116682014-12-15 Joel Brobecker <brobecker@adacore.com>
11669
11670 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11671 Remove FIXME comment about assumption about N.
11672
f93b65a0
JB
116732014-12-13 Joel Brobecker <brobecker@adacore.com>
11674
11675 * configure.ac: If large-file support is disabled in GDBserver,
11676 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11677 * configure: Regenerate.
11678
e5a9158d
AA
116792014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11680
11681 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11682 warning upon ENODATA from ptrace.
11683 * linux-s390-low.c (s390_store_tdb): New.
11684 (s390_regsets): Add regset for NT_S390_TDB.
11685
feea5f36
AA
116862014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11687
11688 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11689 without a fill_function.
11690 * linux-s390-low.c (s390_fill_last_break): Remove.
11691 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11692 (s390_arch_setup): Use regset's size instead of fill_function for
11693 loop end condition.
11694
098dbe61
AA
116952014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11696
11697 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11698 the regset's store function when ptrace returned an error.
11699 * regcache.c (get_thread_regcache): Invalidate register cache
11700 before fetching inferior's registers.
11701
28eef672
AA
117022014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11703
11704 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11705 while-loop as for-loop.
11706 (regsets_store_inferior_registers): Likewise.
11707
bdca27a2
YQ
117082014-11-28 Yao Qi <yao@codesourcery.com>
11709
11710 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11711 * config.in, configure: Re-generate.
11712 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11713 is defined.
11714
9c232dda
YQ
117152014-11-21 Yao Qi <yao@codesourcery.com>
11716
11717 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11718 (AC_CHECK_HEADERS): Remove malloc.h.
11719 * configure: Re-generated.
11720 * config.in: Re-generated.
11721 * server.h: Don't include alloca.h and malloc.h.
11722 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11723 Don't include malloc.h.
11724
43968415
JB
117252014-11-17 Joel Brobecker <brobecker@adacore.com>
11726
11727 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11728 corresponding ERRNO check in same block.
11729
40e91bc7
PA
117302014-11-12 Pedro Alves <palves@redhat.com>
11731
11732 * server.c (cont_thread): Update comment.
11733 (start_inferior, attach_inferior): No longer clear cont_thread.
11734 (handle_v_cont): No longer set cont_thread.
11735 (captured_main): Clear cont_thread each time a GDB connects.
11736
c2c118cf
PA
117372014-11-12 Pedro Alves <palves@redhat.com>
11738
11739 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11740 thread, and don't resume all threads if the Hc thread has exited.
11741
78708b7c
PA
117422014-11-12 Pedro Alves <palves@redhat.com>
11743
11744 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11745 the process group instead of to a specific LWP.
11746
a2abc7de
PA
117472014-10-15 Pedro Alves <palves@redhat.com>
11748
11749 PR server/17487
11750 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11751 parameter.
11752 (arm_set_thread_context): Delete.
11753 (the_low_target): Adjust.
11754 * win32-i386-low.c (debug_registers_changed)
11755 (debug_registers_used): Delete.
11756 (update_debug_registers_callback): New function.
11757 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11758 needing to update their debug registers.
11759 (win32_get_current_dr): New function.
11760 (x86_dr_low_get_addr, x86_dr_low_get_control)
11761 (x86_dr_low_get_status): Fetch the debug register from the thread
11762 record's context.
11763 (i386_initial_stuff): Adjust.
11764 (i386_get_thread_context): Remove current_event parameter. Don't
11765 clear debug_registers_changed nor copy DR values to
11766 debug_reg_state.
11767 (i386_set_thread_context): Delete.
11768 (i386_prepare_to_resume): New function.
11769 (i386_thread_added): Mark the thread as needing to update irs
11770 debug registers.
11771 (the_low_target): Remove i386_set_thread_context and install
11772 i386_prepare_to_resume.
11773 * win32-low.c (win32_get_thread_context): Adjust.
11774 (win32_set_thread_context): Use SetThreadContext
11775 directly.
11776 (win32_prepare_to_resume): New function.
11777 (win32_require_context): New function, factored out from ...
11778 (thread_rec): ... this.
11779 (continue_one_thread): Call win32_prepare_to_resume on each thread
11780 we're about to continue.
11781 (win32_resume): Call win32_prepare_to_resume on the event thread.
11782 * win32-low.h (struct win32_thread_info)
11783 <debug_registers_changed>: New field.
11784 (struct win32_target_ops): Change prototype of set_thread_context,
11785 delete set_thread_context and add prepare_to_resume.
11786 (win32_require_context): New declaration.
11787
a442d071
GB
117882014-10-08 Gary Benson <gbenson@redhat.com>
11789
11790 * server.h: Do not include common-exceptions.h.
11791
6f1947e8
GB
117922014-10-08 Gary Benson <gbenson@redhat.com>
11793
11794 * server.h: Do not include cleanups.h.
11795
63b434a4
JH
117962014-09-30 James Hogan <james.hogan@imgtec.com>
11797
11798 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11799 mips64-dsp-linux.c.
11800
c4d9ceb6
YQ
118012014-09-23 Yao Qi <yao@codesourcery.com>
11802
11803 * linux-low.c (lp_status_maybe_breakpoint): New function.
11804 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11805 (count_events_callback): Likewise.
11806 (select_event_lwp_callback): Likewise.
11807 (cancel_breakpoints_callback): Likewise.
11808
89a5711c
DB
118092014-09-19 Don Breazeal <donb@codesourcery.com>
11810
11811 * linux-low.c (handle_extended_wait): Call
11812 linux_ptrace_get_extended_event.
11813 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11814 linux_is_extended_waitstatus.
11815
bffc0964
JB
118162014-09-16 Joel Brobecker <brobecker@adacore.com>
11817
11818 * Makefile.in (CPPFLAGS): Define.
11819 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11820 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11821
0bfdf32f
GB
118222014-09-16 Gary Benson <gbenson@redhat.com>
11823
11824 * inferiors.h (current_inferior): Renamed as...
11825 (current_thread): New variable. All uses updated.
11826 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11827 (maybe_move_out_of_jump_pad): Likewise.
11828 (cancel_breakpoint): Likewise.
11829 (linux_low_filter_event): Likewise.
11830 (wait_for_sigstop): Likewise.
11831 (linux_resume_one_lwp): Likewise.
11832 (need_step_over_p): Likewise.
11833 (start_step_over): Likewise.
11834 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11835 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11836 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11837 and save_inferior as saved_thread.
11838 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11839 saved_thread.
11840 (regcache_invalidate_thread): Likewise.
11841 * remote-utils.c (prepare_resume_reply): Likewise.
11842 * thread-db.c (thread_db_get_tls_address): Likewise.
11843 (disable_thread_event_reporting): Likewise.
11844 (remove_thread_event_breakpoints): Likewise.
11845 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11846 as saved_thread.
11847 * target.h (set_desired_inferior): Renamed as...
11848 (set_desired_thread): New declaration. All uses updated.
11849 * server.c (myresume): Updated comment to reference thread instead
11850 of inferior.
11851 (handle_serial_event): Likewise.
11852 (handle_target_event): Likewise.
11853
361c8ade
GB
118542014-09-12 Tom Tromey <tromey@redhat.com>
11855 Gary Benson <gbenson@redhat.com>
11856
11857 * regcache.h: Include common-regcache.h.
11858 (regcache_read_pc): Don't declare.
11859 * regcache.c (get_thread_regcache_for_ptid): New function.
11860
bd9269f7
GB
118612014-09-11 Tom Tromey <tromey@redhat.com>
11862 Gary Benson <gbenson@redhat.com>
11863
11864 * symbol.c: New file.
11865 * Makefile.in (SFILES): Add symbol.c.
11866 (OBS): Add symbol.o.
11867
f8c1d06b
GB
118682014-09-11 Gary Benson <gbenson@redhat.com>
11869
11870 * target.c (target_stop_ptid, target_continue_ptid): New
11871 functions.
11872
721ec300
GB
118732014-09-11 Tom Tromey <tromey@redhat.com>
11874 Gary Benson <gbenson@redhat.com>
11875
11876 * target.h: Include target/target.h.
11877 * target.c (target_read_memory, target_read_uint32)
11878 (target_write_memory): New functions.
11879
c5e92cca
GB
118802014-09-11 Gary Benson <gbenson@redhat.com>
11881
11882 * server.h (debug_hw_points): Don't declare.
11883 * server.c (debug_hw_points): Don't define. Replace all uses
11884 with show_debug_regs.
11885 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11886 all uses with show_debug_regs.
11887
2e4bb98a
EBM
118882014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11889
11890 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11891 endianness into account.
11892 (ppc_supply_ptrace_register): Likewise.
11893
ac740bc7
JH
118942014-09-03 James Hogan <james.hogan@imgtec.com>
11895
11896 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11897 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11898
97ea6506
GB
118992014-09-03 Gary Benson <gbenson@redhat.com>
11900
11901 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11902 ALL_DEBUG_ADDRESS_REGISTERS.
11903
df7e5265
GB
119042014-09-02 Gary Benson <gbenson@redhat.com>
11905
11906 * i386-low.h: Renamed as...
11907 * x86-low.h: New file. All type, function and variable name
11908 prefixes changed from "i386_" to "x86_". All references updated.
11909 * i386-low.c: Renamed as...
11910 * x86-low.c: New file. All type, function and variable name
11911 prefixes changed from "i386_" to "x86_". All references updated.
11912
ed859da7
GB
119132014-09-02 Gary Benson <gbenson@redhat.com>
11914
11915 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11916 (x86_linux_new_thread): Likewise.
11917
860789c7
GB
119182014-08-29 Gary Benson <gbenson@redhat.com>
11919
11920 * server.h (setjmp.h): Do not include.
11921 (toplevel): Do not declare.
11922 (common-exceptions.h): Include.
11923 (cleanups.h): Likewise.
11924 * server.c (toplevel): Do not define.
11925 (exit_code): New static global.
11926 (detach_or_kill_for_exit_cleanup): New function.
11927 (main): New function. Original main renamed to...
11928 (captured_main): New function.
11929 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11930
ff55e1b5
GB
119312014-08-29 Gary Benson <gbenson@redhat.com>
11932
11933 * Makefile.in (SFILES): Add common/common-exceptions.c.
11934 (OBS): Add common-exceptions.o.
11935 (common-exceptions.o): New rule.
11936 * utils.c (prepare_to_throw_exception): New function.
11937
e9bcb658
GB
119382014-08-29 Gary Benson <gbenson@redhat.com>
11939
11940 * config.in: Regenerate.
11941 * configure: Likewise.
11942
e3180625
GB
119432014-08-29 Gary Benson <gbenson@redhat.com>
11944
11945 * Makefile.in (SFILES): Add common/cleanups.c.
11946 (OBS): cleanups.o.
11947 (cleanups.o): New rule.
11948
e3d6ba5d
GB
119492014-08-29 Gary Benson <gbenson@redhat.com>
11950
11951 * utils.c (internal_vwarning): New function.
11952
7096e886
GB
119532014-08-28 Gary Benson <gbenson@redhat.com>
11954
11955 * utils.h (fatal): Remove declaration.
11956 * utils.c (fatal): Remove function.
11957
14ce3192
GB
119582014-08-28 Gary Benson <gbenson@redhat.com>
11959
11960 * tracepoint.c (gdb_agent_init): Replace fatal with
11961 perror_with_name.
11962 (initialize_tracepoint): Likewise.
11963
50278d59
GB
119642014-08-28 Gary Benson <gbenson@redhat.com>
11965
11966 * remote-utils.c (remote_prepare): Replace fatal with error.
11967
aa96c426
GB
119682014-08-28 Gary Benson <gbenson@redhat.com>
11969
11970 * linux-low.c (linux_async): Replace fatal with warning.
11971 Tidy up and return.
11972 (linux_start_non_stop): Return -1 if linux_async failed.
11973
f7160e97
GB
119742014-08-28 Gary Benson <gbenson@redhat.com>
11975
11976 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11977 gdb_assert.
11978 (i386_dr_low_get_addr): Remove vague comment.
11979 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11980 gdb_assert.
11981
38e08fca
GB
119822014-08-28 Gary Benson <gbenson@redhat.com>
11983
11984 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11985 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11986 internal_error.
11987 (linux_resume_one_lwp): Likewise.
11988 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11989 gdb_assert.
11990 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11991 with internal_error.
11992 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11993 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11994 (find_register_by_name): Replace fatal with internal_error.
11995 (find_regno): Likewise.
11996 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11997 * thread-db.c (thread_db_create_event): Likewise.
11998 (thread_db_load_search): Likewise.
11999 (try_thread_db_load_1): Likewise.
12000 * tracepoint.c (get_jump_space_head): Replace fatal with
12001 internal_error.
12002 (claim_trampoline_space): Likewise.
12003 (have_fast_tracepoint_trampoline_buffer): Likewise.
12004 (cmd_qtstart): Likewise.
12005 (stop_tracing): Likewise.
12006 (fast_tracepoint_collecting): Likewise.
12007 (target_malloc): Likewise.
12008 (download_tracepoint): Likewise.
12009 (download_trace_state_variables): Replace check with gdb_assert.
12010 (upload_fast_traceframes): Replace fatal with internal_error.
12011
34abf635
GB
120122014-08-19 Tom Tromey <tromey@redhat.com>
12013 Gary Benson <gbenson@redhat.com>
12014
12015 * Makefile.in (SFILES): Add common/common-debug.c.
12016 (OBS): Add common-debug.o.
12017 (common-debug.o): New rule.
12018 * debug.h (debug_printf): Don't declare.
12019 * debug.c (debug_printf): Renamed and rewritten as...
12020 (debug_vprintf): New function.
12021
f6e94d78
GB
120222014-08-19 Gary Benson <gbenson@redhat.com>
12023
12024 * utils.h: Do not include print-utils.h.
12025
9239eeab
GB
120262014-08-19 Tom Tromey <tromey@redhat.com>
12027 Gary Benson <gbenson@redhat.com>
12028
12029 * server.h: Add static assertion.
12030 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12031
ef87c8bb
GB
120322014-08-19 Tom Tromey <tromey@redhat.com>
12033 Gary Benson <gbenson@redhat.com>
12034
12035 * Makefile.in (SFILES): Add common/errors.c.
12036 (OBS): Add errors.o.
12037 (IPA_OBS): Add errors-ipa.o.
12038 (errors.o): New rule.
12039 (errors-ipa.o): Likewise.
12040 * utils.h (perror_with_name, error, warning): Don't declare.
12041 * utils.c (warning): Renamed and rewritten as...
12042 (vwarning): New function.
12043 (error): Renamed and rewritten as...
12044 (verror): New function.
12045 (internal_error): Renamed and rewritten as...
12046 (internal_verror): New function.
12047
bb974a24
GB
120482014-08-07 Gary Benson <gbenson@redhat.com>
12049
12050 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12051 * configure: Regenerate.
12052 * config.in: Likewise.
12053 * server.h: Do not include errno.h.
12054 * event-loop.c: Likewise.
12055 * hostio-errno.c: Likewise.
12056 * linux-low.c: Likewise.
12057 * remote-utils.c: Likewise.
12058 * spu-low.c: Likewise.
12059 * utils.c: Likewise.
12060 * gdbreplay.c: Unconditionally include errno.h.
12061
6d3d12eb
GB
120622014-08-07 Gary Benson <gbenson@redhat.com>
12063
12064 * server.h: Do not include string.h.
12065 * event-loop.c: Likewise.
12066 * linux-low.c: Likewise.
12067 * regcache.c: Likewise.
12068 * remote-utils.c: Likewise.
12069 * spu-low.c: Likewise.
12070 * utils.c: Likewise.
12071
dccbb609
GB
120722014-08-07 Gary Benson <gbenson@redhat.com>
12073
12074 * server.h: Do not include gdb_assert.h.
12075
e76df0d0
GB
120762014-08-07 Gary Benson <gbenson@redhat.com>
12077
12078 * server.h: Do not include common-utils.h.
12079
4cb9c816
GB
120802014-08-07 Gary Benson <gbenson@redhat.com>
12081
12082 * server.h: Do not include ptid.h.
12083 * notif.h: Likewise.
12084
3995eeee
GB
120852014-08-07 Gary Benson <gbenson@redhat.com>
12086
12087 * server.h: Do not include gdb_locale.h.
12088
cb9f1a9b
GB
120892014-08-07 Gary Benson <gbenson@redhat.com>
12090
12091 * server.h: Do not include gdb/signals.h.
12092 * win32-low.c: Likewise.
12093
a5fceff8
GB
120942014-08-07 Gary Benson <gbenson@redhat.com>
12095
12096 * server.h: Do not include pathmax.h.
12097
b9391142
GB
120982014-08-07 Gary Benson <gbenson@redhat.com>
12099
12100 * server.h: Do not include libiberty.h.
12101 * linux-bfin-low.c: Likewise.
12102
0e443c87
GB
121032014-08-07 Gary Benson <gbenson@redhat.com>
12104
12105 * server.h: Do not include ansidecl.h.
12106
8ebb3f56
GB
121072014-08-07 Gary Benson <gbenson@redhat.com>
12108
12109 * linux-x86-low.c: Do not include stddef.h.
12110 * lynx-ppc-low.c: Likewise.
12111 * tracepoint.c: Likewise.
12112
8980bdf6
GB
121132014-08-07 Gary Benson <gbenson@redhat.com>
12114
12115 * server.h: Do not include stdarg.h.
12116 * nto-low.c: Likewise.
12117
d7096f71
GB
121182014-08-07 Gary Benson <gbenson@redhat.com>
12119
12120 * server.h: Do not include stdlib.h.
12121 * inferiors.c: Likewise.
12122 * linux-low.c: Likewise.
12123 * regcache.c: Likewise.
12124 * spu-low.c: Likewise.
12125 * tracepoint.c: Likewise.
12126 * utils.c: Likewise.
12127
d02f550d
GB
121282014-08-07 Gary Benson <gbenson@redhat.com>
12129
12130 * server.h: Do not include stdio.h.
12131 * linux-low.c: Likewise.
12132 * remote-utils.c: Likewise.
12133 * spu-low.c: Likewise.
12134 * utils.c: Likewise.
12135 * wincecompat.c: Likewise.
12136
87f6c4e3
GB
121372014-08-06 Gary Benson <gbenson@redhat.com>
12138
12139 * regcache.c (init_register_cache): Move conditionals inside if.
12140
7089dca4
GB
121412014-08-06 Gary Benson <gbenson@redhat.com>
12142
12143 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12144
462f517e
GB
121452014-07-31 Gary Benson <gbenson@redhat.com>
12146
12147 * ax.h: Do not include server.h.
12148 * gdbthread.h: Likewise.
12149 * lynx-low.h: Likewise.
12150 * notif.h: Likewise.
12151
976411d6
GB
121522014-07-30 Gary Benson <gbenson@redhat.com>
12153
12154 * server.h: Include common-defs.h.
12155 Do not include config.h or build-gnulib-gdbserver/config.h.
12156
d41f6d8e
GB
121572014-07-30 Gary Benson <gbenson@redhat.com>
12158
12159 * hostio-errno.c: Move server.h to top of includes list.
12160 * inferiors.c: Likewise.
12161 * linux-x86-low.c: Likewise.
12162 * notif.c: Include server.h.
12163
314c6a35
TT
121642014-07-24 Tom Tromey <tromey@redhat.com>
12165 Gary Benson <gbenson@redhat.com>
12166
12167 * server.h (CORE_ADDR): Now unsigned.
12168
69ff6be5
PA
121692014-07-16 Pedro Alves <palves@redhat.com>
12170
12171 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12172
ce9e3fe7
PA
121732014-07-15 Pedro Alves <palves@redhat.com>
12174
12175 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12176 copy.
12177
e76126e8
PA
121782014-07-11 Pedro Alves <palves@redhat.com>
12179
12180 * linux-low.c (kill_wait_lwp): New function, based on
12181 kill_one_lwp_callback, but use my_waitpid directly.
12182 (kill_one_lwp_callback, linux_kill): Use it.
12183
8e9db26e
PA
121842014-06-23 Pedro Alves <palves@redhat.com>
12185
12186 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12187 before setting DR0..DR3.
12188
698b3e08
GB
121892014-06-20 Gary Benson <gbenson@redhat.com>
12190
12191 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12192 * configure: Regenerated.
12193 * config.in: Likewise.
12194
125f8a3d
GB
121952014-06-20 Gary Benson <gbenson@redhat.com>
12196
12197 * Makefile.in (SFILES): Update locations for files moved
12198 from common to nat.
12199 (object file files): Reordered.
12200
42995dbd
GB
122012014-06-20 Gary Benson <gbenson@redhat.com>
12202
12203 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12204 (i386_dr_low_set_addr): Likewise.
12205 (i386_dr_low_get_addr): Likewise.
12206 (i386_dr_low_can_set_control): Likewise.
12207 (i386_dr_low_set_control): Likewise.
12208 (i386_dr_low_get_control): Likewise.
12209 (i386_dr_low_get_status): Likewise.
12210 (i386_get_debug_register_length): Likewise.
12211 * linux-x86-low.c (i386_dr_low_set_addr):
12212 Changed signature. Made static.
12213 (i386_dr_low_get_addr): Likewise.
12214 (i386_dr_low_set_control): Likewise.
12215 (i386_dr_low_get_control): Likewise.
12216 (i386_dr_low_get_status): Likewise.
12217 (i386_dr_low): New global variable.
12218 * win32-i386-low.c (i386_dr_low_set_addr):
12219 Changed signature. Made static.
12220 (i386_dr_low_get_addr): Likewise.
12221 (i386_dr_low_set_control): Likewise.
12222 (i386_dr_low_get_control): Likewise.
12223 (i386_dr_low_get_status): Likewise.
12224 (i386_dr_low): New global variable.
12225
e1d2394b
MS
122262014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12227
12228 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12229 * Makefile.in (AR, AR_FLAGS): Define.
12230 * configure: Regenerate.
12231
3a8ee006
GB
122322014-06-19 Gary Benson <gbenson@redhat.com>
12233
12234 * Makefile.in (i386-dregs.o): New rule.
12235 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12236 * i386-low.c (target.h): Remove include.
12237 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12238 (DR_CONTROL_SHIFT): Likewise.
12239 (DR_CONTROL_SIZE): Likewise.
12240 (DR_RW_EXECUTE): Likewise.
12241 (DR_RW_WRITE): Likewise.
12242 (DR_RW_READ): Likewise.
12243 (DR_RW_IORW): Likewise.
12244 (DR_LEN_1): Likewise.
12245 (DR_LEN_2): Likewise.
12246 (DR_LEN_4): Likewise.
12247 (DR_LEN_8): Likewise.
12248 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12249 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12250 (DR_ENABLE_SIZE): Likewise.
12251 (DR_LOCAL_SLOWDOWN): Likewise.
12252 (DR_GLOBAL_SLOWDOWN): Likewise.
12253 (DR_CONTROL_RESERVED): Likewise.
12254 (I386_DR_CONTROL_MASK): Likewise.
12255 (I386_DR_VACANT): Likewise.
12256 (I386_DR_LOCAL_ENABLE): Likewise.
12257 (I386_DR_GLOBAL_ENABLE): Likewise.
12258 (I386_DR_DISABLE): Likewise.
12259 (I386_DR_SET_RW_LEN): Likewise.
12260 (I386_DR_GET_RW_LEN): Likewise.
12261 (I386_DR_WATCH_HIT): Likewise.
12262 (i386_wp_op_t): Likewise.
12263 (i386_show_dr): Likewise.
12264 (i386_length_and_rw_bits): Likewise.
12265 (i386_insert_aligned_watchpoint): Likewise.
12266 (i386_remove_aligned_watchpoint): Likewise.
12267 (i386_handle_nonaligned_watchpoint): Likewise.
12268 i386_update_inferior_debug_regs(): Likewise.
12269 (i386_dr_insert_watchpoint): Likewise.
12270 (i386_dr_remove_watchpoint): Likewise.
12271 (i386_dr_region_ok_for_watchpoint): Likewise.
12272 (i386_dr_stopped_data_address): Likewise.
12273 (i386_dr_stopped_by_watchpoint): Likewise.
12274
8f26655c
GB
122752014-06-19 Gary Benson <gbenson@redhat.com>
12276
12277 * i386-low.c (i386_dr_show): Renamed to
12278 i386_show_dr and made static. All uses updated.
12279 (i386_dr_length_and_rw_bits): Renamed to
12280 i386_length_and_rw_bits and made static.
12281 All uses updated.
12282 (i386_dr_insert_aligned_watchpoint): Renamed to
12283 i386_insert_aligned_watchpoint and made static.
12284 All uses updated.
12285 (i386_dr_remove_aligned_watchpoint): Renamed to
12286 i386_remove_aligned_watchpoint and made static.
12287 All uses updated.
12288 (i386_dr_update_inferior_debug_regs): Renamed to
12289 i386_update_inferior_debug_regs and made static.
12290 All uses updated.
12291
b9228891
GB
122922014-06-18 Gary Benson <gbenson@redhat.com>
12293
5171def3
GB
12294 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12295 (i386_dr_low_can_set_control): Likewise.
12296 (i386_get_debug_register_length): Likewise.
12297 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12298 (i386_dr_low_can_set_control): Likewise.
12299 (i386_get_debug_register_length): Likewise.
12300
123012014-06-17 Gary Benson <gbenson@redhat.com>
12302
b9228891
GB
12303 * i386-low.h (i386-dregs.h): New include.
12304 (DR_FIRSTADDR): Now in i386-dregs.h.
12305 (DR_LASTADDR): Likewise.
12306 (DR_NADDR): Likewise.
12307 (DR_STATUS): Likewise.
12308 (DR_CONTROL): Likewise.
12309 (i386_debug_reg_state): Likewise.
12310 (i386_dr_insert_watchpoint): Likewise.
12311 (i386_dr_remove_watchpoint): Likewise.
12312 (i386_dr_region_ok_for_watchpoint): Likewise.
12313 (i386_dr_stopped_data_address): Likewise.
12314 (i386_dr_stopped_by_watchpoint): Likewise.
12315 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12316
4be83cc2
GB
123172014-06-18 Gary Benson <gbenson@redhat.com>
12318
12319 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12320 i386_dr_insert_watchpoint.
12321 (i386_low_remove_watchpoint): Renamed to
12322 i386_dr_remove_watchpoint.
12323 (i386_low_region_ok_for_watchpoint): Renamed to
12324 i386_dr_region_ok_for_watchpoint.
12325 (i386_low_stopped_data_address): Renamed to
12326 i386_dr_stopped_data_address.
12327 (i386_low_stopped_by_watchpoint): Renamed to
12328 i386_dr_stopped_by_watchpoint.
12329 * i386-low.c (i386_show_dr): Renamed to
12330 i386_dr_show and made nonstatic. All uses updated.
12331 (i386_length_and_rw_bits): Renamed to
12332 i386_dr_length_and_rw_bits and made nonstatic.
12333 All uses updated.
12334 (i386_insert_aligned_watchpoint): Renamed to
12335 i386_dr_insert_aligned_watchpoint and made nonstatic.
12336 All uses updated.
12337 (i386_remove_aligned_watchpoint): Renamed to
12338 i386_dr_remove_aligned_watchpoint and made nonstatic.
12339 All uses updated.
12340 (i386_update_inferior_debug_regs): Renamed to
12341 i386_dr_update_inferior_debug_regs and made nonstatic.
12342 All uses updated.
12343 (i386_low_insert_watchpoint): Renamed to
12344 i386_dr_insert_watchpoint. All uses updated.
12345 (i386_low_remove_watchpoint): Renamed to
12346 i386_dr_remove_watchpoint. All uses updated.
12347 (i386_low_region_ok_for_watchpoint): Renamed to
12348 i386_dr_region_ok_for_watchpoint. All uses updated.
12349 (i386_low_stopped_data_address): Renamed to
12350 i386_dr_stopped_data_address. All uses updated.
12351 (i386_low_stopped_by_watchpoint): Renamed to
12352 i386_dr_stopped_by_watchpoint. All uses updated.
12353
131aa0d4
GB
123542014-06-18 Gary Benson <gbenson@redhat.com>
12355
12356 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12357 (i386_dr_low_can_set_control): Likewise.
12358 (i386_insert_aligned_watchpoint): New check.
12359
d9305f7f
GB
123602014-06-18 Gary Benson <gbenson@redhat.com>
12361
12362 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12363 Renamed to state.
12364
e927c9fc
GB
123652014-06-18 Gary Benson <gbenson@redhat.com>
12366
12367 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12368 instead of fatal and error.
12369 (i386_handle_nonaligned_watchpoint): Likewise.
12370
1b6d4134
GB
123712014-06-18 Gary Benson <gbenson@redhat.com>
12372
12373 * i386-low.c (i386_get_debug_register_length): New macro.
12374 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12375 (i386_show_dr): Use debug_printf instead of fprintf. Use
12376 phex to format values.
12377
6e62758f
GB
123782014-06-18 Gary Benson <gbenson@redhat.com>
12379
12380 * i386-low.h: Comment changes.
12381 * i386-low.c: Likewise.
12382
fc6e2f03
GB
123832014-06-18 Gary Benson <gbenson@redhat.com>
12384
12385 * i386-low.c: Whitespace changes.
12386
f9d1eeed
TT
123872014-06-12 Tom Tromey <tromey@redhat.com>
12388
12389 * utils.c (freeargv): Remove.
12390
0b04e523
TT
123912014-06-12 Tom Tromey <tromey@redhat.com>
12392
12393 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12394 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12395 (parse_debug_format_options): Likewise.
12396 (gdbserver_usage): Likewise.
12397 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12398 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12399 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12400 against libiberty.
12401 ($(LIBGNU)): Depend on libiberty.
12402 (all-lib): Recurse into all subdirs.
12403 (install-only): Invoke "install" target in subdirs.
12404 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12405 targets.
12406 * configure: Rebuild.
12407 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12408 for vasprintf, vsnprintf, or gettimeofday.
12409 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12410 srv_tgtobj.
12411
270c9937
JB
124122014-06-05 Joel Brobecker <brobecker@adacore.com>
12413
12414 * development.sh: Delete.
12415 * Makefile.in (config.status): Adjust dependency on development.sh.
12416 * configure.ac: Adjust development.sh source call.
12417 * configure: Regenerate.
12418
0a261ed8
PA
124192014-06-02 Pedro Alves <palves@redhat.com>
12420
12421 * ax.c (gdb_free_agent_expr): New function.
12422 * ax.h (gdb_free_agent_expr): New declaration.
12423 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12424 list.
12425 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12426 static.
12427 (clear_breakpoint_conditions_and_commands): New function.
12428 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12429 (clear_breakpoint_conditions_and_commands): New declaration.
12430
e9dae05e
RR
124312014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12432
12433 * linux-aarch64-low.c (asm/ptrace.h): Include.
12434
5876f503
JK
124352014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12436
12437 Fix TLS access for -static -pthread.
12438 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12439 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12440 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12441
802e8e6d
PA
124422014-05-20 Pedro Alves <palves@redhat.com>
12443
12444 * linux-aarch64-low.c (aarch64_insert_point)
12445 (aarch64_remove_point): No longer check whether the type is
12446 supported here. Adjust to new interface.
12447 (the_low_target): Install aarch64_supports_z_point_type as
12448 supports_z_point_type method.
12449 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12450 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12451 instead of a Z packet char. Adjust.
12452 (arm_supports_z_point_type): New function.
12453 (arm_insert_point, arm_remove_point): Adjust to new interface.
12454 (the_low_target): Install arm_supports_z_point_type.
12455 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12456 (cris_insert_point, cris_remove_point): Adjust to new interface.
12457 Don't check whether the type is supported here.
12458 (the_low_target): Install cris_supports_z_point_type.
12459 * linux-low.c (linux_supports_z_point_type): New function.
12460 (linux_insert_point, linux_remove_point): Adjust to new interface.
12461 * linux-low.h (struct linux_target_ops) <insert_point,
12462 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12463 raw_breakpoint pointer parameter.
12464 <supports_z_point_type>: New method.
12465 * linux-mips-low.c (mips_supports_z_point_type): New function.
12466 (mips_insert_point, mips_remove_point): Adjust to new interface.
12467 Use mips_supports_z_point_type.
12468 (the_low_target): Install mips_supports_z_point_type.
12469 * linux-ppc-low.c (the_low_target): Install NULL as
12470 supports_z_point_type method.
12471 * linux-s390-low.c (the_low_target): Install NULL as
12472 supports_z_point_type method.
12473 * linux-sparc-low.c (the_low_target): Install NULL as
12474 supports_z_point_type method.
12475 * linux-x86-low.c (x86_supports_z_point_type): New function.
12476 (x86_insert_point): Adjust to new insert_point interface. Use
12477 insert_memory_breakpoint. Adjust to new
12478 i386_low_insert_watchpoint interface.
12479 (x86_remove_point): Adjust to remove_point interface. Use
12480 remove_memory_breakpoint. Adjust to new
12481 i386_low_remove_watchpoint interface.
12482 (the_low_target): Install x86_supports_z_point_type.
12483 * lynx-low.c (lynx_target_ops): Install NULL as
12484 supports_z_point_type callback.
12485 * nto-low.c (nto_supports_z_point_type): New.
12486 (nto_insert_point, nto_remove_point): Adjust to new interface.
12487 (nto_target_ops): Install nto_supports_z_point_type.
12488 * mem-break.c: Adjust intro comment.
12489 (struct raw_breakpoint) <raw_type, size>: New fields.
12490 <inserted>: Update comment.
12491 <shlib_disabled>: Delete field.
12492 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12493 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12494 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12495 (raw_bkpt_type_to_target_hw_bp_type): New function.
12496 (find_enabled_raw_code_breakpoint_at): New function.
12497 (find_raw_breakpoint_at): New type and size parameters. Use them.
12498 (insert_memory_breakpoint): New function, based off
12499 set_raw_breakpoint_at.
12500 (remove_memory_breakpoint): New function.
12501 (set_raw_breakpoint_at): Reimplement.
12502 (set_breakpoint): New, based on set_breakpoint_at.
12503 (set_breakpoint_at): Reimplement.
12504 (delete_raw_breakpoint): Go through the_target->remove_point
12505 instead of assuming memory breakpoints.
12506 (find_gdb_breakpoint_at): Delete.
12507 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12508 (find_gdb_breakpoint): New function.
12509 (set_gdb_breakpoint_at): Delete.
12510 (z_type_supported): New function.
12511 (set_gdb_breakpoint_1): New function, loosely based off
12512 set_gdb_breakpoint_at.
12513 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12514 (delete_gdb_breakpoint_at): Delete.
12515 (delete_gdb_breakpoint_1): New function, loosely based off
12516 delete_gdb_breakpoint_at.
12517 (delete_gdb_breakpoint): New function.
12518 (clear_gdb_breakpoint_conditions): Rename to ...
12519 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12520 breakpoint.
12521 (add_condition_to_breakpoint): Make static.
12522 (add_breakpoint_condition): Take a struct breakpoint pointer
12523 instead of an address. Adjust.
12524 (gdb_condition_true_at_breakpoint): Rename to ...
12525 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12526 z_type parameter.
12527 (gdb_condition_true_at_breakpoint): Reimplement.
12528 (add_breakpoint_commands): Take a struct breakpoint pointer
12529 instead of an address. Adjust.
12530 (gdb_no_commands_at_breakpoint): Rename to ...
12531 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12532 parameter. Return true if no breakpoint was found. Change debug
12533 output.
12534 (gdb_no_commands_at_breakpoint): Reimplement.
12535 (run_breakpoint_commands): Rename to ...
12536 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12537 and change return type to boolean.
12538 (run_breakpoint_commands): New function.
12539 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12540 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12541 breakpoint. Go through the_target->remove_point instead of
12542 assuming memory breakpoint.
12543 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12544 software and hardware breakpoints.
12545 (reinsert_raw_breakpoint): Go through the_target->insert_point
12546 instead of assuming memory breakpoint.
12547 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12548 software and hardware breakpoints.
12549 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12550 Check both software and hardware breakpoints.
12551 (validate_inserted_breakpoint): Assert the breakpoint is a
12552 software breakpoint. Set the inserted flag to -1 instead of
12553 setting shlib_disabled.
12554 (delete_disabled_breakpoints): Adjust.
12555 (validate_breakpoints): Only validate software breakpoints.
12556 Adjust to inserted flag change.
12557 (check_mem_read, check_mem_write): Skip breakpoint types other
12558 than software breakpoints. Adjust to inserted flag change.
12559 * mem-break.h (enum raw_bkpt_type): New enum.
12560 (raw_breakpoint, struct process_info): Forward declare.
12561 (Z_packet_to_target_hw_bp_type): Delete declaration.
12562 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12563 (set_gdb_breakpoint, delete_gdb_breakpoint)
12564 (clear_breakpoint_conditions): New declarations.
12565 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12566 (breakpoint_inserted_here): Update comment.
12567 (add_breakpoint_condition, add_breakpoint_commands): Replace
12568 address parameter with a breakpoint pointer parameter.
12569 (gdb_breakpoint_here): Update comment.
12570 (delete_gdb_breakpoint_at): Delete.
12571 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12572 * server.c (process_point_options): Take a struct breakpoint
12573 pointer instead of an address. Adjust.
12574 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12575 delete_gdb_breakpoint.
12576 * spu-low.c (spu_target_ops): Install NULL as
12577 supports_z_point_type method.
12578 * target.h: Include mem-break.h.
12579 (struct target_ops) <prepare_to_access_memory>: Update comment.
12580 <supports_z_point_type>: New field.
12581 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12582 instead of a char. Also take a raw breakpoint pointer.
12583 * win32-arm-low.c (the_low_target): Install NULL as
12584 supports_z_point_type.
12585 * win32-i386-low.c (i386_supports_z_point_type): New function.
12586 (i386_insert_point, i386_remove_point): Adjust to new interface.
12587 (the_low_target): Install i386_supports_z_point_type.
12588 * win32-low.c (win32_supports_z_point_type): New function.
12589 (win32_insert_point, win32_remove_point): Adjust to new interface.
12590 (win32_target_ops): Install win32_supports_z_point_type.
12591 * win32-low.h (struct win32_target_ops):
12592 <supports_z_point_type>: New method.
12593 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12594 instead of a char. Also take a raw breakpoint pointer.
12595
932539e3
PA
125962014-05-20 Pedro Alves <palves@redhat.com>
12597
12598 * mem-break.h: Include break-common.h.
12599 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12600 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12601 (Z_packet_to_target_hw_bp_type): New declaration.
12602 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12603 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12604 (Z_PACKET_ACCESS_WP): Delete macros.
12605 (Z_packet_to_hw_type): Delete function.
12606 * i386-low.h: Don't include break-common.h here.
12607 (Z_packet_to_hw_type): Delete declaration.
12608 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12609 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12610 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12611 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12612 * linux-aarch64-low.c: Don't include break-common.h here.
12613 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12614 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12615 (Z_packet_to_target_hw_bp_type): Delete function.
12616 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12617 function.
12618 (mips_insert_point, mips_remove_point): Use
12619 Z_packet_to_target_hw_bp_type.
12620
4ff0d3d8
PA
126212014-05-20 Pedro Alves <palves@redhat.com>
12622
12623 * linux-aarch64-low.c: Include break-common.h.
12624 (enum target_point_type): Delete.
12625 (Z_packet_to_point_type): Rename to ...
12626 (Z_packet_to_target_hw_bp_type): ... this, and return a
12627 target_hw_bp_type instead.
12628 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12629 instead of an enum target_point_type.
12630 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12631 breakpoint type.
12632 (aarch64_dr_state_insert_one_point)
12633 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12634 (aarch64_handle_aligned_watchpoint)
12635 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12636 Take an enum target_hw_bp_type instead of an enum
12637 target_point_type.
12638 (aarch64_supports_z_point_type): New function.
12639 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12640 use Z_packet_to_target_hw_bp_type.
12641
786dc519
JB
126422014-05-20 Joel Brobecker <brobecker@adacore.com>
12643
12644 * configure.ac: Only use -Werror by default when DEVELOPMENT
12645 is true.
12646 * configure: Regenerate.
12647
9e0aa64f
JK
126482014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12649
12650 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12651 * linux-x86-low.c (X86_64_USER_REGS): New.
12652 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12653
2b577b92
YQ
126542014-04-28 Yao Qi <yao@codesourcery.com>
12655
12656 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12657 name.
12658
94611da2
PA
126592014-04-25 Pedro Alves <palves@redhat.com>
12660
12661 PR server/16255
12662 * linux-low.c (linux_attach_fail_reason_string): New function.
12663 (linux_attach_lwp): Delete.
12664 (linux_attach_lwp_1): Rename to ...
12665 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12666 argument. Remove "initial" parameter. Return int instead of
12667 void. Don't error or warn here.
12668 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12669 failure to attach to the tgid. Call warning when failing to
12670 attach to an lwp.
12671 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12672 argument. Remove "initial" parameter. Return int instead of
12673 void. Don't error or warn here.
12674 (linux_attach_fail_reason_string): New declaration.
12675 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12676 interface change. Use linux_attach_fail_reason_string.
12677
01f9f808
MS
126782014-04-24 Michael Sturm <michael.sturm@mintel.com>
12679 Walfred Tedeschi <walfred.tedeschi@intel.com>
12680
12681 * Makefile.in: Added rules to handle new files
12682 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12683 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12684 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12685 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12686 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12687 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12688 x32-avx512-linux.o.
12689 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12690 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12691 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12692 i386/x32-avx512.xml.
12693 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12694 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12695 i386/x32-avx512-linux.xml.
12696 * i387-fp.c (num_avx512_k_registers): New constant for number
12697 of K registers.
12698 (num_avx512_zmmh_low_registers): New constant for number of
12699 lower ZMM registers (0-15).
12700 (num_avx512_zmmh_high_registers): New constant for number of
12701 higher ZMM registers (16-31).
12702 (num_avx512_ymmh_registers): New contant for number of higher
12703 YMM registers (ymm16-31 added by avx521 on x86_64).
12704 (num_avx512_xmm_registers): New constant for number of higher
12705 XMM registers (xmm16-31 added by AVX512 on x86_64).
12706 (struct i387_xsave): Add space for AVX512 registers.
12707 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12708 Add code to handle AVX512 registers.
12709 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12710 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12711 prototypei from generated file.
12712 (tdesc_amd64_avx512_linux): Likewise.
12713 (init_registers_x32_avx512_linux): Likewise.
12714 (tdesc_x32_avx512_linux): Likewise.
12715 (init_registers_i386_avx512_linux): Likewise.
12716 (tdesc_i386_avx512_linux): Likewise.
12717 (x86_64_regmap): Add AVX512 registers.
12718 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12719 mask.
12720 (initialize_low_arch): Add code to initialize AVX512 registers.
12721
51aa91f9
PA
127222014-04-23 Pedro Alves <palves@redhat.com>
12723
12724 * mem-break.c (find_gdb_breakpoint_at): Make static.
12725 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12726
a4165e94
PA
127272014-04-23 Pedro Alves <palves@redhat.com>
12728
12729 * i386-low.c: Don't include break-common.h here.
12730 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12731 prototype to take target_hw_bp_type as argument instead of a Z
12732 packet char.
12733 * i386-low.h: Include break-common.h here.
12734 (Z_packet_to_hw_type): Declare.
12735 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12736 prototypes.
12737 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12738 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12739 (x86_remove_point): Convert the packet number to a
12740 target_hw_bp_type before calling i386_low_remove_watchpoint.
12741 * win32-i386-low.c (i386_insert_point): Convert the packet number
12742 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12743 (i386_remove_point): Convert the packet number to a
12744 target_hw_bp_type before calling i386_low_remove_watchpoint.
12745
b8acf843
PA
127462014-04-23 Pedro Alves <palves@redhat.com>
12747
12748 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12749
d708bcd1
PA
127502014-04-10 Pedro Alves <palves@redhat.com>
12751
12752 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12753 Check if the condition or command is NULL before checking if the
12754 breakpoint is known. On success, return true.
12755 * mem-break.h (add_breakpoint_condition): Document return.
12756 (add_breakpoint_commands): Add describing comment.
12757 * server.c (skip_to_semicolon): New function.
12758 (process_point_options): Use it.
12759
2eec7d5b
PA
127602014-04-09 Pedro Alves <palves@redhat.com>
12761
12762 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12763 to lwpid_of.
12764
fa96cb38
PA
127652014-02-27 Pedro Alves <palves@redhat.com>
12766
12767 PR 12702
12768 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12769 macros.
12770 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12771 output.
12772 (last_thread_of_process_p): Take a PID argument instead of a
12773 thread pointer.
12774 (linux_wait_for_lwp): Delete.
12775 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12776 functions.
12777 (linux_low_filter_event): New function, party factored out from
12778 linux_wait_for_event.
12779 (linux_wait_for_event): Rename to ...
12780 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12781 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12782 sigsuspend. Check for zombie leaders.
12783 (linux_wait_for_event): Reimplement as wrapper around
12784 linux_wait_for_event_filtered.
12785 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12786 a normal or signal exit is seen, it's the whole process exiting.
12787 (wait_for_sigstop): No longer a for_each_inferior callback.
12788 Rewrite on top of linux_wait_for_event_filtered.
12789 (stop_all_lwps): Call wait_for_sigstop directly.
12790 * server.c (resume, handle_target_event): Handle
12791 TARGET_WAITKIND_NO_RESUMED.
12792
d763de10
JB
127932014-02-26 Joel Brobecker <brobecker@adacore.com>
12794
12795 * win32-low.c (psapi_get_dll_name,
12796 * win32_CreateToolhelp32Snapshot): Delete.
12797 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12798 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12799 Delete.
12800 (handle_load_dll): Add function description.
12801 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12802
850a0f76
JB
128032014-02-26 Joel Brobecker <brobecker@adacore.com>
12804
12805 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12806 Add comment.
12807 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12808 base address when calling win32_add_one_solib.
12809 (handle_load_dll): Delete local variable load_addr.
12810 Remove 0x1000 offset applied to DLL base address when calling
12811 win32_add_one_solib.
12812 (handle_unload_dll): Add comment.
12813
f25b3fc3
JB
128142014-02-26 Joel Brobecker <brobecker@adacore.com>
12815
12816 * win32-low.c (win32_add_all_dlls): Renames
12817 win32_ensure_ntdll_loaded. Rewrite function documentation.
12818 Adjust implementation to always load all DLLs.
12819 Add 0x1000 offset to DLL base address when calling
12820 win32_add_one_solib.
12821 (child_initialization_done): New static global.
12822 (do_initial_child_stuff): Set child_initialization_done to
12823 zero during child initialization, and 1 after. Replace call
12824 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12825 Add comment.
12826 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12827 (handle_unload_dll): Add function documentation.
12828 (get_child_debug_event): Ignore load and unload DLL events
12829 during child initialization.
12830
d86d4aaf
DE
128312014-02-20 Doug Evans <dje@google.com>
12832
3bc32da3 12833 Remove global all_lwps.
d86d4aaf
DE
12834 * inferiors.h (ptid_of): Move here from linux-low.h.
12835 (pid_of, lwpid_of): Ditto.
12836 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12837 parameter is a struct thread_info * now.
12838 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12839 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12840 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12841 directly.
12842 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12843 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12844 * linux-arm-low.c (update_registers_callback): Update, "entry"
12845 parameter is a struct thread_info * now.
12846 Fetch lwpid from current_inferior directly.
12847 (arm_insert_point): Pass &all_threads to find_inferior instead of
12848 &all_lwps.
12849 (arm_remove_point): Ditto.
12850 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12851 (arm_prepare_to_resume): Fetch pid from thread.
12852 (arm_read_description): Fetch lwpid from current_inferior directly.
12853 * linux-low.c (all_lwps): Delete.
12854 (delete_lwp): Delete call to remove_inferior.
12855 (handle_extended_wait): Fetch lwpid from thread.
12856 (add_lwp): Don't set lwp->entry.id. Remove call to
12857 add_inferior_to_list.
12858 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12859 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12860 (kill_one_lwp_callback): Ditto.
12861 (linux_kill): Don't dereference NULL pointer.
12862 Fetch ptid,lwpid from thread.
12863 (get_detach_signal): Fetch ptid from thread.
12864 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12865 Simplify call to regcache_invalidate_thread.
12866 (delete_lwp_callback): Update, "entry" parameter is a
12867 struct thread_info * now. Fetch pid from thread.
12868 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12869 (status_pending_p_callback): Update, "entry" parameter is a
12870 struct thread_info * now. Fetch ptid from thread.
12871 (find_lwp_pid): Update, "entry" parameter is a
12872 struct thread_info * now.
12873 (linux_wait_for_lwp): Fetch pid from thread.
12874 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12875 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12876 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12877 (dequeue_one_deferred_signal): Ditto.
12878 (cancel_breakpoint): Fetch ptid from current_inferior.
12879 (linux_wait_for_event): Pass &all_threads to find_inferior,
12880 not &all_lwps. Fetch ptid, lwpid from thread.
12881 (count_events_callback): Update, "entry" parameter is a
12882 struct thread_info * now.
12883 (select_singlestep_lwp_callback): Ditto.
12884 (select_event_lwp_callback): Ditto.
12885 (cancel_breakpoints_callback): Ditto.
12886 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12887 not &all_lwps.
12888 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12889 (unsuspend_one_lwp): Update, "entry" parameter is a
12890 struct thread_info * now.
12891 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12892 not &all_lwps.
12893 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12894 Fetch lwpid from thread, not lwp.
12895 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12896 Pass &all_threads to find_inferior, not &all_lwps.
12897 (send_sigstop): Fetch lwpid from thread, not lwp.
12898 (send_sigstop_callback): Update, "entry" parameter is a
12899 struct thread_info * now.
12900 (suspend_and_send_sigstop_callback): Ditto.
12901 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12902 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12903 struct thread_info * now.
12904 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12905 from thread, lwp.
12906 (lwp_running): Update, "entry" parameter is a
12907 struct thread_info * now.
12908 (stop_all_lwps): Fetch ptid from thread.
12909 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12910 (linux_resume_one_lwp): Fetch lwpid from thread.
12911 (linux_set_resume_request): Update, "entry" parameter is a
12912 struct thread_info * now. Fetch pid, lwpid from thread.
12913 (resume_status_pending_p): Update, "entry" parameter is a
12914 struct thread_info * now.
12915 (need_step_over_p): Ditto. Fetch lwpid from thread.
12916 (start_step_over): Fetch lwpid from thread.
12917 (linux_resume_one_thread): Update, "entry" parameter is a
12918 struct thread_info * now. Fetch lwpid from thread.
12919 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12920 (proceed_one_lwp): Update, "entry" parameter is a
12921 struct thread_info * now. Fetch lwpid from thread.
12922 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12923 struct thread_info * now.
12924 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12925 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12926 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12927 directly.
12928 (regsets_store_inferior_registers): Ditto.
12929 (fetch_register, store_register): Ditto.
12930 (linux_read_memory, linux_write_memory): Ditto.
12931 (linux_request_interrupt): Ditto.
12932 (linux_read_auxv): Ditto.
12933 (linux_xfer_siginfo): Ditto.
12934 (linux_qxfer_spu): Ditto.
12935 (linux_qxfer_libraries_svr4): Ditto.
12936 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12937 moved to inferiors.h.
12938 (get_lwp): Delete.
12939 (get_thread_lwp): Update.
12940 (struct lwp_info): Delete member "entry". Simplify comment for
12941 member "thread".
12942 (all_lwps): Delete.
12943 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12944 current_inferior directly.
12945 (update_watch_registers_callback): Update, "entry" parameter is a
12946 struct thread_info * now. Fetch pid from thread.
12947 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12948 (mips_insert_point): Fetch lwpid from current_inferior.
12949 Pass &all_threads to find_inferior, not &all_lwps.
12950 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12951 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12952 directly.
12953 (mips_stopped_data_address): Ditto.
12954 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12955 directly.
12956 * linux-tile-low.c (tile_arch_setup): Ditto.
12957 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12958 (update_debug_registers_callback): Update, "entry" parameter is a
12959 struct thread_info * now. Fetch pid from thread.
12960 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12961 Pass &all_threads to find_inferior, not &all_lwps.
12962 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12963 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12964 Pass &all_threads to find_inferior, not &all_lwps.
12965 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12966 (i386_dr_low_get_status): Ditto.
12967 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12968 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12969 (x86_linux_read_description): Ditto.
12970 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12971
3b8361aa
DE
129722014-02-20 Doug Evans <dje@google.com>
12973
12974 * inferiors.c (get_first_inferior): Fix buglet.
12975
f7667f0d
DE
129762014-02-19 Doug Evans <dje@google.com>
12977
12978 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12979 * inferiors.c (add_thread): Change result type to struct thread_info *.
12980 All callers updated.
12981 (add_lwp): Call add_thread here instead of in callers.
12982 All callers updated.
12983 * linux-low.h (get_lwp_thread): Rewrite.
12984 (struct lwp_info): New member "thread".
12985
b3312d80
DE
129862014-02-19 Doug Evans <dje@google.com>
12987
12988 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12989 All callers updated.
12990
ecc6f45c
DE
129912014-02-19 Doug Evans <dje@google.com>
12992
12993 * inferiors.c (add_thread): Fix whitespace.
12994
649ebbca
DE
129952014-02-19 Doug Evans <dje@google.com>
12996
12997 * dll.c (clear_dlls): Replace accessing list implemention details
12998 with API function.
12999 * gdbthread.h (get_first_thread): Declare.
13000 * inferiors.c (for_each_inferior_with_data): New function.
13001 (get_first_thread): New function.
13002 (find_thread_ptid): Simplify.
13003 (get_first_inferior): New function.
13004 (clear_list): Delete.
13005 (one_inferior_p): New function.
13006 (clear_inferior_list): New function.
13007 (clear_inferiors): Update.
13008 * inferiors.h (for_each_inferior_with_data): Declare.
13009 (clear_inferior_list): Declare.
13010 (one_inferior_p): Declare.
13011 (get_first_inferior): Declare.
13012 * linux-low.c (linux_wait_for_event): Replace accessing list
13013 implemention details with API function.
13014 * server.c (target_running): Ditto.
13015 (accumulate_file_name_length): New function.
13016 (emit_dll_description): New function.
13017 (handle_qxfer_libraries): Replace accessing list implemention
13018 details with API function.
13019 (handle_qxfer_threads_worker): New function.
13020 (handle_qxfer_threads_proper): Replace accessing list implemention
13021 details with API function.
13022 (handle_query): Ditto.
13023 (visit_actioned_threads_callback_ftype): New typedef.
13024 (visit_actioned_threads_data): New struct.
13025 (visit_actioned_threads): Rewrite to be find_inferior callback.
13026 (resume): Call find_inferior.
13027 (handle_status): Replace accessing list implemention
13028 details with API function.
13029 (process_serial_event): Replace accessing list implemention details
13030 with API function.
13031 * target.c (set_desired_inferior): Replace accessing list implemention
13032 details with API function.
13033 * tracepoint.c (same_process_p): New function.
13034 (gdb_agent_about_to_close): Replace accessing list implemention
13035 details with API function.
13036 * win32-low.c (child_delete_thread): Replace accessing list
13037 implemention details with API function.
13038 (match_dll_by_basename): New function.
13039 (dll_is_loaded_by_basename): New function.
13040 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13041 details call to dll_is_loaded_by_basename.
13042
80894984
DE
130432014-02-19 Doug Evans <dje@google.com>
13044
13045 * dll.h (struct dll_info): Add comment.
13046 * gdbthread.h (struct thread_info): Add comment.
13047 (current_ptid): Simplify.
13048 * inferiors.c (add_process): Update.
13049 (remove_process): Update.
13050 * inferiors.h (struct process_info): Rename member "head" to "entry".
13051 * linux-low.c (delete_lwp): Update.
13052 (add_lwp): Update.
13053 (last_thread_of_process_p): Update.
13054 (kill_one_lwp_callback, linux_kill): Update.
13055 (status_pending_p_callback): Update.
13056 (wait_for_sigstop): Update. Simplify read of ptid.
13057 (start_step_over): Update.
13058 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13059 (get_lwp_thread): Update.
13060 (struct lwp_info): Rename member "head" to "entry".
13061 * regcache.h (inferior_list_entry): Delete.
13062 * server.c (kill_inferior_callback): Update.
13063 (detach_or_kill_inferior_callback): Update.
13064 (print_started_pid): Update.
13065 (print_attached_pid): Update.
13066 (process_serial_event): Simplify read of ptid.
13067 * thread-db.c (thread_db_create_event): Update.
13068 (thread_db_get_tls_address): Update.
13069 * win32-low.c (current_inferior_ptid): Simplify.
13070
46917d26
TT
130712014-02-19 Tom Tromey <tromey@redhat.com>
13072
13073 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13074 argument.
13075 (target_supports_btrace): Update.
13076
0759a81e
YQ
130772014-02-14 Yao Qi <yao@codesourcery.com>
13078
13079 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13080 (rsp-low-ipa.o): New target.
13081
a7191e8b
TT
130822014-02-12 Tom Tromey <tromey@redhat.com>
13083
13084 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13085 convert_ascii_to_int.
13086 * regcache.c (registers_to_string): Likewise.
13087 * remote-utils.c (decode_M_packet): Likewise.
13088 * server.c (process_serial_event): Likewise.
13089
ff0e980e
TT
130902014-02-12 Tom Tromey <tromey@redhat.com>
13091
13092 * server.c (handle_query, handle_v_run): Use hex2bin, not
13093 unhexify.
13094 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13095
e9371aff
TT
130962014-02-12 Tom Tromey <tromey@redhat.com>
13097
13098 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13099 convert_int_to_ascii.
13100 * regcache.c (registers_to_string, collect_register_as_string):
13101 Likewise.
13102 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13103 Likewise.
13104 * server.c (process_serial_event): Likewise.
13105 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13106 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13107
971dc0b8
TT
131082014-02-12 Tom Tromey <tromey@redhat.com>
13109
13110 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13111 bin2hex, not hexify.
13112 * tracepoint.c (cmd_qtstatus): Likewise.
13113
0a822afb
TT
131142014-02-12 Tom Tromey <tromey@redhat.com>
13115
13116 * remote-utils.c (monitor_output): Pass explicit length to
13117 hexify.
13118
9c3d6531
TT
131192014-02-12 Tom Tromey <tromey@redhat.com>
13120
13121 * tracepoint.c: Include rsp-low.h.
13122 * server.c: Include rsp-low.h.
13123 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13124 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13125 declare.
13126 * remote-utils.c: Include rsp-low.h.
13127 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13128 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13129 (convert_int_to_ascii, convert_ascii_to_int): Move to
13130 common/rsp-low.c.
13131 * regcache.c: Include rsp-low.h.
13132 * ax.c: Include rsp-low.h.
13133 * Makefile.in (SFILES): Add common/rsp-low.c.
13134 (OBS): Add rsp-low.o.
13135 (rsp-low.o): New target.
13136
01fd3ea5
TT
131372014-02-12 Tom Tromey <tromey@redhat.com>
13138
13139 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13140 Include print-utils.h.
13141 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13142 (plongest, thirty_two, phex_nz): Remove.
13143 * Makefile.in (SFILES): Add common/print-utils.c.
13144 (OBS): Add print-utils.o.
13145 (print-utils-ipa.o): New target.
13146 (print-utils.o): New target.
13147 (IPA_OBJS): Add print-utils-ipa.o.
13148
e99dc820
TT
131492014-02-06 Tom Tromey <tromey@redhat.com>
13150
13151 * Makefile.in (SFILES): Fix indentation.
13152
ee1e2d4f
DE
131532014-02-05 Doug Evans <dje@google.com>
13154
13155 * linux-low.c (linux_wait_for_event): Improve comment.
13156 (linux_wait_1): Keep current_inferior in sync with event_child.
13157
f5a02773
DE
131582014-01-22 Doug Evans <dje@google.com>
13159
13160 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13161
87ce2a04
DE
131622014-01-22 Doug Evans <dje@google.com>
13163
13164 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13165 * configure: Regenerate.
13166 * config.in: Regenerate.
13167 * Makefile.in (SFILES): Add debug.c.
13168 (OBS): Add debug.o.
13169 * debug.c: New file.
13170 * debug.h: New file.
13171 * linux-aarch64-low.c (*): Update all debugging printfs to use
13172 debug_printf instead of fprintf.
13173 * linux-arm-low.c (*): Ditto.
13174 * linux-cris-low.c (*): Ditto.
13175 * linux-crisv32-low.c (*): Ditto.
13176 * linux-m32r-low.c (*): Ditto.
13177 * linux-sparc-low.c (*): Ditto.
13178 * linux-x86.c (*): Ditto.
13179 * linux-low.c (*): Ditto.
13180 (linux_wait_1): Add calls to debug_enter, debug_exit.
13181 (linux_wait): Remove redundant debugging printf.
13182 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13183 (linux_resume, unstop_all_lwps): Ditto.
13184 * mem-break.c (*): Update all debugging printfs to use
13185 debug_printf instead of fprintf.
13186 * remote-utils.c (*): Ditto.
13187 * thread-db.c (*): Ditto.
13188 * server.c #include <ctype.h>, "gdb_vecs.h".
13189 (debug_threads): Moved to debug.c.
13190 (*): Update all debugging printfs to use debug_printf instead of
13191 fprintf.
13192 (start_inferior): Replace call to fflush with call to debug_flush.
13193 (monitor_show_help): Mention set debug-format.
13194 (parse_debug_format_options): New function.
13195 (handle_monitor_command): Handle "monitor set debug-format".
13196 (gdbserver_usage): Mention --debug-format.
13197 (main): Parse --debug-format.
13198 * server.h (debug_threads): Declaration moved to debug.h.
13199 #include "debug.h".
13200 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13201 trace_debug_1 that uses debug_printf.
13202 (tracepoint_look_up_symbols): Update all debugging printfs to use
13203 debug_printf instead of fprintf.
13204
e671835b
BS
132052014-01-20 Baruch Siach <baruch@tkos.co.il>
13206
13207 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13208 sys/ptrace.h.
13209
b5737fa9
PA
132102014-01-17 Pedro Alves <palves@redhat.com>
13211
ea38d2a9 13212 PR build/16445
c7faa97a
PA
13213 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13214 defined after including gdb_proc_service.h.
b5737fa9 13215
40ed484e
DE
132162014-01-16 Doug Evans <dje@google.com>
13217
13218 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13219 (match_dll): Use it.
13220
969c39fb
MM
132212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13222
13223 * target.h (target_ops) <read_btrace>: Change parameters and
13224 return type to allow error reporting.
13225 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13226 trace reading errors on.
13227 * linux-low.c (linux_low_read_btrace): Pass trace reading
13228 errors on.
13229 (linux_low_disable_btrace): New.
13230
ab7f45ba
DE
132312014-01-15 Doug Evans <dje@google.com>
13232
13233 * inferiors.c (thread_id_to_gdb_id): Delete.
13234 * inferiors.h (thread_id_to_gdb_id): Delete.
13235
66af0f44
EZ
132362014-01-13 Eli Zaretskii <eliz@gnu.org>
13237
13238 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13239 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13240 versions.
13241
9939e131
PA
132422014-01-08 Pedro Alves <palves@redhat.com>
13243
13244 * server.c (handle_status): Don't discard previous queued stop
13245 replies or thread's pending status here.
13246 (main) <disconnection>: Do it here instead.
13247
b7ea362b
PA
132482014-01-08 Pedro Alves <palves@redhat.com>
13249
13250 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13251 * server.c (visit_actioned_threads, handle_pending_status): New
13252 function.
13253 (handle_v_cont): Factor out parts to ...
13254 (resume): ... this new function. If in all-stop, and a thread
13255 being resumed has a pending status, report it without actually
13256 resuming.
13257 (myresume): Adjust to use the new 'resume' function.
13258 (clear_pending_status_callback, set_pending_status_callback)
13259 (find_status_pending_thread_callback): New functions.
13260 (handle_status): Handle the case of multiple threads having
13261 interesting statuses to report. Report threads' real last signal
13262 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13263 with an interesting thread to report the status for, instead of
13264 always reporting the status of the first thread.
13265
28498c42
JB
132662014-01-01 Joel Brobecker <brobecker@adacore.com>
13267
13268 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13269 * gdbreplay.c (gdbreplay_version): Likewise.
13270
f45c82da
YZ
132712013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13272
13273 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13274 iov.iov_len with the real length in use.
13275
379a5e2d
JB
132762013-12-13 Joel Brobecker <brobecker@adacore.com>
13277
13278 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13279 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13280 for all targets that use win32-low.c.
13281 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13282 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13283
4210d83e
PA
132842013-12-13 Pedro Alves <palves@redhat.com>
13285
13286 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13287 if equal to TARGET_WAITKIND_LOADED.
13288 * win32-low.c (cached_status): New static global.
13289 (win32_wait): Add declaration.
13290 (do_initial_child_stuff): Flush all initial pending debug events
13291 up to the initial breakpoint.
13292 (win32_wait): If CACHED_STATUS was set, return that instead
13293 of doing a real wait. Remove the code resuming the execution
13294 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13295 during the initial phase. Also remove the code changing
13296 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13297 TARGET_WAITKIND_STOPPED.
13298
e7f0d979
YQ
132992013-12-11 Yao Qi <yao@codesourcery.com>
13300
13301 * notif.c (handle_notif_ack): Return 0 if no notification
13302 matches.
13303
ebcf782c
DE
133042013-11-20 Doug Evans <dje@google.com>
13305
13306 * linux-low.c (linux_set_resume_request): Fix comment.
13307
20ad9378
DE
133082013-11-20 Doug Evans <dje@google.com>
13309
13310 * linux-low.c (resume_status_pending_p): Tweak comment.
13311
a196ebeb
WT
133122013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13313
13314 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13315 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13316 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13317 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13318 (srv_amd64_regobj): Add amd64-mpx.o.
13319 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13320 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13321 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13322 * i387-fp.c (num_pl_bnd_register) Added constant.
13323 (num_pl_bnd_cfg_registers) Added constant.
13324 (struct i387_xsave) Added reserved area and MPX fields.
13325 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13326 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13327 function.
13328 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13329 (init_registers_amd64_mpx_linux): Declare new function.
13330 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13331 (x86_64_regmap): Add MPX registers.
13332 (x86_linux_read_description): Add MPX case.
13333 (initialize_low_arch): Initialize MPX targets.
13334
0080a2f6
TT
133352013-11-18 Tom Tromey <tromey@redhat.com>
13336
13337 * configure: Rebuild.
13338 * configure.ac: Don't check for stdlib.h.
13339 * gdbreplay.c: Unconditionally include stdlib.h.
13340
2978b111
TT
133412013-11-18 Tom Tromey <tromey@redhat.com>
13342
13343 * config.in: Rebuild.
13344 * configure: Rebuild.
13345 * configure.ac: Don't use AC_HEADER_DIRENT.
13346
a3d08894
TT
133472013-11-18 Tom Tromey <tromey@redhat.com>
13348
13349 * server.h: Don't check HAVE_STRING_H.
13350 * gdbreplay.c: Don't check HAVE_STRING_H.
13351 * configure: Rebuild.
13352
0a5dd17d
TT
133532013-11-18 Tom Tromey <tromey@redhat.com>
13354
13355 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13356 LIBGNU.
13357
1bd2f0ba
TT
133582013-11-08 Tom Tromey <tromey@redhat.com>
13359
13360 * configure, config.in: Rebuild.
13361 * configure.ac: Remove unused configury.
13362
3266f10b
TT
133632013-11-08 Tom Tromey <tromey@redhat.com>
13364
13365 * acinclude.m4: Include common.m4, codeset.m4.
13366 * configure, config.in: Rebuild.
13367 * configure.ac: Use GDB_AC_COMMON.
13368
6682d959
AA
133692013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13370
13371 * linux-s390-low.c (HWCAP_S390_TE): New define.
13372 (s390_arch_setup): Consider the TE field in the HWCAP for
13373 determining 'have_regset_tdb'.
13374
fd0a4d76
SDJ
133752013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13376
13377 PR gdb/16014
13378 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13379 call to sizeof.
13380
1a3d890b
PA
133812013-10-02 Pedro Alves <palves@redhat.com>
13382
13383 * server.c (process_serial_event): Don't output "GDBserver
13384 exiting" if GDB is connected through stdio.
13385 * target.c (mywait): Likewise, be silent if GDB is connected
13386 through stdio.
13387
97ad4581
JB
133882013-10-01 Joel Brobecker <brobecker@adacore.com>
13389
13390 * lynx-low.c (lynx_add_threads_after_attach): New function.
13391 (lynx_attach): Remove call to add_thread. Add call to
13392 lynx_add_threads_after_attach instead.
13393
5b4e221c
MF
133942013-09-28 Mike Frysinger <vapier@gentoo.org>
13395
13396 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13397 * config.in, configure: Regenerated.
13398
ee47b2f8
YQ
133992013-09-18 Yao Qi <yao@codesourcery.com>
13400
13401 PR server/15959
13402 * server.c (start_inferior): Clear 'resume_info'.
13403
d6707650 134042013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13405
d6707650
JW
13406 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13407 for each register.
13408
9243dd0e 134092013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13410
9243dd0e
JW
13411 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13412 linux-tile-low.o to srv_tgtobj.
13413
c623a6ef
WN
134142013-09-16 Will Newton <will.newton@linaro.org>
13415
13416 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13417 out regs.
13418
fb71d39e
PA
134192013-09-06 Pedro Alves <palves@redhat.com>
13420
13421 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13422 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13423 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13424 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13425 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13426 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13427
8e7e9910
PA
134282013-09-06 Pedro Alves <palves@redhat.com>
13429
13430 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13431 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13432
7c3a12ca
PA
134332013-09-06 Pedro Alves <palves@redhat.com>
13434
13435 * linux-amd64-ipa.c: Include tracepoint.h.
13436 * linux-i386-ipa.c: Include tracepoint.h.
13437
8eb3d7b6
RW
134382013-09-06 Ricard Wanderlof <ricardw@axis.com>
13439
13440 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13441 (ps_get_thread_area): New function.
13442
eddddb9d
RW
134432013-09-06 Ricard Wanderlof <ricardw@axis.com>
13444
13445 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13446 (initialize_low_arch): Call init_registers_crisv32 rather than
13447 init_register_crisv32.
13448
533b0600
PA
134492013-09-05 Pedro Alves <palves@redhat.com>
13450
13451 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13452 to ...
13453 * hostio.h: ... this new file.
13454 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13455 win32-low.c: Include hostio.h.
13456
0ce3d3b5
PA
134572013-09-05 Pedro Alves <palves@redhat.com>
13458
13459 * server.h (gdb_client_data, handler_func, callback_handler_func)
13460 (delete_file_handler, add_file_handler, append_callback_event)
13461 (delete_callback_event, start_event_loop, initialize_event_loop):
13462 Move to event-loop.h and include it.
13463 * event-loop.h: New file.
13464
799cdc37
PA
134652013-09-05 Pedro Alves <palves@redhat.com>
13466
13467 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13468 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13469 (loaded_dll, unloaded_dll): Move to ...
13470 * dll.h: ... this new file.
13471 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13472
6a6bbd9d
PA
134732013-09-05 Pedro Alves <palves@redhat.com>
13474
13475 * server.h (current_process, get_thread_process, all_processes)
13476 (add_inferior_to_list, for_each_inferior, current_inferior)
13477 (remove_inferior, add_process, remove_process, find_process_pid)
13478 (have_started_inferiors_p, have_attached_inferiors_p)
13479 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13480 (clear_inferiors, find_inferior, find_inferior_id)
13481 (inferior_target_data, set_inferior_target_data)
13482 (inferior_regcache_data, set_inferior_regcache_data): Move to
13483 inferiors.h, and include it.
13484 * inferiors.h: New file.
13485
f699aaba
PA
134862013-09-05 Pedro Alves <palves@redhat.com>
13487
13488 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13489 Move ...
72f4393d 13490 * ax.h: ... here.
f699aaba 13491
c144c7a0
PA
134922013-09-05 Pedro Alves <palves@redhat.com>
13493
13494 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13495 tracepoint.h.
13496 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13497 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13498 (handle_tracepoint_general_set, handle_tracepoint_query)
13499 (tracepoint_finished_step, tracepoint_was_hit)
13500 (release_while_stepping_state_list, current_traceframe)
13501 (in_readonly_region, traceframe_read_mem)
13502 (fetch_traceframe_registers, traceframe_read_sdata)
13503 (traceframe_read_info, struct fast_tpoint_collect_status)
13504 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13505 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13506 (supply_fast_tracepoint_registers)
13507 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13508 (ipa_tdesc, claim_trampoline_space)
13509 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13510 (agent_mem_read, agent_get_trace_state_variable_value)
13511 (agent_set_trace_state_variable_value, agent_tsv_read)
13512 (agent_mem_read_string, get_raw_reg_func_addr)
13513 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13514 * tracepoint.h: ... this new file.
13515
ff42e6ab
PA
135162013-09-05 Pedro Alves <palves@redhat.com>
13517
13518 * server.h (perror_with_name, error, fatal, warning, paddress)
13519 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13520 include it.
13521 * utils.h: New file.
13522
541af0f4
PA
135232013-09-05 Pedro Alves <palves@redhat.com>
13524
13525 * server.h (remote_debug, noack_mode, transport_is_reliable)
13526 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13527 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13528 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13529 (write_enn, initialize_async_io, enable_async_io)
13530 (disable_async_io, check_remote_input_interrupt_request)
13531 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13532 (dead_thread_notify, prepare_resume_reply)
13533 (decode_address_to_semicolon, decode_address, decode_m_packet)
13534 (decode_M_packet, decode_X_packet, decode_xfer_write)
13535 (decode_search_memory_packet, unhexify, hexify)
13536 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13537 (look_up_one_symbol, relocate_instruction)
13538 (monitor_output): Move to remote-utils.h, and include it.
13539 * remote-utils.h: New file.
13540
eebdf26b
PA
135412013-09-05 Pedro Alves <palves@redhat.com>
13542
13543 * server.h (_): Delete.
13544
3aafd2ff
PA
135452013-09-02 Pedro Alves <palves@redhat.com>
13546
13547 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13548 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13549 allocated.
13550 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13551
cee83bcb
PM
135522013-09-02 Pierre Muller <muller@sourceware.org>
13553
13554 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13555 or WriteProcessMemory complete successfully and handle
13556 ERROR_PARTIAL_COPY error.
13557
9a13b2fa
PA
135582013-09-02 Pedro Alves <palves@redhat.com>
13559
13560 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13561 error instead of EIO.
13562
602e3198
JK
135632013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13564
13565 PR server/15604
13566 * linux-low.c: Include filestuff.h.
13567 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13568 * lynx-low.c: Include filestuff.h.
13569 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13570 * server.c: Include filestuff.h.
13571 (main): Call notice_open_fds.
13572 * spu-low.c: Include filestuff.h.
13573 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13574
96d7229d
LM
135752013-08-22 Luis Machado <lgustavo@codesourcery.com>
13576
13577 * Makefile.in: Explain why ../target and ../nat are not
13578 listed as include file search paths.
13579 (linux-waitpid.o): New object file rule.
13580 * configure.srv (srv_native_linux_obj): New variable.
13581 Replace all occurrences of linux native object files with
13582 $srv_native_linux_obj.
13583 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13584 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13585 (linux_enable_event_reporting): Remove declaration.
13586 (my_waitpid): Moved to common/linux-waitpid.c.
13587 (linux_wait_for_event): Pass ptid when calling
13588 linux_enable_event_reporting.
13589 (linux_supports_tracefork_flag): Remove.
13590 (linux_enable_event_reporting): Likewise.
13591 (linux_tracefork_grandchild): Remove.
13592 (STACK_SIZE): Moved to common/linux-ptrace.c.
13593 (linux_tracefork_child): Remove.
13594 (linux_test_for_tracefork): Remove.
13595 (linux_look_up_symbols): Call linux_supports_traceclone.
13596 (initialize_low): Remove call to linux_test_for_tracefork.
13597 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13598 common/linux-ptrace.h.
13599 (PTRACE_TYPE_ARG4): Likewise.
13600 Include linux-ptrace.h.
13601
32940073
PA
136022013-08-21 Pedro Alves <palves@redhat.com>
13603
13604 * config.in: Renegerate.
13605
33b60d58 136062013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13607
33b60d58
LM
13608 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13609 (SFILES): Remove $(srcdir)/common/target-common.c and
13610 add $(srcdir)/target/waitstatus.c.
13611 (OBS): Remove target-common.o and add waitstatus.o.
13612 (server_h): Remove $(srcdir)/../common/target-common.h and
13613 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13614 and $(srcdir)/../target/waitstatus.h.
13615 (target-common.o): Remove.
13616 (waitstatus.o): New target object file.
13617 * target.h: Do not include target-common.h and
13618 include target/resume.h, target/wait.h and
13619 target/waitstatus.h.
13620
b8e1b30e
LM
136212013-08-13 Luis Machado <lgustavo@codesourcery.com>
13622
13623 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13624 to PTRACE_TYPE_ARG3.
13625 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13626 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13627 PTRACE_TYPE_ARG4.
13628 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13629 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13630
7a60ad40
YQ
136312013-07-27 Jie Zhang <jie@codesourcery.com>
13632 Daniel Jacobowitz <dan@codesourcery.com>
13633 Yao Qi <yao@codesourcery.com>
13634
13635 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13636 (mips-linux-watch.o): New rule.
13637 (mips_linux_watch_h): New variable.
13638 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13639 srv_tgtobj.
13640 * linux-mips-low.c: Include mips-linux-watch.h.
13641 (struct arch_process_info, struct arch_lwp_info): New.
13642 (update_watch_registers_callback): New function.
13643 (mips_linux_new_process, mips_linux_new_thread) New functions.
13644 (mips_linux_prepare_to_resume, mips_insert_point): New
13645 functions.
13646 (mips_remove_point, mips_stopped_by_watchpoint): New
13647 functions.
13648 (rsp_bp_type_to_target_hw_bp_type): New function.
13649 (mips_stopped_data_address): New function.
13650 (the_low_target): Add watchpoint support functions.
13651
de6f69ad
YQ
136522013-07-27 Yao Qi <yao@codesourcery.com>
13653
13654 * i386-low.c: Include break-common.h.
13655 (enum target_hw_bp_type): Remove.
13656
3360c0bf
LM
136572013-07-24 Luis Machado <lgustavo@codesourcery.com>
13658
13659 * Makefile.in (SFILES): /common/target-common.c.
13660 (OBS): Add target-common.o.
13661 (server_h): Add $(srcdir)/../common/target-common.h.
13662 (target-common.o): New target.
13663 * server.c (queue_stop_reply_callback): Free
13664 status string after use.
13665 * target.c (target_waitstatus_to_string): Remove.
13666 * target.h: Include target-common.h.
13667 (resume_kind): Likewise.
13668 (target_waitkind): Likewise.
13669 (target_waitstatus): Likewise.
13670 (TARGET_WNOHANG): Likewise.
13671
bd885420
YQ
136722013-07-04 Yao Qi <yao@codesourcery.com>
13673
13674 * Makefile.in (host_alias): Use @host_noncanonical@.
13675 (target_alias): Use @target_noncanonical@.
13676 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13677 ACX_NONCANONICAL_HOST.
13678 * configure: Regenerated.
13679
13680 Revert:
13681 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13682
13683 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13684 * configure: Rebuild.
13685 * Makefile.in (version_host, version_target): Get from configure.
13686 (version.c): Use $(version_host) and $(version_target).
13687
17ef446e
PA
136882013-07-03 Pedro Alves <palves@redhat.com>
13689
13690 * Makefile.in (config.status): Depend on development.sh.
13691 * acinclude.m4: Include libmcheck.m4.
13692 * configure: Regenerate.
13693
7a9a7487
MG
136942013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13695
13696 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13697 attribute inside the parentheses.
13698 (winapi_DebugSetProcessKillOnExit): Ditto.
13699 (winapi_DebugBreakProcess): Ditto.
13700 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13701
49b64de6
MG
137022013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13703
13704 * notif.h (notif_event): Add a dummy member to avoid compiler
13705 errors.
13706
d5749ee7
PA
137072013-07-01 Pedro Alves <palves@redhat.com>
13708
13709 * hostio.c (HOSTIO_PATH_MAX): Define.
13710 (require_filename, handle_open, handle_unlink, handle_readlink):
13711 Use it.
13712
d8d2a3ee
PA
137132013-07-01 Pedro Alves <palves@redhat.com>
13714
13715 * server.h: Include "pathmax.h".
13716 * linux-low.c: Don't include sys/param.h.
13717 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13718 MAXPATHLEN.
13719 * win32-low.c: Don't include sys/param.h.
13720 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13721
bc7dea8d
PA
137222013-07-01 Pedro Alves <palves@redhat.com>
13723
13724 * event-loop.c: Don't check HAVE_UNISTD_H before including
13725 <unistd.h>.
13726 * gdbreplay.c: Likewise.
13727 * remote-utils.c: Likewise.
13728 * server.c: Likewise.
13729 * configure.ac: Don't check for unistd.h.
13730 * configure: Regenerate.
13731
d6c2da54
TT
137322013-06-28 Tom Tromey <tromey@redhat.com>
13733
13734 * Makefile.in (version.c): Use version.in, not
13735 common/version.in.
13736
257b6bec
MG
137372013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13738
13739 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13740 * configure: Rebuild.
13741 * Makefile.in (version_host, version_target): Get from configure.
13742 (version.c): Use $(version_host) and $(version_target).
13743
86ebe149
DK
137442013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13745
13746 Fix trace-status to output user name without trailing colon.
13747 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13748
f30aa5af
DK
137492013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13750
13751 Fix trace-status to output proper start-time and stop-time.
13752 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13753 output start time and stop time in hex as gdb expects.
13754
28a93511
YQ
137552013-06-26 Pedro Alves <pedro@codesourcery.com>
13756
13757 * tracepoint.c (build_traceframe_info_xml): Output trace state
13758 variables present in the trace buffer.
13759
01208463
TT
137602013-06-24 Tom Tromey <tromey@redhat.com>
13761
13762 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13763 create-version.sh.
13764 (version.o): Remove.
13765 * gdbreplay.c: Include version.h.
13766 (version, host_name): Don't declare.
13767 * server.h: Include version.h.
13768 (version, host_name): Don't declare.
13769
760256f9
PA
137702013-06-12 Pedro Alves <palves@redhat.com>
13771
13772 * linux-x86-low.c (linux_is_elf64): Delete global.
13773 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13774 with local linux_pid_exe_is_elf_64_file use.
13775
030031ee
PA
137762013-06-11 Pedro Alves <palves@redhat.com>
13777
13778 * linux-low.c (regset_disabled, disable_regset): New functions.
13779 (regsets_fetch_inferior_registers)
13780 (regsets_store_inferior_registers): Use them.
13781 (initialize_regsets_info); Don't allocate the disabled_regsets
13782 array here.
13783 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13784 comment.
13785
5da6eb0a
PA
137862013-06-11 Pedro Alves <palves@redhat.com>
13787
13788 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13789 xmalloc.
13790
7e5aaa09
PA
137912013-06-11 Pedro Alves <palves@redhat.com>
13792
13793 * linux-x86-low.c (initialize_low_arch): Call
13794 init_registers_x32_avx_linux.
13795
d878444c
JK
137962013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13797
13798 Fix compatibility with Android Bionic.
13799 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13800 it is not empty.
13801
3aee8918
PA
138022013-06-07 Pedro Alves <palves@redhat.com>
13803
5f2b57b5 13804 PR server/14823
3aee8918
PA
13805 * Makefile.in (OBS): Add tdesc.o.
13806 (IPA_OBJS): Add tdesc-ipa.o.
13807 (tdesc-ipa.o): New rule.
13808 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13809 interface.
13810 * linux-low.c (new_inferior): Delete.
13811 (disabled_regsets, num_regsets): Delete.
13812 (linux_add_process): Adjust to set the new per-process
13813 new_inferior flag.
13814 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13815 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13816 was a stop. When calling arch_setup, switch the current inferior
13817 to the thread that got an event.
13818 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13819 (regsets_fetch_inferior_registers)
13820 (regsets_store_inferior_registers): New regsets_info parameter.
13821 Adjust to use it.
13822 (linux_register_in_regsets): New regs_info parameter. Adjust to
13823 use it.
13824 (register_addr, fetch_register, store_register): New usrregs_info
13825 parameter. Adjust to use it.
13826 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13827 parameter regs_info. Adjust to use it.
13828 (linux_fetch_registers): Get the current inferior's regs_info, and
13829 adjust to use it.
13830 (linux_store_registers): Ditto.
13831 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13832 (initialize_low): Don't initialize the target_regsets here. Call
13833 initialize_low_arch.
13834 * linux-low.h (target_regsets): Delete declaration.
13835 (struct regsets_info): New.
13836 (struct usrregs_info): New.
13837 (struct regs_info): New.
13838 (struct process_info_private) <new_inferior>: New field.
13839 (struct linux_target_ops): Delete the num_regs, regmap, and
13840 regset_bitmap fields. New field regs_info.
13841 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13842 * i387-fp.c (num_xmm_registers): Delete.
13843 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13844 calls to new interface.
13845 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13846 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13847 Infer the number of xmm registers from the regcache's target
13848 description.
13849 * i387-fp.h (num_xmm_registers): Delete.
13850 * inferiors.c (add_thread): Don't install the thread's regcache
13851 here.
13852 * proc-service.c (gregset_info): Fetch the current inferior's
13853 regs_info. Adjust to use it.
13854 * regcache.c: Include tdesc.h.
13855 (register_bytes, reg_defs, num_registers)
13856 (gdbserver_expedite_regs): Delete.
13857 (get_thread_regcache): If the thread doesn't have a regcache yet,
13858 create one, instead of aborting gdbserver.
13859 (regcache_invalidate_one): Rename to ...
13860 (regcache_invalidate_thread): ... this.
13861 (regcache_invalidate_one): New.
13862 (regcache_invalidate): Only invalidate registers of the current
13863 process.
13864 (init_register_cache): Add target_desc parameter, and use it.
13865 (new_register_cache): Ditto. Assert the target description has a
13866 non zero registers_size.
13867 (regcache_cpy): Add assertions. Adjust.
13868 (realloc_register_cache, set_register_cache): Delete.
13869 (registers_to_string, registers_from_string): Adjust.
13870 (find_register_by_name, find_regno, find_register_by_number)
13871 (register_cache_size): Add target_desc parameter, and use it.
13872 (free_register_cache_thread, free_register_cache_thread_one)
13873 (regcache_release, register_cache_size): New.
13874 (register_size): Add target_desc parameter, and use it.
13875 (register_data, supply_register, supply_register_zeroed)
13876 (supply_regblock, supply_register_by_name, collect_register)
13877 (collect_register_as_string, collect_register_by_name): Adjust.
13878 * regcache.h (struct target_desc): Forward declare.
13879 (struct regcache) <tdesc>: New field.
13880 (init_register_cache, new_register_cache): Add target_desc
13881 parameter.
13882 (regcache_invalidate_thread): Declare.
13883 (regcache_invalidate_one): Delete declaration.
13884 (regcache_release): Declare.
13885 (find_register_by_number, register_cache_size, register_size)
13886 (find_regno): Add target_desc parameter.
13887 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13888 declarations.
13889 * remote-utils.c: Include tdesc.h.
13890 (outreg, prepare_resume_reply): Adjust.
13891 * server.c: Include tdesc.h.
13892 (gdbserver_xmltarget): Delete declaration.
13893 (get_features_xml, process_serial_event): Adjust.
13894 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13895 declare.
13896 (struct process_info) <tdesc>: New field.
13897 (ipa_tdesc): Declare.
13898 * tdesc.c: New file.
13899 * tdesc.h: New file.
13900 * tracepoint.c: Include tdesc.h.
13901 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13902 (get_context_regcache): Adjust to pass ipa_tdesc down.
13903 (do_action_at_tracepoint): Adjust to get the register cache size
13904 from the context regcache's description.
13905 (traceframe_walk_blocks): Adjust to get the register cache size
13906 from the current trace frame's description.
13907 (traceframe_get_pc): Adjust to get current trace frame's
13908 description and pass it down.
13909 (gdb_collect): Adjust to get the register cache size from the
13910 IPA's description.
13911 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13912 (gdbserver_xmltarget): Delete.
13913 (initialize_low_tracepoint): Set the ipa's target description.
13914 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13915 (initialize_low_tracepoint): Set the ipa's target description.
13916 * linux-x86-low.c: Include tdesc.h.
13917 [__x86_64__] (is_64bit_tdesc): New.
13918 (ps_get_thread_area, x86_get_thread_area): Use it.
13919 (i386_cannot_store_register): Rename to ...
13920 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13921 (i386_cannot_fetch_register): Rename to ...
13922 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13923 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13924 to new interface.
13925 (target_regsets): Rename to ...
13926 (x86_regsets): ... this.
13927 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13928 interface.
13929 (x86_siginfo_fixup): Use is_64bit_tdesc.
13930 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13931 (tdesc_x32_avx_linux, tdesc_x32_linux)
13932 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13933 Declare.
13934 (x86_linux_update_xmltarget): Delete.
13935 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13936 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13937 (AMD64_LINUX_USER64_CS): New.
13938 (x86_linux_read_description): New, based on
13939 x86_linux_update_xmltarget.
13940 (same_process_callback): New.
13941 (x86_arch_setup_process_callback): New.
13942 (x86_linux_update_xmltarget): New.
13943 (x86_regsets_info): New.
13944 (amd64_linux_regs_info): New.
13945 (i386_linux_usrregs_info): New.
13946 (i386_linux_regs_info): New.
13947 (x86_linux_regs_info): New.
13948 (x86_arch_setup): Reimplement.
13949 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13950 (x86_emit_ops): Ditto.
13951 (the_low_target): Adjust. Install x86_linux_regs_info,
13952 x86_cannot_fetch_register, and x86_cannot_store_register.
13953 (initialize_low_arch): New.
13954 * linux-ia64-low.c (tdesc_ia64): Declare.
13955 (ia64_fetch_register): Adjust.
13956 (ia64_usrregs_info, regs_info): New globals.
13957 (ia64_regs_info): New function.
13958 (the_low_target): Adjust.
13959 (initialize_low_arch): New function.
13960 * linux-sparc-low.c (tdesc_sparc64): Declare.
13961 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13962 Adjust.
13963 (sparc_arch_setup): New function.
13964 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13965 (the_low_target): Adjust.
13966 (initialize_low_arch): New function.
13967 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13968 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13969 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13970 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13971 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13972 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13973 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13974 (tdesc_powerpc_isa205_vsx64l): Declare.
13975 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13976 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13977 (ppc_set_pc, ppc_get_hwcap): Adjust.
13978 (ppc_usrregs_info): Forward declare.
13979 (!__powerpc64__) ppc_regmap_adjusted: New global.
13980 (ppc_arch_setup): Adjust to the current process'es target
13981 description.
13982 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13983 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13984 (ppc_store_evrregset): Adjust.
13985 (target_regsets): Rename to ...
13986 (ppc_regsets): ... this, and make static.
13987 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13988 (ppc_regs_info): New function.
13989 (the_low_target): Adjust.
13990 (initialize_low_arch): New function.
13991 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13992 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13993 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13994 (tdesc_s390x_linux64v2): Declare.
13995 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13996 (s390_fill_gregset, s390_store_last_break): Adjust.
13997 (target_regsets): Rename to ...
13998 (s390_regsets): ... this, and make static.
13999 (s390_get_pc, s390_set_pc): Adjust.
14000 (s390_get_hwcap): New target_desc parameter, and use it.
14001 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14002 (s390_arch_setup): Adjust to set the current process'es target
14003 description. Don't adjust the regmap.
14004 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14005 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14006 (regs_info_3264): New globals.
14007 (s390_regs_info): New function.
14008 (the_low_target): Adjust.
14009 (initialize_low_arch): New function.
14010 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14011 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14012 [__mips64] (init_registers_mips_linux)
14013 (init_registers_mips_dsp_linux): Delete defines.
14014 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14015 (have_dsp): New global.
14016 (mips_read_description): New, based on mips_arch_setup.
14017 (mips_arch_setup): Reimplement.
14018 (get_usrregs_info): New function.
14019 (mips_cannot_fetch_register, mips_cannot_store_register)
14020 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14021 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14022 (target_regsets): Rename to ...
14023 (mips_regsets): ... this, and make static.
14024 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14025 (dsp_regs_info, regs_info): New globals.
14026 (mips_regs_info): New function.
14027 (the_low_target): Adjust.
14028 (initialize_low_arch): New function.
14029 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14030 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14031 Declare.
14032 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14033 (arm_read_description): New, with bits factored from
14034 arm_arch_setup.
14035 (arm_arch_setup): Reimplement.
14036 (target_regsets): Rename to ...
14037 (arm_regsets): ... this, and make static.
14038 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14039 (arm_regs_info): New function.
14040 (the_low_target): Adjust.
14041 (initialize_low_arch): New function.
14042 * linux-m68k-low.c (tdesc_m68k): Declare.
14043 (target_regsets): Rename to ...
14044 (m68k_regsets): ... this, and make static.
14045 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14046 (m68k_regs_info): New function.
14047 (m68k_arch_setup): New function.
14048 (the_low_target): Adjust.
14049 (initialize_low_arch): New function.
14050 * linux-sh-low.c (tdesc_sharch): Declare.
14051 (target_regsets): Rename to ...
14052 (sh_regsets): ... this, and make static.
14053 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14054 (sh_regs_info, sh_arch_setup): New functions.
14055 (the_low_target): Adjust.
14056 (initialize_low_arch): New function.
14057 * linux-bfin-low.c (tdesc_bfin): Declare.
14058 (bfin_arch_setup): New function.
14059 (bfin_usrregs_info, regs_info): New globals.
14060 (bfin_regs_info): New function.
14061 (the_low_target): Adjust.
14062 (initialize_low_arch): New function.
14063 * linux-cris-low.c (tdesc_cris): Declare.
14064 (cris_arch_setup): New function.
14065 (cris_usrregs_info, regs_info): New globals.
14066 (cris_regs_info): New function.
14067 (the_low_target): Adjust.
14068 (initialize_low_arch): New function.
14069 * linux-cris-low.c (tdesc_crisv32): Declare.
14070 (cris_arch_setup): New function.
14071 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14072 (cris_regs_info): New function.
14073 (the_low_target): Adjust.
14074 (initialize_low_arch): New function.
14075 * linux-m32r-low.c (tdesc_m32r): Declare.
14076 (m32r_arch_setup): New function.
14077 (m32r_usrregs_info, regs_info): New globals.
14078 (m32r_regs_info): Adjust.
14079 (initialize_low_arch): New function.
14080 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14081 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14082 (tic6x_usrregs_info): Forward declare.
14083 (tic6x_read_description): New function, based on ...
14084 (tic6x_arch_setup): ... this. Reimplement.
14085 (target_regsets): Rename to ...
14086 (tic6x_regsets): ... this, and make static.
14087 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14088 (tic6x_regs_info): New function.
14089 (the_low_target): Adjust.
14090 (initialize_low_arch): New function.
14091 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14092 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14093 (target_regsets): Rename to ...
14094 (xtensa_regsets): ... this, and make static.
14095 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14096 globals.
14097 (xtensa_arch_setup, xtensa_regs_info): New functions.
14098 (the_low_target): Adjust.
14099 (initialize_low_arch): New function.
14100 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14101 (nios2_arch_setup): Set the current process'es tdesc.
14102 (target_regsets): Rename to ...
14103 (nios2_regsets): ... this.
14104 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14105 (nios2_regs_info): New function.
14106 (the_low_target): Adjust.
14107 (initialize_low_arch): New function.
a261b8f5
PA
14108 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14109 (aarch64_arch_setup): Set the current process'es tdesc.
14110 (target_regsets): Rename to ...
14111 (aarch64_regsets): ... this.
14112 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14113 (aarch64_regs_info): New function.
14114 (the_low_target): Adjust.
14115 (initialize_low_arch): New function.
3aee8918
PA
14116 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14117 globals.
14118 (target_regsets): Rename to ...
14119 (tile_regsets): ... this.
14120 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14121 (tile_regs_info): New function.
14122 (tile_arch_setup): Set the current process'es tdesc.
14123 (the_low_target): Adjust.
14124 (initialize_low_arch): New function.
14125 * spu-low.c (tdesc_spu): Declare.
14126 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14127 * win32-arm-low.c (tdesc_arm): Declare.
14128 (arm_arch_setup): New function.
14129 (the_low_target): Install arm_arch_setup instead of
14130 init_registers_arm.
14131 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14132 (init_windows_x86): Rename to ...
14133 (i386_arch_setup): ... this. Set `win32_tdesc'.
14134 (the_low_target): Adjust.
14135 * win32-low.c (win32_tdesc): New global.
14136 (child_add_thread): Don't create the thread cache here.
14137 (do_initial_child_stuff): Set the new process'es tdesc.
14138 * win32-low.h (struct target_desc): Forward declare.
14139 (win32_tdesc): Declare.
14140 * lynx-i386-low.c (tdesc_i386): Declare global.
14141 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14142 * lynx-low.c (lynx_tdesc): New global.
14143 (lynx_add_process): Set the new process'es tdesc.
14144 * lynx-low.h (struct target_desc): Forward declare.
14145 (lynx_tdesc): Declare global.
14146 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14147 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14148 * nto-low.c (nto_tdesc): New global.
14149 (do_attach): Set the new process'es tdesc.
14150 * nto-low.h (struct target_desc): Forward declare.
14151 (nto_tdesc): Declare.
14152 * nto-x86-low.c (tdesc_i386): Declare.
14153 (nto_x86_arch_setup): Set `nto_tdesc'.
14154
b1fbec62
GB
141552013-06-04 Gary Benson <gbenson@redhat.com>
14156
14157 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14158 to qSupported response when appropriate.
14159 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14160 with nonzero-length annex.
14161 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14162 arguments supplied in annex.
14163
d1ec4ce7
DE
141642013-05-31 Doug Evans <dje@google.com>
14165
ac44adcb 14166 PR server/15594
d1ec4ce7
DE
14167 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14168 64 bits in 64-cross-32 environment.
14169
9b25f2d3
PA
141702013-05-28 Pedro Alves <palves@redhat.com>
14171
14172 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14173 (aarch64-without-fpu.c): Delete rule.
14174 * configure.srv (aarch64*-*-linux*): Remove references to
14175 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14176 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14177 declaration.
14178
6740dc9c
PA
141792013-05-24 Pedro Alves <palves@redhat.com>
14180
14181 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14182 instead of strchr/decode_address. Error if the range isn't split
14183 with a ','. Don't assume there's be a ':' in the action.
14184
c2d6af84
PA
141852013-05-23 Yao Qi <yao@codesourcery.com>
14186 Pedro Alves <palves@redhat.com>
14187
14188 * linux-low.c (lwp_in_step_range): New function.
14189 (linux_wait_1): If the thread was range stepping and stopped
14190 outside the stepping range, report the stop to GDB. Otherwise,
14191 continue stepping. Add range stepping debug output.
14192 (linux_set_resume_request): Copy the step range from the resume
14193 request to the lwp.
14194 (linux_supports_range_stepping): New.
14195 (linux_target_ops) <supports_range_stepping>: Set to
14196 linux_supports_range_stepping.
14197 * linux-low.h (struct linux_target_ops)
14198 <supports_range_stepping>: New field.
14199 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14200 * linux-x86-low.c (x86_supports_range_stepping): New.
14201 (the_low_target) <supports_range_stepping>: Set to
14202 x86_supports_range_stepping.
14203 * server.c (handle_v_cont): Handle 'r' action.
14204 (handle_v_requests): Append ";r" if the target supports range
14205 stepping.
14206 * target.h (struct thread_resume) <step_range_start,
14207 step_range_end>: New fields.
14208 (struct target_ops) <supports_range_stepping>:
14209 New field.
14210 (target_supports_range_stepping): New macro.
14211
58794e1a
JB
142122013-05-17 Joel Brobecker <brobecker@adacore.com>
14213
14214 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14215 confusion in comment.
14216
d631c5a7
JB
142172013-05-17 Joel Brobecker <brobecker@adacore.com>
14218
14219 * lynx-low.c (struct process_info_private): New type.
14220 (lynx_add_process): New function.
14221 (lynx_create_inferior, lynx_attach): Replace calls to
14222 add_process by calls to lynx_add_process.
14223 (lynx_resume): If PTID is null, then try using
14224 current_process()->private->last_wait_event_ptid.
14225 Add comments.
14226 (lynx_clear_inferiors): Delete. The contents of that function
14227 has been inlined in lynx_mourn;
14228 (lynx_wait_1): Save the ptid in the process's private data.
14229 (lynx_mourn): Free the process' private data. Replace call
14230 to lynx_clear_inferiors by call to clear_inferiors.
14231
96f7a20f
YQ
142322013-05-17 Yao Qi <yao@codesourcery.com>
14233
14234 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14235 the right place.
14236
db0dfaa0
LM
142372013-05-16 Luis Machado <lgustavo@codesourcery.com>
14238
14239 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14240 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14241 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14242 PT_TEXT_END_ADDR guards. Update comments.
14243 (linux_target_op) <read_offsets>: Conditionally define to
14244 linux_read_offsets if the target is UCLIBC and if it defines
14245 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14246
68f5f838
SL
142472013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14248 Andrew Jenner <andrew@codesourcery.com>
14249
14250 * Makefile.in (SFILES): Add linux-nios2-low.c.
14251 (clean): Add action to delete nios2-linux.c.
14252 (nios2-linux.c): New rule.
14253 * configure.srv: Add nios2*-*-linux*.
14254 * linux-nios2-low.c: New.
14255
1ebff1fd
HAQ
142562013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14257
14258 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14259
f6150862
HZ
142602013-04-25 Hui Zhu <hui@codesourcery.com>
14261
14262 PR gdb/15186
f6150862
HZ
14263 * ax.c (ax_printf): Add fflush.
14264
614c279d
TT
142652013-04-22 Tom Tromey <tromey@redhat.com>
14266
14267 * Makefile.in (SFILES): Add filestuff.c.
14268 (OBS): Add filestuff.o.
14269 (filestuff.o): New target.
14270 * config.in, configure: Rebuild.
14271 * configure.ac: Check for fdwalk, pipe2.
14272
7d4e5717
PA
142732013-04-17 Pedro Alves <palves@redhat.com>
14274
14275 * configure.ac (USE_THREAD_DB): Delete variable.
14276 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14277 Don't AC_SUBST USE_THREAD_DB.
14278 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14279 * config.in, configure: Regenerate.
14280
d5c93e41
PA
142812013-04-16 Pedro Alves <palves@redhat.com>
14282
14283 * linux-low.h (struct lwp_info) <thread_known>: Move under
14284 the USE_THREAD_DB #ifdef.
14285
04f5fe89
PA
142862013-04-16 Pedro Alves <palves@redhat.com>
14287
14288 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14289 (linux-low.o): Delete rule.
14290 * linux-low.h: Always include "gdb_thread_db.h" instead of
14291 conditionally including thread_db.h.
14292 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14293 HAVE_THREAD_DB_H.
14294
480b27bf
JK
142952013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14296
14297 * Makefile.in (install-only): Fix make install regression.
14298
43662968
JK
142992013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14300
14301 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14302 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14303 installation.
14304 * gdbserver.1: Remove.
14305
3e74e146
PA
143062013-03-22 Pedro Alves <palves@redhat.com>
14307
14308 * linux-low.c (handle_extended_wait): Don't call
14309 linux_enable_event_reporting.
14310
a8347a2a
TT
143112013-03-15 Tony Theodore <tonyt@logyst.com>
14312
14313 PR build/9098:
14314 * Makefile.in (SHELL): Use @SHELL@.
14315
eeb56fa7
SDJ
143162013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14317
14318 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14319 compiler warning.
14320
4fa7e2ff
JB
143212013-03-13 Joel Brobecker <brobecker@adacore.com>
14322
14323 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14324 Remove extraneous NULL element.
14325
8ddb1965
YQ
143262013-03-13 Yao Qi <yao@codesourcery.com>
14327
14328 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14329 'V' block in trace frame.
14330
9accd112
MM
143312013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14332
14333 * target.h (struct target_ops): Add btrace ops.
14334 (target_supports_btrace): New macro.
14335 (target_enable_btrace): New macro.
14336 (target_disable_btrace): New macro.
14337 (target_read_btrace): New macro.
14338 * gdbthread.h (struct thread_info): Add btrace field.
14339 * server.c: Include btrace-common.h.
14340 (handle_btrace_general_set): New function.
14341 (handle_btrace_enable): New function.
14342 (handle_btrace_disable): New function.
14343 (handle_general_set): Call handle_btrace_general_set.
14344 (handle_qxfer_btrace): New function.
14345 (struct qxfer qxfer_packets[]): Add btrace entry.
14346 * inferiors.c (remove_thread): Disable btrace.
14347 * linux-low: Include linux-btrace.h.
14348 (linux_low_enable_btrace): New function.
14349 (linux_low_read_btrace): New function.
14350 (linux_target_ops): Add btrace ops.
14351 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14352 Add srv_linux_btrace=yes.
14353 (x86_64-*-linux*): Add linux-btrace.o.
14354 Add srv_linux_btrace=yes.
14355 * configure.ac: Define HAVE_LINUX_BTRACE.
14356 * config.in: Regenerated.
14357 * configure: Regenerated.
14358
5cc22e4c
MM
143592013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14360
14361 * server.c (handle_qxfer): Preserve error message if -3 is
14362 returned.
14363 (qxfer): Document the -3 return value.
14364
7c97f91e
MM
143652013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14366
14367 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14368 (linux_btrace_h): New variable.
14369 (linux-btrace.o): New rule.
14370
be9a119c 143712013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14372 Hafiz Abid Qadeer <abidh@codesourcery.com>
14373
14374 * tracepoint.c (trace_buffer_size): New global.
14375 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14376 (init_trace_buffer): Change to one-argument function. Allocate
14377 trace buffer memory.
14378 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14379 handle QTBuffer:size packet.
14380 (cmd_bigqtbuffer_size): New function.
14381 (initialize_tracepoint): Call init_trace_buffer with
14382 DEFAULT_TRACE_BUFFER_SIZE.
14383 * server.c (handle_query): Add QTBuffer:size in the
14384 supported packets.
14385
e64f7499
YQ
143862013-03-07 Yao Qi <yao@codesourcery.com>
14387
14388 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14389 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14390 of -1.
14391 (cmd_qtsp): Adjust condition. Do post increment.
14392 Set cur_action and cur_step_action back to 0.
14393
f0ae6fc3
PA
143942013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14395
14396 PR server/15236
14397 * linux-low.c (linux_write_memory): Return early success if LEN is
14398 zero.
14399
b5b0b0af
CV
144002013-03-05 Corinna Vinschen <vinschen@redhat.de>
14401
334ad4a8 14402 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14403
589bc927
TT
144042013-02-28 Tom Tromey <tromey@redhat.com>
14405
14406 * configure.ac: Invoke AC_SYS_LARGEFILE.
14407 * configure, config.in: Rebuild.
14408
dfe07582
CV
144092013-02-28 Corinna Vinschen <vinschen@redhat.com>
14410
14411 * win32-low.c: Throughout, fix format strings and casts of
14412 printf-like functions to avoid type related warnings on all
14413 platforms.
14414 (get_child_debug_event): Print dwDebugEventCode as hex since
14415 that's how it's usually documented.
14416
736cd585
YQ
144172013-02-28 Yao Qi <yao@codesourcery.com>
14418
14419 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14420 pulongest.
14421
e1f58301
JW
144222013-02-27 Jiong Wang <jiwang@tilera.com>
14423
14424 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14425 (reg-tilegx32.c): New rule.
14426 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14427 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14428 different register info initializer according to elf class.
14429 (init_registers_tilgx32): New function. The tilegx32 register info
14430 initializer.
14431 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14432 (tile_store_gregset): Likewise.
14433
d171ca78
YQ
144342013-02-27 Yao Qi <yao@codesourcery.com>
14435
14436 * server.c (process_point_options): Print debug message when
14437 debug_threads is true.
14438
282bbdf3
YQ
144392013-02-26 Yao Qi <yao@codesourcery.com>
14440
14441 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14442
aca22551
PA
144432013-02-19 Pedro Alves <palves@redhat.com>
14444 Kai Tietz <ktietz@redhat.com>
14445
14446 PR gdb/15161
14447
14448 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14449 instead of strtoul to extract address from packet.
14450 (process_serial_event) <'z'>: Likewise.
14451
4f3cee1c
YQ
144522013-02-18 Yao Qi <yao@codesourcery.com>
14453
14454 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14455
8e1d55a3
PA
144562013-02-14 Pedro Alves <palves@redhat.com>
14457
14458 Plug memory leak.
14459
14460 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14461 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14462
458820da
PA
144632013-02-14 Pedro Alves <palves@redhat.com>
14464
14465 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14466
baea0dae
PA
144672013-02-14 Pedro Alves <palves@redhat.com>
14468
14469 * tracepoint.c (save_string): Delete.
14470 (add_tracepoint_action): Use savestring instead of save_string.
14471
0b1afbb3
PA
144722013-02-12 Pedro Alves <palves@redhat.com>
14473
14474 * linux-xtensa-low.c: Ditto.
14475 * xtensa-xtregs.c: Ditto.
14476
8a4ac37e
PA
144772013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14478
14479 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14480 thread_db.
14481
148de6bb
MS
144822013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14483
14484 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14485 aarch64_num_wp_regs and aarch64_num_bp_regs to
14486 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14487
55fac6e0
MS
144882013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14489
14490 * linux-aarch64-low.c (ps_get_thread_area): Replace
14491 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14492
176eb98c
MS
144932013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14494 Marcus Shawcroft <marcus.shawcroft@arm.com>
14495 Nigel Stephens <nigel.stephens@arm.com>
14496 Yufeng Zhang <yufeng.zhang@arm.com>
14497
14498 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14499 (aarch64.c, aarch64-without-fpu.c): New targets.
14500 * configure.srv (aarch64*-*-linux*): New.
14501 * linux-aarch64-low.c: New file.
14502
56f7af9c
MS
145032013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14504
43aaf8b6 14505 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14506 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14507 (dequeue_one_deferred_signal, linux_resume_one_thread)
14508 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14509 (linux_tracefork_grandchild, linux_test_for_tracefork)
14510 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14511 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14512 where the argument is 0.
14513
60f662b0
YQ
145142013-01-25 Yao Qi <yao@codesourcery.com>
14515
14516 * event-loop.c: Include "queue.h".
14517 (gdb_event_p): New typedef.
14518 (struct gdb_event) <next_event>: Remove.
14519 (event_queue): Change to QUEUE(gdb_event_p).
14520 (async_queue_event): Remove.
14521 (gdb_event_xfree): New.
14522 (initialize_event_loop): New.
14523 (process_event): Use API from QUEUE.
14524 (wait_for_event): Likewise.
14525 * server.c (main): Call initialize_event_loop.
14526 * server.h (initialize_event_loop): Declare.
14527
5ae4861a
YQ
145282013-01-18 Yao Qi <yao@codesourcery.com>
14529
14530 * ax.h (struct eval_agent_expr_context): New.
14531 (gdb_eval_agent_expr): Update declaration.
14532 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14533 TFRAME. Add new argument CTX.
14534 * server.h (struct eval_agent_expr_context): Declare.
14535 (agent_mem_read, agent_tsv_read): Update declaration.
14536 (agent_mem_read_string): Likewise.
14537 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14538 (add_traceframe_block): Add new argument TPOINT.
14539 Increase TPOINT->traceframe_usage.
14540 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14541 eval_tracepoint_agent_expr.
14542 (condition_true_at_tracepoint): Likewise.
14543 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14544 (agent_mem_read_string, agent_tsv_read): Likewise.
14545
85e00e85
YQ
145462013-01-16 Yao Qi <yao@codesourcery.com>
14547
14548 * linux-low.c (linux_resume_one_lwp): Don't check
14549 'lwp->bp_reinsert != 0'.
14550
4039cf45
JB
145512013-01-07 Joel Brobecker <brobecker@adacore.com>
14552 Pedro Alves <palves@redhat.com>
14553
14554 * lynx-low.c (ptrace_request_to_str): Define a temporary
14555 macro and use it to simplify this function's implementation.
14556
9044dee2
JB
145572013-01-07 Joel Brobecker <brobecker@adacore.com>
14558
14559 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14560 sets errno.
14561
e6352c8f
JB
145622013-01-07 Joel Brobecker <brobecker@adacore.com>
14563
14564 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14565
50681a27
JB
145662013-01-07 Joel Brobecker <brobecker@adacore.com>
14567
14568 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14569
3f6e77ef
JB
145702013-01-07 Joel Brobecker <brobecker@adacore.com>
14571
14572 * lynx-low.c (lynx_resume): Use the resume_info parameter
14573 to determine the ptid for the lynx_ptrace call, unless
14574 it is equal to minus_one_ptid, in which case we use the
14575 ptid of the current_inferior.
14576 (lynx_wait_1): After having received a thread create/exit
14577 event, resume the inferior's execution using the signaling
14578 thread's ptid, rather than the old ptid.
14579
7fda33ae
JB
145802013-01-07 Joel Brobecker <brobecker@adacore.com>
14581
14582 * lynx-low.c (lynx_resume): Delete variable ret.
14583
b9786c74
JB
145842013-01-01 Joel Brobecker <brobecker@adacore.com>
14585
14586 * gdbreplay.c (gdbreplay_version): Update copyright year.
14587 * server.c (gdbserver_version): Likewise.
14588
8b93d60f
JB
145892012-12-17 Joel Brobecker <brobecker@adacore.com>
14590
14591 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14592 new thread.
14593
037335a7
JB
145942012-12-17 Joel Brobecker <brobecker@adacore.com>
14595
14596 * lynx-low.c (ptrace_request_to_str): Add handling for
14597 PTRACE_GETTRACESIG.
14598
52d4cbd8
JB
145992012-12-17 Joel Brobecker <brobecker@adacore.com>
14600
14601 * lynx-low.c (lynx_attach): Delete variable new_process.
14602
ab8f6ca9
JB
146032012-12-17 Joel Brobecker <brobecker@adacore.com>
14604
14605 * lynx-low.c (lynx_create_inferior): Delete variable
14606 new_process.
14607
78cbc024
JB
146082012-12-17 Joel Brobecker <brobecker@adacore.com>
14609
14610 * lynx-low.c (ptrace_request_to_str): Do not handle
14611 PTRACE_GETTHREADLIST if this macro does not exist.
14612
14a00470
YQ
146132012-12-15 Yao Qi <yao@codesourcery.com>
14614
14615 * Makefile.in (OBS): Add notif.o.
14616 * notif.c, notif.h: New.
14617 * server.c: Include "notif.h".
14618 (struct vstop_notif) <next>: Remove.
14619 <base>: New field.
14620 (queue_stop_reply): Update.
14621 (push_event, send_next_stop_reply): Remove.
14622 (discard_queued_stop_replies): Update.
14623 (notif_stop): New variable.
14624 (handle_v_stopped): Remove.
14625 (handle_v_requests): Don't call handle_v_stopped. Call
14626 handle_ack_notif instead.
14627 (queue_stop_reply_callback): Call notif_event_enque instead
14628 of queue_stop_reply.
14629 (handle_status): Don't call send_next_stop_reply, call
14630 notif_write_event instead.
14631 (kill_inferior_callback): Likewise.
14632 (detach_or_kill_inferior_callback): Likewise.
14633 (main): Call initialize_notif.
14634 (process_serial_event): Call QUEUE_is_empty.
14635 (handle_target_event): Call notif_push instead of push event.
14636 * server.h (push_event): Remove declaration.
14637
61c125b9
TT
146382012-12-10 Tom Tromey <tromey@redhat.com>
14639
14640 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14641 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14642 macros.
14643 (.c.o): Rewrite.
14644 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14645 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14646 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14647 (amd64-linux-ipa.o, ax.o): Rewrite.
14648 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14649 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14650 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14651 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14652 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14653 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14654 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14655 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14656 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14657 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14658 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14659 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14660 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14661 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14662 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14663 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14664 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14665 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14666 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14667 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14668 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14669 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14670 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14671 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14672 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14673 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14674 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14675 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14676 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14677 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14678 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14679 (reg-tilegx.o): Remove.
14680 (all_object_files): New macro.
14681 Include .deps files.
14682 * aclocal.m4, configure: Rebuild.
14683 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14684 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14685 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14686
e90e9ad9
TT
146872012-12-05 Tom Tromey <tromey@redhat.com>
14688
14689 PR gdb/14917:
14690 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14691
02d403bf 146922012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14693
14694 * configure.ac: Check for linux/perf_event.h.
14695 * config.in: Regenerated.
14696 * configure: Regenerated.
14697
0270a750
PA
146982012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14699
14700 * hostio.c (handle_readlink): Decrease buffer size
14701 parameter passed to readlink by one byte.
14702
8c29b58e
YQ
147032012-11-26 Yao Qi <yao@codesourcery.com>
14704
14705 * configure.ac (build_warnings): Append '-Wempty-body'.
14706 * configure: Regenerated.
14707 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14708 body.
14709
8bdce1ff
PM
147102012-11-15 Pierre Muller <muller@sourceware.org>
14711
14712 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14713 * config.in: Regenerate.
14714 * configure: Regenerate.
14715 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14716 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14717 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14718 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14719 header.
14720 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14721 instead of <sys/wait.h> header.
14722 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14723
02d403bf 147242012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14725
14726 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14727 (various make rules): Remove -DGDBSERVER
14728
fbd5db48
YQ
147292012-11-09 Yao Qi <yao@codesourcery.com>
14730
14731 * spu-low.c (current_ptid): Move it to ..
14732 * gdbthread.h: ... here. New.
14733 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14734 * server.c (myresume, process_serial_event): Likewise.
14735 * thread-db.c (thread_db_find_new_threads): Likewise.
14736 * tracepoint.c (run_inferior_command): Likewise.
14737
b3dc46ff
AB
147382012-10-01 Andrew Burgess <aburgess@broadcom.com>
14739
14740 * server.c (handle_search_memory_1): Include access length in
14741 warning message.
14742
07c04788
HPN
147432012-09-05 Michael Brandt <michael.brandt@axis.com>
14744
14745 * linux-crisv32-low.c: Fix compile errors.
14746
918d227b
YQ
147472012-09-04 Yao Qi <yao@codesourcery.com>
14748
14749 * tracepoint.c (cmd_qtsv): Adjust debug message.
14750 Don't check CUR_TPOINT.
14751
18c1b81a
YQ
147522012-08-28 Yao Qi <yao@codesourcery.com>
14753
14754 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14755 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14756 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14757 Remove declarations of xmalloc, xreallloc, xstrdup and
14758 freeargv.
14759 * Makefile.in (libiberty_h): New.
14760 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14761 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14762
dc82f37b
YQ
147632012-08-23 Yao Qi <yao@codesourcery.com>
14764
14765 * server.h: Remove declaration of 'xsnprintf'.
14766
406b1477
KS
147672012-08-22 Keith Seitz <keiths@redhat.com>
14768
14769 * server.h: Include build-gnulib-gbserver/config.h.
14770 * gdbreplay.c: Likewise.
14771
e6712ff1
DE
147722012-08-08 Doug Evans <dje@google.com>
14773
14774 * Makefile.in (SFILES): Add gdb_vecs.c.
14775 (OBS): Add gdb_vecs.o.
14776 (gdb_vecs_h, host_defs_h): New variables.
14777 (thread-db.o): Add $(gdb_vecs_h) dependency.
14778 (gdb_vecs.o): New rule.
14779 * thread-db.c: #include "gdb_vecs.h".
14780 (thread_db_load_search): Use a vector to iterate over path elements.
14781 Handle text appearing after "$pdir".
14782
14783 * configure.ac: Add check for strstr.
14784 * config.in: Regenerate.
14785 * configure: Regenerate.
14786
7c3270ae
UW
147872012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14788
14789 * hostio.c (handle_pread): If pread fails, fall back to attempting
14790 lseek/read.
14791 (handle_pwrite): Likewise for pwrite.
14792
b62e2b27
UW
147932012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14794
14795 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14796 between unsupported TYPE and unimplementable ADDR/LEN combination.
14797 (arm_insert_point): Act on new return value.
14798
78a99e91
PA
147992012-07-31 Pedro Alves <palves@redhat.com>
14800
14801 * server.c (process_point_options): Only skip tokens if we find
14802 one that is unrecognized. Don't treat 'X' specially while
14803 skipping unrecognized tokens.
14804
fcf303ab
UW
148052012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14806
14807 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14808 to 4-byte-align HW breakpoint addresses for Thumb.
14809
7255706c
YQ
148102012-07-27 Yao Qi <yao@codesourcery.com>
14811
14812 PR remote/14161.
14813
14814 * server.h: Declare gdb_agent_about_to_close.
14815 * target.c (kill_inferior): Include "agent.h".
14816 New. Send command 'kill'.
14817 * target.h (kill_inferior): Removed macro.
14818 * tracepoint.c (gdb_agent_about_to_close): New.
14819 (gdb_agent_helper_thread): Handle command 'close'.
14820 Wait endlessly until the inferior stops.
14821 Install gdb_agent_remove_socket to atexit hook.
14822 (agent_socket_name): New static variable.
14823 (gdb_agent_socket_init): Replace local variable 'name' with
14824 'agent_socket_name'.
14825 (gdb_agent_remove_socket): New.
14826
5a3f286f
YQ
148272012-07-27 Yao Qi <yao@codesourcery.com>
14828
14829 * server.c (process_point_options): Stop at 'X' when parsing.
14830
961bd387
ME
148312012-07-19 Michael Eager <eager@eagercon.com>
14832
a261b8f5 14833 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14834 to hw_execute.
14835 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14836 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14837 hardware breakpoint.
14838
aa7c7447
JK
148392012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14840
14841 * gdbserver/linux-low.c (initialize_low): Call
14842 linux_ptrace_init_warnings.
14843
7f216e7c
DE
148442012-07-02 Doug Evans <dje@google.com>
14845
14846 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14847 pointer to int.
14848
d3ce09f5
SS
148492012-07-02 Stan Shebs <stan@codesourcery.com>
14850
14851 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14852 (ax.o): Add it to build rule.
14853 (ax-ipa.o): Ditto.
14854 (OBS): Add format.o.
14855 (IPA_OBS): Add format.o.
14856 * server.c (handle_query): Claim support for breakpoint commands.
14857 (process_point_options): Add command case.
14858 (process_serial_event): Leave running if there are printfs in
14859 effect.
14860 * mem-break.h (any_persistent_commands): Declare.
14861 (add_breakpoint_commands): Declare.
14862 (gdb_no_commands_at_breakpoint): Declare.
14863 (run_breakpoint_commands): Declare.
14864 * mem-break.c (struct point_command_list): New struct.
14865 (struct breakpoint): New field command_list.
14866 (any_persistent_commands): New function.
14867 (add_commands_to_breakpoint): New function.
14868 (add_breakpoint_commands): New function.
14869 (gdb_no_commands_at_breakpoint): New function.
14870 (run_breakpoint_commands): New function.
14871 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14872 locally.
14873 * ax.c: Include format.h.
14874 (ax_printf): New function.
14875 (gdb_eval_agent_expr): Add printf opcode.
14876
2f8f6aed
YQ
148772012-06-13 Yao Qi <yao@codesourcery.com>
14878
14879 * server.c (start_inferior): Remove duplicated writes to fields
14880 'last_resume_kind' and 'last_status' of 'current_inferior'.
14881
0c9070b3
YQ
148822012-06-12 Yao Qi <yao@codesourcery.com>
14883 Pedro Alves <palves@redhat.com>
14884
14885 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14886 comment.
14887 * server.c (handle_v_cont): Extend comment.
14888
c52daf70
YQ
148892012-06-11 Yao Qi <yao@codesourcery.com>
14890
14891 * linux-low.c (linux_attach): Add 'static'.
14892
d38bbb0a
YQ
148932012-06-06 Yao Qi <yao@codesourcery.com>
14894
14895 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14896
89dc0afd
JK
148972012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14898
14899 Fix gcc -flto compilation warning.
14900 * server.c (main): Make variable multi_mode and attach volatile.
14901
75f62ce7
TJB
149022012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14903
14904 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14905 if the platform doesn't know about it.
14906
65f479b6
PA
149072012-05-30 Jeff Kenton <jkenton@tilera.com>
14908
14909 * Makefile.in (SFILES): Add linux-tile-low.c.
14910 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14911 * configure.srv: Handle tilegx-*-linux*.
14912 * linux-tile-low.c: New file.
14913
0c5bf5a9
JK
149142012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14915
14916 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14917
a493e3e2
PA
149182012-05-24 Pedro Alves <palves@redhat.com>
14919
14920 PR gdb/7205
14921
43aaf8b6 14922 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 14923
2ea28649
PA
149242012-05-24 Pedro Alves <palves@redhat.com>
14925
14926 PR gdb/7205
14927
14928 Replace target_signal with gdb_signal throughout.
14929
8d409d16
MR
149302012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14931
14932 * linux-low.c (linux_store_registers): Avoid the copying sequence
14933 when no data has been retrieved by ptrace.
14934
23512c01
MGD
149352012-05-22 Will Deacon <will.deacon@arm.com>
14936
14937 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14938 Include asm/ptrace.h.
14939 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14940 already defined.
14941
4934b29e
MR
149422012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14943
14944 * linux-low.c (linux_store_registers): Don't re-retrieve data
14945 with ptrace that has already been obtained from /proc. Always
14946 copy any data retrieved with ptrace to the buffer supplied.
14947
bde24c0a
PA
149482012-05-11 Yao Qi <yao@codesourcery.com>
14949 Pedro Alves <palves@redhat.com>
14950
14951 * linux-low.c (enum stopping_threads_kind): New.
14952 (stopping_threads): Change type to `enum stopping_threads_kind'.
14953 (handle_extended_wait): If stopping and suspending threads, leave
14954 the new_lwp suspended too.
14955 (linux_wait_for_event): Adjust.
14956 (stop_all_lwps): Set `stopping_threads' to
14957 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14958 whether we're suspending threads or just stopping them. Assert no
14959 recursion happens.
14960
623b6bdf
YQ
149612012-04-29 Yao Qi <yao@codesourcery.com>
14962
14963 * server.h: Move some code to ...
14964 * gdbthread.h: ... here. New.
14965 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14966 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14967 (nto-low.o, win32-low.o): Likewise.
14968 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14969 * regcache.c, remote-utils.c, server.c: Likewise.
14970 * target.c, tracepoint.c, win32-low.c: Likewise.
14971
f15f9948
TJB
149722012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14973
14974 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14975 (PTRACE_ARG4_TYPE): Likewise.
14976 (PTRACE_XFER_TYPE): Likewise.
14977 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14978 ptrace to PTRACE_ARG3_TYPE.
14979 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14980 (PTRACE_ARG4_TYPE): Likewise.
14981 (PTRACE_XFER_TYPE): Likewise.
14982 (linux_detach_one_lwp): Cast fourth argument of
14983 ptrace to long then PTRACE_ARG4_TYPE.
14984 (regsets_fetch_inferior_registers): Cast third argument of
14985 ptrace to long then PTRACE_ARG3_TYPE.
14986 (regsets_store_inferior_registers): Likewise.
14987
38ea300a
PA
149882012-04-20 Pedro Alves <palves@redhat.com>
14989
14990 * configure: Regenerate.
14991
c971b7fa
PA
149922012-04-19 Pedro Alves <palves@redhat.com>
14993
43aaf8b6 14994 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 14995 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
14996 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14997 (all, install-only, uninstall, clean-info, all-lib, clean): No
14998 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14999 (maintainer-clean realclean distclean): Use subdir_do.
15000 (subdir_do): New.
15001 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15002 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15003 * acinclude.m4: Include acx_configure_dir.m4.
15004 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15005 calls. Call AC_PROG_RANLIB. Configure gnulib using
15006 ACX_CONFIGURE_DIR.
15007 (GNULIB): New.
15008 (GNULIB_STDINT_H): Adjust.
15009 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15010 * gdbreplay.c: Include build-gnulib/config.h.
15011 * server.h: Likewise.
15012 * aclocal.m4: Regenerate.
15013 * config.in: Regenerate.
15014 * configure: Regenerate.
c971b7fa 15015
809277f8
PA
150162012-04-19 Pedro Alves <palves@redhat.com>
15017
15018 * Makefile.in (LIBGNU, INCGNU): Adjust.
15019 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15020 (all, install-only, uninstall, clean-info, all-lib, clean)
15021 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15022 * configure.ac: Adjust AC_OUTPUT output.
15023 * aclocal.m4: Regenerate.
15024 * configure: Regenerate.
15025
fd9bb8b8
PA
150262012-04-19 Pedro Alves <palves@redhat.com>
15027
15028 * Makefile.in (generated_files): New.
15029 (server_h): Remove the explicit dependency on config.h, and depend
15030 on $generated_files.
15031
1c298c66
PA
150322012-04-19 Pedro Alves <palves@redhat.com>
15033
15034 * Makefile.in (INCGNU): Add -Ignulib.
15035
57c4b50b
PA
150362012-04-19 Pedro Alves <palves@redhat.com>
15037
15038 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15039 (INCGNU): ... this, and spell out -I here.
15040 (GNULIB_LIB): Rename to ...
15041 (LIBGNU): ... this.
15042 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15043
1030e047
PA
150442012-04-19 Pedro Alves <palves@redhat.com>
15045
15046 * config.in: Regenerate.
15047
447d4319
PA
150482012-04-19 Pedro Alves <palves@redhat.com>
15049
15050 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15051 * server.h (memmem): Remove declaration.
15052 * config.in: Regenerate.
15053 * configure: Regenerate.
15054
aad9eab9
YQ
150552012-04-19 Yao Qi <yao@codesourcery.com>
15056
15057 * Makefile.in (SFILES): Add common/vec.c.
15058 (OBS): Add vec.o.
15059 (vec.o): New rule.
15060
3e10640f
YQ
150612012-04-19 Yao Qi <yao@codesourcery.com>
15062
15063 * remote-utils.c (prepare_resume_reply): Replace with macro
15064 target_core_of_thread.
15065 * server.c (handle_qxfer_threads_proper): Likewise.
15066 * target.h (traget_core_of_thread): New macro.
15067
71622373
PA
150682012-04-18 Pedro Alves <palves@redhat.com>
15069
15070 * aclocal.m4: Regenerate.
15071 * configure: Regenerate.
15072
80d26939
YQ
150732012-04-16 Yao Qi <yao@codesourcery.com>
15074
15075 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15076 duplicated on address.
15077
42476b70
YQ
150782012-04-16 Yao Qi <yao@codesourcery.com>
15079
15080 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15081 (struct tracepoint_action_ops) <send>: New field.
15082 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15083 (agent_expr_send, x_tracepoint_action_send): New.
15084 (l_tracepoint_action_send): New.
15085 (cmd_qtdp): Download and install tracepoint
15086 according to `use_agent'.
15087 (run_inferior_command): Add one more parameter `len'.
15088 Update callers.
15089 (tracepoint_send_agent): New.
15090 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15091
7bc83639
YQ
150922012-04-16 Yao Qi <yao@codesourcery.com>
15093
15094 * tracepoint.c (download_tracepoints): Moved to ...
15095 (cmd_qtstart): ... here.
15096
5f18041e
YQ
150972012-04-14 Yao Qi <yao@codesourcery.com>
15098
15099 * tracepoint.c: Include inttypes.h.
15100 (struct collect_memory_action): Use sized types.
15101 (struct tracepoint): Likewise.
15102 (cmd_qtdp, stop_tracing): Update print specifiers.
15103 (cmd_qtp, response_tracepoint): Likewise.
15104 (collect_data_at_tracepoint): Likewise.
15105 (collect_data_at_step): Likewise.
15106
55a8c076
YQ
151072012-04-14 Yao Qi <yao@codesourcery.com>
15108
15109 Import gnulib module inttypes.
15110 * aclocal.m4, config.in, configure: Regenerated.
15111
dc750257
YQ
151122012-04-14 Yao Qi <yao@codesourcery.com>
15113
15114 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15115 Makefile and config.status at last.
15116
0ab5faf9
YQ
151172012-04-13 Yao Qi <yao@codesourcery.com>
15118
15119 * tracepoint.c: Include stdint.h unconditionally.
15120
18f5fd81
TJB
151212012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15122
15123 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15124 on BFD_HAVE_SYS_PROCFS_TYPE.
15125 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15126 * configure: Regenerate.
15127 * config.in: Likewise.
15128
4d47af5c
L
151292012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15130
15131 * Makefile.in (clean): Also remove x32.c x32-linux.c
15132 x32-avx.c x32-avx-linux.c.
15133 (x32.o): New target.
15134 (x32.c): Likewise.
15135 (x32-linux.o): Likewise.
15136 (x32-linux.c): Likewise.
15137 (x32-avx.o): Likewise.
15138 (x32-avx.c): Likewise.
15139 (x32-avx-linux.o): Likewise.
15140 (x32-avx-linux.c): Likewise.
15141
15142 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15143 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15144 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15145 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15146 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15147 i386/x32-avx-linux.xml.
15148
15149 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15150 (init_registers_x32_avx_linux): Likwise.
15151 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15152 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15153
ecedbe58
PA
151542012-04-13 Pedro Alves <palves@redhat.com>
15155
15156 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15157 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15158 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15159 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15160 the sub-make.
15161
c92b5177
L
151622012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15163
15164 * linux-x86-low.c (compat_x32_clock_t): New.
15165 (compat_x32_siginfo_t): Likewise.
15166 (compat_x32_siginfo_from_siginfo): Likewise.
15167 (siginfo_from_compat_x32_siginfo): Likewise.
15168 (linux_is_elf64): Likewise.
15169 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15170 and siginfo_from_compat_x32_siginfo for x32.
15171 (x86_arch_setup): Set linux_is_elf64.
15172
214d508e
L
151732012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15174
15175 PR gdb/13969
15176 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15177 e_machine field.
15178 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15179 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15180 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15181 compatible with process.
15182
c9a1864a
YQ
151832012-04-12 Yao Qi <yao@codesourcery.com>
15184
15185 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15186 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15187 (install-only, install-info, clean): Handle sub dir gnulib.
15188 (all-lib, am--refresh): New targets.
15189 (memmem.o): Remove target.
15190 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15191 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15192 (AC_REPLACE_FUNCS): Remove memmem.
15193 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15194 (AC_OUTPUT): Generate Makefile in gnulib/.
15195 * aclocal.m4, config.in, configure: Regenerated.
15196
367ba2c2
MR
151972012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15198
15199 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15200
9d236627
PA
152012012-04-05 Pedro Alves <palves@redhat.com>
15202
15203 -Werror=strict-aliasing
15204
15205 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15206 pointer.
15207
111217b3
PA
152082012-04-04 Pedro Alves <palves@redhat.com>
15209
15210 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15211 (sparc_store_gregset_from_stack, sparc_store_gregset)
15212 (sparc_breakpoint_at): Fix formatting.
15213
8365dcf5
TJB
152142012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15215
15216 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15217 are available.
15218 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15219 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15220 * config.in: Regenerate.
15221 * configure: Likewise.
15222
689cc2ae
PA
152232012-03-29 Pedro Alves <palves@redhat.com>
15224
15225 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15226 Correct ptrace arguments.
15227
c14dfd32
PA
152282012-03-28 Pedro Alves <palves@redhat.com>
15229
15230 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15231 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15232 (IA64_FR1_REGNUM): New defines.
15233 (ia64_fetch_register): New.
15234 (the_low_target): Install it.
15235 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15236 field.
15237 * linux-low.c (linux_fetch_registers): Try the
15238 the_low_target.fetch_register hook first.
15239
15240 * linux-arm-low.c (the_low_target): Adjust.
15241 * linux-bfin-low.c (the_low_target): Adjust.
15242 * linux-cris-low.c (the_low_target): Adjust.
15243 * linux-crisv32-low.c (the_low_target): Adjust.
15244 * linux-m32r-low.c (the_low_target): Adjust.
15245 * linux-m68k-low.c (the_low_target): Adjust.
15246 * linux-mips-low.c (the_low_target): Adjust.
15247 * linux-ppc-low.c (the_low_target): Adjust.
15248 * linux-s390-low.c (the_low_target): Adjust.
15249 * linux-sh-low.c (the_low_target): Adjust.
15250 * linux-sparc-low.c (the_low_target): Adjust.
15251 * linux-tic6x-low.c (the_low_target): Adjust.
15252 * linux-x86-low.c (the_low_target): Adjust.
15253 * linux-xtensa-low.c (the_low_target): Adjust.
15254
63c88e13
PA
152552012-03-26 Pedro Alves <palves@redhat.com>
15256
15257 * server.c (handle_qxfer_libraries): Don't bail early if
15258 the_target->qxfer_libraries_svr4 is not NULL.
15259
fb723180
PA
152602012-03-26 Pedro Alves <palves@redhat.com>
15261
15262 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15263
0afae3cf
PA
152642012-03-23 Pedro Alves <palves@redhat.com>
15265
15266 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15267 "library-list-svr4" element's start tag when the the DSO list is
15268 empty.
15269
485f1ee4
PA
152702012-03-23 Pedro Alves <palves@redhat.com>
15271
15272 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15273 a variable whose type size is the same as the inferior's pointer
15274 size.
15275
a5362b9a
TS
152762012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15277
15278 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15279 struct siginfo.
15280 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15281 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15282 * linux-low.h: Include <signal.h>.
15283 (struct siginfo): Remove forward declaration.
15284 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15285 struct siginfo.
15286
d226c142
MF
152872012-03-21 Mike Frysinger <vapier@gentoo.org>
15288
15289 * .gitignore: Ignore more files.
15290
122f36ef
PA
152912012-03-19 Pedro Alves <palves@redhat.com>
15292 Jan Kratochvil <jan.kratochvil@redhat.com>
15293
15294 * server.c (cont_thread, general_thread): Add describing comments.
15295 (start_inferior): Clear `cont_thread'.
15296 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15297 of a process.
15298
fc3e5175
YQ
152992012-03-15 Yao Qi <yao@codesourcery.com>
15300
15301 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15302 handling to ...
15303 (cmd_qtdp): ... here.
15304
8d0d92cd
YQ
153052012-03-15 Yao Qi <yao@codesourcery.com>
15306
15307 * tracepoint.c (struct tracepoint_action_ops): New.
15308 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15309 (m_tracepoint_action_download): New.
15310 (r_tracepoint_action_download): New.
15311 (x_tracepoint_action_download): New.
15312 (l_tracepoint_action_download): New.
15313 (add_tracepoint_action): Install `action->ops' according type.
15314 (download_tracepoint_1): Move code `download' function pointer
15315 of various tracepoint_action_ops.
15316
87b0bb13
JK
153172012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15318
15319 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15320 linux_ptrace_attach_warnings.
15321
5f572dec
JK
153222012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15323
15324 * Makefile.in (linux-ptrace.o): New.
15325 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15326 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15327 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15328 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15329 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15330 of these targets.
15331 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15332
f4647387
YQ
153332012-03-08 Yao Qi <yao@codesourcery.com>
15334 Pedro Alves <palves@redhat.com>
15335
15336 Fix PR server/13392.
15337 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15338 offset of JMP insn.
15339 * tracepoint.c (remove_tracepoint): New.
15340 (cmd_qtdp): Call remove_tracepoint when failed to install.
15341
9b224c5e
PA
153422012-03-07 Pedro Alves <palves@redhat.com>
15343
15344 * linux-low.c (get_detach_signal): New.
15345 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15346 Pass on pending signals to PTRACE_DETACH. Check the result of the
15347 ptrace call.
15348 * server.c (program_signals, program_signals_p): New.
15349 (handle_general_set): Handle QProgramSignals.
15350 * server.h (program_signals, program_signals_p): Declare.
15351
e237a7e2
JK
153522012-03-05 Pedro Alves <palves@redhat.com>
15353 Jan Kratochvil <jan.kratochvil@redhat.com>
15354
15355 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15356 New comment why.
15357
5808517f
YQ
153582012-03-03 Yao Qi <yao@codesourcery.com>
15359
15360 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15361 agent_look_up_symbols.
15362
58b4daa5
YQ
153632012-03-03 Yao Qi <yao@codesourcery.com>
15364
15365 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15366 (linux-x86-low.o): Likewise.
15367 * server.h: Remove in_process_agent_loaded.
15368 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15369 common/agent.c.
15370 Update callers.
15371
8ffcbaaf
YQ
153722012-03-03 Yao Qi <yao@codesourcery.com>
15373
15374 * tracepoint.c (gdb_agent_capability): New global.
15375 (in_process_agent_loaded_ust): Renamed to
15376 `in_process_agent_supports_ust'.
15377 Update callers.
15378 (in_process_agent_supports_ust): Call agent_capability_check.
15379 (clear_installed_tracepoints): Assert that agent supports
15380 agent.
15381
d1feda86
YQ
153822012-03-03 Yao Qi <yao@codesourcery.com>
15383
15384 * linux-low.c (linux_supports_agent): New.
15385 (linux_target_ops): Initialize field `supports_agent' with
15386 linux_supports_agent.
15387 * target.h (struct target_ops) <supports_agent>: New.
15388 (target_supports_agent): New macro.
15389 * server.c (handle_general_set): Handle packet 'QAgent'.
15390 (handle_query): Send `QAgent+'.
15391 * Makefile.in (server.o): Depends on agent.h.
15392
2fa291ac
YQ
153932012-03-03 Yao Qi <yao@codesourcery.com>
15394
15395 * Makefile.in (OBS): Add agent.o.
15396 Add new rule for agent.o.
15397 Track dependence of tracepoint.c on agent.h.
15398 * tracepoint.c (run_inferior_command_1):
15399 (run_inferior_command): Call agent_run_command.
15400 (gdb_ust_connect_sync_socket): Deleted. Move it to
15401 common/agent.c.
15402 (resume_thread, stop_thread): Likewise.
15403 (gdb_ust_socket_init): Renamed to ...
15404 (gdb_agent_socket_init): ... New.
15405 (gdb_ust_thread): Renamed to ...
15406 (gdb_agent_helper_thread): ... New.
15407 (gdb_ust_init): Move some code to ...
15408 (gdb_agent_init): ... here. New.
15409 [HAVE_UST]: Call gdb_ust_init.
15410 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15411 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15412 * config.in, configure: Regenerated.
15413
05044653
PA
154142012-03-02 Pedro Alves <palves@redhat.com>
15415
15416 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15417 * linux-low.c (struct simple_pid_list): New.
15418 (stopped_pids): New a struct simple_pid_list pointer.
15419 (add_to_pid_list, pull_pid_from_list): New.
15420 (handle_extended_wait): Don't assume the first signal new children
15421 report is SIGSTOP. Adjust call to pull_pid_from_list.
15422 (linux_wait_for_lwp): Adjust.
15423
8d00225b
YQ
154242012-03-02 Yao Qi <yao@codesourcery.com>
15425
15426 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15427 debug log.
15428
19560ba5
YQ
154292012-03-02 Yao Qi <yao@codesourcery.com>
15430
15431 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15432 `stop_pc' and `tpoint'. Update caller.
15433
1faeff08
MR
154342012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15435
15436 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15437 * linux-low.c (use_linux_regsets): New macro.
15438 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15439 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15440 (linux_register_in_regsets): New function.
15441 (usr_fetch_inferior_registers): Skip registers covered by
15442 regsets.
15443 (usr_store_inferior_registers): Likewise.
15444 (usr_fetch_inferior_registers): New macro.
15445 (usr_store_inferior_registers): Likewise.
15446 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15447 (linux_store_registers): Likewise.
15448 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15449 prototype.
15450 (init_registers_mips64_dsp_linux): Likewise.
15451 (init_registers_mips_linux): New macro.
15452 (init_registers_mips_dsp_linux): Likewise.
15453 (mips_dsp_num_regs): Likewise.
15454 (DSP_BASE, DSP_CONTROL): New fallback macros.
15455 (mips_base_regs): New macro.
15456 (mips_regmap): Use it. Fix the size.
15457 (mips_dsp_regmap): New variable.
15458 (mips_dsp_regset_bitmap): Likewise.
15459 (mips_arch_setup): New function.
15460 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15461 than mips_regmap.
15462 (mips_cannot_store_register): Likewise.
15463 (the_low_target): Update .arch_setup, .num_regs and .regmap
15464 initializers. Add .regset_bitmap initializer.
15465 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15466 initializer.
15467 * linux-bfin-low.c (the_low_target): Likewise.
15468 * linux-cris-low.c (the_low_target): Likewise.
15469 * linux-crisv32-low.c (the_low_target): Likewise.
15470 * linux-ia64-low.c (the_low_target): Likewise.
15471 * linux-m32r-low.c (the_low_target): Likewise.
15472 * linux-m68k-low.c (the_low_target): Likewise.
15473 * linux-ppc-low.c (the_low_target): Likewise.
15474 * linux-s390-low.c (the_low_target): Likewise.
15475 * linux-sh-low.c (the_low_target): Likewise.
15476 * linux-sparc-low.c (the_low_target): Likewise.
15477 * linux-tic6x-low.c (the_low_target): Likewise.
15478 * linux-x86-low.c (the_low_target): Likewise.
15479 * linux-xtensa-low.c (the_low_target): Likewise.
15480 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15481 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15482 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15483 srv_xmlfiles.
15484 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15485 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15486
c03e6ccc
YQ
154872012-02-29 Yao Qi <yao@codesourcery.com>
15488 Pedro Alves <palves@redhat.com>
15489
15490 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15491 `step_over_finished' is true.
15492
644cebc9
PA
154932012-02-27 Pedro Alves <palves@redhat.com>
15494
15495 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15496 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15497
c14d7ab2
PA
154982012-02-27 Pedro Alves <palves@redhat.com>
15499
15500 PR server/9684
15501 * linux-low.c (pid_is_stopped): New.
15502 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15503
412c89dd
LM
155042012-02-25 Luis Machado <lgustavo@codesourcery.com>
15505
15506 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15507 of conditions.
15508
b745defe
MR
155092012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15510
15511 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15512
9f3a5c85
LM
155132012-02-24 Luis Machado <lgustavo@codesourcery>
15514
15515 * server.c (handle_query): Advertise support for target-side
15516 breakpoint condition evaluation.
15517 (process_point_options): New function.
15518 (process_serial_event): When inserting a breakpoint, check for
15519 a target-side condition that should be evaluated.
15520
15521 * mem-break.c: Include regcache.h and ax.h.
15522 (point_cond_list_t): New data structure.
15523 (breakpoint) <cond_list>: New field.
15524 (find_gdb_breakpoint_at): Make non-static.
15525 (delete_gdb_breakpoint_at): Clear any target-side
15526 conditions.
15527 (clear_gdb_breakpoint_conditions): New function.
15528 (add_condition_to_breakpoint): Likewise.
15529 (add_breakpoint_condition): Likewise.
15530 (gdb_condition_true_at_breakpoint): Likewise.
15531 (gdb_breakpoint_here): Return result directly instead
15532 of going through a local variable.
15533
15534 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15535 (clear_gdb_breakpoint_conditions): Likewise.
15536 (add_breakpoint_condition): Likewise.
15537 (gdb_condition_true_at_breakpoint): Likewise.
15538
15539 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15540 (need_step_over_p): Take target-side breakpoint condition into
15541 consideration.
15542
5e1dc496
LM
155432012-02-24 Luis Machado <lgustavo@codesourcery>
15544
15545 * server.h: Include tracepoint.h.
15546 (agent_mem_read, agent_get_trace_state_variable_value,
15547 agent_set_trace_state_variable_value,
15548 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15549 get_set_tsv_func_addr): New prototypes.
15550
15551 * ax.h: New include file.
15552 * ax.c: New source file.
15553
15554 * tracepoint.c: Include ax.h.
15555 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15556 agent_expr, eval_result_type): Move to ax.h.
15557 (parse_agent_expr): Rename to ...
15558 (gdb_parse_agent_expr): ... this, make it non-static and move
15559 to ax.h.
15560 (unparse_agent_expr) Rename to ...
15561 (gdb_unparse_agent_expr): ... this, make it non-static and move
15562 to ax.h.
15563 (eval_agent_expr): Rename to ...
15564 (eval_tracepoint_agent_expr): ... this.
15565 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15566 forward declarations.
15567 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15568 (agent_get_trace_state_variable_value): New function.
15569 (agent_set_trace_state_variable_value): New function.
15570 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15571 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15572 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15573 (condition_true_at_tracepoint): Likewise.
15574 (parse_agent_expr): Rename to ...
15575 (gdb_parse_agent_expr): ... this and move to ax.c.
15576 (unparse_agent_expr): Rename to ...
15577 (gdb_unparse_agent_expr): ... this and move to ax.c.
15578 (gdb_agent_op_name): Move to ax.c.
15579 (eval_agent_expr): Rename to ...
15580 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15581 and move to ax.c.
15582 (eval_tracepoint_agent_expr): New function.
15583 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15584 non-static.
5e1dc496
LM
15585 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15586 ax.c.
15587 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15588 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15589 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15590 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15591 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15592 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15593 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15594 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15595 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15596 (compile_bytecodes): Remove forward declaration.
15597 (is_goto_target): Move to ax.c.
15598 (compile_bytecodes): Move to ax.c and call
15599 agent_get_trace_state_variable_value (...) and
15600 agent_set_trace_state_variable_value (...).
15601
15602 * Makefile.in: Update ax.c and IPA dependencies.
15603
277e4e52
PA
156042012-02-24 Pedro Alves <palves@redhat.com>
15605
15606 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15607 (cmd_bigqtbuffer_circular): ... this. Only handle
15608 'QTBuffer:circular:'.
15609 (handle_tracepoint_general_set): Adjust.
15610
bf4c19f7
YQ
156112012-02-16 Yao Qi <yao@codesourcery.com>
15612
15613 * inferiors.c: Move code to ...
15614 * dll.c: .... here. New.
15615 * server.h: Declare clear_dlls.
15616 * Makefile.in (SFILES): Add dll.c.
15617 (OBS): Add dll.o
15618 (dll.o): New rule.
15619
d73f2619
YQ
156202012-02-11 Yao Qi <yao@codesourcery.com>
15621
15622 * server.c: (handle_monitor_command): Add a new parameter
15623 `own_buf'.
15624 (handle_query): Update caller.
15625
f8255c2a
JB
156262012-02-09 Joel Brobecker <brobecker@adacore.com>
15627
15628 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15629 * configure, config.in: Regenerate.
15630 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15631 is not defined.
15632
da84f473
PA
156332012-02-02 Pedro Alves <palves@redhat.com>
15634
15635 Try SIGKILL first, then PTRACE_KILL.
15636 * linux-low.c (linux_kill_one_lwp): New.
15637 (linux_kill_one_lwp): Rename to ...
15638 (kill_one_lwp_callback): ... this. Use the new
15639 linux_kill_one_lwp.
15640
e886a173
PA
156412012-02-02 Pedro Alves <palves@redhat.com>
15642
15643 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15644 inferior.
15645
be07f1a2
PA
156462012-01-27 Pedro Alves <palves@redhat.com>
15647
15648 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15649 (elf_64_file_p): Make static.
15650 (linux_pid_exe_is_elf_64_file): New.
15651 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15652 Delete declarations.
15653 (linux_pid_exe_is_elf_64_file): Declare.
15654 * linux-x86-low.c (x86_arch_setup): Use
15655 linux_pid_exe_is_elf_64_file.
15656
d8301ad1
JK
156572012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15658
15659 * linux-low.c (linux_wait_for_event_1): Rename to ...
15660 (linux_wait_for_event): ... here and merge it with former
15661 linux_wait_for_event - new variable wait_ptid, use it.
15662 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15663
01b17894
PA
156642012-01-23 Pedro Alves <palves@redhat.com>
15665
15666 * server.c (main): Avoid yet another case of infinite loop while
15667 detaching/killing after a longjmp.
15668
e825046f
JK
156692012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15670
15671 Code cleanup.
15672 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15673
b9e7b9c3
UW
156742012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15675
15676 * hostio.c (handle_readlink): New function.
15677 (handle_vFile): Call it to handle "vFile:readlink" packets.
15678
901f9912
UW
156792012-01-20 Pedro Alves <palves@redhat.com>
15680 Ulrich Weigand <ulrich.weigand@linaro.org>
15681
15682 * server.c (handle_v_requests): Only support vAttach and vRun to
15683 start multiple processes when in extended protocol mode.
15684
fc1ab1a0
PA
156852012-01-17 Pedro Alves <palves@redhat.com>
15686
15687 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15688 memalign plus mprotect to allocate the scratch buffer.
15689
7d5d4e98
PA
156902012-01-13 Pedro Alves <palves@redhat.com>
15691
15692 * server.c (attach_inferior): Clear `cont_thread'.
15693
f128d5e9
PA
156942012-01-13 Pedro Alves <palves@redhat.com>
15695
15696 * server.c (main): Avoid infinite loop while detaching/killing
15697 after a longjmp.
15698
06db92f0
DE
156992012-01-09 Doug Evans <dje@google.com>
15700
15701 * server.c (start_inferior): Set last_ptid in --wrapper case.
15702
32d92999
YQ
157032012-01-06 Yao Qi <yao@codesourcery.com>
15704
15705 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15706 defined.
15707 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15708
5e0a92a9
YQ
157092012-01-04 Yao Qi <yao@codesourcery.com>
15710
15711 * tracepoint.c (cmd_qtdp): Print debug message
15712 for static tracepoint.
15713
ae639e8c
YQ
157142012-01-04 Yao Qi <yao@codesourcery.com>
15715
15716 * tracepoint.c (trace_vdebug): Differentiate debug message
15717 between gdbserver and IPA.
15718
f72429c5
YQ
157192012-01-03 Yao Qi <yao@codesourcery.com>
15720
15721 * tracepoint.c (tracepoint_was_hit): Don't collect for
15722 static tracepoint.
15723
12c3e59c
JB
157242012-01-02 Joel Brobecker <brobecker@adacore.com>
15725
15726 * terminal.h: Reformat copyright header.
15727
67827812
JB
157282012-01-02 Joel Brobecker <brobecker@adacore.com>
15729
15730 * server.c (gdbserver_version): Update copyright year.
15731 * gdbreplay.c (gdbreplay_version): Likewise.
15732
3e52c33d
JK
157332011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15734
15735 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15736
15737 Revert:
15738 2011-12-18 Hui Zhu <teawater@gmail.com>
15739 * linux-low.c (linux_create_inferior): Save return value to ret.
15740
66f1260e
HZ
157412011-12-18 Hui Zhu <teawater@gmail.com>
15742
15743 * linux-low.c (linux_create_inferior): Save return value to ret.
15744
e77616d7
DE
157452011-12-16 Doug Evans <dje@google.com>
15746
e7b06c57
DE
15747 * linux-low.c (linux_create_inferior): If stdio connection,
15748 redirect stdin from /dev/null, stdout to stderr.
15749 * remote-utils.c (remote_is_stdio): New static global.
15750 (remote_connection_is_stdio): New function.
15751 (remote_prepare): Handle stdio connection.
15752 (remote_open): Ditto.
15753 (remote_close): Don't close stdin for stdio connections.
15754 (read_prim,write_prim): New functions. Replace all calls to
15755 read/write to these.
15756 * server.c (main): Watch for "-" argument. Move call to
15757 remote_prepare before start_inferior.
15758 * server.h (STDIO_CONNECTION_NAME): New macro.
15759 (remote_connection_is_stdio): Declare.
15760
e77616d7
DE
15761 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15762 in debugging output.
15763
82067193
YQ
157642011-12-15 Yao Qi <yao@codesourcery.com>
15765
15766 * tracepoint.c: Include sys/syscall.h.
15767 (gdb_ust_thread): Remove preprocessor conditional.
15768
82bfbe7e
PA
157692011-12-14 Pedro Alves <pedro@codesourcery.com>
15770
15771 * linux-low.c (linux_detach_one_lwp): Call
15772 the_low_target.prepare_to_resume before detaching.
15773
712c6575
YQ
157742011-12-14 Yao Qi <yao@codesourcery.com>
15775
15776 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15777 of write.
15778
d54d1edf
YQ
157792011-12-14 Yao Qi <yao@codesourcery.com>
15780
15781 * i386-low.c (i386_low_stopped_data_address): Initialize local
15782 variable `control'.
15783
6210a125
PA
157842011-12-13 Pedro Alves <pedro@codesourcery.com>
15785
15786 PR remote/13492
15787
15788 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15789 DR_CONTROL unless necessary. Extend comments.
15790 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15791 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15792
2ece8244
YQ
157932011-12-13 Yao Qi <yao@codesourcery.com>
15794
15795 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15796 macros.
15797 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15798
784867a5
JK
157992011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15800
15801 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15802 Print new debug message for such case.
15803
6bf36717
JK
158042011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15805
15806 Fix overlapping memcpy.
15807 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15808 the read_inferior_memory transfer.
15809 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15810 write_inferior_memory transfer.
15811 (set_fast_tracepoint_jump): New variable buf. Use it for the
15812 read_inferior_memory and write_inferior_memory transfers.
15813 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15814 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15815 Use it for the write_inferior_memory transfer.
15816 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15817 buffers.
15818
50275556
MR
158192011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15820
15821 * linux-low.c (fetch_register, store_register): Make code
15822 consistent, fix formatting.
15823
7325beb4
MR
158242011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15825
15826 * linux-low.c (usr_store_inferior_registers): Factor out code
15827 to handle individual registers into...
15828 (store_register): ... this new function.
15829
c642a434
UW
158302011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15831
15832 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15833 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15834 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15835 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15836 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15837 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15838 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15839 (srv_xmlfiles): Add new XML files.
15840
15841 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15842 and <sys/uio.h>.
15843 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15844 (init_registers_s390_linux32v1): Add prototype.
15845 (init_registers_s390_linux32v2): Likewise.
15846 (init_registers_s390_linux64v1): Likewise.
15847 (init_registers_s390_linux64v2): Likewise.
15848 (init_registers_s390x_linux64v1): Likewise.
15849 (init_registers_s390x_linux64v2): Likewise.
15850 (s390_num_regs): Increment to 52.
15851 (s390_regmap): Add orig_r2 register.
15852 (s390_num_regs_3264): Increment to 68.
15853 (s390_regmap_3264): Add orig_r2 register.
15854 (s390_collect_ptrace_register): Handle orig_r2 register.
15855 (s390_supply_ptrace_register): Likewise.
15856 (s390_fill_last_break): New function.
15857 (s390_store_last_break): Likewise.
15858 (s390_fill_system_call): New function.
15859 (s390_store_system_call): Likewise.
15860 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15861 register sets.
15862 (s390_check_regset): New function.
15863 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15864 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15865 Update target_regsets for available register sets.
15866
2268b414
JK
158672011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15868 Jan Kratochvil <jan.kratochvil@redhat.com>
15869
15870 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15871 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15872 New.
15873 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15874 * linux-low.h (struct process_info_private): New member r_debug.
15875 * server.c (handle_qxfer_libraries): Call
15876 the_target->qxfer_libraries_svr4.
15877 (handle_qxfer_libraries_svr4): New function.
15878 (qxfer_packets): New entry "libraries-svr4".
15879 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15880 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15881 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15882 PACKET_qXfer_libraries_svr4.
15883
d6db1fab
UW
158842011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15885
15886 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15887 PSW address/mask between 8-byte and 16-byte formats.
15888 (s390_supply_ptrace_register): Likewise.
15889 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15890 basic addressing mode bit.
15891
242f5f1c
SS
158922011-11-24 Stan Shebs <stan@codesourcery.com>
15893
15894 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15895
f196051f
SS
158962011-11-17 Stan Shebs <stan@codesourcery.com>
15897
15898 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15899 (tracing_start_time): New global.
15900 (tracing_stop_time): New global.
15901 (tracing_user_name): New global.
15902 (tracing_notes): New global.
15903 (tracing_stop_note): New global.
15904 (cmd_qtstart): Set traceframe_usage, start_time.
15905 (stop_tracing): Set stop_time.
15906 (cmd_qtstatus): Report additional status.
15907 (cmd_qtp): New function.
15908 (handle_tracepoint_query): Call it.
15909 (cmd_qtnotes): New function.
15910 (handle_tracepoint_general_set): Call it.
15911 (get_timestamp): Rename from tsv_get_timestamp.
15912
405f8e94
SS
159132011-11-14 Stan Shebs <stan@codesourcery.com>
15914 Kwok Cheung Yeung <kcy@codesourcery.com>
15915
15916 * linux-x86-low.c (small_jump_insn): New.
15917 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15918 trampoline and error message, build a trampoline and issue a small
15919 jump instruction to it.
15920 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15921 trampoline and error message.
15922 (x86_get_min_fast_tracepoint_insn_len): New.
15923 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15924 * linux-low.h (struct linux_target_ops): Add arguments to
15925 install_fast_tracepoint_jump_pad operation, add new operation.
15926 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15927 arguments.
15928 (linux_get_min_fast_tracepoint_insn_len): New function.
15929 (linux_target_op): Add new operation.
15930 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15931 (gdb_trampoline_buffer_end): Ditto.
15932 (gdb_trampoline_buffer_error): Ditto.
15933 (struct ipa_sym_addresses): Add fields for new IPA variables.
15934 (symbol_list): Add entries for new IPA variables.
15935 (struct tracepoint): Add fields to hold the address range of the
15936 trampoline used by the tracepoint.
15937 (trampoline_buffer_head): New static variable.
15938 (trampoline_buffer_tail): Ditto.
15939 (claim_trampoline_space): New function.
15940 (have_fast_tracepoint_trampoline_buffer): New function.
15941 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15942 structure.
15943 (install_fast_tracepoint): Ditto, also add error buffer argument.
15944 (cmd_qtminftpilen): New function.
15945 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15946 (fast_tracepoint_from_trampoline_address): New function.
15947 (fast_tracepoint_collecting): Handle trampoline as part of jump
15948 pad space.
15949 (set_trampoline_buffer_space): New function.
15950 (initialize_tracepoint): Initialize new IPA variables.
15951 * target.h (struct target_ops): Add arguments to
15952 install_fast_tracepoint_jump_pad operation, add new
15953 get_min_fast_tracepoint_insn_len operation.
15954 (target_get_min_fast_tracepoint_insn_len): New.
15955 (install_fast_tracepoint_jump_pad): Add arguments.
15956 * server.h (IPA_BUFSIZ): Define.
15957 * linux-i386-ipa.c: Include extra header files.
15958 (initialize_fast_tracepoint_trampoline_buffer): New function.
15959 (initialize_low_tracepoint): Call it.
15960 * server.h (set_trampoline_buffer_space): Declare.
15961 (claim_trampoline_space): Ditto.
15962 (have_fast_tracepoint_trampoline_buffer): Ditto.
15963
1e4d1764
YQ
159642011-11-14 Yao Qi <yao@codesourcery.com>
15965
15966 * server.c (handle_query): Handle InstallInTrace for qSupported.
15967 * tracepoint.c (add_tracepoint): Sort list.
15968 (install_tracepoint, download_tracepoint): New.
15969 (cmd_qtdp): Call them to install and download tracepoints.
15970 (sort_tracepoints): Removed.
15971 (cmd_qtstart): Update.
15972
5c73ff4e
YQ
159732011-11-14 Yao Qi <yao@codesourcery.com>
15974
15975 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15976 * mem-break.h: Declare.
15977 * tracepoint.c (cmd_qtstart): Move some code to ...
15978 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15979 New.
15980 (download_tracepoints): Move some code to ...
15981 (download_tracepoint_1): ... here. New.
15982
86a30030
YQ
159832011-11-08 Yao Qi <yao@codesourcery.com>
15984
15985 * remote-utils.c (relocate_instruction): A comment fix.
15986
8d26e50c
JB
159872011-11-07 Joel Brobecker <brobecker@adacore.com>
15988
15989 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15990 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15991 dr_status_mirror and dr_control_mirror from debug_reg_state.
15992 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15993 (i386_initial_stuff): Remove use of deleted globals.
15994 (i386_get_thread_context, i386_set_thread_context,
15995 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15996 from debug_reg_state.
15997
a59306a3
YQ
159982011-11-05 Yao Qi <yao@codesourcery.com>
15999
16000 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16001 address as TPOINT's.
16002
3065dfb6
SS
160032011-11-02 Stan Shebs <stan@codesourcery.com>
16004
16005 * tracepoint.c (agent_mem_read_string): New function.
16006 (eval_agent_expr): Call it for tracenz.
16007 * server.c (handle_query): Report support for tracenz.
16008
fd0d8c7c
YQ
160092011-11-02 Yao Qi <yao@codesourcery.com>
16010
16011 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16012
609086b1
YQ
160132011-11-02 Yao Qi <yao@codesourcery.com>
16014
16015 * target.h: Fix a typo in comment.
16016
b9fd1791
PA
160172011-10-31 Pedro Alves <pedro@codesourcery.com>
16018
16019 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16020 clobber the breakpoints' shadows with fast tracepoint jumps.
16021 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16022 * target.c (write_inferior_memory): Also pass MYADDR down to
16023 check_mem_write.
16024
03583c20
UW
160252011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16026
16027 * configure.ac: Check support for personality routine.
16028 * configure: Regenerate.
16029 * config.in: Likewise.
16030 * linux-low.c: Include <sys/personality.h>.
16031 Define ADDR_NO_RANDOMIZE if necessary.
16032 (linux_create_inferior): Disable address space randomization when
16033 forking inferior, if requested.
16034 (linux_supports_disable_randomization): New function.
16035 (linux_target_ops): Install it.
16036 * server.h (disable_randomization): Declare.
16037 * server.c (disable_randomization): New global variable.
16038 (handle_general_set): Handle QDisableRandomization.
16039 (handle_query): Likewise for qSupported.
16040 (main): Support --disable-randomization and --no-disable-randomization
16041 command line arguments.
16042 * target.h (struct target_ops): Add supports_disable_randomization.
16043 (target_supports_disable_randomization): New macro.
16044
723b724b
MF
160452011-09-29 Mike Frysinger <vapier@gentoo.org>
16046
16047 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16048 ifdef check.
16049 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16050 [!PT_GETDSBT] (target_loadmap): New definition.
16051 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16052 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16053 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16054 and PT_GETDSBT to LINUX_LOADMAP.
16055 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16056 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16057
55329a5c 160582011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16059
16060 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16061 (arm_linux_hwbp_cap): New static variable.
16062 (arm_linux_get_hwbp_cap): Replace by ...
16063 (arm_linux_init_hwbp_cap): ... this new function.
16064 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16065 (arm_linux_get_hw_watchpoint_count): Likewise.
16066 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16067 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16068 (arm_prepare_to_resume): Use perror_with_name instead of error.
16069
55329a5c 160702011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16071
16072 * linux-arm-low.c: Include <signal.h>.
16073 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16074 (struct arm_linux_hwbp_cap): New data type.
16075 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16076 (struct arm_linux_hw_breakpoint): New data type.
16077 (MAX_BPTS, MAX_WPTS): Define.
16078 (struct arch_process_info, struct arch_lwp_info): New data types.
16079 (arm_linux_get_hwbp_cap): New function.
16080 (arm_linux_get_hw_breakpoint_count): Likewise.
16081 (arm_linux_get_hw_watchpoint_count): Likewise.
16082 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16083 (arm_hwbp_control_initialize): Likewise.
16084 (arm_hwbp_control_is_enabled): Likewise.
16085 (arm_hwbp_control_is_initialized): Likewise.
16086 (arm_hwbp_control_disable): Likewise.
16087 (arm_linux_hw_breakpoint_equal): Likewise.
16088 (arm_linux_hw_point_initialize): Likewise.
16089 (struct update_registers_data): New data structure.
16090 (update_registers_callback: New function.
16091 (arm_insert_point): Likewise.
16092 (arm_remove_point): Likewise.
16093 (arm_stopped_by_watchpoint): Likewise.
16094 (arm_stopped_data_address): Likewise.
16095 (arm_new_process): Likewise.
16096 (arm_new_thread): Likewise.
16097 (arm_prepare_to_resume): Likewise.
16098 (the_low_target): Register arm_insert_point, arm_remove_point,
16099 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16100 arm_new_thread, and arm_prepare_to_resume.
16101
6b9801d4
SS
161022011-09-15 Stan Shebs <stan@codesourcery.com>
16103
16104 * server.h (struct emit_ops): Add compare-goto fields.
16105 * tracepoint.c (gdb_agent_op_sizes): New table.
16106 (emit_eq_goto): New function.
16107 (emit_ne_goto): New function.
16108 (emit_lt_goto): New function.
16109 (emit_le_goto): New function.
16110 (emit_gt_goto): New function.
16111 (emit_ge_goto): New function.
16112 (is_goto_target): New function.
16113 (compile_bytecodes): Recognize special cases of compare-goto
16114 combinations and call specialized emitters for them.
16115 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16116 (amd64_emit_ne_goto): New function.
16117 (amd64_emit_lt_goto): New function.
16118 (amd64_emit_le_goto): New function.
16119 (amd64_emit_gt_goto): New function.
16120 (amd64_emit_ge_goto): New function.
16121 (amd64_emit_ops): Add the new functions.
16122 (i386_emit_eq_goto): New function.
16123 (i386_emit_ne_goto): New function.
16124 (i386_emit_lt_goto): New function.
16125 (i386_emit_le_goto): New function.
16126 (i386_emit_gt_goto): New function.
16127 (i386_emit_ge_goto): New function.
16128 (i386_emit_ops): Add the new functions.
16129
bf15cbda
SS
161302011-09-08 Stan Shebs <stan@codesourcery.com>
16131
16132 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16133 (i386_emit_epilogue): Restore %ebx.
16134
943ca1dd
JZ
161352011-08-31 Jie Zhang <jzhang918@gmail.com>
16136
16137 * server.c (step_thread): Remove definition.
16138 (process_serial_event): Don't handle Hs.
16139 * server.h (step_thread): Remove declaration.
16140 * target.c (set_desired_inferior): Remove use of step_thread.
16141
e3deef73
LM
161422011-08-24 Luis Machado <lgustavo@codesourcery.com>
16143
16144 * linux-low.c: Include linux-procfs.h.
16145 (linux_attach_lwp_1): Update comments.
16146 (linux_attach): Scan for existing threads when attaching to a
16147 process that is the tgid.
16148 * Makefile.in: Update dependencies.
16149
13da1c97
LM
161502011-08-24 Luis Machado <lgustavo@codesourcery.com>
16151
16152 * configure.srv: Add linux-procfs.o dependencies.
16153
881127c9
YQ
161542011-08-14 Yao Qi <yao@codesourcery.com>
16155
16156 * target.h (struct target_ops): Fix indent.
16157 * win32-low.c (win32_target_ops): Fix comment.
16158
58dbd541
YQ
161592011-08-14 Andrew Jenner <andrew@codesourcery.com>
16160 Yao Qi <yao@codesourcery.com>
16161
16162 * Makefile.in (clean): Remove tic6x-*.c files.
16163 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16164 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16165 (tic6x-c64xp-linux.c): Likewise.
16166 * configure.srv: Add support for tic6x-*-uclinux.
16167 * linux-tic6x-low.c: New.
16168 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16169
78d85199
YQ
161702011-08-14 Andrew Stubbs <ams@codesourcery.com>
16171 Yao Qi <yao@codesourcery.com>
16172
16173 * target.h (struct target_ops): Add read_loadmap.
16174 * linux-low.c (struct target_loadseg): New type.
16175 (struct target_loadmap): New type.
16176 (linux_read_loadmap): New function.
16177 (linux_target_ops): Add linux_read_loadmap.
16178 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16179 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16180 to NULL.
78d85199 16181
a959a88d
EZ
161822011-08-05 Eli Zaretskii <eliz@gnu.org>
16183
16184 * win32-low.c: Include <stdint.h>.
16185
1ced966e
PA
161862011-07-22 Pedro Alves <pedro@codesourcery.com>
16187
16188 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16189 to the inferior here.
16190 (i386_remove_aligned_watchpoint): Ditto.
16191 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16192 fit part of the watchpoint in the debug registers.
16193 (i386_update_inferior_debug_regs): New.
16194 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16195 registers, and only update the inferior on success.
16196 (i386_low_remove_watchpoint): Ditto.
16197
d26e3629
KY
161982011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16199
16200 * linux-low.c (compare_ints, unique, list_threads, show_process,
16201 linux_core_of_thread): Delete.
16202 (linux_target_ops): Change linux_core_of_thread to
16203 linux_common_core_of_thread.
16204 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16205 * utils.c (malloc_failure): Change type of argument.
16206 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16207 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16208 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16209 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16210 (IPA_OBJS): Add common-utils-ipa.o.
16211 (ptid_h, linux_osdata_h): New macros.
16212 (server_h): Add common/common-utils.h, common/xml-utils.h,
16213 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16214 common/ptid.h.
16215 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16216 ptid.o, buffer.o): New rules.
16217 (linux-low.o): Add common/linux-osdata.h as a dependency.
16218 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16219 * configure.ac: Add AC_HEADER_DIRENT check.
16220 * config.in: Regenerate.
16221 * configure: Regenerate.
16222 * remote-utils.c (xml_escape_text): Delete.
16223 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16224 buffer_xml_printf): Move to common/buffer.c.
16225 * server.c (main): Remove call to initialize_inferiors.
16226 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16227 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16228 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16229 internal_error, gdb_assert, gdb_assert_fail): Delete.
16230 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16231 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16232 common/buffer.h.
16233 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16234 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16235 initialize_inferiors): Delete.
16236
2275a1a7
PA
162372011-07-20 Pedro Alves <pedro@codesourcery.com>
16238
16239 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16240 symbol error.
16241
0a5b1e09
PA
162422011-05-31 Pedro Alves <pedro@codesourcery.com>
16243
16244 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16245 assertion.
16246 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16247
6938fd34
YQ
162482011-05-26 Yao Qi <yao@codesourcery.com>
16249
16250 * Makefile.in (thread-db.o): Track dependence to
16251 common/gdb_thread_db.h.
16252 * thread-db.c: include gdb_thread_db.h from right place.
16253
b481f9e0
TT
162542011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16255
16256 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16257 __FILE__ and __LINE__ to internal_error.
16258
98a5dd13
DE
162592011-05-13 Doug Evans <dje@google.com>
16260
16261 * thread-db.c (try_thread_db_load_from_sdir): New function.
16262 (try_thread_db_load_from_dir): New function.
16263 (thread_db_load_search): Handle $sdir, ignore $pdir.
16264 Remove trying of system directories if search of
16265 libthread-db-search-path fails, that is now done via $sdir.
16266
d248b706
KY
162672011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16268
16269 * server.c (handle_query): Add EnableDisableTracepoints to the list
16270 of supported features.
43aaf8b6 16271 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16272 tracepoints.
43aaf8b6
PA
16273 (cmd_qtenable_disable): New.
16274 (cmd_qtstart): Install tracepoints even if disabled.
16275 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16276 receiving a QTEnable or QTDisable packet.
16277 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16278 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16279 tracepoints.
16280 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16281
84e578fb
DE
162822011-05-10 Doug Evans <dje@google.com>
16283
16284 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16285
71f55dd8
DE
162862011-05-04 Doug Evans <dje@google.com>
16287
16288 * linux-low.c (linux_join): Skip process lookup.
16289 * spu-low.c (spu_join): Ditto.
16290 * server.c (join_inferiors_callback): Delete.
16291 (process_serial_event): For 'D' packet (detach) call join_inferior
16292 directly.
16293
4d393d60
JM
162942011-05-04 Joseph Myers <joseph@codesourcery.com>
16295
16296 * README: Don't mention xscale*-*-linux*.
16297 * configure.srv (xscale*-*-linux*): Don't handle target.
16298
b00ad6ff
NF
162992011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16300
16301 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16302 casting pointers.
16303 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16304 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16305 (i386_emit_void_call_2): Likewise.
16306
af96c192
YQ
163072011-04-26 Yao Qi <yao@codesourcery.com>
16308
43aaf8b6
PA
16309 * linux-low.c: Move common macros to linux-ptrace.h.
16310 Include linux-ptrace.h.
af96c192
YQ
16311 * Makefile.in (linux_ptrace_h): New.
16312 (linux-low.o): Depends on linux-ptrace.h.
16313
03f2bd59
JK
163142011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16315
16316 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16317 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16318 (remote_prepare): New function with most of the TCP code from ...
16319 (remote_open): ... here. Detect PORT here unconditionally. Move also
16320 setting transport_is_reliable.
16321 * server.c (run_once): New variable.
16322 (gdbserver_usage): Document it.
16323 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16324 the first run if RUN_ONCE.
16325 * server.h (run_once, remote_prepare): New declarations.
16326
7a9dd1b2
TT
163272011-04-19 Tom Tromey <tromey@redhat.com>
16328
16329 * win32-low.c (handle_load_dll): Remove duplicate "the".
16330
81239425
PM
163312011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16332
16333 Remove support for old Cygwin 1.5 versions.
16334 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16335 function to avoid warning.
16336 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16337 warning.
16338
9e0627f1
PM
163392011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16340
16341 * gdbserver/server.h (Macro _): Define it if not available.
16342
588eebee
MS
163432011-03-14 Michael Snyder <msnyder@vmware.com>
16344
348af9f7 16345 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16346
43f70d4c
JB
163472011-03-10 Joel Brobecker <brobecker@adacore.com>
16348
16349 * Makefile.in (maintainer-clean realclean distclean): Remove
16350 "make ... subdir_do" command.
16351
348af9f7
MS
163522011-03-10 Michael Snyder <msnyder@vmware.com>
16353
16354 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16355
16356 * server.c (handle_v_run): Free alloced buffer on early return.
16357
e637a4f5
YQ
163582011-03-09 Yao Qi <yao@codesourcery.com>
16359
16360 Revert:
16361 2011-03-04 Yao Qi <yao@codesourcery.com>
16362
16363 * Makefile.in: Remove GNU make feature --directory.
16364
16365 2011-03-05 Yao Qi <yao@codesourcery.com>
16366
16367 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16368 (subdir_do): New make target. Copied from gdb/Makefile.
16369 (maintainer-clean, realclean, distclean, clean): Call corresponding
16370 make targets in common/Makefile.
16371
16372 2011-02-11 Yao Qi <yao@codesourcery.com>
16373
16374 * configure.ac: Call AC_PROG_RANLIB.
16375 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16376 * configure: Regenerate.
16377
e6edda56
JK
163782011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16379
16380 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16381
e5141119
JB
163822011-03-06 Yao Qi <yao@codesourcery.com>
16383
16384 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16385
64794aa4
JB
163862011-03-05 Yao Qi <yao@codesourcery.com>
16387
16388 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16389 (subdir_do): New make target. Copied from gdb/Makefile.
16390 (maintainer-clean, realclean, distclean, clean): Call corresponding
16391 make targets in common/Makefile.
16392
7a762829
YQ
163932011-03-04 Yao Qi <yao@codesourcery.com>
16394
16395 * Makefile.in: Remove GNU make feature --directory.
16396
348af9f7
MS
163972011-03-04 Michael Snyder <msnyder@vmware.com>
16398
16399 * server.c (queue_stop_reply): Call xmalloc not malloc.
16400
164012011-03-02 Michael Snyder <msnyder@vmware.com>
16402
16403 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16404
9f72fee2
MS
164052011-02-28 Michael Snyder <msnyder@vmware.com>
16406
588eebee
MS
16407 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16408 (cmd_qtframe): Ditto.
16409 (cmd_qtbuffer): Ditto.
16410 (cmd_bigqtbuffer): Ditto.
16411
9f72fee2
MS
16412 * utils.c (decimal2str): Initialize 'width' to nine, then
16413 don't mess with it.
16414
8040bd49
UW
164152011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16416
16417 * hostio.c (require_data): Free *data, not data.
16418
7e52cbd0
JK
164192011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16420
16421 * hostio.c (require_data): Use free, not xfree.
16422
9130f83e
MS
164232011-02-27 Michael Snyder <msnyder@vmware.com>
16424
4b812f4e
MS
16425 * server.c (handle_query): Discard unused value.
16426
9130f83e
MS
16427 * hostio.c (require_data): Free malloc memory before returning
16428 error.
16429
69d37113
MS
164302011-02-26 Michael Snyder <msnyder@vmware.com>
16431
16432 * linux-low.c (list_threads): Call closedir for dirent.
16433
35f5825a
MS
164342011-02-27 Michael Snyder <msnyder@vmware.com>
16435
2a589cef
MS
16436 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16437 a case statement falls through.
16438
0adea5f7
MS
16439 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16440
35f5825a
MS
16441 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16442 in comparison.
16443
238f1c74
MS
164442011-02-26 Michael Snyder <msnyder@vmware.com>
16445
16446 * utils.c (decimal2str): Eliminate dead code and dead param.
16447 (pulongest): Drop dead param from call to decimal2str.
16448 (plongest): Ditto.
16449
633ff500
JB
164502011-02-24 Joel Brobecker <brobecker@adacore.com>
16451
16452 Revert the following patch (not approved yet):
16453 2011-02-21 Hui Zhu <teawater@gmail.com>
16454 * tracepoint.c (tp_printf): New function.
16455 (eval_agent_expr): Handle gdb_agent_op_printf.
16456
f9c6ff72
HZ
164572011-02-21 Hui Zhu <teawater@gmail.com>
16458
16459 * tracepoint.c (tp_printf): New function.
16460 (eval_agent_expr): Handle gdb_agent_op_printf.
16461
94d5e490
TT
164622011-02-18 Tom Tromey <tromey@redhat.com>
16463
16464 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16465 (tracepoint.o): Likewise.
16466 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16467 (gdb_agent_op_names): Likewise.
16468
c7f96d2b
TT
164692011-02-18 Tom Tromey <tromey@redhat.com>
16470
16471 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16472 gdb_agent_op_rot>: New constants.
16473 (gdb_agent_op_names): Add pick and roll.
16474 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16475 cases.
16476
0feedb2c
JK
164772011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16478
16479 * aclocal.m4: Regenerated with aclocal-1.11.1.
16480
b3b9301e
PA
164812011-02-14 Pedro Alves <pedro@codesourcery.com>
16482
16483 * server.c (handle_qxfer_traceframe_info): New.
16484 (qxfer_packets): Register "traceframe-info".
16485 (handle_query): Report support for qXfer:traceframe-info:read+.
16486 * tracepoint.c (match_blocktype): New.
16487 (traceframe_find_block_type): Rename to ...
16488 (traceframe_walk_blocks): ... this. Add callback filter argument,
16489 and use it.
16490 (traceframe_find_block_type): New, reimplemented on top of
16491 traceframe_walk_blocks.
16492 (build_traceframe_info_xml): New.
16493 (traceframe_read_info): New.
16494 * server.h (traceframe_read_info): Declare.
16495
4f3e6fb7
YQ
164962011-02-11 Yao Qi <yao@codesourcery.com>
16497
16498 * configure.ac: Call AC_PROG_RANLIB.
16499 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16500 * configure: Regenerate.
16501
764880b7
PA
165022011-02-07 Pedro Alves <pedro@codesourcery.com>
16503
16504 * server.c (gdb_read_memory): Change return semantics to allow
16505 partial transfers.
16506 (handle_search_memory_1): Adjust.
16507 (process_serial_event) <'m' packet>: Handle partial transfers.
16508 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16509
1c79eb8a
PA
165102011-01-28 Pedro Alves <pedro@codesourcery.com>
16511
16512 * regcache.c (init_register_cache): Initialize
16513 regcache->register_status.
16514 (free_register_cache): Release regcache->register_status.
16515 (regcache_cpy): Copy register_status.
16516 (registers_to_string): Print 'x's for unavailable registers.
16517 (supply_register): Mark the register's status valid or
16518 unavailable, depending on whether a buffer was passed in or not.
16519 (supply_register_zeroed): New.
16520 (supply_regblock): Mark the registers' status valid or
16521 unavailable, depending on whether a buffer was passed in or not.
16522 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16523 (struct regcache): New `register_status' field.
16524 (supply_register_zeroed): Declare.
16525 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16526 supply_register_zeroed, rather than passing a NULL buffer to
16527 supply_register.
16528 * tracepoint.c (fetch_traceframe_registers): Update comment.
16529
85724a0e
PA
165302011-01-28 Pedro Alves <pedro@codesourcery.com>
16531
16532 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16533 buffer explicit.
16534
d08aafef
PA
165352011-01-25 Pedro Alves <pedro@codesourcery.com>
16536
16537 * server.h (decode_xfer_write): Change prototype.
16538 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16539 and don't extract the annex here.
16540 * server.c (decode_xfer_read): Remove `annex' parameter,
16541 and don't extract the annex here.
16542 (decode_xfer): New.
16543 (struct qxfer): New.
16544 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16545 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16546 (handle_qxfer_statictrace): New functions, abstracted out from
16547 handle_query, and made to use the struct qxfer interface.
16548 (handle_threads_qxfer_proper): Rename to ...
16549 (handle_qxfer_threads_proper): ... this.
16550 (handle_threads_qxfer): Rename to ...
16551 (handle_qxfer_threads): ... this. Adjust.
16552 (qxfer_packets): New array.
16553 (handle_qxfer): New function.
16554 (handle_query): Use handle_qxfer.
16555
493e2a69
MS
165562011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16557
16558 * gdbreplay.c: Shorten lines of >= 80 columns.
16559 * linux-low.c: Ditto.
16560 * linux-ppc-low.c: Ditto.
16561 * linux-s390-low.c: Ditto.
16562 * linux-sparc-low.c: Ditto.
16563 * linux-x86-low.c: Ditto.
16564 * linux-xtensa-low.c: Ditto.
16565 * mem-break.c: Ditto.
16566 * nto-low.c: Ditto.
16567 * regcache.h: Ditto.
16568 * remote-utils.c: Ditto.
16569 * server.c: Ditto.
16570 * server.h: Ditto.
16571 * thread-db.c: Ditto.
16572 * tracepoint.c: Ditto.
16573 * utils.c: Ditto.
16574 * win32-low.h: Ditto.
16575
44944448
JB
165762011-01-05 Joel Brobecker <brobecker@adacore.com>
16577
16578 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16579 update.
16580
71ce852c
JB
165812011-01-01 Joel Brobecker <brobecker@adacore.com>
16582
16583 * server.c (gdbserver_version): Update copyright year in version
16584 output.
16585 * gdbreplay.c (gdbreplay_version): Ditto.
16586
eb826dc6
MF
165872010-12-29 Jie Zhang <jie.zhang@analog.com>
16588
16589 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16590 * linux-bfin-low.c: New file.
16591 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16592 PT_DATA_ADDR for BFIN targets.
16593 * Makefile.in (SFILES): Add linux-bfin-low.c.
16594 (clean): Remove reg-bfin.c.
16595 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16596 * README: Mention supported Blackfin targets.
16597
39ab222a
MF
165982010-12-23 Mike Frysinger <vapier@gentoo.org>
16599
16600 * .gitignore: New file.
16601
a1f2ce7d
MF
166022010-11-16 Mike Frysinger <vapier@gentoo.org>
16603
16604 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16605
f474844c
JZ
166062010-10-22 Jie Zhang <jie@codesourcery.com>
16607
16608 * Makefile.in: Add FLAGS_TO_PASS variable.
16609 (install): Remove dependency of install-only and recursively
16610 invoke make for install-only.
16611
f1048712
DE
166122010-10-04 Doug Evans <dje@google.com>
16613
16614 * Makefile.in (uninstall): Use $(DESTDIR).
16615
b53a1623
PA
166162010-09-24 Pedro Alves <pedro@codesourcery.com>
16617
e6ee044d
PA
16618 PR gdb/11842
16619
b53a1623
PA
16620 * linux-x86-low.c (compat_siginfo_from_siginfo)
16621 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16622 si_code is < 0. Check for si_code == SI_TIMER before checking for
16623 si_code < 0.
16624
fa1bd1e4
JB
166252010-09-13 Joel Brobecker <brobecker@adacore.com>
16626
16627 * lynx-i386-low.c: New file.
16628 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16629
47fac8f8
JB
166302010-09-13 Joel Brobecker <brobecker@adacore.com>
16631
16632 * lynx-low.c (ptrace_request_to_str): Remove handling for
16633 request values that have been removed in LynxOS 5.x.
16634
1adfc54d
JB
166352010-09-13 Joel Brobecker <brobecker@adacore.com>
16636
16637 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16638 <ptrace.h>
16639
c2a66c29
NS
166402010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16641
16642 * configure.ac: Add --enable-inprocess-agent option.
16643 * configure: Rebuilt.
16644
32fcada3
YQ
166452010-09-06 Yao Qi <yao@codesourcery.com>
16646
16647 * linux-low.c (linux_kill): Remove unused variable.
16648 (linux_stabilize_threads): Likewise.
16649 * server.c (start_inferior): Likewise.
16650 (queue_stop_reply_callback): Likewise.
16651 * tracepoint.c (do_action_at_tracepoint): Likewise.
16652
0cccb683
YQ
166532010-09-06 Yao Qi <yao@codesourcery.com>
16654
16655 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16656 on return.
16657
423ec54c
JK
166582010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16659
16660 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16661
12ac6819
PA
166622010-09-06 Pedro Alves <pedro@codesourcery.com>
16663
16664 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16665 "$(IPA_DEPFILES)".
16666
8ed54b31
JB
166672010-09-01 Joel Brobecker <brobecker@adacore.com>
16668
16669 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16670 gdbserver/lynx-ppc-low.c: New files.
16671 * Makefile.in (lynx_low_h): New variable.
16672 (lynx-low.o, lynx-ppc-low.o): New rules.
16673 * configure.ac: On LynxOS, link with -lnetinet.
16674 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16675 * configure: regenerate.
16676
bb0116a4
JB
166772010-09-01 Joel Brobecker <brobecker@adacore.com>
16678
16679 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16680 * configure.ac: Add check for vasprintf and vsnprintf.
16681 * configure, config.in: Regenerate.
16682 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16683
a778ab81 166842010-09-01 Joel Brobecker <brobecker@adacore.com>
16685
16686 * gdbreplay.c: Move include of alloca.h up, next to include of
16687 malloc.h.
16688 * server.h: Add include of malloc.h.
16689 * mem-break.c: Remove include of malloc.h.
16690 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16691
8b034a19 166922010-09-01 Joel Brobecker <brobecker@adacore.com>
16693
16694 * Makefile.in (memmem.o): Build with -Wno-error.
16695
166962010-09-01 Joel Brobecker <brobecker@adacore.com>
16697
16698 * utils.c (xsnprintf): Make non-static.
16699 * server.h: Add xsnprintf declaration.
16700 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16701 replace calls to snprintf by calls to xsnprintf throughout.
16702
167032010-09-01 Joel Brobecker <brobecker@adacore.com>
16704
16705 * configure.ac: Add configure check for alloca.
16706 * configure, config.in: Regenerate.
16707 * server.h: Include alloca.h if it exists.
16708 * gdbreplay.c: Include alloca.h if it exists.
16709
1a981360
PA
167102010-08-28 Pedro Alves <pedro@codesourcery.com>
16711
16712 * linux-low.c (__SIGRTMIN): Define if not already defined.
16713 (linux_create_inferior): Check for __ANDROID__ rather than
16714 __SIGRTMIN.
16715 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16716 are already deferred.
16717 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16718 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16719 stopped and already has a pending signal to report.
16720 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16721 a pending signal to report or is moving out of a jump pad.
16722 (linux_init_signals): Check for __ANDROID__ rather than
16723 __SIGRTMIN.
16724
b4d51a55
PA
167252010-08-28 Pedro Alves <pedro@codesourcery.com>
16726
16727 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16728 debug_threads check. Avoid a linear search when not doing debug
16729 output.
16730
ec48365d
PA
167312010-08-27 Pedro Alves <pedro@codesourcery.com>
16732
16733 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16734 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16735 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16736 (process_event): Change local fd's type to gdb_fildes_t.
16737 (create_file_handler): Adjust prototype.
16738 (delete_file_handler): Adjust prototype.
16739 (handle_file_event): Adjust prototype. Use pfildes.
16740 (create_file_event): Adjsut prototype.
16741 * remote-utils.c (remote_desc, listen_desc): Change type to
16742 gdb_fildes_t.
16743 * server.h: New gdb_fildes_t typedef.
16744 [USE_WIN32API]: Include winsock2.h.
16745 (delete_file_handler, add_file_handler): Adjust prototypes.
16746 (pfildes): Declare.
16747 * utils.c (pfildes): New.
16748
854d88f0
PA
167492010-08-27 Pedro Alves <pedro@codesourcery.com>
16750
16751 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16752 * configure: Regenerate.
16753
0146f85b
PA
167542010-08-27 Pedro Alves <pedro@codesourcery.com>
16755
16756 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16757 (linux_done_accessing_memory): ... this.
16758 (linux_target_ops): Adjust.
16759 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16760 * nto-low.c (nto_target_ops): Adjust comment.
16761 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16762 * spu-low.c (spu_target_ops): Adjust comment.
16763 * target.h (target_ops): Rename unprepare_to_access_memory field
16764 to done_accessing_memory.
16765 (unprepare_to_access_memory): Rename to ...
16766 (done_accessing_memory): ... this.
16767
90d74c30
PA
167682010-08-26 Pedro Alves <pedro@codesourcery.com>
16769
16770 * linux-low.c (linux_prepare_to_access_memory): New.
16771 (linux_unprepare_to_access_memory): New.
16772 (linux_target_ops): Install them.
16773 * server.c (read_memory): Rename to ...
16774 (gdb_read_memory): ... this. Use
16775 prepare_to_access_memory/prepare_to_access_memory.
16776 (write_memory): Rename to ...
16777 (gdb_write_memory): ... this. Use
16778 prepare_to_access_memory/prepare_to_access_memory.
16779 (handle_search_memory_1): Adjust.
16780 (process_serial_event): Adjust.
16781 * target.h (struct target_ops): New fields
16782 prepare_to_access_memory and unprepare_to_access_memory.
16783 (prepare_to_access_memory, unprepare_to_access_memory): New.
16784 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16785 prepare_to_access_memory/prepare_to_access_memory.
16786 * nto-low.c (nto_target_ops): Adjust.
16787 * spu-low.c (spu_target_ops): Adjust.
16788 * win32-low.c (win32_target_ops): Adjust.
16789
fd467969
PA
167902010-08-26 Pedro Alves <pedro@codesourcery.com>
16791
16792 * Makefile.in (WARN_CFLAGS): Get it from configure.
16793 (WERROR_CFLAGS): New.
16794 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16795 * configure.ac: Introduce --enable-werror, which adds -Werror to
16796 the compiler command line. Enabled by default. Disable with
16797 --disable-werror. Add -Wdeclaration-after-statement
16798 Wpointer-arith and -Wformat-nonliteral to warning flags.
16799 * configure: Regenerate.
16800
331e2f5f
PA
168012010-08-26 Pedro Alves <pedro@codesourcery.com>
16802
16803 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16804
e581f2b4
PA
168052010-08-26 Pedro Alves <pedro@codesourcery.com>
16806
16807 * gdbreplay.c (remote_error): New.
16808 (gdbchar): New.
16809 (expect): Use gdbchar. Check for error reading from GDB.
16810 Clarify sync error output.
16811 (play): Check for errors writing to GDB.
16812 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16813 * remote-utils.c (getpkt): Check for errors writing to the remote
16814 descriptor.
16815
3c11dd79
PA
168162010-08-25 Pedro Alves <pedro@codesourcery.com>
16817
16818 * linux-low.c (linux_wait_1): Move non-debugging code out of
16819 `debug_threads' control.
16820
d20a8ad9
PA
168212010-08-25 Pedro Alves <pedro@codesourcery.com>
16822
16823 * linux-low.c (linux_wait_1): Don't set last_status here.
16824 * server.c (push_event, queue_stop_reply_callback): Assert we're
16825 not pushing a TARGET_WAITKIND_IGNORE event.
16826 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16827 (myresume, handle_target_event): Set the thread's last_resume_kind
16828 and last_status from the target returned status.
16829
964e4306
PA
168302010-08-25 Pedro Alves <pedro@codesourcery.com>
16831
16832 PR threads/10729
16833
16834 * linux-x86-low.c (update_debug_registers_callback): New.
16835 (i386_dr_low_set_addr): Use it.
16836 (i386_dr_low_get_addr): New.
16837 (i386_dr_low_set_control): Use update_debug_registers_callback.
16838 (i386_dr_low_get_control): New.
16839 (i386_dr_low_get_status): Adjust.
16840 * linux-low.c (linux_stop_lwp): New.
16841 * linux-low.h (linux_stop_lwp): Declare.
16842
16843 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16844 argument instead of a i386_debug_reg_state.
16845 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16846 a i386_debug_reg_state.
16847 (i386_insert_aligned_watchpoint): Adjust.
16848 (i386_remove_aligned_watchpoint): Adjust.
16849 (i386_low_stopped_data_address): Read the debug registers from the
16850 inferior instead of from the mirrors.
16851 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16852 (i386_dr_low_get_addr): Declare.
16853 (i386_dr_low_get_control): Declare.
16854 (i386_dr_low_get_status): Change prototype.
16855
16856 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16857 (i386_dr_low_get_addr): New.
16858 (i386_dr_low_get_control): New.
16859 (i386_dr_low_get_status): Adjust prototype. Return
16860 dr_status_mirror.
16861 (i386_initial_stuff): Clear dr_status_mirror and
16862 dr_control_mirror.
16863 (i386_get_thread_context): Adjust.
16864 (i386_set_thread_context): Adjust.
16865 (i386_thread_added): Adjust.
16866
5f21a75b
PA
168672010-08-24 Pedro Alves <pedro@codesourcery.com>
16868
16869 * linux-low.h (linux_thread_area): Delete declaration.
16870
3e4c1235
TS
168712010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16872
16873 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16874 after its termination.
16875
1971b033
PA
168762010-08-09 Pedro Alves <pedro@codesourcery.com>
16877
16878 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16879 (gdb_wants_all_stopped): Delete.
16880 (linux_wait_1): Don't call them.
16881 * server.c (handle_v_cont): Tag all threads as want-stopped.
16882 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16883 stopped as "client-wants-stopped".
16884
310444ac
PA
168852010-07-31 Pedro Alves <pedro@codesourcery.com>
16886
16887 * Makefile.in (signals_h): New.
16888 (server_h): Depend on it.
16889 (server.o): Don't depend on $(signals_def).
16890 (signals.o): Depend on $(signals_def).
16891
a19cae16
JK
168922010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16893
16894 * Makefile.in (signals_def): New.
16895 (server_h): Append include/gdb/signals.h and signals_def.
16896 (server.o): Append signals_def.
16897
30d50328
JK
168982010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16899
16900 * server.c (handle_target_event): Use target_signal_to_host for
16901 resume_info.sig initialization.
16902 * target.h (struct thread_resume) <sig>: New comment.
16903
5c3216e2
OS
169042010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16905
c6f46ca0
OS
16906 * server.c (handle_query): strcpy() the returned string from paddress()
16907 instead of sprintf().
5c3216e2
OS
16908 * utils.c (paddress): Return phex_nz().
16909
6bd31874
JB
169102010-07-07 Joel Brobecker <brobecker@adacore.com>
16911
16912 * server.c (handle_v_cont): Call mourn_inferior if process
16913 just exited.
16914 (myresume): Likewise.
16915
0fb4aa4b
PA
169162010-07-01 Pedro Alves <pedro@codesourcery.com>
16917
16918 Static tracepoints, and integration with UST.
16919
16920 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16921 * mem-break.c (uninsert_all_breakpoints)
16922 (reinsert_all_breakpoints): New.
16923 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16924 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16925 (gdb_agent_ust_loaded, helper_thread_id)
16926 (gdb_agent_helper_thread_id): New macros.
16927 (struct ipa_sym_addresses): Add addr_ust_loaded,
16928 addr_helper_thread_id, addr_cmd_buf.
16929 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16930 (in_process_agent_loaded_ust): New.
16931 (write_e_ust_not_loaded): New.
16932 (maybe_write_ipa_ust_not_loaded): New.
16933 (struct collect_static_trace_data_action): New.
16934 (enum tracepoint_type) <static_tracepoint>: New.
16935 (struct tracepoint) <handle>: Mention static tracepoints.
16936 (struct static_tracepoint_ctx): New.
16937 (CMD_BUF_SIZE): New.
16938 (add_tracepoint_action): Handle static tracepoint actions.
16939 (unprobe_marker_at): New.
16940 (clear_installed_tracepoints): Handle static tracepoints.
16941 (cmd_qtdp): Handle static tracepoints.
16942 (probe_marker_at): New.
16943 (cmd_qtstart): Handle static tracepoints.
16944 (response_tracepoint): Handle static tracepoints.
16945 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16946 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16947 (get_context_regcache): Handle static tracepoints.
16948 (do_action_at_tracepoint): Handle static tracepoint actions.
16949 (traceframe_find_block_type): Handle static trace data blocks.
16950 (traceframe_read_sdata): New.
16951 (download_tracepoints): Download static tracepoint actions.
16952 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16953 (GDB_PROBE_NAME): New.
16954 (ust_ops): New.
16955 (GET_UST_SYM): New.
16956 (USTF): New.
16957 (dlsym_ust): New.
16958 (ust_marker_to_static_tracepoint): New.
16959 (gdb_probe): New.
16960 (collect_ust_data_at_tracepoint): New.
16961 (gdb_ust_probe): New.
16962 (UNIX_PATH_MAX, SOCK_DIR): New.
16963 (gdb_ust_connect_sync_socket): New.
16964 (resume_thread, stop_thread): New.
16965 (run_inferior_command): New.
16966 (init_named_socket): New.
16967 (gdb_ust_socket_init): New.
16968 (cstr_to_hexstr): New.
16969 (next_st): New.
16970 (first_marker, next_marker): New.
16971 (response_ust_marker): New.
16972 (cmd_qtfstm, cmd_qtsstm): New.
16973 (unprobe_marker_at, probe_marker_at): New.
16974 (cmd_qtstmat, gdb_ust_thread): New.
16975 (gdb_ust_init): New.
16976 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16977 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16978 (ST_REGENTRY): New.
16979 (x86_64_st_collect_regmap): New.
16980 (X86_64_NUM_ST_COLLECT_GREGS): New.
16981 (AMD64_RIP_REGNUM): New.
16982 (supply_static_tracepoint_registers): New.
16983 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16984 (ST_REGENTRY): New.
16985 (i386_st_collect_regmap): New.
16986 (i386_NUM_ST_COLLECT_GREGS): New.
16987 (supply_static_tracepoint_registers): New.
16988 * server.c (handle_query): Handle qXfer:statictrace:read.
16989 <qSupported>: Report support for StaticTracepoints, and
16990 qXfer:statictrace:read features.
16991 * server.h (traceframe_read_sdata)
16992 (supply_static_tracepoint_registers): Declare.
16993 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16994 (unpack_varlen_hex): Include in IPA build.
16995 * Makefile.in (ustlibs, ustinc): New.
16996 (IPA_OBJS): Add remote-utils-ipa.o.
16997 ($(IPA_LIB)): Link -ldl and -lpthread.
16998 (UST_CFLAGS): New.
16999 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17000 * config.in, configure: Regenerate.
17001
9e4344e5
PA
170022010-06-20 Ian Lance Taylor <iant@google.com>
17003 Pedro Alves <pedro@codesourcery.com>
17004
17005 * linux-x86-low.c (always_true): Delete.
17006 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17007 trying to fool the compiler with always_true.
17008
c6beb2cb
PA
170092010-06-20 Pedro Alves <pedro@codesourcery.com>
17010
17011 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17012 conditions in gdbserver.
17013
d2ed6730
UW
170142010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17015
17016 * spu-low.c (spu_read_memory): Wrap around local store limit.
17017 (spu_write_memory): Likewise.
17018
4e29fb54
PA
170192010-06-15 Pedro Alves <pedro@codesourcery.com>
17020
17021 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17022 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17023 LONGEST uses.
17024 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17025 uses.
17026 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17027 uses with LONGEST uses.
17028
6a271cae
PA
170292010-06-14 Stan Shebs <stan@codesourcery.com>
17030 Pedro Alves <pedro@codesourcery.com>
17031
17032 Bytecode compiler.
17033
17034 * linux-x86-low.c: Include limits.h.
17035 (add_insns): New.
17036 (always_true): New.
17037 (EMIT_ASM): New.
17038 (EMIT_ASM32): New.
17039 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17040 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17041 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17042 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17043 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17044 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17045 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17046 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17047 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17048 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17049 (amd64_emit_void_call_2): New.
17050 (amd64_emit_ops): New.
17051 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17052 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17053 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17054 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17055 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17056 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17057 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17058 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17059 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17060 (i386_emit_stack_adjust, i386_emit_int_call_1)
17061 (i386_emit_void_call_2): New.
17062 (i386_emit_ops): New.
17063 (x86_emit_ops): New.
17064 (the_low_target): Install x86_emit_ops.
17065 * server.h (struct emit_ops): New.
17066 (get_raw_reg_func_addr): Declare.
17067 (current_insn_ptr, emit_error): Declare.
17068 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17069 (set_trace_state_variable_value): New defines.
17070 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17071 addr_get_trace_state_variable_value and
17072 addr_set_trace_state_variable_value.
17073 (symbol_list): New fields for get_raw_reg,
17074 get_trace_state_variable_value and set_trace_state_variable_value.
17075 (condfn): New typedef.
17076 (struct tracepoint): New field `compiled_cond'.
17077 (do_action_at_tracepoint): Clear compiled_cond.
17078 (get_trace_state_variable_value, set_trace_state_variable_value):
17079 Export in the IPA.
17080 (condition_true_at_tracepoint): If there's a compiled condition,
17081 run that.
17082 (current_insn_ptr, emit_error): New globals.
17083 (struct bytecode_address): New.
17084 (get_raw_reg_func_addr): New.
17085 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17086 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17087 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17088 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17089 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17090 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17091 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17092 (compile_tracepoint_condition, compile_bytecodes): New.
17093 * target.h (emit_ops): Forward declare.
17094 (struct target_ops): New field emit_ops.
17095 (target_emit_ops): New.
17096 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17097 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17098 * linux-low.c (linux_emit_ops): New.
17099 (linux_target_ops): Install it.
17100 * linux-low.h (struct linux_target_ops): New field emit_ops.
17101
92b72907
UW
171022010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17103
17104 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17105 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17106
fa593d66
PA
171072010-06-01 Pedro Alves <pedro@codesourcery.com>
17108 Stan Shebs <stan@codesourcery.com>
17109
17110 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17111 (all): Depend on $(extra_libraries).
17112 (install-only): Install the IPA.
17113 (IPA_OBJS, IPA_LIB): New.
17114 (clean): Remove the IPA lib.
17115 (IPAGENT_CFLAGS): New.
17116 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17117 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17118 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17119 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17120 * configure.ac: Check for atomic builtins support in the compiler.
17121 (IPA_DEPFILES, extra_libraries): Define.
17122 * configure.srv (ipa_obj): Add description.
17123 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17124 (i[34567]86-*-linux*): Set ipa_obj.
17125 (x86_64-*-linux*): Set ipa_obj.
17126 * linux-low.c (stabilizing_threads): New.
17127 (supports_fast_tracepoints): New.
17128 (linux_detach): Stabilize threads before detaching.
17129 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17130 the lwp is either not stabilizing, or is moving out of a jump pad.
17131 (linux_fast_tracepoint_collecting): New.
17132 (maybe_move_out_of_jump_pad): New.
17133 (enqueue_one_deferred_signal): New.
17134 (dequeue_one_deferred_signal): New.
17135 (linux_wait_for_event_1): If moving out of a jump pad, defer
17136 pending signals to later.
17137 (linux_stabilize_threads): New.
17138 (linux_wait_1): Check if threads need moving out of jump pads, and
17139 do it if so.
17140 (stuck_in_jump_pad_callback): New.
17141 (move_out_of_jump_pad_callback): New.
17142 (lwp_running): New.
17143 (linux_resume_one_lwp): Handle moving out of jump pads.
17144 (linux_set_resume_request): Dequeue deferred signals.
17145 (need_step_over_p): Also step over fast tracepoint jumps.
17146 (start_step_over): Also uninsert fast tracepoint jumps.
17147 (finish_step_over): Also reinsert fast tracepoint jumps.
17148 (linux_install_fast_tracepoint_jump): New.
17149 (linux_target_ops): Install linux_stabilize_threads and
17150 linux_install_fast_tracepoint_jump_pad.
17151 * linux-low.h (linux_target_ops) <get_thread_area,
17152 install_fast_tracepoint_jump_pad>: New fields.
17153 (struct lwp_info) <collecting_fast_tracepoint,
17154 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17155 (linux_get_thread_area): Declare.
17156 * linux-x86-low.c (jump_insn): New.
17157 (x86_get_thread_area): New.
17158 (append_insns): New.
17159 (push_opcode): New.
17160 (amd64_install_fast_tracepoint_jump_pad): New.
17161 (i386_install_fast_tracepoint_jump_pad): New.
17162 (x86_install_fast_tracepoint_jump_pad): New.
17163 (the_low_target): Install x86_get_thread_area and
17164 x86_install_fast_tracepoint_jump_pad.
17165 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17166 (struct fast_tracepoint_jump): New.
17167 (fast_tracepoint_jump_insn): New.
17168 (fast_tracepoint_jump_shadow): New.
17169 (find_fast_tracepoint_jump_at): New.
17170 (fast_tracepoint_jump_here): New.
17171 (delete_fast_tracepoint_jump): New.
17172 (set_fast_tracepoint_jump): New.
17173 (uninsert_fast_tracepoint_jumps_at): New.
17174 (reinsert_fast_tracepoint_jumps_at): New.
17175 (set_breakpoint_at): Use write_inferior_memory.
17176 (uninsert_raw_breakpoint): Use write_inferior_memory.
17177 (check_mem_read): Mask out fast tracepoint jumps.
17178 (check_mem_write): Mask out fast tracepoint jumps.
17179 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17180 (set_fast_tracepoint_jump): Declare.
17181 (delete_fast_tracepoint_jump)
17182 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17183 (reinsert_fast_tracepoint_jumps_at): Declare.
17184 * regcache.c: Don't compile many functions when building the
17185 in-process agent library.
17186 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17187 the register buffer in the heap.
17188 (free_register_cache): If the register buffer isn't owned by the
17189 regcache, don't free it.
17190 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17191 pre-existing register caches.
17192 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17193 type.
17194 (convert_ascii_to_int): : Constify `from' parameter type.
17195 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17196 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17197 the needed buffer in-place.
17198 (relocate_instruction): New.
17199 * server.c (handle_query) <qSymbols>: If the target supports
17200 tracepoints, give it a chance of looking up symbols. Report
17201 support for fast tracepoints.
17202 (handle_status): Stabilize threads.
17203 (process_serial_event): Adjust.
17204 * server.h (struct fast_tracepoint_jump): Forward declare.
17205 (struct process_info) <fast_tracepoint_jumps>: New field.
17206 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17207 (decode_X_packet, decode_M_packet): Adjust.
17208 (relocate_instruction): Declare.
17209 (in_process_agent_loaded): Declare.
17210 (tracepoint_look_up_symbols): Declare.
17211 (struct fast_tpoint_collect_status): Declare.
17212 (fast_tracepoint_collecting): Declare.
17213 (force_unlock_trace_buffer): Declare.
17214 (handle_tracepoint_bkpts): Declare.
17215 (initialize_low_tracepoint)
17216 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17217 * target.h (struct target_ops) <stabilize_threads,
17218 install_fast_tracepoint_jump_pad>: New fields.
17219 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17220 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17221 [HAVE_STDINT_H]: Include stdint.h.
17222 (trace_debug_1): Rename to ...
17223 (trace_vdebug): ... this.
17224 (trace_debug): Rename to ...
17225 (trace_debug_1): ... this. Add `level' parameter.
17226 (trace_debug): New.
17227 (ATTR_USED, ATTR_NOINLINE): New.
17228 (IP_AGENT_EXPORT): New.
17229 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17230 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17231 (about_to_request_buffer_space, trace_buffer_is_full)
17232 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17233 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17234 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17235 (traceframe_write_count, traceframes_created)
17236 (trace_state_variables)
17237 New renaming defines.
17238 (struct ipa_sym_addresses): New.
17239 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17240 (symbol_list): New.
17241 (ipa_sym_addrs): New.
17242 (all_tracepoint_symbols_looked_up): New.
17243 (in_process_agent_loaded): New.
17244 (write_e_ipa_not_loaded): New.
17245 (maybe_write_ipa_not_loaded): New.
17246 (tracepoint_look_up_symbols): New.
17247 (debug_threads) [IN_PROCESS_AGENT]: New.
17248 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17249 (UNKNOWN_SIDE_EFFECTS): New.
17250 (stop_tracing): New.
17251 (flush_trace_buffer): New.
17252 (stop_tracing_bkpt): New.
17253 (flush_trace_buffer_bkpt): New.
17254 (read_inferior_integer): New.
17255 (read_inferior_uinteger): New.
17256 (read_inferior_data_pointer): New.
17257 (write_inferior_data_pointer): New.
17258 (write_inferior_integer): New.
17259 (write_inferior_uinteger): New.
17260 (struct collect_static_trace_data_action): Delete.
17261 (enum tracepoint_type): New.
17262 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17263 <actions_str, step_actions, step_actions_str>: Only include in
17264 GDBserver.
fa593d66
PA
17265 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17266 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17267 (tracepoints): Use IP_AGENT_EXPORT.
17268 (last_tracepoint): Don't include in the IPA.
17269 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17270 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17271 (alloced_trace_state_variables): New.
17272 (trace_state_variables): Use IP_AGENT_EXPORT.
17273 (traceframe_t): Delete unused variable.
17274 (circular_trace_buffer): Don't include in the IPA.
17275 (trace_buffer_start): Delete.
17276 (struct trace_buffer_control): New.
17277 (trace_buffer_free): Delete.
17278 (struct ipa_trace_buffer_control): New.
17279 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17280 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17281 New.
17282 (trace_buffer_ctrl): New.
17283 (TRACE_BUFFER_CTRL_CURR): New.
17284 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17285 Reimplement as macros.
17286 (trace_buffer_wrap): Delete.
17287 (traceframe_write_count, traceframe_read_count)
17288 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17289 (struct tracepoint_hit_ctx) <type>: New field.
17290 (struct fast_tracepoint_ctx): New.
17291 (memory_barrier): New.
17292 (cmpxchg): New.
17293 (record_tracepoint_error): Update atomically in the IPA.
17294 (clear_inferior_trace_buffer): New.
17295 (about_to_request_buffer_space): New.
17296 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17297 updating the same buffer.
17298 (add_tracepoint): Default the tracepoint's type to trap
17299 tracepoint, and orig_size to -1.
17300 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17301 internal variables.
17302 (create_trace_state_variable): New parameter `gdb'. Handle it.
17303 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17304 (cmd_qtdp): Handle fast tracepoints.
17305 (cmd_qtdv): Adjust.
17306 (max_jump_pad_size): New.
17307 (gdb_jump_pad_head): New.
17308 (get_jump_space_head): New.
17309 (claim_jump_space): New.
17310 (sort_tracepoints): New.
17311 (MAX_JUMP_SIZE): New.
17312 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17313 IPA.
17314 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17315 support. Upload fast traceframes, and delete internal IPA
17316 breakpoints.
17317 (stop_tracing_handler): New.
17318 (flush_trace_buffer_handler): New.
17319 (cmd_qtstop): Upload fast tracepoints.
17320 (response_tracepoint): Handle fast tracepoints.
17321 (tracepoint_finished_step): Upload fast traceframes. Set the
17322 tracepoint hit context's tracepoint type.
17323 (handle_tracepoint_bkpts): New.
17324 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17325 type. Add comment about fast tracepoints.
17326 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17327 non-existing action_str field.
17328 (get_context_regcache): Handle fast tracepoints.
17329 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17330 to the regcache.
17331 (fast_tracepoint_from_jump_pad_address): New.
17332 (fast_tracepoint_from_ipa_tpoint_address): New.
17333 (collecting_t): New.
17334 (force_unlock_trace_buffer): New.
17335 (fast_tracepoint_collecting): New.
17336 (collecting): New.
17337 (gdb_collect): New.
17338 (write_inferior_data_ptr): New.
17339 (target_tp_heap): New.
17340 (target_malloc): New.
17341 (download_agent_expr): New.
17342 (UALIGN): New.
17343 (download_tracepoints): New.
17344 (download_trace_state_variables): New.
17345 (upload_fast_traceframes): New.
17346 (IPA_FIRST_TRACEFRAME): New.
17347 (IPA_NEXT_TRACEFRAME_1): New.
17348 (IPA_NEXT_TRACEFRAME): New.
17349 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17350 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17351 (gdb_jump_pad_buffer_end): New.
17352 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17353 (initialize_tracepoint): Adjust.
17354 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17355 buffer. Initialize the low module.
17356 * utils.c (PREFIX, TOOLNAME): New.
17357 (malloc_failure): Use PREFIX.
17358 (error): In the IPA, an error causes an exit.
17359 (fatal, warning): Use PREFIX.
17360 (internal_error): Use TOOLNAME.
17361 (NUMCELLS): Increase to 10.
17362 * configure, config.in: Regenerate.
17363
d149dd1d
PA
173642010-06-01 Pedro Alves <pedro@codesourcery.com>
17365
17366 * server.c (handle_query) <qSupported>: Do two passes over the
17367 qSupported string to avoid nesting strtok.
17368
f6528abd
JK
173692010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17370
17371 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17372 (CDEPS): New.
17373 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17374 -Wl,--dynamic-list.
17375 * configure: Regenerate.
17376 * proc-service.list: New.
17377
ca2a87a0
JK
173782010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17379
17380 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17381 New comment.
17382
363a6e9f
OS
173832010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17384
17385 * gdbreplay.c (remote_open): Check error return from socket() call by
17386 its equality to -1 not by it being negative.
17387 * remote-utils.c (remote_open): Likewise.
17388
d23b6cb1
PA
173892010-05-23 Pedro Alves <pedro@codesourcery.com>
17390
17391 * config.h: Regenerate.
17392
28d3cf85
MK
173932010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17394
17395 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17396 doesn't provide PTRACE_GET_THREAD_AREA.
17397
fea36a59
MK
173982010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17399
17400 * linux-m68k-low.c: Include <asm/ptrace.h>
17401 (ps_get_thread_area): Implement.
17402
24b066ba
DE
174032010-05-03 Doug Evans <dje@google.com>
17404
17405 * event-loop.c (struct callback_event): New struct.
17406 (callback_list): New global.
17407 (append_callback_event, delete_callback_event): New functions.
17408 (process_callback): New function.
17409 (start_event_loop): Call it.
17410 * remote-utils.c (NOT_SCHEDULED): Define.
17411 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17412 moved out of readchar.
17413 (readchar): Rewrite. Call reschedule before returning.
17414 (reset_readchar): New function.
17415 (remote_close): Call it.
17416 (process_remaining, reschedule): New functions.
17417 * server.h (callback_handler_func): New typedef.
17418 (append_callback_event, delete_callback_event): Declare.
17419
9836d6ea
PA
174202010-05-03 Pedro Alves <pedro@codesourcery.com>
17421
17422 * proc-service.c (ps_pglobal_lookup): Use
17423 thread_db_look_up_one_symbol.
17424 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17425 parameter. Use it instead of all_symbols_looked_up.
17426 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17427 field.
17428 (all_symbols_looked_up): Don't declare.
17429 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17430 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17431 field.
17432 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17433 Set all_symbols_looked_up here.
17434 (thread_db_look_up_one_symbol): New.
17435 (thread_db_get_tls_address): Adjust.
17436 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17437 thread_db object on the heap, and tentatively set it in the
17438 process structure.
17439 (thread_db_init): Don't set all_symbols_looked_up here.
17440 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17441
7984d532
PA
174422010-05-03 Pedro Alves <pedro@codesourcery.com>
17443
17444 * linux-low.c (linux_kill, linux_detach): Adjust.
17445 (status_pending_p_callback): Remove redundant statement. Check
17446 for !TARGET_WAITIKIND_IGNORE, instead of
17447 TARGET_WAITKIND_STOPPED.
17448 (handle_tracepoints): Make sure LWP is locked. Adjust.
17449 (linux_wait_for_event_1): Adjust.
17450 (linux_cancel_breakpoints): New.
17451 (unsuspend_one_lwp): New.
17452 (unsuspend_all_lwps): New.
17453 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17454 (send_sigstop_callback): Change return type to int, add new
17455 `except' parameter and handle it.
17456 (suspend_and_send_sigstop_callback): New.
17457 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17458 pass them down. If SUSPEND, also increment the lwp's suspend
17459 count.
17460 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17461 (need_step_over_p): Don't consider suspended LWPs.
17462 (start_step_over): Adjust.
17463 (proceed_one_lwp): Change return type to int, add new `except'
17464 parameter and handle it.
17465 (unsuspend_and_proceed_one_lwp): New.
17466 (proceed_all_lwps): Use find_inferior instead of
17467 for_each_inferior.
17468 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17469 also decrement the suspend count of LWPs. Pass `except' down,
17470 instead of hacking its suspend count.
17471 (linux_pause_all): Add `freeze' parameter. Adjust.
17472 (linux_unpause_all): New.
17473 (linux_target_ops): Install linux_unpause_all.
17474 * server.c (handle_status): Adjust.
17475 * target.h (struct target_ops): New fields `unpause_all' and
17476 `cancel_breakpoints'. Add new parameter to `pause_all'.
17477 (pause_all): Add new `freeze' parameter.
17478 (unpause_all): New.
17479 (cancel_breakpoints): New.
17480 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17481 cancel breakpoints.
17482 (cmd_qtstart): Pause threads.
17483 (stop_tracing): Pause threads, and cancel breakpoints.
17484 * win32-low.c (win32_target_ops): Adjust.
17485
e471f25b
PA
174862010-05-03 Pedro Alves <pedro@codesourcery.com>
17487
17488 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17489 the inferior right away from here...
17490 (linux_wait_1): ... to here, and adjust to check the thread's
17491 last_resume_kind instead of the lwp's step or stop_expected flags.
17492
1915ef4f
PA
174932010-05-02 Pedro Alves <pedro@codesourcery.com>
17494
17495 * README: Use consistent `GDB' and `GDBserver' spellings.
17496
f9e39928
PA
174972010-05-02 Pedro Alves <pedro@codesourcery.com>
17498
17499 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17500 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17501 (linux_detach_one_lwp): Assume the lwp is stopped.
17502 (any_thread_of): Delete.
17503 (linux_detach): Stop all lwps here. Don't blindly delete all
17504 breakpoints.
17505 (delete_lwp_callback): New.
17506 (linux_mourn): Delete all lwps of the process that is gone.
17507 (linux_wait_1): Don't delete the last lwp of the process here.
17508 * mem-break.h (mark_breakpoints_out): Declare.
17509 * mem-break.c (mark_breakpoints_out): New.
17510 (free_all_breakpoints): Use it.
17511 * server.c (handle_target_event): If the process is gone, mark
17512 breakpoints out.
17513 * thread-db.c (struct thread_db) <create_bp>: New field.
17514 (thread_db_enable_reporting): Fix prototype. Store a thread event
17515 breakpoint reference in the thread_db struct.
17516 (thread_db_load_search): Clear the thread_db object.
17517 (try_thread_db_load_1): Ditto.
17518 (switch_to_process): New.
17519 (disable_thread_event_reporting): Use it.
17520 (remove_thread_event_breakpoints): New.
17521 (thread_db_detach, thread_db_mourn): Use it.
17522
1e7fc18c
PA
175232010-05-01 Pedro Alves <pedro@codesourcery.com>
17524
17525 * linux-low.c (linux_enable_event_reporting): New.
17526 (linux_wait_for_event_1, handle_extended_wait): Use it.
17527
02fc4de7
PA
175282010-04-30 Pedro Alves <pedro@codesourcery.com>
17529
17530 * linux-low.c (linux_kill_one_lwp, linux_kill)
17531 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17532 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17533 SIGSTOP even if the LWP is stopped.
17534 (send_sigstop_callback): New.
17535 (stop_all_lwps): Use send_sigstop_callback instead.
17536 (linux_resume_one_thread): Adjust.
17537 (proceed_one_lwp): Still proceed an LWP that the client has
17538 requested to stop, if we haven't reported it as stopped yet. Make
17539 sure that LWPs the client want stopped, have a pending SIGSTOP.
17540
bc3b5632
DE
175412010-04-26 Doug Evans <dje@google.com>
17542
ae1ada35
DE
17543 * server.c (handle_general_set): Make static.
17544
bc3b5632
DE
17545 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17546 Print received char after testing for error/eof instead of before.
17547 (input_interrupt): Tweak comment.
17548
65730243
DE
175492010-04-23 Doug Evans <dje@google.com>
17550
17551 * server.c (start_inferior): Print inferior argv if --debug.
17552
a8ae7dc0
AR
175532010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17554
17555 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17556 * nto-x86-low.c: Include server.h
17557
1c07cc19
PM
175582010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17559
17560 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17561 be consistent with other sources of this directory.
17562 (init_registers_amd64): Correct name of source file of this function
17563 in the comment.
17564
e0a61e09
PM
175652010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17566
17567 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17568 64-bit executables.
17569
54709339
PM
175702010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17571
17572 * win32-i386-low.c: Add 64-bit support.
17573 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17574 (init_registers_amd64): Declare.
17575 (mappings): Add 64-bit version of array.
17576 (init_windows_x86): New function.
17577 (the_low_target): Change init_arch field to init_windows_x86.
17578
e8f0053d
PM
175792010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17580
17581 * win32-low.c: Adapt to support also 64-bit architecture.
17582 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17583 (get_image_name): Use SIZE_T type for local variable `done'.
17584 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17585 (toolhelp_get_dll_name): Idem.
17586 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17587 Use uintptr_t typecast to avoid warning.
17588 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17589 (handle_exception): Use phex_nz to avoid warning.
17590 (win32_wait): Remove unused local variable `process'.
17591
c481e77e
PM
175922010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17593
17594 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17595 `amd64-avx.o'.
17596
12ea4b69
PM
175972010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17598
17599 * configure.ac: Use `ws2_32' library for srv_mingw.
17600 * configure: Regenerate.
17601 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17602 * remote-utils.c: Likewise.
17603
f6d1620c
L
176042010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17605
17606 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17607 if __x86_64__ is defined.
17608
8e642873
PM
176092010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17610
17611 * configure: Regenerate.
17612
711e434b
PM
176132010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17614
17615 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17616 * target.h (target_ops): New get_tib_address field.
17617 * win32-low.h (win32_thread_info): Add thread_local_base field.
17618 * win32-low.c (child_add_thread): Add tlb argument.
17619 Set thread_local_base field to TLB.
17620 (get_child_debug_event): Adapt to child_add_thread change.
17621 (win32_get_tib_address): New function.
17622 (win32_target_ops): Set get_tib_address field to
17623 win32_get_tib_address.
17624 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17625
505106cd
PA
176262010-04-12 Pedro Alves <pedro@codesourcery.com>
17627
505106cd
PA
17628 * linux-low.c (linux_mourn): Also remove the process.
17629 * server.c (handle_target_event): Don't remove the process here.
17630 * nto-low.c (nto_mourn): New.
17631 (nto_target_ops): Install it.
17632 * spu-low.c (spu_mourn): New.
17633 (spu_target_ops): Install it.
17634 * win32-low.c (win32_mourn): New.
17635 (win32_target_ops): Install it.
17636
e8470a06
PA
176372010-04-12 Pedro Alves <pedro@codesourcery.com>
17638
17639 * server.h (buffer_xml_printf): Remove redundant `;'.
17640
45ba0d02
PA
176412010-04-12 Pedro Alves <pedro@codesourcery.com>
17642
17643 * regcache.c (set_register_cache): Invalidate regcaches before
17644 changing the register cache layout.
17645 (regcache_invalidate_one): Allow a NULL regcache.
17646 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17647 regcaches before changing the register cache layout or the target
17648 regsets.
17649
59e04013
L
176502010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17651
17652 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17653 variable warning on Linux/x86-64.
17654
8336d594
PA
176552010-04-11 Pedro Alves <pedro@codesourcery.com>
17656
17657 GDBserver disconnected tracing support.
17658
17659 * linux-low.c (linux_remove_process): Delete.
17660 (add_lwp): Don't set last_resume_kind here.
17661 (linux_kill): Use `mourn'.
17662 (linux_detach): Use `thread_db_detach', and `mourn'.
17663 (linux_mourn): New.
17664 (linux_attach_lwp_1): Adjust comment.
17665 (linux_attach): last_resume_kind moved the thread_info; adjust.
17666 (status_pending_p_callback): Adjust.
17667 (linux_wait_for_event_1): Adjust.
17668 (count_events_callback, select_singlestep_lwp_callback)
17669 (select_event_lwp_callback, cancel_breakpoints_callback)
17670 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17671 (proceed_one_lwp): Adjust.
17672 (linux_async): Add debug output.
17673 (linux_thread_stopped): New.
17674 (linux_pause_all): New.
17675 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17676 linux_pause_all.
17677 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17678 (thread_db_free): Delete declaration.
17679 (thread_db_detach, thread_db_mourn): Declare.
17680 * thread-db.c (thread_db_init): Use thread_db_mourn.
17681 (thread_db_free): Delete, split in two.
17682 (disable_thread_event_reporting): New.
17683 (thread_db_detach): New.
17684 (thread_db_mourn): New.
17685
17686 * server.h (struct thread_info) <last_resume_kind>: New field.
17687 <attached>: Add comment.
17688 <gdb_detached>: New field.
17689 (handler_func): Change return type to int.
17690 (handle_serial_event, handle_target_event): Ditto.
17691 (gdb_connected): Declare.
17692 (tracing): Delete.
17693 (disconnected_tracing): Declare.
17694 (stop_tracing): Declare.
17695
17696 * server.c (handle_query) <qSupported>: Report support for
17697 disconnected tracing.
17698 (queue_stop_reply_callback): Account for running threads.
17699 (gdb_wants_thread_stopped): New.
17700 (gdb_wants_all_threads_stopped): New.
17701 (gdb_reattached_process): New.
17702 (handle_status): Clear the `gdb_detached' flag of all processes.
17703 In all-stop, stop all threads.
17704 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17705 (process_serial_event): If the remote connection breaks, or if an
17706 exit was forced with "monitor exit", force an event loop exit.
17707 Handle disconnected tracing on detach.
17708 (handle_serial_event): Adjust.
17709 (handle_target_event): If GDB isn't connected, forward events back
17710 to the inferior, unless the last process exited, in which case,
17711 exit gdbserver. Adjust interface.
17712
17713 * remote-utils.c (remote_open): Don't block in accept. Instead
17714 register an event loop source on the listen socket file
17715 descriptor. Refactor bits into ...
17716 (listen_desc): ... this new global.
17717 (gdb_connected): ... this new function.
17718 (enable_async_notification): ... this new function.
17719 (handle_accept_event): ... this new function.
17720 (remote_close): Clear remote_desc.
17721
17722 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17723
17724 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17725 New fields.
17726 (mourn_inferior): Define.
17727 (target_process_qsupported): Avoid the dangling else problem.
17728 (thread_stopped): Define.
17729 (pause_all): Define.
17730 (target_waitstatus_to_string): Declare.
17731 * target.c (target_waitstatus_to_string): New.
17732
17733 * tracepoint.c (tracing): Make extern.
17734 (disconnected_tracing): New.
17735 (stop_tracing): Make extern. Handle tracing stops due to GDB
17736 disconnecting.
17737 (cmd_qtdisconnected): New.
17738 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17739 (handle_tracepoint_general_set): Handle QTDisconnected.
17740
17741 * event-loop.c (event_handler_func): Change return type to int.
17742 (process_event): Bail out if the event handler wants the event
17743 loop to stop.
17744 (handle_file_event): Ditto.
17745 (start_event_loop): Bail out if the event handler wants the event
17746 loop to stop.
17747
17748 * nto-low.c (nto_target_ops): Adjust.
17749 * spu-low.c (spu_wait): Don't remove the process here.
17750 (spu_target_ops): Adjust.
17751 * win32-low.c (win32_wait): Don't remove the process here.
17752 (win32_target_ops): Adjust.
17753
5d267c4c
PA
177542010-04-11 Pedro Alves <pedro@codesourcery.com>
17755
17756 * regcache.c (realloc_register_cache): Invalidate inferior's
17757 regcache before recreating it.
17758
623ccd72
PA
177592010-04-09 Pedro Alves <pedro@codesourcery.com>
17760
17761 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17762
219f2f23
PA
177632010-04-09 Stan Shebs <stan@codesourcery.com>
17764 Pedro Alves <pedro@codesourcery.com>
17765
17766 * server.h (LONGEST): New.
17767 (struct thread_info) <while_stepping>: New field.
17768 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17769 Declare.
17770 (initialize_tracepoint, handle_tracepoint_general_set)
17771 (handle_tracepoint_query, tracepoint_finished_step)
17772 (tracepoint_was_hit, release_while_stepping_state_list):
17773 (current_traceframe): Declare.
17774 * server.c (handle_general_set): Handle tracepoint packets.
17775 (read_memory): New.
17776 (write_memory): New.
17777 (handle_search_memory_1): Use read_memory.
17778 (handle_query): Report support for conditional tracepoints, trace
17779 state variables, and tracepoint sources. Handle tracepoint
17780 queries.
17781 (main): Initialize the tracepoints module.
17782 (process_serial_event): Handle traceframe reads/writes.
17783
17784 * linux-low.c (handle_tracepoints): New.
17785 (linux_wait_1): Call it.
17786 (linux_resume_one_lwp): Handle while-stepping.
17787 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17788 (linux_target_ops): Install them.
17789 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17790 New field.
17791 * linux-x86-low.c (x86_supports_tracepoints): New.
17792 (the_low_target). Install it.
17793
17794 * mem-break.h (delete_breakpoint): Declare.
17795 * mem-break.c (delete_breakpoint): Make external.
17796
17797 * target.h (struct target_ops): Add `supports_tracepoints',
17798 `read_pc', and `write_pc' fields.
17799 (target_supports_tracepoints): Define.
17800 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17801 (phex_nz): New.
17802
17803 * regcache.h (struct regcache) <registers_owned>: New field.
17804 (init_register_cache, regcache_cpy): Declare.
17805 (regcache_read_pc, regcache_write_pc): Declare.
17806 (register_cache_size): Declare.
17807 (supply_regblock): Declare.
17808 * regcache.c (init_register_cache): New.
17809 (new_register_cache): Use it.
17810 (regcache_cpy): New.
17811 (register_cache_size): New.
17812 (supply_regblock): New.
17813 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17814
219f2f23
PA
17815 * tracepoint.c: New.
17816
17817 * Makefile.in (OBS): Add tracepoint.o.
17818 (tracepoint.o): New rule.
17819
3a13a53b
L
178202010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17821
17822 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17823 (i386-mmx.o): New.
17824 (i386-mmx.c): Likewise.
17825 (i386-mmx-linux.o): Likewise.
17826 (i386-mmx-linux.c): Likewise.
17827
17828 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17829 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17830 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17831 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17832
17833 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17834 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17835 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17836
1570b33e
L
178372010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17838
17839 * Makefile.in (clean): Updated.
17840 (i386-avx.o): New.
17841 (i386-avx.c): Likewise.
17842 (i386-avx-linux.o): Likewise.
17843 (i386-avx-linux.c): Likewise.
17844 (amd64-avx.o): Likewise.
17845 (amd64-avx.c): Likewise.
17846 (amd64-avx-linux.o): Likewise.
17847 (amd64-avx-linux.c): Likewise.
17848
17849 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17850 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17851 (srv_amd64_regobj): Add amd64-avx.o.
17852 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17853 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17854 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17855 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17856 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17857 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17858 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17859
17860 * i387-fp.c: Include "i386-xstate.h".
17861 (i387_xsave): New.
17862 (i387_cache_to_xsave): Likewise.
17863 (i387_xsave_to_cache): Likewise.
17864 (x86_xcr0): Likewise.
17865
17866 * i387-fp.h (i387_cache_to_xsave): Likewise.
17867 (i387_xsave_to_cache): Likewise.
17868 (x86_xcr0): Likewise.
17869
17870 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17871 * linux-crisv32-low.c (target_regsets): Likewise.
17872 * linux-m68k-low.c (target_regsets): Likewise.
17873 * linux-mips-low.c (target_regsets): Likewise.
17874 * linux-ppc-low.c (target_regsets): Likewise.
17875 * linux-s390-low.c (target_regsets): Likewise.
17876 * linux-sh-low.c (target_regsets): Likewise.
17877 * linux-sparc-low.c (target_regsets): Likewise.
17878 * linux-xtensa-low.c (target_regsets): Likewise.
17879
17880 * linux-low.c: Include <sys/uio.h>.
17881 (regsets_fetch_inferior_registers): Support nt_type.
17882 (regsets_store_inferior_registers): Likewise.
17883 (linux_process_qsupported): New.
17884 (linux_target_ops): Add linux_process_qsupported.
17885
17886 * linux-low.h (regset_info): Add nt_type.
17887 (linux_target_ops): Add process_qsupported.
17888
17889 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17890 and <sys/uio.h>.
17891 (init_registers_i386_avx_linux): New.
17892 (init_registers_amd64_avx_linux): Likewise.
17893 (xmltarget_i386_linux_no_xml): Likewise.
17894 (xmltarget_amd64_linux_no_xml): Likewise.
17895 (PTRACE_GETREGSET): Likewise.
17896 (PTRACE_SETREGSET): Likewise.
17897 (x86_fill_xstateregset): Likewise.
17898 (x86_store_xstateregset): Likewise.
17899 (use_xml): Likewise.
17900 (x86_linux_update_xmltarget): Likewise.
17901 (x86_linux_process_qsupported): Likewise.
17902 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17903 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17904 init_registers_i386_linux here. Call
17905 x86_linux_update_xmltarget.
17906 (the_low_target): Add x86_linux_process_qsupported.
17907
17908 * server.c (handle_query): Call target_process_qsupported.
17909
17910 * target.h (target_ops): Add process_qsupported.
17911 (target_process_qsupported): New.
17912
fc7238bb
PA
179132010-04-03 Pedro Alves <pedro@codesourcery.com>
17914
17915 * inferiors.c (add_thread): Set last_status kind to
17916 TARGET_WAITKIND_IGNORE.
17917 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17918 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17919 (linux_wait_1): Move `thread' local definition to block that uses
17920 it. Don't NULL initialize `event_child'.
17921 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17922 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17923 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17924
bdabb078
PA
179252010-04-01 Pedro Alves <pedro@codesourcery.com>
17926
17927 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17928 an extended waitstatus, or by a watchpoint.
17929 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17930 thread was stepping or has been stopped by a watchpoint.
17931
d3bbe7a0
PA
179322010-04-01 Pedro Alves <pedro@codesourcery.com>
17933
17934 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17935 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17936 of another, then delete the previous, and validate all
17937 breakpoints.
17938 (validate_inserted_breakpoint): New.
17939 (delete_disabled_breakpoints): New.
17940 (validate_breakpoints): New.
17941 (check_mem_read): Validate breakpoints before trusting their
17942 shadow. Delete disabled breakpoints.
17943 (check_mem_write): Validate breakpoints before trusting they
17944 should be inserted. Delete disabled breakpoints.
17945 * mem-break.h (validate_breakpoints):
17946 * server.c (handle_query): Validate breakpoints when we see a
17947 qSymbol query.
17948
8b07ae33
PA
179492010-04-01 Pedro Alves <pedro@codesourcery.com>
17950
17951 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17952 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17953 if we could tell there's a GDB breakpoint at stop_pc.
17954 (need_step_over_p): Don't do a step over if we find a GDB
17955 breakpoint at the resume PC.
17956
17957 * mem-break.c (struct raw_breakpoint): New.
17958 (enum bkpt_type): New type `gdb_breakpoint'.
17959 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17960 fields. New field `raw'.
17961 (find_raw_breakpoint_at): New.
17962 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17963 breakpoint instead.
17964 (set_breakpoint_at): Adjust.
17965 (delete_raw_breakpoint): New.
17966 (release_breakpoint): New.
17967 (delete_breakpoint): Rename to...
17968 (delete_breakpoint_1): ... this. Add proc parameter. Use
17969 release_breakpoint. Return ENOENT.
17970 (delete_breakpoint): Reimplement.
17971 (find_breakpoint_at): Delete.
17972 (find_gdb_breakpoint_at): New.
17973 (delete_breakpoint_at): Delete.
17974 (set_gdb_breakpoint_at): New.
17975 (delete_gdb_breakpoint_at): New.
17976 (gdb_breakpoint_here): New.
17977 (set_reinsert_breakpoint): Use release_breakpoint.
17978 (uninsert_breakpoint): Rename to ...
17979 (uninsert_raw_breakpoint): ... this.
17980 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17981 (reinsert_raw_breakpoint): Change parameter type to
17982 raw_breakpoint.
17983 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17984 instead.
17985 (check_breakpoints): Adjust. Use release_breakpoint.
17986 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17987 (breakpoint_inserted_here): Ditto.
17988 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17989 Don't trust the breakpoint's shadow if it is not inserted.
17990 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17991 (delete_all_breakpoints): Adjust.
17992 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17993 use delete_breakpoint_1.
17994
17995 * mem-break.h (breakpoints_supported): Delete declaration.
17996 (set_gdb_breakpoint_at): Declare.
17997 (gdb_breakpoint_here): Declare.
17998 (delete_breakpoint_at): Delete.
17999 (delete_gdb_breakpoint_at): Declare.
18000
18001 * server.h (struct raw_breakpoint): Forward declare.
18002 (struct process_info): New field `raw_breakpoints'.
18003
18004 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18005 breakpoints.
18006
6bf5e0ba
PA
180072010-03-24 Pedro Alves <pedro@codesourcery.com>
18008
18009 * linux-low.c (status_pending_p_callback): Fix comment.
18010 (linux_wait_for_event_1): Move most of the internal breakpoint
18011 handling from here...
18012 (linux_wait_1): ... to here.
18013 (count_events_callback): New.
18014 (select_singlestep_lwp_callback): New.
18015 (select_event_lwp_callback): New.
18016 (cancel_breakpoints_callback): New.
18017 (select_event_lwp): New.
18018 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18019 priority to all LWPs that have had events that should be reported
18020 to the client. Cancel breakpoints when about to reporting the
18021 event to the client, not while stopping lwps. No longer cancel
18022 finished single-steps here.
18023 (cancel_finished_single_step): Delete.
18024 (cancel_finished_single_steps): Delete.
18025
414a389f
PA
180262010-03-24 Pedro Alves <pedro@codesourcery.com>
18027
18028 * mem-break.c (enum bkpt_type): New.
18029 (struct breakpoint): New field `type'.
18030 (set_breakpoint_at): Change return type to struct breakpoint
18031 pointer. Set type to `other_breakpoint' by default.
18032 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18033 in the breakpoint list.
18034 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18035 (reinsert_breakpoint): Rename to ...
18036 (reinsert_raw_breakpoint): ... this.
18037 (reinsert_breakpoints_at): Adjust.
18038 * mem-break.h (struct breakpoint): Declare.
18039 (set_breakpoint_at): Change return type to struct breakpoint
18040 pointer.
18041
2280c721
PA
180422010-03-24 Pedro Alves <pedro@codesourcery.com>
18043
18044 * server.c (handle_query): Assign, not compare.
18045
d50171e4
PA
180462010-03-24 Pedro Alves <pedro@codesourcery.com>
18047
18048 Teach linux gdbserver to step-over-breakpoints.
18049
18050 * linux-low.c (can_hardware_single_step): New.
18051 (supports_breakpoints): New.
18052 (handle_extended_wait): If stopping threads, read the stop pc of
18053 the new cloned LWP.
18054 (get_pc): New.
18055 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18056 low target doesn't support retrieving the PC.
18057 (add_lwp): Set last_resume_kind to resume_continue.
18058 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18059 (linux_attach): Don't clear stop_expected. Set the lwp's
18060 last_resume_kind to resume_stop.
18061 (linux_detach_one_lwp): Don't check for removed breakpoints.
18062 (check_removed_breakpoint): Delete.
18063 (status_pending_p): Rename to ...
18064 (status_pending_p_callback): ... this. Don't check for removed
18065 breakpoints. Don't consider threads that are stopped from GDB's
18066 perspective.
18067 (linux_wait_for_lwp): Always read the stop_pc here.
18068 (cancel_breakpoint): New.
18069 (step_over_bkpt): New global.
18070 (linux_wait_for_event_1): Implement stepping over breakpoints.
18071 (gdb_wants_lwp_stopped): New.
18072 (gdb_wants_all_stopped): New.
18073 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18074 single-step traps here. Store the thread's last reported target
18075 wait status.
18076 (send_sigstop): Don't clear stop_expected. Always set it,
18077 instead.
18078 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18079 (cancel_finished_single_step): New.
18080 (cancel_finished_single_steps): New.
18081 (wait_for_sigstop): Don't cancel finished single-step traps here.
18082 (linux_resume_one_lwp): Don't check for removed breakpoints.
18083 Don't set `step' on non-hardware step archs.
18084 (linux_set_resume_request): Ignore resume_stop requests if already
18085 stopping or stopped. Set the lwp's last_resume_kind.
18086 (resume_status_pending_p): Don't check for removed breakpoints.
18087 (need_step_over_p): New.
18088 (start_step_over): New.
18089 (finish_step_over): New.
18090 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18091 requests. Clear the thread's last reported target waitstatus.
18092 Don't use the `suspended' flag. Don't consider pending breakpoints.
18093 (linux_resume): Start a step-over if necessary.
18094 (proceed_one_lwp): New.
18095 (proceed_all_lwps): New.
18096 (unstop_all_lwps): New.
18097 * linux-low.h (struct lwp_info): Rewrite comment for the
18098 `suspended' flag. Add the `stop_pc' field. Delete the
18099 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18100 Add `'last_resume_kind' and `need_step_over' fields.
18101 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18102 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18103 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18104 (set_raw_breakpoint_at): New.
18105 (set_breakpoint_at): Rewrite to use it.
18106 (reinsert_breakpoint_handler): Delete.
18107 (set_reinsert_breakpoint): New.
18108 (reinsert_breakpoint_by_bp): Delete.
18109 (delete_reinsert_breakpoints): New.
18110 (uninsert_breakpoint): Rewrite.
18111 (uninsert_breakpoints_at): New.
18112 (reinsert_breakpoint): Rewrite.
18113 (reinsert_breakpoints_at): New.
18114 (check_breakpoints): Rewrite.
18115 (breakpoint_here): New.
18116 (breakpoint_inserted_here): New.
18117 (check_mem_read): Adjust.
18118 * mem-break.h (breakpoints_supported, breakpoint_here)
18119 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18120 (reinsert_breakpoint_by_bp): Delete declaration.
18121 (delete_reinsert_breakpoints): Declare.
18122 (reinsert_breakpoint): Delete declaration.
18123 (reinsert_breakpoints_at): Declare.
18124 (uninsert_breakpoint): Delete declaration.
18125 (uninsert_breakpoints_at): Declare.
18126 (check_breakpoints): Adjust prototype.
18127 * server.h: Adjust include order.
18128 (struct thread_info): Declare here. Add a `last_status' field.
18129
30ba68cb
MS
181302010-03-23 Michael Snyder <msnyder@vmware.com>
18131
18132 * server.c (crc32): New function.
18133 (handle_query): Add handling for 'qCRC:' request.
18134
b9a881c2
PA
181352010-03-23 Pedro Alves <pedro@codesourcery.com>
18136
18137 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18138 lwp had been stopped by a watchpoint.
18139
e92d13d5
PA
181402010-03-16 Pedro Alves <pedro@codesourcery.com>
18141
18142 * server.h (internal_error): Declare.
18143 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18144 * utils.c (internal_error): New function.
18145
64daa791
AS
181462010-03-15 Andreas Schwab <schwab@redhat.com>
18147
18148 * configure.srv: Fix typo setting srv_regobj.
18149
f52cd8cd
PA
181502010-03-15 Pedro Alves <pedro@codesourcery.com>
18151
18152 * linux-low.c (fetch_register): Avoid passing a non string literal
18153 format to `error'.
18154 (usr_store_inferior_registers): Ditto.
18155
93ae6fdc
PA
181562010-03-14 Pedro Alves <pedro@codesourcery.com>
18157
18158 * linux-low.c (linux_write_memory): Bail out early if peeking
18159 memory failed.
18160
c3adc08c
PA
181612010-03-14 Pedro Alves <pedro@codesourcery.com>
18162
18163 * linux-low.h (struct lwp_info): New fields
18164 `stopped_by_watchpoint' and `stopped_data_address'.
18165 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18166 here, and cache them in the lwp object.
18167 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18168 directly.
18169 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18170 field.
18171 (linux_stopped_by_watchpoint): Rewrite.
18172 (linux_stopped_data_address): Rewrite.
18173
bce522a2
PA
181742010-03-06 Simo Melenius <simo.melenius@iki.fi>
18175
18176 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18177 switching the current inferior, not before.
18178
90884b2b
L
181792010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18180
18181 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18182 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18183 i386-linux.c and amd64-linux.c.
18184 (reg-i386.o): Removed.
18185 (reg-i386.c): Likewise.
18186 (reg-i386-linux.o): Likewise.
18187 (reg-i386-linux.c): Likewise.
18188 (reg-x86-64.o): Likewise.
18189 (reg-x86-64.c): Likewise.
18190 (reg-x86-64-linux.o): Likewise.
18191 (reg-x86-64-linux.c): Likewise.
18192 (i386.o): New.
18193 (i386.c): Likewise.
18194 (i386-linux.o): Likewise.
18195 (i386-linux.c): Likewise.
18196 (amd64.o): Likewise.
18197 (amd64.c): Likewise.
18198 (amd64-linux.o): Likewise.
18199 (amd64-linux.c): Likewise.
18200
18201 * configure.srv (srv_i386_regobj): New.
18202 (srv_i386_linux_regobj): Likewise.
18203 (srv_amd64_regobj): Likewise.
18204 (srv_amd64_linux_regobj): Likewise.
18205 (srv_i386_32bit_xmlfiles): Likewise.
18206 (srv_i386_64bit_xmlfiles): Likewise.
18207 (srv_i386_xmlfiles): Likewise.
18208 (srv_amd64_xmlfiles): Likewise.
18209 (srv_i386_linux_xmlfiles): Likewise.
18210 (srv_amd64_linux_xmlfiles): Likewise.
18211 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18212 srv_xmlfiles to $srv_i386_xmlfiles.
18213 (i[34567]86-*-mingw32ce*): Likewise.
18214 (i[34567]86-*-mingw*): Likewise.
18215 (i[34567]86-*-nto*): Likewise.
18216 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18217 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18218 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18219 (x86_64-*-linux*): Likewise.
18220
18221 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18222 (init_registers_amd64_linux): New.
18223 (x86_arch_setup): Replace init_registers_x86_64_linux with
18224 init_registers_amd64_linux.
18225
193f13e6
MK
182262010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18227
18228 * configure.ac: Check for libdl. If it is not available link against
18229 static libthread_db.
18230 * configure: Regenerate.
18231
85d721b8
PA
182322010-02-22 Pedro Alves <pedro@codesourcery.com>
18233
18234 PR9605
18235
18236 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18237 handing a read watchpoint.
18238 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18239
6076632b
DE
182402010-02-12 Doug Evans <dje@google.com>
18241
18242 * linux-low.c (linux_supports_tracefork_flag): Document.
18243 (linux_look_up_symbols): Add comment.
18244
3327ccf7
L
182452010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18246
18247 * regcache.c (supply_register): Clear regcache if buf is NULL.
18248
0718675c 182492010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18250 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18251
18252 * inferiors.c (find_inferior): Add function documentation.
18253 (unloaded_dll): Handle the case where the unloaded dll has not
18254 been previously registered in the dll list.
18255
177321bd
DJ
182562010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18257
18258 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18259 (thumb2_breakpoint): New.
18260 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18261
2b009048
DJ
182622010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18263
18264 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18265 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18266 breakpoints.
18267
3be029c7
PA
182682010-01-21 Pedro Alves <pedro@codesourcery.com>
18269
18270 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18271
18f5de3b
JK
182722010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18273
18274 * linux-s390-low.c (s390_collect_ptrace_register)
18275 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18276
3743bb4f
DE
182772010-01-21 Doug Evans <dje@google.com>
18278
14ce3065
DE
18279 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18280 (PTRACE_ARG4_TYPE): New macro.
18281 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18282 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18283 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18284 (usr_store_inferior_registers): Ditto.
18285 (linux_read_memory, linux_write_memory): Ditto.
18286 (linux_test_for_tracefork): Ditto.
18287
3743bb4f
DE
18288 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18289 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18290
8b315be5
PA
182912010-01-21 Pedro Alves <pedro@codesourcery.com>
18292
18293 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18294 target.
18295
85492558
PA
182962010-01-21 Pedro Alves <pedro@codesourcery.com>
18297
18298 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18299 prototype to take a regcache. Adjust.
18300
442ea881
PA
183012010-01-20 Pedro Alves <pedro@codesourcery.com>
18302
18303 * regcache.h (struct thread_info): Forward declare.
18304 (struct regcache): New.
18305 (new_register_cache): Adjust prototype.
18306 (get_thread_regcache): Declare.
18307 (free_register_cache): Adjust prototype.
18308 (registers_to_string, registers_from_string): Ditto.
18309 (supply_register, supply_register_by_name, collect_register)
18310 (collect_register_as_string, collect_register_by_name): Ditto.
18311 * regcache.c (struct inferior_regcache_data): Delete.
18312 (get_regcache): Rename to ...
18313 (get_thread_regcache): ... this. Adjust. Switch inferior before
18314 fetching registers.
18315 (regcache_invalidate_one): Adjust.
18316 (regcache_invalidate): Fix prototype.
18317 (new_register_cache): Return the new register cache.
18318 (free_register_cache): Change prototype.
18319 (realloc_register_cache): Adjust.
18320 (registers_to_string): Change prototype to take a regcache. Adjust.
18321 (registers_from_string): Ditto.
18322 (register_data): Ditto.
18323 (supply_register): Ditto.
18324 (supply_register_by_name): Ditto.
18325 (collect_register): Ditto.
18326 (collect_register_as_string): Ditto.
18327 (collect_register_by_name): Ditto.
18328 * server.c (process_serial_event): Adjust.
18329 * linux-low.h (regset_fill_func, regset_store_func): Change
18330 prototype.
18331 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18332 Change prototype.
18333 * linux-low.c (get_stop_pc): Adjust.
18334 (check_removed_breakpoint): Adjust.
18335 (linux_wait_for_event): Adjust.
18336 (linux_resume_one_lwp): Adjust.
18337 (fetch_register): Add regcache parameter. Adjust.
18338 (usr_store_inferior_registers): Ditto.
18339 (regsets_fetch_inferior_registers): Ditto.
18340 (regsets_store_inferior_registers): Ditto.
18341 (linux_fetch_registers, linux_store_registers): Ditto.
18342 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18343 regcache. Adjust.
43aaf8b6
PA
18344 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18345 Ditto.
442ea881
PA
18346 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18347 prototype to take a regcache.
18348 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18349 * remote-utils.c (convert_ascii_to_int, outreg)
18350 (prepare_resume_reply): Change prototype to take a regcache.
18351 Adjust.
18352 * target.h (struct target_ops) <fetch_registers, store_registers>:
18353 Change prototype to take a regcache.
18354 (fetch_inferior_registers, store_inferior_registers): Change
18355 prototype to take a regcache. Adjust.
18356 * proc-service.c (ps_lgetregs): Adjust.
18357 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18358 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18359 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18360 take a regcache. Adjust.
18361 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18362 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18363 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18364 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18365 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18366 (cris_cannot_fetch_register):
18367 (cris_breakpoint_at): Change prototype to take a regcache.
18368 Adjust.
18369 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18370 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18371 to take a regcache. Adjust.
18372 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18373 Adjust.
18374 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18375 take a regcache. Adjust.
18376 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18377 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18378 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18379 * linux-mips-low.c (mips_get_pc):
18380 (mips_set_pc): Change prototype to take a regcache. Adjust.
18381 (mips_reinsert_addr): Adjust.
18382 (mips_collect_register): Change prototype to take a regcache.
18383 Adjust.
18384 (mips_supply_register):
18385 (mips_collect_register_32bit, mips_supply_register_32bit)
18386 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18387 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18388 * linux-ppc-low.c (ppc_supply_ptrace_register)
18389 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18390 (parse_spufs_run): Adjust.
18391 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18392 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18393 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18394 take a regcache. Adjust.
18395 * linux-s390-low.c (s390_collect_ptrace_register)
18396 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18397 (s390_set_pc): Change prototype to take a regcache. Adjust.
18398 (s390_arch_setup): Adjust.
18399 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18400 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18401 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18402 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18403 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18404 regcache. Adjust.
18405 (sparc_breakpoint_at): Adjust.
18406 * linux-xtensa-low.c (xtensa_fill_gregset):
18407 (xtensa_store_gregset):
18408 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18409 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18410 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18411 prototype to take a regcache. Adjust.
18412 * win32-arm-low.c (arm_fetch_inferior_register)
18413 (arm_store_inferior_register): Change prototype to take a
18414 regcache. Adjust.
18415 * win32-i386-low.c (i386_fetch_inferior_register)
18416 (i386_store_inferior_register): Change prototype to take a
18417 regcache. Adjust.
18418 * win32-low.c (child_fetch_inferior_registers)
18419 (child_store_inferior_registers): Change prototype to take a
18420 regcache. Adjust.
18421 (win32_wait): Adjust.
18422 (win32_fetch_inferior_registers): Change prototype to take a
18423 regcache. Adjust.
18424 (win32_store_inferior_registers): Adjust.
18425 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18426 store_inferior_register>: Change prototype to take a regcache.
18427
60c3d7b0
DE
184282010-01-20 Doug Evans <dje@google.com>
18429
18430 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18431 #ifdef.
18432 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18433 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18434
dc146f7c
VP
184352010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18436
18437 * linux-low.c (linux_core_of_thread): New.
18438 (compare_ints, show_process, list_threads): New.
18439 (linux_qxfer_osdata): Report threads and cores.
18440 (linux_target_op): Register linux_core_of_thread.
18441 * remote-utils.c (prepare_resume_reply): Report the core.
18442 (buffer_xml_printf): Support %d specifier.
18443 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18444 New.
18445 (handle_query): Handle qXfer:threads. Announce availability
18446 thereof.
18447 * target.h (struct target_ops): New field core_of_thread.
18448
7803799a
UW
184492010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18450
18451 * Makefile.in (clean): Remove new generated files.
18452 (reg-s390.o, reg-s390.c): Remove rules.
18453 (reg-s390x.o, reg-s390x.c): Likewise.
18454 (s390-linux32.o, s390-linux32.c): Add rules.
18455 (s390-linux64.o, s390-linux64.c): Likewise.
18456 (s390x-linux64.o, s390x-linux64.c): Likewise.
18457 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18458 * linux-s390-low.c: Include <elf.h>.
18459 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18460 (init_registers_s390): Remove prototype.
18461 (init_registers_s390x): Likewise.
18462 (init_registers_s390_linux32): Add prototype.
18463 (init_registers_s390_linux64): Likewise.
18464 (init_registers_s390x_linux64): Likewise.
18465 (s390_num_regs_3264): New define.
18466 (s390_regmap_3264): New global variable.
18467 (s390_cannot_fetch_register): Remove obsolete check.
18468 (s390_cannot_store_register): Likewise.
18469 (s390_collect_ptrace_register): Handle upper/lower register halves.
18470 (s390_supply_ptrace_register): Likewise.
18471 (s390_fill_gregset): Update to register number changes.
18472 (s390_get_hwcap): New routine.
18473 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18474 Install appropriate regmap and register set.
18475
6e7ffa39
JB
184762010-01-01 Joel Brobecker <brobecker@adacore.com>
18477
18478 * server.c (gdbserver_version): Update copyright year to 2010.
18479 * gdbreplay.c (gdbreplay_version): Likewise.
18480
957f3f49
DE
184812009-12-28 Doug Evans <dje@google.com>
18482
18483 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18484 elf/external.h. Include <elf.h> instead but only if necessary.
18485
ca5c370d
PA
184862009-12-28 Pedro Alves <pedro@codesourcery.com>
18487
18488 * linux-low.c (linux_remove_process): Remove `detaching'
18489 parameter. Don't release/detach from thread_db here.
18490 (linux_kill): Release/detach from thread_db here, ...
18491 (linux_detach): ... and here, before actually detaching.
18492 (linux_wait_1): ... and here, when a process exits.
18493 * thread-db.c (any_thread_of): New.
18494 (thread_db_free): Switch the current inferior to a thread of the
18495 passed in process.
18496
4ee62156
DE
184972009-12-21 Doug Evans <dje@google.com>
18498
d90e6a88
DE
18499 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18500
c5f62d5f
DE
18501 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18502 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18503 warning ifndef __NR_tkill. Move setting of errno there too.
18504 Delete unnecessary resetting of errno after syscall.
18505 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18506
10e86dd7
DE
18507 * configure.ac: Check for dladdr.
18508 * config.in: Regenerate.
18509 * configure: Regenerate.
18510 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18511 (try_thread_db_load): Update.
18512
4ee62156
DE
18513 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18514
00f515da
DE
185152009-12-18 Doug Evans <dje@google.com>
18516
e9464885
DE
18517 * event-loop.c: Include unistd.h if it exists.
18518
07d4f67e
DE
18519 * linux-low.c (my_waitpid): Move definition away from being in
18520 between linux_tracefork_child/linux_test_for_tracefork.
18521
00f515da
DE
18522 * gdb_proc_service.h (psaddr_t): Fix type.
18523 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18524 signature to match glibc.
18525
1de1badb
DE
185262009-12-16 Doug Evans <dje@google.com>
18527
18528 * linux-low.c (linux_read_memory): Fix argument to read.
18529
aeeb81d1
PA
185302009-11-26 Pedro Alves <pedro@codesourcery.com>
18531
18532 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18533 events, don't leave current_inferior pointing at null.
18534
10357975
PA
185352009-11-26 Pedro Alves <pedro@codesourcery.com>
18536
18537 * win32-low.c (LOG): Delete.
18538 (OUTMSG): Output to stderr.
18539 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18540 on compile time LOG macro.
18541 (win32_wait): Fix debug output.
18542
cf6e3471
PA
185432009-11-26 Pedro Alves <pedro@codesourcery.com>
18544
18545 * win32-low.c (win32_add_one_solib): If the dll name is
18546 "ntdll.dll", prepend the system directory to the dll path.
18547
0c85e18e
MK
185482009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18549
18550 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18551
9ac544ce 185522009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18553 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18554
18555 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18556 * configure.ac: Check for __mcoldfire__ and set
18557 gdb_cv_m68k_is_coldfire.
18558 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18559 reg-cf.o and reg-m68k.o.
18560 * configure: Regenerated.
18561
fd7dd3e6
PA
185622009-11-16 Pedro Alves <pedro@codesourcery.com>
18563
18564 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18565 Pass it to thread_db_free.
18566 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18567 proper `detaching' argument to linux_remove_process.
18568 * linux-low.h (thread_db_free): Add `detaching' parameter.
18569 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18570 to thread_db_free.
18571 (thread_db_free): Add `detaching' parameter. Only
18572 call td_ta_clear_event if detaching from process.
18573
75aa492e
MK
185742009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18575
18576 * thread-db.c (thread_db_free): Fix typo.
18577
21e1bee4
PP
185782009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18579
18580 PR gdb/10838
18581 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18582
8838b45e
NS
185832009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18584
18585 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18586 with an i686 compiler.
18587 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18588 needed.
18589 * configure: Rebuilt.
18590
8a35fb51
SL
185912009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18592
18593 PR gdb/10783
18594
18595 * server.c (handle_search_memory_1): Correct read_addr initialization
18596 in loop for searching subsequent chunks.
18597
96f15937
PP
185982009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18599
18600 * configure.ac: New --with-libthread-db option.
18601 * thread-db.c: Allow direct dependence on libthread_db.
18602 (thread_db_free): Adjust.
18603 * config.in: Regenerate.
18604 * configure: Likewise.
889bf7c5 18605
5f7d1694
PP
186062009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18607
18608 PR gdb/10757
18609 * thread-db.c (attach_thread): New function.
18610 (maybe_attach_thread): Return success/failure.
18611 (find_new_threads_callback): Adjust.
889bf7c5
PA
18612 (thread_db_find_new_threads): Loop until no new threads.
18613
88e3b899
PA
186142009-10-13 Pedro Alves <pedro@codesourcery.com>
18615
18616 * proc-service.c (ps_lgetregs): Formatting.
18617
cdbfd419
PP
186182009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18619
18620 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18621 * configure.ac: Adjust.
18622 * linux-low.h (struct process_info_private): Move members to struct
18623 thread_db.
18624 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18625 * linux-low.c (linux_remove_process): Adjust.
18626 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18627 * server.c (handle_query): Move code ...
18628 (handle_monitor_command): ... here. New function.
18629 * target.h (struct target_ops): New member.
18630 * thread-db.c (struct thread_db): New.
18631 (libthread_db_search_path): New variable.
18632 (thread_db_create_event, thread_db_enable_reporting)
18633 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18634 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18635 (try_thread_db_load_1, dladdr_to_soname): New functions.
18636 (try_thread_db_load, thread_db_load_search): New functions.
18637 (thread_db_init): Search for libthread_db.
18638 (thread_db_free): New function.
18639 (thread_db_handle_monitor_command): Likewise.
18640 * config.in: Regenerate.
18641 * configure: Regenerate.
889bf7c5 18642
4168d2d6
UW
186432009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18644
18645 * spu-low.c (spu_kill): Wait for inferior to terminate.
18646 Call clear_inferiors.
18647 (spu_detach): Call clear_inferiors.
18648
81ecdfbb
RW
186492009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18650
18651 * aclocal.m4: Regenerate.
18652 * config.in: Likewise.
18653 * configure: Likewise.
18654
0b9ff2c0
UW
186552009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18656
18657 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18658 (parse_spufs_run): New function.
18659 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18660 (ppc_breakpoint_at): Handle SPU breakpoints.
18661
efcbbd14
UW
186622009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18663
18664 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18665 (SPUFS_MAGIC): Define.
18666 (spu_enumerate_spu_ids): New function.
18667 (linux_qxfer_spu): New function.
18668 (linux_target_ops): Install linux_qxfer_spu.
18669
f4d9bade
UW
186702009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18671
18672 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18673 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18674 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18675 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18676 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18677 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18678 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18679 (init_registers_powerpc_cell32l): Add prototype.
18680 (init_registers_powerpc_cell64l): Likewise.
18681 (ppc_arch_setup): Detect Cell/B.E. architecture.
18682
96e946ca
RW
186832009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18684
18685 * Makefile.in (datarootdir): New variable.
18686
58d6951d
DJ
186872009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18688
18689 * linux-low.c (linux_write_memory): Update debugging output.
18690 * Makefile.in (clean): Add new descriptions.
18691 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18692 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18693 * configure.srv: Add new files for arm*-*-linux*.
18694 * linux-arm-low.c: Add new declarations.
18695 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18696 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18697 (HWCAP_VFPv3D16): New.
18698 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18699 instead of __IWMMXT__.
18700 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18701 (arm_arch_setup): New.
18702 (target_regsets): Remove #ifdef. Add VFP regset.
18703 (the_low_target): Use arm_arch_setup.
18704
12b42a12
DJ
187052009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18706
18707 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18708 the main thread again.
18709
ac8c974e
AR
187102009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18711
18712 Adding Neutrino gdbserver.
18713 * configure: Regenerated.
18714 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18715 * configure.srv (i[34567]86-*-nto*): New target.
18716 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18717 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18718 (nto_comctrl) [__QNX__]: New function.
18719 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18720
4424e0c3 187212009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18722
18723 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18724 srv_tgtobj.
18725
912cf4ba
PA
187262009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18727 Pedro Alves <pedro@codesourcery.com>
18728
18729 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18730 don't support CONTEXT_EXTENDED_REGISTERS.
18731 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18732 (the_low_target): Install them.
18733 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18734 failing with ERROR_PIPE_NOT_CONNECTED.
18735
aa5ca48f
DE
187362009-06-30 Doug Evans <dje@google.com>
18737 Pierre Muller <muller@ics.u-strasbg.fr>
18738
18739 Add h/w watchpoint support to x86-linux, win32-i386.
18740 * Makefile.in (SFILES): Add i386-low.c
18741 (i386_low_h): Define.
18742 (i386-low.o): Add dependencies.
18743 (linux-x86-low.o): Add i386-low.h dependency.
18744 (win32-i386-low.o): Ditto.
18745 * i386-low.c: New file.
18746 * i386-low.h: New file.
18747 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18748 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18749 * linux-low.c (linux_add_process): Initialize arch_private.
18750 (linux_remove_process): Free arch_private.
18751 (add_lwp): Initialize arch_private.
18752 (delete_lwp): Free arch_private.
18753 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18754 provided.
18755 * linux-low.h (process_info_private): New member arch_private.
18756 (lwp_info): New member arch_private.
18757 (linux_target_ops): New members new_process, new_thread,
18758 prepare_to_resume.
18759 (ptid_of): New macro.
18760 * linux-x86-low.c: Include stddef.h, i386-low.h.
18761 (arch_process_info): New struct.
18762 (arch_lwp_info): New struct.
18763 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18764 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18765 (i386_dr_low_get_status): New function.
18766 (x86_insert_point, x86_remove_point): New functions.
18767 (x86_stopped_by_watchpoint): New function.
18768 (x86_stopped_data_address): New function.
18769 (x86_linux_new_process, x86_linux_new_thread): New functions.
18770 (x86_linux_prepare_to_resume): New function.
18771 (the_low_target): Add entries for insert_point, remove_point,
18772 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18773 prepare_to_resume.
18774 * server.c (debug_hw_points): New global.
18775 (monitor_show_help): Document set debug-hw-points.
18776 (handle_query): Process "set debug-hw-points".
18777 * server.h (debug_hw_points): Declare.
18778 (paddress): Declare.
18779 * utils.c (NUMCELLS, CELLSIZE): New macros.
18780 (get_sell, xsnprintf, paddress): New functions.
18781 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18782 remove_point, stopped_by_watchpoint, stopped_data_address.
18783 * win32-i386-low.c: Include i386-low.h.
18784 (debug_reg_state): Replaces dr.
18785 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18786 (i386_dr_low_get_status): New function.
18787 (i386_insert_point, i386_remove_point): New functions.
18788 (i386_stopped_by_watchpoint): New function.
18789 (i386_stopped_data_address): New function.
18790 (i386_initial_stuff): Update.
18791 (get_thread_context,set_thread_context,i386_thread_added): Update.
18792 (the_low_target): Add entries for insert_point,
18793 remove_point, stopped_by_watchpoint, stopped_data_address.
18794 * win32-low.c (win32_insert_watchpoint): New function.
18795 (win32_remove_watchpoint): New function.
18796 (win32_stopped_by_watchpoint): New function.
18797 (win32_stopped_data_address): New function.
18798 (win32_target_ops): Add entries for insert_watchpoint,
18799 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18800 * win32-low.h (win32_target_ops): New members insert_point,
18801 remove_point, stopped_by_watchpoint, stopped_data_address.
18802
d993e290
PA
188032009-06-25 Pedro Alves <pedro@codesourcery.com>
18804
18805 * server.c (process_serial_event): Re-return unsupported, not
18806 error, if the type isn't recognized. Re-allow supporting only
18807 insert or remove packets. Also call require_running for
18808 breakpoints. Add missing break statement to default case. Tidy.
18809 * target.h (struct target_ops): Rename insert_watchpoint to
18810 insert_point, and remove_watchpoint to remove_point.
18811
18812 * linux-low.h (struct linux_target_ops): Likewise.
18813 * linux-low.c (linux_insert_watchpoint): Rename to ...
18814 (linux_insert_point): ... this. Adjust.
18815 (linux_remove_watchpoint): Rename to ...
18816 (linux_remove_point): ... this. Adjust.
18817 (linux_target_ops): Adjust.
18818 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18819 (cris_insert_point): ... this.
18820 (cris_remove_watchpoint): Rename to ...
18821 (cris_remove_point): ... this.
18822 (the_low_target): Adjust.
18823
0f54c268
PM
188242009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18825
18826 * server.c (handle_v_kill): Pass signal_pid to
18827 kill_inferior if multi_process is zero.
18828
c6314022
AR
188292009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18830
18831 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18832 * target.h (target_ops): Comment for *_watchpoint to make it clear
18833 the functions can get types '0' and '1'.
18834
4463ce24
AR
188352009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18836
18837 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18838 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18839 * regcache.c (get_regcache): Likewise.
18840 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18841 * win32-low.c (child_fetch_inferior_registers): Remove check for
18842 regno 0.
18843
cf8fd78b
PA
188442009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18845 Pedro Alves <pedro@codesourcery.com>
18846
18847 * target.h (struct target_ops) <supports_multi_process>: New
18848 callback.
18849 (target_supports_multi_process): New.
18850 * server.c (handle_query): Even if GDB reports support, only
18851 enable multi-process if the target also supports it. Report
18852 multi-process support only if the target backend supports it.
18853 * linux-low.c (linux_supports_multi_process): New function.
18854 (linux_target_ops): Install it as target_supports_multi_process
18855 callback.
18856
47c0c975
DE
188572009-05-24 Doug Evans <dje@google.com>
18858
e09875d4
DE
18859 Global renaming of find_thread_pid to find_thread_ptid.
18860 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18861 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18862 All callers updated.
18863
e27d73f6
DE
18864 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18865 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18866 directly.
18867
47c0c975
DE
18868 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18869 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18870 (linux_resume_one_lwp): Ditto.
18871
2acc282a
DE
188722009-05-23 Doug Evans <dje@google.com>
18873
18874 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18875 from struct inferior_list_entry * to struct lwp_info *.
18876 All callers updated.
18877
9f1036c1
DE
188782009-05-13 Doug Evans <dje@google.com>
18879
18880 * linux-x86-low.c: Don't include assert.h.
18881 (x86_siginfo_fixup): Use fatal, not assert.
18882 (x86_arch_setup): Fix comment.
18883
d0722149
DE
188842009-05-12 Doug Evans <dje@google.com>
18885
18886 Biarch support for i386/amd64 gdbserver.
18887 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18888 Add linux-x86-low.c.
18889 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18890 (linux-x86-low.o): Add.
18891 * linux-x86-64-low.c: Delete.
18892 * linux-i386-low.c: Delete.
18893 * linux-x86-low.c: New file.
18894 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18895 linux-x86-low.o.
18896 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18897 linux-x86-low.o.
18898 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18899 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18900 (linux_child_pid_to_exec_file): New function.
18901 (elf_64_header_p, elf_64_file_p): New functions.
18902 (siginfo_fixup): New function.
18903 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18904 give target a chance to convert layout.
18905 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18906 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18907
fdeb2a12
DE
189082009-05-07 Doug Evans <dje@google.com>
18909
18910 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18911 (regsets_store_inferior_registers): Ditto.
18912
a6dbe5df
PA
189132009-05-06 Pedro Alves <pedro@codesourcery.com>
18914
18915 PR server/10048
18916
18917 * linux-low.c (must_set_ptrace_flags): Delete.
18918 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18919 of the global.
18920 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18921 `lwp->must_set_ptrace_flags' instead.
ba42693b 18922 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
18923 (linux_wait_1): ... not here.
18924
5091eb23
DE
189252009-04-30 Doug Evans <dje@google.com>
18926
9f767825
DE
18927 * inferiors.c (started_inferior_callback): New function.
18928 (attached_inferior_callback): New function.
18929 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18930 * server.c (print_started_pid, print_attached_pid): New functions.
18931 (detach_or_kill_for_exit): New function.
18932 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18933 * server.h (have_started_inferiors_p): Declare.
18934 (have_attached_inferiors_p): Declare.
18935
5091eb23
DE
18936 * inferiors.c (remove_process): Fix memory leak, free process.
18937 * linux-low.c (linux_remove_process): New function.
18938 (linux_kill): Call it instead of remove_process.
18939 (linux_detach, linux_wait_1): Ditto.
18940
155c8968
PA
189412009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18942
18943 * configure.srv: Add x86 Windows CE target.
18944
7fe519cb
UW
189452009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18946
18947 * inferiors.c (get_thread_process): Make global.
18948 * server.h (get_thread_process): Add prototype.
18949 * thread-db.c (find_one_thread): Use get_thread_process
18950 instead of current_process.
18951 (thread_db_get_tls_address): Do not crash if called when
18952 thread layer is not yet initialized.
18953
5472f405
UW
189542009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18955
18956 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18957 * spu-low.c (current_tid): Rename to ...
18958 (current_ptid): ... this.
18959 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18960 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18961 ptid_get_lwp (current_ptid) instead of current_tid.
18962 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18963 instead of current_tid. Use find_process_pid to verify pid
18964 argument is valid. Pass proper argument to remove_process.
18965 (spu_thread_alive): Compare current_ptid instead of current_tid.
18966 (spu_resume): Likewise.
18967
55ac2b99
PA
189682009-04-02 Pedro Alves <pedro@codesourcery.com>
18969
18970 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18971 variable.
18972
95954743
PA
189732009-04-01 Pedro Alves <pedro@codesourcery.com>
18974
18975 Implement the multiprocess extensions, and add linux multiprocess
18976 support.
18977
18978 * server.h (ULONGEST): Declare.
18979 (struct ptid, ptid_t): New.
18980 (minus_one_ptid, null_ptid): Declare.
18981 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18982 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18983 (struct inferior_list_entry): Change `id' type from unsigned from
18984 to ptid_t.
18985 (struct sym_cache, struct breakpoint, struct
18986 process_info_private): Forward declare.
18987 (struct process_info): Declare.
18988 (current_process): Declare.
18989 (all_processes): Declare.
18990 (initialize_inferiors): Declare.
18991 (add_thread): Adjust to use ptid_t.
18992 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18993 (add_process, remove_process, find_thread_pid): Declare.
18994 (find_inferior_id): Adjust to use ptid_t.
18995 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18996 (multi_process): Declare.
18997 (push_event): Adjust to use ptid_t.
18998 (read_ptid, write_ptid): Declare.
18999 (prepare_resume_reply): Adjust to use ptid_t.
19000 (clear_symbol_cache): Declare.
19001 * inferiors.c (all_processes): New.
19002 (null_ptid, minus_one_ptid): New.
19003 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19004 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19005 (add_thread): Change unsigned long to ptid. Remove gdb_id
19006 parameter. Adjust.
19007 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19008 (gdb_id_to_thread): Rename to ...
19009 (find_thread_pid): ... this. Change unsigned long to ptid.
19010 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19011 (loaded_dll, pull_pid_from_list): Adjust.
19012 (add_process, remove_process, find_process_pid)
19013 (get_thread_process, current_process, initialize_inferiors): New.
19014 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19015 (struct target_waitstatus) <related_pid>: Ditto.
19016 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19017 return type to int.
19018 (struct target_ops) <join>: Add `pid' argument.
19019 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19020 (struct target_ops) <wait>: Add `ptid' field. Change return type
19021 to ptid.
19022 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19023 (mywait): Add `ptid' argument. Change return type to ptid_t.
19024 (target_pid_to_str): Declare.
19025 * target.c (set_desired_inferior): Adjust to use ptids.
19026 (mywait): Add new `ptid' argument. Adjust.
19027 (target_pid_to_str): New.
19028 * mem-break.h (free_all_breakpoints): Declare.
19029 * mem-break.c (breakpoints): Delelete.
19030 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19031 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19032 to use per-process breakpoint list.
19033 (free_all_breakpoints): New.
19034 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19035 (symbol_cache, all_symbols_looked_up): Delete.
19036 (hexchars): New.
19037 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19038 read_ptid): New.
19039 (prepare_resume_reply): Change ptid argument's type from unsigned
19040 long to ptid_t. Adjust. Implement W;process and X;process.
19041 (free_sym_cache, clear_symbol_cache): New.
19042 (look_up_one_symbol): Adjust to per-process symbol cache. *
19043 * server.c (cont_thread, general_thread, step_thread): Change type
19044 to ptid_t.
19045 (attached): Delete.
19046 (multi_process): New.
19047 (last_ptid): Change type to ptid_t.
19048 (struct vstop_notif) <ptid>: Change type to ptid_t.
19049 (queue_stop_reply, push_event): Change `ptid' argument's type to
19050 ptid_t.
19051 (discard_queued_stop_replies): Add `pid' argument.
19052 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19053 changes. Don't reference the `attached' global.
19054 (attach_inferior): Adjust to mywait interface changes.
19055 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19056 features. Handle and report "multiprocess+". Handle
19057 "qAttached:PID".
19058 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19059 changes.
19060 (handle_v_kill): New.
19061 (handle_v_stopped): Adjust to use target_pid_to_str.
19062 (handle_v_requests): Allow multiple attaches and runs when
19063 multiprocess extensions are in effect. Handle "vKill".
19064 (myresume): Adjust to use ptids.
19065 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19066 (handle_status): Adjust to discard_queued_stop_replies interface
19067 change.
19068 (first_thread_of, kill_inferior_callback)
19069 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19070 (main): Call initialize_inferiors. Adjust to use ptids, killing
19071 and detaching from all inferiors. Handle multiprocess packet
19072 variants.
19073 * linux-low.h: Include gdb_proc_service.h.
19074 (struct process_info_private): New.
19075 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19076 <lwpid_of>: Use ptid_get_lwp.
19077 (get_lwp_thread): Adjust.
19078 (struct lwp_info): Add `dead' member.
19079 (find_lwp_pid): Declare.
19080 * linux-low.c (thread_db_active): Delete.
19081 (new_inferior): Adjust comment.
19082 (inferior_pid): Delete.
19083 (linux_add_process): New.
19084 (handle_extended_wait): Adjust.
19085 (add_lwp): Change unsigned long to ptid.
19086 (linux_create_inferior): Add process to processes table. Adjust
19087 to use ptids. Don't set new_inferior here.
19088 (linux_attach_lwp): Rename to ...
19089 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19090 it. Adjust to use ptids.
19091 (linux_attach_lwp): New.
19092 (linux_attach): Add process to processes table. Don't set
19093 new_inferior here.
19094 (struct counter): New.
19095 (second_thread_of_pid_p, last_thread_of_process_p): New.
19096 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19097 multiple processes.
19098 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19099 processes. Remove process from process table.
19100 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19101 to multiple processes.
19102 (any_thread_of): New.
19103 (linux_detach): Add `pid' argument, and handle it. Remove process
19104 from processes table.
19105 (linux_join): Add `pid' argument. Handle it.
19106 (linux_thread_alive): Change unsighed long argument to ptid_t.
19107 Consider dead lwps as not being alive.
19108 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19109 threads we're not interested in.
19110 (same_lwp, find_lwp_pid): New.
19111 (linux_wait_for_lwp): Change `pid' argument's type from int to
19112 ptid_t. Adjust.
19113 (linux_wait_for_event): Rename to ...
19114 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19115 from int to ptid_t. Adjust.
19116 (linux_wait_for_event): New.
19117 (linux_wait_1): Add `ptid' argument. Change return type to
19118 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19119 that exit from the process table.
19120 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19121 Adjust.
19122 (mark_lwp_dead): New.
19123 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19124 stopping all threads, mark its main lwp as dead.
19125 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19126 ptids.
19127 (fetch_register, usr_store_inferior_registers)
19128 (regsets_fetch_inferior_registers)
19129 (regsets_store_inferior_registers, linux_read_memory)
19130 (linux_write_memory): Inline `inferior_pid'.
19131 (linux_look_up_symbols): Adjust to use per-process
19132 `thread_db_active'.
19133 (linux_request_interrupt): Adjust to use ptids.
19134 (linux_read_auxv): Inline `inferior_pid'.
19135 (initialize_low): Don't reference thread_db_active.
19136 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19137 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19138 (ps_getpid): Return the pid of the current inferior.
19139 * thread-db.c (proc_handle, thread_agent): Delete.
19140 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19141 per-process data.
19142 (find_one_thread): Change argument type to ptid_t. Adjust to
19143 per-process data.
19144 (maybe_attach_thread): Adjust to per-process data and ptids.
19145 (thread_db_find_new_threads): Ditto.
19146 (thread_db_init): Ditto.
19147 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19148 processes table. Adjust to use ptids.
19149 (spu_kill, spu_detach): Adjust interface. Remove process from
19150 processes table.
19151 (spu_join, spu_thread_alive): Adjust interface.
19152 (spu_wait): Adjust interface. Remove process from processes
19153 table. Adjust to use ptids.
19154 * win32-low.c (current_inferior_tid): Delete.
19155 (current_inferior_ptid): New.
19156 (debug_event_ptid): New.
19157 (thread_rec): Take a ptid. Adjust.
19158 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19159 (child_delete_thread): Ditto.
19160 (do_initial_child_stuff): Add `attached' argument. Add process to
19161 processes table.
19162 (child_fetch_inferior_registers, child_store_inferior_registers):
19163 Adjust.
19164 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19165 (win32_attach): Pass 1 to do_initial_child_stuff.
19166 (win32_kill): Adjust interface. Remove process from processes
19167 table.
19168 (win32_detach): Ditto.
19169 (win32_join): Adjust interface.
19170 (win32_thread_alive): Take a ptid.
19171 (win32_resume): Adjust to use ptids.
19172 (get_child_debug_event): Ditto.
19173 (win32_wait): Adjust interface. Remove exiting process from
19174 processes table.
19175
bd99dc85
PA
191762009-04-01 Pedro Alves <pedro@codesourcery.com>
19177
19178 Non-stop mode support.
19179
19180 * server.h (non_stop): Declare.
19181 (gdb_client_data, handler_func): Declare.
19182 (delete_file_handler, add_file_handler, start_event_loop):
19183 Declare.
19184 (handle_serial_event, handle_target_event, push_event)
19185 (putpkt_notif): Declare.
19186 * target.h (enum resume_kind): New.
19187 (struct thread_resume): Replace `step' field by `kind' field.
19188 (TARGET_WNOHANG): Define.
19189 (struct target_ops) <wait>: Add `options' argument.
19190 <supports_non_stop, async, start_non_stop>: New fields.
19191 (target_supports_non_stop, target_async): New.
19192 (start_non_stop): Declare.
19193 (mywait): Add `options' argument.
19194 * target.c (mywait): Add `options' argument. Print child exit
19195 notifications here.
19196 (start_non_stop): New.
19197 * server.c (non_stop, own_buf, mem_buf): New globals.
19198 (struct vstop_notif): New.
19199 (notif_queue): New global.
19200 (queue_stop_reply, push_event, discard_queued_stop_replies)
19201 (send_next_stop_reply): New.
19202 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19203 interface changes.
19204 (attach_inferior): In non-stop mode, don't wait for the target
19205 here.
19206 (handle_general_set): Handle QNonStop.
19207 (handle_query): When handling qC, return the current general
19208 thread, instead of the first thread of the list.
19209 (handle_query): If the backend supports non-stop mode, include
19210 QNonStop+ in the qSupported query response.
19211 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19212 and non-stop mode.
19213 (handle_v_attach, handle_v_run): Handle non-stop mode.
19214 (handle_v_stopped): New.
19215 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19216 (myresume): Adjust to use resume_kind. Handle non-stop.
19217 (queue_stop_reply_callback): New.
19218 (handle_status): Handle non-stop mode.
19219 (main): Clear non_stop flag on reconnection. Use the event-loop.
19220 Refactor serial protocol handling from here ...
19221 (process_serial_event): ... to this new function. When GDB
19222 selects any thread, select one here. In non-stop mode, wait until
19223 GDB acks all pending events before exiting.
19224 (handle_serial_event, handle_target_event): New.
19225 * remote-utils.c (remote_open): Install remote_desc in the event
19226 loop.
19227 (remote_close): Remove remote_desc from the event loop.
19228 (putpkt_binary): Rename to...
19229 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19230 (putpkt_binary): New as wrapper around putpkt_binary_1.
19231 (putpkt_notif): New.
19232 (prepare_resume_reply): In non-stop mode, don't change the
19233 general_thread.
19234 * event-loop.c: New.
19235 * Makefile.in (OBJ): Add event-loop.o.
19236 (event-loop.o): New rule.
19237
19238 * linux-low.h (pid_of): Moved here.
19239 (lwpid_of): New.
19240 (get_lwp_thread): Use lwpid_of.
19241 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19242 * linux-low.c (pid_of): Delete.
19243 (inferior_pid): Use lwpid_of.
19244 (linux_event_pipe): New.
19245 (target_is_async_p): New.
19246 (delete_lwp): New.
19247 (handle_extended_wait): Use lwpid_of.
19248 (add_lwp): Don't set lwpid field.
19249 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19250 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19251 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19252 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19253 first. Adjust to linux_wait_for_event interface changes. Use
19254 lwpid_of.
19255 (linux_detach): Don't delete the main lwp here.
19256 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19257 (status_pending_p): Don't consider explicitly suspended lwps.
19258 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19259 pointer. Add OPTIONS argument. Change return type to int. Use
19260 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19261 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19262 pointer. Add status pointer argument. Return a pid instead of a
19263 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19264 changes. In non-stop mode, don't switch to a random thread.
19265 (linux_wait): Rename to...
19266 (linux_wait_1): ... this. Add target_options argument, and handle
19267 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19268 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19269 clean exit and signal exit code. Don't stop all threads in
19270 non-stop mode. In all-stop mode, only stop all threads when
19271 reporting a stop to GDB. Handle explicit thread stop requests.
19272 (async_file_flush, async_file_mark): New.
19273 (linux_wait): New.
19274 (send_sigstop): Use lwpid_of.
19275 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19276 interface changes. In non-stop mode, don't switch to a random
19277 thread.
19278 (linux_resume_one_lwp): Use lwpid_of.
19279 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19280 (linux_resume_one_thread): ... this. Handle resume_stop. In
19281 non-stop mode, don't look for pending flag in all threads.
19282 (resume_status_pending_p): Don't consider explicitly suspended
19283 threads.
19284 (my_waitpid): Reimplement. Emulate __WALL.
19285 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19286 Use lwpid_of.
19287 (sigchld_handler, linux_supports_non_stop, linux_async)
19288 (linux_start_non_stop): New.
19289 (linux_target_ops): Register linux_supports_non_stop, linux_async
19290 and linux_start_non_stop.
19291 (initialize_low): Install SIGCHLD handler.
19292 * thread-db.c (thread_db_create_event, find_one_thread)
19293 (thread_db_get_tls_address): Use lwpid_of.
19294 * win32-low.c (win32_detach): Adjust to use resume_kind.
19295 (win32_wait): Add `options' argument.
19296 * spu-low.c (spu_resume): Adjust to use resume_kind.
19297 (spu_wait): Add `options' argument.
19298
5b1c542e
PA
192992009-04-01 Pedro Alves <pedro@codesourcery.com>
19300
19301 Decouple target code from remote protocol.
19302
19303 * target.h (enum target_waitkind): New.
19304 (struct target_waitstatus): New.
19305 (struct target_ops) <wait>: Return an unsigned long. Take a
19306 target_waitstatus pointer instead of a char pointer.
19307 (mywait): Likewise.
19308 * target.c (mywait): Change prototype to return an unsigned long.
19309 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19310 * server.h (thread_from_wait, old_thread_from_wait): Delete
19311 declarations.
19312 (prepare_resume_reply): Change prototype to take a
19313 target_waitstatus.
19314 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19315 (last_status, last_ptid): New.
19316 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19317 pid instead of a signal.
19318 (attach_inferior): Remove "status" and "signal" parameters.
19319 Adjust.
19320 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19321 not as an address.
19322 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19323 (handle_v_requests, myresume): Remove "status" and "signal"
19324 parameters. Adjust.
19325 (handle_status): New.
19326 (main): Delete local `status'. Adjust.
19327 * remote-utils.c: Include target.h.
19328 (prepare_resume_reply): Change prototype to take a
19329 target_waitstatus. Adjust.
19330
19331 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19332 interface.
19333 * spu-low.c (spu_wait): Adjust.
19334 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19335 Delete.
19336 (win32_wait): Adjust.
19337
2bd7c093
PA
193382009-04-01 Pedro Alves <pedro@codesourcery.com>
19339
19340 * target.h (struct thread_resume): Delete leave_stopped member.
19341 (struct target_ops): Add a `n' argument to the `resume' callback.
19342 * server.c (start_inferior): Adjust.
19343 (handle_v_cont, myresume): Adjust.
19344 * linux-low.c (check_removed_breakpoint): Adjust to resume
19345 interface change, and to removed leave_stopped field.
19346 (resume_ptr): Delete.
19347 (struct thread_resume_array): New.
19348 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19349 resume interface change.
19350 (linux_continue_one_thread, linux_queue_one_thread)
19351 (resume_status_pending_p): Check if the resume field is NULL
19352 instead of checking the leave_stopped member.
19353 (linux_resume): Adjust to the target resume interface change.
19354 * spu-low.c (spu_resume): Adjust to the target resume interface
19355 change.
19356 * win32-low.c (win32_detach, win32_resume): Ditto.
19357
c35fafde
PA
193582009-04-01 Pedro Alves <pedro@codesourcery.com>
19359
19360 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19361 flag.
19362 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19363 pending.
19364 (linux_continue_one_thread): Only preserve the stepping flag if
19365 there's a pending breakpoint.
19366
0a59d50b
PA
193672009-03-31 Pedro Alves <pedro@codesourcery.com>
19368
19369 * server.c (main): After the inferior having exited, call
19370 remote_close before exiting gdbserver.
19371
f04c6d38
TJB
193722009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19373
19374 Fix size of FPSCR in Power 7 processors.
19375 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19376 (PPC_FEATURE_HAS_DFP): New #define.
19377 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19378 size of the FPSCR.
19379
78e5cee6
PA
193802009-03-23 Pedro Alves <pedro@codesourcery.com>
19381
19382 * server.c (handle_query) Whitespace and formatting.
19383
1b3f6016
PA
193842009-03-22 Pedro Alves <pedro@codesourcery.com>
19385
19386 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19387 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19388 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19389 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19390 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19391 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19392 Makefile.in, configure.ac: Fix whitespace throughout.
19393 * configure: Regenerate.
19394
a07b2135
PA
193952009-03-22 Pedro Alves <pedro@codesourcery.com>
19396
19397 * inferiors.c (find_inferior): Make it safe for the callback
19398 function to delete the currently iterated inferior.
19399
67cc2626
PA
194002009-03-22 Pedro Alves <pedro@codesourcery.com>
19401
19402 * Makefile.in (linuw_low_h): Move higher.
19403 (thread-db.o): Depend on $(linux_low_h).
19404
54a0b537
PA
194052009-03-17 Pedro Alves <pedro@codesourcery.com>
19406
19407 Rename "process" to "lwp" throughout.
19408
19409 * linux-low.c (all_processes): Rename to...
19410 (all_lwps): ... this.
19411 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19412 (add_process): Rename to ...
19413 (add_lwp): ... this. Adjust.
19414 (linux_create_inferior): Adjust.
19415 (linux_attach_lwp): Adjust.
19416 (linux_attach): Adjust.
19417 (linux_kill_one_process): Rename to ...
19418 (linux_kill_one_lwp): ... this. Adjust.
19419 (linux_kill): Adjust.
19420 (linux_detach_one_process): Rename to ...
19421 (linux_detach_one_lwp): ... this. Adjust.
19422 (linux_detach): Adjust.
19423 (check_removed_breakpoint): Adjust.
19424 (status_pending_p): Adjust.
19425 (linux_wait_for_process): Rename to ...
19426 (linux_wait_for_lwp): ... this. Adjust.
19427 (linux_wait_for_event): Adjust.
19428 (send_sigstop): Adjust.
19429 (wait_for_sigstop): Adjust.
19430 (stop_all_processes): Rename to ...
19431 (stop_all_lwps): ... this.
19432 (linux_resume_one_process): Rename to ...
19433 (linux_resume_one_lwp): ... this. Adjust.
19434 (linux_set_resume_request, linux_continue_one_thread)
19435 (linux_queue_one_thread, resume_status_pending_p)
19436 (usr_store_inferior_registers, regsets_store_inferior_registers)
19437 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19438 Adjust.
19439 * linux-low.h (get_process): Rename to ...
19440 (get_lwp): ... this. Adjust.
19441 (get_thread_process): Rename to ...
19442 (get_thread_lwp): ... this. Adjust.
19443 (get_process_thread): Rename to ...
19444 (get_lwp_thread): ... this. Adjust.
19445 (struct process_info): Rename to ...
19446 (struct lwp_info): ... this.
19447 (all_processes): Rename to ...
19448 (all_lwps): ... this.
19449 * proc-service.c (ps_lgetregs): Adjust.
19450 * thread-db.c (thread_db_create_event, find_one_thread)
19451 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19452
0b16c5cf
PA
194532009-03-14 Pedro Alves <pedro@codesourcery.com>
19454
19455 * server.c (handle_query): Handle "qAttached".
19456
32de4b9d
NS
194572009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19458
19459 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19460 GPLv3, update license URL.
19461
2aecd87f
DE
194622009-03-01 Doug Evans <dje@google.com>
19463
93efd302 19464 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19465 (server_h): Add gdb_signals.h.
19466 (signals.o): Update.
19467 * server.h (target_signal_from_host,target_signal_to_host_p)
19468 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19469
86b1f9c5
PM
194702009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19471
19472 * remote-utils.c (getpkt): Also generate remote-debug
19473 information if noack_mode is set.
19474
4aa995e1
PA
194752009-02-06 Pedro Alves <pedro@codesourcery.com>
19476
19477 * server.c (handle_query): Report qXfer:siginfo:read and
19478 qXfer:siginfo:write as supported and handle them.
19479 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19480 * linux-low.c (linux_xfer_siginfo): New.
19481 (linux_target_ops): Set it.
19482
62709adf
PA
194832009-01-26 Pedro Alves <pedro@codesourcery.com>
19484
19485 * server.c (gdbserver_usage): Mention --remote-debug.
19486 (main): Accept '--remote-debug' switch.
19487
aef93bd7
DE
194882009-01-18 Doug Evans <dje@google.com>
19489
19490 * regcache.c (new_register_cache): No need to check result of xcalloc.
19491 * server.c (handle_search_memory): Back out calls to xmalloc,
19492 result is checked and error is returned to user upon failure.
19493 (handle_query): Ditto. Add more checks for result of malloc.
19494 (handle_v_cont): Check result of malloc, report error back to
19495 user upon failure.
19496 (handle_v_run): Ditto. Call freeargv.
19497 * server.h (freeargv): Declare.
19498 * utils.c (freeargv): New fn.
19499
54363045
DE
195002009-01-15 Doug Evans <dje@google.com>
19501
f626972c
DE
19502 * gdbreplay.c (perror_with_name): Make arg const char *.
19503 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19504 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19505 * utils.c (perror_with_name): Make arg const char *.
54363045 19506
18aae699
PA
195072009-01-14 Pedro Alves <pedro@codesourcery.com>
19508
19509 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19510 when handling a EXIT_PROCESS_DEBUG_EVENT.
19511
ff703abe
JB
195122009-01-06 Joel Brobecker <brobecker@adacore.com>
19513
19514 * gdbreplay.c (gdbreplay_version): Update copyright year.
19515 * server.c (gdbserver_version): Likewise.
19516
f21cc1a2 195172009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19518
19519 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19520 (handle_extended_wait): Improve comment.
0e21c1ec 19521
bca929d3
DE
195222008-12-13 Doug Evans <dje@google.com>
19523
19524 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19525 * server.h (ATTR_MALLOC): New macro.
19526 (xmalloc,xcalloc,xstrdup): Declare.
19527 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19528 * inferiors.c: Ditto.
19529 * linux-low.c: Ditto.
19530 * mem-break.c: Ditto.
19531 * regcache.c: Ditto.
19532 * remote-utils.c: Ditto.
19533 * server.c: Ditto.
19534 * target.c: Ditto.
19535 * win32-low.c: Ditto.
19536
97438e3f
DE
195372008-12-12 Doug Evans <dje@google.com>
19538
896c7fbb
DE
19539 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19540 in debugging printf.
19541
97438e3f
DE
19542 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19543
e3b886f8
DE
195442008-12-09 Doug Evans <dje@google.com>
19545
19546 * linux-low.h (struct process_info): Delete member tid, unused.
19547 * thread-db.c (find_one_thread): Update.
19548 (maybe_attach_thread): Update.
19549
07e059b5
VP
195502008-12-02 Pedro Alves <pedro@codesourcery.com>
19551
889bf7c5
PA
19552 * target.h (struct target_ops): Add qxfer_osdata member.
19553 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19554 and dirent.h.
19555 (linux_qxfer_osdata): New functions.
19556 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19557 callback.
19558 * server.c (handle_query): Handle "qXfer:osdata:read:".
19559 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19560 (buffer_xml_printf): New functions.
19561 * server.h (struct buffer): New.
19562 (buffer_grow_str, buffer_grow_str0): New macros.
19563 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19564 (buffer_xml_printf): Declare.
07e059b5 19565
4cab47ab
DE
195662008-11-24 Doug Evans <dje@google.com>
19567
19568 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19569
f142445f
DJ
195702008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19571
19572 * server.c (handle_v_run): Always use the supplied argument list.
19573
d0107bb6 195742008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19575
d0107bb6
BW
19576 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19577 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19578
2c4ad781
TJB
195792008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19580
19581 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19582 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19583 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19584 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19585 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19586 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19587 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19588 XML target descriptions.
19589 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19590 when inferior is running on an ISA 2.05 or later processor. Add
19591 special case to return offset for full 64-bit slot of FPSCR when
19592 in 32-bits.
19593
dfb64f85
DJ
195942008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19595
19596 * Makefile.in (SFILES, clean): Added sparc64 files.
19597 (reg-sparc64.o, reg-sparc64.c): New.
19598 * configure.srv (sparc*-*-linux*): New configuration.
19599 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19600 syscall arguments for SPARC.
19601 (regsets_store_inferior_registers): Likewise.
19602 * linux-sparc-low.c: New file.
19603
66b6e1dd
DE
196042008-10-21 Doug Evans <dje@google.com>
19605
19606 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19607 (READLINE_DIR,READLINE_DEP): Delete.
19608 (INTERNAL_CFLAGS): Update.
19609 (LINTFLAGS): Update.
19610
9b710a42
PA
196112008-10-10 Pedro Alves <pedro@codesourcery.com>
19612
19613 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19614 whole argv from the last run, not just argv[0].
19615
5822d809
PA
196162008-09-08 Pedro Alves <pedro@codesourcery.com>
19617
19618 * regcache.c (new_register_cache): Return NULL if the register
19619 cache size isn't known yet.
19620 (free_register_cache): Avoid dereferencing a NULL regcache.
19621
74aac56f
DJ
196222008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19623
19624 * configure.srv: Merge MIPS and MIPS64.
19625
400b20f5
MR
196262008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19627
19628 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19629
677c5bb1
LM
196302008-08-18 Luis Machado <luisgpm@br.ibm.com>
19631
19632 * Makefile.in: Add required vsx dependencies.
19633
19634 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19635 Declare init_registers_powerpc_vsx32l.
19636 Declare init_registers_powerpc_vsx64l.
19637 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19638 (ppc_arch_setup): Check for VSX in hwcap.
19639 (ppc_fill_vsxregset): New function.
19640 (ppc_store_vsxregset): New function.
19641 Add new VSX entry in regset_info target_regsets.
19642
19643 * configure.srv: Add new VSX dependencies.
19644
a6f3e723
SL
196452008-08-12 Pedro Alves <pedro@codesourcery.com>
19646
19647 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19648 (remote_open): Set or clear transport_is_reliable.
19649 (putpkt_binary): Don't expect acks in noack mode.
19650 (getpkt): Don't send ack/nac in noack mode.
19651 * server.c (handle_general_set): Handle QStartNoAckMode.
19652 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19653 qSupported.
19654 (main): Reset noack_mode on every connection.
19655 * server.h (noack_mode): Declare.
19656
a417dc56
RW
196572008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19658
19659 * Makefile.in (GDBREPLAY_OBS): New variable.
19660 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19661
3221518c
UW
196622008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19663 Daniel Jacobowitz <dan@codesourcery.com>
19664
19665 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19666 (usr_store_inferior_registers): Likewise.
19667 (regsets_store_inferior_registers): Likewise.
19668
ec56be1b
PA
196692008-07-31 Rolf Jansen <rj@surtec.com>
19670 Pedro Alves <pedro@codesourcery.com>
19671
19672 * configure.ac: Check for memmem declaration.
19673 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19674 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19675 (disable_packet_qfThreadInfo): Unconditionally compile.
19676 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19677 * configure, config.in: Regenerate.
19678
2fe5e3ff
DE
196792008-07-28 Doug Kwan <dougkwan@google.com>
19680
19681 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19682 (linux_write_memory): Remove declaration of errno.
19683
836acd6d
UW
196842008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19685
19686 * linux-low.c (handle_extended_wait): Do not use "status"
19687 variable uninitialized.
19688
aeba519e
PA
196892008-07-07 Pedro Alves <pedro@codesourcery.com>
19690
19691 * server.c (handle_v_attach): Inhibit reporting dll changes.
19692
db42f210
PA
196932008-06-27 Pedro Alves <pedro@codesourcery.com>
19694
19695 * remote-utils.c (prepare_resume_reply): If requested, don't
19696 output "thread:TID" in the T stop reply.
19697
19698 * server.c (disable_packet_vCont, disable_packet_Tthread)
19699 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19700 (handle_query): If requested, disable support for qC, qfThreadInfo
19701 and qsThreadInfo.
19702 (handle_v_requests): If requested, disable support for vCont.
19703 (gdbserver_show_disableable): New.
19704 (main): Handle --disable-packet and --disable-packet=LIST.
19705
19706 * server.h (disable_packet_vCont, disable_packet_Tthread)
19707 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19708
8e4c5421
CD
197092008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19710
19711 * server.c (gdbserver_usage): Mention --version.
19712
6e23a804
DJ
197132008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19714
19715 * Makefile.in (gdbreplay.o): New rule.
19716
90aa6a40
JM
197172008-06-06 Joseph Myers <joseph@codesourcery.com>
19718
19719 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19720 message, not gdbserver.
19721
c16158bc 197222008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19723 Nathan Sidwell <nathan@codesourcery.com>
19724 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19725
19726 * acinclude.m4: Include ../../config/acx.m4.
19727 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19728 * configure, config.in: Regenerate.
19729 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19730 * server.c (gdbserver_version): Print PKGVERSION.
19731 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19732 (main): Adjust gdbserver_usage calls.
19733 * gdbreplay.c (version, host_name): Add declarations.
19734 (gdbreplay_version, gdbreplay_usage): New.
19735 (main): Accept --version and --help options.
19736
aeb75bf5
DJ
197372008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19738
19739 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19740 (arm_breakpoint_at): Handle Thumb.
19741 (the_low_target): Add comment.
19742
76b233dd
UW
197432008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19744
19745 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19746
08388c79
DE
197472008-05-09 Doug Evans <dje@google.com>
19748
a3c83fae
DE
19749 * server.h (decode_search_memory_packet): Declare.
19750 * remote-utils.c (decode_search_memory_packet): New fn.
19751 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19752 (handle_search_memory): New fn.
19753 (handle_query): Process qSearch:memory packets.
19754
bb9c3d36
UW
197552008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19756
19757 * regcache.c (registers_length): Remove.
19758 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19759 full register packet.
19760 * regcache.h (registers_length): Remove prototype.
19761 * server.h (PBUFSIZ): Define to 16384.
19762
7284e1be
UW
197632008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19764
19765 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19766 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19767 powerpc-64l.o, and powerpc-altivec64l.o.
19768 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19769 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19770 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19771 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19772 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19773 to srv_xmlfiles.
19774
19775 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19776 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19777 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19778 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19779 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19780 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19781 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19782 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19783 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19784 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19785 (clean): Update.
19786
19787 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19788 (init_registers_powerpc_32l): ... this new prototype.
19789 (init_registers_powerpc_32): Remove, replace by ...
19790 (init_registers_powerpc_altivec32l): ... this new prototype.
19791 (init_registers_powerpc_e500): Remove, replace by ...
19792 (init_registers_powerpc_e500l): ... this new prototype.
19793 (init_registers_ppc64): Remove, replace by ...
19794 (init_registers_powerpc_64l): ... this new prototype.
19795 (init_registers_powerpc_64): Remove, replace by ...
19796 (init_registers_powerpc_altivec64l): ... this new prototype.
19797 (ppc_num_regs): Set to 73.
19798 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19799 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19800 (ppc_cannot_store_register): Handle orig_r3 and trap.
19801 (ppc_arch_setup): Update init_registers_... calls.
19802 (ppc_fill_gregset): Handle orig_r3 and trap.
19803
19804 * inferiors.c (clear_inferiors): Reset current_inferior.
19805
fdc59709
PB
198062008-04-23 Paolo Bonzini <bonzini@gnu.org>
19807
889bf7c5
PA
19808 * acinclude.m4: Add override.m4.
19809 * configure: Regenerate.
fdc59709 19810
c9b2f845
UW
198112008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19812
19813 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19814 initial call to init_register_ppc64.
19815
550512b8
UW
198162008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19817
43aaf8b6
PA
19818 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19819 single powerpc*-*-linux* case.
550512b8
UW
19820 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19821
b6430ec3
UW
198222008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19823
19824 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19825 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19826 from reg_xmlfiles.
19827 * linux-ppc-low.c: Include <elf.h>.
19828 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19829 (ppc_hwcap): New global variable.
19830 (ppc_regmap): Remove __SPE__ #ifdef sections.
19831 (ppc_regmap_e500): New global variable.
19832 (ppc_cannot_store_register): Update __SPE__ special case.
19833 (ppc_get_hwcap): New function.
19834 (ppc_arch_setup): Use it to determine whether inferior supports
19835 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19836 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19837 Do not access registers if target does not support AltiVec.
19838 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19839 Do not access registers if target does not support SPE.
19840 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19841
52fa2412
UW
198422008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19843
19844 * linux-low.c (disabled_regsets, num_regsets): New.
19845 (use_regsets_p): Delete.
19846 (linux_wait_for_process): Clear disabled_regsets.
19847 (regsets_fetch_inferior_registers): Check and set it.
19848 (regsets_store_inferior_registers): Likewise.
19849 (linux_fetch_registers, linux_store_registers): Do not use
19850 use_regsets_p.
19851 (initialize_low): Allocate disabled_regsets.
19852
e28b3332
DJ
198532008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19854
19855 * Makefile.in (LIBOBJS): New.
19856 (OBS): Use LIBOBJS.
19857 (memmem.o): New rule.
19858 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19859 * configure: Regenerated.
19860
4536995d
UW
198612008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19862
19863 * server.c (handle_query): Never return "unsupported" for
19864 qXfer:features:read queries.
19865
221c031f
UW
198662008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19867
19868 * server.c (get_features_xml): Fix inverted condition.
19869 (handle_query): Always support qXfer:feature:read.
19870
ccd213ac
DJ
198712008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19872
19873 * server.c (wrapper_argv): New.
19874 (start_inferior): Handle wrapper_argv. If set, expect an extra
19875 trap.
19876 (gdbserver_usage): Document --wrapper.
19877 (main): Parse --wrapper.
19878
6fe305f7
UW
198792008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19880
19881 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19882 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19883 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19884 (ppc_set_pc): Likewise.
19885 (ppc_arch_setup): New function.
19886 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19887 of collect_register.
889bf7c5 19888 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19889
5b0a002e
UW
198902008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19891
19892 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19893 instead of linux-ppc64-low.o.
19894 * linux-ppc64-low.c: Remove file.
19895 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19896 (linux-ppc64-low.o): Remove rule.
19897
19898 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19899 (init_registers_powerpc_64): Likewise.
19900 (ppc_regmap): Conditionally define depending on __powerpc64__.
19901 (ppc_cannot_store_register): Do not special-case "fpscr" when
19902 compiled on __powerpc64__.
19903 (ppc_collect_ptrace_register): New function.
19904 (ppc_supply_ptrace_register): New function.
19905 (ppc_breakpoint): Change type to "unsigned int".
19906 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19907 (the_low_target): Conditionally provide initializers for the
889bf7c5 19908 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19909 collect_ptrace_register and supply_ptrace_register members.
19910
9b4b61c8
UW
199112008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19912
19913 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19914 * server.c (gdbserver_xmltarget): Define.
19915 (get_features_xml): Use it to replace "target.xml" and arch_string.
19916
19917 * configure.srv: Remove srv_xmltarget. Add XML files that were
19918 mentioned there to srv_xmlfiles instead. Remove conditional tests
19919 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19920 srv_xmlfiles and srv_regobj to include all possible choices.
19921 * configure.ac (srv_xmltarget): Remove.
19922 (srv_xmlfiles): Do not add "target.xml".
19923 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19924 checks for supplementary target information.
19925 * configure: Regenerate.
19926 * Makefile.in (XML_TARGET): Remove.
19927 (target.xml): Remove rule.
19928 (clean): Do not clean up target.xml.
19929 (.PRECIOUS): Do not mention target.xml.
19930
19931 * target.h (struct target_ops): Remove arch_string member.
19932 * linux-low.c (linux_arch_string): Remove.
19933 (linux_target_ops): Remove arch_string initializer.
19934 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19935 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19936 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19937 * spu-low.c (spu_arch_string): Remove.
19938 (spu_target_ops): Remove arch_string initializer.
19939 * win32-low.c (win32_arch_string): Remove.
19940 (win32_target_ops): Remove arch_string initializer.
19941 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19942 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19943 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19944
ee1a7ae4
UW
199452008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19946
19947 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19948 by collect_ptrace_register and supply_ptrace_register hooks.
19949 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19950 instead of checking for the_low_target.left_pad_xfer.
19951 (usr_store_inferior_registers): Use collect_ptrace_register callback
19952 instead of checking for the_low_target.left_pad_xfer.
19953
19954 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19955 (s390_supply_ptrace_register): Likewise.
19956 (s390_fill_gregset): Call s390_collect_ptrace_register.
19957 (the_low_target): Update.
19958
19959 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19960 (ppc_supply_ptrace_register): Likewise.
19961 (the_low_target): Update.
19962
19963 * linux-i386-low.c (the_low_target): Update.
19964 * linux-x86-64-low.c (the_low_target): Update.
19965
d61ddec4
UW
199662008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19967
19968 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19969 reg-s390.o and reg-s390x.o.
19970
19971 * linux-low.c (new_inferior): New global variable.
19972 (linux_create_inferior, linux_attach): Set it.
19973 (linux_wait_for_process): Call the_low_target.arch_setup after the
19974 target has stopped for the first time.
19975 (initialize_low): Do not call the_low_target.arch_setup.
19976
19977 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19978 (s390_set_pc): Likewise.
19979 (s390_arch_setup): New function.
19980 (the_low_target): Use s390_arch_setup as arch_setup routine.
19981
19982 * regcache.c (realloc_register_cache): New function.
19983 (set_register_cache): Call it for each existing regcache.
19984
d05b4ac3
UW
199852008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19986
19987 * server.h (init_registers): Remove prototype.
19988
19989 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19990 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19991 instead of init_registers ().
19992 * linux-arm-low.c (init_registers_arm): Add prototype.
19993 (init_registers_arm_with_iwmmxt): Likewise.
19994 (the_low_target): Add initializer for arch_setup field.
19995 * linux-cris-low.c (init_registers_cris): Add prototype.
19996 (the_low_target): Add initializer for arch_setup field.
19997 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19998 (the_low_target): Add initializer for arch_setup field.
19999 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20000 (the_low_target): Add initializer for arch_setup field.
20001 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20002 (the_low_target): Add initializer for arch_setup field.
20003 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20004 (the_low_target): Add initializer for arch_setup field.
20005 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20006 (the_low_target): Add initializer for arch_setup field.
20007 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20008 (init_registers_mips64_linux): Likewise.
20009 (the_low_target): Add initializer for arch_setup field.
20010 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20011 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20012 (the_low_target): Add initializer for arch_setup field.
20013 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20014 (init_registers_powerpc_64): Likewise.
20015 (the_low_target): Add initializer for arch_setup field.
20016 * linux-s390-low.c (init_registers_s390): Add prototype.
20017 (init_registers_s390x): Likewise.
20018 (the_low_target): Add initializer for arch_setup field.
20019 * linux-sh-low.c (init_registers_sh): Add prototype.
20020 (the_low_target): Add initializer for arch_setup field.
20021 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20022 (the_low_target): Add initializer for arch_setup field.
20023 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20024 (the_low_target): Add initializer for arch_setup field.
20025
20026 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20027 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20028 instead of init_registers ().
20029 * win32-arm-low.c (init_registers_arm): Add prototype.
20030 (the_low_target): Add initializer for arch_setup field.
20031 * win32-i386-low.c (init_registers_i386): Add prototype.
20032 (the_low_target): Add initializer for arch_setup field.
20033
20034 * spu-low.c (init_registers_spu): Add prototype.
20035 (initialize_low): Call initialie_registers_spu () instead of
20036 initialize_registers ().
20037
fd96d250
PA
200382008-02-19 Pedro Alves <pedro@codesourcery.com>
20039
20040 * server.c (handle_v_requests): When handling the vRun and vAttach
20041 packets, if already debugging a process, don't kill it. Return an
20042 error instead.
20043
d41b6bb4
DJ
200442008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20045
20046 * server.c (handle_query): Correct length check.
20047
5ac588cf
PA
200482008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20049
20050 * win32-low.c (do_initial_child_stuff): Add process handle
20051 parameter. Set current_process_handle and current_process_id from the
20052 parameters. Clear globals.
20053 (win32_create_inferior): Don't set current_process_handle and
20054 current_process_id here. Instead pass them on the call to
20055 do_initial_child_stuff.
20056 (win32_attach): Likewise.
20057 (win32_clear_inferiors): New.
20058 (win32_kill): Don't close the current process handle or the
20059 current thread handle here. Instead call win32_clear_inferiors.
20060 (win32_detach): Don't open a new handle to the process. Call
20061 win32_clear_inferiors.
20062 (win32_join): Don't rely on current_process_handle; open a new
20063 handle using the process id.
20064 (win32_wait): Call win32_clear_inferiors when the inferior process
20065 has exited.
20066
ecd7ecbc
DJ
200672008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20068
20069 * server.c (monitor_show_help): Add "exit".
20070
1525d545
MG
200712008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20072
ecd7ecbc 20073 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20074 (clean): Add reg-xtensa.c.
20075 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20076 * configure.srv (xtensa*-*-linux*) New target.
20077 * linux-xtensa-low.c: New.
20078 * xtensa-xtregs.c: New.
1525d545 20079
59a016f0
PA
200802008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20081
20082 * hostio.c: Don't include errno.h.
20083 (errno_to_fileio_errno): Move to hostio-errno.
20084 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20085 error number outputting to the target->hostio_last_error callback.
20086 (hostio_packet_error): Use FILEIO_EINVAL directly.
20087 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20088 calls to hostio_error.
20089 * hostio-errno.c: New.
20090 * server.h (hostio_last_error_from_errno): Declare.
20091 * target.h (target_ops): Add hostio_last_error member.
20092 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20093 as hostio_last_error handler.
889bf7c5 20094 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20095 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20096 (wince_hostio_last_error): New functions.
20097 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20098 as hostio_last_error handler.
20099 (win32_target_ops) [!_WIN32_WCE]: Register
20100 hostio_last_error_from_errno as hostio_last_error handler.
20101 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20102 (hostio-errno.o): New rule.
20103 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20104 * configure.srv (srv_hostio_err_objs): New variable. Default to
20105 hostio-errno.o.
20106 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20107 * configure: Regenerate.
20108
2d717e4f
DJ
201092008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20110
20111 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20112 (linux_kill, linux_detach): Clean up the process list.
20113 * remote-utils.c (remote_open): Improve port number parsing.
20114 (putpkt_binary, input_interrupt): Only send interrupts if the target
20115 is running.
20116 * server.c (extended_protocol): Make static.
20117 (attached): Define earlier.
20118 (exit_requested, response_needed, program_argv): New variables.
20119 (target_running): New.
20120 (start_inferior): Clear attached here.
20121 (attach_inferior): Set attached here.
20122 (require_running): Define.
20123 (handle_query): Use require_running and target_running. Implement
20124 "monitor exit".
20125 (handle_v_attach, handle_v_run): New.
20126 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20127 (gdbserver_usage): Update.
20128 (main): Redo argument parsing. Handle --debug and --multi. Handle
20129 --attach along with other options or after the port. Save
20130 program_argv. Support no initial program. Resynchronize
20131 communication with GDB after an error. Handle "monitor exit".
20132 Use require_running and target_running. Always allow the extended
20133 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20134 restart in extended mode.
20135 * README: Refer to the GDB manual. Update --attach usage.
20136
7407e2de
AS
201372007-12-20 Andreas Schwab <schwab@suse.de>
20138
20139 * linux-low.c (STACK_SIZE): Define.
20140 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20141 (linux_test_for_tracefork): Likewise.
20142
b65d95c5
DJ
201432007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20144
20145 * linux-low.c (linux_wait_for_event): Update messages. Do not
20146 reinsert auto-delete breakpoints.
20147 * mem-break.c (struct breakpoint): Change return type of handler to
20148 int.
20149 (set_breakpoint_at): Update handler type.
20150 (reinsert_breakpoint_handler): Return 1 instead of calling
20151 delete_breakpoint.
20152 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20153 setting a new one.
20154 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20155 * mem-break.h (set_breakpoint_at): Update handler type.
20156 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20157 * win32-low.c (auto_delete_breakpoint): New.
20158 (get_child_debug_event): Use it.
20159
4e799345
DJ
201602007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20161
20162 * configure.ac: Check for pread and pwrite.
20163 * hostio.c (handle_pread): Fall back to lseek and read.
20164 (handle_pwrite): Fall back to lseek and write.
20165 * config.in, configure: Regenerated.
20166
27524b67
DJ
201672007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20168
20169 * server.c (myresume): Add own_buf argument.
20170 (main): Update calls.
20171
a20d5e98
DJ
201722007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20173
20174 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20175 * remote-utils.c (remote_open): Do not call disable_async_io.
20176 (block_async_io): Delete.
20177 (unblock_async_io): Make static.
20178 (initialize_async_io): New.
20179 * server.c (handle_v_cont): Handle async I/O here.
20180 (myresume): Likewise. Move other common resume tasks here...
20181 (main): ... from here. Call initialize_async_io. Disable async
20182 I/O before the main loop.
20183 * server.h (initialize_async_io): Declare.
20184 (block_async_io, unblock_async_io): Delete prototypes.
20185 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20186
b79d787e
DJ
201872007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20188
20189 * remote-utils.c (readchar): Allow binary data in received messages.
20190
d97903b2
PA
201912007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20192
20193 * win32-low.c (attaching): New global.
20194 (win32_create_inferior): Clear the `attaching' global.
20195 (win32_attach): Set the `attaching' global.
20196 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20197 attaching. Only set a breakpoint at the entry point if not
20198 attaching.
20199
311de423
PA
202002007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20201
20202 * server.c (main): Don't report dll events on the initial
20203 connection on attaches.
20204
6c2d16d2
PA
202052007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20206
20207 * server.c (main): Relax numerical bases supported for the pid of
20208 the --attach command line argument.
20209
5ca906e6
PA
202102007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20211
20212 * win32-low.c (win32_attach): Call OpenProcess before
20213 DebugActiveProcess, not after. Add last error output to error
20214 call.
20215
9c6c8194
PA
202162007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20217
20218 * win32-low.c (win32_get_thread_context)
20219 (win32_set_thread_context): New functions.
20220 (thread_rec): Use win32_get_thread_context.
20221 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20222 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20223 field.
20224
4d5d1aaa
PA
202252007-12-03 Leo Zayas
20226 Pedro Alves <pedro_alves@portugalmail.pt>
20227
20228 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20229 global variables.
20230 (child_add_thread): Minor cleanup.
20231 (child_continue): Resume artificially suspended threads before
20232 calling ContinueDebugEvent.
20233 (suspend_one_thread): New.
20234 (fake_breakpoint_event): New.
20235 (get_child_debug_event): Change return type to int. Check here if
20236 gdb sent an interrupt request. If a soft interrupt was requested,
20237 fake a breakpoint event. Return 0 if there is no event to handle,
20238 and 1 otherwise.
20239 (win32_wait): Don't check here if gdb sent an interrupt request.
20240 Ensure there is a valid event to handle.
20241 (win32_request_interrupt): Add soft interruption method as last
20242 resort.
20243
c436e841
PA
202442007-12-03 Leo Zayas
20245 Pedro Alves <pedro_alves@portugalmail.pt>
20246
20247 * win32-low.h (win32_thread_info): Add descriptions to the
20248 structure members. Replace `suspend_count' counter by a
20249 `suspended' flag.
20250 * win32-low.c (thread_rec): Update condition of when to get the
20251 context from the inferior. Rely on ContextFlags being set if it
20252 has already been retrieved. Only suspend the inferior thread if
20253 we haven't already. Warn if that fails.
20254 (continue_one_thread): s/suspend_count/suspended/. Only call
20255 ResumeThread once. Warn if that fails.
20256
e7b5fa67
PA
202572007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20258
20259 * win32-low.c (win32_wait): Don't read from the inferior when it
20260 has already exited.
20261
a385171d
PA
202622007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20263
20264 * Makefile.in (win32_low_h): New variable.
20265 (win32-low.o): Add dependency on $(win32_low_h).
20266 (win32-arm-low.o, win32-i386-low.o): New rules.
20267
f80c84b3
DJ
202682007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20269
20270 * hostio.c: Correct copyright year.
20271
a6b151f1
DJ
202722007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20273
20274 * Makefile.in (OBS): Add hostio.o.
20275 (hostio.o): New rule.
20276 * server.h (handle_vFile): Declare.
20277 * hostio.c: New file.
20278 * server.c (handle_v_requests): Take packet_len and new_packet_len
20279 for binary packets. Call handle_vFile.
20280 (main): Update call to handle_v_requests.
20281
f9387fc3
DJ
202822007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20283
20284 * linux-low.c: Include <sched.h>.
20285
51c2684e
DJ
202862007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20287
20288 * linux-low.c (linux_tracefork_grandchild): New.
20289 (linux_tracefork_child): Use clone.
20290 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20291
75f83163
JB
202922007-10-31 Joel Brobecker <brobecker@adacore.com>
20293
20294 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20295
da5898ce
DJ
202962007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20297
20298 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20299
24a09b5f
DJ
203002007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20301
20302 * inferiors.c (change_inferior_id): Delete.
20303 (add_pid_to_list, pull_pid_from_list): New.
20304 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20305 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20306 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20307 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20308 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20309 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20310 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20311 (using_threads): Always set to 1.
20312 (handle_extended_wait): New.
20313 (add_process): Do not set TID.
20314 (linux_create_inferior): Set must_set_ptrace_flags.
20315 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20316 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20317 (linux_thread_alive): Rename TID argument to LWPID.
20318 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20319 (linux_wait_for_event): Do not use TID or check using_threads. Update
20320 call to dead_thread_notify. Call handle_extended_wait.
20321 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20322 (send_sigstop): Delete sigstop_sent.
20323 (wait_for_sigstop): Avoid TID.
20324 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20325 (linux_test_for_tracefork): New.
20326 (linux_lookup_signals): Use thread_db_active and
20327 linux_supports_tracefork_flag.
20328 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20329 * linux-low.h (get_process_thread): Avoid TID.
20330 (struct process_ifo): Move thread_known and tid to the end. Remove
20331 sigstop_sent.
20332 (linux_attach_lwp, thread_db_init): Update prototypes.
20333 * server.h (change_inferior_id): Delete prototype.
20334 (add_pid_to_list, pull_pid_from_list): New prototypes.
20335 * thread-db.c (thread_db_use_events): New.
20336 (find_first_thread): Rename to...
20337 (find_one_thread): ...this. Update callers and messages. Do not
20338 call fatal. Check thread_db_use_events. Do not call
20339 change_inferior_id or new_thread_notify.
20340 (maybe_attach_thread): Update. Do not call new_thread_notify.
20341 (thread_db_init): Set thread_db_use_events. Check use_events.
20342 * utils.c (fatal, warning): Correct message prefix.
20343
30ed0a8f
DJ
203442007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20345
20346 * Makefile.in (clean): Remove new files.
20347 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20348 (powerpc-64.o, powerpc-64.c): New rules.
20349 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20350 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20351 with SPE.
20352 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20353 SPE targets.
20354 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20355 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20356 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20357 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20358 (target_regsets): Add AltiVec and SPE register sets.
20359 * configure.ac: Check for AltiVec and SPE.
20360 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20361 (ppc_fill_vrregset, ppc_store_vrregset): New.
20362 (target_regsets): Add AltiVec register set.
20363 * configure: Regenerated.
20364
fd462a61
DJ
203652007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20366
20367 * linux-low.c (O_LARGEFILE): Define.
20368 (linux_read_memory): Use /proc/PID/mem.
20369 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20370 * configure, config.in: Regenerated.
20371
69f223ed
DJ
203722007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20373
20374 * linux-low.c (linux_wait_for_event): Do not pass signals while
20375 single-stepping.
20376
aec18585
PA
203772007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20378
20379 * win32-low.c (create_process): New.
20380 (win32_create_inferior): Use create_process instead of
20381 CreateProcess. If create_process failed retry appending an ".exe"
20382 suffix. Store the GetLastError result immediatelly after
20383 create_process calls and use it on the call to error.
20384
34d86ddd
PA
203852007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20386
20387 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20388
5a0e3bd0
JB
203892007-08-23 Joel Brobecker <brobecker@adacore.com>
20390
20391 * configure.ac: Switch license to GPLv3.
20392
f88c79e6
MS
203932007-08-01 Michael Snyder <msnyder@access-company.com>
20394
20395 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20396
6b3d9b83
PA
203972007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20398
20399 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20400 typedef.
20401 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20402 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20403 CloseToolhelp32Snapshot.
20404 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20405 CloseToolhelp32Snapshot.
20406
c588c53c
MS
204072007-07-27 Michael Snyder <michael.snyder@access-company.com>
20408
20409 * server.c (main): Check for inferior exit before main loop.
20410
aa0403d9
PA
204112007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20412
20413 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20414 instead of on tmp_desc.
20415
255e7678
DJ
204162007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20417 Daniel Jacobowitz <dan@codesourcery.com>
20418
20419 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20420 (add_thread): Minor cleanups.
20421 (clear_inferiors): Move lower in the file. Clear the DLL
20422 list.
20423 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20424 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20425 (xml_escape_text): New.
20426 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20427 for qSupported.
20428 (handle_v_cont): Report errors.
20429 (gdbserver_version): Update.
20430 (main): Correct size of own_buf. Do not report initial DLL events.
20431 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20432 (unloaded_dll, xml_escape_text): New.
20433 * win32-low.c (enum target_waitkind): Update comments.
20434 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20435 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20436 (win32_EnumProcessModules, win32_GetModuleInformation)
20437 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20438 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20439 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20440 (win32_Module32First, win32_Module32Next, load_toolhelp)
20441 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20442 (get_child_debug_event): Handle DLL events.
20443 (win32_wait): Likewise.
20444
0d37add9
DJ
204452007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20446
20447 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20448 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20449
45e2715e
PA
204502007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20451
20452 * win32-low.c (handle_output_debug_string): Ignore event if not
20453 waiting.
20454
c5674cf1
PA
204552007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20456
20457 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20458
2bbe3cc1
DJ
204592007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20460
20461 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20462
ae13219e
DJ
204632007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20464
20465 * inferiors.c (change_inferior_id): Add comment.
20466 * linux-low.c (check_removed_breakpoint): Add an early
20467 prototype. Improve debug output.
20468 (linux_attach): Doc update.
20469 (linux_detach_one_process, linux_detach): Clean up before releasing
20470 each process.
20471 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20472 * linux-low.h (struct process_info): Doc improvement.
20473 * mem-break.c (delete_all_breakpoints): New.
20474 * mem-break.h (delete_all_breakpoints): New prototype.
20475 * thread-db.c (find_first_thread): New.
20476 (thread_db_create_event): Call it instead of
20477 thread_db_find_new_threads. Clean up unused variables.
20478 (maybe_attach_thread): Remove first thread handling.
20479 (thread_db_find_new_threads): Use find_first_thread.
20480 (thread_db_get_tls_address): Likewise.
20481
4105de34
DJ
204822007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20483
20484 * thread-db.c (thread_db_find_new_threads): Add prototype.
20485 (thread_db_create_event): Check for the main thread before adding
20486 a new thread.
20487 (maybe_attach_thread): Only enable event reporting if TID == 0.
20488 (thread_db_get_tls_address): Check for new threads.
20489
2b876972
DJ
204902007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20491
20492 * linux-low.c (linux_create_inferior): Try execv before execvp.
20493 * spu-low.c (spu_create_inferior): Likewise.
20494
7a245884
DJ
204952007-06-13 Mike Frysinger <vapier@gentoo.org>
20496
20497 * linux-low.c (linux_create_inferior): Change execv to execvp.
20498 * spu-low.c (spu_create_inferior): Likewies.
20499
117ce543
DJ
205002007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20501
20502 * Makefile.in (clean): Clean new files instead of deleted ones.
20503 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20504 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20505 rules.
20506 * configure.srv: Specify XML files and new regformats for MIPS and
20507 MIPS64 GNU/Linux.
20508 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20509 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20510 an entry for the restart register.
20511 (mips_cannot_fetch_register, mips_cannot_store_register)
20512 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20513 register names to match the XML descriptions.
20514 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20515 restart register instead of $0.
20516
0e7f50da
UW
205172007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20518 Markus Deuling <deuling@de.ibm.com>
20519
20520 * remote-utils.c (decode_xfer_write): New function.
20521 * server.h (decode_xfer_write): Add prototype.
20522 * server.c (handle_query): Add PACKET_LEN argument. Support
20523 qXfer:spu:read and qXfer:spu:write packets.
20524 (main): Pass packet_len to handle_query.
20525 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20526 * target.h (target_ops): Add qxfer_spu.
20527
374c1d38
UW
205282007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20529
20530 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20531 accessing non-seekable spufs files.
20532
bb63802a
UW
205332007-05-16 Markus Deuling <deuling@de.ibm.com>
20534
889bf7c5 20535 * server.c (handle_query): Add reply for qC packet.
bb63802a 20536
7390519e
PA
205372007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20538 Leo Zayas <lerele@champenstudios@com>
20539
20540 * server.h (check_remote_input_interrupt_request): New function.
20541 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20542 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20543 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20544 (check_remote_input_interrupt_request): New function.
20545 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20546 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20547 winapi_GenerateConsoleCtrlEvent): New typedefs.
20548 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20549 to 250 ms.
20550 (win32_wait): Check for remote interrupt request
20551 with check_remote_input_interrupt_request.
20552 (win32_request_interrupt): New function.
20553 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20554
34b34921
PA
205552007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20556
20557 * win32-low.c (debug_registers_changed,
20558 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20559 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20560 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20561 (thread_rec): Get context using the low target.
20562 (child_add_thread): Call thread_added on the low target,
20563 which does the same thing.
20564 (regptr): Delete.
20565 (do_initial_child_stuff): Remove debug registers references.
20566 Set context using the low target. Resume threads after
20567 setting the contexts.
20568 (child_continue): Remove dead variable. Remove debug
20569 registers references.
20570 (child_fetch_inferior_registers): Go through the low target.
20571 (do_child_store_inferior_registers): Remove.
20572 (child_store_inferior_registers): Go through the low target.
20573 (win32_resume): Remove debug registers references.
20574 Set context using the low target.
20575 (handle_exception): Change return type to void. Don't record
20576 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20577 first chance exception.
889bf7c5 20578 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20579 goto loop. Always return after waiting for debug event.
20580 (win32_wait): Convert to switch statement. Handle spurious
20581 events.
20582
20583 * win32-i386-low.c (debug_registers_changed,
20584 debug_registers_used): New.
20585 (initial_stuff): Rename to ...
20586 (i386_initial_stuff): ... this. Clear debug registers
20587 state variables.
20588 (store_debug_registers): Delete.
20589 (i386_get_thread_context): New.
20590 (load_debug_registers): Delete.
20591 (i386_set_thread_context): New.
20592 (i386_thread_added): New.
20593 (single_step): Rename to ...
20594 (i386_single_step): ... this.
20595 (do_fetch_inferior_registers): Rename to ...
20596 (i386_fetch_inferior_register): ... this.
20597 (i386_store_inferior_register): New.
20598 (the_low_target): Adapt to new interface.
20599
20600 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20601 (arm_get_thread_context): New.
20602 (arm_set_thread_context): New.
20603 (regptr): New.
20604 (do_fetch_inferior_registers): Rename to ...
20605 (arm_fetch_inferior_register): ... this.
20606 (arm_store_inferior_register): New.
20607 (arm_wince_breakpoint): Reimplement as unsigned long.
20608 (arm_wince_breakpoint_len): Define.
20609 (the_low_target): Adapt to new interface.
20610
20611 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20612 load_debug_registers. Add get_thread_context, set_thread_context,
20613 thread_added and store_inferior_register. Rename
20614 fetch_inferior_registers to fetch_inferior_register.
20615 (regptr): Remove declaration.
20616
dd6953e1
PA
206172007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20618
20619 * linux-low.c (linux_detach): Change return type to int. Return 0.
20620 * spu-low.c (spu_detach): Likewise.
20621
444d6139
PA
206222007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20623
20624 * target.h (target_ops): Change return type of detach to int.
20625 Add join.
20626 (join_inferior): New.
20627 * server.c (main): Don't skip detach support on mingw32.
20628 If the inferior doesn't support detaching return error.
20629 Call join_inferior instead of using waitpid.
20630 * linux-low.c (linux_join): New.
20631 (linux_target_op): Add linux_join.
20632 * spu-low.c (spu_join): New.
20633 (spu_target_ops): Add spu_join.
20634 * win32-low.c (win32_detach): Adapt to new interface.
20635 Reopen current_process_handle before detaching. Issue a child
20636 resume before detaching.
20637 (win32_join): New.
20638 (win32_target_op): Add win32_join.
20639
1d5315fe
PA
206402007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20641
20642 * win32-low.c (win32-attach): Fix return value.
20643 * target.h (target_ops): Describe ATTACH return values.
20644
bf914831
PA
206452007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20646
20647 * win32-low.c (GETPROCADDRESS): Define.
20648 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20649 (winapi_DebugSetProcessKillOnExit): Likewise.
20650 (win32_create_inferior): Force usage of ansi CreateProcessA.
20651 (win32_attach): Use GETPROCADDRESS.
20652 (win32_detach): Likewise.
20653
f72f3e60
PA
206542007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20655
20656 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20657
ed50f18f
PA
206582007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20659
20660 * win32-low.c: Commit leftover changes from 2007-03-29.
20661
0c2ead7e
DJ
206622007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20663
20664 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20665 fields short instead of int. Add explicit padding.
20666 (i387_cache_to_fsave): Remove unnecessary casts.
20667 (i387_fsave_to_cache): Doc fix.
20668 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20669
73725ff3
DJ
206702007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20671
20672 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20673 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20674
d99f33d8
PA
206752007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20676
20677 * configure.srv (arm*-*-mingw32ce*): Move near the other
20678 arm targets.
20679
68070c10
PA
206802007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20681
2482afc6 20682 * configure.ac: Add errno checking.
68070c10
PA
20683 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20684 sys/file.h and malloc.h.
20685 (AC_CHECK_DECLS): Add perror.
20686 (srv_mingwce): Handle.
2482afc6 20687 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20688 win32-i386-low.o to srv_tgtobj.
20689 (i[34567]86-*-mingw*): Likewise.
20690 (arm*-*-mingw32ce*): Add case.
20691 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20692 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20693 [__MINGW32CE__] (strerror): New function.
20694 [__MINGW32CE__] (errno): Define to GetLastError.
20695 [__MINGW32CE__] (COUNTOF): New macro.
20696 (remote_open): Remove extra close call.
20697 * mem-break.c (delete_breakpoint_at): New function.
20698 * mem-break.h (delete_breakpoint_at): Declare.
20699 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20700 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20701 [USE_WIN32API] (read, write): Add char* casts.
20702 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20703 * server.h: Include wincecompat.h on Windows CE.
20704 [HAVE_ERRNO_H]: Check.
20705 (perror): Declare if not declared.
20706 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20707 (perror_with_name): Remove errno declaration.
20708 * wincecompat.h: New.
20709 * wincecompat.c: New.
20710 * win32-low.h: New.
20711 * win32-arm-low.c: New.
20712 * win32-i386-low.c: New.
20713 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20714 (OUTMSG2): Make it safe.
20715 (_T): New macro.
20716 (COUNTOF): New macro.
20717 (NUM_REGS): Get it from the low target.
20718 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20719 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20720 (thread_rec): Let low target handle debug registers.
20721 (child_add_thread): Likewise.
20722 (child_init_thread_list): Likewise.
20723 (continue_one_thread): Likewise.
20724 (regptr): New.
20725 (do_child_fetch_inferior_registers): Move to ...
20726 * win32-i386-low.c: ... here, and rename to ...
20727 (do_fetch_inferior_registers): ... this.
889bf7c5 20728 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20729 Go through the low target.
20730 (do_child_store_inferior_registers): Use regptr.
20731 (strwinerror): New function.
20732 (win32_create_inferior): Handle Windows CE.
20733 Use strwinerror instead of strerror on Windows error
20734 codes. Add program to the error output.
20735 Don't close the main thread handle on Windows CE.
20736 (win32_attach): Use coredll.dll on Windows CE.
20737 (win32_kill): Close current process and current
20738 thread handles.
20739 (win32_detach): Use coredll.dll on Windows CE.
20740 (win32_resume): Let low target handle debug registers, and
20741 step request.
20742 (handle_exception): Add/Remove initial breakpoint. Avoid
20743 non-existant WSTOPSIG on Windows CE.
20744 (win32_read_inferior_memory): Cast to remove warning.
20745 (win32_arch_string): Go through the low target.
20746 (initialize_low): Call set_breakpoint_data with the low
20747 target's breakpoint.
20748 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20749 FOP_REGNUM, mappings): Move to ...
20750 * win32-i386-low.c: ... here.
20751 * win32-low.c (win32_thread_info): Move to ...
20752 * win32-low.h: ... here.
20753 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20754 win32-arm-low.c and wincecompat.c.
20755 (all:): Add $EXEEXT.
20756 (install-only:): Likewise.
20757 (gdbserver:): Likewise.
20758 (gdbreplay:): Likewise.
20759 * config.in: Regenerate.
20760 * configure: Regenerate.
20761
41093d81
PA
207622007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20763
20764 * win32-low.c: Rename typedef thread_info to
20765 win32_thread_info throughout.
20766
544afa54
PA
207672007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20768
20769 * win32-i386-low.c: Rename to ...
20770 * win32-low.c: ... this.
20771 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20772 * Makefile.in: Likewise.
20773
bce7165d
PA
207742007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20775
20776 * remote-utils.c (monitor_output): Constify msg parameter.
20777 * server.h (monitor_output): Likewise.
20778 * win32-i386-low.c (handle_output_debug_string): New.
20779 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20780 handle_output_debug_string.
20781 (get_child_debug_event): Likewise.
20782
506c7aa0
DJ
207832007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20784
20785 * server.c (main): Correct strtoul check.
20786
42c81e2a
DJ
207872007-03-27 Jon Ringle <jon@ringle.org>
20788
20789 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20790
9453113a
DJ
207912007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20792
20793 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20794
64a69107
DJ
207952007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20796
20797 * terminal.h: Check HAVE_SGTTY_H.
20798
207992007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20800
20801 * remote-utils.c (remote_open): Print out the assigned port number.
20802
c74d0ad8
DJ
208032007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20804
20805 * remote-utils.c (monitor_output): New function.
20806 * server.c (debug_threads): Define here.
20807 (monitor_show_help): New function.
20808 (handle_query): Handle qRcmd.
20809 (main): Do not handle 'd' packet.
20810 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20811 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20812 of debug_threads.
20813
de7c3b4a
PA
208142007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20815
20816 * Makefile.in (EXEEXT): New.
20817 (clean): Use $(EXEEXT).
20818
ef57601b
PA
208192007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20820
20821 * target.h (target_ops): Rename send_signal to request_interrupt,
20822 and remove enum target_signal parameter.
20823 * linux-low.c (linux_request_interrupt): Rename from
20824 linux_send_signal, and always send SIGINT.
20825 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20826 and always send SIGINT.
20827 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20828 of send_signal.
20829 (input_interrupt): Likewise.
20830
820f2bda
PA
208312007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20832
20833 * server.c (get_features_xml): Check if target implemented
20834 arch_string.
20835 * win32-i386-low.c (win32_arch_string): New.
20836 (win32_target_ops): Add win32_arch_string as arch_string member.
20837
ab39bf24
UW
208382007-02-22 Markus Deuling <deuling@de.ibm.com>
20839
20840 * spu-low.c (spu_arch_string): New.
20841 (spu_target_ops): Add spu_arch_string.
20842
61ff6e04
DJ
208432007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20844
20845 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20846 * configure.ac: Do not check for terminal.h.
20847 * configure, config.in: Regenerated.
20848
fb1e4ffc
DJ
208492007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20850
20851 * Makefile.in (OBS): Add $(XML_BUILTIN).
20852 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20853 (clean): Update.
20854 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20855 (arm-with-iwmmxt.c): New.
20856 * config.in, configure: Regenerate.
20857 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20858 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20859 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20860 (arm*-*-linux*): Add iWMMXt and regset support.
20861 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20862 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20863 (arm_store_wmmxregset, target_regsets): New.
20864 * server.c (get_features_xml): Take annex argument. Check builtin
20865 XML documents.
20866 (handle_query): Handle multiple annexes.
20867
0f48aa01
DJ
208682007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20869
20870 * remote-utils.c [USE_WIN32API] (read, write): Define.
20871 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20872 write.
20873
23181151
DJ
208742007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20875
20876 * linux-i386-low.c (the_low_target): Set arch_string.
20877 * linux-x86-64-low.c (the_low_target): Likewise.
20878 * linux-low.c (linux_arch_string): New.
20879 (linux_target_ops): Add it.
20880 * linux-low.h (struct linux_target_ops): Add arch_string.
20881 * server.c (write_qxfer_response): Use const void * for DATA.
20882 (get_features_xml): New.
20883 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20884 * target.h (struct target_ops): Add arch_string method.
20885
9d606399
DJ
208862007-01-03 Denis Pilat <denis.pilat@st.com>
20887 Daniel Jacobowitz <dan@codesourcery.com>
20888
20889 * linux-low.c (linux_kill): Handle being called with no threads.
20890 * win32-i386-low.c (win32_kill): Likewise.
20891 (get_child_debug_event): Clear current_process_handle.
20892
208932006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20894 Daniel Jacobowitz <dan@codesourcery.com>
20895
20896 * remote-utils.c (remote_open): Check the type of specified
20897 serial port devices before opening them.
20898 * server.c (main): Kill the inferior if an error occurs during
20899 the first remote_open.
20900
a5e13d24
DJ
209012006-12-05 Markus Deuling <deuling@de.ibm.com>
20902
20903 * README: Update supported targets.
20904
186947f7
DJ
209052006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20906
20907 * Makefile.in (clean): Remove reg-mips64.c.
20908 (reg-mips64.c, reg-mips64.o): New rules.
20909 * configure.srv: Handle mips64. Include regset support for mips.
20910 * linux-mips-low.c (union mips_register): New.
20911 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20912 (mips_breakpoint, mips_breakpoint_at): Use int.
20913 (mips_collect_register, mips_supply_register)
20914 (mips_collect_register_32bit, mips_supply_register_32bit)
20915 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20916 (mips_store_fpregset, target_regsets): New.
20917 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20918
a13e2c95
UW
209192006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20920
20921 * configure.srv: Add target "spu*-*-*".
20922 * Makefile.in (clean): Remove reg-spu.c.
20923 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20924 * spu-low.c: New file.
20925
cb7283db
DJ
209262006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20927
20928 * configure.ac: Correct td_thr_tls_get_addr test.
20929 * configure: Regenerated.
20930
89be2091
DJ
209312006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20932
20933 * linux-low.c (linux_wait_for_event): Reformat. Use the
20934 pass_signals array.
20935 * remote-utils.c (decode_address_to_semicolon): New.
20936 * server.c (pass_signals, handle_general_set): New.
20937 (handle_query): Mention QPassSignals for qSupported.
20938 (main): Call handle_general_set.
20939 * server.h (pass_signals, decode_address_to_semicolon): New.
20940
000ef4f0
DJ
209412006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20942
20943 * server.c (handle_query): Correct error handling for read_auxv.
20944
b7149293
UW
209452005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20946
20947 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20948 and srv_linux_thread_db to yes.
20949 * linux-s390-low.c (s390_fill_gregset): New function.
20950 (target_regsets): Define data structure.
20951
dae5f5cf
DJ
209522006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20953
20954 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20955 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20956 * config.in, configure: Regenerated.
20957 * inferiors.c (gdb_id_to_thread): New function.
20958 (gdb_id_to_thread_id): Use it.
20959 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20960 * linux-low.h (struct process_info): Add th member.
20961 (thread_db_get_tls_address): New prototype.
20962 * remote-utils.c (decode_address): Make non-static.
20963 * server.c (handle_query): Handle qGetTLSAddr.
20964 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20965 * target.h (struct target_ops): Add get_tls_address.
20966 * thread-db.c (maybe_attach_thread): Save the thread handle.
20967 (thread_db_get_tls_address): New.
20968
32ca6d61
DJ
209692006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20970
20971 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20972 (linux_resume_one_process): Take a siginfo_t *. Update all
20973 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20974 (struct pending_signals): Add a siginfo_t.
20975 (linux_wait_for_process): Always set last_status.
20976 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20977 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20978 * linux-low.h (struct process_info): Add last_status.
20979
5ffff7c1
DJ
209802006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20981
20982 * remote-utils.c (try_rle): New function.
20983 (putpkt_binary): Use it.
20984
8695c747
DJ
209852006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20986
20987 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20988 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20989 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20990 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20991 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20992 point registers.
20993
290fadea
RS
209942006-08-08 Richard Sandiford <richard@codesourcery.com>
20995
20996 * server.c (terminal_fd): New variable.
20997 (old_foreground_pgrp): Likewise.
20998 (restore_old_foreground_pgrp): New function.
20999 (start_inferior): Record the terminal file descriptor in terminal_fd
21000 and its original foreground group in old_foreground_pgrp. Register
21001 restore_old_foreground_pgrp with atexit().
21002
9f2e1e63
DJ
210032006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21004
21005 * server.c (handle_query): Correct qPart to qXfer.
21006
b80864fb
DJ
210072006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21008
21009 * configure.ac: Check for more headers which are missing on
21010 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21011 * configure.srv: Add Cygwin and mingw32.
21012 * remote-utils.c: Don't include headers unconditionally which
21013 are missing on mingw32. Include <winsock.h> for mingw32.
21014 (remote_open): Adjust for mingw32 support. Flush
21015 standard error after writing to it.
21016 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21017 (unblock_async_io, enable_async_io, disable_async_io)
21018 (readchar, getpkt): Update for Winsock support.
21019 (prepare_resume_reply): Expect a protocol signal number.
21020 * server.c: Disable <sys/wait.h> on mingw32.
21021 (start_inferior): Adjust for mingw32 support. Flush
21022 standard error after writing to it.
21023 (attach_inferior): Likewise. Use protocol signal
21024 numbers.
21025 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21026 and names.
21027 * win32-i386-low.c: New file.
21028 * Makefile.in (XM_CLIBS): Set.
21029 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21030 (win32-i386-low.o): New dependency rule.
21031 * linux-low.c (linux_wait): Use target signal numbers.
21032 * target.h (struct target_ops): Doc fix.
21033 * server.h (target_signal_to_name): New prototype.
21034 * gdbreplay.c: Don't include headers unconditionally which
21035 are missing on mingw32. Include <winsock.h> for mingw32.
21036 (remote_close, remote_open): Adjust for Winsock support.
21037 * configure, config.in: Regenerated.
21038
0876f84a
DJ
210392006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21040
21041 * server.c (decode_xfer_read, write_qxfer_response): New.
21042 (handle_query): Take a packet length argument. Handle
21043 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21044 the qSupported response.
21045 (main): Update call to handle_query.
21046
01f9e8fa
DJ
210472006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21048
21049 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21050 (putpkt_binary): Renamed from putpkt and adjusted for binary
21051 data.
21052 (putpkt): New wrapper for putpkt_binary.
21053 (readchar): Don't mask off the high bit.
21054 (decode_X_packet): New function.
21055 * server.c (main): Call putpkt_binary if a handler sets the packet
21056 length. Save the length of the incoming packet. Handle 'X'.
21057 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21058
be2a5f71
DJ
210592006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21060
21061 * server.c (handle_query): Handle qSupported.
21062
ea025f5f
DJ
210632006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21064
21065 * remote-utils.c (all_symbols_looked_up): New variable.
21066 (look_up_one_symbol): Check it.
21067 * server.h (look_up_one_symbol): New declaration.
21068 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21069
9308fc88
DJ
210702006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21071
21072 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21073 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21074 (PTRACE_GET_THREAD_AREA): Define.
21075 (ps_get_thread_area): New function.
21076
52fb6437
NS
210772006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21078
21079 * configure.srv (m68k*-*-uclinux*): New target.
21080 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21081 (linux_resume_one_process): Remove extraneous cast.
21082 (linux_read_offsets): New.
21083 (linux_target_op): Add linux_read_offsets on mmuless systems.
21084 * server.c (handle_query): Add qOffsets logic.
21085 * target.h (struct target_ops): Add read_offsets.
21086
21b0f40c
DJ
210872006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21088
21089 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21090 (PTRACE_GET_THREAD_AREA): Define.
21091 (ps_get_thread_area): New function.
21092 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21093 (linux-x86-64-low.o): Update.
21094
0050a760
DJ
210952006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21096
21097 * configure.ac: Remove checks for prfpregset_t.
21098 * gdb_proc_service.h: New file.
21099 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21100 new "gdb_proc_service.h".
21101 * proc-service.c: Likewise.
21102 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21103 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21104 * Makefile.in (gdb_proc_service_h): Updated.
21105 * configure, config.in: Regenerated.
21106
b92a518e
DJ
211072006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21108
21109 * remote-utils.c (prepare_resume_reply): Move declaration
21110 of gdb_id_from_wait to the top of the block.
21111
545587ee
DJ
211122006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21113
21114 * linux-low.c (regsets_store_inferior_registers): Read the regset
21115 from the target before filling it.
21116
9db87ebd
DJ
211172006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21118
21119 * server.c (attach_inferior): Return SIGTRAP for a successful
21120 attach.
21121
dd24457d
DJ
211222006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21123
21124 * Makefile.in (OBS): Add version.o.
21125 (STAGESTUFF): Delete.
21126 (version.o): Add dependencies.
21127 (version.c): Replace rule.
21128 (clean): Remove version.c.
21129 * server.c (gdbserver_version): New.
21130 (gdbserver_usage): Use printf.
21131 (main): Handle --version and --help.
21132 * server.h (version, host_name): Add declarations.
21133
6f0f660e
EZ
211342005-12-23 Eli Zaretskii <eliz@gnu.org>
21135
889bf7c5
PA
21136 * linux-arm-low.c:
21137 * linux-arm-low.c:
21138 * inferiors.c:
21139 * i387-fp.h:
21140 * i387-fp.c:
21141 * gdbreplay.c:
21142 * regcache.c:
21143 * proc-service.c:
21144 * mem-break.h:
21145 * mem-break.c:
21146 * linux-x86-64-low.c:
21147 * linux-sh-low.c:
21148 * linux-s390-low.c:
21149 * linux-ppc64-low.c:
21150 * linux-ppc-low.c:
21151 * linux-mips-low.c:
21152 * linux-m68k-low.c:
21153 * linux-m32r-low.c:
21154 * linux-low.h:
21155 * linux-low.c:
21156 * linux-ia64-low.c:
21157 * linux-i386-low.c:
21158 * linux-crisv32-low.c:
21159 * thread-db.c:
21160 * terminal.h:
21161 * target.h:
21162 * target.c:
21163 * server.h:
21164 * server.c:
21165 * remote-utils.c:
21166 * regcache.h:
21167 * utils.c:
21168 * Makefile.in:
21169 * configure.ac:
6f0f660e
EZ
21170 * gdbserver.1: Add (C) after Copyright. Update the FSF
21171 address.
21172
9d1fb177
DJ
211732005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21174
21175 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21176 (arm_breakpoint_at): Recognize both breakpoints.
21177 (the_low_target): Use the correct breakpoint instruction.
21178
011a70c2
DJ
211792005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21180
21181 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21182 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21183 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21184 (the_low_target): Update.
21185
7fb85e41
AS
211862005-10-25 Andreas Schwab <schwab@suse.de>
21187
21188 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21189
21190 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21191 (ia64_num_regs): Reduce to 462.
21192
3db0444b
DJ
211932005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21194
21195 * acinclude.m4: Correct quoting.
21196 * aclocal.m4: Regenerated.
21197
21198 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21199 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21200 (thread_db_init): Call thread_db_err_str.
21201 * configure.ac: Check for TD_VERSION.
21202 * config.in, configure: Regenerated.
21203
bee0189a
DJ
212042005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21205
21206 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21207
e9d25b98
DJ
212082005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21209
21210 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21211 is not available. Define HAVE_PTRACE_GETREGS if it is.
21212 * config.in, configure: Regenerated.
21213 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21214 * linux-i386-low.c, linux-m68k-low.c: Update to use
21215 HAVE_PTRACE_GETREGS.
21216 * linux-low.c (regsets_fetch_inferior_registers)
21217 (regsets_store_inferior_registers): Only return 0 if we processed
21218 GENERAL_REGS.
21219 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21220 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21221
a06660f7
DJ
212222005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21223
21224 * inferiors.c (struct thread_info): Add gdb_id.
21225 (add_thread): Add gdb_id argument.
21226 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21227 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21228 calls to add_thread.
21229 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21230 * server.c (handle_query): Use thread_to_gdb_id.
21231 (handle_v_cont, main): Use gdb_id_to_thread_id.
21232 * server.h (add_thread): Update prototype.
21233 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21234 prototypes.
21235
5a1f5858
DJ
212362005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21237
21238 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21239 left-padded registers.
21240 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21241 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21242
e122f1f5
SE
212432005-07-01 Steve Ellcey <sje@cup.hp.com>
21244
21245 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21246 * configure: Regenerate.
21247 * config.in: Regenerate.
21248 * server.h (NEED_DECLARATION_STRERROR):
21249 Replace with !HAVE_DECL_STRERROR.
21250
d592fa2f
DJ
212512005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21252
21253 * linux-low.c (linux_wait, linux_send_signal): Don't test
21254 an unsigned long variable for > 0 if it could be MAX_ULONG.
21255 * server.c (myresume): Likewise.
21256 * target.c (set_desired_inferior): Likewise.
21257
ccbd4912
MK
212582005-06-13 Mark Kettenis <kettenis@gnu.org>
21259
21260 * configure.ac: Simplify and improve check for socklen_t.
21261 * configure, config.in: Regenerate.
21262
f450004a
DJ
212632005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21264
21265 * acconfig.h: Remove.
21266 * configure.ac: Add a test for socklen_t. Use three-argument
21267 AC_DEFINE throughout.
21268 * config.in: Regenerated using autoheader 2.59.
21269 * configure: Regenerated.
21270
21271 * gdbreplay.c (socklen_t): Provide a default.
21272 (remote_open): Use socklen_t.
21273 * remote-utils.c (socklen_t): Provide a default.
21274 (remote_open): Use socklen_t.
21275 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21276 unsigned char.
21277
21278 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21279 char for buffers.
21280 * linux-low.c (linux_read_memory, linux_write_memory)
21281 (linux_read_auxv): Likewise.
21282 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21283 (check_mem_write): Likewise.
21284 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21285 Likewise.
21286 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21287 (registers_from_string, register_data): Likewise.
21288 * server.c (handle_query, main): Likewise.
21289 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21290 (decode_M_packet): Likewise.
21291 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21292 * target.h (struct target_ops): Update read_memory, write_memory,
21293 and read_auxv.
21294 (read_inferior_memory, write_inferior_memory): Update.
21295 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21296 to unsigned char *.
21297 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21298 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21299 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21300 linux-s390-low.c, linux-sh-low.c: Update for changes in
21301 read_inferior_memory and the_low_target->breakpoint.
21302
eee84df1
DJ
213032005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21304
21305 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21306 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21307 * configure.srv: Add powerpc64-*-linux*.
21308 * linux-ppc64-low.c: New file.
21309
45b134e5
OF
213102005-05-23 Orjan Friberg <orjanf@axis.com>
21311
21312 * linux-cris-low.c: New file with support for CRIS.
21313 * linux-crisv32-low.c: Ditto for CRISv32.
21314 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21315 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21316 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21317 reg-crisv32.o, and reg-crisv32.c to make rules.
21318 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21319 recognized targets.
21320
48d93c75
UW
213212005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21322
21323 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21324 of sizeof (PTRACE_XFER_TYPE).
21325 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21326
e013ee27
OF
213272005-05-12 Orjan Friberg <orjanf@axis.com>
21328
889bf7c5 21329 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21330 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21331 pointers for hardware watchpoint support.
21332 * linux-low.h (struct linux_target_ops): Ditto.
21333 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21334 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21335 to linux_target_ops.
21336 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21337 reply packet.
21338 * server.c (main): Recognize 'Z' and 'z' packets.
21339
b0ded00b
UW
213402005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21341
21342 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21343 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21344 (the_low_target): Add new members.
21345
8643e2ad
DJ
213462005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21347
21348 * proc-service.c (ps_lgetregs): Search all_processes instead of
21349 all_threads.
21350
fc620387
DJ
213512005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21352
21353 * server.c (start_inferior): Change return type to int.
21354 (attach_inferior): Change sigptr to int *.
21355 (handle_v_cont, handle_v_requests): Change signal to int *.
21356 (main): Change signal to int.
21357
213582005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21359
21360 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21361 * configure.srv: Add m32r*-*-linux*.
21362 * linux-m32r-low.c: New file.
21363
e0e76420
DJ
213642005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21365
21366 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21367
a1928bad
DJ
213682005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21369
21370 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21371 Take unsigned long arguments for PIDs.
21372 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21373 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21374 (wait_for_sigstop, linux_resume_one_process)
21375 (regsets_fetch_inferior_registers, linux_send_signal)
21376 (linux_read_auxv): Likewise. Update the types of variables holding
21377 PIDs. Update format string specifiers.
21378 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21379 * remote-utils.c (prepare_resume_reply): Likewise.
21380 * server.c (cont_thread, general_thread, step_thread)
21381 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21382 unsigned long.
21383 (handle_query): Update format specifiers.
21384 (handle_v_cont, main): Use strtoul for thread IDs.
21385 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21386 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21387 (general_thread, step_thread, thread_from_wait)
21388 (old_thread_from_wait): Update.
21389 * target.h (struct thread_resume): Use unsigned long for THREAD.
21390 (struct target_ops): Use unsigned long for arguments to attach and
21391 thread_alive.
21392
dcdb98d2
DJ
213932005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21394
21395 * acinclude.m4: Include bfd/bfd.m4 directly.
21396 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21397 <agriffis@toolchain.org>.
21398 * aclocal.m4, configure: Regenerated.
21399
bec39cab
AC
214002005-01-07 Andrew Cagney <cagney@gnu.org>
21401
21402 * configure.ac: Rename configure.in, require autoconf 2.59.
21403 * configure: Re-generate.
21404
434c4c77
DJ
214052004-12-08 Daniel Jacobowitz <dan@debian.org>
21406
21407 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21408 LIBS when finished.
21409 * aclocal.m4: Regenerated.
21410 * configure: Regenerated.
21411
db1d3e1b
AS
214122004-11-21 Andreas Schwab <schwab@suse.de>
21413
21414 * linux-m68k-low.c (m68k_num_gregs): Define.
21415 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21416 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21417 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21418 (m68k_breakpoint_at): New. Add to the_low_target.
21419
21420 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21421 srv_linux_thread_db to yes.
21422
43360365
JB
214232004-10-20 Joel Brobecker <brobecker@gnat.com>
21424
21425 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21426 (ARCH_SET_FS): Likewise.
21427 (ARCH_GET_FS): Likewise.
21428 (ARCH_GET_GS): Likewise.
21429
fd500816
DJ
214302004-10-16 Daniel Jacobowitz <dan@debian.org>
21431
21432 * linux-i386-low.c (ps_get_thread_area): New.
21433 * linux-x86-64-low.c (ps_get_thread_area): New.
21434 * linux-low.c: Include <sys/syscall.h>.
21435 (linux_kill_one_process): Don't kill the first thread here.
21436 (linux_kill): Kill the first thread here.
21437 (kill_lwp): New function.
21438 (send_sigstop, linux_send_signal): Use it.
21439 * proc-service.c: Clean up #ifdefs.
21440 (fpregset_info): Delete.
21441 (ps_lgetregs): Update and enable implementation.
21442 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21443 implementations.
21444 * remote-utils.c (struct sym_cache, symbol_cache): New.
21445 (input_interrupt): Print a clearer message.
21446 (async_io_enabled): New variable.
21447 (enable_async_io, disable_async_io): Use it. Update comments.
21448 (look_up_one_symbol): Use the symbol cache.
21449 * thread-db.c (thread_db_look_up_symbols): New function.
21450 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21451
f6de3c42
DJ
214522004-10-16 Daniel Jacobowitz <dan@debian.org>
21453
21454 * configure.in: Test for -rdynamic.
21455 * configure: Regenerated.
21456 * Makefile (INTERNAL_LDFLAGS): New.
21457 (gdbserver, gdbreplay): Use it.
21458
2c0fc042
AC
214592004-09-02 Andrew Cagney <cagney@gnu.org>
21460
21461 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21462
075b3282
DJ
214632004-03-23 Daniel Jacobowitz <drow@mvista.com>
21464
21465 * linux-low.c (linux_wait): Clear all_processes list also.
21466
fa6a77dc
DJ
214672004-03-12 Daniel Jacobowitz <drow@mvista.com>
21468
21469 * linux-low.c: Include <errno.h>. Remove extern declaration of
21470 errno.
21471
6d782a97
DJ
214722004-03-12 Daniel Jacobowitz <drow@mvista.com>
21473
21474 * gdbreplay.c, server.h, utils.c: Update copyright years.
21475
3a7fb99b
DJ
214762004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21477
21478 * server.c (main): Print child status or termination signal from
21479 variable 'signal', not 'sig'.
21480
c3e735a6
DJ
214812004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21482
21483 * linux-low.c (linux_read_memory): Change return type to
21484 int. Check for and return error from ptrace().
21485 * target.c (read_inferior_memory): Change return type to int. Pass
21486 back return status from the_target->read_memory().
21487 * target.h (struct target_ops): Adapt *read_memory() prototype.
21488 Update comment.
21489 (read_inferior_memory): Adapt prototype.
21490 * server.c (main): Return an error packet if
21491 read_inferior_memory() returns an error.
21492
a59d1c82
DJ
214932004-03-04 Daniel Jacobowitz <drow@mvista.com>
21494
21495 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21496 Unify with other clean targets.
21497
dc3f8883
DJ
214982004-02-29 Daniel Jacobowitz <drow@mvista.com>
21499
21500 * server.c (handle_v_cont): Call set_desired_inferior.
21501
89a208da
DJ
215022004-02-29 Daniel Jacobowitz <drow@mvista.com>
21503
21504 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21505
62ea82f5
DJ
215062004-02-29 Daniel Jacobowitz <drow@mvista.com>
21507
21508 * linux-low.c (linux_wait): Unblock async I/O.
21509 (linux_resume): Block and enable async I/O.
21510 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21511 * server.h (block_async_io, unblock_async_io): Add prototypes.
21512
6910d122
DJ
215132004-02-29 Daniel Jacobowitz <drow@mvista.com>
21514
21515 * remote-utils.c (remote_open): Print a status notice after
21516 opening a TCP port.
21517 * server.c (attach_inferior): Print a status notice after
21518 attaching.
21519
215202004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21521
21522 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21523
c89dc5d4
DJ
215242004-02-26 Daniel Jacobowitz <drow@mvista.com>
21525
21526 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21527 error packet.
21528 * server.c, target.h: Update copyright years.
21529
4b8dad4a
RM
215302004-02-25 Roland McGrath <roland@redhat.com>
21531
21532 * target.h (struct target_ops): New member `read_auxv'.
21533 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21534 * linux-low.c (linux_read_auxv): New function.
21535 (linux_target_ops): Initialize `read_auxv' member to that.
21536
d7446758
JB
215372004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21538
21539 Committed by Jim Blandy <jimb@redhat.com>.
21540
21541 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21542 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21543 instead of GPR_SIZE to distiguish s390 and s390x targets.
21544
5544ad89
DJ
215452004-01-31 Daniel Jacobowitz <drow@mvista.com>
21546
21547 * linux-low.c: Update copyright year.
21548 (check_removed_breakpoint): Clear pending_is_breakpoint.
21549 (linux_set_resume_request, linux_queue_one_thread)
21550 (resume_status_pending_p): New functions.
21551 (linux_continue_one_thread): Use process->resume.
21552 (linux_resume): Only resume threads if there are no pending events.
21553 * linux-low.h (struct process_info): Add resume request
21554 pointer.
21555
2a68b70e
DJ
215562004-01-30 Daniel Jacobowitz <drow@mvista.com>
21557
21558 * regcache.c (new_register_cache): Clear the allocated register
21559 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21560
64386c31
DJ
215612003-10-13 Daniel Jacobowitz <drow@mvista.com>
21562
21563 * linux-low.c (linux_resume): Take a struct thread_resume *
21564 argument.
21565 (linux_wait): Update call.
21566 (resume_ptr): New static variable.
21567 (linux_continue_one_thread): Renamed from
21568 linux_continue_one_process. Use resume_ptr.
21569 (linux_resume): Use linux_continue_one_thread.
21570 * server.c (handle_v_cont, handle_v_requests): New functions.
21571 (myresume): New function.
21572 (main): Handle 'v' case.
21573 * target.h (struct thread_resume): New type.
21574 (struct target_ops): Change argument of "resume" to struct
21575 thread_resume *.
21576 (myresume): Delete macro.
21577
c938e9b0
L
215782003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21579
21580 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21581 (uninstall): Support DESTDIR.
21582
7f313d07
BC
21583Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21584
21585 * configure.srv: Add xscale*linux copy of arm*linux entry.
21586
3b2fc2ea
DJ
215872003-07-24 Daniel Jacobowitz <drow@mvista.com>
21588
21589 * linux-arm-low.c (arm_reinsert_addr): New function.
21590 (the_low_target): Add arm_reinsert_addr.
21591
1c0a559e
MK
215922003-07-08 Mark Kettenis <kettenis@gnu.org>
21593
21594 * mem-break.c: Remove whitespace at end of file.
21595
43d5792c
DJ
215962003-06-28 Daniel Jacobowitz <drow@mvista.com>
21597
21598 * configure.in: Check whether we need to prototype strerror.
21599 * server.h: Optionally prototype strerror.
21600 * gdbreplay.c (perror_with_name): Use strerror.
21601 * linux-low.c (linux_attach_lwp): Use strerror.
21602 * utils.c (perror_with_name): Use strerror.
21603 * config.in, configure: Regenerated.
21604
c8a86edf
DJ
216052003-06-28 Daniel Jacobowitz <drow@mvista.com>
21606
21607 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21608 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21609
73d37363
DJ
216102003-06-20 Daniel Jacobowitz <drow@mvista.com>
21611
21612 * Makefile.in (SFILES): Update.
21613 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21614 low-sun3.c: Remove files.
21615
6ad8ae5c
DJ
216162003-06-17 Daniel Jacobowitz <drow@mvista.com>
21617
21618 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21619 (linux_detach_one_process, linux_detach): New functions.
21620 (linux_target_ops): Add linux_detach.
21621 * server.c (main): Handle 'D' packet.
21622 * target.h (struct target_ops): Add "detach" member.
21623 (detach_inferior): Define.
21624
1581182a
MK
216252003-06-13 Mark Kettenis <kettenis@gnu.org>
21626
21627 From Kelley Cook <kelleycook@wideopenwest.com>:
21628 * configure.srv: Accept i[34567]86 variants.
21629
e5379b03
DJ
216302003-06-05 Daniel Jacobowitz <drow@mvista.com>
21631
21632 * linux-low.c (linux_wait_for_event): Correct comment typos.
21633 (linux_resume_one_process): Call check_removed_breakpoint.
21634 (linux_send_signal): New function.
21635 (linux_target_ops): Add linux_send_signal.
21636 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21637 of kill.
21638 * target.h (struct target_ops): Add send_signal.
21639
2ff29de4
JB
216402003-05-29 Jim Blandy <jimb@redhat.com>
21641
21642 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21643 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21644 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21645 away part of the register's value.
21646
254787d4
DJ
216472003-03-26 Daniel Jacobowitz <drow@mvista.com>
21648
21649 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21650 (linux_wait_for_event, linux_init_signals): Likewise.
21651
94e10508
DJ
216522003-03-17 Daniel Jacobowitz <drow@mvista.com>
21653
21654 * configure.in: Check for stdlib.h.
21655 * configure: Regenerated.
21656 * config.in: Regenerated.
21657
4c0711e0
DJ
216582003-01-04 Andreas Schwab <schwab@suse.de>
21659
21660 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21661
ef66e766
AC
216622003-01-02 Andrew Cagney <ac131313@redhat.com>
21663
21664 * Makefile.in: Remove obsolete code.
21665
a1358604
DJ
216662002-11-20 Daniel Jacobowitz <drow@mvista.com>
21667
21668 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21669 defined(PT_FPR0_HI).
21670
23ce3b1c
DJ
216712002-11-17 Stuart Hughes <seh@zee2.com>
21672
21673 * linux-arm-low.c (arm_num_regs): Increase.
21674 (arm_regmap): Include status register.
21675
216762002-11-17 Daniel Jacobowitz <drow@mvista.com>
21677
21678 * linux-low.c (register_addr): Remove incorrect -1 check.
21679
a9fa9f7d
DJ
216802002-08-29 Daniel Jacobowitz <drow@mvista.com>
21681
21682 * linux-low.c (linux_create_inferior): Call setpgid. Return
21683 the new PID.
21684 (unstopped_p, linux_signal_pid): Remove.
21685 (linux_target_ops): Remove linux_signal_pid.
21686 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21687 global instead of target method.
21688 * target.h (struct target_ops): Remove signal_pid. Update comment
21689 for create_inferior.
21690 * server.c (signal_pid): New variable.
21691 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21692 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21693 (attach_inferior): Set signal_pid.
21694
17574093
DJ
216952002-08-23 Daniel Jacobowitz <drow@mvista.com>
21696
21697 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21698
216992002-08-20 Jim Blandy <jimb@redhat.com>
21700
21701 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21702 default for this.
21703
217042002-08-01 Andrew Cagney <cagney@redhat.com>
21705
21706 * Makefile.in: Make chill references obsolete.
21707
217082002-07-24 Kevin Buettner <kevinb@redhat.com>
21709
21710 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21711 * configure: Regenerate.
21712 * config.in: Regenerate.
21713
217142002-07-09 David O'Brien <obrien@FreeBSD.org>
21715
21716 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21717 (perror_with_name, remote_close, remote_open, expect, play): Static.
21718
217192002-07-04 Michal Ludvig <mludvig@suse.cz>
21720
4b8dad4a 21721 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21722 byte offsets instead of an array of indexes.
21723 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21724
217252002-06-13 Daniel Jacobowitz <drow@mvista.com>
21726
21727 * regcache.c: Add comment.
21728
217292002-06-11 Daniel Jacobowitz <drow@mvista.com>
21730
21731 * thread-db.c: New file.
21732 * proc-service.c: New file.
21733 * acinclude.m4: New file.
21734 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21735 proc-service.o, and thread-db.o.
21736 (linux-low.o): Add USE_THREAD_DB.
21737 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21738 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21739 * aclocal.m4: Regenerated.
21740 * config.in: Regenerated.
21741 * configure: Regenerated.
21742 * configure.in: Check for proc_service.h, sys/procfs.h,
21743 thread_db.h, and linux/elf.h headrs.
21744 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21745 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21746 Check for -lthread_db and thread support.
21747 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21748 PowerPC, and SuperH.
21749 * i387-fp.c: Constify arguments.
21750 * i387-fp.h: Likewise.
21751 * inferiors.c: (struct thread_info): Renamed from
21752 `struct inferior_info'. Remove PID member. Use generic inferior
21753 list header. All uses updated.
21754 (inferiors, signal_pid): Removed.
21755 (all_threads): New variable.
21756 (get_thread): Define.
21757 (add_inferior_to_list): New function.
21758 (for_each_inferior): New function.
21759 (change_inferior_id): New function.
21760 (add_inferior): Removed.
21761 (remove_inferior): New function.
21762 (add_thread): New function.
21763 (free_one_thread): New function.
21764 (remove_thread): New function.
21765 (clear_inferiors): Use for_each_inferior and free_one_thread.
21766 (find_inferior): New function.
21767 (find_inferior_id): New function.
21768 (inferior_target_data): Update argument type.
21769 (set_inferior_target_data): Likewise.
21770 (inferior_regcache_data): Likewise.
21771 (set_inferior_regcache_data): Likewise.
21772 * linux-low.c (linux_bp_reinsert): Remove.
21773 (all_processes, stopping_threads, using_thrads)
21774 (struct pending_signals, debug_threads, pid_of): New.
21775 (inferior_pid): Replace with macro.
21776 (struct inferior_linux_data): Remove.
21777 (get_stop_pc, add_process): New functions.
21778 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21779 Use add_process and add_thread.
21780 (linux_attach_lwp): New function, based on old linux_attach. Use
21781 add_process and add_thread. Set stop_expected for new threads.
21782 (linux_attach): New function.
21783 (linux_kill_one_process): New function.
21784 (linux_kill): Kill all LWPs.
21785 (linux_thread_alive): Use find_inferior_id.
21786 (check_removed_breakpoints, status_pending_p): New functions.
21787 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21788 Update. Use WNOHANG. Wait for cloned processes also. Update process
21789 struct for the found process.
21790 (linux_wait_for_event): New function.
21791 (linux_wait): Use it. Support LWPs.
21792 (send_sigstop, wait_for_sigstop, stop_all_processes)
21793 (linux_resume_one_process, linux_continue_one_process): New functions.
21794 (linux_resume): Support LWPs.
21795 (REGISTER_RAW_SIZE): Remove.
21796 (fetch_register): Use register_size instead. Call supply_register.
21797 (usr_store_inferior_registers): Likewise. Call collect_register.
21798 Fix recursive case.
21799 (regsets_fetch_inferior_registers): Improve error message.
21800 (regsets_store_inferior_registers): Add debugging.
21801 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21802 (unstopped_p, linux_signal_pid): New functions.
21803 (linux_target_ops): Add linux_signal_pid.
21804 (linux_init_signals): New function.
21805 (initialize_low): Call it. Initialize using_threads.
21806 * regcache.c (inferior_regcache_data): Add valid
21807 flag.
21808 (get_regcache): Fetch registers lazily. Add fetch argument
21809 and update all callers.
21810 (regcache_invalidate_one, regcache_invalidate): New
21811 functions.
21812 (new_register_cache): Renamed from create_register_cache.
21813 Return the new regcache.
21814 (free_register_cache): Change argument to a void *.
21815 (registers_to_string, registers_from_string): Call get_regcache
21816 with fetch flag set.
21817 (register_data): Make static. Pass fetch flag to get_regcache.
21818 (supply_register): Call get_regcache with fetch flag clear.
21819 (collect_register): Call get_regcache with fetch flag set.
21820 (collect_register_as_string): New function.
21821 * regcache.h: Update.
21822 * remote-utils.c (putpkt): Flush after debug output and use
21823 stderr.
21824 Handle input interrupts while waiting for an ACK.
21825 (input_interrupt): Use signal_pid method.
21826 (getpkt): Flush after debug output and use stderr.
21827 (outreg): Use collect_register_as_string.
21828 (new_thread_notify, dead_thread_notify): New functions.
21829 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21830 and general_thread.
21831 (look_up_one_symbol): Flush after debug output.
21832 * server.c (step_thread, server_waiting): New variables.
21833 (start_inferior): Don't use signal_pid. Update call to mywait.
21834 (attach_inferior): Update call to mywait.
21835 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21836 (main): Don't fetch/store registers explicitly. Use
21837 set_desired_inferior. Support proposed ``Hs'' packet. Update
21838 calls to mywait.
21839 * server.h: Update.
21840 (struct inferior_list, struct_inferior_list_entry): New.
21841 * target.c (set_desired_inferior): New.
21842 (write_inferior_memory): Constify.
21843 (mywait): New function.
21844 * target.h: Update.
21845 (struct target_ops): New signal_pid method.
21846 (mywait): Removed macro, added prototype.
21847
21848 * linux-low.h (regset_func): Removed.
21849 (regset_fill_func, regset_store_func): New.
21850 (enum regset_type): New.
21851 (struct regset_info): Add type field. Use new operation types.
21852 (struct linux_target_ops): stop_pc renamed to get_pc.
21853 Add decr_pc_after_break and breakpoint_at.
21854 (get_process, get_thread_proess, get_process_thread)
21855 (strut process_info, all_processes, linux_attach_lwp)
21856 (thread_db_init): New.
21857
21858 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21859 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21860 (the_low_target): Add new members.
21861 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21862 (i386_store_fpxregset): Constify.
21863 (target_regsets): Add new kind identifier.
21864 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21865 (i386_set_pc): Add debugging.
21866 (i386_breakpoint_at): New function.
21867 (the_low_target): Add new members.
21868 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21869 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21870 (mips_breakpoint_at): New.
21871 (the_low_target): Add new members.
21872 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21873 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21874 (the_low_target): Add new members.
21875 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21876 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21877 (the_low_target): Add new members.
21878 * linux-x86-64-low.c (target_regsets): Add new kind
21879 identifier.
21880
218812002-05-15 Daniel Jacobowitz <drow@mvista.com>
21882
21883 From Martin Pool <mbp@samba.org>:
21884 * server.c (gdbserver_usage): New function.
21885 (main): Call it.
21886
218872002-05-14 Daniel Jacobowitz <drow@mvista.com>
21888
21889 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21890 stop_at -> stop_pc.
21891
218922002-05-04 Andrew Cagney <ac131313@redhat.com>
21893
21894 * Makefile.in: Remove obsolete code.
21895
218962002-04-24 Michal Ludvig <mludvig@suse.cz>
21897
21898 * linux-low.c (regsets_fetch_inferior_registers),
21899 (regsets_store_inferior_registers): Removed cast to int from
21900 ptrace() calls.
21901 * regcache.h: Added declaration of struct inferior_info.
21902
219032002-04-20 Daniel Jacobowitz <drow@mvista.com>
21904
21905 * inferiors.c (struct inferior_info): Add regcache_data.
21906 (add_inferior): Call create_register_cache.
21907 (clear_inferiors): Call free_register_cache.
21908 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21909 * regcache.c (struct inferior_regcache_data): New.
21910 (registers): Remove.
21911 (get_regcache): New function.
21912 (create_register_cache, free_register_cache): New functions.
21913 (set_register_cache): Don't initialize the register cache here.
21914 (registers_to_string, registers_from_string, register_data): Call
21915 get_regcache.
21916 * regcache.h: Add prototypes.
21917 * server.h: Likewise.
21918
219192002-04-20 Daniel Jacobowitz <drow@mvista.com>
21920
21921 * mem-break.c: New file.
21922 * mem-break.h: New file.
21923 * Makefile.in: Add mem-break.o rule; update server.h
21924 dependencies.
21925 * inferiors.c (struct inferior_info): Add target_data
21926 member.
21927 (clear_inferiors): Free target_data member if set.
21928 (inferior_target_data, set_inferior_target_data): New functions.
21929 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21930 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21931 * linux-low.c (linux_bp_reinsert): New variable.
21932 (struct inferior_linux_data): New.
21933 (linux_create_inferior): Use set_inferior_target_data.
21934 (linux_attach): Likewise. Call add_inferior.
21935 (linux_wait_for_one_inferior): New function.
21936 (linux_wait): Call it.
21937 (linux_write_memory): Add const.
21938 (initialize_low): Call set_breakpoint_data.
21939 * linux-low.h (struct linux_target_ops): Add breakpoint
21940 handling members.
21941 * server.c (attach_inferior): Remove extra add_inferior
21942 call.
21943 * server.h: Include mem-break.h. Update inferior.c
21944 prototypes.
21945 * target.c (read_inferior_memory)
21946 (write_inferior_memory): New functions.
21947 * target.h (read_inferior_memory)
21948 (write_inferior_memory): Change macros to prototypes.
21949 (struct target_ops): Update comments. Add const to write_memory
21950 definition.
21951
219522002-04-11 Daniel Jacobowitz <drow@mvista.com>
21953
21954 * linux-low.c (usr_store_inferior_registers): Support
21955 registers which are allowed to fail to store.
21956 * linux-low.h (linux_target_ops): Likewise.
21957 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21958 (ppc_cannot_store_register): FPSCR may not be storable.
21959
219602002-04-09 Daniel Jacobowitz <drow@mvista.com>
21961
21962 * server.h: Include <string.h> if HAVE_STRING_H.
21963 * ChangeLog: Correct paths in last ChangeLog entry.
21964
219652002-04-09 Daniel Jacobowitz <drow@mvista.com>
21966
21967 * linux-low.h: Remove obsolete prototypes.
21968 (struct linux_target_ops): New.
21969 (extern the_low_target): New.
21970 * linux-low.c (num_regs, regmap): Remove declarations.
21971 (register_addr): Use the_low_target explicitly.
21972 (fetch_register): Likewise.
21973 (usr_fetch_inferior_registers): Likewise.
21974 (usr_store_inferior_registers): Likewise.
21975 * linux-arm-low.c (num_regs): Remove.
21976 (arm_num_regs): Define.
21977 (arm_regmap): Renamed from regmap, made static.
21978 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21979 made static.
21980 (arm_cannot_store_register): Renamed from cannot_store_register,
21981 made static.
21982 (the_low_target): New.
21983 * linux-i386-low.c (num_regs): Remove.
21984 (i386_num_regs): Define.
21985 (i386_regmap): Renamed from regmap, made static.
21986 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21987 made static.
21988 (i386_cannot_store_register): Renamed from cannot_store_register,
21989 made static.
21990 (the_low_target): New.
21991 * linux-ia64-low.c (num_regs): Remove.
21992 (ia64_num_regs): Define.
21993 (ia64_regmap): Renamed from regmap, made static.
21994 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21995 made static.
21996 (ia64_cannot_store_register): Renamed from cannot_store_register,
21997 made static.
21998 (the_low_target): New.
21999 * linux-m68k-low.c (num_regs): Remove.
22000 (m68k_num_regs): Define.
22001 (m68k_regmap): Renamed from regmap, made static.
22002 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22003 made static.
22004 (m68k_cannot_store_register): Renamed from cannot_store_register,
22005 made static.
22006 (the_low_target): New.
22007 * linux-mips-low.c (num_regs): Remove.
22008 (mips_num_regs): Define.
22009 (mips_regmap): Renamed from regmap, made static.
22010 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22011 made static.
22012 (mips_cannot_store_register): Renamed from cannot_store_register,
22013 made static.
22014 (the_low_target): New.
22015 * linux-ppc-low.c (num_regs): Remove.
22016 (ppc_num_regs): Define.
22017 (ppc_regmap): Renamed from regmap, made static.
22018 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22019 made static.
22020 (ppc_cannot_store_register): Renamed from cannot_store_register,
22021 made static.
22022 (the_low_target): New.
22023 * linux-s390-low.c (num_regs): Remove.
22024 (s390_num_regs): Define.
22025 (s390_regmap): Renamed from regmap, made static.
22026 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22027 made static.
22028 (s390_cannot_store_register): Renamed from cannot_store_register,
22029 made static.
22030 (the_low_target): New.
22031 * linux-sh-low.c (num_regs): Remove.
22032 (sh_num_regs): Define.
22033 (sh_regmap): Renamed from regmap, made static.
22034 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22035 made static.
22036 (sh_cannot_store_register): Renamed from cannot_store_register,
22037 made static.
22038 (the_low_target): New.
22039 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22040 (the_low_target): New.
22041
220422002-04-09 Daniel Jacobowitz <drow@mvista.com>
22043
22044 * Makefile.in: Add stamp-h target.
22045 * configure.in: Create stamp-h.
22046 * configure: Regenerated.
22047
220482002-04-09 Daniel Jacobowitz <drow@mvista.com>
22049
22050 * inferiors.c: New file.
22051 * target.c: New file.
22052 * target.h: New file.
22053 * Makefile.in: Add target.o and inferiors.o. Update
22054 dependencies.
22055 * linux-low.c (inferior_pid): New static variable,
22056 moved from server.c.
22057 (linux_create_inferior): Renamed from create_inferior.
22058 Call add_inferior. Return 0 on success instead of a PID.
22059 (linux_attach): Renamed from myattach.
22060 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22061 (linux_thread_alive): Renamed from mythread_alive.
22062 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22063 child dies.
22064 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22065 (regsets_store_inferior_registers): Correct error message.
22066 Add missing ``return 0''.
22067 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22068 (linux_store_registers): Renamed from store_inferior_registers.
22069 (linux_read_memory): Renamed from read_inferior_memory.
22070 (linux_write_memory): Renamed from write_inferior_memory.
22071 (linux_target_ops): New structure.
22072 (initialize_low): Call set_target_ops ().
22073 * remote-utils.c (unhexify): New function.
22074 (hexify): New function.
22075 (input_interrupt): Send signals to ``signal_pid''.
22076 * server.c (inferior_pid): Remove.
22077 (start_inferior): Update create_inferior call.
22078 (attach_inferior): Call add_inferior.
22079 (handle_query): New function.
22080 (main): Call handle_query for `q' packets.
22081 * server.h: Include "target.h". Remove obsolete prototypes.
22082 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22083
220842002-04-09 Daniel Jacobowitz <drow@mvista.com>
22085
22086 * Makefile.in: Add WARN_CFLAGS. Update configury
22087 dependencies.
22088 * configure.in: Check for <string.h>
22089 * configure: Regenerate.
22090 * config.in: Regenerate.
22091 * gdbreplay.c: Include needed system headers.
22092 (remote_open): Remove strchr prototype.
22093 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22094 * regcache.c (supply_register): Change buf argument to const void *.
22095 (supply_register_by_name): Likewise.
22096 (collect_register): Change buf argument to void *.
22097 (collect_register_by_name): Likewise.
22098 * regcache.h: Add missing prototypes.
22099 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22100 * server.c (handle_query): New function.
22101 (attached): New static variable, moved out of main.
22102 (main): Quiet longjmp clobber warnings.
22103 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22104 * utils.c (error): Remove NORETURN.
22105 (fatal): Likewise.
This page took 2.327144 seconds and 4 git commands to generate.